cb9c3ae8d9421ee8efd55e9c784c92dfd9e591d0
[gcc.git] / gcc / ChangeLog
1 2011-07-22 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/45819
4 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
5 preserve volatile and notrap flags.
6
7 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9
10 PR bootstrap/49794
11 * configure.ac: Test AM_ICONV with CXX.
12 * configure: Regenerate.
13 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
14
15 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16
17 PR bootstrap/49797
18 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
19 (set_cloog_options): Use it.
20
21 2011-07-22 Jakub Jelinek <jakub@redhat.com>
22
23 PR c++/49756
24 * gcc.c (main): Call stack_limit_increase (64MB).
25 * toplev.c (toplev_main): Likewise.
26
27 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
28
29 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
30 instead of force_reg.
31
32 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
33
34 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
35 needed and use force_reg after convert.
36 (ix86_expand_call): Likewise.
37 (ix86_expand_special_args_builtin): Likewise.
38 (ix86_expand_builtin): Likewise.
39
40 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
41
42 PR middle-end/47654
43 PR middle-end/49649
44 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
45 in parameter. Initialize v1 and v2 based on the values returned
46 by clast_name_to_lb_ub.
47 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
48 values.
49 (type_for_clast_bin): Same.
50 (type_for_clast_expr): Same.
51 (type_for_clast_eq): Update calls to type_for_clast_expr.
52 (type_for_clast_for): Same.
53 (build_iv_mapping): Same.
54 * graphite-ppl.h (value_min): New.
55
56 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
57
58 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
59 types whenever possible.
60
61 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
62
63 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
64 and ub fields.
65 (new_clast_name_index): Add lb and ub parameters.
66 (free_clast_name_index): New.
67 (clast_name_to_lb_ub): New.
68 (save_clast_name_index): Add lb and ub parameters.
69 (compute_bounds_for_param): New.
70 (type_for_level): Removed.
71 (type_for_clast_for): Removed level parameter. Do not call
72 type_for_level.
73 (graphite_create_new_loop): Store the lb and ub for the clast_name
74 of the iterator of the loop that has been generated.
75 (graphite_create_new_loop_guard): Remove parameter level.
76 (create_params_index): Store the lb and ub of each parameter.
77 (gloog): Use free_clast_name_index. Pass to create_params_index
78 the current scop.
79
80 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
81
82 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
83 (max_precision_type): Inline max_signed_precision_type.
84 (type_for_clast_red): Use max_precision_type.
85 (type_for_clast_bin): Same.
86 (type_for_clast_for): Same.
87
88 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
89
90 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
91 type_for_interval.
92 (gcc_type_for_value): Renamed type_for_value.
93 (gcc_type_for_clast_term): Renamed type_for_clast_term.
94 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
95 (gcc_type_for_clast_red): Renamed type_for_clast_red.
96 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
97 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
98 (graphite_translate_clast_equation): Update calls.
99 (compute_type_for_level): Renamed type_for_level.
100 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
101 (build_iv_mapping): Update calls.
102 (graphite_create_new_loop_guard): Same.
103
104 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
105
106 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
107 comment.
108
109 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
110
111 * graphite-clast-to-gimple.c (struct ivs_params): New.
112 (clast_name_to_gcc): Use ivs_params to pass around parameters.
113 (clast_to_gcc_expression): Same.
114 (clast_to_gcc_expression_red): Same.
115 (gcc_type_for_clast_term): Same.
116 (gcc_type_for_clast_expr): Same.
117 (gcc_type_for_clast_red): Same.
118 (gcc_type_for_clast_bin): Same.
119 (gcc_type_for_clast_eq): Same.
120 (graphite_translate_clast_equation): Same.
121 (graphite_create_guard_cond_expr): Same.
122 (graphite_create_new_guard): Same.
123 (graphite_create_new_loop): Same.
124 (build_iv_mapping): Same.
125 (translate_clast_user): Same.
126 (graphite_create_new_loop_guard): Same.
127 (translate_clast): Same.
128 (translate_clast_for_loop): Same.
129 (translate_clast_for): Same.
130 (translate_clast_guard): Same.
131 (initialize_cloog_names): Fix typo.
132 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
133
134 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
135
136 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
137 (new_clast_name_index): Add level parameter.
138 (clast_name_to_level): New.
139 (save_clast_name_index): Add level parameter.
140 (newivs_to_depth_to_newiv): Removed.
141 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
142 (graphite_create_new_loop): Add level parameter. Pass level to
143 save_clast_name_index.
144 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
145 (create_params_index): Pass level to save_clast_name_index.
146
147 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
148
149 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
150 recompute type, lb, and ub. Get them from...
151 (graphite_create_new_loop_guard): ...here. Pass in parameter
152 pointers to type, lb, and ub.
153 (translate_clast_for_loop): Update function calls.
154 (translate_clast_for): Same.
155
156 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
157
158 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
159 psct_dynamic_dim.
160 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
161 (gcc_type_for_iv_of_clast_loop): Update use of level.
162 (gloog): Start counting nesting level from 0.
163 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
164 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
165 psct_dynamic_dim on level.
166
167 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
168
169 * config/i386/i386.c (ix86_legitimize_address): Convert to
170 Pmode if needed.
171
172 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
173
174 * config/i386/i386.c (function_value_64): Always return pointers
175 in Pmode.
176 (ix86_promote_function_mode): New.
177 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
178
179 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
180
181 PR tree-optimization/49749
182 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
183 remove no-longer-used maxrank variable.
184
185 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
186
187 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
188
189 2011-07-21 Jason Merrill <jason@redhat.com>
190
191 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
192 * recog.h (struct insn_data_d): Check it instead of
193 HAVE_DESIGNATED_INITIALIZERS.
194 * genoutput.c (output_insn_data): Likewise.
195
196 2011-07-21 Richard Guenther <rguenther@suse.de>
197
198 PR tree-optimization/49770
199 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
200 valueized any operand. Renamed from ...
201 (valueize_refs): ... this. New wrapper around valueize_refs_1.
202 (valueize_shared_reference_ops_from_ref): Return whether we
203 valueized any operand.
204 (vn_reference_lookup): Only when we valueized any operand
205 use the valueized reference for alias analysis. Do not preserve
206 the original reference tree in this case.
207
208 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
209
210 * config/i386/i386.c (ix86_decompose_address): Reject all but
211 register operands and subregs of DImode hard registers in index.
212
213 2011-07-21 Kai Tietz <ktietz@redhat.com>
214
215 * fold-const.c (fold_unary_loc): Preserve indirect
216 comparison cast to none-boolean type.
217 * tree-ssa.c (useless_type_conversion_p): Preserve cast
218 from/to boolean-type.
219 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
220 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
221 * tree-cfg.c (verify_gimple_comparison): Check result
222 type of comparison expression.
223 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
224 of condition result and disallow type-cast sinking into comparison.
225
226 2011-07-21 Richard Guenther <rguenther@suse.de>
227
228 * tree-ssa-forwprop.c (combine_conversions): Return whether
229 we have to run cfg-cleanup. Properly remove dead stmts.
230 (ssa_forward_propagate_and_combine): Adjust.
231
232 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
233
234 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
235
236 2011-07-21 Kai Tietz <ktietz@redhat.com>
237
238 * tree-ssa-propagate.c (substitute_and_fold): Use
239 do_dce flag to deside, if BB's statements are scanned
240 in last to first, or first to last order.
241
242 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
243
244 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
245
246 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
247 Uros Bizjak <ubizjak@gmail.com>
248 Richard Henderson <rth@redhat.com>
249
250 * config/i386/constraints.md (w): New.
251
252 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
253 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
254
255 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
256 instead of TARGET_64BIT.
257
258 * config/i386/i386.md (indirect_jump): Replace
259 nonimmediate_operand with indirect_branch_operand.
260 (*indirect_jump): Likewise. Replace constraint "m" with "w".
261 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
262 Convert operand 0 to Pmode for x32 if not PIC.
263 (*tablejump_1): Replace nonimmediate_operand with
264 indirect_branch_operand. Replace constraint "m" with "w".
265 (*call_vzeroupper): Replace constraint "m" with "w".
266 (*call): Likewise.
267 (*call_rex64_ms_sysv_vzeroupper): Likewise.
268 (*call_rex64_ms_sysv): Likewise.
269 (*call_value_vzeroupper): Likewise.
270 (*call_value): Likewise.
271 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
272 (*call_value_rex64_ms_sysv): Likewise.
273 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
274
275 * config/i386/predicates.md (indirect_branch_operand): New.
276 (call_insn_operand): Support x32.
277
278 2011-07-20 Michael Eager <eager@eagercon.com>
279
280 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
281
282 2011-07-20 Richard Henderson <rth@redhat.com>
283
284 * cfg.c (dump_bb_info): Dump basic_block->flags.
285 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
286
287 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
288
289 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
290 of DImode hard registers in index.
291 (ix86_legitimate_address_p): Allow subregs of base and index to span
292 more than a word. Assert that subregs of base and index satisfy
293 register_no_elim_operand predicates. Reject addresses where
294 base and index have different modes.
295
296 2011-07-20 Robert Millan <rmh@gnu.org>
297
298 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
299
300 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
301
302 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
303 removing now-unnecessary assignment.
304
305 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
306
307 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
308 memory address space to the type's address space.
309
310 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
311
312 PR target/36467
313 PR target/49687
314 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
315 and expand appropriately if there is a CONST_INT in operand2.
316 (usmulqihi3): New insn.
317 (*sumulqihi3): New insn.
318 (*osmulqihi3): New insn.
319 (*oumulqihi3): New insn.
320 (*muluqihi3.uconst): New insn_and_split.
321 (*muluqihi3.sconst): New insn_and_split.
322 (*mulsqihi3.sconst): New insn_and_split.
323 (*mulsqihi3.uconst): New insn_and_split.
324 (*mulsqihi3.oconst): New insn_and_split.
325 (*ashifthi3.signx.const): New insn_and_split.
326 (*ashifthi3.signx.const7): New insn_and_split.
327 (*ashifthi3.zerox.const): New insn_and_split.
328 (mulsqihi3): New insn.
329 (muluqihi3): New insn.
330 (muloqihi3): New insn.
331 * config/avr/predicates.md (const_2_to_7_operand): New.
332 (const_2_to_6_operand): New.
333 (u8_operand): New.
334 (s8_operand): New.
335 (o8_operand): New.
336 (s9_operand): New.
337 (register_or_s9_operand): New.
338
339 2011-07-20 Kai Tietz <ktietz@redhat.com>
340
341 * builtins.c (fold_builtin_expect): See through the cast
342 from truthvalue_type_node to long.
343
344 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
345
346 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
347 where we can use them from the standard and altivec instruction
348 sets, instead of always using the 3 operand VSX forms that require
349 the destination to overlap one of the inputs.
350 (vsx_fms*): Ditto.
351 (vsx_fnma*): Ditto.
352 (vsx_fnms*): Ditto.
353
354 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
355 for DF types.
356 (fmsdf4_fpr): Ditto.
357 (nfmadf4_fpr): Ditto.
358 (nfmsdf4_fpr): Ditto.
359
360 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
361
362 * genrecog.c (make_insn_sequence): Correct position numbering
363 when filtering out match_scratch and match_dup.
364
365 2011-07-20 Richard Guenther <rguenther@suse.de>
366
367 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
368 against already removed statements.
369 (forward_propagate_into_comparison): Remove dead defining stmts.
370 (forward_propagate_into_gimple_cond): Likewise.
371 (forward_propagate_into_cond): Simplify.
372 (ssa_forward_propagate_and_combine): Handle changed cfg from
373 forward_propagate_into_comparison.
374 * tree-ssa-phiopt.c (conditional_replacement): Use proper
375 locations for newly built statements.
376
377 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
378
379 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
380
381 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
382
383 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
384 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
385
386 2011-07-20 Richard Guenther <rguenther@suse.de>
387
388 PR middle-end/18908
389 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
390 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
391 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
392
393 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
394
395 * config/frv/frv.c (frv_register_move_cost): Define explicitly
396 costs for subclasses of GR_REGS.
397
398 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
399
400 PR target/49780
401 * config/i386/predicates.md (no_seg_addres_operand): No more special.
402 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
403 of DImode hard registers in base.
404 (ix86_legitimate_address_p): Allow SImode and DImode base and index
405 registers.
406
407 2011-07-20 Richard Guenther <rguenther@suse.de>
408
409 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
410 (unify_nodes): Deal with that.
411 (solve_graph): Likewise.
412
413 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
414
415 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
416 canonicalize left operand from ZERO_EXTEND to AND.
417
418 2011-07-20 Anatoly Sokolov <aesok@post.ru>
419
420 * target.def (class_max_nregs): New hook.
421 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
422 * doc/tm.texi: Regenerate.
423 * targhooks.c (default_class_max_nregs): New function.
424 * targhooks.h (default_class_max_nregs): Declare.
425 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
426 x_ira_reg_class_min_nregs arrays to unsigned char.
427 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
428 hook instead of CLASS_MAX_NREGS macro.
429 * reginfo.c (restore_register_info): Ditto.
430 * ira-conflicts.c (process_regs_for_copy): Use
431 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
432 Change type rclass and aclass vars to reg_class_t.
433 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
434 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
435 reg_class_t.
436 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
437 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
438
439 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
440 * config/i386/i386.c (ix86_class_max_nregs): New function.
441 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
442 instead of CLASS_MAX_NREGS macro.
443 (TARGET_CLASS_MAX_NREGS): Define.
444 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
445 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
446 * config/avr/avr.c (class_max_nregs): Remove function.
447 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
448 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
449 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
450 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
451 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
452 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
453 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
454 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
455 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
456 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
457 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
458 * config/score/score.h (CLASS_MAX_NREGS): Remove.
459 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
460 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
461 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
462
463 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
464
465 * cif-code.def (OVERWRITABLE): Fix typo and move around.
466 (TARGET_OPTIMIZATION_MISMATCH): Delete.
467 (EH_PERSONALITY): Fix typo.
468 (NON_CALL_EXCEPTIONS): Fix message.
469 (OPTIMIZATION_MISMATCH): Adjust message.
470 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
471
472 2011-07-19 Ian Lance Taylor <iant@google.com>
473
474 * doc/install.texi (Configuration): Document
475 --enable-build-poststage1-with-cxx.
476
477 2011-07-19 Robert Millan <rmh@gnu.org>
478
479 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
480 (GLIBC_DYNAMIC_LINKER): Remove.
481
482 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
483 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
484 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
485 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
486 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
487 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
488
489 * config/mips/linux.h: Remove everything except for ...
490 (GLIBC_DYNAMIC_LINKER): ... this macro.
491
492 * config/mips/linux64.h: Remove everything except for ...
493 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
494 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
495 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
496 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
497 (GNU_USER_LINK_EMULATIONN32): New macros.
498
499 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
500 Use the new headers.
501
502 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
503
504 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
505 Add offset_known_p and size_known_p fields.
506 (MEM_OFFSET_KNOWN_P): Update accordingly.
507 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
508 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
509 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
510 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
511 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
512 (init_emit_regs): Likewise.
513
514 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
515
516 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
517 (MEM_OFFSET): Change from returning an rtx to returning a
518 HOST_WIDE_INT.
519 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
520 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
521 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
522 (clear_mem_offset): Declare.
523 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
524 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
525 MEM_OFFSET to get a HOST_WIDE_INT offset.
526 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
527 (adjust_offset_for_component_ref): Take a bool "known_p"
528 parameter and a HOST_WIDE_INT "offset" parameter.
529 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
530 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
531 than an rtx. Use clear_mem_offset to clear the offset.
532 * cfgcleanup.c (merge_memattrs): Likewise.
533 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
534 * function.c (assign_parm_find_stack_rtl): Likewise.
535 (assign_parm_setup_stack): Likewise.
536 * print-rtl.c (print_rtx): Likewise.
537 * reload.c (find_reloads_subreg_address): Likewise.
538 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
539 * var-tracking.c (INT_MEM_OFFSET): Likewise.
540 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
541 (get_mem_align_offset): Likewise.
542 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
543 (clear_mem_offset): New function.
544 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
545 offset rather than an rtx. Assume both the expressio and offset
546 are available.
547 (r10k_needs_protection_p_1): Update accordingly, checking the
548 expression and offset availability here instead.
549
550 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
551
552 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
553 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
554 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
555 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
556 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
557 (clear_mem_size): Declare.
558 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
559 (clear_mem_size): New function.
560 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
561 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
562 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
563 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
564 to clear the size.
565 (nonoverlapping_memrefs_p): Likewise.
566 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
567 (expand_builtin_init_trampoline): Likewise.
568 * calls.c (compute_argument_addresses): Likewise.
569 * cfgcleanup.c (merge_memattrs): Likewise.
570 * dce.c (find_call_stack_args): Likewise.
571 * dse.c (record_store, scan_insn): Likewise.
572 * dwarf2out.c (dw_sra_loc_expr): Likewise.
573 * expr.c (emit_block_move_hints): Likewise.
574 * function.c (assign_parm_find_stack_rtl): Likewise.
575 * print-rtl.c (print_rtx): Likewise.
576 * reload.c (find_reloads_subreg_address): Likewise.
577 * rtlanal.c (may_trap_p_1): Likewise.
578 * var-tracking.c (track_expr_p): Likewise.
579 * varasm.c (assemble_trampoline_template): Likewise.
580 * config/arm/arm.c (arm_print_operand): Likewise.
581 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
582 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
583 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
584 (expand_constant_setmem_prologue): Likewise.
585 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
586 * config/rs6000/rs6000.c (expand_block_move): Likewise.
587 (adjacent_mem_locations): Likewise.
588 * config/s390/s390.c (s390_expand_setmem): Likewise.
589 (s390_expand_insv): Likewise.
590 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
591 (*extendqi<mode>2_short_displ): Likewise.
592 * config/sh/sh.c (expand_block_move): Likewise.
593 * config/sh/sh.md (extv, extzv): Likewise.
594
595 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
596
597 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
598 (mem_attrs_htab_eq): ...here.
599 (find_mem_attrs): Replace with...
600 (set_mem_attrs): ...this function. Take a mem_attrs structure
601 rather than individual fields.
602 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
603 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
604 (set_mem_size, change_address, adjust_address_1, offset_address)
605 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
606 Update accordingly.
607
608 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
609
610 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
611 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
612 Provide a dummy definition of MEM_ADDR_SPACE for generators.
613 (target_rtl): Add x_mode_mem_attrs.
614 (mode_mem_attrs): New macro.
615 (get_mem_attrs): New function.
616 * emit-rtl.c (get_mem_attrs): Rename to...
617 (find_mem_attrs): ...this.
618 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
619 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
620 (set_mem_size, change_address, adjust_address_1, offset_address)
621 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
622 Update accordingly.
623 (init_emit_regs): Initialize mode_mem_attrs.
624
625 2011-07-19 Richard Guenther <rguenther@suse.de>
626
627 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
628 TRUTH_*_EXPR handling.
629 * tree-ssa-operands.c (get_expr_operands): Likewise.
630 * tree-ssa-pre.c (fully_constant_expression): Likewise.
631 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
632 Likewise.
633 (is_and_or_or): Likewise.
634 (is_norm_cond_subset_of): Likewise.
635
636 2011-07-19 Richard Guenther <rguenther@suse.de>
637
638 * tree.h (fold_build_pointer_plus_loc): New helper function.
639 (fold_build_pointer_plus_hwi_loc): Likewise.
640 (fold_build_pointer_plus): Define.
641 (fold_build_pointer_plus_hwi): Likewise.
642 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
643 (fold_builtin_memory_op): Likewise.
644 (fold_builtin_stpcpy): Likewise.
645 (fold_builtin_memchr): Likewise.
646 (fold_builtin_strstr): Likewise.
647 (fold_builtin_strchr): Likewise.
648 (fold_builtin_strrchr): Likewise.
649 (fold_builtin_strpbrk): Likewise.
650 (fold_builtin_strcat): Likewise.
651 (expand_builtin_memory_chk): Likewise.
652 (fold_builtin_memory_chk): Likewise.
653 * c-typeck.c (build_unary_op): Likewise.
654 * cgraphunit.c (thunk_adjust): Likewise.
655 * fold-const.c (build_range_check): Likewise.
656 (fold_binary_loc): Likewise.
657 * omp-low.c (extract_omp_for_data): Likewise.
658 (expand_omp_for_generic): Likewise.
659 (expand_omp_for_static_nochunk): Likewise.
660 (expand_omp_for_static_chunk): Likewise.
661 * tree-affine.c (add_elt_to_tree): Likewise.
662 * tree-data-ref.c (split_constant_offset_1): Likewise.
663 * tree-loop-distribution.c (generate_memset_zero): Likewise.
664 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
665 * tree-predcom.c (ref_at_iteration): Likewise.
666 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
667 (add_to_parts): Likewise.
668 (create_mem_ref): Likewise.
669 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
670 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
671 (number_of_iterations_le): Likewise.
672 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
673 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
674 (vect_create_addr_base_for_vector_ref): Likewise.
675 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
676 (vect_create_cond_for_alias_checks): Likewise.
677 * tree-vrp.c (extract_range_from_assert): Likewise.
678 * config/alpha/alpha.c (alpha_va_start): Likewise.
679 (alpha_gimplify_va_arg_1): Likewise.
680 * config/i386/i386.c (ix86_va_start): Likewise.
681 (ix86_gimplify_va_arg): Likewise.
682 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
683 * config/mep/mep.c (mep_expand_va_start): Likewise.
684 (mep_gimplify_va_arg_expr): Likewise.
685 * config/mips/mips.c (mips_va_start): Likewise.
686 (mips_gimplify_va_arg_expr): Likewise.
687 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
688 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
689 (rs6000_gimplify_va_arg): Likewise.
690 * config/s390/s390.c (s390_va_start): Likewise.
691 (s390_gimplify_va_arg): Likewise.
692 * config/sh/sh.c (sh_va_start): Likewise.
693 (sh_gimplify_va_arg_expr): Likewise.
694 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
695 * config/spu/spu.c (spu_va_start): Likewise.
696 (spu_gimplify_va_arg_expr): Likewise.
697 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
698 Likewise.
699 (xstormy16_gimplify_va_arg_expr): Likewise.
700 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
701 (xtensa_gimplify_va_arg_expr): Likewise.
702
703 2011-07-19 Richard Guenther <rguenther@suse.de>
704
705 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
706 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
707 handling.
708
709 PR middle-end/18908
710 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
711 result of BIT_*_EXPR to bitfield precision.
712
713 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
714
715 PR tree-optimization/49742
716 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
717 as a potential write.
718
719 2011-07-19 Richard Guenther <rguenther@suse.de>
720
721 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
722 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
723 (forward_propagate_comparison): Simplify, remove obsolete code.
724
725 2011-07-19 Richard Guenther <rguenther@suse.de>
726
727 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
728 BIT_XOR_EXPR, same as the RTL expander does.
729 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
730 (verify_gimple_assign_unary): Likewise.
731 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
732 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
733 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
734
735 2011-07-19 Jakub Jelinek <jakub@redhat.com>
736
737 PR tree-optimization/49768
738 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
739 if offset is smaller than bitoffset, but offset+size is bigger
740 than bitoffset.
741
742 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
743
744 PR tree-optimization/49771
745 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
746 zero step, set segment length to the size of the data-ref's type.
747
748 2011-07-18 Martin Jambor <mjambor@suse.cz>
749
750 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
751 comments.
752 (ipcp_values_pool): Declare.
753 (ipcp_sources_pool): Likewise.
754 (ipcp_lattice): Changed to forward declaration.
755 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
756 cannot_devirtualize.
757 (ipa_node_params): New fields descriptors, lattices, known_vals,
758 clone_for_all_contexts and node dead, removed fields params and
759 count_scale.
760 (ipa_set_param_count): Removed.
761 (ipa_get_param_count): Made to work with descriptors vector.
762 (ipa_get_param): Updated.
763 (ipa_param_cannot_devirtualize_p): Removed.
764 (ipa_param_types_vec_empty): Likewise.
765 (ipa_set_param_used): New function.
766 (ipa_get_param_used): Updated to use descriptors vector.
767 (ipa_func_list): Removed.
768 (ipa_init_func_list): Removed declaration.
769 (ipa_push_func_to_list_1): Likewise.
770 (ipa_pop_func_from_list): Likewise.
771 (ipa_push_func_to_list): Removed.
772 (ipa_lattice_from_jfunc): Remove declaration.
773 (ipa_get_jf_pass_through_result): Declare.
774 (ipa_get_jf_ancestor_result): Likewise.
775 (ipa_value_from_jfunc): Likewise.
776 (ipa_get_lattice): Update.
777 (ipa_lat_is_single_const): New function.
778 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
779 (ipa_init_func_list): Likewise.
780 (ipa_pop_func_from_list): Likewise.
781 (ipa_get_param_decl_index): Fix coding style.
782 (count_formal_params): Removed.
783 (count_formal_params_1): Renamed to count_formal_params.
784 (ipa_populate_param_decls): Update to use descriptors vector.
785 (ipa_initialize_node_params): Likewise.
786 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
787 (ipa_analyze_params_uses): Likewise.
788 (ipa_free_node_params_substructures): Likewise and free also lattices
789 and known values.
790 (duplicate_array): Removed.
791 (ipa_edge_duplication_hook): Add the new edge to the list of edge
792 clones.
793 (ipa_node_duplication_hook): Update to use new lattices.
794 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
795 (ipa_free_all_structures_after_iinln): Likewise.
796 (ipa_write_node_info): Update to use new lattices.
797 (ipa_read_node_info): Likewise.
798 (ipa_get_jf_pass_through_result): New function.
799 (ipa_get_jf_ancestor_result): Likewise.
800 (ipa_value_from_jfunc): Likewise.
801 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
802 * ipa-cp.c: Reimplemented.
803 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
804 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
805 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
806 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
807 * doc/invoke.texi (devirt-type-list-size): Removed description.
808 (ipa-cp-value-list-size): Added description.
809
810 2011-07-18 Richard Henderson <rth@redhat.com>
811
812 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
813 before calling create_basic_block.
814
815 2011-07-18 Jakub Jelinek <jakub@redhat.com>
816
817 PR middle-end/49675
818 * tree.c (build_common_builtin_nodes): Register
819 __builtin_return_address, __cyg_profile_func_enter
820 and __cyg_profile_func_exit.
821
822 2011-07-18 Richard Henderson <rth@redhat.com>
823
824 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
825 (add_labels_and_missing_jumps): ... here.
826 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
827
828 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
829
830 PR target/47744
831 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
832 of DImode hard registers in PLUS address chains.
833
834 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
835
836 PR bootstrap/49769
837 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
838 (alpha*-*-freebsd*): Likewise.
839 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
840 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
841 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
842 crtprec80.o, crtfastmath.o to extra_parts for all targets.
843 (ia64*-*-elf*): Remove extra_parts.
844 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
845 (sparc64-*-linux*): Likewise.
846 (sparc64-*-freebsd*): Likewise.
847
848 Revert:
849 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
850 (ia64*-*-linux*): Likewise.
851 (mips64*-*-linux*): Likewise.
852 (mips*-*-linux*): Likewise.
853
854 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
855
856 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
857
858 2011-07-18 Richard Guenther <rguenther@suse.de>
859
860 * gimplify.c (gimplify_expr): Use input_location, not saved_location
861 when building new trees.
862
863 2011-07-18 Richard Guenther <rguenther@suse.de>
864
865 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
866 expansion result to bitfield precision if required.
867
868 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
869
870 * config.gcc (i[3456x]86-*-netware*): Remove.
871
872 * gthr-nks.h: Remove.
873 * configure.ac (enable_threads): Remove nks.
874 * configure: Regenerate.
875
876 * config/i386/i386.c (ix86_encode_section_info): Remove netware
877 reference.
878 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
879 <netware.h> reference.
880
881 * config/i386/netware-libgcc.c,
882 gcc/config/i386/netware-libgcc.def,
883 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
884 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
885 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
886 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
887
888 * doc/extend.texi (Function Attributes,
889 callee_pop_aggregate_return): Remove i?86-netware reference.
890 * doc/install.texi (Configuration, --enable-threads): Remove nks.
891
892 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
893
894 PR target/49746
895 Revert:
896 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
897
898 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
899 patterns.
900
901 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
902
903 PR middle-end/49732
904 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
905
906 2011-07-16 Matthias Klose <doko@ubuntu.com>
907
908 * doc/install.texi: Document --enable-static-libjava.
909
910 2011-07-15 Richard Henderson <rth@redhat.com>
911
912 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
913 Replace all three arguments by returning a VEC of edges.
914 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
915 pointers and counts.
916 (fix_edges_for_rarely_executed_code): Merge ...
917 (rest_of_handle_partition_blocks): ... into...
918 (partition_hot_cold_basic_blocks): ... here. Return todo items if
919 any work was performed.
920 (pass_partition_blocks): Clear todo_flags_finish.
921
922 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
923 Jakub Jelinek <jakub@redhat.com>
924 Jonathan Wakely <jwakely.gcc@gmail.com>
925
926 PR libstdc++/49745
927 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
928 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
929
930 2011-07-15 Jason Merrill <jason@redhat.com>
931
932 PR testsuite/49741
933 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
934 rather than --tool_opts.
935
936 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
937
938 * doc/plugins.texi (Building GCC plugins): gengtype needs its
939 corresponding gtype.state.
940
941 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
942
943 PR target/49723
944 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
945
946 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
947
948 PR target/48220
949 * doc/md.texi (Standard Names): Document window_save.
950 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
951 expand_debug_expr and expand_debug_source_expr. If the target has
952 a window_save instruction, adjust the ENTRY_VALUE_EXP.
953 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
954 SSA_NAME_VAR is a parameter.
955 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
956 * var-tracking.c (parm_reg_t): New type and associated vector type.
957 (windowed_parm_regs): New variable.
958 (adjust_insn): If the target has a window_save instruction and this
959 is the instruction, make its effect on parameter registers explicit.
960 (next_non_note_insn_var_location): New function.
961 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
962 (vt_add_function_parameter): If the target has a window_save insn,
963 adjust the incoming RTL and record that in windowed_parm_regs.
964 (vt_finalize): Free windowed_parm_regs.
965
966 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
967
968 * doc/invoke.texi (C6X Options): New section.
969 * doc/md.texi (TI C6X family): New section.
970 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
971 tic6x-*-uclinux.
972 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
973 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
974 Provide C6X definitions.
975 * config/c6x/c6x.md: New file.
976 * config/c6x/constraints.md: New file.
977 * config/c6x/predicates.md: New file.
978 * config/c6x/c6x-sched.md.in: New file.
979 * config/c6x/c6x-sched.md: New file.
980 * config/c6x/gensched.sh: New file.
981 * config/c6x/c6x-mult.md.in: New file.
982 * config/c6x/genmult.sh: New file.
983 * config/c6x/c6x-mult.md: New file.
984 * config/c6x/sync.md: New file.
985 * config/c6x/c6x-protos.h: New file.
986 * config/c6x/sfp-machine.h: New file.
987 * config/c6x/c6x.c: New file.
988 * config/c6x/c6x.h: New file.
989 * config/c6x/crti.s: New file.
990 * config/c6x/crtn.s: New file.
991 * config/c6x/lib1funcs.asm: New file.
992 * config/c6x/c6x-modes.def: New file.
993 * config/c6x/genopt.sh: New file.
994 * config/c6x/c6x.opt: New file.
995 * config/c6x/c6x-tables.opt: New file.
996 * config/c6x/c6x-opts.h: New file.
997 * config/c6x/c6x-isas.def: New file.
998 * config/c6x/elf.h: New file.
999 * config/c6x/elf-common.h: New file.
1000 * config/c6x/uclinux-elf.h: New file.
1001 * config/c6x/t-c6x: New file.
1002 * config/c6x/t-c6x-elf: New file.
1003 * config/c6x/t-c6x-uclinux: New file.
1004 * config/c6x/t-c6x-softfp: New file.
1005 * config/c6x/gtd.c: New file.
1006 * config/c6x/gtf.c: New file.
1007 * config/c6x/ltd.c: New file.
1008 * config/c6x/ltf.c: New file.
1009 * config/c6x/ged.c: New file.
1010 * config/c6x/gef.c: New file.
1011 * config/c6x/led.c: New file.
1012 * config/c6x/lef.c: New file.
1013 * config/c6x/eqd.c: New file.
1014 * config/c6x/eqf.c: New file.
1015 * config/c6x/libgcc-c6xeabi.ver: New file.
1016
1017 Revert
1018 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
1019 PR rtl-optimization/11320
1020 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1021 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1022 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1023 current_sched_info->compute_jump_reg_dependencies. Record which
1024 registers are used and which registers are set by the jump.
1025 Clear deps->reg_conditional_sets after a barrier.
1026 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1027 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1028 (init_deps): Initialize reg_conditional_sets.
1029 (free_deps): Clear reg_conditional_sets.
1030 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1031 Mark registers live on entry of the fallthrough block and conditionally
1032 set as set by the jump. Mark registers live on entry of non-fallthrough
1033 blocks as used by the jump.
1034 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1035 Mark new parameters as unused.
1036
1037 2011-07-14 Andrew Pinski <pinskia@gmail.com>
1038
1039 PR tree-opt/49309
1040 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1041 Use fold_build2_loc instead of build2.
1042 Use the correct type for the new tree.
1043
1044 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1045
1046 PR rtl-optimization/11320
1047 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
1048 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
1049
1050 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1051
1052 PR target/49487
1053 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1054 of REG.
1055 (*rotw<mode>): Use const_int_operand for operand2.
1056 Use match_scatch for operand3.
1057 (*rotb<mode>): Ditto
1058 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1059
1060 2011-07-14 Richard Guenther <rguenther@suse.de>
1061
1062 PR tree-optimization/49651
1063 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1064 handle dereferences with subvariables.
1065
1066 2011-07-14 Richard Guenther <rguenther@suse.de>
1067
1068 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
1069 (fold_stmt_1): Do it here directly on gimple and as a first thing.
1070
1071 2011-07-14 Richard Guenther <rguenther@suse.de>
1072
1073 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
1074 not bool_var when folding bool_var != 1 or bool_var == 0.
1075
1076 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1077
1078 * haifa-sched.c (schedule_insns): Remove outdated comment.
1079 (schedule_block): When computing a known value for TODO_SPEC,
1080 just set it rather than using logical operations.
1081 (try_ready): Likewise. Use a local variable rather than a
1082 pointer to TODO_SPEC. Reorder an if statement to move the
1083 easy case to the then block.
1084 * sched-deps.c (dep_spec_p): New static function.
1085 (update_dep): Use it to decide whether to call
1086 change_spec_dep_to_hard.
1087 (get_back_and_forw_lists): Use it.
1088 (sd_resolve_dep): Likewise.
1089 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
1090 (haifa_note_mem_dep): Likewise.
1091 (check_dep): Likewise.
1092 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
1093 (sched_free_deps): Free in two passes.
1094
1095 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
1096
1097 PR middle-end/49736
1098 * expr.c (all_zeros_p): Undo bogus part of last change.
1099
1100 2011-07-14 Matthias Klose <doko@ubuntu.com>
1101
1102 * doc/extend.texi (optimize attribute): Fix typo.
1103
1104 2011-07-14 Richard Guenther <rguenther@suse.de>
1105
1106 * gimplify.c (gimplify_expr): Only do required conversions.
1107
1108 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
1109
1110 PR target/43746
1111 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
1112 i.e. use default_elf_select_section.
1113 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
1114 (READONLY_DATA_SECTION_ASM_OP): Remove.
1115 (TARGET_ASM_NAMED_SECTION): Move from here...
1116 * config/avr/avr.c: ...to here.
1117 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
1118 (avr_asm_named_section): Make static.
1119
1120 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121
1122 PR bootstrap/49739
1123 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
1124 and crtfastmath.o for Linux/x86.
1125
1126 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1127
1128 * haifa-sched.c: Include "hashtab.h"
1129 (sched_no_dce): New global variable.
1130 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
1131 SHADOW_P): New macros.
1132 (last_clock_var, cycle_issued_insns): Move declarations.
1133 (must_backtrack): New static variable.
1134 (struct delay_pair): New structure.
1135 (delay_htab, delay_htab_i2): New static variables.
1136 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
1137 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
1138 functions.
1139 (dep_cost_1): If delay pairs exist, try to look up the insns and
1140 use the correct pair delay if we find them.
1141 (rank-for_schedule): Tweak priority for insns that must be scheduled
1142 soon to avoid backtracking.
1143 (queue_insn): Detect conditions which force backtracking.
1144 (ready_add): Likewise.
1145 (struct sched_block_state): Add member shadows_only_p.
1146 (struct haifa_save_data): New structure.
1147 (backtrack_queue): New static variable.
1148 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
1149 unschedule_insns_until, restore_last_backtrack_point,
1150 free_topmost_backtrack_point, free_backtrack_queue,
1151 estimate_insn_tick, estimate_shadow_tick): New functions.
1152 (prune_ready_list): New arg shadows_only_p. All callers changed.
1153 If true, remove everything that isn't SHADOW_P. Look up delay
1154 pairs and estimate ticks to avoid scheduling the first insn too early.
1155 (verify_shadows): New function.
1156 (schedule_block): Add machinery to enable backtracking.
1157 (sched_init): Take sched_no_dce into account when setting
1158 DF_LR_RUN_DCE.
1159 (free_delay_pairs): New function.
1160 (init_h_i_d): Initialize INSN_EXACT_TICK.
1161 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
1162 * sched-deps.c (sd_unresolve_dep): New function.
1163 * sched-int. (struct haifa_sched_info): New fields save_state
1164 and restore_state.
1165 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
1166 feeds_backtrack_insn and shadow_p.
1167 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
1168 (sched_no_dce): Declare variable.
1169 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
1170 sd_unresolve_dep): Declare functions.
1171 * modulo-sched.c (sms_sched_info): Clear the two new fields.
1172 * sched-rgn.c (rgn_const_sched_info): Likewise.
1173 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1174 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
1175 (ebb_sched_info): Add them for the two new fields.
1176 (add_deps_for_risky_insns): Call add_delay_dependencies.
1177
1178 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1179
1180 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
1181 Rename -mr11.
1182 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
1183 (rs6000_call_indirect_aix): Ditto.
1184 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
1185 (call_indirect_aix<ptrsize>_internal): Ditto.
1186 (call_indirect_aix<ptrsize>_nor11): Ditto.
1187 (call_indirect_aix<ptrsize>_internal2): Ditto.
1188 (call_value_indirect_aix<ptrsize>): Ditto.
1189 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1190 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1191 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1192 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
1193
1194 2011-07-13 Jason Merrill <jason@redhat.com>
1195
1196 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
1197
1198 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1199
1200 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
1201 * config/spu/spu.md ("clrsb<mode>2"): New expander.
1202
1203 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
1204
1205 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
1206 * configure: Regenerate.
1207
1208 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1209
1210 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1211 (asm_file_start): Remove.
1212 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1213 free_bb_for_insn around code that modifies insns before
1214 restarting df analysis.
1215
1216 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1217
1218 PR target/49541
1219 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
1220 (LINK_SPEC): ... here.
1221
1222 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1223
1224 * haifa-sched.c (struct sched_block_state): New.
1225 (schedule_block): Move some local variables into such a structure.
1226
1227 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1228
1229 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1230 * config/i386/t-crtpc: Remove.
1231 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1232 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1233 tmake_file.
1234 (x86_64-*-darwin*): Likewise.
1235 (i[34567]86-*-linux*): Likewise.
1236 (x86_64-*-linux*): Likewise.
1237
1238 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1239 Handle -mpc32, -mpc64, -mpc80.
1240
1241 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1242
1243 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1244 * config/alpha/t-crtfm: Remove.
1245 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1246 * config/i386/t-crtfm: Remove.
1247 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1248 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1249 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1250 * config/sparc/t-crtfm: Remove.
1251
1252 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1253 (alpha*-*-freebsd*): Likewise.
1254 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1255 (x86_64-*-darwin*): Likewise.
1256 (i[34567]86-*-linux*): Likewise.
1257 (x86_64-*-linux*): Likewise.
1258 (x86_64-*-mingw*): Likewise.
1259 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1260 (ia64*-*-freebsd*): Likewise.
1261 (ia64*-*-linux*): Likewise.
1262 (mips64*-*-linux*): Likewise.
1263 (mips*-*-linux*): Likewise.
1264 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1265 (sparc64-*-linux*): Likewise.
1266 (sparc64-*-freebsd*): Likewise.
1267
1268 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1269
1270 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1271 * config/darwin-crt3.c: Move to ../libgcc/config.
1272 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1273 ($(T)crt3$(objext)): Remove.
1274 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1275 ($(T)crt2$(objext)): Remove.
1276 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1277 (powerpc64-*-darwin*): Likewise.
1278
1279 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1280
1281 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1282
1283 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1284 (addsi_1_zext): This.
1285
1286 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1287
1288 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1289 * doc/tm.texi: Regenerate.
1290 * target.def (mergeable_rodata_prefix): New defhookpod.
1291 * varasm.c (mergeable_string_section, mergeable_constant_section):
1292 Use it. Allocate name with alloca.
1293
1294 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1295
1296 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1297
1298 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1299
1300 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1301 overlap check.
1302
1303 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1304
1305 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
1306 (count_type_elements): Delete.
1307 (complete_ctor_at_level_p): Declare.
1308 * expr.c (flexible_array_member_p): New function, split out from...
1309 (count_type_elements): ...here. Make static. Replace allow_flexarr
1310 parameter with for_ctor_p. When for_ctor_p is true, return the
1311 number of elements that should appear in the top-level constructor,
1312 otherwise return an estimate of the number of scalars.
1313 (categorize_ctor_elements): Replace p_must_clear with p_complete.
1314 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
1315 (complete_ctor_at_level_p): New function, borrowing union logic
1316 from old categorize_ctor_elements_1.
1317 (mostly_zeros_p): Return true if the constructor is not complete.
1318 (all_zeros_p): Update call to categorize_ctor_elements.
1319 * gimplify.c (gimplify_init_constructor): Update call to
1320 categorize_ctor_elements. Don't call count_type_elements.
1321 Unconditionally prevent clearing for variable-sized types,
1322 otherwise rely on categorize_ctor_elements to detect
1323 incomplete initializers.
1324
1325 2011-07-13 Richard Guenther <rguenther@suse.de>
1326
1327 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1328 the final type is integral.
1329
1330 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1331
1332 * sched-int.h (struct _dep): Add member cost.
1333 (DEP_COST, UNKNOWN_DEP_COST): New macros.
1334 * sched-deps.c (init_dep_1): Initialize DEP_COST.
1335 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1336 (sched_change_pattern): Reset it for dependent insns.
1337
1338 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1339
1340 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1341 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1342 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1343 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1344 (CRT0_S, MCRT0_S): Remove.
1345 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1346 Remove.
1347 (s-crt0): Remove.
1348 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1349
1350 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1351
1352 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1353 on the next line.
1354 * emit-rtl.c (push_to_sequence): Likewise.
1355 * haifa-sched.c (max_issue): Likewise.
1356 * matrix-reorg.c (add_allocation_site): Likewise.
1357 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1358 * reload.c (alternative_allows_const_pool_ref): Likewise.
1359 * sched-rgn.c (rgn_add_block): Likewise.
1360 (rgn_fix_recovery_cfg): Likewise.
1361 * tree.c (attribute_list_contained): Likewise.
1362
1363 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
1364
1365 * config/i386/i386.c: Tidy processor feature bitmasks.
1366 (m_P4_NOCONA): New.
1367
1368 2011-07-12 Andrew Pinski <pinskia@gmail.com>
1369
1370 PR rtl-opt/49474
1371 * cprop.c (find_implicit_sets): Correct the condition.
1372
1373 2011-07-12 Richard Henderson <rth@redhat.com>
1374
1375 PR target/49713
1376 * dwarf2out.h (dwarf_frame_regnum): Remove.
1377 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1378 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1379 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1380 (execute_dwarf2_frame): Initialize them.
1381 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1382 users of the macros with the variables.
1383 (expand_builtin_dwarf_sp_column): Revert last change.
1384 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1385 result of DWARF_FRAME_REGNUM into a local variable.
1386
1387 2011-07-12 Richard Henderson <rth@redhat.com>
1388
1389 PR target/49714
1390 * config/i386/i386.c (x86_output_mi_thunk): Use
1391 machopic_indirect_call_target instead of machopic_indirection_name
1392 directly.
1393
1394 2011-07-12 Laurent GUERBY <laurent@guerby.net>
1395 Eric Botcazou <ebotcazou@adacore.com>
1396
1397 * prefix.h: Wrap up in extern "C" block.
1398
1399 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1400
1401 AMD bdver2 Enablement
1402 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1403 (case ${target}): Add bdver2.
1404 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1405 -march=native recognize bdver2 processors.
1406 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1407 bdver2 def_and_undef
1408 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1409 bdver2 cost table.
1410 (m_BDVER2): New definition.
1411 (m_AMD_MULTIPLE): Includes m_BDVER2.
1412 (initial_ix86_tune_features): Add bdver2 tuning.
1413 (processor_target_table): Add bdver2 entry.
1414 (static const char *const cpu_names): Add bdver2 entry.
1415 (ix86_option_override_internal): Add bdver2 instruction sets.
1416 (ix86_issue_rate): Add bdver2.
1417 (ix86_adjust_cost): Add bdver2.
1418 (has_dispatch): Add bdver2.
1419 * config/i386/i386.h (TARGET_BDVER2): New definition.
1420 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1421 (enum processor_type): Add PROCESSOR_BDVER2.
1422 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1423 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1424 description.
1425
1426 2011-07-12 Richard Henderson <rth@redhat.com>
1427
1428 PR target/49714
1429 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1430 destination address in memory on some paths.
1431
1432 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1433
1434 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1435 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1436 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1437 * function.c (locate_and_pad_parm): Take it into account.
1438 * target.def (function_arg_round_boundary): New hook.
1439 * targhooks.c (default_function_arg_round_boundary): New function.
1440 * targhooks.h (default_function_arg_round_boundary): Declare.
1441 * doc/tm.texi: Regenerate.
1442
1443 2011-07-12 Richard Guenther <rguenther@suse.de>
1444
1445 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1446 Do not perform no-op changes.
1447
1448 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1449
1450 * config/arm/predicates.md (neon_struct_operand): Make a normal
1451 predicate.
1452 (neon_struct_or_register_operand): New predicate.
1453 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1454 with neon_struct_or_register_operand.
1455 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1456 neon_struct_operand instead of memory_operand.
1457
1458 2011-07-12 Martin Jambor <mjambor@suse.cz>
1459
1460 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1461 * cgraph.c (cgraph_get_node_or_alias): Removed.
1462 (change_decl_assembler_name): Changed all calls to
1463 cgraph_get_node_or_alias to a call to cgraph_get_node.
1464 (cgraph_make_decl_local): Likewise.
1465 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1466 * varasm.c (default_binds_local_p_1): Likewise.
1467 (decl_binds_to_current_def_p): Likewise.
1468
1469 2011-07-12 Jakub Jelinek <jakub@redhat.com>
1470
1471 PR tree-optimization/49712
1472 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1473
1474 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1475
1476 * genautomata.c (add_arc): Return void. All callers changed.
1477 (make_automaton): Remove dead code.
1478
1479 2011-07-11 Richard Henderson <rth@redhat.com>
1480
1481 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1482 (DW_FRAME_POINTER_REGNUM): New.
1483 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1484 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1485 (dwf_regno): New.
1486 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1487 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1488 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1489 Use it.
1490 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1491 * dwarf2out.h (dwarf_frame_regnum): New.
1492 (struct cfa_loc): Document the domain of the reg member.
1493
1494 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
1495
1496 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1497 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1498
1499 2011-07-11 Jakub Jelinek <jakub@redhat.com>
1500
1501 PR debug/49676
1502 * dwarf2out.c (int_shift_loc_descriptor): New function.
1503 (int_loc_descriptor): If shorter, emit i as
1504 (i >> shift), shift, DW_OP_shl for suitable shift value.
1505 Similarly, try to optimize large negative values using
1506 DW_OP_neg of a positive value if shorter.
1507 (size_of_int_shift_loc_descriptor): New function.
1508 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1509 changes.
1510 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1511 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1512 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1513 is shorter.
1514 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1515 addend as added DW_OP_plus if it is shorter.
1516
1517 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1518
1519 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1520 (DTORS_SECTION_ASM_OP): Define.
1521
1522 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1523
1524 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1525 * config/t-dfprules: Move to ../libgcc/config.
1526 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1527 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1528 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1529 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1530 Likewise.
1531 (i[34567]86-*-cygwin*): Likewise.
1532 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1533 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1534 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1535 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1536 D64PBIT_FUNCS, D128PBIT_FUNCS.
1537
1538 2011-07-11 Richard Guenther <rguenther@suse.de>
1539
1540 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1541 translate the source value-range through the conversion chain.
1542
1543 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1544
1545 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1546
1547 2011-07-11 Arthur Loiret <aloiret@debian.org>
1548
1549 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1550 a bi-arch compiler defaulting to 31-bit. In this case:
1551 (tmake_file): Add s390/t-linux64.
1552 * doc/install.texi: Add s390-linux to the list of targets supporting
1553 --enable-targets=all.
1554
1555 2011-07-11 Arthur Loiret <aloiret@debian.org>
1556 Matthias Klose <doko@debian.org>
1557
1558 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1559 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1560 (tm_file): Add mips/linux64.h.
1561 (tmake_file): Add mips/t-linux64.
1562 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1563 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1564 instead of hardcoded mabi=n32.
1565 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1566 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1567 convention.
1568
1569 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1570
1571 * passes.c (init_optimization_passes): Add invariant motion pass
1572 after induction variable optimization.
1573
1574 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1575
1576 PR target/39633
1577 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1578 offsets 1..5 set cc0 in a usable way.
1579
1580 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
1581
1582 * tree.h (call_expr_arg): Remove.
1583 (call_expr_argp): Likewise.
1584
1585 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1586
1587 * config/sparc/sparc.md (save_register_window_1): Rename to...
1588 (window_save): ...this.
1589 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1590 (emit_window_save): ...this.
1591 (sparc_expand_prologue): Adjust to above renaming.
1592
1593 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1594
1595 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1596 of movabs for x32.
1597
1598 2011-07-10 Richard Henderson <rth@redhat.com>
1599
1600 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1601 run final, instead of emitting text directly.
1602
1603 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1604
1605 * config/i386/i386.c (ix86_option_override_internal): Turn on
1606 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1607 small PIC models for TARGET_X32.
1608
1609 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
1610
1611 PR target/49684
1612 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1613 $(LIBGCC2_CFLAGS).
1614
1615 PR bootstrap/49680
1616 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1617 stray notes and debug insns by using prev_nonnote_nondebug_insn
1618 instead of PREV_INSN.
1619
1620 2011-07-09 Richard Henderson <rth@redhat.com>
1621
1622 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1623 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1624 * dwarf2out.c: ... here.
1625 (output_all_cfis): Remove.
1626 (dwarf2out_switch_text_section): Use output_cfis directly.
1627 (size_of_locs): Export.
1628 (output_loc_sequence, output_loc_sequence_raw): Export.
1629 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1630 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1631 output_cfa_loc_raw): Move to ...
1632 * dwarfcfi.c: ... here.
1633 * dwarf2out.h: Update decls.
1634
1635 2011-07-09 Richard Henderson <rth@redhat.com>
1636
1637 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1638 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1639 * dwarf2cfi.c: ... here.
1640 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1641 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1642 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1643 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1644 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1645
1646 2011-07-09 Richard Henderson <rth@redhat.com>
1647
1648 * dwarf2cfi.c (cie_return_save): New.
1649 (queue_reg_save): Use compare_reg_or_pc.
1650 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1651 (dwarf2out_frame_debug_expr): Likewise.
1652 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1653 (initial_return_save): Likewise.
1654 (execute_dwarf2_frame): Save and restore initial return save from
1655 the cie to the fde.
1656 * config/mips/mips.c (mips_frame_set): Remove special case for
1657 DWARF_FRAME_RETURN_COLUMN.
1658
1659 2011-07-09 Richard Henderson <rth@redhat.com>
1660
1661 * dwarf2cfi.c (lookup_cfa): Remove.
1662 (execute_dwarf2_frame): Assert queues are empty on entry.
1663 Setup initial cfa directly, not via lookup_cfa.
1664 Don't clear args_size state here.
1665
1666 2011-07-09 Richard Henderson <rth@redhat.com>
1667
1668 * dwarf2cfi.c (add_cfi_vec): New.
1669 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1670 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1671 (execute_dwarf2_frame): Set add_cfi_vec.
1672
1673 2011-07-09 Richard Henderson <rth@redhat.com>
1674
1675 * defaults.h (ASM_COMMENT_START): Move here...
1676 * dwarf2asm.c: ... from here.
1677 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1678 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1679 * varasm.c: Likewise.
1680
1681 2011-07-09 Richard Henderson <rth@redhat.com>
1682
1683 PR debug/49686
1684 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1685 (create_cfi_notes): ... do it here instead.
1686
1687 2011-07-09 Jakub Jelinek <jakub@redhat.com>
1688
1689 PR debug/49676
1690 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1691 (address_of_int_loc_descriptor): Use it.
1692 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1693
1694 2011-07-09 Richard Henderson <rth@redhat.com>
1695
1696 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1697 (prologue, epilogue): New.
1698 (return, *rts): New.
1699 (blockage, setd, seti): New.
1700 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1701 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1702 (pdp11_saved_regno): New.
1703 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1704 generate rtl instead of text.
1705 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1706 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1707 * config/pdp11/pdp11-protos.h: Update.
1708
1709 2011-07-09 Richard Henderson <rth@redhat.com>
1710
1711 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1712 try to insert an rtl prologue here.
1713 (rs6000_output_function_epilogue): Similarly.
1714 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1715 satisfy !TARGET_SCHED_PROLOG.
1716 (epilogue, sibcall_epilogue): Likewise.
1717
1718 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1719
1720 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1721 (FP_REG_P): Delete.
1722 (IN_OR_GLOBAL_P): Likewise.
1723
1724 2011-07-08 Jason Merrill <jason@redhat.com>
1725
1726 PR c++/45437
1727 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1728 compound assignment.
1729
1730 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1731 * cgraph.h: Declare it.
1732 * ipa.c (function_and_variable_visibility): Make sure thunks
1733 have the right visibility.
1734
1735 2011-07-08 Richard Henderson <rth@redhat.com>
1736
1737 PR bootstrap/49680
1738 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1739 any tablejump vector.
1740
1741 PR bootstrap/49680
1742 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1743 end of the prologue.
1744
1745 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1746
1747 PR target/49621
1748 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1749 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1750 * config/rs6000/vector.md (vector_select_<mode>,
1751 vector_select_<mode>_uns): Change second operand of NE to
1752 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1753 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1754 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1755 zero_constant of the corresponding vector mode.
1756 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1757 Likewise.
1758
1759 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1760
1761 * graphite-dependences.c (build_alias_set_powerset): Remove
1762 continue from loop, add one more assert.
1763
1764 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1765
1766 PR target/46779
1767 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1768 In particular, allow 8-bit values in r28 and r29.
1769 (avr_hard_regno_scratch_ok): Disallow any register that might be
1770 part of the frame pointer.
1771 (avr_hard_regno_rename_ok): Same.
1772 (avr_legitimate_address_p): Don't allow SUBREGs.
1773
1774 2011-07-08 Julian Brown <julian@codesourcery.com>
1775
1776 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1777 big-endian mode.
1778 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1779 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1780 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1781 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1782 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1783 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1784 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1785 registers in big-endian mode.
1786
1787 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1788
1789 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1790 in terms of another.
1791 (write_attr_value): Write a cast if necessary.
1792
1793 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1794 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1795 (REG_WORDS_BIG_ENDIAN): Document.
1796 * doc/tm.texi: Regenerate.
1797 * reload.c (operands_match_p): Take it into account.
1798 (reload_adjust_reg_for_mode): Likewise.
1799 * rtlanal.c (subreg_get_info): Likewise.
1800
1801 2011-07-08 Richard Guenther <rguenther@suse.de>
1802
1803 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1804 folding.
1805
1806 2011-07-08 Kai Tietz <ktietz@redhat.com>
1807
1808 * fold-const.c (fold_truth_andor): Factored out truth_andor
1809 label from fold_binary as function.
1810 (fold_binary_loc): Replace truth_andor lable
1811 by function fold_truth_andor.
1812
1813 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1814
1815 PR middle-end/49519
1816 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1817 check if address is stored in register. If so - give up.
1818 (check_sibcall_argument_overlap_1): Do not perform check of
1819 overlapping when it is call to address.
1820
1821 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1822
1823 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1824 of magic '31'.
1825
1826 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1827
1828 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1829 GET_MODE_BITSIZE where appropriate.
1830 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1831 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1832 expand_float, expand_fix): Likewise.
1833 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1834 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1835 * stor-layout.c (get_mode_bounds): Likewise.
1836 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1837 Likewise.
1838 * convert.c (convert_to_integer): Likewise.
1839 * expmed.c (expand_shift_1): Likewise.
1840
1841 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1842 a bitsize.
1843
1844 * optabs.c (expand_binop): Tighten conditions for doubleword
1845 expansions.
1846 (widen_bswap): Assert that mode bitsize and precision are the same.
1847 * stor-layout.c (get_best_mode): Skip modes that have lower
1848 precision than bitsize.
1849 * recog.c (simplify_while_replacing): Assert that bitsize and
1850 precision are the same.
1851
1852 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1853
1854 * Makefile.in (LIBGCOV): Remove.
1855 (libgcc.mvars): Remove LIBGCOV.
1856 * libgov.c: Move to ../libgcc.
1857
1858 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1859
1860 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1861
1862 2011-07-08 Martin Jambor <mjambor@suse.cz>
1863
1864 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1865 is too big for total scalarization.
1866
1867 2011-07-07 Richard Henderson <rth@redhat.com>
1868
1869 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1870 (DBX_DEBUGGING_INFO): Undef.
1871
1872 2011-07-07 Richard Henderson <rth@redhat.com>
1873
1874 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1875 Handle some opcodes specially for debugging.
1876 * print-rtl.c: Include dwarf2out.h
1877 (print_rtx): Handle NOTE_INSN_CFI.
1878 * Makefile.in (print-rtl.o): Update.
1879
1880 2011-07-07 Richard Henderson <rth@redhat.com>
1881
1882 * tree-pass.h (pass_dwarf2_frame): Declare.
1883 * passes.c (init_optimization_passes): Add it.
1884 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1885 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1886 make static, do not call add_cfis_to_fde.
1887 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1888 dwarf2out_frame_init): Merge into...
1889 (execute_dwarf2_frame): ... here. New function.
1890 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1891 saved_do_cfi_asm to a tri-state variable.
1892 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1893 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1894 if it has yet to be done. Don't call dwarf2cfi_function_init.
1895 * dwarf2out.h, debug.h: Update decls.
1896 * final.c (final_start_function): Don't call
1897 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1898 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1899 * toplev.c (lang_dependent_init): Likewise.
1900
1901 2011-07-07 Richard Henderson <rth@redhat.com>
1902
1903 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1904 FDE_TABLE_INCREMENT): Replace with...
1905 (fde_vec): ... this, a new vector.
1906 (current_fde): Remove. Replace all users with cfun->fde.
1907 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1908 (size_of_aranges, dwarf2out_finish): Likewise.
1909 (dwarf2out_alloc_current_fde): Break out from ...
1910 (dwarf2out_begin_prologue): ... here.
1911 (dwarf2out_frame_init): Remove.
1912 * dwarf2cfi.c: Update all users of current_fde.
1913 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1914 * dwarf2out.h: Update decls.
1915 (dw_fde_node): Add fde_index member.
1916 * function.h (struct function): Add fde member.
1917
1918 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1919 Richard Henderson <rth@redhat.com>
1920
1921 * dwarf2cfi.c (add_cfi): Remove.
1922 (dwarf2out_cfi_label): Remove force argument. Only generate the
1923 label name.
1924 (add_fde_cfi): Simplify the different code paths.
1925 (add_cie_cfi): New.
1926 (old_cfa, old_cfa_remember): New.
1927 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1928 (last_reg_save_label): Remove.
1929 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1930 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1931 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1932 dwarf2out_frame_debug_cfa_expression,
1933 dwarf2out_frame_debug_cfa_restore,
1934 dwarf2out_frame_debug_cfa_window_save,
1935 dwarf2out_frame_debug_expr): Remove label parameter.
1936 (cfi_label_required_p, add_cfis_to_fde): New.
1937 (dwarf2out_frame_debug_after_prologue): New.
1938 (dwarf2cfi_frame_init): Initialize old_cfa.
1939 (dwarf2out_frame_debug_restore_state): Likewise.
1940 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1941 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1942 * final.c (final_start_function): Call
1943 dwarf2out_frame_debug_after_prologue.
1944
1945 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1946 Richard Henderson <rth@redhat.com>
1947
1948 * dwarf2cfi.c (cfi_insn): New.
1949 (dwarf2out_cfi_label): Don't emit cfi label here.
1950 (add_fde_cfi): Create a NOTE_INSN_CFI.
1951 (dwarf2out_frame_debug): Setup cfi_insn.
1952 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1953 (dwarf2out_cfi_begin_epilogue): Make static.
1954 (dwarf2out_frame_debug_restore_state): Make static.
1955 * dwarf2out.c (output_cfi_directive): Make static.
1956 (dwarf2out_emit_cfi): New.
1957 * dwarf2out.h: Update.
1958 * final.c (final): Remove CFI notes.
1959 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1960 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1961 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1962 * insn-notes.def (NOTE_INSN_CFI): New.
1963 (NOTE_INSN_CFI_LABEL): New.
1964 * rtl.h (union rtunion_def): Add rt_cfi member.
1965 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1966
1967 2011-07-07 Richard Henderson <rth@redhat.com>
1968
1969 * dwarf2cfi.c: New file.
1970 * Makefile.in (OBJS): Add it.
1971 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1972 * gengtype.c (open_base_files): Include dwarf2out.h.
1973 * coretypes.h (enum var_init_status): Move from ...
1974 * rtl.h: ... here.
1975 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1976 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1977 expand_builtin_dwarf_sp_column, init_return_column_size,
1978 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1979 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1980 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1981 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1982 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1983 compute_barrier_args_size, dwarf2out_args_size,
1984 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1985 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1986 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1987 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1988 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1989 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1990 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1991 dwarf2out_frame_debug_cfa_expression,
1992 dwarf2out_frame_debug_cfa_restore,
1993 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1994 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1995 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1996 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1997 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1998 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1999 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
2000 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
2001 dw_loc_descr_node): Move to dwarf2out.h.
2002 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
2003 mem_loc_descriptor): Export.
2004 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
2005 (dwarf2out_frame_init): Extract CIE generation code to
2006 dwarf2cfi_frame_init.
2007
2008 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
2009
2010 PR target/49660
2011 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
2012 MASK_V8PLUS, remove commented out flag and reorder.
2013
2014 2011-07-07 Jakub Jelinek <jakub@redhat.com>
2015
2016 PR c/49644
2017 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
2018 one non-complex and one complex argument, call c_save_expr on both
2019 operands.
2020
2021 2011-07-07 Martin Jambor <mjambor@suse.cz>
2022
2023 PR middle-end/49495
2024 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
2025 (verify_cgraph_node): Some functinality moved to
2026 verify_edge_corresponds_to_fndecl, call it.
2027
2028 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2029
2030 * config.gcc (*local*): Remove.
2031 * doc/install-old.texi: Don't mention local configurations.
2032
2033 2011-07-07 Jakub Jelinek <jakub@redhat.com>
2034
2035 PR debug/49522
2036 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
2037 referencing debug insns that have been reset.
2038 (dead_debug_insert_before): Don't assert reg is non-NULL,
2039 instead return immediately if it is NULL.
2040
2041 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2042
2043 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2044
2045 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2046
2047 * hw-doloop.c: New file.
2048 * hw-doloop.h: New file.
2049 * Makefile.in (OBJS): Add hw-doloop.o.
2050 (hw-doloop.o): New rule.
2051 ($(obj_out_file)): Add hw-doloop.h dependency.
2052 * config/bfin/bfin.c: Include "hw-doloop.h".
2053 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
2054 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
2055 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
2056 type changed to hwloop_info. Return bool, true if the loop was
2057 successfully optimized. Remove code that was moved to
2058 hw-doloop.c, and adjust other parts.
2059 (hwloop_fail): New static function, containing parts that used
2060 to be in bfin_optimize_loop.
2061 (bfin_discover_loop, bfin_discover_loops, free_loops,
2062 bfin_reorder_loops): Remove.
2063 (hwloop_pattern_reg): New static function.
2064 (bfin_doloop_hooks): New variable.
2065 (bfin_reorg_loops): Remove most code, call reorg_loops.
2066 * config/bfin/bfin.md (doloop_end splitter): Also enable if
2067 loop counter is a memory_operand.
2068
2069 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
2070
2071 * config.gcc: Support --with-multilib-list for x86 Linux targets.
2072
2073 * configure.ac: Mention x86-64 for --with-multilib-list.
2074 * configure: Regenerated.
2075
2076 * config/i386/gnu-user64.h (SPEC_64): Support x32.
2077 (SPEC_32): Likewise.
2078 (ASM_SPEC): Likewise.
2079 (LINK_SPEC): Likewise.
2080 (TARGET_THREAD_SSP_OFFSET): Likewise.
2081 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
2082 (SPEC_X32): New.
2083
2084 * config/i386/i386.h (TARGET_X32): New.
2085 (TARGET_LP64): New.
2086 (LONG_TYPE_SIZE): Likewise.
2087 (POINTER_SIZE): Likewise.
2088 (POINTERS_EXTEND_UNSIGNED): Likewise.
2089 (OPT_ARCH64): Support x32.
2090 (OPT_ARCH32): Likewise.
2091
2092 * config/i386/i386.opt (mx32): New.
2093
2094 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
2095 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2096 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
2097 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2098
2099 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
2100 (BIONIC_DYNAMIC_LINKERX32): Likewise.
2101 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
2102
2103 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
2104
2105 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
2106
2107 * doc/invoke.texi: Document -mx32.
2108
2109 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2110
2111 * doc/invoke.texi (mwords-little-endian): Deprecate.
2112 * config/arm/arm.opt (mwords-little-endian): Likewise.
2113 * config/arm/arm.c (arm_option_override): Warn about the deprecation
2114 of -mwords-little-endian.
2115
2116 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2117
2118 * reload1.c (choose_reload_regs): Use mode sizes to check whether
2119 an old reload register completely defines the required value.
2120
2121 2011-07-07 Richard Guenther <rguenther@suse.de>
2122
2123 * fold-const.c (fold_unary_loc): Do not strip sign-changes
2124 for NEGATE_EXPR.
2125
2126 2011-07-07 Richard Guenther <rguenther@suse.de>
2127
2128 * tree-vrp.c (simplify_conversion_using_ranges): New function.
2129 (simplify_stmt_using_ranges): Call it.
2130
2131 2011-07-07 Kai Tietz <ktietz@redhat.com>
2132
2133 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
2134 (lookup_logical_inverted_value): Likewise.
2135 (simplify_bitwise_binary_1): Likewise.
2136 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
2137
2138 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2139
2140 * gcc.c (%[Spec]): Don't document.
2141 (struct spec_list): Update comment.
2142 (do_spec_1): Don't handle %[Spec].
2143 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
2144
2145 2011-07-07 Joseph Myers <joseph@codesourcery.com>
2146
2147 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
2148 default based on TARGET_ASM_NAMED_SECTION.
2149 * common/common-target.def (have_named_sections): Default to true.
2150 * common/config/default-common.c: Don't include tm.h.
2151 * common/config/picochip/picochip-common.c
2152 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
2153 * common/config/m32c/m32c-common.c: Remove.
2154 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
2155 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2156 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2157 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2158 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2159 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2160 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2161
2162 2011-07-07 Jakub Jelinek <jakub@redhat.com>
2163
2164 PR middle-end/49640
2165 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
2166 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
2167
2168 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2169
2170 PR libmudflap/49550
2171 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
2172
2173 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2174
2175 PR target/39150
2176 * configure.ac (gcc_cv_as_hidden): Also accept
2177 x86_64-*-solaris2.1[0-9]*.
2178 (gcc_cv_as_cfi_directive): Likewise.
2179 (gcc_cv_as_comdat_group_group): Likewise.
2180 (set_have_as_tls): Likewise.
2181 * configure: Regenerate.
2182 * config.gcc (i[34567]86-*-solaris2*): Also handle
2183 x86_64-*-solaris2.1[0-9]*.
2184 * config.host (i[34567]86-*-solaris2*): Likewise.
2185 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
2186 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
2187 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
2188 (TARGET_LD_EMULATION): Use it.
2189 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
2190 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
2191 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
2192 (ASM_CPU64_DEFAULT_SPEC): Define.
2193 (ASM_CPU_SPEC): Use %(asm_cpu_default).
2194 (ASM_SPEC): Redefine.
2195 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
2196 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
2197 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
2198 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
2199 configuration.
2200 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
2201
2202 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2203
2204 * config/sol2.h (ASM_SPEC): Split into ...
2205 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
2206 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2207 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2208 (ASM_SPEC): Use ASM_SPEC_BASE.
2209 * config/sparc/sol2.h (ASM_SPEC): Redefine.
2210
2211 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
2212
2213 * config/avr/avr.md (*reload_insi): Change predicate #1 to
2214 const_int_operand. Ditto for peep2 producing this insn.
2215 Add argument to output_reload_insisf call.
2216 (*movsi,*movsf): Add argument to output_movsisf call.
2217 (*reload_insf): New insn and new peep2 to produce it.
2218 * config/avr/avr-protos.h (output_movsisf): Change prototype.
2219 (output_reload_insisf): Change prototype.
2220 * config/avr/avr.c (avr_asm_len): New function.
2221 (output_reload_insisf): Rewrite.
2222 (output_movsisf): Change prototype. output_reload_insisf for
2223 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
2224 (adjust_insn_length): Add argument to output_movsisf and
2225 output_reload_insisf call.
2226
2227 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2228
2229 * emit-rtl.c (paradoxical_subreg_p): New function.
2230 * rtl.h (paradoxical_subreg_p): Declare.
2231 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2232 apply_distributive_law, simplify_comparison, simplify_set): Use it.
2233 * cse.c (record_jump_cond, cse_insn): Likewise.
2234 * expr.c (force_operand): Likewise.
2235 * rtlanal.c (num_sign_bit_copies1): Likewise.
2236 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2237 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2238 (push_reload): Use precision to check for paradoxical subregs.
2239 * expmed.c (extract_bit_field_1): Likewise.
2240
2241 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2242 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2243 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2244 simplify_set, simplify_logical, expand_compound_operation,
2245 make_extraction, force_to_mode, if_then_else_cond, extended_count,
2246 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2247 record_value_for_reg): Likewise.
2248 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2249 * simplify-rtx. c (simplify_unary_operation_1,
2250 simplify_binary_operation_1, simplify_const_relational_operation):
2251 Likewise.
2252
2253 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2254 instead of GET_MODE_BITSIZE where appropriate.
2255 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2256 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2257 init_num_sign_bit_copies_in_rep): Likewise.
2258 * cse.c (fold_rtx, cse_insn): Likewise.
2259 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2260 * simplify-rtx.c (simplify_unary_operation_1,
2261 simplify_const_unary_operation, simplify_binary_operation_1,
2262 simplify_const_binary_operation, simplify_ternary_operation,
2263 simplify_const_relational_operation, simplify_subreg): Likewise.
2264 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2265 simplify_if_then_else, simplify_set, expand_compound_operation,
2266 expand_field_assignment, make_extraction, if_then_else_cond,
2267 make_compound_operation, force_to_mode, make_field_assignment,
2268 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2269 extended_count, try_widen_shift_mode, simplify_shift_const_1,
2270 simplify_comparison, record_promoted_value, simplify_compare_const,
2271 record_dead_and_set_regs_1): Likewise.
2272
2273 Revert:
2274 * simplify-rtx.c (simplify_const_binary_operation): Use the
2275 shift_truncation_mask hook instead of performing modulo by width.
2276 Compare against mode precision, not bitsize.
2277 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2278 Use shift_truncation_mask instead of constructing the value manually.
2279
2280 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2281
2282 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2283 declaration.
2284 (rs6000_save_toc_in_prologue_p): Ditto.
2285
2286 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2287 up the static chain (r11) during indirect function calls.
2288 (-msave-toc-indirect): New undocumented debug switch.
2289
2290 * config/rs6000/rs6000.c (struct machine_function): Add
2291 save_toc_in_prologue field to note whether the prologue needs to
2292 save the TOC value in the reserved stack location.
2293 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
2294 to save the TOC in the prologue, do so.
2295 (rs6000_trampoline_init): Don't allow creating AIX style
2296 trampolines if -mno-r11 is in effect.
2297 (rs6000_call_indirect_aix): New function to create AIX style
2298 indirect calls, adding support for -mno-r11 to suppress loading
2299 the static chain, and saving the TOC in the prologue instead of
2300 the call body.
2301 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2302 TOC in the prologue.
2303
2304 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2305 register numbers.
2306 (TOC_REGNUM): Ditto.
2307 (STATIC_CHAIN_REGNUM): Ditto.
2308 (ARG_POINTER_REGNUM): Ditto.
2309 (SFP_REGNO): Delete, unused.
2310 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2311 function descriptor offsets.
2312 (TOC_SAVE_OFFSET_64BIT): Ditto.
2313 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2314 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2315 (AIX_FUNC_DESC_SC_32BIT): Ditto.
2316 (AIX_FUNC_DESC_SC_64BIT): Ditto.
2317 (ptrload): New mode attribute for the appropriate load of a pointer.
2318 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2319 (call_indirect_aix64): Ditto.
2320 (call_value_indirect_aix32): Ditto.
2321 (call_value_indirect_aix64): Ditto.
2322 (call_indirect_nonlocal_aix32_internal): Ditto.
2323 (call_indirect_nonlocal_aix32): Ditto.
2324 (call_indirect_nonlocal_aix64_internal): Ditto.
2325 (call_indirect_nonlocal_aix64): Ditto.
2326 (call): Rewrite AIX indirect function calls. Add support for
2327 eliminating the static chain, and for moving the save of the TOC
2328 to the function prologue.
2329 (call_value): Ditto.
2330 (call_indirect_aix<ptrsize>): Ditto.
2331 (call_indirect_aix<ptrsize>_internal): Ditto.
2332 (call_indirect_aix<ptrsize>_internal2): Ditto.
2333 (call_indirect_aix<ptrsize>_nor11): Ditto.
2334 (call_value_indirect_aix<ptrsize>): Ditto.
2335 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2336 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2337 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2338 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2339 (call_nonlocal_aix64): Ditto.
2340
2341 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2342 -mno-r11 documentation.
2343
2344 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2345
2346 PR other/49658
2347 * doc/extend.texi (Compound Literals): Fix typo.
2348
2349 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2350
2351 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2352
2353 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2354
2355 * configure.ac (plugin-version.h): Generate
2356 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2357 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2358 macros.
2359
2360 * configure: Regenerate.
2361
2362 * doc/plugins.texi (Building GCC plugins): Mention
2363 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2364
2365 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2366
2367 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2368 * combine.c (make_extraction, gen_lowpart_or_truncate,
2369 apply_distributive_law, simplify_comparison,
2370 reg_truncated_to_mode, record_truncated_value): Use it.
2371 * cse.c (notreg_cost): Likewise.
2372 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2373 * expr.c (convert_move, convert_modes): Likewise.
2374 * optabs.c (expand_binop, expand_unop): Likewise.
2375 * postreload.c (move2add_last_label): Likewise.
2376 * regmove.c (optimize_reg_copy_3): Likewise.
2377 * rtlhooks.c (gen_lowpart_general): Likewise.
2378 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2379
2380 2011-07-06 Joseph Myers <joseph@codesourcery.com>
2381
2382 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2383
2384 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2385
2386 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2387 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2388 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2389 (simplify_const_unary_operation, simplify_binary_operation_1,
2390 simplify_const_binary_operation, simplify_const_relational_operation):
2391 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2392 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2393 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2394 simplify_shift_const_1, simplify_comparison): Likewise.
2395 * expr.c (convert_modes): Likewise.
2396 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2397 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2398 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2399
2400 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2401
2402 2011-07-06 Richard Guenther <rguenther@suse.de>
2403
2404 PR tree-optimization/49645
2405 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2406 register variables.
2407 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2408 in type qualification here ...
2409 (copy_reference_ops_from_ref): ... not here.
2410 (vn_reference_lookup_3): ... or here.
2411 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2412 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2413
2414 2011-07-06 Ian Lance Taylor <iant@google.com>
2415
2416 * doc/install.texi (Configuration): It's
2417 --enable-gnu-indirect-function, not --enable-indirect-function.
2418
2419 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2420
2421 * simplify-rtx.c (simplify_const_binary_operation): Use the
2422 shift_truncation_mask hook instead of performing modulo by width.
2423 Compare against mode precision, not bitsize.
2424 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2425 Use shift_truncation_mask instead of constructing the value manually.
2426
2427 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2428
2429 PR middle-end/47383
2430 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2431 address computation and convert to address_mode if needed.
2432
2433 2011-07-06 Richard Guenther <rguenther@suse.de>
2434
2435 * tree.c (build_common_tree_nodes_2): Merge with
2436 build_common_tree_nodes.
2437 * tree.h (build_common_tree_nodes): Adjust prototype.
2438 (build_common_tree_nodes_2): Remove.
2439 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2440 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2441
2442 2011-07-05 Jakub Jelinek <jakub@redhat.com>
2443
2444 PR tree-optimization/49618
2445 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2446 t recurse on the decl.
2447 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2448 return true if expr isn't known to be defined in current
2449 TU or some other LTO partition.
2450
2451 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2452
2453 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2454 override CASE_VALUES_THRESHOLD.
2455
2456 * stmt.c (toplevel): Include params.h.
2457 (case_values_threshold): Use the --param case-values-threshold
2458 value if non-zero, otherwise use machine dependent value.
2459 (expand_case): Use case_values_threshold.
2460
2461 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2462
2463 * doc/invoke.texi (--param case-values-threshold): Document.
2464
2465 2011-07-05 Richard Henderson <rth@redhat.com>
2466
2467 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2468 (dwarf2out_flush_queued_reg_saves): Make static.
2469 (dwarf2out_reg_save): Remove.
2470 (dwarf2out_return_save): Remove.
2471 (dwarf2out_return_reg): Remove.
2472 (dwarf2out_reg_save_reg): Remove.
2473 (dwarf2out_def_cfa): Merge into ...
2474 (dwarf2out_frame_init): ... here.
2475 * dwarf2out.h, tree.h: Remove declarations as necessary.
2476
2477 2011-07-05 Richard Henderson <rth@redhat.com>
2478
2479 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2480 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2481 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2482 the alloc insn.
2483
2484 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2485 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2486 (process_epilogue): Don't call dwarf2out_def_cfa.
2487
2488 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2489 indicate the return address save.
2490 (process_cfa_register): Likewise.
2491
2492 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2493 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2494
2495 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2496 for ar.pfs save at alloc insn.
2497
2498 2011-07-05 Richard Henderson <rth@redhat.com>
2499
2500 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2501 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2502 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2503 stack pointer save.
2504 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2505 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2506 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2507 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2508
2509 2011-07-05 Richard Henderson <rth@redhat.com>
2510
2511 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2512 VUNSPEC_* constants here instead of via define_constants.
2513 (VUNSPEC_PEM): New constant.
2514 (procedure_entry_mask): New insn.
2515 (prologue): New expander.
2516 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2517 (vax_expand_prologue): Rename from vax_output_function_prologue;
2518 emit rtl instead of text.
2519 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2520 (print_operand): Add 'x' prefix.
2521
2522 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2523
2524 PR middle-end/47715
2525 * calls.c (precompute_register_parameters): Promote the function
2526 argument before checking non-legitimate constant.
2527
2528 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2529
2530 PR tree-optimization/47654
2531 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2532 (lst_do_strip_mine_loop): Return an int.
2533 (lst_do_strip_mine): Same.
2534 (scop_do_strip_mine): Same.
2535 (scop_do_block): Loop blocking should strip-mine at least two loops.
2536 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2537 (scop_do_interchange): Same.
2538 * graphite-poly.h (scop_do_interchange): Update declaration.
2539 (scop_do_strip_mine): Same.
2540
2541 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2542
2543 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2544 (precision_for_interval): Removed.
2545 (gcc_type_for_interval): Use mpz_sizeinbase.
2546
2547 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2548
2549 * graphite-ppl.h (value_max): Correct computation of max.
2550
2551 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2552
2553 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2554
2555 2011-07-05 Richard Guenther <rguenther@suse.de>
2556
2557 * c-decl.c (c_init_decl_processing): Defer building common
2558 tree nodes to c_common_nodes_and_builtins.
2559
2560 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
2561
2562 PR tree-optimization/49580
2563 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2564 the loop's number of iterations.
2565 * tree-parloops.c (transform_to_exit_first_loop): Add the
2566 handling of the loop's number of iterations before the call
2567 to gimple_duplicate_sese_tail.
2568 Insert the stmt caclculating the new rhs of the loop's
2569 condition stmt to the preheader instead of iters_bb.
2570
2571 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2572
2573 PR rtl-optimization/47449
2574 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2575 register nor zero/sign extended hard register.
2576
2577 2011-07-05 Richard Guenther <rguenther@suse.de>
2578
2579 PR tree-optimization/49518
2580 PR tree-optimization/49628
2581 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2582 irrelevant and invariant data-references.
2583 (vect_analyze_data_ref_access): For invariant loads clear the
2584 group association.
2585
2586 2011-07-04 Jakub Jelinek <jakub@redhat.com>
2587
2588 PR rtl-optimization/49619
2589 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2590 pass VOIDmode as op0_mode to recursive call, and return temp even
2591 when different from tor, just if it is not IOR of the original
2592 PLUS arguments.
2593
2594 PR rtl-optimization/49472
2595 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2596 negating MULT, negate the second operand instead of first.
2597 (simplify_binary_operation_1) <case MULT>: If one operand is
2598 a NEG and the other is MULT, don't attempt to optimize by negation
2599 of the MULT operand if it only moves the NEG operation around.
2600
2601 PR debug/49602
2602 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2603 get_current_def return value if it can't be trusted to be
2604 the current value of the variable in the current bb.
2605
2606 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
2607
2608 PR target/49600
2609 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2610 general register to memory for !TARGET_INTER_UNIT_MOVES.
2611
2612 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2613
2614 PR target/44643
2615 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2616 instead of TREE_READONLY.
2617
2618 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2619
2620 * doc/extend.texi (AVR Built-in Functions): Update documentation
2621 of __builtin_avr_fmul*.
2622 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2623 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2624 * config/avr/avr.md (fmul): Rename to fmul_insn.
2625 (fmuls): Rename to fmuls_insn.
2626 (fmulsu): Rename to fmulsu_insn.
2627 (fmul,fmuls,fmulsu): New expander.
2628 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2629 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2630 * config/avr/libgcc.S (__fmul): New function.
2631 (__fmuls): New function.
2632 (__fmulsu,__fmulsu_exit): New function.
2633
2634 2011-07-04 Richard Guenther <rguenther@suse.de>
2635
2636 PR tree-optimization/49615
2637 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2638 basic-block index check.
2639
2640 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2641
2642 * longlong.h (count_leading_zeros, count_trailing_zeros,
2643 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2644 resp. 64.
2645
2646 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
2647
2648 PR tree-optimization/49610
2649 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2650 a basic block.
2651
2652 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2653 Olivier Hainque <hainque@adacore.com>
2654 Nicolas Setton <setton@adacore.com>
2655
2656 * tree.h (TYPE_ARTIFICIAL): New flag.
2657 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2658 the DIE of the type if it is artificial.
2659 (gen_array_type_die): Likewise.
2660 (gen_enumeration_type_die): Likewise.
2661 (gen_struct_or_union_type_die): Likewise.
2662 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2663 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2664
2665 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2666
2667 * tree-object-size.c (pass_through_call): Handle
2668 BUILT_IN_ASSUME_ALIGNED.
2669
2670 2011-07-01 Martin Jambor <mjambor@suse.cz>
2671
2672 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2673
2674 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2675
2676 PR middle-end/48016
2677 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2678 for stack save area.
2679 * function.c (expand_function_start): Likewise.
2680
2681 2011-07-01 Richard Guenther <rguenther@suse.de>
2682
2683 PR middle-end/49596
2684 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2685 may have unknown refs.
2686
2687 2011-07-01 Kai Tietz <ktietz@redhat.com>
2688
2689 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2690
2691 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2692
2693 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2694 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2695 (Specific, mips-sgi-irix6): Likewise.
2696
2697 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2698
2699 PR libmudflap/49549
2700 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2701
2702 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2703
2704 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2705 [idx]= and [idx1 ... idx2]= before initializers if needed for
2706 array initializers.
2707
2708 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2709
2710 * config.gcc (score-*-elf): Remove score7.o.
2711 * config/score/t-score-elf: Likewise.
2712 * config/score/score.c: Merge score7 to score.c and
2713 remove forwarding functions.
2714 * config/score/score7.c: Deleted.
2715 * config/score/score7.h: Deleted.
2716
2717 2011-07-01 Richard Guenther <rguenther@suse.de>
2718
2719 PR tree-optimization/49603
2720 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2721
2722 2011-06-30 Martin Jambor <mjambor@suse.cz>
2723
2724 * tree-sra.c (struct access): Rename total_scalarization to
2725 grp_total_scalarization
2726 (completely_scalarize_var): New function.
2727 (sort_and_splice_var_accesses): Set total_scalarization in the
2728 representative access.
2729 (analyze_access_subtree): Propagate total scalarization accross the
2730 tree, no holes in totally scalarized trees, simplify coverage
2731 computation.
2732 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2733 of completely_scalarize_record.
2734
2735 2011-06-30 Richard Henderson <rth@redhat.com>
2736
2737 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2738 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2739 * config/i386/i386.c: Don't include dwarf2out.h.
2740 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2741 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2742 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2743 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2744 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2745
2746 2011-06-30 Richard Henderson <rth@redhat.com>
2747
2748 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2749 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2750 * final.c (final_scan_insn): Look for it, and invoke
2751 dwarf2out_frame_debug before the insn if found.
2752
2753 2011-06-30 Richard Henderson <rth@redhat.com>
2754
2755 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2756 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2757
2758 2011-06-30 Richard Henderson <rth@redhat.com>
2759
2760 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2761 Define a vector of this type.
2762 (regs_saved_in_regs): Use a VEC.
2763 (num_regs_saved_in_regs): Remove.
2764 (compare_reg_or_pc): New.
2765 (record_reg_saved_in_reg): Split out from...
2766 (dwarf2out_flush_queued_reg_saves): ... here.
2767 (clobbers_queued_reg_save): Update for VEC.
2768 (reg_saved_in): Likewise.
2769 (dwarf2out_frame_debug_init): Likewise.
2770 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2771 (dwarf2out_frame_debug_cfa_register): Likewise.
2772
2773 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2774
2775 PR tree-optimization/49572
2776 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2777 type of the RHS instead of that of the LHS for the expression type.
2778
2779 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2780
2781 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2782 unconditionally.
2783
2784 2011-06-30 Richard Guenther <rguenther@suse.de>
2785
2786 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2787 * tree-ssa-structalias.c (create_variable_info_for): Do not
2788 add initial constraints for non-var-decls. Properly handle
2789 globals in other ltrans partitions.
2790 (intra_create_variable_infos): Manually create constraints for
2791 the fake no-alias parameter.
2792 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2793 and assert there are no clones.
2794
2795 2011-06-30 Richard Guenther <rguenther@suse.de>
2796
2797 PR tree-optimization/46787
2798 * tree-data-ref.c (dr_address_invariant_p): Remove.
2799 (find_data_references_in_stmt): Invariant accesses are ok now.
2800 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2801 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2802 invariant loads.
2803
2804 2011-06-30 Martin Jambor <mjambor@suse.cz>
2805
2806 PR tree-optimization/49094
2807 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2808 (build_accesses_from_assign): Use it.
2809
2810 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2811
2812 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2813 handling of BUILT_IN_ASSUME_ALIGNED.
2814
2815 PR debug/49364
2816 * dwarf2out.c (output_abbrev_section): Don't return early
2817 if abbrev_die_table_in_use is 1.
2818 (dwarf2out_finish): Instead don't call output_abbrev_section
2819 nor emit abbrev_section_label in that case.
2820
2821 2011-06-30 Nick Clifton <nickc@redhat.com>
2822
2823 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2824 for the V850E.
2825
2826 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2827
2828 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2829 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2830
2831 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
2832
2833 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2834 both pattern and original statements if necessary.
2835 (vect_transform_loop): Likewise.
2836 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2837 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2838 Mark the pattern statement only if the original statement doesn't
2839 have its own uses.
2840 (process_use): Call vect_mark_relevant with additional parameter.
2841 (vect_mark_stmts_to_be_vectorized): Likewise.
2842 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2843 (vect_analyze_stmt): Handle both pattern and original statements
2844 if necessary.
2845 (vect_transform_stmt): Don't store vectorized pattern statement
2846 in the original statement.
2847 (vect_is_simple_use_1): Use related pattern statement only if the
2848 original statement is irrelevant.
2849 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2850
2851 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
2852
2853 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2854 option.
2855 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2856 entry.
2857 (TARGET_AVX128_OPTIMAL): New definition.
2858 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2859 X86_TUNE_AVX128_OPTIMAL entry.
2860 (ix86_option_override_internal): Enable the generation
2861 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2862 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2863 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2864
2865 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2866
2867 PR tree-optimization/49539
2868 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2869 names by means of stmt_references_abnormal_ssa_name.
2870 (associate_plusminus): Call can_propagate_from before propagating
2871 from definition statements.
2872 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2873
2874 2011-06-29 Richard Guenther <rguenther@suse.de>
2875
2876 * doc/invoke.texi: Document -scev dump modifier.
2877 * tree-pass.h (TDF_SCEV): New dump flag.
2878 * tree-dump.c (dump_option_value_in): Add scev.
2879 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2880 * tree-scalar-evolution.c: Likewise.
2881
2882 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2883
2884 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2885 (cxa_type_match): Correct declaration.
2886 (__gnu_unwind_pr_common): Reconstruct additional indirection
2887 when __cxa_type_match returns succeeded_with_ptr_to_base.
2888
2889 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2890
2891 PR rtl-optimization/49114
2892 * reload.c (struct replacement): Remove SUBREG_LOC member.
2893 (push_reload): Do not set it.
2894 (push_replacement): Likewise.
2895 (subst_reload): Remove dead code.
2896 (copy_replacements): Remove assertion.
2897 (copy_replacements_1): Do not handle SUBREG_LOC.
2898 (move_replacements): Likewise.
2899 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2900 Detect subregs via recursive descent instead of via SUBREG_LOC.
2901
2902 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2903
2904 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2905 default_encode_section_info.
2906
2907 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2908
2909 PR tree-optimization/49545
2910 * builtins.c (get_object_alignment_1): Update function comment.
2911 Do not use DECL_ALIGN for functions, but test
2912 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2913 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2914 for functions here.
2915 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2916
2917 2011-06-29 Jakub Jelinek <jakub@redhat.com>
2918
2919 PR debug/49567
2920 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2921 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
2922
2923 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2924
2925 PR target/34734
2926 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
2927 about uninitialized data attributed 'progmem' from here...
2928 (avr_encode_section_info): ...to this new function.
2929 (TARGET_ENCODE_SECTION_INFO): New define.
2930 (avr_section_type_flags): For data in ".progmem.data", remove
2931 section flag SECTION_WRITE.
2932
2933 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2934
2935 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2936 _xmulhisi3_exit.
2937 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2938 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2939 (__umulhisi3): Ditto.
2940 * config/avr/avr.md (mulhisi3): New insn expender.
2941 (umulhisi3): New insn expender.
2942 (*mulhisi3_call): New insn.
2943 (*umulhisi3_call): New insn.
2944
2945 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2946
2947 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2948
2949 2011-06-28 Richard Henderson <rth@redhat.com>
2950
2951 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2952 all code and arguments that handled pushes. Update all callers.
2953
2954 2011-06-28 Richard Henderson <rth@redhat.com>
2955
2956 * config/arm/arm.c (arm_output_function_prologue): Don't call
2957 thumb1_output_function_prologue.
2958 (arm_expand_prologue): Avoid dead store.
2959 (number_of_first_bit_set): Use ctz_hwi.
2960 (thumb1_emit_multi_reg_push): New.
2961 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2962 to emit the entire prologue as rtl.
2963 (thumb1_output_interwork): Split out from
2964 thumb1_output_function_prologue.
2965 (thumb1_output_function_prologue): Remove.
2966 (arm_attr_length_push_multi): Handle thumb1.
2967 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2968 (prologue_thumb1_interwork): New.
2969 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2970 * config/arm/predicates.md (push_mult_memory_operand): New.
2971
2972 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2973
2974 * config/sparc/sync.md (*stbar): Delete.
2975 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2976
2977 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2978
2979 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2980
2981 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2982
2983 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2984 (TARGET_64BIT_DEFAULT): Define.
2985 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2986 of tm_file.
2987 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2988
2989 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2990
2991 * common.opt (in_lto_p): New Variable entry.
2992 * flags.h (in_lto_p): Move to common.opt.
2993 * gcc.c: Include params.h.
2994 (set_option_handlers): Also use common_handle_option and
2995 target_handle_option.
2996 (main): Call global_init_params, finish_params and init_options_struct.
2997 * opts.c (debug_type_names): Move from toplev.c.
2998 (print_filtered_help): Access quiet_flag through opts pointer.
2999 (common_handle_option): Return early in the driver for some options.
3000 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
3001 opts pointer.
3002 * toplev.c (in_lto_p): Move to common.opt.
3003 (debug_type_names): Move to opts.c.
3004 * Makefile.in (OBJS): Remove opts.o.
3005 (OBJS-libcommon-target): Add opts.o.
3006 (gcc.o): Update dependencies.
3007
3008 2011-06-28 Kai Tietz <ktietz@redhat.com>
3009
3010 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
3011
3012 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3013
3014 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
3015 with '=' constraint modifier.
3016 (*divdf3_vfp): Likewise.
3017 ("*mulsf3_vfp"): Likewise.
3018 ("*muldf3_vfp"): Likewise.
3019 ("*mulsf3negsf_vfp"): Likewise.
3020 ("*muldf3negdf_vfp"): Likewise.
3021
3022 2011-06-28 Nick Clifton <nickc@redhat.com>
3023
3024 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
3025 relaxation when performing an incremental link.
3026
3027 2011-06-28 Kai Tietz <ktietz@redhat.com>
3028
3029 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
3030 within BB from last to first.
3031
3032 2011-06-28 Joseph Myers <joseph@codesourcery.com>
3033
3034 * genattr-common.c: New. Based on genattr.c.
3035 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
3036 (MOSTLYCLEANFILES): Add insn-attr-common.h.
3037 (opts.o): Update dependencies.
3038 (.PRECIOUS): Add insn-attr-common.h.
3039 (simple_rtl_generated_h): Add insn-attr-common.h.
3040 (build/genattr-common.o): New.
3041 (genprogrtl): Add attr-common.
3042 * genattr.c (main): Include insn-attr-common.h. Don't generate
3043 definitions of DELAY_SLOTS or INSN_SCHEDULING.
3044 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
3045
3046 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
3047
3048 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
3049 avr-*-* and avr-*-rtems* targets.
3050
3051 * config/avr/elf.h: New file.
3052 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
3053 (TARGET_ASM_SELECT_SECTION): Define.
3054 (INIT_SECTION_ASM_OP): Undefine.
3055 (FINI_SECTION_ASM_OP): Undefine.
3056 (READONLY_DATA_SECTION_ASM_OP): Undefine.
3057 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
3058 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
3059 * config/avr/avr.h:
3060 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
3061 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
3062 (MAX_OFILE_ALIGNMENT): Move to elf.h.
3063 (STRING_LIMIT): Move to elf.h.
3064 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
3065 (ASM_DECLARE_OBJECT_NAME): Remove.
3066 (ESCAPES): Remove.
3067 (ASM_OUTPUT_SKIP): Remove.
3068 (DWARF2_DEBUGGING_INFO): Remove.
3069 (OBJECT_FORMAT_ELF): Remove.
3070 (USER_LABEL_PREFIX): Remove.
3071 (ASM_OUTPUT_EXTERNAL): Remove.
3072 (ASM_OUTPUT_ASCII): Remove.
3073 (TYPE_ASM_OP): Remove.
3074 (SIZE_ASM_OP): Remove.
3075 (WEAK_ASM_OP): Remove.
3076 (STRING_ASM_OP): Remove.
3077 (SET_ASM_OP): Remove.
3078 (ASM_WEAKEN_LABEL): Remove.
3079 (TYPE_OPERAND_FMT): Remove.
3080 (ASM_DECLARE_FUNCTION_SIZE): Remove.
3081 (ASM_FINISH_DECLARE_OBJECT): Remove.
3082 (NO_DOLLAR_IN_LABEL): Remove.
3083 (ASM_GENERATE_INTERNAL_LABEL): Remove.
3084 (ASM_OUTPUT_CASE_LABEL): Remove.
3085 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
3086 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
3087 (gas_output_ascii): Remove.
3088 (gas_output_limited_string): Remove.
3089 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3090 * config/avr/avr-protos.h
3091 (gas_output_ascii): Remove prototye.
3092 (gas_output_limited_string): Remove prototype.
3093
3094 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
3095
3096 PR target/48637
3097 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
3098 asm operands.
3099
3100 2011-06-27 Jan Hubicka <jh@suse.cz>
3101
3102 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
3103 node instead of references in node.
3104
3105 2011-06-27 Richard Henderson <rth@redhat.com>
3106
3107 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
3108 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
3109 inside ifdef.
3110
3111 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3112
3113 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
3114
3115 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
3116 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
3117 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
3118 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
3119 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
3120 (evaluate_stmt, execute_fold_all_builtins): Handle
3121 BUILT_IN_ASSUME_ALIGNED.
3122 * tree-ssa-dce.c (propagate_necessity): Likewise.
3123 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3124 call_may_clobber_ref_p_1): Likewise.
3125 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
3126 (expand_builtin_assume_aligned): New function.
3127 * doc/extend.texi (__builtin_assume_aligned): Document.
3128
3129 PR debug/49544
3130 * cselib.c (promote_debug_loc): If cselib_preserve_constants
3131 and l has two DEBUG_INSN owned locs instead of just one, adjust
3132 the second location's setting_insn too.
3133
3134 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3135
3136 PR libmudflap/38738
3137 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
3138
3139 2011-06-27 Nick Clifton <nickc@redhat.com>
3140
3141 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
3142 bit position of highest bit set into a count of the high zero bits.
3143
3144 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3145
3146 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
3147
3148 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3149
3150 PR lto/48492
3151 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
3152 to a NULL parent.
3153
3154 2011-06-27 Richard Guenther <rguenther@suse.de>
3155
3156 PR tree-optimization/49394
3157 * passes.c (execute_one_pass): Restore current_pass after
3158 applying IPA transforms.
3159
3160 2011-06-27 Kai Tietz <ktietz@redhat.com>
3161
3162 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
3163 out of type precision after operation.
3164 (find_bswap): Take for limit value the integer auto-promotion
3165 into account.
3166
3167 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3168
3169 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
3170 forward scan as well.
3171
3172 2011-06-27 Tristan Gingold <gingold@adacore.com>
3173
3174 PR target/44241
3175 * config/vms/vms-protos.h: New file.
3176 * config/vms/vms-crtlmap.map: New file.
3177 * config/vms/vms.c: New file.
3178 * config/vms/make-crtlmap.awk: New file.
3179 * config/vms/vms-crtl.h: File removed.
3180 * config/vms/vms-crtl-64.h: File removed.
3181 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
3182 * config/alpha/vms64.h: Do not include vms-crtl-64.h
3183 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
3184 clear some builtins on VMS. Calls vms_patch_builtins.
3185 (avms_asm_output_external): Remove.
3186 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
3187 (struct crtl_name_spec): Remove
3188 (DO_CTRL_NAMES): Remove.
3189 * config/ia64/vms.h (struct crtl_name_spec): Remove
3190 (DO_CTRL_NAMES): Remove.
3191 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
3192 clear some builtins on VMS. Calls vms_patch_builtins.
3193 (ia64_asm_output_external): Remove DO_CRTL_NAME.
3194 * config/ia64/vms64.h: Do not include vms-crtl-64.h
3195 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
3196
3197 2011-06-27 Tristan Gingold <gingold@adacore.com>
3198
3199 * config/alpha/alpha.c (alpha_end_function): Always generate .end
3200 directive on VMS.
3201
3202 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3203
3204 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
3205 the function receives nonlocal gotos.
3206
3207 2011-06-27 Richard Guenther <rguenther@suse.de>
3208
3209 PR tree-optimization/49536
3210 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3211 For non-scalar inner types use a scalar type according to
3212 the scalar inner mode.
3213
3214 2011-06-27 Richard Guenther <rguenther@suse.de>
3215
3216 PR tree-optimization/49365
3217 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3218
3219 2011-06-27 Richard Guenther <rguenther@suse.de>
3220
3221 PR tree-optimization/49169
3222 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3223 the alignment of function decls.
3224
3225 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
3226
3227 PR target/47997
3228 * config/darwin.c (darwin_mergeable_string_section): Place string
3229 constants in '.cstring' rather than '.const' when CF/NSStrings are
3230 active.
3231
3232 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
3233
3234 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3235 (emit_save_register_window): Likewise.
3236 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3237 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
3238 Swap back %o7/%i7 in register naming.
3239
3240 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
3241
3242 PR driver/49371
3243 * config/darwin.c (darwin_override_options): Improve warning when
3244 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3245 is given with fpie/fPIE.
3246 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3247 * config/darwin9.h (PIE_SPEC): New.
3248
3249 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
3250
3251 * timevar.c (timevar_print): Increase width for display of timevar
3252 name.
3253
3254 2011-06-24 Jakub Jelinek <jakub@redhat.com>
3255
3256 PR c++/46400
3257 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3258 instead of TYPE_CHAIN for chain_next for types.
3259
3260 2011-06-24 Richard Henderson <rth@redhat.com>
3261
3262 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3263 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3264 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3265 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3266 (sparc_flat_expand_prologue): Emit individual instructions
3267 instead of one of the above.
3268
3269 2011-06-24 Easwaran Raman <eraman@google.com>
3270
3271 PR rtl-optimization/49429
3272 PR target/49454
3273 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
3274 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3275 used to copy y into x.
3276 * calls.c (initialize_argument_information): Mark
3277 an argument addressable if it is passed by invisible reference.
3278 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
3279 if it is passed by reference.
3280
3281 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
3282
3283 PR rtl-optimization/49504
3284 * rtlanal.c (nonzero_bits1): Properly handle addition or
3285 subtraction of a pointer in Pmode if pointers extend unsigned.
3286 (num_sign_bit_copies1): Likewise.
3287
3288 2011-06-24 Martin Jambor <mjambor@suse.cz>
3289
3290 PR tree-optimizations/49516
3291 * tree-sra.c (sra_modify_assign): Choose the safe path for
3292 aggregate copies if we also did scalar replacements.
3293
3294 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3295
3296 PR target/49335
3297 * config/arm/predicates.md (add_operator): New.
3298 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3299
3300 2011-06-24 Andi Kleen <ak@linux.intel.com>
3301
3302 * tree-sra.c (type_internals_preclude_sra_p): Add msg
3303 parameter. Split up ifs and report reason in *msg.
3304 (reject): Add.
3305 (find_var_candiate): Add msg variable.
3306 Split up ifs and report reason to reject.
3307 (find_param_candidates): Add msg variable.
3308 Pass msg to type_internals_preclude_sra_p.
3309
3310 2011-06-23 Jeff Law <law@redhat.com>
3311
3312 PR middle-end/48770
3313 * reload.h (reload): Change to return a bool.
3314 * ira.c (ira): If requested by reload, run a fast DCE pass after
3315 reload has completed. Fix comment typo.
3316 * reload1.c (need_dce): New file scoped static.
3317 (reload): Set reload_completed here. Return whether or not a DCE
3318 pass after reload is needed.
3319 (delete_dead_insn): Set need_dce as needed.
3320
3321 PR middle-end/49465
3322 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3323 to detect threading through joiner block. If there was already
3324 an edge to the new target, then do not change the PHI nodes.
3325
3326 2011-06-23 Jakub Jelinek <jakub@redhat.com>
3327
3328 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3329 get_pointer_alignment to see if base isn't sufficiently aligned.
3330
3331 2011-06-23 Jan Hubicka <jh@suse.cz>
3332
3333 PR tree-optimize/49373
3334 * tree-pass.h (all_late_ipa_passes): Declare.
3335 * cgraphunit.c (init_lowered_empty_function): Fix properties.
3336 (cgraph_optimize): Execute late passes; remove unreachable funcions
3337 after materialization.
3338 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3339 LTOing.
3340 * passes.c (all_late_ipa_passes): Declare.
3341 (dump_passes, register_pass): Handle late ipa passes.
3342 (init_optimization_passes): Move ipa_pta to late passes; schedule
3343 fixup_cfg at beggining of all_passes.
3344 (apply_ipa_transforms): New function.
3345 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3346
3347 2011-06-23 Joseph Myers <joseph@codesourcery.com>
3348
3349 * params.c: Include common/common-target.h. Don't include tm.h.
3350 (lang_independent_params): Move from toplev.c.
3351 (global_init_params): New.
3352 * params.h (global_init_params): Declare.
3353 * target.def (default_params): Move to common-target.def.
3354 * toplev.c (lang_independent_options): Remove.
3355 (lang_independent_params): Move to params.c.
3356 (general_init): Use global_init_params.
3357 * common/common-target.def (option_default_params): Move from
3358 target.def.
3359 * common/config/ia64/ia64-common.c: Include params.h.
3360 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3361 from ia64.c.
3362 * common/config/rs6000/rs6000-common.c: Include params.h.
3363 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3364 from rs6000.c.
3365 * common/config/sh/sh-common.c: Include params.h.
3366 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3367 from sh.c.
3368 * common/config/spu/spu-common.c: Include params.h.
3369 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3370 from spu.c.
3371 * config/ia64/ia64.c (ia64_option_default_params,
3372 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3373 * config/rs6000/rs6000.c (rs6000_option_default_params,
3374 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3375 * config/sh/sh.c (sh_option_default_params,
3376 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3377 * config/spu/spu.c (spu_option_default_params,
3378 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3379 * Makefile.in (OBJS): Remove params.o.
3380 (OBJS-libcommon-target): Add params.o.
3381 (params.o, $(common_out_object_file)): Update dependencies.
3382 * doc/tm.texi: Regenerate.
3383
3384 2011-06-23 Alan Modra <amodra@gmail.com>
3385
3386 PR bootstrap/49383
3387 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3388 invocation for 2011-06-09 changes.
3389
3390 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3391
3392 PR libgomp/49490
3393 * omp-low.c (expand_omp_for_static_nochunk): Only
3394 use n ceil/ nthreads size for the first n % nthreads threads in the
3395 team instead of all threads except for the last few ones which
3396 get less work or none at all.
3397
3398 PR debug/49496
3399 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3400 uses.
3401
3402 2011-06-22 Richard Guenther <rguenther@suse.de>
3403
3404 PR tree-optimization/49493
3405 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3406 Refer to the alias target of variables.
3407 (associate_varinfo_to_alias_1): Remove.
3408 (ipa_pta_execute): Do not associate aliases with anything.
3409 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3410 (cgraph_function_node): Likewise.
3411 (cgraph_function_or_thunk_node): Likewise.
3412 (varpool_variable_node): Likewise.
3413
3414 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3415
3416 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3417 * config.gcc (arm*-*-linux*): Default to gnu tls.
3418 (arm*-*-*): Add --with-tls option.
3419 (all_defaults): Add 'tls'.
3420
3421 2011-06-22 Richard Henderson <rth@redhat.com>
3422
3423 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3424 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3425 (dwarf2out_frame_debug_cfa_window_save): Rename from
3426 dwarf2out_window_save; make static.
3427 * tree.h (dwarf2out_window_save): Don't declare.
3428
3429 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3430 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3431 (emit_save_register_window): Rename from gen_save_register_window;
3432 emit the insn and add REG_CFA_* notes.
3433 (sparc_expand_prologue): Update to match.
3434 * config/sparc/sparc.md (save_register_window_1): Simplify from
3435 save_register_window<P:mode>.
3436
3437 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3438
3439 PR target/49497
3440 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3441 (*lea_general_2_zext): Likewise.
3442 (imul to lea peepholes): Use const359_operand and check
3443 TARGET_PARTIAL_REG_STALL.
3444
3445 * config/i386/predicates.md (const359_operand): New.
3446
3447 2011-06-22 Michael Matz <matz@suse.de>
3448
3449 * cgraphunit.c (assemble_thunk): Use correct return type.
3450
3451 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
3452 Dmitry Melnik <dm@ispras.ru>
3453
3454 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3455 (neon_output_shift_immediate): Ditto.
3456 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3457 prototype.
3458 (neon_output_shift_immediate): Ditto.
3459 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3460 (vashr<mode>3_imm): New insn pattern.
3461 (vlshr<mode>3_imm): Ditto.
3462 (vashr<mode>3): Modified constraint.
3463 (vlshr<mode>3): Ditto.
3464 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3465 predicate.
3466 (imm_for_neon_rshift_operand): Ditto.
3467 (imm_lshift_or_reg_neon): Ditto.
3468 (imm_rshift_or_reg_neon): Ditto.
3469
3470 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3471
3472 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3473
3474 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3475 builtin calls even if likelyvalue is not CONSTANT.
3476 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3477 Return get_value_for_expr of first operand
3478 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3479 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3480 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3481 their non-checking counterparts.
3482 (call_may_clobber_ref_p_1): Likewise.
3483 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3484 like their non-checking counterparts.
3485 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3486 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3487 like their non-checking counterparts.
3488 (find_func_clobbers): Likewise.
3489 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3490 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3491
3492 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3493 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3494 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3495 of base type reference as argument.
3496 (resolve_addr_in_expr): Likewise. Fix keep computation.
3497 (convert_descriptor_to_signed): Renamed to...
3498 (convert_descriptor_to_mode): ... this. For wider types convert to
3499 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3500 (typed_binop): New function.
3501 (scompare_loc_descriptor, ucompare_loc_descriptor,
3502 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3503 default to unsigned type instead of signed.
3504
3505 PR debug/47858
3506 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3507 (gimple_build_debug_source_bind_stat): New prototype.
3508 (gimple_build_debug_source_bind): Define.
3509 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3510 gimple_debug_source_bind_get_value,
3511 gimple_debug_source_bind_get_value_ptr,
3512 gimple_debug_source_bind_set_var,
3513 gimple_debug_source_bind_set_value): New inlines.
3514 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3515 * gimple-pretty-print.c (dump_gimple_debug): Handle
3516 GIMPLE_DEBUG_SOURCE_BIND.
3517 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3518 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3519 * tree-parloops.c (eliminate_local_variables,
3520 separate_decls_in_region): Likewise.
3521 (separate_decls_in_region_debug): Renamed from
3522 separate_decls_in_region_debug_bind. Handle
3523 gimple_debug_source_bind_p.
3524 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3525 prototypes.
3526 (DECL_HAS_DEBUG_ARGS_P): Define.
3527 (struct tree_function_decl): Add has_debug_args_flag field.
3528 * tree.c (debug_args_for_decl): New variable.
3529 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3530 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3531 (rewrite_debug_stmt_uses): New function.
3532 (rewrite_stmt): Use it to rewrite debug stmt uses.
3533 * rtl.def (DEBUG_PARAMETER_REF): New.
3534 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3535 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3536 DEBUG_PARAMETER_REF.
3537 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3538 * print-rtl.c (print_rtx): Likewise.
3539 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3540 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3541 debug stmts in the first bb.
3542 * tree-inline.c (remap_ssa_name): If remapping default def
3543 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3544 a source bind debug stmt.
3545 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3546 (maybe_move_debug_stmts_to_successors): Likewise.
3547 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3548 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3549 debug args vector from old_decl to new_decl.
3550 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3551 or modified parameters, add debug bind stmts before call
3552 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3553 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3554 on DECL_DEBUG_EXPRs from debug args vector.
3555 (expand_debug_source_expr): New function.
3556 (expand_debug_locations): Use it for source bind insns.
3557 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3558 * var-tracking.c (prepare_call_arguments): Add debug args
3559 to call_arguments if any.
3560 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3561 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3562 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3563 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3564 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3565 (gen_subprogram_die): Handle parameters identified by
3566 DEBUG_PARAMETER_REF.
3567
3568 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3569
3570 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3571 * doc/install.texi (Configuration): Document --with-tls.
3572 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3573 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3574 (arm_tls_descseq_addr): New.
3575 (legitimize_tls_address): Add tlsdesc support.
3576 (arm_cannot_copy_insn_p): Check for tlscall.
3577 (arm_emit_tls_decoration): Likewise.
3578 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3579 (OPTION_DEFAULT_SPECS): Add with-tls support.
3580 * config/arm/arm.md (R1_REGNUM): Define.
3581 (tlscall): New.
3582 * config/arm/arm.opt (tls_type): New enumeration type and values.
3583 (mtls-dialect): New switch.
3584 * config/arm/arm-opts.h (enum tls_type): New.
3585
3586 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3587
3588 * attribs.c (register_attribute): Added assert to check that all
3589 attribute specs are registered with a name that is not empty and
3590 does not start with '_'.
3591 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3592 if the function has no attributes.
3593 * tree.c (is_attribute_with_length_p): Removed.
3594 (is_attribute_p): Removed.
3595 (private_is_attribute_p): New.
3596 (private_lookup_attribute): New.
3597 (lookup_attribute): Removed.
3598 (lookup_ident_attribute): New.
3599 (remove_attribute): Require the first argument to be in the form
3600 'text', not '__text__'. Updated asserts.
3601 (merge_attributes): Use lookup_ident_attributes instead of
3602 lookup_attribute.
3603 (merge_dllimport_decl_attributes): Use remove_attribute.
3604 (attribute_list_contained): Likewise.
3605 (attribute_list_equal): Immediately return 1 if the arguments are
3606 identical pointers.
3607 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3608 'int'. Require the first argument to be in the form 'text', not
3609 '__text__'. Require the second argument to be an identifier.
3610 (lookup_attribute): Made inline. Require the first argument to be
3611 in the form 'text', not '__text__'.
3612 (private_is_attribute_p, private_lookup_attribute): New.
3613 Updated comments.
3614
3615 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3616
3617 * builtins.c: Add sync_ or SYNC__ to builtin names.
3618 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3619 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3620
3621 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3622
3623 PR target/33049
3624 * config/avr/avr.md (extzv): New expander.
3625 (*extzv): New insn.
3626 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3627 * config/avr/constraints.md (C04): New constraint.
3628 * doc/md.texi (Machine Constraints): Document it.
3629
3630 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3631
3632 PR middle-end/49489
3633 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3634 unsignedp argument instead of 1 for clrsb_optab.
3635 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3636 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3637 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3638 * optabs.c (widen_leading): Call widen_operand and expand_unop
3639 with 0 as unsignedp argument instead of 1 for clrsb_optab.
3640 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3641
3642 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3643
3644 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3645
3646 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3647
3648 * gensupport.c (add_define_attr): New static function.
3649 (is_predicable): Allow multi-alternative lists for the "predicable"
3650 attribute.
3651 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3652 (process_one_cond_exec): Call alter_attrs_for_insn.
3653 * doc/md.texi (Defining Attributes): Mention some standard names.
3654 (Conditional Execution): Update documentation for "predicable".
3655
3656 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3657 __builtin_clrsbll): Document.
3658 * doc/rtl.texi (clrsb): New entry.
3659 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3660 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3661 (expand_unop): Handle clrsb_optab.
3662 (init_optabs): Initialize it.
3663 * optabs.h (enum optab_index): New entry OTI_clrsb.
3664 (clrsb_optab): Define.
3665 * genopinit.c (optabs): Add an entry for it.
3666 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3667 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3668 BUILT_IN_CLRSBLL): New.
3669 * rtl.def (CLRSB): New code.
3670 * dwarf2out.c (mem_loc_descriptor): Handle it.
3671 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3672 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3673 and popcount.
3674 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3675 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3676 (__ctzDI2): Move declaration.
3677 * config/bfin/bfin.md (clrsbsi2): New expander.
3678 (signbitssi2): Use the CLRSB rtx.
3679 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3680 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3681
3682 2011-06-21 Richard Guenther <rguenther@suse.de>
3683
3684 * ipa-inline-transform.c (inline_transform): Fix previous change.
3685
3686 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
3687
3688 PR tree-optimization/49478
3689 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3690 with constant operand.
3691
3692 2011-06-21 Richard Guenther <rguenther@suse.de>
3693
3694 * ipa-inline-transform.c (inline_transform): Fix typo.
3695
3696 2011-06-21 Richard Guenther <rguenther@suse.de>
3697
3698 PR tree-optimization/49483
3699 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3700 VIEW_CONVERT_EXPR conversions.
3701
3702 2011-06-21 Joseph Myers <joseph@codesourcery.com>
3703
3704 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3705 * config/avr/avr-tables.opt: New file (generated).
3706 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3707 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3708 avr-mcus.def.
3709 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3710 (avr_option_override): Don't process -mmcu= argument here. Set
3711 avr_current_device using avr_mcu_index.
3712 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3713 * config/avr/avr.opt (mmcu=): Use Enum.
3714 * config/avr/t-avr (avr-devices.o): Update dependencies.
3715 ($(srcdir)/config/avr/avr-tables.opt): New.
3716 * target.def (help): Remove.
3717 * doc/tm.texi.in (TARGET_HELP): Remove.
3718 * doc/tm.texi: Regenerate.
3719 * opts.c: Don't include target.h.
3720 (common_handle_option): Don't call targetm.help.
3721 * system.h (TARGET_HELP): Poison.
3722 * Makefile.in (opts.o): Update dependencies.
3723
3724 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3725
3726 * config/usegld.h: New file.
3727 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3728 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3729 (LIB_SPEC): Likewise. Search /lib.
3730 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3731 (RDYNAMIC_SPEC): Handle GNU ld.
3732 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3733 Define.
3734 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3735 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3736 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3737 (STACK_CHECK_STATIC_BUILTIN): Define.
3738 * config/sol2.opt (compat-bsd): Remove.
3739 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3740 * config/sol2-bi.h: New file.
3741 * config/sol2-gld.h: Remove.
3742 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3743 (NO_DBX_BNSYM_ENSYM): Remove.
3744 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3745 (STACK_CHECK_STATIC_BUILTIN): Remove.
3746 Test USE_GLD instead of TARGET_GNU_LD.
3747 * config/i386/sol2-10.h: Rename to ...
3748 * config/i386/sol2-bi.h .. this.
3749 (SUBTARGET_EXTRA_SPECS): Redefine.
3750 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3751 (MULTILIB_DEFAULTS): Remove.
3752 (DEFAULT_ARCH32_P): Define.
3753 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3754 (ARCH64_SUBDIR): Define.
3755 Test USE_GLD instead of TARGET_GNU_LD.
3756 (I386_EMULATION): Rename to ...
3757 (ARCH32_EMULATION): ... this.
3758 (X86_64_EMULATION): Rename to ...
3759 (ARCH64_EMULATION): ... this.
3760 (TARGET_LD_EMULATION): Remove.
3761 (LINK_ARCH_SPEC): Remove.
3762 * config/i386/sol2-gas.h: Remove.
3763 * config/i386/t-sol2-10: Rename to ...
3764 * config/i386/t-sol2-64: ... this.
3765 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3766 (AS_SPARC64_FLAG): Define.
3767 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3768 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3769 depending on TARGET_CPU_DEFAULT.
3770 (CPP_CPU_SPEC): Redefine.
3771 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3772 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3773 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3774 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3775 ASM_ARCH_DEFAULT_SPEC): Redefine.
3776 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3777 LINK_ARCH_DEFAULT_SPEC.
3778 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3779 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3780 (ARCH64_SUBDIR): Define.
3781 (LINK_ARCH64_SPEC): Redefine.
3782 (CC1_SPEC): Redefine.
3783 (OPTION_DEFAULT_SPECS): Redefine.
3784 (MULTILIB_DEFAULTS): Define.
3785 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3786 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3787 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3788 (NO_DBX_BNSYM_ENSYM): Remove.
3789 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3790 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3791 (TARGET_ASM_NAMED_SECTION): Likewise.
3792 (STACK_CHECK_STATIC_BUILTIN): Remove.
3793 * config/sparc/sol2-bi.h: Remove.
3794 * config/sparc/sol2-gas-bi.h: Remove.
3795 * config/sparc/sol2-gas.h: Remove.
3796 * config/sparc/sol2-gld-bi.h: Remove.
3797 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3798 common parts ...
3799 (*-*-solaris2*): ... here.
3800
3801 2011-06-21 Christian Bruel <christian.bruel@st.com>
3802
3803 PR other/43564
3804 * ipa-inline.c (can_inline_edge_p): Check
3805 !DECL_DISREGARD_INLINE_LIMITS.
3806
3807 2011-06-21 Christian Bruel <christian.bruel@st.com>
3808
3809 PR middle-end/49139
3810 * cgraphunit.c (process_function_and_variable_attributes): warn when
3811 always_inline functions that are not inline.
3812 * ipa-inline-transform.c (inline_transform): Always call
3813 optimize_inline.
3814 * tree-inline.c (tree_inlinable_function_p): Use error instead
3815 of sorry.
3816 (expand_call_inline): Likewise.
3817
3818 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3819
3820 * Makefile.in (dg_target_exps): Set.
3821 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3822 instead of 7, try to divide it more evenly.
3823
3824 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
3825
3826 PR target/49089
3827 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3828 (avx256_split_unaligned_store): New definition.
3829 (ix86_option_override_internal): Enable avx256 unaligned load/store
3830 splitting only when avx256_split_unaligned_load/store is set.
3831
3832 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3833
3834 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3835 open chain in a smaller mode without failing the entire block.
3836
3837 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3838
3839 PR middle-end/47725
3840 * combine.c (cant_combine_insn_p): Don't check zero/sign
3841 extended hard registers.
3842
3843 2011-06-21 Alan Modra <amodra@gmail.com>
3844
3845 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3846 CONST high part large-toc address.
3847 (rs6000_tls_referenced_p): Make static.
3848 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3849
3850 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3851
3852 PR middle-end/47725
3853 * combine.c (cant_combine_insn_p): Check zero/sign extended
3854 hard registers.
3855
3856 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3857
3858 PR target/49385
3859 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3860 one of the operands is a register.
3861
3862 2011-06-20 Kai Tietz <ktietz@redhat.com>
3863
3864 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3865 operations in combination with binary and.
3866
3867 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3868
3869 * regrename.c (do_replace): Don't update notes.
3870
3871 2011-06-20 Alan Modra <amodra@gmail.com>
3872
3873 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3874 of toc-relative address in CONST.
3875 (rs6000_delegitimize_address): Recognize changed address.
3876 (rs6000_legitimize_reload_address): Likewise.
3877 (rs6000_emit_move): Don't force these constants to memory.
3878 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3879 toc-relative address in CONST.
3880 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3881 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3882
3883 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3884
3885 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
3886 (count_trailing_zeros): Likewise.
3887
3888 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3889
3890 PR other/49325
3891 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3892 .init_array can be used with .ctors on targets.
3893 * configure: Regenerated.
3894
3895 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3896
3897 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3898 if the element type is volatile.
3899
3900 2011-06-18 Jan Hubicka <jh@suse.cz>
3901
3902 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3903 extra name aliases.
3904 (lto_symtab_resolve_can_prevail_p): Likewise.
3905 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3906 * cgraphbuild.c (record_reference): Remove extra body alias code.
3907 (mark_load): Likewise.
3908 (mark_store): Likewise.
3909 * cgraph.h (varpool_node): Remove extra_name filed;
3910 add alias_of and extraname_alias.
3911 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3912 (varpool_alias_aliased_node): New inline function.
3913 (varpool_variable_node): New function.
3914 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3915 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3916 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3917 (input_varpool_node): Likewise.
3918 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3919 (varpool_externally_visible_p): Remove extra body alias code.
3920 (function_and_variable_visibility): Likewise.
3921 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3922 (ipa_pta_execute): Use it.
3923 * varpool.c (varpool_remove_node): Remove extra name alias code.
3924 (varpool_mark_needed_node): Likewise.
3925 (varpool_analyze_pending_decls): Analyze aliases.
3926 (assemble_aliases): New functoin.
3927 (varpool_assemble_decl): Use it.
3928 (varpool_create_variable_alias): New function.
3929 (varpool_extra_name_alias): Rewrite.
3930 (varpool_for_node_and_aliases): New function.
3931
3932 2011-06-18 Jakub Jelinek <jakub@redhat.com>
3933
3934 PR target/49411
3935 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3936 last_arg_constant and last argument doesn't match its predicate,
3937 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3938 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3939 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3940 spelling of error message.
3941 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3942 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3943 const_0_to_255_operand instead of const_int_operand.
3944
3945 Revert:
3946 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3947
3948 * config/i386/sse.md (blendbits): Remove mode attribute.
3949 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3950 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3951 Check integer value of operand 3 in insn constraint.
3952
3953 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
3954
3955 PR rtl-optimization/48542
3956 * reload.c (find_equiv_reg): Stop looking when finding a
3957 setjmp-type call.
3958 * reload1.c (reload_as_needed): Invalidate all reload
3959 registers when crossing a setjmp-type call.
3960
3961 2011-06-16 Jeff Law <law@redhat.com>
3962
3963 * tree-ssa-threadupdate.c (struct redirection_data): New field
3964 intermediate_edge.
3965 (THREAD_TARGET2): Define.
3966 (redirection_data_eq): Also check that the intermediate edge is equal.
3967 (lookup_redirection_data): Drop useless argument. Extract the
3968 outgoing_edge and intermediate edge from E. Callers updated.
3969 (copy_phi_args, update_destination_phis): New functions.
3970 (fix_duplicate_block_edges): Likewise.
3971 (create_edge_and_update_destination_phis): Duplicate all the edges
3972 hung off e->aux. Use copy_phi_args.
3973 (create_duplicates): Use fix_duplicate_block_edges.
3974 (fixup_template_block): Likewise.
3975 (redirect_edges): If necessary, redirect the joiner block's incoming
3976 edge to the duplicate of the joiner block.
3977 (thread_block): Don't muck up loops when threading through a joiner
3978 block.
3979 (thread_through_loop_header): Handle threading through a joiner block.
3980 (mark_threaded_blocks, register_jump_thread): Likewise.
3981 * tree-flow.h (register_jump_thread): Add new argument. Callers
3982 updated.
3983 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3984 (thread_across_edge): Handle threading through a joiner block.
3985
3986 2011-06-16 Martin Jambor <mjambor@suse.cz>
3987
3988 PR tree-optimization/49343
3989 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3990 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3991
3992 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3993
3994 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3995 inside RTX_CODE ifdef.
3996
3997 2011-06-16 Tom de Vries <tom@codesourcery.com>
3998
3999 PR target/45098
4000 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
4001 Disallow NULL pointer for pointer arithmetic.
4002
4003 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4004
4005 PR target/49398
4006 Revert.
4007 2011-06-10 Wei Guozhi <carrot@google.com>
4008
4009 PR target/45335
4010 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4011 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4012 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4013 related peephole2.
4014 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4015 related peephole2.
4016 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4017 (arm_legitimate_ldrd_p): New prototype.
4018 (arm_output_ldrd): New prototype.
4019 * config/arm/arm.c (arm_check_ldrd_operands): New function.
4020 (arm_legitimate_ldrd_p): New function.
4021 (arm_output_ldrd): New function.
4022
4023 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
4024
4025 PR middle-end/46500
4026 * doc/tm.texi.in: Update Copyright date.
4027 * doc/tm.texi: Regenerate.
4028 * targhooks.c (default_setup_incoming_varargs): Replace
4029 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4030 (default_pretend_outgoing_varargs_named): Likewise.
4031 (hook_pass_by_reference_must_pass_in_stack): Likewise.
4032 (hook_callee_copies_named): Likewise.
4033 (default_function_arg_advance): Likewise.
4034 (default_function_arg): Likewise.
4035 (default_function_incoming_arg): Likewise.
4036 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4037 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4038 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4039 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4040 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4041 * targhooks.h (default_setup_incoming_varargs): Likewise.
4042 (default_pretend_outgoing_varargs_named): Likewise.
4043 (hook_pass_by_reference_must_pass_in_stack): Likewise.
4044 (hook_callee_copies_named): Likewise.
4045 (default_function_arg_advance): Likewise.
4046 (default_function_arg): Likewise.
4047 (default_function_incoming_arg): Likewise.
4048 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4049 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4050 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4051 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4052 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4053 * target.def (pass_by_reference): Likewise.
4054 (setup_incoming_varargs, strict_argument_naming): Likewise.
4055 (pretend_outgoing_varargs_named, callee_copies): Likewise.
4056 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
4057 (function_incoming_arg): Likewise.
4058 * target.h: Don't include "tm.h" .
4059 (cumulative_args_t): New typedef.
4060 [GCC_TM_H] (get_cumulative_args): New static inline function.
4061 [GCC_TM_H] (pack_cumulative_args): Likewise.
4062 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
4063 argument type with cumulative_args_t.
4064 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
4065 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
4066 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4067 (frv_arg_partial_bytes, frv_function_arg): Likewise.
4068 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
4069 (frv_function_arg_1): Likewise.
4070 * config/s390/s390.c (s390_pass_by_reference): Likewise.
4071 (s390_function_arg_advance, s390_function_arg): Likewise.
4072 * config/m32c/m32c.c (m32c_function_arg): Likewise.
4073 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
4074 (m32c_strict_argument_naming): Likewise.
4075 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
4076 (spu_function_arg_advance): Likewise.
4077 (spu_setup_incoming_varargs): Likewise. Make static.
4078 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
4079 Remove prototype.
4080 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
4081 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4082 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
4083 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
4084 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
4085 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
4086 (mep_pass_by_reference, mep_function_arg): Likewise.
4087 (mep_function_arg_advance): Likewise.
4088 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4089 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
4090 (m32r_function_arg, m32r_function_arg_advance): Likewise.
4091 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
4092 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4093 (ix86_function_arg, ix86_pass_by_reference): Likewise.
4094 (ix86_setup_incoming_varargs): Likewise.
4095 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4096 (sh_strict_argument_naming): Likewise.
4097 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
4098 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
4099 (sh_function_arg_advance, sh_function_arg): Likewise.
4100 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4101 (pdp11_function_arg_advance): Likewise.
4102 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4103 Likewise.
4104 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
4105 * config/avr/avr.c (avr_function_arg): Likewise.
4106 (avr_function_arg_advance): Likewise.
4107 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4108 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
4109 (xtensa_function_arg_1): Likewise.
4110 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
4111 Likewise.
4112 (xstormy16_function_arg): Likewise.
4113 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4114 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4115 (fr30_function_arg_advance): Likewise.
4116 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4117 (lm32_function_arg, lm32_function_arg_advance): Likewise.
4118 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4119 (moxie_function_arg, moxie_function_arg_advance): Likewise.
4120 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
4121 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4122 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
4123 (cris_function_arg, cris_function_incoming_arg): Likewise.
4124 (cris_function_arg_advance, cris_function_arg_1): Likewise.
4125 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4126 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
4127 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
4128 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4129 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
4130 (mn10300_arg_partial_bytes): Likewise.
4131 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4132 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
4133 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
4134 (ia64_function_arg_1): Likewise.
4135 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4136 (m68k_function_arg): Likewise.
4137 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
4138 (rs6000_function_arg, setup_incoming_varargs): Likewise.
4139 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
4140 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
4141 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
4142 (picochip_arg_advance): Likewise.
4143 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4144 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
4145 (mcore_function_arg_advance): Likewise.
4146 * config/score/score.c (score_pass_by_reference): Likewise.
4147 (score_function_arg_advance): Likewise.
4148 (score_arg_partial_bytes): Likewise. Make static.
4149 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
4150 * config/arm/arm.c (arm_arg_partial_bytes): Replace
4151 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4152 (arm_function_arg, arm_function_arg_advance): Likewise.
4153 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
4154 * config/pa/pa.c (pa_pass_by_reference): Likewise.
4155 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
4156 (pa_function_arg): Likewise.
4157 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
4158 (mips_function_arg, mips_function_arg_advance): Likewise.
4159 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
4160 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
4161 * config/vax/vax.c (vax_function_arg): Likewise.
4162 (vax_function_arg_advance): Likewise.
4163 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4164 (h8300_function_arg_advance): Likewise.
4165 * config/v850/v850.c (v850_pass_by_reference): Likewise.
4166 (v850_strict_argument_naming, v850_function_arg): Likewise.
4167 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
4168 (v850_setup_incoming_varargs): Likewise.
4169 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4170 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
4171 (mmix_function_arg, mmix_pass_by_reference): Likewise.
4172 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
4173 with const void *.
4174 * config/bfin/bfin.c (setup_incoming_varargs): Replace
4175 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4176 (bfin_function_arg_advance, bfin_function_arg): Likewise.
4177 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
4178 * calls.c (emit_call_1): Change type of args_so_far to
4179 cumulative_args_t. Changed all callers.
4180 (initialize_argument_information): Likewise.
4181 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
4182 * dse.c (get_call_args): Likewise.
4183 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4184 * function.c (pass_by_reference, reference_callee_copied): Likewise.
4185 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
4186 New member args_so_far_v. Changed all users.
4187 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
4188 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4189 * config/mips/mips.c (mips_output_args_xfer): Likewise.
4190 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4191 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
4192 * config/microblaze/microblaze.c (microblaze_expand_prologue):
4193 Likewise.
4194 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
4195 m32r_pass_by_reference.
4196
4197 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
4198
4199 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
4200 argument to be a VEC of statements.
4201 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
4202 assert that pattern statements have to have their vector type set.
4203 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
4204 Change the first argument to be a VEC of statements. Update
4205 documentation.
4206 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4207 (vect_handle_widen_mult_by_const): New function.
4208 (vect_recog_widen_mult_pattern): Change the first argument to be a
4209 VEC of statements. Update documentation. Check that the constant is
4210 INTEGER_CST. Support multiplication by a constant that fits an
4211 intermediate type - call vect_handle_widen_mult_by_const.
4212 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4213 call. Handle additional pattern statements if necessary.
4214
4215 2011-06-16 Nick Clifton <nickc@redhat.com>
4216
4217 PR target/49427
4218 * config.gcc: Set cpu_type to v850 for any V850 architecture.
4219 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4220 md_file, extra_modes, out_file and extra_options are these are all
4221 deduced from cpu_type.
4222
4223 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
4224
4225 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4226 truncation mask to 63.
4227
4228 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
4229
4230 PR target/49313
4231 PR target/29524
4232 * longlong.h: Add AVR support:
4233 (count_leading_zeros): New macro.
4234 (count_trailing_zeros): New macro.
4235 (COUNT_LEADING_ZEROS_0): New macro.
4236 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4237 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4238 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4239 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4240 (LIB2FUNCS_EXCLUDE): Add _clz.
4241 * config/avr/libgcc.S (XCALL): Move up in file.
4242 (XJMP): New C Macro.
4243 (DEFUN): New asm macro.
4244 (ENDF): New asm macro.
4245 (__ffssi2): New function.
4246 (__ffshi2): New function.
4247 (__loop_ffsqi2): New function.
4248 (__ctzsi2): New function.
4249 (__ctzhi2): New function.
4250 (__clzdi2): New function.
4251 (__clzsi2): New function.
4252 (__clzhi2): New function.
4253 (__paritydi2): New function.
4254 (__paritysi2): New function.
4255 (__parityhi2): New function.
4256 (__parityqi2): New function.
4257 (__popcounthi2): New function.
4258 (__popcountsi2): New function.
4259 (__popcountdi2): New function.
4260 (__popcountqi2): New function.
4261 (__bswapsi2): New function.
4262 (__bswapdi2): New function.
4263 (__ashldi3): New function.
4264 (__ashrdi3): New function.
4265 (__lshrdi3): New function.
4266 Fix suspicous lines.
4267
4268 2011-06-16 Richard Guenther <rguenther@suse.de>
4269
4270 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4271 the same as x != 0.
4272 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4273 to (bool) X & 1.
4274 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4275 equality compares against zero for the lower bit.
4276
4277 2011-06-16 Jakub Jelinek <jakub@redhat.com>
4278
4279 PR tree-optimization/49419
4280 * tree-vrp.c (execute_vrp): Call init_range_assertions
4281 before estimate_numbers_of_iterations, call
4282 free_number_of_iterations_estimates before calling
4283 remove_range_assertions.
4284
4285 2011-06-16 Revital Eres <revital.eres@linaro.org>
4286
4287 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4288 (struct partial_schedule): Add rows_length field.
4289 (verify_partial_schedule): Check rows_length.
4290 (ps_insert_empty_row): Handle rows_length.
4291 (create_partial_schedule): Likewise.
4292 (free_partial_schedule): Likewise.
4293 (reset_partial_schedule): Likewise.
4294 (create_ps_insn): Remove rest_count argument.
4295 (remove_node_from_ps): Update rows_length.
4296 (add_node_to_ps): Update rows_length and call create_ps_insn
4297 without passing row_rest_count.
4298 (rotate_partial_schedule): Update rows_length.
4299
4300 2011-06-16 Revital Eres <revital.eres@linaro.org>
4301
4302 * ddg.c (add_intra_loop_mem_dep): New function.
4303 (build_intra_loop_deps): Call it.
4304
4305 2011-06-13 Jeff Law <law@redhat.com>
4306
4307 * df-problems.c (df_lr_local_compute): Manually CSE
4308 PIC_OFFSET_TABLE_REGNUM.
4309 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4310 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4311
4312 2011-06-13 Jan Hubicka <jh@suse.cz>
4313
4314 * cgraphunit.c (handle_alias_pairs): New function.
4315 (cgraph_finalize_compilation_unit): Use it.
4316 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4317 as externally visible.
4318
4319 2011-06-15 Richard Guenther <rguenther@suse.de>
4320
4321 * expr.c (expand_expr_real_2): Reduce all integral types to
4322 bitfield precision.
4323 (expand_expr_real_1): Likewise.
4324
4325 2011-06-15 Martin Jambor <mjambor@suse.cz>
4326
4327 PR tree-optimization/48613
4328 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4329 ipa_node_params_vector is NULL.
4330
4331 2011-06-15 Jakub Jelinek <jakub@redhat.com>
4332
4333 PR debug/49382
4334 * dwarf2out.c (dw_loc_list_node): Add force field.
4335 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4336 location in the list, even if it is modified before first real insn.
4337 (output_loc_list): Emit empty ranges with force flag set.
4338 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4339
4340 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
4341
4342 PR target/49349
4343 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4344 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4345 above a fence. Update comments.
4346 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4347 placed just above it. Do not allow NULL place_to_insert.
4348
4349 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
4350
4351 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4352 (slpeel_tree_peel_loop_to_edge): Don't call
4353 remove_dead_stmts_from_loop.
4354 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4355 remove irrelevant pattern statements. For irrelevant statements
4356 check if it is the last statement of a detected pattern, use
4357 corresponding pattern statement instead.
4358 (destroy_loop_vec_info): No need to remove pattern statements,
4359 only free stmt_vec_info.
4360 (vect_transform_loop): For irrelevant statements check if it is
4361 the last statement of a detected pattern, use corresponding
4362 pattern statement instead.
4363 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4364 pattern statements. Set basic block for the new statement.
4365 (vect_pattern_recog): Update documentation.
4366 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4367 operands of pattern statements.
4368 (vectorizable_call): Fix printing. In case of a pattern statement
4369 use the lhs of the original statement when creating a dummy
4370 statement to replace the original call.
4371 (vect_analyze_stmt): For irrelevant statements check if it is
4372 the last statement of a detected pattern, use corresponding
4373 pattern statement instead.
4374 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4375 statements use gsi of the original statement.
4376
4377 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4378
4379 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4380 common/common-target-def.h.
4381 * target.def (default_target_flags, handle_option,
4382 supports_split_stack, optimization_table, init_struct,
4383 except_unwind_info, unwind_tables_default, have_named_sections):
4384 Move to common/common-target.def.
4385 * target.h (enum opt_levels, struct default_options): Move to
4386 common/common-target.h.
4387 * targhooks.c (default_except_unwind_info,
4388 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4389 default_target_handle_option, empty_optimization_table): Move to
4390 common/common-targhooks.c.
4391 * targhooks.h (default_except_unwind_info,
4392 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4393 default_target_handle_option, empty_optimization_table): Move to
4394 common/common-targhooks.h.
4395 * common/common-target-def.h: Include common/common-targhooks.h.
4396 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4397 defined.
4398 * common/common-target.def (handle_option, option_init_struct,
4399 option_optimization_table, default_target_flags,
4400 except_unwind_info, supports_split_stack, unwind_tables_default,
4401 have_named_sections): Move from target.def.
4402 (HOOK_PREFIX): Undefine at end of file.
4403 * common/common-target.h: Include input.h.
4404 (enum opt_levels, struct default_options): Move from target.h.
4405 * common/common-targhooks.c, common/common-targhooks.h: New.
4406 * config.gcc (target_has_targetm_common): Default to yes.
4407 (moxie*): Set target_has_targetm_common=no.
4408 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4409 * doc/tm.texi: Regenerate.
4410 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4411 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4412 (GCC_OBJS): Remove vec.o.
4413 (OBJS): Remove hooks.o and vec.o.
4414 (OBJS-libcommon-target): Add vec.o, hooks.o and
4415 common/common-targhooks.o.
4416 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4417 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4418 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4419 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4420 Update dependencies.
4421 (common/common-targhooks.o): New.
4422 * common/config/default-common.c: Include tm.h. Add FIXME comment.
4423 * common/config/pa/pa-common.c: Include more headers. Take
4424 copyright dates from pa.c.
4425 (pa_option_optimization_table, pa_handle_option,
4426 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4427 TARGET_HANDLE_OPTION): Move from pa.c.
4428 * common/config/alpha/alpha-common.c,
4429 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4430 common/config/bfin/bfin-common.c,
4431 common/config/cris/cris-common.c,
4432 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4433 common/config/h8300/h8300-common.c,
4434 common/config/i386/i386-common.c,
4435 common/config/ia64/ia64-common.c,
4436 common/config/iq2000/iq2000-common.c,
4437 common/config/lm32/lm32-common.c,
4438 common/config/m32c/m32c-common.c,
4439 common/config/m32r/m32r-common.c,
4440 common/config/m68k/m68k-common.c,
4441 common/config/mcore/mcore-common.c,
4442 common/config/mep/mep-common.c,
4443 common/config/microblaze/microblaze-common.c,
4444 common/config/mips/mips-common.c,
4445 common/config/mmix/mmix-common.c,
4446 common/config/mn10300/mn10300-common.c,
4447 common/config/pdp11/pdp11-common.c,
4448 common/config/picochip/picochip-common.c,
4449 common/config/rs6000/rs6000-common.c,
4450 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4451 common/config/score/score-common.c, common/config/sh/sh-common.c,
4452 common/config/sparc/sparc-common.c,
4453 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4454 common/config/vax/vax-common.c,
4455 common/config/xstormy16/xstormy16-common.c,
4456 common/config/xtensa/xtensa-common.c: New.
4457 * config/alpha/alpha.c: Include common/common-target.h.
4458 (alpha_option_optimization_table, alpha_handle_option,
4459 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4460 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4461 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4462 * config/arm/arm.c (arm_option_optimization_table,
4463 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4464 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4465 arm-common.c.
4466 * config/avr/avr.c (avr_option_optimization_table,
4467 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4468 to avr-common.c.
4469 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4470 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4471 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4472 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4473 * config/cris/cris.c (cris_option_optimization_table,
4474 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4475 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4476 cris-common.c.
4477 * config/fr30/fr30.c (fr30_option_optimization_table,
4478 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4479 to fr30-common.c.
4480 * config/frv/frv.c (frv_option_optimization_table,
4481 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4482 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4483 * config/h8300/h8300.c (h8300_option_optimization_table,
4484 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4485 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4486 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4487 * config/i386/i386.c: Include common/common-target.h.
4488 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4489 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4490 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4491 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4492 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4493 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4494 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4495 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4496 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4497 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4498 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4499 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4500 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4501 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4502 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4503 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4504 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4505 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4506 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4507 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4508 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4509 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4510 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4511 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4512 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4513 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4514 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4515 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4516 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4517 ix86_option_optimization_table, ix86_option_init_struct,
4518 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4519 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4520 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4521 i386-common.c.
4522 * config/i386/t-i386 (i386.o): Update dependencies.
4523 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4524 * config/ia64/ia64.c (ia64_option_optimization_table,
4525 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4526 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4527 ia64_handle_option): Move to ia64-common.c.
4528 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4529 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4530 * config/lm32/lm32.c (lm32_option_optimization_table,
4531 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4532 to lm32-common.c.
4533 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4534 m32c-common.c.
4535 * config/m32r/m32r.c (m32r_option_optimization_table,
4536 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4537 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4538 m32r_handle_option): Move to m32r-common.c.
4539 (m32r_memory_move_cost): Remove comment referring to
4540 TARGET_HANDLE_OPTION.
4541 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4542 Move to m68k-common.c.
4543 * config/mcore/mcore.c (mcore_option_optimization_table,
4544 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4545 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4546 * config/mep/mep.c (mep_option_optimization_table,
4547 mep_handle_option, TARGET_HANDLE_OPTION,
4548 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4549 Move to mep-common.c.
4550 * config/microblaze/microblaze.c
4551 (microblaze_option_optimization_table,
4552 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4553 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4554 * config/mips/mips.c (mips_handle_option,
4555 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4556 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4557 mips-common.c.
4558 * config/mmix/mmix.c (mmix_option_optimization_table,
4559 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4560 Move to mmix-common.c.
4561 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4562 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4563 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4564 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4565 * config/pa/pa.c: Include common/common-target.h.
4566 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4567 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4568 pa_handle_option): Move to pa-common.c.
4569 (pa_option_override): Use targetm_common.except_unwind_info.
4570 (pa_asm_output_mi_thunk, pa_function_section): Use
4571 targetm_common.have_named_sections.
4572 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4573 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4574 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4575 pdp11_handle_option, pdp11_option_init_struct): Move to
4576 pdp11-common.c.
4577 * config/picochip/picochip.c (picochip_option_optimization_table,
4578 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4579 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4580 * config/rs6000/rs6000.c: Include common/common-target.h.
4581 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4582 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4583 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4584 rs6000_handle_option): Move to rs6000-common.c.
4585 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4586 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4587 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4588 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4589 * config/s390/s390.c (processor_flags_table,
4590 s390_option_optimization_table, s390_option_init_struct,
4591 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4592 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4593 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4594 * config/s390/s390.h (processor_flags_table): Declare.
4595 * config/score/score.c (score_option_optimization_table,
4596 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4597 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4598 score_handle_option): Move to score-common.c.
4599 * config/sh/sh.c (sh_option_optimization_table,
4600 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4601 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4602 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4603 * config/sparc/sparc.c: Include common/common-target.h.
4604 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4605 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4606 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4607 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4608 spu_option_init_struct): Move to spu-common.c.
4609 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4610 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4611 * config/v850/v850.c (small_memory_physical_max,
4612 v850_handle_memory_optionn v850_handle_option,
4613 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4614 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4615 v850-common.c.
4616 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4617 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4618 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4619 Move to xtensa-common.c.
4620 * cfglayout.c: Include common/common-target.h.
4621 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4622 * cfgrtl.c: Include common/common-target.h.
4623 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4624 targetm_common.have_named_sections.
4625 * dbxout.c: Include common/common-target.h.
4626 (dbxout_function_end): Use targetm_common.have_named_sections.
4627 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4628 targetm_common.except_unwind_info.
4629 * dwarf2out.c: Include common/common-target.h.
4630 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4631 dwarf2out_begin_prologue, dwarf2out_frame_init,
4632 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4633 targetm_common.except_unwind_info.
4634 * except.c: Include common/common-target.h.
4635 (init_eh, finish_eh_generation,
4636 output_one_function_exception_table): Use
4637 targetm_common.except_unwind_info.
4638 (switch_to_exception_section): Use targetm_common.have_named_sections.
4639 * explow.c: Include common/common-target.h.
4640 * expr.c: Include common/common-target.h.
4641 (build_personality_function): Use targetm_common.except_unwind_info.
4642 * function.c: Include common/common-target.h.
4643 (expand_function_end): Use targetm_common.except_unwind_info.
4644 * haifa-sched.c: Include common/common-target.h.
4645 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4646 * lto-opts.c: Include common/common-target.h instead of target.h.
4647 (lto_reissue_options): Use targetm_common.handle_option.
4648 * opts.c: Include common/common-target.h.
4649 (target_handle_option): Use targetm_common.handle_option.
4650 (init_options_struct): Update comment referring to
4651 targetm.target_option.optimization. Use
4652 targetm_common.default_target_flags,
4653 targetm_common.unwind_tables_default and
4654 targetm_common.option_init_struct.
4655 (default_options_optimization): Use
4656 targetm_common.option_optimization_table.
4657 (finish_options): Use targetm_common.except_unwind_info,
4658 targetm_common.unwind_tables_default,
4659 targetm_common.have_named_sections and
4660 targetm_common.supports_split_stack.
4661 * toplev.c: Include common/common-target.h.
4662 (process_options): Use targetm_common.have_named_sections.
4663 * tree-tailcall.c: Include common/common-target.h.
4664 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4665 * tree.c: Include common/common-target.h.
4666 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4667 * varasm.c: Include common/common-target.h.
4668 (resolve_unique_section, hot_function_section,
4669 default_function_section): Use targetm_common.have_named_sections.
4670
4671 2011-06-14 Easwaran Raman <eraman@google.com>
4672
4673 PR rtl-optimization/44194
4674 * dse.c: Include tree-flow.h
4675 (insn_info): Add new field non_frame_wild_read.
4676 (group_info): Add new fields escaped_n and escaped_p.
4677 (kill_on_calls): New variable.
4678 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4679 (dse_step0): Initialize kill_on_calls.
4680 (can_escape): New function.
4681 (set_usage_bits): Add additional parameter; record information
4682 about escaped locations.
4683 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4684 (dse_step2_nospill): Set kill_on_calls based on
4685 group->escaped_n and group->escaped_n.
4686 (add_wild_read): Refactor into...
4687 (reset_active_stores): ... New function, and
4688 (free_read_records): ... New function.
4689 (add_non_frame_wild_read): New function.
4690 (scan_insn): Call add_non_frame_wild_read on non-const calls.
4691 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4692 (dse_step5_nospill): Call scan_reads_nospill for instructions
4693 marked as non_frame_wild_read.
4694 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4695
4696 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4697
4698 * common/common-target-def.h, common/common-target.def,
4699 common/common-target.h, common/config/default-common.c,
4700 common/config/pa/pa-common.c: New files.
4701 * Makefile.in (common_out_file, common_out_object_file,
4702 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4703 (OBJS-libcommon-target): Include $(common_out_object_file).
4704 (prefix.o): Update dependencies.
4705 ($(common_out_object_file), common/common-target-hooks-def.h,
4706 s-common-target-hooks-def-h): New.
4707 (s-tm-texi): Also check timestamp on common-target.def.
4708 (build/genhooks.o): Update dependencies.
4709 * config.gcc (common_out_file, target_has_targetm_common): Define.
4710 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4711 TARGET_ALWAYS_STRIP_DOTDOT.
4712 * configure.ac (common_out_object_file): Define.
4713 (common_out_file, common_out_object_file): Substitute.
4714 (common): Create directory.
4715 * configure: Regenerate.
4716 * doc/tm.texi.in (targetm_common): Document.
4717 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4718 * doc/tm.texi: Regenerate.
4719 * genhooks.c (hook_array): Also include common/common-target.def.
4720 * prefix.c (tm.h): Don't include.
4721 (common/common-target.h): Include.
4722 (ALWAYS_STRIP_DOTDOT): Don't define.
4723 (update_path): Use targetm_common.always_strip_dotdot instead of
4724 ALWAYS_STRIP_DOTDOT.
4725 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4726
4727 2011-06-14 David Li <davidxl@google.com>
4728
4729 * passes.c (execute_function_todo): Remove TODO_dump_func.
4730 (execute_one_pass): Remove TODO_dump_func.
4731 (execute_function_dump): New function.
4732 * tree-vrp.c: Remove TODO_dump_func.
4733 * regrename.c: Remove TODO_dump_func.
4734 * fwprop.c: Remove TODO_dump_func.
4735 * tree-into-ssa.c: Remove TODO_dump_func.
4736 * tree-complex.c: Remove TODO_dump_func.
4737 * tracer.c: Remove TODO_dump_func.
4738 * tree-loop-distribution.c: Remove TODO_dump_func.
4739 * postreload-gcse.c: Remove TODO_dump_func.
4740 * postreload.c: Remove TODO_dump_func.
4741 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4742 * tree-tailcall.c: Remove TODO_dump_func.
4743 * ipa-cp.c: Remove TODO_dump_func.
4744 * final.c: Remove TODO_dump_func.
4745 * tree-emutls.c: Remove TODO_dump_func.
4746 * omp-low.c: Remove TODO_dump_func.
4747 * tree-ssa-dse.c: Remove TODO_dump_func.
4748 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4749 * auto-inc-dec.c: Remove TODO_dump_func.
4750 * reorg.c: Remove TODO_dump_func.
4751 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4752 * tree-ssa-ccp.c: Remove TODO_dump_func.
4753 * compare-elim.c: Remove TODO_dump_func.
4754 * mode-switching.c: Remove TODO_dump_func.
4755 * modulo-sched.c: Remove TODO_dump_func.
4756 * tree-call-cdce.c: Remove TODO_dump_func.
4757 * cse.c: Remove TODO_dump_func.
4758 * web.c: Remove TODO_dump_func.
4759 * tree-stdarg.c: Remove TODO_dump_func.
4760 * lto-streamer-out.c: Remove TODO_dump_func.
4761 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4762 * tree-ssa-dom.c: Remove TODO_dump_func.
4763 * tree-nrv.c: Remove TODO_dump_func.
4764 * loop-init.c: Remove TODO_dump_func.
4765 * gimple-low.c: Remove TODO_dump_func.
4766 * ipa-inline.c: Remove TODO_dump_func.
4767 * tree-ssa-sink.c: Remove TODO_dump_func.
4768 * jump.c: Remove TODO_dump_func.
4769 * ifcvt.c: Remove TODO_dump_func.
4770 * tree-ssa-loop.c: Remove TODO_dump_func.
4771 * recog.c: Remove TODO_dump_func.
4772 * dse.c: Remove TODO_dump_func.
4773 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4774 * matrix-reorg.c: Remove TODO_dump_func.
4775 * tree-eh.c: Remove TODO_dump_func.
4776 * regmove.c: Remove TODO_dump_func.
4777 * function.c: Remove TODO_dump_func.
4778 * tree-vectorizer.c: Remove TODO_dump_func.
4779 * ipa-split.c: Remove TODO_dump_func.
4780 * gcse.c: Remove TODO_dump_func.
4781 * tree-if-conv.c: Remove TODO_dump_func.
4782 * init-regs.c: Remove TODO_dump_func.
4783 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4784 * implicit-zee.c: Remove TODO_dump_func.
4785 * lower-subreg.c: Remove TODO_dump_func.
4786 * bt-load.c: Remove TODO_dump_func.
4787 * tree-dfa.c: Remove TODO_dump_func.
4788 * except.c: Remove TODO_dump_func.
4789 * emit-rtl.c: Remove TODO_dump_func.
4790 * store-motion.c: Remove TODO_dump_func.
4791 * cfgexpand.c: Remove TODO_dump_func.
4792 * tree-cfgcleanup.c: Remove TODO_dump_func.
4793 * cfgcleanup.c: Remove TODO_dump_func.
4794 * tree-ssa-pre.c: Remove TODO_dump_func.
4795 * tree-sra.c: Remove TODO_dump_func.
4796 * tree-mudflap.c: Remove TODO_dump_func.
4797 * tree-ssa-copy.c: Remove TODO_dump_func.
4798 * cfglayout.c: Remove TODO_dump_func.
4799 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4800 * tree-ssa-dce.c: Remove TODO_dump_func.
4801 * ira.c: Remove TODO_dump_func.
4802 * tree-ssa.c: Remove TODO_dump_func.
4803 * integrate.c: Remove TODO_dump_func.
4804 * tree-optimize.c: Remove TODO_dump_func.
4805 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4806 * tree-object-size.c: Remove TODO_dump_func.
4807 * combine.c: Remove TODO_dump_func.
4808 * bb-reorder.c: Remove TODO_dump_func.
4809 * cprop.c: Remove TODO_dump_func.
4810 * var-tracking.c: Remove TODO_dump_func.
4811 * tree-profile.c: Remove TODO_dump_func.
4812 * tree-vect-generic.c: Remove TODO_dump_func.
4813 * reg-stack.c: Remove TODO_dump_func.
4814 * sched-rgn.c: Remove TODO_dump_func.
4815 * tree-ssa-structalias.c: Remove TODO_dump_func.
4816 * tree-switch-conversion.c: Remove TODO_dump_func.
4817 * tree-cfg.c: Remove TODO_dump_func.
4818 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4819 * combine-stack-adj.c: Remove TODO_dump_func.
4820 * dce.c: Remove TODO_dump_func.
4821 * tree-ssanames.c: Remove TODO_dump_func.
4822 * regcprop.c: Remove TODO_dump_func.
4823
4824 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4825
4826 PR middle-end/47364
4827 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4828 and properly handle result not in Pmode.
4829
4830 2011-06-14 Robert Millan <rmh@gnu.org>
4831
4832 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4833 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4834 `config/linux.h'.
4835
4836 * config/i386/kfreebsd-gnu64.h: New file.
4837 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4838 with `i386/kfreebsd-gnu64.h'.
4839
4840 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4841 (GNU_USER_LINK_EMULATION64): New macros.
4842 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4843 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4844 of hardcoding `elf_i386' and `elf_x86_64'.
4845
4846 2011-06-14 Nick Clifton <nickc@redhat.com>
4847
4848 PR target/49403
4849 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4850
4851 PR target/49402
4852 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4853
4854 2011-06-14 Jakub Jelinek <jakub@redhat.com>
4855
4856 PR fortran/49103
4857 * tree.h (DECL_NONSHAREABLE): Define.
4858 (struct tree_decl_common): Change decl_common_unused to
4859 decl_nonshareable_flag.
4860 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4861 Ignore vars with DECL_NONSHAREABLE bit set.
4862 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4863 on stores to automatic aggregate vars.
4864
4865 PR rtl-optimization/49390
4866 Revert:
4867 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4868
4869 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4870 MEM_ALIAS_SET.
4871
4872 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
4873 Tom de Vries <tom@codesourcery.com>
4874
4875 PR target/45098
4876 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4877 Document changed semantics.
4878 (max_stmt_executions, max_stmt_executions_int): Declare.
4879 * tree-data-ref.c (estimated_loop_iterations)
4880 (estimated_loop_iterations_int): Move functions...
4881 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4882 (estimated_loop_iterations_int): here.
4883 (record_estimate): Change nb_iterations_upper_bound and
4884 nb_iterations_estimate semantics.
4885 (max_stmt_executions, max_stmt_executions_int): New function.
4886 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4887 (max_stmt_executions_tree): this.
4888 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4889 estimated_loop_iterations_tree.
4890 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4891 max_stmt_executions_int instead of estimated_loop_iterations_int.
4892 * predict.c (predict_loops): Idem.
4893 * tree-parloops.c (parallelize_loops): Idem.
4894 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4895 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4896 (init_omega_for_ddr_1): Idem.
4897 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4898 (loop_prefetch_arrays): Idem
4899 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4900 max_stmt_executions instead of estimated_loop_iterations.
4901 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4902 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4903 instead of nb_iterations_upper_bound.
4904
4905 2011-06-13 Jan Hubicka <jh@suse.cz>
4906
4907 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4908
4909 2011-06-14 Richard Henderson <rth@redhat.com>
4910
4911 PR debug/48459
4912 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4913 (based_loc_descr): Assert it's true.
4914 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4915 aborting immediately.
4916
4917 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4918 Mingfeng Wu <mingfeng@faraday-tech.com>
4919
4920 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4921
4922 2011-06-13 Jan Hubicka <jh@suse.cz>
4923
4924 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4925
4926 2011-06-13 Jan Hubicka <jh@suse.cz>
4927
4928 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4929 similarly to DECL_COMDAT.
4930 * cgraphunit.c (cgraph_analyze_function): Likewise.
4931 * ipa.c (function_and_variable_visibility): Likewise.
4932
4933 2011-06-13 Jan Hubicka <jh@suse.cz>
4934
4935 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4936 BINFO_VIRTUALS when streaming for ltrans unit.
4937
4938 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
4939
4940 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4941 (movdi_internal64): Same.
4942
4943 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
4944
4945 PR target/44618
4946 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4947 a set of similar patterns, where the MATCH_OPERAND for the function
4948 argument is replaced with individual references to hardware registers.
4949 (save_fpregs_<mode>): Ditto
4950 (restore_gpregs_<mode>): Ditto
4951 (return_and_restore_gpregs_<mode>): Ditto
4952 (return_and_restore_fpregs_<mode>): Ditto
4953 (return_and_restore_fpregs_aix_<mode>): Ditto
4954
4955 2011-06-13 Jan Hubicka <jh@suse.cz>
4956
4957 * ipa-utils.c (postorder_stack): New structure.
4958 (ipa_reverse_postorder): Handle aliases.
4959
4960 2011-06-13 Jan Hubicka <jh@suse.cz>
4961
4962 * ipa-inline.c (reset_edge_caches): Walk aliases.
4963 (update_caller_keys): Do not test inlinability of aliases.
4964 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4965 (do_estimate_growth): Fix typo.
4966
4967 2011-06-13 Jan Hubicka <jh@suse.cz>
4968
4969 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4970 (can_remove_node_now_p): ... here; handle same comdat groups.
4971 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4972 (inline_call): Update use of can_remove_node_now_p.
4973
4974 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4975
4976 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4977 condition to disallow non-identical memory locations.
4978 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4979 preference to bit manipulation instructions.
4980
4981 2011-06-13 Jan Hubicka <jh@suse.cz>
4982
4983 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4984 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4985 (nonremovable_p): New function.
4986 (cgraph_can_remove_if_no_direct_calls_p): New function.
4987 (used_from_object_file_p): New functoin.
4988 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4989 references from aliases.
4990 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4991 * ipa-inline.c (check_caller_edge): New function.
4992 (want_inline_function_called_once_p): Use it; accept aliases called
4993 once, too.
4994 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4995
4996 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4997
4998 PR target/48454
4999 * config/arm/neon.md (vec_pack_trunc): Set the lengths
5000 correctly for the case with Quad vectors.
5001
5002 2011-06-13 Jakub Jelinek <jakub@redhat.com>
5003 Ira Rosen <ira.rosen@linaro.org>
5004
5005 PR tree-optimization/49352
5006 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
5007 all, make sure loop_use_stmt after the loop is a def stmt of a used
5008 SSA_NAME that is the only one defined inside of the loop. Don't
5009 check for COND_EXPR and GIMPLE_BINARY_RHS.
5010 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
5011 check_reduction is true.
5012
5013 2011-06-11 Jan Hubicka <jh@suse.cz>
5014
5015 PR middle-end/49373
5016 * ipa.c (cgraph_externally_visible_p): Check resolution info.
5017
5018 2011-06-11 Jan Hubicka <jh@suse.cz>
5019
5020 PR middle-end/48836
5021 * ipa-inline-transform.c: Include tree-pass.h
5022 (inline_transform): Set TODO_update_ssa_only_virtuals.
5023 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
5024
5025 2011-06-11 Jan Hubicka <jh@suse.cz>
5026
5027 PR middle-end/49378
5028 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
5029 aliases and thunks.
5030
5031 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
5032
5033 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
5034 Take number of iterations to peel into account for equally frequent
5035 misalignment values.
5036
5037 2011-06-11 Jan Hubicka <jh@suse.cz>
5038
5039 * lto-streamer-out.c (produce_symtab): Stream out the newly
5040 represented aliases.
5041
5042 2011-06-11 Jan Hubicka <jh@suse.cz>
5043
5044 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
5045 varying args.
5046 (ipa_update_after_lto_read): Likewise.
5047 (ipa_write_node_info): Do not sream call_with_var_arguments.
5048 (ipa_read_node_info): Likewise.
5049
5050 2011-06-11 Jan Hubicka <jh@suse.cz>
5051
5052 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
5053
5054 2011-06-11 Jan Hubicka <jh@suse.cz>
5055
5056 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
5057 (lto_symtab_resolve_can_prevail_p): Likewise.
5058 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
5059 * cgraph.c (same_body_aliases_done): New global var.
5060 (cgraph_same_body_alias_1): Rename to ...
5061 (cgraph_create_function_alias): ... this one; reorg to new
5062 representation.
5063 (cgraph_same_body_alias): Use cgraph_create_function_alias;
5064 record references when asked to.
5065 (cgraph_add_thunk): Fix formating.
5066 (cgraph_get_node): Kill same body alias code.
5067 (cgraph_node_for_asm): Likewise.
5068 (cgraph_remove_same_body_alias): Remove.
5069 (cgraph_remove_node): Kill same body alias code.
5070 (cgraph_mark_address_taken_node): Mark also the aliased function
5071 as having address taken.
5072 (dump_cgraph_node): Dump same body aliases.
5073 (cgraph_for_node_thunks_and_aliases): Update for new alias
5074 representation.
5075 (cgraph_for_node_and_aliases): Likewise.
5076 * cgraph.h (same_body): Kll pointer.
5077 (same_body_alias): Update comment.
5078 (same_body_aliases_done): Declare.
5079 (cgraph_remove_same_body_alias): Remove declaration.
5080 (cgraph_create_function_alias): Declare.
5081 (cgraph_process_same_body_aliases): Declare.
5082 (cgraph_function_with_gimple_body_p): Check for alias.
5083 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
5084 (cgraph_alias_aliased_node): New function.
5085 (cgraph_function_node): Update for new aliases.
5086 (cgraph_function_or_thunk_node): Likewise.
5087 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
5088 (inline_call): Remove dead aliases.
5089 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
5090 name hack for same body aliases.
5091 (clone_of_p): Look through aliases.
5092 (verify_cgraph_node): Verify aliases.
5093 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
5094 (cgraph_process_same_body_aliases): New function.
5095 (process_function_and_variable_attributes): Disable weakref warning on
5096 alias.
5097 (cgraph_analyze_functions): Handle aliases.
5098 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
5099 (assemble_thunks): Rename to ...
5100 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
5101 (cgraph_expand_function): Remove alias output code.
5102 (cgraph_output_in_order): Skip aliases.
5103 (cgraph_preserve_function_body_p): Aliases don't need preserving.
5104 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
5105 (ipa_record_reference): Do not assert on alias references.
5106 (ipa_ref_has_aliases_p): New function.
5107 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
5108 (ipa_ref_has_aliases_p): Declare.
5109 * lto-cgraph.c (lto_output_node): Handle aliases.
5110 (input_node): Likewise.
5111 * lto-streamer-out.c (lto_output): Skip aliases.
5112 (produce_symtab): Kill same_body_alias code.
5113 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
5114 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
5115 * ipa-inline.c (update_caller_keys): Walk aliases.
5116 (inline_small_functions): Fix thinko in previous patch.
5117 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
5118 (function_and_variable_visibility): Do not walk same body aliases.
5119 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
5120 (ipa_pta_execute): Use it.
5121
5122 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
5123
5124 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
5125 (*vec_dupv2df): Rename from vec_dupv2df.
5126 (vec_dupv2df): New expander.
5127
5128 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
5129
5130 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
5131
5132 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
5133
5134 * config/i386/i386.md: Use default value in "isa" attribute.
5135 * config/i386/sse.md: Ditto.
5136 * config/i386/mmx.md: Ditto.
5137
5138 2011-06-10 Wei Guozhi <carrot@google.com>
5139
5140 PR target/45335
5141 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5142 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5143 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5144 related peephole2.
5145 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5146 related peephole2.
5147 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5148 (arm_legitimate_ldrd_p): New prototype.
5149 (arm_output_ldrd): New prototype.
5150 * config/arm/arm.c (arm_check_ldrd_operands): New function.
5151 (arm_legitimate_ldrd_p): New function.
5152 (arm_output_ldrd): New function.
5153
5154 2011-06-10 David Li <davidxl@google.com>
5155
5156 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5157 * passes.c (passr_eq): New function.
5158 (create_pass_tab): New function.
5159 (pass_traverse): New function.
5160 (dump_one_pass): New function.
5161 (dump_pass_list): New function.
5162 (dump_passes): New function.
5163
5164 2011-06-10 Jan Hubicka <jh@suse.cz>
5165
5166 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
5167 setting the nothrow flag.
5168 * ipa-reference.c (propagate): Skip aliases.
5169 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
5170 (propagate_nothrow): Skip aliases; do not update cgraph.
5171 (local_pure_const): Do not update cgraph.
5172 * tree-profile.c (tree_profiling): Do fixup_cfg.
5173
5174 2011-06-10 Jan Hubicka <jh@suse.cz>
5175
5176 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
5177 (cgraph_local_node_p): ... here; handle aliases.
5178 (has_addr_references_p): Break out from ...;
5179 (cgraph_remove_unreachable_nodes) ... here.
5180
5181 2011-06-10 Jan Hubicka <jh@suse.cz>
5182
5183 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
5184 * common.opt (flag_inline_functions_called_once): Do not
5185 initialize to 1.
5186
5187 2011-06-10 Jan Hubicka <jh@suse.cz>
5188
5189 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
5190 (ipcp_initialize_node_lattices): Do not deal with aliases;
5191 Do not try to propagate through thunks.
5192 (ipcp_change_tops_to_bottom): Do not deal with aliases.
5193
5194 2011-06-10 Jan Hubicka <jh@suse.cz>
5195
5196 * ipa-prop.c (ipa_write_node_info): Stream jump functions
5197 for indirect calls.
5198 (ipa_read_node_info): Likewise.
5199
5200 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5201
5202 PR lto/49302
5203 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5204 (build_and_insert_call): Likewise.
5205 (build_and_insert_ref): New.
5206 (gimple_expand_builtin_pow): Minor cleanup.
5207 (gimple_expand_builtin_cabs): New.
5208 (execute_cse_sincos): Add case for BUILT_IN_CABS.
5209
5210 2011-06-10 Jan Hubicka <jh@suse.cz>
5211
5212 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5213 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5214 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5215 (ipcp_propagate_stage): Skip aliases when propagating.
5216 (ipcp_need_redirect_p): Skip aliases.
5217 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5218 collect_callers_of_node.
5219 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5220 for aliases.
5221 (ipa_compute_jump_functions): Look through aliases.
5222
5223 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5224
5225 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5226
5227 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5228
5229 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5230 Adjust comments.
5231 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5232
5233 2011-06-10 Jan Hubicka <jh@suse.cz>
5234
5235 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5236 Update call of gimple_get_virt_method_for_binfo.
5237 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5238 refuse_thunks parameter.
5239 (gimple_fold_call): Update.
5240 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5241
5242 2011-06-10 Jan Hubicka <jh@suse.cz>
5243
5244 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5245 (not_all_callers_have_enough_arguments_p): ... this one; turn into
5246 worker for cgraph_for_node_and_aliases.
5247 (convert_callers_for_node): Break out from ...
5248 (convert_callers): ... here.
5249 (modify_function): Use collect_callers_of_node.
5250 (ipa_early_sra): Use cgraph_for_node_and_aliases.
5251
5252 2011-06-10 Richard Guenther <rguenther@suse.de>
5253
5254 PR tree-optimization/49361
5255 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5256 when not already in gimple form.
5257
5258 2011-06-10 Richard Guenther <rguenther@suse.de>
5259
5260 PR bootstrap/49344
5261 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5262 FOR_EACH_PHI_OR_STMT_USE.
5263
5264 2011-06-10 Jan Hubicka <jh@suse.cz>
5265
5266 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5267 (clone_inlined_nodes): ... here.
5268 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5269 to real destination prior inlining.
5270 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5271 can_early_inline_edge_p, want_early_inline_function_p,
5272 want_early_inline_function_p, want_inline_small_function_p,
5273 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5274 edge_badness, update_all_callee_keys, lookup_recursive_calls,
5275 add_new_edges_to_heap, inline_small_functions, flatten_function,
5276 inline_always_inline_functions, early_inline_small_functions): Use
5277 cgraph_function_or_thunk_node.
5278 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5279 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5280 (do_estimate_edge_growth_1): Break out from ...
5281 (do_estimate_growth) ... here; walk aliases.
5282 (inline_generate_summary): Skip aliases.
5283
5284 2011-06-10 Richard Guenther <rguenther@suse.de>
5285
5286 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5287 forward when combining, visit inserted stmts when a stmt was changed.
5288
5289 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
5290
5291 * tree.h (error_operand_p): Add.
5292 * dbxout.c (dbxout_type_fields): Use the latter.
5293 * c-decl.c (add_stmt): Likewise.
5294 * gimplify.c (omp_add_variable, omp_notice_variable,
5295 gimplify_scan_omp_clauses): Likewise.
5296
5297 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
5298
5299 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5300 when a value is actually passed in regs.
5301
5302 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
5303 Laurent Rougé <laurent.rouge@menta.fr>
5304
5305 * doc/invoke.texi (SPARC options): Add -mflat.
5306 * config/sparc/sparc.opt: Likewise.
5307 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5308 (sparc_flat_expand_prologue): Declare.
5309 (sparc_flat_expand_epilogue): Likewise.
5310 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5311 (CPP_ENDIAN_SPEC): Replace with...
5312 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
5313 (CPP_SPEC): Adjust to above change.
5314 (EXTRA_SPECS): Likewise.
5315 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5316 (INCOMING_REGNO): Likewise.
5317 (OUTGOING_REGNO): Likewise.
5318 (LOCAL_REGNO): Likewise.
5319 (SETUP_FRAME_ADDRESSES): Likewise.
5320 (FIXED_REGISTERS): Set 0 for %fp.
5321 (CALL_USED_REGISTERS): Likewise.
5322 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5323 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5324 (RETURN_ADDR_REGNUM): Define.
5325 (RETURN_ADDR_RTX): Use it.
5326 (INCOMING_RETURN_ADDR_REGNUM): Define.
5327 (INCOMING_RETURN_ADDR_RTX): Use it.
5328 (DWARF_FRAME_RETURN_COLUMN): Likewise.
5329 (EH_RETURN_REGNUM): Define.
5330 (EH_RETURN_STACKADJ_RTX): Use it.
5331 (EH_RETURN_HANDLER_RTX): Delete.
5332 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5333 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5334 Delete.
5335 (struct machine_function): Add frame_size, apparent_frame_size,
5336 frame_base_reg, frame_base_offset, n_global_fp_regs and
5337 save_local_in_regs_p fields.
5338 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5339 sparc_frame_base_offset, sparc_n_global_fp_regs,
5340 sparc_save_local_in_regs_p): New macros.
5341 (sparc_option_override): Error out if -fcall-saved-REG is specified
5342 for Out registers.
5343 (eligible_for_restore_insn): Fix formatting.
5344 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5345 (eligible_for_sibcall_delay): Likewise.
5346 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5347 (sparc_legitimate_address_p): Adjust to above change.
5348 (save_global_or_fp_reg_p): New predicate.
5349 (return_addr_reg_needed_p): Likewise.
5350 (save_local_or_in_reg_p): Likewise.
5351 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5352 (SORR_SAVE, SORR_RESTORE): Delete.
5353 (sorr_pred_t): New typedef.
5354 (sorr_act_t): New enum.
5355 (save_or_restore_regs): Rename to...
5356 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5357 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5358 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5359 mechanism. Add CFI information for double-word saves in 32-bit mode.
5360 (emit_adjust_base_to_offset): New function extracted from...
5361 (emit_save_or_restore_regs): ...this. Rename the rest to...
5362 (emit_save_or_restore_regs_global_fp_regs): ...this.
5363 (emit_save_or_restore_regs_local_in_regs): New function.
5364 (gen_create_flat_frame_[123]): New functions.
5365 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5366 (sparc_flat_expand_prologue): New function.
5367 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5368 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5369 (sparc_flat_expand_epilogue): New function.
5370 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5371 (output_return): Likewise.
5372 (output_sibcall): Likewise.
5373 (sparc_output_mi_thunk): Likewise.
5374 (sparc_frame_pointer_required): Likewise.
5375 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5376 function optimization.
5377 * config/sparc/sparc.md (flat): New attribute.
5378 (prologue): Add TARGET_FLAT handling.
5379 (save_register_window): Disable if TARGET_FLAT.
5380 (create_flat_frame_[123]): New patterns.
5381 (epilogue): Add TARGET_FLAT handling.
5382 (sibcall_epilogue): Likewise.
5383 (eh_return): New expander.
5384 (eh_return_internal): New insn and splitter.
5385 (return_internal): Add TARGET_FLAT handling.
5386 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5387 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5388 (nonlocal_goto): Add TARGET_FLAT handling.
5389 * config/sparc/t-elf: Add -mflat multilib.
5390 * config/sparc/t-leon: Likewise.
5391
5392 2011-06-10 Jan Hubicka <jh@suse.cz>
5393
5394 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5395 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5396 (self_recursive_p): Use cgraph_function_node.
5397 (propagate_pure_const): Likewise.
5398 (propagate_nothrow): Likewise.
5399 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5400 cgraph_function_node.
5401 (propagate_bits): Likewise.
5402 (propagate): Likewise.
5403
5404 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5405 Richard Earnshaw <rearnsha@arm.com>
5406
5407 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5408 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5409 (*thumb2_movdi_vfp): Delete.
5410 (*arm_movdi_vfp_cortexa8): Delete.
5411 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5412 (*movdi_vfp_cortexa8): Likewise.
5413
5414 2011-06-10 Richard Guenther <rguenther@suse.de>
5415
5416 * stor-layout.c (initialize_sizetypes): Give names to all
5417 sizetype kinds.
5418
5419 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
5420
5421 PR tree-optimization/49318
5422 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5423 irrelevant pattern statements.
5424
5425 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5426
5427 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5428
5429 PR bootstrap/49354
5430 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5431 to last assignment.
5432
5433 2011-06-09 Jan Hubicka <jh@suse.cz>
5434
5435 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5436 do not recompute reachable flag.
5437 (cgraph_finalize_function, cgraph_analyze_functions): Set
5438 redefined_extern_inline here.
5439
5440 2011-06-09 Jan Hubicka <jh@suse.cz>
5441
5442 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5443 (cgraph_only_called_directly_p): ... this one; bring offline.
5444 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5445 varpool_used_from_object_file_p): Drop names from the declaratoin.
5446 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5447 collect_callers_of_node): New.
5448 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5449 (cgraph_edge_recursive_p): Use cgraph_function_node.
5450 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5451 (cgraph_node_cannot_be_local_p_1): Break out from ...
5452 (cgraph_node_can_be_local_p): ... here; walk aliases.
5453 (cgraph_for_node_thunks_and_aliases): New function.
5454 (cgraph_for_node_and_aliases): New function.
5455 (cgraph_make_node_local_1): Break out from ...
5456 (cgraph_make_node_local) ... here; use
5457 cgraph_for_node_thunks_and_aliases.
5458 (cgraph_set_nothrow_flag_1): Break out from ...
5459 (cgraph_set_nothrow_flag) ... here;
5460 use cgraph_for_node_thunks_and_aliases.
5461 (cgraph_set_const_flag_1): Break out from ...
5462 (cgraph_set_const_flag) ... here;
5463 use cgraph_for_node_thunks_and_aliases.
5464 (cgraph_set_pure_flag_1): Break out from ...
5465 (cgraph_set_pure_flag) ... here;
5466 use cgraph_for_node_thunks_and_aliases.
5467 (cgraph_propagate_frequency_1): Break out from ...
5468 (cgraph_propagate_frequency) ... here; use
5469 cgraph_for_node_thunks_and_aliases.
5470 (cgraph_used_from_object_file_p): Do not care about aliases.
5471 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5472 New functions.
5473 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5474
5475 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5476
5477 PR rtl-optimization/49154
5478 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5479 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5480 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5481 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5482 * config/cris/cris.h (cris_register_move_cost): Remove
5483 !TARGET_V32 code. Tweak comments.
5484
5485 2011-06-09 Jan Hubicka <jh@suse.cz>
5486
5487 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5488 address taken.
5489
5490 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5491
5492 PR rtl-optimization/49154
5493 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5494 is a matching slot in the hashtable, assign it to classes_ptr.
5495
5496 PR rtl-optimization/49154
5497 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5498 register classes.
5499 * doc/tm.texi: Regenerate.
5500
5501 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5502
5503 PR target/49307
5504 * config/sh/sh.md (UNSPEC_CHKADD): New.
5505 (chk_guard_add): New define_insn_and_split.
5506 (symGOT_load): Use chk_guard_add instead of blockage.
5507
5508 2011-06-09 Kai Tietz <ktietz@redhat.com>
5509
5510 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5511
5512 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5513
5514 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5515
5516 2011-06-09 Wei Guozhi <carrot@google.com>
5517
5518 PR target/46975
5519 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5520 (peephole2 for conditional move): Generate 16 bit instructions.
5521
5522 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
5523
5524 * config/i386/i386.md (*movdi_internal_rex64): Merge
5525 alternatives 6 and 8.
5526
5527 2011-06-09 David Li <davidxl@google.com>
5528
5529 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5530 * passes.c (passr_eq): New function.
5531 (create_pass_tab): New function.
5532 (pass_traverse): New function.
5533 (dump_one_pass): New function.
5534 (dump_pass_list): New function.
5535 (dump_passes): New function.
5536
5537 2011-06-09 David Li <davidxl@google.com>
5538
5539 * tree-complex.c (tree_lower_complex): Gate cleanup.
5540 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5541 (execute_optimize_stdarg): Ditto.
5542 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5543 (execute_cleanup_eh_1): Ditto.
5544 (execute_cleanup_eh): Ditto.
5545 * gcse.c (gate_rtl_pre): Ditto.
5546 (execute_rtl_pre): Ditto.
5547 * except.c (finish_eh_generation): Ditto.
5548 (convert_to_eh_region_ranges): Ditto.
5549 * cprop.c (one_cprop_pass): Ditto.
5550
5551 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5552
5553 PR target/48673
5554 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5555 in all basic blocks.
5556
5557 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5558
5559 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5560 (HAVE_ENABLE_EXECUTE_STACK): Define.
5561 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5562 (HAVE_ENABLE_EXECUTE_STACK): Define.
5563 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5564 (HAVE_ENABLE_EXECUTE_STACK): Define.
5565 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5566 (ENABLE_EXECUTE_STACK): Remove.
5567 (HAVE_ENABLE_EXECUTE_STACK): Define.
5568 [IN_LIBGCC2]: Don't include <windows.h>.
5569 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5570 (HAVE_ENABLE_EXECUTE_STACK): Define.
5571 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5572 (HAVE_ENABLE_EXECUTE_STACK): Define.
5573 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5574 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5575 (HAVE_ENABLE_EXECUTE_STACK): Define.
5576 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5577 (HAVE_ENABLE_EXECUTE_STACK): Define.
5578 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5579 (HAVE_ENABLE_EXECUTE_STACK): Define.
5580 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5581 (HAVE_ENABLE_EXECUTE_STACK): Define.
5582 * config/alpha/alpha.c (alpha_trampoline_init): Test
5583 HAVE_ENABLE_EXECUTE_STACK.
5584 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5585 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5586 (sparc64_initialize_trampoline): Likewise.
5587 * libgcc2.c [L_enable_execute_stack]: Remove.
5588 * system.h (ENABLE_EXECUTE_STACK): Poison.
5589 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5590 * doc/tm.texi: Regenerate.
5591 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5592
5593 2011-06-09 Jakub Jelinek <jakub@redhat.com>
5594
5595 PR middle-end/49308
5596 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5597 variable. After resetting and rescanning insn continue with previous
5598 statement.
5599
5600 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5601
5602 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5603 (gcc_cv_ld_hidden): Likewise.
5604 * configure: Regenerate.
5605 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5606 (ix86_stack_protect_fail): Mark unused.
5607 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5608 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5609 [TARGET_MACHO]: Don't define.
5610 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5611 (TARGET_STACK_PROTECT_FAIL): Likewise.
5612 (rs6000_stack_protect_fail): Mark unused.
5613 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5614 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
5615
5616 2011-06-08 Andi Kleen <ak@linux.intel.com>
5617
5618 * varasm.c (get_section): Print location of other conflict
5619 for section conflicts.
5620
5621 2011-06-08 Andi Kleen <ak@linux.intel.com>
5622
5623 * config/i386/driver-i386.c (host_detect_local_cpu):
5624 Add model 0x2d Intel CPU.
5625
5626 2011-06-08 Andi Kleen <ak@linux.intel.com>
5627
5628 * reginfo.c (global_regs_decl): Add.
5629 (globalize_reg): Add decl parameter. Compute location. Pass location
5630 to warnings and add inform. Store decl in global_regs_decl.
5631 * rtl.h (globalize_reg): Update prototype.
5632 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5633
5634 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5635
5636 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5637
5638 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5639
5640 PR target/49305
5641 * config/sh/predicates.md (general_movsrc_operand): Check
5642 mode for memory with indexed address for QI and HImode.
5643 (general_movdst_operand): Likewise.
5644
5645 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5646
5647 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5648
5649 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
5650
5651 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5652 (num_ssa_operands): Likewise.
5653 (op_iter_init_phiuse): Forward-declare.
5654 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5655
5656 2011-06-08 Nick Clifton <nickc@redhat.com>
5657
5658 * doc/invoke.texi (ARM Options): Update description of
5659 -mthumb-interwork.
5660
5661 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5662
5663 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5664 unknown Intel family 0x6 CPUs.
5665
5666 2011-06-08 Martin Jambor <mjambor@suse.cz>
5667
5668 * tree-sra.c (mark_rw_status): Removed.
5669 (analyze_access_subtree): New parameter parent instead of
5670 mark_read and mark_write, propagate from that.
5671
5672 2011-06-08 Julian Brown <julian@codesourcery.com>
5673
5674 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5675 for double-precision helper functions in hard-float mode if only
5676 single-precision arithmetic is supported in hardware.
5677
5678 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
5679
5680 PR rtl-optimization/49303
5681 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5682 code_motion_path_driver returned 0 or 1.
5683 (sel_region_finish): Clear h_d_i_d.
5684
5685 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5686
5687 * config/sh/sh.c (prepare_move_operands): Set pic register
5688 appropriately for global and local dynamic tls models even
5689 if flag_pic is unset.
5690
5691 2011-06-07 Jason Merrill <jason@redhat.com>
5692
5693 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5694
5695 2011-06-07 Xinliang David Li <davidxl@google.com>
5696 * passes.c (enable_disable_pass): Handle assembler name.
5697 (is_pass_explicitly_enabled_or_disabled): Ditto.
5698
5699 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5700
5701 PR tree-optimization/48497
5702 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5703
5704 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5705
5706 PR tree-optimization/46728
5707 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5708 to use gimple_val_nonnegative_real_p.
5709 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5710 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5711
5712 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5713
5714 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5715
5716 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5717
5718 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5719 constant vectors.
5720
5721 2011-06-07 Richard Guenther <rguenther@suse.de>
5722
5723 * stor-layout.c (initialize_sizetypes): Initialize all
5724 sizetypes based on target definitions.
5725 (set_sizetype): Remove.
5726 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5727 * tree.h (set_sizetype): Remove.
5728
5729 2011-06-07 Nick Clifton <nickc@redhat.com>
5730
5731 * config.gcc: Unify V850 architecture options and add support for
5732 newer V850 architectures.
5733 * config/v850/t-v850e: Delete.
5734
5735 2011-06-07 Richard Guenther <rguenther@suse.de>
5736
5737 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5738 Call set_sizetype from here.
5739
5740 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
5741
5742 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5743 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5744
5745 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5746 Andrew Stubbs <ams@codesourcery.com>
5747
5748 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5749 multiplies.
5750 * doc/md.texi (Canonicalization of Instructions): Document widening
5751 multiply canonicalization.
5752
5753 2011-06-07 Jakub Jelinek <jakub@redhat.com>
5754
5755 PR gcov-profile/49299
5756 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5757
5758 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
5759
5760 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5761 a pointer.
5762 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5763 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5764 vect_recog_pow_pattern): Likewise.
5765 (vect_pattern_recog_1): Remove declaration.
5766 (widened_name_p): Remove declaration. Add new argument to specify
5767 whether to check that both types are either signed or unsigned.
5768 (vect_recog_widen_mult_pattern): Update documentation. Handle
5769 unsigned patterns and multiplication by constants.
5770 (vect_pattern_recog_1): Update vect_recog_func references. Use
5771 statement information from the statement returned from pattern
5772 detection functions.
5773 (vect_pattern_recog): Update vect_recog_func reference.
5774 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5775 multiplication by a constant use the type of the other operand.
5776
5777 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5778
5779 PR rtl-optimization/49145
5780 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5781
5782 2011-06-06 Jakub Jelinek <jakub@redhat.com>
5783
5784 PR debug/49262
5785 * dwarf2out.c (native_encode_initializer): Decrement count in each
5786 iteration.
5787
5788 PR debug/49294
5789 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5790 non-MODE_INT modes.
5791
5792 PR c++/49264
5793 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5794 if stmt folded into nothing.
5795 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5796 a bb folded into nothing, just update cgraph edges and move to next bb.
5797 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5798 to be NULL. Don't compute count and frequency if new_call is NULL.
5799
5800 2011-06-04 Diego Novillo <dnovillo@google.com>
5801
5802 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5803 (cgraph.o): Likewise.
5804 (cgraphunit.o): Likewise.
5805 * cgraphunit.c: Include lto-streamer.h
5806 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5807 if LTO is enabled.
5808 * lto-streamer-in.c (unpack_value_fields): Call
5809 streamer_hooks.unpack_value_fields if set.
5810 (lto_materialize_tree): For unhandled nodes, first try to
5811 call lto_streamer_hooks.alloc_tree, if it exists.
5812 (lto_input_ts_decl_common_tree_pointers): Move reading of
5813 DECL_INITIAL to lto_streamer_read_tree.
5814 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5815 (lto_streamer_read_tree): New.
5816 (lto_reader_init): Rename from lto_init_reader.
5817 Move initialization code to lto/lto.c.
5818 * lto-streamer-out.c (pack_value_fields): Call
5819 streamer_hooks.pack_value_fields if set.
5820 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5821 call streamer_hooks.indexable_with_decls_p before giving up.
5822 (lto_output_ts_decl_common_tree_pointers): Move handling
5823 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5824 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5825 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5826 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
5827 (lto_streamer_write_tree): New.
5828 (lto_output): Call lto_streamer_init directly.
5829 (lto_writer_init): Remove.
5830 * lto-streamer.c (streamer_hooks): New.
5831 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5832 instead of lto_preload_common_nodes.
5833 (lto_is_streamable): Move from lto-streamer.h
5834 (lto_streamer_hooks_init): New.
5835 (streamer_hooks): New.
5836 (streamer_hooks_init): New.
5837 * lto-streamer.h (struct output_block): Forward declare.
5838 (struct lto_input_block): Likewise.
5839 (struct data_in): Likewise.
5840 (struct bitpack_d): Likewise.
5841 (struct streamer_hooks): Declare.
5842 (streamer_hooks): Declare.
5843 (lto_streamer_hooks_init): Declare.
5844 (lto_streamer_write_tree): Declare.
5845 (lto_streamer_read_tree): Declare.
5846 (streamer_hooks_init): Declare.
5847 (lto_is_streamable): Move to lto-streamer.c
5848
5849 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5850
5851 * longlong.h (smul_ppmm): The resulting register pair contains the
5852 higher order word first.
5853
5854 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5855
5856 PR tree-optimization/46728
5857 * builtins.c (powi_table): Remove.
5858 (powi_lookup_cost): Remove.
5859 (powi_cost): Remove.
5860 (expand_powi_1): Remove.
5861 (expand_powi): Remove.
5862 (expand_builtin_pow_root): Remove.
5863 (expand_builtin_pow): Remove.
5864 (expand_builtin_powi): Eliminate handling of constant exponent.
5865 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
5866
5867 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5868
5869 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5870
5871 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5872
5873 * dce.c (reset_unmarked_insns_debug_uses): New.
5874 (delete_unmarked_insns): Skip debug insns.
5875 (prescan_insns_for_dce): Likewise.
5876 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5877 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5878 active reg can be found.
5879 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5880 (convert_regs_1): Use it.
5881
5882 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5883
5884 * tree-pretty-print.c (dump_function_header): Add flags.
5885 Don't dump decl_uid with nouid.
5886 * tree-pretty-print.h (dump_function_header): Adjust.
5887 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5888 * passes.c (pass_init_dump_file): Pass dump_flags on.
5889 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5890
5891 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5892
5893 PR bootstrap/49270
5894 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5895
5896 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5897
5898 PR tree-optimization/49243
5899 * calls.c (setjmp_call_p): Also check if fndecl has the
5900 returns_twice attribute.
5901
5902 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5903
5904 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5905 -ffast-math etc.
5906
5907 2011-06-06 Richard Henderson <rth@redhat.com>
5908 Georg-Johann Lay <avr@gjlay.de>
5909
5910 PR target/42210
5911 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5912 New predicates.
5913 * config/avr/avr.md ("insv"): New insn expander.
5914 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5915 "*insv.not.io", "*insv.reg"): New insns.
5916
5917 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5918
5919 PR target/49285
5920 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5921 to nonimmediate_operand from memory_operand for the operand that is to
5922 be forced to memory by the expander. Lose the constraints.
5923
5924 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5925
5926 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5927 EH return when delayed branches are disabled.
5928
5929 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
5930
5931 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5932 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5933 calculation.
5934 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5935 Simplify MODE_V1DF and MODE_V2SF handling.
5936 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5937 Simplify MODE_SF handling.
5938
5939 2011-06-04 Jan Hubicka <jh@suse.cz>
5940
5941 PR tree-optimization/48893
5942 PR tree-optimization/49091
5943 PR tree-optimization/49179
5944 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5945 Bounds check.
5946
5947 2011-06-04 Jan Hubicka <jh@suse.cz>
5948
5949 PR lto/48954
5950 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5951 bitmaps.
5952
5953 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5954
5955 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5956
5957 2011-06-04 Jakub Jelinek <jakub@redhat.com>
5958
5959 PR target/49281
5960 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5961 to be strictly smaller than 1 << shiftcount.
5962
5963 2011-06-04 Jan Hubicka <jh@suse.cz>
5964
5965 PR tree-optimize/48929
5966 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5967 of empty predicate.
5968
5969 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
5970
5971 PR debug/48333
5972 * calls.c (emit_call_1): Prefer the __builtin declaration of
5973 builtin functions.
5974
5975 2011-06-03 Diego Novillo <dnovillo@google.com>
5976
5977 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5978 (lto_input_tree_pointers): Likewise.
5979 * lto-streamer-out.c (pack_value_fields): Likewise.
5980 (lto_output_tree_pointers): Likewise.
5981 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5982 and OPTIMIZATION_NODE.
5983
5984 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5985
5986 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5987 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5988 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5989 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5990 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5991 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5992 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5993 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5994 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5995 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5996 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5997 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5998 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5999 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
6000 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
6001 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
6002 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
6003 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
6004 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
6005 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
6006 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
6007 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
6008 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
6009 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
6010 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
6011 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
6012 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
6013 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
6014 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
6015 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
6016 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
6017 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
6018 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
6019 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
6020 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
6021 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
6022 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
6023 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
6024 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
6025 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
6026 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
6027 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
6028 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
6029 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
6030 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
6031 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
6032 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
6033 * system.h (MD_UNWIND_SUPPORT): Poison.
6034 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
6035 * doc/tm.texi: Regenerate.
6036 * unwind-dw2.c: Include md-unwind-support.h instead of
6037 MD_UNWIND_SUPPORT.
6038 * config/ia64/unwind-ia64.c: Likewise.
6039 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6040
6041 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
6042
6043 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
6044
6045 2011-06-03 Richard Henderson <rth@redhat.com>
6046 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6047
6048 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
6049 (sigill_hdlr): Correct insn, insn size.
6050 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
6051
6052 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6053
6054 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
6055 t-slibgcc-dummy.
6056 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
6057 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
6058 * config/mips/t-iris: Remove.
6059 * config/mips/t-irix6: New file.
6060 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
6061
6062 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6063
6064 * Makefile.in (LIB2ADDEHDEP): Remove.
6065 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
6066 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
6067 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
6068 * config/t-darwin (LIB2ADDEHDEP): Remove.
6069 * config/t-freebsd (LIB2ADDEHDEP): Remove.
6070 * config/t-linux (LIB2ADDEHDEP): Remove.
6071
6072 2011-06-03 Diego Novillo <dnovillo@google.com>
6073
6074 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
6075 (lto_register_var_decl_in_symtab): Likewise.
6076 (lto_register_function_decl_in_symtab): Likewise.
6077 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
6078 logic to uniquify_nodes.
6079
6080 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6081
6082 * config/alpha/t-osf5: Remove.
6083 * config/alpha/t-osf-pthread: Remove.
6084 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
6085 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
6086
6087 2011-06-03 Julian Brown <julian@codesourcery.com>
6088
6089 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
6090 (strongarm1110): Use strongarm tuning.
6091 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
6092 * config/arm/arm.c (arm_strongarm_tune): New.
6093 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6094 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
6095 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
6096 setting, using previous defaults or 1 for Cortex-A5.
6097 (arm_option_override): Set max_insns_skipped from current tuning.
6098
6099 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
6100
6101 * doc/install.texi (Options specification): Document --with-specs.
6102
6103 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6104
6105 * config/arm/neon.md (orndi3_neon): Actually split it.
6106
6107 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
6108
6109 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
6110 * var-tracking.c (reverse_op): Limite recurse depth to 5.
6111
6112 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
6113
6114 PR debug/47590
6115 * target.def (delay_sched2, delay_vartrack): New.
6116 * doc/tm.texi.in: Update.
6117 * doc/tm.texi: Rebuild.
6118 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
6119 * var-tracking.c (gate_handle_var_tracking): Likewise.
6120 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
6121 (bfin_flag_var_tracking): Drop.
6122 (output_file_start): Don't save and override flag_var_tracking.
6123 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
6124 (bfin_reorg): Test original variables.
6125 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6126 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
6127 (ia64_flag_var_tracking): Drop.
6128 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6129 (ia64_file_start): Don't save and override flag_var_tracking.
6130 (ia64_override_options_after_change): Ditto
6131 flag_schedule_insns_after_reload.
6132 (ia64_reorg): Test original variables.
6133 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
6134 (picochip_flag_var_tracking): Drop.
6135 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6136 (picochip_option_override): Don't save and override
6137 flag_schedule_insns_after_reload.
6138 (picochip_asm_file_start): Ditto flag_var_tracking.
6139 (picochip_reorg): Test original variables.
6140 * config/spu/spu.c (spu_flag_var_tracking): Drop.
6141 (TARGET_DELAY_VARTRACK): Define.
6142 (spu_var_tracking): New.
6143 (spu_machine_dependent_reorg): Call it.
6144 (asm_file_start): Don't save and override flag_var_tracking.
6145
6146 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
6147
6148 PR target/49163
6149 * config/sh/predicates.md (general_movsrc_operand): Return 0
6150 for memory and memory subreg of which address is an invalid
6151 indexed address for QI and HImode.
6152 (general_movdst_operand): Likewise.
6153
6154 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6155
6156 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
6157 edges only, when there is a non-local label in the function.
6158 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
6159
6160 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
6161
6162 * config/i386/constraints.md (Y3): New register constraint.
6163 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
6164 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
6165 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
6166 *sse2_interleave_lowv2df.
6167
6168 2011-06-02 Julian Brown <julian@codesourcery.com>
6169
6170 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
6171 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
6172 (arm_cortex_a5_tune): New.
6173
6174 2011-06-02 Julian Brown <julian@codesourcery.com>
6175
6176 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
6177 * config/arm/arm.c (arm_default_branch_cost): New.
6178 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6179 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
6180 (arm_fa726_tune): Set branch_cost field using
6181 arm_default_branch_cost.
6182 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
6183 current_tune structure.
6184 * dojump.c (tm_p.h): Include file.
6185
6186 2011-06-02 Julian Brown <julian@codesourcery.com>
6187
6188 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
6189 tuning.
6190 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
6191 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6192 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
6193 field.
6194 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
6195 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
6196 (arm_fa726te_tune): Add prefer_constant_pool setting.
6197 (arm_v6t2_tune, arm_cortex_tune): New.
6198 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
6199 prefer_constant_pool setting.
6200
6201 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
6202
6203 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
6204 switch statement.
6205 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
6206 (*movdf_internal) <case 6,7,8>: Ditto.
6207
6208 * config/i386/constraints.md (Y4): New register constraint.
6209 * config/i386/sse.md (vec_set<mode>_0): Merge with
6210 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6211 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6212 *vec_extractv2di_1_sse.
6213 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6214 and *vec_concatv2di_rex64_sse.
6215
6216 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
6217
6218 PR target/48807
6219 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6220 of cgraph_local_info for null before attempting to use it.
6221
6222 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6223
6224 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6225 (current_function_dynamic_alloc_count): Delete.
6226 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6227 (expand_builtin_nonlocal_goto): Remove obsolete comment.
6228 (expand_builtin_update_setjmp_buf): Remove dead code.
6229 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6230 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6231 support.
6232 * function.c (instantiate_virtual_regs): Likewise.
6233 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6234 for a block with a single abnormal incoming edge.
6235 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
6236 (SETJMP_VIA_SAVE_AREA): Delete.
6237 * config/sparc/sparc-protos.h (load_got_register): Declare.
6238 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6239 (load_got_register): Make global.
6240 (sparc_frame_pointer_required): Add 'static'.
6241 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
6242 (sparc_builtin_setjmp_frame_value): New function.
6243 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6244 (save_stack_nonlocal): New expander.
6245 (restore_stack_nonlocal): Likewise.
6246 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6247 (nonlocal_goto_internal): New insn.
6248 (goto_handler_and_restore): Delete.
6249 (builtin_setjmp_setup): Likewise.
6250 (do_builtin_setjmp_setup): Likewise.
6251 (setjmp): Likewise.
6252 (builtin_setjmp_receiver): New expander.
6253
6254 2011-06-01 David Li <davidxl@google.com>
6255
6256 PR middle-end/49261
6257 * tree-pretty-print.c (dump_function_header): Format cleanup.
6258
6259 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
6260
6261 PR target/49238
6262 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6263 needed when original operands are used for msw_skip comparison.
6264
6265 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6266
6267 PR debug/49250
6268 * var-tracking.c (add_uses, add_stores): Don't call
6269 cselib_subst_to_values on ENTRY_VALUE.
6270
6271 2011-06-01 Diego Novillo <dnovillo@google.com>
6272
6273 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6274 output_record_start with LTO_null instead of output_zero.
6275 (lto_output_ts_binfo_tree_pointers): Likewise.
6276 (lto_output_tree): Likewise.
6277 (output_eh_try_list): Likewise.
6278 (output_eh_region): Likewise.
6279 (output_eh_lp): Likewise.
6280 (output_eh_regions): Likewise.
6281 (output_bb): Likewise.
6282 (output_function): Likewise.
6283 (output_unreferenced_globals): Likewise.
6284 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6285 instead of NUM_TREE_CODES.
6286 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6287 (lto_output_int_in_range): Change << to >> when shifting VAL.
6288
6289 2011-06-01 Diego Novillo <dnovillo@google.com>
6290
6291 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6292 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6293
6294 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6295
6296 PR target/45074
6297 * optabs.h (valid_multiword_target_p): Declare.
6298 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6299 doing multi-word operations.
6300 * optabs.c (expand_binop): Likewise.
6301 (expand_doubleword_bswap): Likewise.
6302 (expand_absneg_bit): Likewise.
6303 (expand_unop): Likewise.
6304 (expand_copysign_bit): Likewise.
6305 (multiword_target_p): New function.
6306
6307 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6308
6309 PR rtl-optimization/48830
6310 PR rtl-optimization/48808
6311 PR rtl-optimization/48792
6312 * reload.c (push_reload): Check contains_reg_of_mode.
6313 * reload1.c (strip_paradoxical_subreg): New function.
6314 (gen_reload_chain_without_interm_reg_p): Use it to handle
6315 paradoxical subregs.
6316 (emit_output_reload_insns, gen_reload): Likewise.
6317
6318 2011-06-01 David Li <davidxl@google.com>
6319
6320 * predict.c : Change pass name
6321 * ipa.c: Ditto.
6322 * dce.c: Ditto.
6323 * tree-profile.c: Ditto.
6324 * except.c: Ditto.
6325
6326 2011-06-01 David Li <davidxl@google.com>
6327
6328 * tree-pretty-print.c (dump_function_header): New function.
6329 * final.c (rest_of_clean_state): Use header dumper.
6330 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6331 * passes.c (pass_init_dump_file): Use header dumper.
6332
6333 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6334
6335 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6336 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6337 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6338 New functions.
6339 (mem_loc_descriptor): Use them.
6340
6341 * var-tracking.c (create_entry_value): New function.
6342 (vt_add_function_parameter): Use it.
6343
6344 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6345
6346 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6347 Include <signal.h>, <ucontext.h>.
6348 (sigill_caught): Define.
6349 (sigill_hdlr): New function.
6350 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6351 insns can be executed.
6352 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6353 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6354
6355 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6356
6357 * config/t-slibgcc-darwin: Move to ...
6358 * config/t-slibgcc-dummy: ... this. Clarify comments.
6359 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6360 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6361 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6362 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
6363 Remove i386/t-crtstuff from tmake_file.
6364 (i[34567]86-*-solaris2*): Remove t-svr4,
6365 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6366 t-slibgcc-dummy.
6367 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6368 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6369 sparc/t-crtfm from tmake_file.
6370 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6371 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6372 Remove extra_parts.
6373 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6374 * config/i386/t-nwld (SHLIB_LINK): Remove.
6375 * config/i386/t-rtems-i386: Rename to ...
6376 * config/i386/t-rtems: ... this.
6377 ($(T)crti.o, $(T)crtn.o): Remove.
6378 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6379 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6380 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6381 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6382 EXTRA_MULTILIB_PARTS): Remove.
6383 * config/sparc/t-sol2-64: Likewise.
6384 * config/sparc/t-sol2: Remove.
6385 * config/sparc/t-crtin: Remove.
6386 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6387 * config/i386/gmon-sol2.c: Remove.
6388 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6389 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6390 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6391 * config/i386/sol2-gc1.asm: Remove.
6392 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6393 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6394 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6395 * config/t-slibgcc-sld: Remove.
6396
6397 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6398
6399 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6400 base_type_for_mode with op_mode instead of mode.
6401
6402 2011-06-01 Paul Brook <paul@cpodesourcery.com>
6403
6404 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6405 Cortex-A15.
6406 * config/arm/arm-tune.md: Regenerate.
6407 * config/arm/arm-tables.opt: Regenerate.
6408 * config/arm/arm.c (FL_DIV): Rename...
6409 (FL_THUMB_DIV): ... to this.
6410 (FL_ARM_DIV): Define.
6411 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6412 (arm_arch_hwdiv): Remove.
6413 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6414 (arm_issue_rate): Add cortexr5.
6415 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6416 __ARM_ARCH_EXT_IDIV__.
6417 (TARGET_IDIV): Define.
6418 (arm_arch_hwdiv): Remove.
6419 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6420 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6421 (divsi3, udivsi3): New patterns.
6422 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6423 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6424
6425 2011-06-01 Martin Jambor <mjambor@suse.cz>
6426
6427 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6428 * ipa-utils.c (searchc): Set scc_no.
6429
6430 2011-06-01 Martin Jambor <mjambor@suse.cz>
6431
6432 * ipa-utils.c (searchc_env): New field allow_overwritable.
6433 (searchc): do not ignore edges to overwritable nodes if indicated
6434 by env->allow_overwritable.
6435 (ipa_reduced_postorder): Set env.allow_overwritable.
6436
6437 2011-06-01 Richard Guenther <rguenther@suse.de>
6438
6439 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6440 char_type_node.
6441 * lto-streamer.c (lto_record_common_node): Take node pointer,
6442 do not register types.
6443 (lto_preload_common_nodes): Explicitly skip preloading nodes
6444 that differ between frontends.
6445
6446 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6447
6448 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6449 NON_FLOAT_REGS.
6450
6451 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6452
6453 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6454 parameter value for dump. Dump cost on outermost call only.
6455 (rs6000_memory_move_cost): Dump cost on outermost call only.
6456
6457 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6458
6459 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6460 DW_OP_GNU_convert ops.
6461
6462 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6463 cselib_preserve_constants.
6464 (cselib_lookup_1): If cselib_preserve_constants,
6465 a new VALUE is being created for REG and there is a VALUE for the
6466 same register in wider mode, add another loc with lowpart SUBREG of
6467 the wider VALUE.
6468 (cselib_subst_to_values): Handle ENTRY_VALUE.
6469 * var-tracking.c (replace_expr_with_values): Return NULL for
6470 ENTRY_VALUE too.
6471 * dwarf2out.c (convert_descriptor_to_signed): New function.
6472 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6473 instead of two shifts.
6474 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6475 the right mode if needed.
6476 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6477 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6478 convert_descriptor_to_signed.
6479 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6480 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6481
6482 PR target/48688
6483 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6484
6485 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6486
6487 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6488 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6489 (SWI248x): New mode iterator, rename from X87MODEI.
6490 (X87MODEI): Remove mode iterator.
6491 (X87MODEI12): Ditto.
6492 (SSEMODEI24): Ditto.
6493
6494 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6495
6496 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6497 * doc/invoke.texi: Document max-vartrack-expr-depth.
6498 * var-tracking.c (EXPR_DEPTH): New.
6499 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6500
6501 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6502
6503 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6504 * config/i386/sse.md: Add n to negated FMA pattern names.
6505
6506 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6507
6508 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6509
6510 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6511
6512 * gengtype-state.c (read_state_params_structs): Initialize previous.
6513
6514 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6515
6516 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6517 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6518
6519 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6520
6521 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6522 registers. Penalize F*r->o alternative to prevent partial memory
6523 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6524 CONST_DOUBLE immediates when optimizing function for size. Do not move
6525 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6526 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6527 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6528 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6529 alternatives.
6530 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6531
6532 (fp_register_operand splitters): Use fp_register_operand
6533 constraint. Do not use FP_REG_P in insn condition.
6534 (any_fp_register_operand splitters): Use any_fp_register_operand
6535 constraint. Do not use ANY_FP_REG_P in insn condition.
6536
6537 2011-05-31 Jan Hubicka <jh@suse.cz>
6538
6539 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6540 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6541 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6542 (lto_output_edge): Use output_enum and var_len_unsigned.
6543 (lto_output_varpool_node): Likewise.
6544 (input_overwrite_node): Do not take resolution parameter;
6545 extract it from a bitpack.
6546 (input_node): Do not read resolution; use input_enum and
6547 var_len_unsigned.
6548 (input_varpool_node): Likewise.
6549 (input_edge): Likewise.
6550 (input_cgraph_1): Likewise.
6551
6552 2011-05-31 Richard Guenther <rguenther@suse.de>
6553
6554 * gimple.c (gimple_register_canonical_type): Do not register
6555 any types via gimple_register_type.
6556
6557 2011-05-31 Jan Hubicka <jh@suse.cz>
6558
6559 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6560 of thunks.
6561
6562 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6563
6564 PR rtl-optimization/49235
6565 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6566 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6567
6568 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
6569
6570 PR tree-optimization/49093
6571 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6572 data references.
6573
6574 2011-05-31 Dodji Seketeli <dodji@redhat.com>
6575
6576 PR debug/49047
6577 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6578 for concrete functions containing the code of cloned functions.
6579
6580 2011-05-31 Richard Guenther <rguenther@suse.de>
6581
6582 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6583 to ...
6584 (forward_propagate_into_comparison_1): ... this.
6585 (forward_propagate_comparison): Rename to ...
6586 (forward_propagate_into_comparison): ... this. Split out
6587 real forward propagation code to ...
6588 (forward_propagate_comparison): ... this.
6589 (forward_propagate_into_gimple_cond): Remove looping.
6590 (forward_propagate_into_cond): Likewise.
6591 (simplify_not_neg_expr): Return whether we have done something.
6592 (simplify_gimple_switch): Likewise.
6593 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6594 (ssa_forward_propagate_and_combine): ... this. Re-structure
6595 to do a forward forward-propagation walk on BBs and a backward
6596 stmt combining walk on BBs. Consistently re-scan changed statements.
6597 (pass_forwprop): Adjust.
6598
6599 2011-05-30 Ian Lance Taylor <iant@google.com>
6600
6601 * godump.c (go_format_type): Correct length of name added to
6602 obstack for anonymous field.
6603
6604 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6605
6606 PR target/49186
6607 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6608 part of the second operand is 0.
6609
6610 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
6611
6612 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6613 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6614 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6615 (*movdf_internal_rex64): Do not penalize F->r alternative.
6616 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6617 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6618 when optimizing function for size. Do not move CONST_DOUBLEs
6619 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6620 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6621 SUBREGs. Do not check for MEM_P operands in the insn condition,
6622 check for ANY_FP_REGNO_P instead.
6623 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6624 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6625 function for speed.
6626 * config/i386/i386.c (ix86_option_override_internal): Do not
6627 set TARGET_INTEGER_DFMODE_MOVES here.
6628
6629 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6630
6631 PR target/49168
6632 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6633
6634 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6635
6636 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6637 DW_TAG_rvalue_reference_type even for
6638 -gdwarf-4 -fno-debug-types-section.
6639
6640 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6641
6642 PR tree-optimization/46728
6643 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6644 (build_and_insert_binop): New.
6645 (gimple_expand_builtin_pow): Reorder args for
6646 build_and_insert_call; use build_and_insert_binop; add more
6647 optimizations for fractional exponents.
6648
6649 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6650
6651 PR bootstrap/49190
6652
6653 Revert:
6654 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6655
6656 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6657 tree_common.
6658 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6659 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6660 TS_BASE instead of TS_COMMON.
6661 * varasm.c (assemble_name): Remove assert.
6662
6663 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6664
6665 * config.gcc: Keep obselete list sorted.
6666
6667 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6668 Eric Botcazou <ebotcazou@adacore.com>
6669
6670 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6671 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6672 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6673 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6674 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6675
6676 2011-05-30 Richard Guenther <rguenther@suse.de>
6677
6678 * gimple.c (gimple_types_compatible_p_1): Compare record
6679 and union type members properly.
6680
6681 2011-05-30 Richard Guenther <rguenther@suse.de>
6682
6683 PR tree-optimization/49210
6684 * ipa-split.c (split_function): Care for the case where the call
6685 result is not trivially convertible to the result holding variable.
6686
6687 2011-05-30 Richard Guenther <rguenther@suse.de>
6688
6689 PR tree-optimization/49218
6690 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6691 overflow occured.
6692
6693 2011-05-30 Richard Guenther <rguenther@suse.de>
6694
6695 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6696 New function split out from ...
6697 (forward_propagate_into_gimple_cond): ... here. Adjust.
6698 (forward_propagate_into_cond): Likewise.
6699 (forward_propagate_comparison): Also propagate into
6700 comparisons on assignment RHS. Change return value to
6701 behave similar to forward_propagate_into_cond.
6702 (tree_ssa_forward_propagate_single_use_vars): Handle
6703 strict-overflow warnings properly for forward_propagate_comparison.
6704
6705 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6706
6707 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6708 from plugin linker.
6709 * configure: Regenerate.
6710
6711 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
6712
6713 PR tree-optimization/49199
6714 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6715 non-reduction operands are either defined in the loop or by induction.
6716
6717 2011-05-29 Xinliang David Li <davidxl@google.com>
6718
6719 * opts-global.c (handle_common_deferred_options): Handle new options.
6720 * passes.c (register_one_dump_file): Call register_pass_name.
6721 (execute_one_pass): Check explicit enable/disable flag.
6722 (passr_hash): New function.
6723 (passr_eq): Ditto.
6724 (register_pass_name): Ditto.
6725 (get_pass_by_name): Ditto.
6726 (pass_hash): Ditto.
6727 (pass_eq): Ditto.
6728 (enable_pass): Ditto.
6729 (disable_pass): Ditto.
6730 (is_pass_explicitly_enabled_or_disabled): Ditto.
6731
6732 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
6733
6734 * config/i386/i386.md (*movoi_internal_avx): Use
6735 standard_sse_constant_opcode for alternative 0.
6736 (*movti_internal_sse): Ditto.
6737 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6738 alternative 2.
6739 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6740 sselog1 type moves.
6741 (*movsi_internal): Ditto.
6742 (*movdi_internal): Ditto. Add ssecvt type moves.
6743
6744 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6745
6746 PR target/48830
6747 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6748
6749 2011-05-29 Jakub Jelinek <jakub@redhat.com>
6750
6751 PR rtl-optimization/49095
6752 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6753 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6754
6755 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6756
6757 PR target/43995
6758 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6759 recurse_p argument. Only follow register copies if it is set,
6760 and prevent mips_find_pic_call_symbol from recursing.
6761 (mips_find_pic_call_symbol): Add a recurse_p argument.
6762 Pass it to mips_pic_call_symbol_from_set.
6763 (mips_annotate_pic_calls): Update accordingly.
6764
6765 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6766
6767 * emit-rtl.c (try_split): Use a loop to search for
6768 NOTE_INSN_CALL_ARG_LOCATIONs.
6769
6770 2011-05-29 Richard Guenther <rguenther@suse.de>
6771
6772 PR tree-optimization/49217
6773 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6774
6775 2011-05-28 Jan Hubicka <jh@suse.cz>
6776
6777 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6778 length.
6779 (string_slot_free): Remove
6780 (create_output_block): Initialize obstack.
6781 (destroy_output_block): Free obstack.
6782 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6783 the string unless it needs to be added into the hash.
6784 (lto_output_string_with_length): Add persistent attribute;
6785 handle NULL strings.
6786 (lto_output_string): Add PERSISTENT parameter.
6787 (output_string_cst, output_identifier): Simplify.
6788 (lto_output_location_bitpack): Update.
6789 (lto_output_builtin_tree): Update.
6790 * lto-streamer.h (struct output_block): Add obstack.
6791 (lto_output_string, lto_output_string_with_length): Remove
6792 declarations; functions are static now.
6793
6794 2011-05-28 Jan Hubicka <jh@suse.cz>
6795
6796 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6797 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6798 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6799 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6800 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6801 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6802 unpack_ts_decl_with_vis_value_fields,
6803 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6804 lto_get_builtin_tree): Use enum and variable length i/o.
6805 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6806 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6807 New functions.
6808 (bp_pack_enum, bp_unpack_enum): New macros.
6809
6810 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6811
6812 * genrecog.c: Remove redundant forward declarations.
6813
6814 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6815
6816 * config.gcc: Deprecate mips*-*-openbsd*.
6817
6818 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6819
6820 PR bootstrap/49195
6821 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6822 for match_op_dup.
6823
6824 2011-05-27 Andrew Pinski <pinskia@gmail.com>
6825
6826 PR middle-end/48981
6827 * gengtype.c (vec_prefix_type): New function.
6828 (note_def_vec): Use vec_prefix_type and change the length
6829 attribute to be based on the prefix.
6830 * vec.c: Include coretypes.h before vec.h.
6831 (struct vec_prefix): Remove.
6832 (vec_gc_p_reserve): Change the offsetof to sizeof.
6833 (vec_gc_p_reserve_exact): Likewise.
6834 (vec_heap_p_reserve): Likewise.
6835 (vec_heap_p_reserve_exact): Likewise.
6836 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6837 (vec_stack_p_reserve): Change the offsetof to sizeof.
6838 (vec_stack_p_reserve_exact): Likewise.
6839 * vec.h (struct vec_prefix): New struct definition.
6840 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6841 (VEC_T_GTY(T,B)): Likewise.
6842 (DEF_VEC_FUNC_P(T)): Use prefix field.
6843 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6844 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6845
6846 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6847
6848 PR tree-optimization/46728
6849 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6850 (powi_as_mults): Add gimple_set_location.
6851 (build_and_insert_call): New.
6852 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6853 0.5, 0.25, 0.75, 1./3., or 1./6.
6854
6855 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
6856
6857 * doc/contrib.texi: Update copyright years.
6858 (Contributors): Add Zdenek Sojka.
6859
6860 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6861
6862 * c-decl.c (c_push_function_context): Copy the current statement
6863 list stack.
6864 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6865 (finish_struct): Call building_stmt_list_p instead of checking
6866 cur_stmt_list.
6867 * c-parser.c (c_parser_postfix_expression): Likewise.
6868 * c-typeck.c (c_end_compound_stmt): Likewise.
6869 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6870 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6871 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6872 (free_stmt_list): Likewise.
6873 * tree.h (struct tree_statement_list): Include typed_tree instead
6874 of tree_common.
6875 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6876 as TS_TYPED instead of TS_COMMON.
6877
6878 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6879 Uros Bizjak <ubizjak@gmail.com>
6880
6881 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6882 (HAVE_AS_IX86_TLSGDPTL): Define.
6883 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6884 (HAVE_AS_IX86_TLSLDMPLT): Define.
6885 * configure: Regenerate.
6886 * config.in: Regenerate.
6887 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6888 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6889 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6890 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6891 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6892 @tlsldmplt or @plt.
6893 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6894
6895 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6896
6897 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6898 and reverse_cond.
6899 (INSN_COND, INSN_REVERSE_COND): New macros.
6900 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6901 once.
6902 (sched_get_condition_with_rev): Cache the results, and look them up
6903 if possible.
6904 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6905 are clobbered by the current insn.
6906 * target.def (exposed_pipline): New sched data hook.
6907 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6908 * doc/tm.texi: Regenerate.
6909
6910 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6911
6912 PR tree-optimization/49170
6913 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6914 sincos or cexp.
6915
6916 2011-05-27 Richard Guenther <rguenther@suse.de>
6917
6918 PR middle-end/49189
6919 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6920 of comparisons.
6921
6922 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6923
6924 * haifa-sched.c (sched_scan_info): Remove.
6925 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6926 with NULL args.
6927 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6928 Remove functions.
6929 (sched_scan): Remove.
6930 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6931 static. All callers changed.
6932 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6933 static. All callers changed.
6934 (sched_init_luids): Remove all arguments except the first. All
6935 callers changed. Don't use sched_scan.
6936 (haifa_init_h_i_d): Likewise.
6937 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6938 manually rather than using sched_init_luids. Likewise with
6939 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6940 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6941 rather than sched_init_luids with NULL args.
6942 * sel-sched-ir.c (new_insns): Remove variable.
6943 (sched_scan): New static function, previously in haifa-sched.c. Remove
6944 all arguments but the first two; all callers changed.
6945 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6946 rather than sched_init_luids.
6947 (sel_init_bbs): Remove second argument. All callers changed.
6948 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6949 with NULL arguments.
6950 (create_insn_rtx_from_pattern): Likewise.
6951 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6952 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6953 (sched_init_insn_luid, sched_extend_luids): Declare.
6954 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6955 declarations.
6956
6957 2011-05-27 Richard Guenther <rguenther@suse.de>
6958
6959 PR middle-end/49177
6960 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6961 A CMP B ? (T) true : (T) false for non-integral types T again.
6962
6963 2011-05-27 Jan Hubicka <jh@suse.cz>
6964
6965 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6966 so 0 means NULL string.
6967 (lto_output_string_with_length): ... here.
6968 (lto_output_string, output_string_cst, output_identifier): Update
6969 handling of NULL strings.
6970 (lto_output_location_bitpack): New function.
6971 (lto_output_location): Use it.
6972 (lto_output_tree_ref): Use output_record_start.
6973 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6974 len values.
6975 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6976 values by 1.
6977 (input_string_internal): ... here;
6978 (input_string_cst, input_identifier, lto_input_string): Update handling
6979 of NULL strings.
6980 (lto_input_location_bitpack): New function
6981 (lto_input_location): Use it.
6982 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6983 values.
6984 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6985 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6986 (bp_pack_value): Sanity check the value range.
6987 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6988 New functions.
6989 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6990 New functions.
6991
6992 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
6993
6994 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6995 call_arg_location instructions down the floor.
6996
6997 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6998
6999 PR rtl-optimization/49154
7000 * ira.c (setup_pressure_classes): Process class without sublcasses
7001 as a candidate for pressure classes.
7002
7003 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
7004
7005 PR rtl-optimization/48575
7006 * genrecog.c (position_type): New enum.
7007 (position): New structure.
7008 (decision): Use position structure instead of a string.
7009 (root_pos, peep2_insn_pos_list): New variables.
7010 (next_position, compare_positions): New functions.
7011 (new_decision): Use position structures instead of strings.
7012 (maybe_both_true): Likewise.
7013 (change_state): Likewise.
7014 (write_tree): Likewise.
7015 (make_insn_sequence): Likewise.
7016
7017 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7018
7019 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
7020 TS_BASE instead of TS_COMMON.
7021 (find_decls_types_r): Check for TS_TYPED structure before looking at
7022 TREE_TYPE.
7023 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
7024 Add chain field.
7025 (BLOCK_CHAIN): Use new chain field.
7026
7027 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
7028
7029 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
7030 moves expensive on Power7 also.
7031
7032 2011-05-26 Richard Guenther <rguenther@suse.de>
7033
7034 * fold-const.c (fold_unary_loc): Remove bogus code.
7035
7036 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7037
7038 * tree.h (struct tree_identifier): Inherit from tree_typed, not
7039 tree_common.
7040 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7041 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7042 TS_BASE instead of TS_COMMON.
7043 * varasm.c (assemble_name): Remove assert.
7044
7045 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7046
7047 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
7048 substituted first.
7049 * libgcc-std.ver: Delete file.
7050
7051 2011-05-26 Richard Guenther <rguenther@suse.de>
7052
7053 PR tree-optimization/48702
7054 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
7055 only when we know the base address is within bounds.
7056 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
7057 assume the base address of TARGET_MEM_REFs is in bounds.
7058
7059 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7060
7061 PR target/49099
7062 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
7063 declaration in TARGET_SOLARIS.
7064
7065 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
7066
7067 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
7068 The instruction is then expanded explicitly.
7069 (supported_compare): Callable instruction.
7070 (compare): Likewise.
7071
7072 2011-05-26 Jakub Jelinek <jakub@redhat.com>
7073
7074 PR c++/49165
7075 * gimplify.c (shortcut_cond_r): Don't special case
7076 COND_EXPRs if they have void type on one of their arms.
7077
7078 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7079
7080 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
7081 to reduce duplication, and to achieve a slightly more logical order
7082 of operations.
7083
7084 2011-05-26 Jakub Jelinek <jakub@redhat.com>
7085
7086 PR tree-optimization/49161
7087 * tree-vrp.c (struct case_info): New type.
7088 (compare_case_labels): Sort case_info structs instead of
7089 trees, and not primarily by CASE_LABEL uids but by
7090 label_for_block indexes.
7091 (find_switch_asserts): Put case labels into struct case_info
7092 array instead of TREE_VEC, adjust sorting, compare label_for_block
7093 values instead of CASE_LABELs.
7094
7095 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7096
7097 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
7098 ("orndi3_neon"): Likewise.
7099 ("bic<mode>3_neon"): Likewise.
7100
7101 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
7102
7103 PR tree-optimization/49038
7104 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
7105 Ensure at least one epilogue iteration if required by data
7106 accesses with gaps.
7107 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7108 to mark loops that require peeling for gaps.
7109 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
7110 (vect_get_known_peeling_cost): Take peeling for gaps into
7111 account.
7112 (vect_transform_loop): Generate epilogue if required by data
7113 access with gaps.
7114 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
7115 loop as requiring an epilogue if there are gaps in the end of
7116 the strided group.
7117
7118 2011-05-25 Ian Lance Taylor <iant@google.com>
7119
7120 * godump.c (go_format_type): Output the first field with a usable
7121 Go type, if any.
7122
7123 2011-05-25 Ian Lance Taylor <iant@google.com>
7124
7125 * godump.c (go_format_type): Check for invalid type names, pointer
7126 target types, and struct field types.
7127
7128 2011-05-25 Jason Merrill <jason@redhat.com>
7129
7130 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
7131
7132 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
7133
7134 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
7135
7136 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7137
7138 * config/i386/i386.md (*movqi_extv_1)): Put back
7139 "register_operand" check in "type" calculation.
7140 (*movqi_extzv_2): Likewise.
7141
7142 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7143
7144 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
7145
7146 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7147
7148 PR bootstrap/49160
7149 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
7150 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
7151 __divxc3, __divtc3): Wrap definitions in #ifndef.
7152
7153 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7154
7155 PR target/49142
7156 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
7157 "register_operand" check and replace q_regs_operand with
7158 QIreg_operand in "type" calculation.
7159 (*movqi_extv_1): Likewise.
7160 (*movqi_extzv_2_rex64): Likewise.
7161 (*movqi_extzv_2): Likewise.
7162
7163 * config/i386/predicates.md (QIreg_operand): New.
7164
7165 2011-05-25 Richard Guenther <rguenther@suse.de>
7166
7167 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7168 type-based offset disambiguation, streamline MEM_REF and
7169 TARGET_MEM_REF handling.
7170
7171 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7172
7173 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
7174 (bdesc_special_args): Add pause intrinsic.
7175
7176 * config/i386/i386.md (UNSPEC_PAUSE): New.
7177 (pause): Likewise.
7178 (*pause): Likewise.
7179 * config/i386/ia32intrin.h (__pause): Likewise.
7180
7181 * doc/extend.texi (X86 Built-in Functions): Add documentation for
7182 pause intrinsic.
7183
7184 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7185
7186 PR tree-optimization/46728
7187 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
7188 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
7189
7190 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
7191
7192 * tree.h (struct tree_exp): Inherit from struct tree_typed.
7193 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
7194 instead of TS_COMMON.
7195
7196 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7197
7198 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
7199 LIBGCC2_GNU_PREFIX is defined.
7200 (__N): New macro.
7201 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
7202 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
7203 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
7204 __clz_tab): Define using __N.
7205 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
7206 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7207 * target.def (libfunc_gnu_prefix): New hook.
7208 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7209 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7210 * doc/tm.texi: Regenerate.
7211 * system.h (LIBGCC2_GNU_PREFIX): Poison.
7212 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7213 account.
7214 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7215 (init_optabs): Likewise for the bswap libfuncs.
7216 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7217 and divide.
7218 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7219 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7220 * libgcc-std.ver: Remove.
7221 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7222 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7223 libgcc-std.ver.
7224 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7225 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7226 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7227 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7228 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7229 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7230 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7231 * config/fixed-bit.h (FIXED_OP): Define differently depending on
7232 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7233 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7234
7235 2011-05-25 Jan Hubicka <jh@suse.cz>
7236
7237 * lto-streamer-out.c (output_record_start): Use lto_output_enum
7238 (lto_output_tree): Use output_record_start.
7239 * lto-streamer-in.c (input_record_start): Use lto_input_enum
7240 (lto_get_pickled_tree): Use input_record_start.
7241 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7242 (lto_value_range_error): New function.
7243 * lto-streamer.h (lto_value_range_error): Declare.
7244 (lto_output_int_in_range, lto_input_int_in_range): New functions.
7245 (lto_output_enum, lto_input_enum): New macros.
7246
7247 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
7248
7249 * common.opt (flag_stack_usage_info): New variable.
7250 (-Wstack-usage): New option.
7251 * doc/invoke.texi (Warning options): Document -Wstack-usage.
7252 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7253 <OPT_fstack_usage>: Likewise.
7254 * toplev.c (output_stack_usage): Handle -Wstack-usage.
7255 * calls.c (expand_call): Test flag_stack_usage_info variable instead
7256 of flag_stack_usage.
7257 (emit_library_call_value_1): Likewise.
7258 * explow.c (allocate_dynamic_stack_space): Likewise.
7259 * function.c (instantiate_virtual_regs ): Likewise.
7260 (prepare_function_start): Likewise.
7261 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7262 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7263 * config/arm/arm.c (arm_expand_prologue): Likewise.
7264 (thumb1_expand_prologue): Likewise.
7265 * config/avr/avr.c (expand_prologue): Likewise.
7266 * config/i386/i386.c (ix86_expand_prologue): Likewise.
7267 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7268 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7269 * config/mips/mips.c (mips_expand_prologue): Likewise.
7270 * config/pa/pa.c (hppa_expand_prologue): Likewise.
7271 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7272 * config/s390/s390.c (s390_emit_prologue): Likewise.
7273 * config/sh/sh.c (sh_expand_prologue): Likewise.
7274 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7275 * config/spu/spu.c (spu_expand_prologue): Likewise.
7276
7277 2011-05-25 Richard Guenther <rguenther@suse.de>
7278
7279 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7280 (gimple_canonical_types_compatible_p): Likewise.
7281
7282 2011-05-25 Jan Hubicka <jh@suse.cz>
7283
7284 PR middle-end/49062
7285 * ipa.c (function_and_variable_visibility): Only add to same
7286 comdat group list if DECL_ONE_ONLY.
7287
7288 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
7289
7290 PR rtl-optimization/49014
7291 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7292
7293 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7294
7295 PR target/49128
7296 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7297
7298 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7299
7300 PR rtl-optimization/48757
7301 * ira-build.c (loop_with_eh_edge_p): Rename to
7302 loop_with_complex_edge_p, check edges on complexity, make function
7303 conditional.
7304 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7305 conditional.
7306
7307 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7308
7309 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7310 force flag_ira_share_save_slots to 0.
7311
7312 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7313
7314 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7315 (vt_initialize): Set PROLOGUE_BB unconditionally.
7316 Add block comment about CFA_BASE_RTX machinery.
7317 Reset FP_CFA_OFFSET to -1 on all invalid paths.
7318 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7319
7320 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
7321
7322 PR objc/48187
7323 * c-parser.c (c_parser_objc_class_instance_variables): More robust
7324 parsing of syntax error in ObjC instance variable lists. In
7325 particular, avoid an infinite loop if there is a stray ']'.
7326 Updated error message.
7327
7328 2011-05-24 Ian Lance Taylor <iant@google.com>
7329
7330 * godump.c (go_define): Don't accept a string immediately after
7331 another operand.
7332
7333 2011-05-24 Ian Lance Taylor <iant@google.com>
7334
7335 * godump.c (struct godump_container): Add invalid_hash field.
7336 (go_format_type): Return false if type is found in invalid_hash.
7337 (go_output_typedef): Add invalid type to invalid_hash.
7338 (go_finish): Create and delete invalid_hash.
7339
7340 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7341
7342 PR tree-optimization/46728
7343 * tree-ssa-math-opts.c (powi_table): New.
7344 (powi_lookup_cost): New.
7345 (powi_cost): New.
7346 (powi_as_mults_1): New.
7347 (powi_as_mults): New.
7348 (gimple_expand_builtin_powi): New.
7349 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7350 (gate_cse_sincos): Remove sincos/cexp restriction.
7351
7352 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7353
7354 PR target/3746
7355 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7356 mips-tdump native.
7357 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7358 * mips-tdump.c: Likewise.
7359
7360 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7361
7362 PR target/49128
7363 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7364 add -mno-XXX. Handle FMA.
7365
7366 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7367
7368 PR rtl-optimization/48633
7369 * ira-build.c (loop_with_eh_edge_p): New function.
7370 (mark_loops_for_removal): Use it.
7371
7372 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7373
7374 PR rtl-optimization/48971
7375 * ira.c (setup_pressure_classes): Don't check register move cost
7376 for classes with one registers. Don't add pressure class if there
7377 is a pressure class with the same available hard registers.
7378 Check contains_reg_of_mode. Fix a typo in collecting
7379 temp_hard_regset. Ignore hard registers not belonging to a class.
7380
7381 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
7382
7383 PR target/49133
7384 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7385
7386 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7387 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7388
7389 PR gcov-profile/48845
7390 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7391
7392 2011-05-24 Richard Guenther <rguenther@suse.de>
7393
7394 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7395 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7396 (gimple_types_compatible_p_1): Adjust.
7397 (iterative_hash_canonical_type): Do not bother about complete vs.
7398 incomplete types.
7399 (gimple_canonical_types_compatible_p): Likewise.
7400
7401 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7402
7403 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7404
7405 2011-05-24 Richard Guenther <rguenther@suse.de>
7406
7407 PR bootstrap/49078
7408 * gimple.c (gimple_register_canonical_type): Revert
7409 previous change.
7410 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7411 does not for a tree for the case where it matters. Cache
7412 pointer-type alias-sets.
7413
7414 2011-05-24 Joseph Myers <joseph@codesourcery.com>
7415
7416 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7417 (OBJS): Remove options.o, opts-common.o and prefix.o.
7418 (OBJS-libcommon-target): New.
7419 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7420 (BACKEND): Include libcommon-target.a.
7421 (MOSTLYCLEANFILES): Include libcommon-target.a.
7422 (libcommon-target.a): New.
7423 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7424 prefix.o.
7425
7426 2011-05-23 Joseph Myers <joseph@codesourcery.com>
7427
7428 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7429 parts of output shared with the driver.
7430 * optc-gen.awk: Don't generate parts of output not shared with the
7431 driver.
7432 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7433 * doc/options.texi (SourcerInclude): Mention options-save.c.
7434 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7435 (OBJS): Add options-save.o.
7436 (options-save.c, options-save.o): New.
7437 (options.o): Update dependencies.
7438 (gcc-options.o): Remove.
7439 (mostlyclean): Remove options-save.c.
7440
7441 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7442
7443 PR debug/49032
7444 * dbxout.c: Include cgraph.h.
7445 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7446 and without value expr, return NULL if no varpool node exists for
7447 it or if it is not needed.
7448 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7449
7450 PR c/49120
7451 * c-decl.c (start_decl): Convert expr to void_type_node.
7452
7453 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7454
7455 PR rtl-optimization/48826
7456 * emit-rtl.c (try_split): When splitting a call that is followed
7457 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7458
7459 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7460
7461 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7462 parameters passed in memory prefer using DECL_INCOMING_RTL over
7463 the pseudos it will be copied into.
7464
7465 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7466
7467 PR target/47315
7468 * config/i386/i386.c (ix86_option_override_internal): Save the
7469 initial options after checking vzeroupper.
7470
7471 2011-05-23 David Li <davidxl@google.com>
7472
7473 PR tree-optimization/48988
7474 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7475 Initialize has_valid_pred for each pred chain.
7476
7477 2011-05-23 Richard Guenther <rguenther@suse.de>
7478
7479 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7480 (iterative_hash_gimple_type): Always hash type names.
7481
7482 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7483
7484 * c-typeck.c (build_function_call_vec): Tweak call to
7485 check_function_arguments.
7486
7487 2011-05-23 Richard Guenther <rguenther@suse.de>
7488
7489 PR tree-optimization/49115
7490 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7491 is not necessarily carried out, do not claim it kills the ref.
7492 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7493
7494 2011-05-23 Richard Guenther <rguenther@suse.de>
7495
7496 PR middle-end/15419
7497 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7498 what pointer types we accept for folding.
7499
7500 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7501
7502 * gthr-gnat.c: Remove.
7503 * gthr-gnat.h: Remove.
7504 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7505 * config/t-freebsd (LIB2ADDEH): Likewise.
7506 * config/t-linux (LIB2ADDEH): Likewise.
7507 * config/t-sol2 (LIB2ADDEH): Likewise.
7508 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7509 * configure.ac (target_thread_file): Remove gnat handling.
7510 * configure: Regenerate.
7511 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7512
7513 2011-05-23 Tristan Gingold <gingold@adacore.com>
7514 Eric Botcazou <ebotcazou@adacore.com>
7515
7516 * gcov.c (create_file_names): If no object directory is specified,
7517 keep the directory of the file.
7518
7519 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7520
7521 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7522 * configure: Regenerate.
7523
7524 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7525
7526 PR middle-end/48973
7527 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7528 failed and the comparison has a single bit signed type, use
7529 constm1_rtx instead of const1_rtx for true value.
7530 (do_store_flag): If ops->type is single bit signed type, disable
7531 signel bit test optimization and pass -1 instead of 1 as last
7532 parameter to emit_store_flag_force.
7533
7534 2011-05-23 Tom de Vries <tom@codesourcery.com>
7535
7536 PR target/45098
7537 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7538 function.
7539 (infer_loop_bounds_from_undefined): Use new function.
7540
7541 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7542
7543 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7544 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7545 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7546 and -O0 otherwise.
7547 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7548
7549 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7550
7551 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7552 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7553 returns true.
7554
7555 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7556
7557 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7558
7559 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7560
7561 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7562 UNSPEC_MOVE_PIC pattern.
7563
7564 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7565
7566 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7567 (sparc-*-rtems*): Likewise.
7568 (sparc64-*-elf*): Likewise.
7569 (sparc64-*-rtems*): Likewise.
7570 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7571 * config/sparc/t-crtin: New file.
7572 * config/sparc/t-sol2 (crti.o): Delete rule.
7573 (crtn.o): Likewise.
7574 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7575 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7576 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7577 (ENDFILE_SPEC): Add crtn.o.
7578
7579 2011-05-22 Tom de Vries <tom@codesourcery.com>
7580
7581 PR middle-end/48689
7582 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7583 CODE_CONTAINS_STRUCT (TS_COMMON).
7584
7585 2011-05-22 Jakub Jelinek <jakub@redhat.com>
7586
7587 PR middle-end/49029
7588 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7589 only after deciding which mode to use.
7590
7591 2011-05-22 Tom de Vries <tom@codesourcery.com>
7592
7593 PR target/45098
7594 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7595 for call to get_shiftadd_cost.
7596
7597 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
7598
7599 PR target/49104
7600 * config/i386/cpuid.h (bit_MMXEXT): New define.
7601
7602 2011-05-22 Nick Clifton <nickc@redhat.com>
7603
7604 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7605 initialisation of non-existant args[2] element. Use args[] array
7606 not arg[] array to pass arguments to build_function_type_list.
7607
7608 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
7609
7610 PR tree-optimization/49087
7611 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7612
7613 2011-05-21 Jason Merrill <jason@redhat.com>
7614
7615 PR c++/49092
7616 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7617 static storage duration.
7618
7619 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7620
7621 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7622 frame pointer.
7623
7624 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7625
7626 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7627 false if there are call-saved registers here...
7628 (sparc_can_use_return_insn_p): ...but here instead.
7629 (save_or_restore_regs): Fix thinko.
7630 (sparc_expand_prologue): Use current_function_is_leaf.
7631 (sparc_frame_pointer_required): Likewise.
7632
7633 2011-05-21 Nick Clifton <nickc@redhat.com>
7634
7635 PR target/49098
7636 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7637
7638 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7639
7640 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7641 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7642
7643 2011-05-21 Joseph Myers <joseph@codesourcery.com>
7644
7645 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7646 * optc-gen.awk: Move common code to opt-read.awk.
7647 * opth-gen.awk: Likewise.
7648 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7649
7650 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7651
7652 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7653
7654 2011-05-20 Tom de Vries <tom@codesourcery.com>
7655
7656 PR target/45098
7657 * tree-ssa-loop-ivopts.c: Include expmed.h.
7658 (get_shiftadd_cost): New function.
7659 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7660
7661 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7662
7663 PR bootstrap/49086
7664 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7665 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7666
7667 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7668
7669 * Makefile.in: Update comment referring to $(OBJS-common).
7670
7671 2011-05-20 Ian Lance Taylor <iant@google.com>
7672
7673 * godump.c (go_output_typedef): Put enum constants in the macro
7674 hash table to avoid duplicate Go const definitions.
7675
7676 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7677
7678 * Makefile.in (LIBDEPS): Add libcommon.a.
7679 (LIBS): Likewise.
7680 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7681 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7682 pretty-print.o and version.o.
7683 (OBJS-libcommon): New.
7684 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7685 (BACKEND): Add libcommon.a.
7686 (MOSTLYCLEANFILES): Likewise.
7687 (libcommon.a): New.
7688 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7689 (cpp$(exeext)): Likewise.
7690 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7691 pretty-print.o and input.o.
7692 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7693 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7694 (errors.o): Remove.
7695 (mips-tfile): Don't explicitly use version.o.
7696 (mips-tdump): Likewise.
7697 (gcov.o): Depend on $(DIAGNOSTIC_H).
7698 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7699 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7700 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7701 * gcov-dump.c: Include intl.h and diagnostic.h.
7702 (main): Initialize diagnostics.
7703 * gcov.c: Include diagnostic.h.
7704 (fnotice): Remove.
7705 (main): Initialize diagnostics.
7706 * lto-wrapper.c: Include diagnostic.h.
7707 (main): Initialize diagnostics.
7708
7709 2011-05-20 Michael Matz <matz@suse.de>
7710
7711 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7712
7713 2011-05-20 Michael Matz <matz@suse.de>
7714 Richard Guenther <rguenther@suse.de>
7715
7716 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7717 use lto_streamer_cache_append directly instead of returning a VEC.
7718 (preload_common_node): Remove.
7719 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7720 track seen nodes.
7721 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7722
7723 2011-05-20 Richard Guenther <rguenther@suse.de>
7724
7725 PR tree-optimization/49079
7726 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7727 MEM_REFs correctly for the trailing array access detection.
7728 Special case constants the same way as decls for overall size
7729 constraining.
7730
7731 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
7732
7733 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7734 argument expansion.
7735
7736 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7737
7738 PR tree-optimization/49073
7739 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7740 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7741 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7742
7743 2011-05-20 Richard Guenther <rguenther@suse.de>
7744
7745 PR middle-end/48849
7746 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7747 of pointer types the same way the middle-end does.
7748
7749 2011-05-20 Richard Guenther <rguenther@suse.de>
7750
7751 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7752 or pointer-to chains. Delay all fixup to uniquify_nodes.
7753
7754 2011-05-19 Quentin Neill <quentin.neill@amd.com>
7755
7756 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7757 (fma4_fmaddsub): Likewise
7758
7759 2011-05-19 Jan Hubicka <jh@suse.cz>
7760
7761 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7762 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7763 (type_pair_cache): New static var.
7764 (lookup_type_pair): Use fixed sized custom hash; make inline.
7765 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7766 calls of lookup_type_pair.
7767 (print_gimple_types_stats): Remove cache stats.
7768 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7769 and gtc_ob.
7770
7771 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
7772
7773 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7774 when TARGET_RDRND is active.
7775 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7776 Generate dummy SImode target register when target is NULL.
7777
7778 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7779
7780 * config/arm/arm-fpus.def: New.
7781 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7782 arm-fpus.def.
7783 * config/arm/arm-tables.opt: Regenerate.
7784 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7785 (arm_option_override): Don't decode FPU name to string here.
7786 * config/arm/arm.opt (mfpu=): Use Enum.
7787 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7788 Update dependencies.
7789
7790 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7791
7792 * collect2.c: Include diagnostic.h.
7793 (fatal_perror, fatal, error, fancy_abort): Remove.
7794 (main): Set progname. Call xmalloc_set_program_name and
7795 diagnostic_initialize.
7796 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7797 scan_libraries, resolve_lib_name): Call fatal_error instead of
7798 fatal and fatal_perror.
7799 * collect2.h (error, fatal, fatal_perror): Don't declare.
7800 * tlink.c: Include diagnostic-core.h.
7801 (recompile_files): Call fatal_error instead of fatal_perror.
7802 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7803 pretty-print.o and input.o.
7804 (collect2.o, tlink.o): Update dependencies.
7805
7806 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7807
7808 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7809
7810 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7811
7812 PR target/40483
7813 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7814 COMDAT group syntax, both SPARC and x86 variants.
7815 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7816 * configure: Regenerate.
7817 * config/sol2.h (TARGET_SOLARIS): Define.
7818 (PUSHSECTION_FORMAT): Remove.
7819 (SECTION_NAME_FORMAT): Define.
7820 * config/sol2.c: Include hashtab.h.
7821 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7822 expansion, using SECTION_NAME_FORMAT.
7823 (solaris_comdat_htab): New variable.
7824 (struct comdat_entry): Define.
7825 (comdat_hash): New function.
7826 (comdat_eq): New function.
7827 (solaris_elf_asm_comdat_section): New function.
7828 (solaris_define_comdat_signature): New function.
7829 (solaris_code_end): New function.
7830 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7831 (solaris_code_end): Declare.
7832 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7833 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7834 solaris_code_end.
7835 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7836 Remove ATTRIBUTE_UNUSED.
7837 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7838 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
7839 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
7840 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7841 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7842 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7843 (PUSHSECTION_FORMAT): Remove.
7844 (SECTION_NAME_FORMAT): Redefine.
7845
7846 2011-05-19 Kai Tietz <ktietz@redhat.com>
7847
7848 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7849 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7850 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7851
7852 2011-05-19 Anatoly Sokolov <aesok@post.ru>
7853 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7854
7855 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7856
7857 2011-05-19 Richard Guenther <rguenther@suse.de>
7858
7859 PR middle-end/48985
7860 * tree-object-size.c (addr_object_size): If the pointed-to
7861 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7862
7863 2011-05-19 Richard Guenther <rguenther@suse.de>
7864
7865 * gimple.c (gimple_types_compatible_p_1): Compare names of
7866 the types themselves.
7867 (iterative_hash_gimple_type): And hash them that way.
7868 (gimple_register_type_1): If we register a main variant properly
7869 initialize the leader to ourselves.
7870
7871 2011-05-19 Tom de Vries <tom@codesourcery.com>
7872
7873 PR target/45098
7874 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7875 get_loop_invariant_expr_id.
7876 (get_loop_invariant_expr_id): Use get_expr_id.
7877 (parm_decl_cost): New function.
7878 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7879 Improve bound cost estimation. Use different inv_expr_id for elim and
7880 express cases.
7881
7882 2011-05-19 Tom de Vries <tom@codesourcery.com>
7883
7884 PR target/45098
7885 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7886 cost_base.cost == 0.
7887
7888 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7889
7890 PR target/49002
7891 * config/i386/sse.md
7892 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7893 load cast.
7894
7895 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7896
7897 PR tree-optimization/49039
7898 * tree-vrp.c (extract_range_from_binary_expr): For
7899 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7900 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7901
7902 2011-05-18 Tom de Vries <tom@codesourcery.com>
7903
7904 PR target/45098
7905 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7906
7907 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
7908
7909 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7910 (*tls_global_dynamic_64): Ditto.
7911 (*tls_local_dynamic_base_32_gnu): Ditto.
7912 (*tls_local_dynamic_base_64): Ditto.
7913 (tls_initial_exec_64_sun): Ditto.
7914
7915 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7916
7917 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7918 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7919 bf592-none.
7920 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7921 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7922 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7923 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7924 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
7925 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7926 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7927
7928 2011-05-18 Joseph Myers <joseph@codesourcery.com>
7929
7930 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
7931 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
7932 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7933 target_thread_pointer, arm_structure_size_boundary, struct
7934 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7935 struct abi_name, arm_all_abis): Remove.
7936 (arm_option_override) Don't process most enumerated option values here.
7937 Don't process target_fpe_name here. Work with integer not string for
7938 structure size boundary; use separate diagnostics for each case.
7939 * config/arm/arm.h (enum float_abi_type, enum
7940 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7941 to arm-opts.h.
7942 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7943 arm_structure_size_boundary): Remove.
7944 * config/arm/arm.opt (mabi=): Use Enum and Init.
7945 (arm_abi_type): New Enum and EnumValue entries.
7946 (mfloat-abi=): Use Enum and Init.
7947 (float_abi_type): New Enum and EnumValue entries.
7948 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
7949 (mfp16-format=): Use Enum and Init.
7950 (arm_fp16_format_type): New Enum and EnumValue entries.
7951 (mstructure-size-boundary=): Use UInteger and Init.
7952 (mtp=): Use Enum and Init.
7953 (arm_tp_type): New Enum and EnumValue entries.
7954
7955 2011-05-18 Richard Guenther <rguenther@suse.de>
7956
7957 PR tree-optimization/49018
7958 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7959 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7960 gimple_has_side_effects.
7961
7962 2011-05-18 Richard Guenther <rguenther@suse.de>
7963
7964 * gimple.c (gimple_register_type_1): New function, split out from ...
7965 (gimple_register_type): ... here. Avoid infinite recursion.
7966
7967 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7968
7969 PR tree-optimization/41881
7970 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7971 reduction_chains along with a macro for its access.
7972 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7973 (destroy_loop_vec_info): Free reduction chains.
7974 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7975 (vect_is_slp_reduction): New function.
7976 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7977 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7978 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7979 definition types for reduction chains.
7980 (vect_supported_load_permutation_p): Don't allow permutations for
7981 reduction chains.
7982 (vect_analyze_slp_instance): Support reduction chains.
7983 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7984 (vect_get_constant_vectors): Handle reduction chains.
7985 (vect_schedule_slp_instance): Mark the first statement of the
7986 reduction chain as reduction.
7987
7988 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7989
7990 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7991 names for group elements access.
7992 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7993 reduction chains as well. Remove data reference and interleaving
7994 related words from the fields names.
7995 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7996 elements access.
7997 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7998 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7999 vect_update_interleaving_chain, vect_same_range_drs,
8000 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
8001 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
8002 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
8003 vect_analyze_group_access, vect_analyze_data_ref_access,
8004 vect_create_data_ref_ptr, vect_transform_strided_load,
8005 vect_record_strided_load_vectors): Likewise.
8006 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
8007 vect_model_load_cost, vectorizable_store, vectorizable_load,
8008 vect_remove_stores, new_stmt_vec_info): Likewise.
8009 * tree-vect-slp.c (vect_build_slp_tree,
8010 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
8011
8012 2011-05-18 Richard Guenther <rguenther@suse.de>
8013
8014 PR middle-end/48989
8015 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
8016 operand verification.
8017 (verify_gimple_assign_binary): Likewise.
8018 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
8019 to non-1-precision BOOLEAN_TYPEs.
8020
8021 2011-05-18 Tom de Vries <tom@codesourcery.com>
8022
8023 PR target/45098
8024 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
8025
8026 2011-05-18 Jakub Jelinek <jakub@redhat.com>
8027
8028 PR tree-optimization/49000
8029 * tree-ssa.c (execute_update_addresses_taken): Call
8030 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
8031 be rewritten and decl has been marked for renaming, reset
8032 the debug stmt.
8033
8034 2011-05-17 Joseph Myers <joseph@codesourcery.com>
8035
8036 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
8037 enum_opts_set when testing if attributes have set -mfpmath=.
8038
8039 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
8040
8041 * config/mips/mips.c (mips_handle_option): Remove unused variable.
8042
8043 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
8044
8045 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
8046 info->entry with 0
8047 * tree-inline.c (maybe_inline_call_in_expr): Initialize
8048 id.transform_lang_insert_block with NULL.
8049
8050 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
8051
8052 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
8053 (output_fp_compare): Change args 3 and 4 to bool.
8054 (ix86_expand_call): Change arg 6 to bool.
8055 (ix86_attr_length_immediate_default): Change arg 2 to bool.
8056 (ix86_attr_length_vex_default): Change arg 3 to bool.
8057 * config/i386/i386.md: Update all uses.
8058 * config/i386/i386.c: Ditto.
8059 (ix86_flags_dependent): Change return type to bool.
8060
8061 2011-05-17 Richard Guenther <rguenther@suse.de>
8062
8063 * gimple.c (type_hash_pair_compare): Fix comparison.
8064
8065 2011-05-17 Richard Guenther <rguenther@suse.de>
8066
8067 * gimple.c (iterative_hash_gimple_type): Simplify singleton
8068 case some more, fix final hash value of the non-singleton case.
8069
8070 2011-05-17 Richard Guenther <rguenther@suse.de>
8071
8072 PR bootstrap/49013
8073 Revert
8074 2011-05-16 Richard Guenther <rguenther@suse.de>
8075
8076 * gimple.c (gimple_types_compatible_p_1): Use names of the
8077 type itself, not its main variant.
8078 (iterative_hash_gimple_type): Likewise.
8079
8080 2011-05-17 Richard Guenther <rguenther@suse.de>
8081
8082 * gimple.c (gimple_register_canonical_type): Use the main-variant
8083 leader for computing the canonical type.
8084
8085 2011-05-17 Nick Clifton <nickc@redhat.com>
8086
8087 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
8088 moves.
8089
8090 * config/rx/rx.md: Add peephole to remove redundant extensions
8091 after loads.
8092 (bitset_in_memory): Use rx_restricted_mem_operand.
8093 (bitinvert_in_memory): Likewise.
8094 (bitclr_in_memory): Likewise.
8095
8096 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
8097 Nick Clifton <nickc@redhat.com>
8098
8099 * config/rx/rx.md: Add peepholes to match a register move followed
8100 by a comparison of the moved register. Replace these with an
8101 addition of zero that does both actions in one instruction.
8102
8103 2011-05-17 Jakub Jelinek <jakub@redhat.com>
8104
8105 PR target/48986
8106 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
8107 predicate to allow CONST_INT.
8108 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
8109
8110 2011-05-16 Joseph Myers <joseph@codesourcery.com>
8111
8112 * opts-common.c (opt_enum_arg_to_value): New.
8113 * opts.h (opt_enum_arg_to_value): Declare.
8114 * config/i386/i386.opt (fpmath): Remove.
8115 (mfpmath=): Use Enum, Init and Save.
8116 (fpmath_unit): New Enum and EnumValue entries.
8117 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
8118 name for function fpmath state.
8119 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
8120 * config/i386/i386.c: Include diagnostic.h.
8121 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
8122 (ix86_target_string): Take enum fpmath_unit value instead of string.
8123 (ix86_debug_options): Update call to ix86_target_string.
8124 (ix86_option_override_internal): Don't process fpmath strings here.
8125 (x86_function_specific_save, ix86_function_specific_restore):
8126 Don't handle fpmath state specially.
8127 (ix86_function_specific_print): Pass fpmath state to
8128 ix86_target_string instead of printing in this function.
8129 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
8130 Handle enum attributes.
8131 (IX86_ATTR_ENUM, ix86_opt_enum): New.
8132 (ix86_valid_target_attribute_tree): Update option_strings
8133 handling. Handle fpmath as enum option.
8134 (ix86_can_inline_p): Update field names for function fpmath state.
8135 (ix86_expand_builtin): Update call to ix86_target_string.
8136 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
8137 (ix86_fpmath): Remove.
8138 * config/i386/t-i386 (i386.o): Update dependencies.
8139
8140 2011-05-16 Joseph Myers <joseph@codesourcery.com>
8141
8142 PR preprocessor/48677
8143 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
8144 from decoded_options[0], not from itself.
8145
8146 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
8147
8148 * config/i386/constraints.md (z): New constraint.
8149 * config/i386/i386.c (c): New mode attribute.
8150 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
8151 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
8152 constraint for operand 0.
8153 (*call_vzeroupper): Ditto.
8154 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
8155 (*call_rex64_ms_sysv_vzeroupper): Ditto.
8156 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
8157 Use "lzm" constraint for operand 0.
8158 (*call_pop_vzeroupper): Ditto.
8159 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
8160 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
8161 constraint for operand 0.
8162 (*sibcall_vzeroupper): Ditto.
8163 (*sibcall_rex64_ms_sysv): Ditto.
8164 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
8165 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
8166 *sibcall_pop_1. Use "Uz" constraint for operand 0.
8167 (*sibcall_pop_vzeroupper): Ditto.
8168 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
8169 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
8170 mode iterator. Use "<c>zm" constraint for operand 1.
8171 (*call_value_vzeroupper): Ditto.
8172 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
8173 for operand 1.
8174 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
8175 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
8176 *call_value_pop_1. Use "lzm" constraint for operand 1.
8177 (*call_value_pop_vzeroupper): Ditto.
8178 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
8179 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
8180 mode iterator. Use "Uz" constraint for operand 1.
8181 (*sibcall_value_vzeroupper): Ditto.
8182 (*sibcall_value_rex64_ms_sysv): Ditto.
8183 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
8184 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
8185 constraint for operand 1.
8186 (*sibcall_value_pop_vzeroupper): Ditto.
8187 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
8188 and "z" constraint for operand 2.
8189 (*tls_global_dynamic_32_gnu): Ditto.
8190 (*tls_local_dynamic_base_32_gnu): Ditto.
8191 (*tls_local_dynamic_base_64): Ditto.
8192 (*tls_local_dynamic_32_once): Ditto.
8193 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
8194 Update all callers.
8195 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
8196
8197 2011-05-16 Richard Guenther <rguenther@suse.de>
8198
8199 * gimple.c (gimple_types_compatible_p_1): Use names of the
8200 type itself, not its main variant.
8201 (iterative_hash_gimple_type): Likewise.
8202
8203 2011-05-16 Richard Guenther <rguenther@suse.de>
8204
8205 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
8206 always visit pointer target and function result and argument types.
8207
8208 2011-05-16 Jason Merrill <jason@redhat.com>
8209
8210 PR c++/48999
8211 * tree-inline.c (copy_statement_list): Put back recursion.
8212
8213 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
8214
8215 PR target/27663
8216 PR target/41076
8217 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8218 * config/avr/avr.md ("*ior<mode>qi.byte0",
8219 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8220
8221 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
8222
8223 PR target/45099
8224 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8225 register is needed for a function argument.
8226
8227 2011-05-16 Richard Guenther <rguenther@suse.de>
8228
8229 * gimple.c (struct type_hash_pair): New type.
8230 (type_hash_pair_compare): New function.
8231 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
8232
8233 2011-05-16 Revital Eres <revital.eres@linaro.org>
8234
8235 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
8236
8237 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
8238
8239 * config/i386/i386.md (floating point move splitters): Fix
8240 usage of standard_80387_constant_p.
8241 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8242
8243 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
8244
8245 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8246
8247 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
8248
8249 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8250 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8251 (tree_ssa_lim_finalize): Likewise.
8252
8253 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
8254
8255 * config/i386/constraint.md (Yd, Yx): New register constraints.
8256 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
8257 Yd conditional register constraint.
8258 (*movtf_internal): Use standard_sse_constant_opcode.
8259 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
8260 Yx conditional register constraint.
8261 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
8262 Yd conditional register constraint. Use standard_sse_constant_p to
8263 check for valid SSE constants and call standard_sse_constant_opcode to
8264 output SSE insn.
8265 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8266 constants and call standard_sse_constant_opcode to output SSE insn.
8267 * config/i386/i386.c (ix86_option_ovverride_internal): Set
8268 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
8269 optimize_size is set.
8270 (standard_sse_constant_opcode): Output conditional AVX insn templates.
8271
8272 2011-05-14 Tobias Burnus <burnus@net-b.de>
8273
8274 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8275
8276 2011-05-13 Martin Jambor <mjambor@suse.cz>
8277
8278 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8279 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8280 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8281 (evaluate_conditions_for_ipcp_clone): Removed.
8282 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8283 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8284 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8285
8286 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
8287
8288 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8289 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8290 lieu of MAY_HAVE_DEBUG_STMTS.
8291 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8292 debug statements if !MAY_HAVE_DEBUG_STMTS.
8293
8294 2011-05-13 Martin Thuresson <martint@google.com>
8295
8296 PR gcov-profile/47793
8297 * libgcov.c (gcov_exit): Support relative profile paths.
8298 * doc/invoke.texi (-fprofile-dir): Update for above change.
8299
8300 2011-05-13 Richard Guenther <rguenther@suse.de>
8301
8302 * gimple.c (gimple_canonical_types_compatible_p): Do not use
8303 type-pair caching, do not compare hashes.
8304
8305 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
8306
8307 PR middle-end/48965
8308 * tree-cfg.c (edge_to_cases_cleanup): Return true.
8309 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8310
8311 2011-05-13 Kai Tietz <ktietz@redhat.com>
8312
8313 * gimplify.c (gimplify_expr): Make sure operand is boolified.
8314 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8315 compatible type for TRUTH_NOT_EXPR.
8316
8317 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
8318
8319 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8320 (ix86_hard_regno_mode_ok): Change return value to bool. Use
8321 can_create_pseudo_p ().
8322
8323 2011-05-13 Richard Guenther <rguenther@suse.de>
8324
8325 PR lto/48978
8326 * gimple.c (iterative_hash_gimple_type): Revert change in
8327 pointer target and function result and argument hashing.
8328
8329 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
8330
8331 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8332 (*movxf_internal_nointeger): Ditto.
8333 (*movdf_internal_rex64): Ditto.
8334 (*movdf_internal): Ditto.
8335 (*movdf_internal_nointeger): Ditto.
8336 (*movsf_internal): Ditto.
8337 (sincos splitters): Use can_create_pseudo ().
8338
8339 2011-05-13 Joseph Myers <joseph@codesourcery.com>
8340
8341 * config/i386/i386-opts.h: New.
8342 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8343 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8344 ix86_section_threshold): Remove.
8345 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8346 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8347 OPT_mbranch_cost_.
8348 (ix86_option_override_internal): Don't decode strings for options
8349 other than -march=, -mtune= and -mfpmath=. Don't allow for
8350 __attribute__ uses in remaining diagnostics for options with
8351 string arguments. Don't check for integer arguments being negative.
8352 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8353 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8354 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8355 ix86_branch_cost, ix86_section_threshold): Remove.
8356 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8357 HeaderInclude.
8358 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8359 but not Var.
8360 (masm=): Use Enum and Init.
8361 (asm_dialect): New Enum and EnumValue entries.
8362 (mbranch-cost=): Use UInteger.
8363 (mlarge-data-threshold=): Use UInteger and Init.
8364 (mcmodel=): Use Enum and Init.
8365 (cmodel): New Enum and EnumValue entries.
8366 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8367 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8368 mregparm=): Use UInteger.
8369 (mstringop-strategy=): Use Enum and Init.
8370 (stringop_alg): New Enum and EnumValue entries.
8371 (mtls-dialect=): Use Enum and Init.
8372 (tls_dialect): New Enum and EnumValue entries.
8373 (mabi=): Use Enum and Init.
8374 (calling_abi): New Enum and EnumValue entries.
8375 (mveclibabi=): Use Enum and Init.
8376 (ix86_veclibabi): New Enum and EnumValue entries.
8377
8378 2011-05-13 Nick Clifton <nickc@redhat.com>
8379
8380 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8381 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8382
8383 2011-05-13 Kai Tietz <ktietz@redhat.com>
8384
8385 PR middle-end/48984
8386 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8387 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8388 (gimple_boolify): Check for cast for boolean_type_node instead for
8389 BOOLEAN_TYPE.
8390
8391 2011-05-13 Richard Guenther <rguenther@suse.de>
8392
8393 PR tree-optimization/48172
8394 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8395 multiplying by number of iterations for equal step.
8396 (vect_create_cond_for_alias_checks): Likewise.
8397
8398 2011-05-13 Andreas Schwab <schwab@redhat.com>
8399
8400 * configure.ac: Use AS_HELP_STRING throughout.
8401 * configure: Regenerate.
8402
8403 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8404
8405 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8406 (ix86_emit_restore_regs_using_mov): Likewise.
8407 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8408
8409 2011-05-12 Anatoly Sokolov <aesok@post.ru>
8410
8411 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8412 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8413 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8414 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8415 RTX_OK_FOR_OLO10_P): ...here.
8416 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8417 SYMBOLIC_CONST.
8418
8419 2011-05-12 Kai Tietz <ktietz@redhat.com>
8420
8421 * gimplify.c (gimple_boolify): Re-boolify expression
8422 arguments even if expression type is of kind BOOLEAN_TYPE.
8423 (gimplify_boolean_expr): Removed.
8424 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8425 and XOR. Additional take care that we keep expression's type.
8426 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8427 of TRUTH_AND|OR|XOR_EXPR.
8428
8429 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8430
8431 PR tree-optimization/48975
8432 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8433 on all bbs here and free and clear ifc_bbs at the end.
8434
8435 2011-05-12 Richard Guenther <rguenther@suse.de>
8436
8437 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8438 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8439 until after simple checks.
8440 (gimple_types_compatible_p): Likewise.
8441 (iterative_hash_gimple_type): Always hash pointer targets
8442 and function return and argument types.
8443 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8444 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8445 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8446 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8447 completely in the simple compare section.
8448 (gimple_register_canonical_type): Query the cache again after
8449 registering.
8450
8451 2011-05-12 Richard Guenther <rguenther@suse.de>
8452
8453 PR tree-optimization/48172
8454 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8455 the number of iterations from the segment size calculation.
8456 (vect_create_cond_for_alias_checks): Adjust.
8457
8458 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8459
8460 PR debug/48967
8461 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8462 if validate_subreg fails.
8463
8464 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
8465
8466 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8467 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8468 early.
8469
8470 2011-05-12 DJ Delorie <dj@redhat.com>
8471
8472 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8473 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8474 created builtin into rx_builtins array.
8475 (rx_builtin_decl): New function.
8476 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
8477
8478 2011-05-12 DJ Delorie <dj@redhat.com>
8479 Nick Clifton <nickc@redhat.com>
8480
8481 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8482 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8483 (rx_is_legitimate_address): Add pre-decrement and post-increment
8484 addressing in HImode and QImode. Fix test for out of range
8485 REG+INT addressing.
8486 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8487 (rx_align_for_label): Test label before extracting its usage count.
8488 (rx_adjust_insn_lengths): Fix selection of insn codes.
8489 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8490
8491 2011-05-11 Jason Merrill <jason@redhat.com>
8492
8493 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8494
8495 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8496
8497 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8498 reindent the subsequent block.
8499
8500 2011-05-11 Satoru Takabayashi <satorux@google.com>
8501 Paul Pluzhnikov <ppluzhnikov@google.com>
8502
8503 * doc/install.texi (Configuration): Document --with-linker-hash-style.
8504 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8505 * config.in: Add LINKER_HASH_STYLE.
8506 * configure.ac: Add --with-linker-hash-style.
8507 * configure: Regenerate.
8508
8509 2011-05-11 Richard Guenther <rguenther@suse.de>
8510
8511 PR middle-end/48964
8512 * gimple.c (iterative_hash_canonical_type): Fix typo.
8513
8514 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
8515
8516 * config/i386/i386.c (legitimize_tls_address)
8517 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8518 expanders directly for TARGET_GNU2_TLS. Determine pic and
8519 __tls_get_addr symbol reference here. Update call to
8520 gen_tls_global_dynamic_{32,64} for added arguments.
8521 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8522 expanders directly for TARGET_GNU2_TLS. Determine
8523 __tls_get_addr symbol reference here. Update call to
8524 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8525 unique UNSPEC REG_EQUIV to libcall block.
8526 (ix86_tls_get_addr): Declare static.
8527 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8528 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8529 Do not determine pic and __tls_get_addr symbol reference here. Do not
8530 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8531 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8532 (tls_global_dynamic_64): Add operand 2. Do not determine
8533 __tls_get_addr symbol reference here. Do not call
8534 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8535 (tls_local_dynamic_base64): Ditto for operand 1.
8536
8537 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8538
8539 * function.c (expand_function_start): Initialize stack_check_probe_note
8540 only if the generic stack checking mechanism is used.
8541
8542 2011-05-11 Richard Guenther <rguenther@suse.de>
8543
8544 PR tree-optimization/15256
8545 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8546 (A & B) | C, combine (A op CST1) op CST2.
8547 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8548 visit assigns that have uses.
8549
8550 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8551
8552 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8553 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8554 (unpack_ts_type_common_value_fields): ...this. Update comment.
8555 (unpack_value_fields): Adjust for renaming.
8556 (lto_input_ts_type_tree_pointers): Split into...
8557 (lto_input_ts_type_common_tree_pointer): ...this and...
8558 (lto_input_ts_type_non_common_tree_pointers): ...this.
8559 (lto_input_tree_pointers): Adjust for above split.
8560 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8561 (pack_ts_type_common_value_fields): ...this. Update comment.
8562 (lto_output_ts_type_tree_pointers): Split into...
8563 (lto_output_ts_type_common_tree_pointers): ...this and...
8564 (lto_output_ts_type_non_common_tree_pointers): ...this.
8565 (lto_output_tree_pointers): Adjust for above split.
8566 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8567 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8568 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8569 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8570 Define.
8571 (struct tree_type): Split into...
8572 (struct tree_type_common: ...this and...
8573 (struct tree_type_with_lang_specific): ...this and...
8574 (struct tree_type_non_common): ...this. Adjust accessor macros
8575 accordingly.
8576 (TYPE_VALUES_RAW): Define.
8577 (union tree_node): Update for above changes.
8578 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8579 TS_TYPE_NON_COMMON.
8580 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8581 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8582 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8583 * treestructu.def (TS_TYPE): Remove.
8584 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8585 Define.
8586
8587 2011-05-11 Jakub Jelinek <jakub@redhat.com>
8588
8589 PR debug/48159
8590 * tree-ssa.c (reset_debug_uses): New function.
8591 * tree-flow.h (reset_debug_uses): New prototype.
8592 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8593 * tree-loop-distribution.c (generate_loops_for_partition): Call
8594 reset_debug_uses on the stmts that will be removed. Keep around
8595 all debug stmts, don't count them as bits in partition bitmap.
8596 (generate_builtin): Don't count debug stmts or labels as bits in
8597 partition bitmap.
8598
8599 2011-05-11 Richard Guenther <rguenther@suse.de>
8600
8601 * gimple.c (gimple_type_hash_1): Merge with ...
8602 (gimple_type_hash): ... this.
8603 (gtc_visit): Remove mode parameter and simplify accordingly.
8604 (gimple_types_compatible_p_1): Likewise.
8605 (gimple_types_compatible_p): Likewise.
8606 (iterative_hash_gimple_type): Likewise.
8607 (visit): Likewise.
8608 (gimple_type_eq): Adjust.
8609
8610 2011-05-11 Revital Eres <revital.eres@linaro.org>
8611
8612 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8613 enters the branch create an anti edge in the opposite direction
8614 to prevent the creation of reg-moves.
8615 * modulo-sched.c: Adjust comment to reflect the fact we are
8616 scheduling closing branch.
8617 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8618 (stage_count): New field in struct partial_schedule.
8619 (calculate_stage_count): New function.
8620 (normalize_sched_times): Rename to reset_sched_times and handle
8621 incrementing the sched time of the nodes by a constant value
8622 passed as parameter.
8623 (duplicate_insns_of_cycles): Skip closing branch.
8624 (sms_schedule_by_order): Schedule closing branch.
8625 (ps_insn_find_column): Handle closing branch.
8626 (sms_schedule): Call reset_sched_times and adjust the code to
8627 support scheduling of the closing branch.
8628 (ps_insert_empty_row): Update calls to normalize_sched_times
8629 and rotate_partial_schedule functions.
8630
8631 2011-05-11 Richard Guenther <rguenther@suse.de>
8632
8633 PR middle-end/48953
8634 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8635
8636 2011-05-11 Joseph Myers <joseph@codesourcery.com>
8637
8638 * opts.c (finish_options): Move warning settings from process_options.
8639 * toplev.c (process_options): Move warning settings to finish_options.
8640
8641 2011-05-11 Richard Guenther <rguenther@suse.de>
8642
8643 PR tree-optimization/18041
8644 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8645 (simplify_bitwise_binary): ... this. Handle operand conversions
8646 by applying them to the result instead.
8647 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8648
8649 2011-05-11 Richard Guenther <rguenther@suse.de>
8650
8651 * gimple.c (gimple_canonical_types_compatible_p): Split out
8652 from gimple_types_compatible_p and friends. Do not recurse
8653 to pointed-to types.
8654 (gimple_canonical_type_eq): Use it.
8655 (iterative_hash_canonical_type): Split out from
8656 iterative_hash_gimple_type and friends. Do not recurse
8657 to pointed-to types.
8658 (gimple_canonical_type_hash): Use it, allocate the hash here.
8659
8660 2011-05-11 Revital Eres <revital.eres@linaro.org>
8661
8662 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8663 recognizing doloop.
8664
8665 2011-05-11 Revital Eres <revital.eres@linaro.org>
8666
8667 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8668 instead of PREV_INSN.
8669
8670 2011-05-11 Revital Eres <revital.eres@linaro.org>
8671
8672 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8673 * loop-doloop.c (doloop_condition_get): Likewise.
8674 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8675 (doloop_end): New.
8676 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8677
8678 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8679
8680 * tree.def (CASE_LABEL_EXPR): Add an operand.
8681 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8682
8683 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8684
8685 * c-decl.c (c_override_global_bindings_to_false): Remove.
8686 (global_bindings_p): Don't check
8687 c_override_global_bindings_to_false.
8688 * c-tree.h (c_override_global_bindings_to_false): Remove.
8689 * c-typeck.c (composite_type): Don't set
8690 c_override_global_bindings_to_false.
8691
8692 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8693
8694 PR target/48857, 48495
8695 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8696 (VSX_MODE): Ditto.
8697 (VSX_MOVE_MODE): Ditto.
8698 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8699 VSX vector types. Add V2DImode.
8700 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8701 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8702 (MODES_TIEABLE_P): Ditto.
8703
8704 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8705 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8706 VSX_VECTOR_MODE.
8707 (init_cumulative_args): Ditto.
8708 (rs6000_function_arg_boundary): Ditto.
8709 (rs6000_function_arg_advance_1): Ditto.
8710 (rs6000_function_arg): Ditto.
8711 (rs6000_function_ok_for_sibcall): Ditto.
8712 (emit_frame_save): Ditto.
8713 (rs6000_function_value): Ditto.
8714 (rs6000_libcall_value): Ditto.
8715
8716 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8717
8718 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8719 i386/darwin-lib.h to $libgcc_tm_file.
8720 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8721
8722 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8723
8724 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8725
8726 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8727
8728 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8729 * config/rs6000/rs6000-tables.opt: New file (generated).
8730 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8731 rs6000/rs6000-tables.opt to extra_options.
8732 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8733 * config/rs6000/rs6000.c (rs6000_select): Remove.
8734 (processor_target_table): Move contents to rs6000-cpus.def.
8735 (darwin_rs6000_override_options): Check
8736 global_options_set.x_rs6000_cpu_index instead of
8737 rs6000_select[1].string.
8738 (rs6000_option_override_internal): Likewise.
8739 (rs6000_handle_option): Don't assert that global structures are in
8740 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8741 (rs6000_default_cpu): New variable.
8742 (rs6000_file_start): Set it instead of local default_cpu. Check
8743 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8744 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8745 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8746 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8747 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8748 rs6000_select): Remove.
8749 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8750 Remove.
8751 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8752 * config/rs6000/t-rs6000
8753 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8754 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8755 global_options_set.x_rs6000_cpu_index instead of
8756 rs6000_select[1].string.
8757 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8758 global_options_set.x_rs6000_cpu_index instead of
8759 rs6000_select[1].string.
8760
8761 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8762
8763 * config.gcc (libgcc_tm_file): Define instead of including files
8764 from ../../libgcc/config/ in tm_file.
8765 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8766 * configure: Regenerate.
8767 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8768 libgcc_tm.h, cs-libgcc_tm.h): New.
8769 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8770 (clean): Remove libgcc_tm.h.
8771 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8772 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8773 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8774
8775 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
8776
8777 PR target/48896
8778 * config/avr/avr.c (avr_ret_register): Return unsigned int
8779 instead of int.
8780 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8781 it to avr_libcall_value.
8782 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8783 expand_expr.
8784 (avr_expand_binop_builtin): Ditto.
8785 (avr_expand_unop_builtin): Ditto.
8786
8787 2011-05-10 DJ Delorie <dj@redhat.com>
8788
8789 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8790 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8791 * config/rx/rx.c (rx_align_for_label): Add label and
8792 uses_threshold parameters. Do not align when the label is not
8793 used enough.
8794 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8795
8796 2011-05-10 Richard Guenther <rguenther@suse.de>
8797
8798 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8799 a series of conversions and apply foldings similar to what
8800 fold-const does.
8801 (tree_ssa_forward_propagate_single_use_vars): Call it.
8802
8803 2011-05-10 Jakub Jelinek <jakub@redhat.com>
8804
8805 PR tree-optimization/48611
8806 PR tree-optimization/48794
8807 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8808 referenced from RESX or EH_DISPATCH arguments.
8809
8810 PR debug/48928
8811 * dfp.c (decimal_to_decnumber): Handle conversion from
8812 dconst{1,2,m1,half}.
8813
8814 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8815
8816 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8817 for !flag_prefer_avx128.
8818 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8819
8820 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8821
8822 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8823 (fold_ternary_loc): Use expr_location_or.
8824
8825 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8826
8827 PR debug/48853
8828 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8829 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8830 Pmode and mem_mode is not VOIDmode.
8831
8832 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
8833
8834 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8835 TYPE_QUAL_RESTRICT): Convert to enum.
8836
8837 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8838
8839 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8840 (const_pow2_1_to_8_operand): Ditto.
8841 (const_pow2_1_to_128_operand): Ditto.
8842 (const_pow2_1_to_32768_operand): Ditto.
8843 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8844 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8845 in insn constraint to check integer value of operand 3.
8846 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8847
8848 (PINSR_MODE): New mode iterator.
8849 (sse2p4_1): New mode attribute.
8850 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8851 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8852 iterator. Use const_int_operand instead of
8853 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8854 exact_log2 in insn constraint to check integer value of operand 3.
8855
8856 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8857
8858 * config/i386/sse.md (blendbits): Remove mode attribute.
8859 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8860 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8861 Check integer value of operand 3 in insn constraint.
8862
8863 2011-05-09 Richard Guenther <rguenther@suse.de>
8864
8865 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8866 for diagnostics.
8867 (lto_symtab_merge): Likewise. Do not register types here.
8868 (lto_symtab_merge_decls_2): Likewise.
8869 (lto_symtab_merge_decls_1): Likewise.
8870 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8871 * gimple.c (enum gtc_mode): Declare.
8872 (gimple_types_compatible_p): Make static.
8873
8874 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8875
8876 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8877 temporary register to match Pmode.
8878
8879 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8880
8881 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8882 and *vec_concatv4si_1_avx.
8883
8884 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8885
8886 PR rtl-optimization/48927
8887 * ira-conflicts.c (commutative_constraint_p): Use
8888 recog_data.alternative_enabled_p to disable alternatives where
8889 "enabled" attribute is false.
8890 (get_dup_num): Ditto.
8891 * ira-lives.c (single_reg_class): Ditto.
8892 (ira_implicitly_set_insn_hard_regs): Ditto.
8893
8894 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8895
8896 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8897 (dataflow_set_preserve_mem_locs): Likewise.
8898
8899 2011-05-09 Philipp Thomas <pth@suse.de>
8900
8901 * config/mep/mep.c (mep_validate_vliw): Syntax description
8902 should not be translated.
8903
8904 2011-05-09 Joseph Myers <joseph@codesourcery.com>
8905
8906 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8907 * config/mips/mips-tables.opt: New file (generated).
8908 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
8909 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8910 MIPS_ARCH_OPTION_NATIVE): Define.
8911 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8912 mips-cpus.def.
8913 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8914 mips_parse_cpu): Remove.
8915 (mips_cpu_info_from_opt, mips_default_arch): New.
8916 (mips_handle_option): Don't assert that global structures are in
8917 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8918 (mips_option_override): Use new variables and functions to set
8919 state of these options. Use strcmp to check for individual CPU names.
8920 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8921 definition.
8922 * config/mips/mips.opt (march=): Use ToLower and Enum.
8923 (mips): Use ToLower, Enum and Var.
8924 (mtune=): Use ToLower and Enum.
8925 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8926
8927 2011-05-08 Jan Hubicka <jh@suse.cz>
8928
8929 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8930 Arrange type pairs to be UID ordered.
8931 (gimple_lookup_type_leader): Make inline.
8932
8933 2011-05-09 Nick Clifton <nickc@redhat.com>
8934
8935 PR target/48899
8936 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8937 PROCESSOR_DEFAULT.
8938
8939 PR target/48897
8940 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8941 variable 's'.
8942
8943 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8944
8945 * combine.c (simplify_comparison): Abstract out parts into...
8946 (simplify_compare_const): ... new function.
8947 (try_combine): Generalize parallel arithmetic/compare combining
8948 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8949
8950 2011-05-08 Jan Hubicka <jh@suse.cz>
8951
8952 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
8953 (cgraph_create_virtual_clone): Call hooks once virtual clone
8954 is finished.
8955 * cgraph.h (cgraph_clone_node): Update prototype.
8956 * ipa-cp.c (ipcp_estimate_growth): Use
8957 estimate_ipcp_clone_size_and_time.
8958 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8959 * lto-cgraph.c (input_node): Update.
8960 * ipa-inline.c (recursive_inlining): Update.
8961 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8962 (evaluate_conditions_for_known_args): Break out from ...
8963 (evaluate_conditions_for_edge): ... here.
8964 (evaluate_conditions_for_ipcp_clone): New function.
8965 (inline_node_duplication_hook): Update clone summary based
8966 on parameter map.
8967 (estimate_callee_size_and_time): Rename to ...
8968 (estimate_node_size_and_time): take NODE instead of EDGE;
8969 take POSSIBLE_TRUTHS as argument.
8970 (estimate_callee_size_and_time): Update.
8971 (estimate_ipcp_clone_size_and_time): New function.
8972 (do_estimate_edge_time): Update.
8973
8974 2011-05-08 Richard Guenther <rguenther@suse.de>
8975
8976 PR middle-end/48908
8977 PR middle-end/48905
8978 * expmed.c (expand_shift_1): Compute adjusted constant shift
8979 amount manually.
8980
8981 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8982
8983 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8984
8985 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8986
8987 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8988
8989 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8990
8991 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8992
8993 2011-05-07 Jan Hubicka <jh@suse.cz>
8994
8995 * ipa-inline-transform.c (inline_call): Account when program size
8996 decreases.
8997 * ipa-inline.c (relative_time_benefit): New function.
8998 (edge_badness): Reorganize to be power 2 based; fix thinko when
8999 computing badness for negative growth; update comments to match
9000 reality; better dumps.
9001
9002 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
9003
9004 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
9005 type to bool and adjust comment.
9006 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
9007 (fold_mathfn_compare): Remove calls to global_bindings_p.
9008 (fold_inf_compare): Likewise.
9009 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
9010 * c-tree.h (global_bindings_p): Adjust prototype.
9011 * c-decl.c (global_bindings_p): Return bool and simplify.
9012
9013 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
9014
9015 PR tree-optimization/48837
9016 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
9017 when accumulator transformation is performed.
9018
9019 2011-05-06 Jan Hubicka <jh@suse.cz>
9020
9021 * i386.h (ix86_tune_indices): Add
9022 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
9023 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
9024 * i386.c (initial_ix86_tune_features): Add
9025 X86_SOFTARE_PREFETCHING_BENEFICIAL.
9026 (software_prefetching_beneficial_p): Remove predicate.
9027 (ix86_option_override_internal): Use new macro.
9028
9029 2011-05-06 Jan Hubicka <jh@suse.cz>
9030
9031 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
9032
9033 2011-05-06 Jan Hubicka <jh@suse.cz>
9034
9035 * cgraph.c (cgraph_add_thunk): Create real function node instead
9036 of alias node; finalize it and mark needed/reachale; arrange visibility
9037 to be right and add it into the corresponding same comdat group list.
9038 (dump_cgraph_node): Dump thunks.
9039 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
9040 cgraph_function_with_gimple_body_p,
9041 cgraph_first_function_with_gimple_body,
9042 cgraph_next_function_with_gimple_body): New functions.
9043 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
9044 New macros.
9045 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
9046 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9047 * cgraphunit.c (cgraph_finalize_function): Only look into possible
9048 devirtualization when optimizing.
9049 (verify_cgraph_node): Verify thunks.
9050 (cgraph_analyze_function): Analyze thunks.
9051 (cgraph_mark_functions_to_output): Output thunks only in combination
9052 with function they are assigned to.
9053 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
9054 alias into normal node.
9055 (assemble_thunks): New functoin.
9056 (cgraph_expand_function): Use it.
9057 * lto-cgraph.c (lto_output_node): Stream thunks.
9058 (input_overwrite_node): Stream in thunks.
9059 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
9060 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
9061 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
9062 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
9063 (inline_analyze_function): Do not care about thunk jump functions.
9064 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
9065 * ipa-prop.c (ipa_prop_write_jump_functions): Use
9066 cgraph_function_with_gimple_body_p.
9067 * passes.c (do_per_function_toporder): Use
9068 cgraph_function_with_gimple_body_p.
9069 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9070 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
9071 (function_called_by_processed_nodes_p): Likewise.
9072
9073 2011-05-06 Joseph Myers <joseph@codesourcery.com>
9074
9075 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
9076 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
9077 entries.
9078 (mabi=): Replace with separate entries for mabi=altivec,
9079 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
9080 mabi=ieeelongdouble and mabi=ibmlongdouble.
9081 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
9082 check for -mabi=spe without SPE ABI support here.
9083 (rs6000_handle_option): Replace OPT_mabi_ handling with
9084 OPT_mabi_altivec and OPT_mabi_spe handling.
9085
9086 2011-05-06 Cary Coutant <ccoutant@google.com>
9087
9088 * dwarf2out.c (contains_subprogram_definition): New function.
9089 (should_move_die_to_comdat): Call it.
9090
9091 2011-05-06 Jeff Law <law@redhat.com>
9092
9093 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
9094 remove_ctrl_stmt_and_useless_edges.
9095 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
9096 (fixup_template_block, thread_single_edge): Likewise.
9097 (mark_threaded_blocks): Use THREAD_TARGET.
9098
9099 2011-05-06 Alan Modra <amodra@gmail.com>
9100
9101 PR target/48900
9102 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9103 const0_rtx as the arg to the dummy __tls_get_addr libcall.
9104
9105 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
9106
9107 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
9108 constraint modifier to "r".
9109
9110 2011-05-06 Joseph Myers <joseph@codesourcery.com>
9111
9112 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9113 fall through for OPT_mcmodel_.
9114
9115 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9116
9117 * config/s390/s390.c (s390_asm_trampoline_template): Comment
9118 instruction sizes.
9119 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
9120
9121 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9122
9123 PR target/47930
9124 * config/arm/arm.opt (marm): Document it.
9125 (mthumb): Reject negative variant.
9126
9127 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
9128
9129 PR target/48898
9130 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9131 Fix typo in "ccvt" variable name.
9132
9133 2011-05-06 Tristan Gingold <gingold@adacore.com>
9134
9135 PR target/48895
9136 * config/vms/vms-ar.c (main): Remove cwd variable.
9137
9138 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9139
9140 PR debug/48902
9141 * var-tracking.c (prepare_call_arguments): Move else before #endif.
9142
9143 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9144
9145 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
9146 * gimplify.c (gimplify_switch_expr): Likewise.
9147 * omp-low.c (expand_omp_sections): Likewise.
9148 * tree-eh.c (lower_try_finally_switch): Likewise.
9149 (lower_eh_dispatch): Likewise.
9150 * tree.h (build_case_label): Declare.
9151 * tree.c (build_case_label): Define.
9152
9153 2011-05-05 Jason Merrill <jason@redhat.com>
9154
9155 PR c++/40975
9156 * tree-inline.c (copy_tree_r): Use copy_statement_list.
9157 (copy_statement_list): Don't recurse.
9158 * stor-layout.c (copy_self_referential_tree_r): Don't allow
9159 STATEMENT_LIST.
9160
9161 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9162
9163 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
9164 through from -mfpu= handling.
9165 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
9166
9167 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
9168
9169 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
9170 POST_MODIFY.
9171
9172 2011-05-05 Steve Ellcey <sje@cup.hp.com>
9173
9174 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
9175 for 11.31.
9176 (hppa[12]*-*-hpux11*): Ditto.
9177 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
9178 * config/ia64/hpux-unix2003.h: New.
9179 * config/pa/pa-hpux1131.opt: New.
9180 * config/pa/pa-hpux1131.h: New.
9181 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
9182 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
9183 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
9184
9185 2011-05-05 Jakub Jelinek <jakub@redhat.com>
9186
9187 PR debug/48853
9188 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
9189 instead of mode as 3rd argument to recursive call.
9190 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
9191 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
9192 VOIDmode.
9193 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
9194 don't give up if mode is Pmode and mem_mode is not VOIDmode.
9195 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
9196 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
9197
9198 2011-05-05 Julian Brown <julian@codesourcery.com>
9199
9200 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
9201 parenthesis in D-register case.
9202
9203 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9204
9205 * opt-functions.awk (var_type_struct): Handle Enum options.
9206 * optc-gen.awk: Don't check range of variables of character type.
9207 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9208 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9209 rs6000_sdata_name, rs6000_explicit_options): Remove.
9210 (rs6000_option_override_internal): Check for -malign-power here.
9211 Use global_options_set instead of rs6000_explicit_options.
9212 (rs6000_parse_fpu_option): Remove.
9213 (rs6000_handle_option): Access variables via opts and opts_set
9214 pointers. Use error_at and warning_at. Add fall-through
9215 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9216 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9217 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9218 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9219 here. Don't use rs6000_parse_fpu_option.
9220 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9221 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9222 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9223 (mrecip=): Use Var.
9224 (mspe): Use Var and Save.
9225 (mtraceback=): Use Enum and Var.
9226 (rs6000_traceback_type): New Enum and EnumValue entries.
9227 (mfloat-gprs=): Use Enum, Var and Save.
9228 (rs6000_float_gprs): New Enum and EnumValue entries.
9229 (mlong-double-): use Var and Save.
9230 (msched-costly-dep=, minsert-sched-nops=): Use Var.
9231 (malign-): Use Enum and Var.
9232 (rs6000_alignment_flags): New Enum and EnumValue entries.
9233 (mfpu=): Use Enum.
9234 (fpu_type_t): New Enum and EnumValue entries.
9235 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9236 global_options_set instead of rs6000_explicit_options.
9237 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9238 global_options_set instead of rs6000_explicit_options.
9239 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9240 global_options_set instead of rs6000_explicit_options.
9241 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9242 global_options_set instead of rs6000_explicit_options.
9243 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9244 global_options_set instead of rs6000_explicit_options.
9245 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9246 global_options_set instead of rs6000_explicit_options.
9247 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9248 definition.
9249 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9250 global_options_set instead of rs6000_explicit_options.
9251 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9252 (rs6000_cmodel): New Enum and EnumValue entries.
9253 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9254 global_options_set instead of rs6000_explicit_options.
9255 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9256 (mtls-size=): Use Enum and Var.
9257 (rs6000_tls_size): New Enum and EnumValue entries.
9258
9259 2011-05-05 Michael Matz <matz@suse.de>
9260
9261 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9262 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9263 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9264 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9265 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9266 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9267 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9268 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9269 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9270 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9271 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9272 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9273 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9274 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9275 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9276 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9277
9278 2011-05-05 Richard Guenther <rguenther@suse.de>
9279
9280 * expmed.c (expand_variable_shift): Rename to ...
9281 (expand_shift_1): ... this. Take an expanded shift amount.
9282 For rotates recurse directly not building trees for the shift amount.
9283 (expand_variable_shift): Wrap around expand_shift_1.
9284 (expand_shift): Adjust.
9285
9286 2011-05-05 Jakub Jelinek <jakub@redhat.com>
9287
9288 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9289
9290 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9291
9292 * tree.h (get_pending_sizes): Remove prototype.
9293 (put_pending_size): Likewise.
9294 (put_pending_sizes): Likewise.
9295 * stor-layout.c (pending_sizes): Delete.
9296 (get_pending_sizes): Likewise.
9297 (put_pending_size): Likewise.
9298 (put_pending_sizes): Likewise.
9299 (variable_size): Do not call put_pending_size and tidy up.
9300 * function.h (struct function): Remove dont_save_pending_sizes_p.
9301 * lto-streamer-in.c (input_function): Do not stream it.
9302 * lto-streamer-out.c (output_function): Likewise.
9303 * tree-inline.c (initialize_cfun): Do not copy it.
9304 * c-decl.c (store_parm_decls): Do not set it.
9305 * omp-low.c (create_task_copyfn): Likewise.
9306 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9307
9308 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
9309
9310 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9311 conditions.
9312 (*movdf_internal): Ditto.
9313 (*movdf_internal_nointeger): Ditto.
9314 (*movsf_internal): Ditto.
9315
9316 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9317
9318 * c-decl.c (finish_decl): Don't call get_pending_sizes.
9319 (grokparm): Add parameter expr. Pass it to grokdeclarator.
9320 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
9321 (c_variable_size): Remove.
9322 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
9323 call put_pending_sizes.
9324 (get_parm_info): Add parameter expr. Use it to set
9325 arg_info->pending_sizes.
9326 (store_parm_decls): Use arg_info->pending_sizes instead or calling
9327 get_pending_sizes.
9328 * c-parser.c (c_parser_parms_declarator): Update call to
9329 c_parser_parms_list_declarator.
9330 (c_parser_parms_list_declarator): Take parameter expr. Update
9331 call to push_parm_decl. Update recursive call. Don't call
9332 get_pending_sizes. Update calls to get_parm_info.
9333 (c_parser_objc_method_definition): Update calls to
9334 c_parser_objc_method_decl and objc_start_method_definition.
9335 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9336 (c_parser_objc_method_decl): Add parameter expr. Update call to
9337 grokparm.
9338 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9339 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9340 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9341
9342 2011-05-05 Michael Hope <michael.hope@linaro.org>
9343
9344 PR pch/45979
9345 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9346 __ARM_EABI__ hosts.
9347
9348 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9349
9350 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9351 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9352 (spu_output_mi_thunk): New function.
9353
9354 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9355
9356 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9357 targetm.asm_out.print_operand.
9358 * config/sol2.c: Include target.h.
9359
9360 2011-05-04 Jan Hubicka <jh@suse.cz>
9361
9362 * ipa-inline.c (reset_edge_caches): New function.
9363 (update_caller_keys): Add check_inlinablity_for; do not
9364 reset edge caches; remove now unnecesary loop.
9365 (update_callee_keys): Add comments; reset node_growth_cache of callee.
9366 (update_all_callee_keys): Likewise.
9367 (inline_small_functions): Sanity check cache; update code
9368 recomputing it.
9369
9370 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9371
9372 PR rtl-optimization/47612
9373 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9374 as the last insn of the sequence to be moved.
9375
9376 2011-05-04 Tobias Burnus <burnus@net-b.de>
9377
9378 PR fortran/48864
9379 * doc/invoke.texi (Ofast): Document that it
9380 enables Fortran's -fno-protect-parens.
9381
9382 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9383
9384 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9385
9386 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9387
9388 * stor-layout.c (variable_size): Do not issue errors.
9389
9390 2011-05-04 Richard Guenther <rguenther@suse.de>
9391
9392 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9393 for array-ref indices.
9394 (tree_coverage_counter_addr): Likewise.
9395 (build_fn_info_type): Use size_int for index types.
9396 (build_gcov_info): Likewise.
9397
9398 2011-05-04 Richard Guenther <rguenther@suse.de>
9399
9400 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9401 to build_int_cst.
9402 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9403 for constructor indices.
9404 (push_init_level): Likewise.
9405
9406 2011-05-04 Richard Guenther <rguenther@suse.de>
9407
9408 * explow.c (promote_mode): Move variable declarations before code.
9409
9410 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9411
9412 * tree.h (build_function_type_array): Declare.
9413 (build_varargs_function_type_array): Declare.
9414 (build_function_type_vec, build_varargs_function_type_vec): Define.
9415 * tree.c (build_function_type_array_1): New function.
9416 (build_function_type_array): New function.
9417 (build_varargs_function_type_array): New function.
9418
9419 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9420
9421 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9422 before setting STMT_VINFO_TYPE.
9423
9424 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9425
9426 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9427 instead of spu_pass_by_reference.
9428
9429 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9430
9431 * calls.c (emit_library_call_value_1): Invoke
9432 promote_function_mode hook on libcall arguments.
9433 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9434 argument being NULL.
9435 * targhooks.c (default_promote_function_mode): Lisewise.
9436 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9437 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9438
9439 * doc/tm.texi: Document that TYPE argument might be NULL.
9440
9441 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9442
9443 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9444
9445 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9446
9447 From Bernd Schmidt
9448 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9449
9450 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9451
9452 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9453 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9454 Move ...
9455 * mips-tfile.c: ... here.
9456 Don't include coretypes.h, tm.h, filenames.h.
9457 (saber_stop): Remove definition and all calls.
9458 [__SABER__]: Remove.
9459 (__LINE__): Remove default.
9460 (Size_t, Ptrdiff_t): Remove definitions.
9461 Replace by size_t, ptrdiff_t.
9462 [!MIPS_DEBUGGING_INFO]: Remove.
9463 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9464 (progname): Add const.
9465 (STATIC): Remove.
9466 Replace all uses by static.
9467 (ALIGN_SYMTABLE_OFFSET): Remove default.
9468 * mips-tdump.c: Don't include coretypes.h, tm.h.
9469 Remove !MIPS_IS_STAB guard.
9470 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9471 $(TM_H), filenames.h dependencies.
9472 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9473
9474 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9475
9476 From Jie Zhang
9477 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9478 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9479
9480 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9481
9482 From Bernd Schmidt
9483 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9484 account and save/restore RETS.
9485 (PROFILE_BEFORE_PROLOGUE): Define.
9486 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9487 the push insn to use predecrement.
9488
9489 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9490
9491 From Jie Zhang
9492 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9493
9494 2011-05-04 Nick Clifton <nickc@redhat.com>
9495
9496 * config/mn10300/mn10300.c: Include cfgloop.h.
9497 (DUMP): New macro.
9498 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9499 Lcc or a FLcc insn into the instruction stream.
9500 (mn10300_block_contains_call): New function. Returns true if the
9501 given basic block contains a CALL insn.
9502 (mn10300_loop_contains_call_insn): New function. Returns true if
9503 the given loop contains a CALL insn.
9504 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9505 to use the SETLB and Lcc or FLcc insns.
9506 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9507 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9508 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9509 disable the SETLB optimization.
9510 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9511 __SETLB__ or __NO_SETLB__.
9512 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9513 (movsf_internal): Handle MDR register.
9514 (cmpsi): Make visible.
9515 (setlb): New pattern.
9516 (Lcc): New pattern.
9517 (FLcc): New pattern.
9518
9519 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9520
9521 PR target/48860
9522 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9523 for reg<->xmm moves.
9524 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9525 (vec_concatv2di_rex64_sse): Ditto.
9526 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9527 (*vec_extractv2di_1_rex64): Ditto.
9528
9529 Revert:
9530 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9531
9532 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9533 reg<->xmm moves.
9534 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9535
9536 2011-05-04 Richard Guenther <rguenther@suse.de>
9537
9538 * tree.h (int_const_binop): Remove notrunc argument.
9539 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9540 create integer constants that are properly truncated.
9541 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9542 (const_binop): Remove zero notrunc argument to int_const_binop.
9543 (size_binop_loc): Likewise.
9544 (fold_div_compare): Likewise.
9545 (maybe_canonicalize_comparison_1): Likewise.
9546 (fold_comparison): Likewise.
9547 (fold_binary_loc): Likewise.
9548 (multiple_of_p): Likewise.
9549 * expr.c (store_constructor): Likewise.
9550 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9551 (maybe_fold_stmt_addition): Likewise.
9552 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9553 * stor-layout.c (layout_type): Likewise.
9554 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9555 * tree-sra.c (build_ref_for_offset): Likewise.
9556 (build_user_friendly_ref_for_offset): Likewise.
9557 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9558 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9559 * tree-ssa-loop-niter.c (inverse): Likewise.
9560 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9561 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9562 * tree-switch-conversion.c (check_range): Likewise.
9563 (build_constructors): Likewise.
9564 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9565 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9566 (extract_range_from_assert): Likewise.
9567 (vrp_int_const_binop): Likewise.
9568 (extract_range_from_binary_expr): Likewise.
9569 (extract_range_from_unary_expr): Likewise.
9570 (check_array_ref): Likewise.
9571 (find_case_label_range): Likewise.
9572 (simplify_div_or_mod_using_ranges): Likewise.
9573 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9574 comparing case labels for merging.
9575
9576 2011-05-03 Mark Wielaard <mjw@redhat.com>
9577
9578 * dwarf2out.c (debug_str_hash_forced): Removed.
9579 (gen_label_for_indirect_string): Removed.
9580 (get_debug_string_label): Removed.
9581 (AT_string_form): Generate label directly.
9582 (output_indirect_string): Test indirect_string_node for
9583 DW_FORM_strp instead of checking label and refcount.
9584 (prune_indirect_string): Removed.
9585 (prune_unused_types): Don't check debug_str_hash_forced or
9586 call prune_indirect_string.
9587
9588 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9589
9590 PR other/48093
9591 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9592
9593 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9594
9595 PR debug/47994
9596 PR debug/47919
9597 * combine.c (try_combine): Skip debug insns at m_split tests.
9598
9599 2011-04-26 Mark Wielaard <mjw@redhat.com>
9600
9601 PR42288
9602 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9603 when info_section_emitted.
9604
9605 2011-05-03 Joseph Myers <joseph@codesourcery.com>
9606
9607 * config/mips/mips-opts.h: New.
9608 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9609 to mips-opts.h.
9610 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9611 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9612 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9613 via opts pointer.
9614 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9615 mips-opts.h.
9616 (mips_abi, mips_code_readable): Don't declare.
9617 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9618 (mabi=): Use Enum and Var.
9619 (mips_abi): New Enum and EnumValue entries.
9620 (mcode-readable=): Use Enum and Var.
9621 (mips_code_readable_setting): New Enum and EnumValue entries.
9622 (mr10k-cache-barrier=): Use Enum and Var.
9623 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9624
9625 2011-05-03 Jan Hubicka <jh@suse.cz>
9626
9627 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9628 replace hash by pointer map.
9629 (cgraph_node_set_element_def, cgraph_node_set_element,
9630 const_cgraph_node_set_element, varpool_node_set_element_def,
9631 varpool_node_set_element, const_varpool_node_set_element): Remove.
9632 (free_cgraph_node_set, free_varpool_node_set): New function.
9633 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9634 * tree-emutls.c: Free varpool node set.
9635 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9636 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9637 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9638 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9639 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9640 Move here from ipa.c; implement using pointer_map
9641 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9642 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9643 debug_cgraph_node_set, varpool_node_set_new,
9644 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9645 dump_varpool_node_set, debug_varpool_node_set):
9646 Move to ipa-uitls.c.
9647 * passes.c (ipa_write_summaries): Update.
9648
9649 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9650
9651 From Mike Frysinger:
9652 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9653 bf542/bf544/bf547/bf548/bf549.
9654
9655 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9656
9657 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9658
9659 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9660
9661 From Bernd Schmidt:
9662 * config/bfin/bfin.md (MOVCC): New mode_macro.
9663 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9664 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9665 comments from generated assembly.
9666
9667 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9668
9669 From Bernd Schmidt
9670 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9671 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9672 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9673 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9674 * config/bfin/lib1funcs.asm (___muldi3): New function.
9675
9676 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9677
9678 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9679 build_function_type_list instead of build_function_type.
9680 Rearrange initialization of `args' to do so.
9681
9682 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9683
9684 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9685 instead of build_function_type.
9686
9687 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9688
9689 * config/rs6000/rs6000.c (spe_init_builtins): Call
9690 build_function_type_list instead of build_function_type.
9691 (paired_init_builtins, altivec_init_builtins): Likewise.
9692 (builtin_function_type): Likewise.
9693
9694 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9695
9696 * config/sh/sh.c (sh_media_init_builtins): Call
9697 build_function_type_list instead of build_function_type.
9698
9699 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9700
9701 * config/sparc/sparc.c (sparc_file_end): Call
9702 build_function_type_list instead of build_function_type.
9703
9704 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9705
9706 * config/alpha/alpha.c (alpha_init_builtins): Call
9707 build_function_type_list instead of build_function_type.
9708
9709 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9710
9711 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9712 build_function_type_list instead of build_function_type.
9713
9714 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9715
9716 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9717 build_function_type_list instead of build_function_type.
9718 Delete `endlink' variable.
9719
9720 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9721
9722 * config/avr/avr.c (avr_init_builtins): Call
9723 build_function_type_list instead of build_function_type.
9724
9725 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9726
9727 * config/picochip/picochip.c (picochip_init_builtins): Call
9728 build_function_type_list instead of build_function_type.
9729 Delete `endlink' variable.
9730
9731 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9732
9733 * config/bfin/bfin.c (bfin_init_builtins): Call
9734 build_function_type_list instead of build_function_type.
9735
9736 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9737
9738 From Bernd Schmidt
9739 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9740 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9741
9742 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9743
9744 From Jie Zhang:
9745 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9746 libbffastfp overrides libgcc when -mfast-fp.
9747
9748 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9749
9750 Originally from Bernd Schmidt
9751 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9752 * config/bfin/bfin.c (override_options): Test it and error if
9753 TARGET_FDPIC.
9754
9755 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9756
9757 Originally From Bernd Schmidt
9758 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9759 FD-PIC.
9760
9761 2011-05-03 Jeff Law <law@redhat.com>
9762
9763 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9764 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9765 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9766 than accessing AUX field directly. Free the AUX field before
9767 clearing it.
9768 (thread_block, thread_through_loop_header): Likewise.
9769 (thread_single_edge, mark_threaded_blocks): Likewise.
9770 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9771 (register_jump_thread): Do not attempt to thread to a NULL edge.
9772
9773 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9774
9775 * function.c (init_function_start): Call decide_function_section.
9776 * varasm.c (decide_function_section): New function.
9777 (assemble_start_function): When not using
9778 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9779 or first_function_block_is_cold.
9780 * rtl.h (decide_function_section): Declare.
9781
9782 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9783 Jakub Jelinek <jakub@redhat.com>
9784
9785 PR target/48774
9786 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9787 only succeed if req_mode is the same as set_mode.
9788
9789 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9790
9791 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9792 * genemit.c (gen_exp): Handle RETURN.
9793 * emit-rtl.c (verify_rtx_sharing): Likewise.
9794 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9795 * rtl.c (copy_rtx): RETURN is shared.
9796 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9797 (ret_rtx): New.
9798 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9799 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9800 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9801 * config/cris/cris.c (cris_expand_return): Likewise.
9802 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9803 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9804 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9805 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9806 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9807 Likewise.
9808 * config/v850/v850.c (expand_epilogue): Likewise.
9809 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9810 * config/arm/arm.md (epilogue): Likewise.
9811 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9812 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9813 variable to ret_reg.
9814
9815 2011-05-03 Richard Guenther <rguenther@suse.de>
9816
9817 PR lto/48846
9818 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9819 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9820 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9821
9822 2011-05-03 Richard Guenther <rguenther@suse.de>
9823
9824 * c-decl.c (grokdeclarator): Instead of looking at
9825 TREE_OVERFLOW check if the constant fits in the index type.
9826
9827 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9828
9829 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9830 (vec_store_lanes<mode><mode>): Likewise.
9831
9832 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9833
9834 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9835 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9836 convert_optab_index values.
9837 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9838 * genopinit.c (optabs): Initialize the new optabs.
9839 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9840 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9841 (expand_STORE_LANES): New functions.
9842 * tree.h (build_array_type_nelts): Declare.
9843 * tree.c (build_array_type_nelts): New function.
9844 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9845 (vect_model_load_cost): Likewise.
9846 (vect_store_lanes_supported, vect_load_lanes_supported)
9847 (vect_record_strided_load_vectors): Declare.
9848 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9849 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9850 (vect_transform_strided_load): Split out statement recording into...
9851 (vect_record_strided_load_vectors): ...this new function.
9852 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9853 (write_vector_array, create_array_ref): New functions.
9854 (vect_model_store_cost): Add store_lanes_p argument.
9855 (vect_model_load_cost): Add load_lanes_p argument.
9856 (vectorizable_store): Try to use store-lanes functions for
9857 interleaved stores.
9858 (vectorizable_load): Likewise load-lanes and loads.
9859 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9860 to vect_model_store_cost.
9861 (vect_build_slp_tree): Likewise vect_model_load_cost.
9862
9863 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9864
9865 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9866 * hooks.c (hook_bool_mode_uhwi_false): New function.
9867 * target.def (array_mode_supported_p): New hook.
9868 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9869 * doc/tm.texi: Regenerate.
9870 * stor-layout.c (mode_for_array): New function.
9871 (layout_type): Use it.
9872 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9873 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9874
9875 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9876
9877 PR target/48723
9878 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9879 for -fstack-check if the size to allocate is negative.
9880
9881 2011-05-02 Lawrence Crowl <crowl@google.com>
9882
9883 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9884 (timevar_cond_start): New for starting a timer only when it is not
9885 already running.
9886 (timevar_cond_stop): New for stopping a timer when it was not already
9887 running.
9888
9889 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9890 (timevar_cond_start): New as above.
9891 (timevar_cond_stop): New as above.
9892
9893 * timevar.def: Add start/stop timers for compiler phases,
9894 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9895 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9896 and TV_PHASE_FINALIZE.
9897 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9898 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9899 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9900 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9901 Make unused TV_OVERLOAD into a start/stop timer.
9902
9903 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9904 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9905 to indicate that they are start/stop timers.
9906
9907 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9908 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9909 Move initialization to do_compile.
9910 (do_compile): Add initialization from above.
9911 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9912
9913 * c-decl.c (c_write_global_declarations): Add start/stop of
9914 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9915
9916 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9917 or TV_PARSE_INLINE, as appropriate.
9918 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9919 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9920
9921 2011-05-02 Jason Merrill <jason@redhat.com>
9922
9923 PR c++/40975
9924 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9925
9926 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
9927
9928 PR c/35445
9929 * c-decl.c (finish_decl): Only create a composite if the types are
9930 compatible.
9931
9932 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9933
9934 * config/fr30/fr30-protos.h (Mmode): Don't define.
9935 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9936 definition where used.
9937 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9938 define. Expand definitions where used.
9939 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9940 Expand definitions where used.
9941 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9942 rx_function_arg, rx_function_arg_advance,
9943 rx_function_arg_boundary): Expand definitions of those macros.
9944 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9945 definition where used.
9946
9947 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9948
9949 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9950 reg<->xmm moves.
9951 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9952 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9953 with *movv2sf_internal_rex64_avx.
9954 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9955 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9956 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9957 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9958 "vex" in "prefix" attribute calculation.
9959 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9960
9961 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9962
9963 PR target/47951
9964 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9965 inputs match the output.
9966
9967 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9968
9969 PR target/47955
9970 * config/m68k/m68k.c (m68k_expand_prologue): Set
9971 current_function_static_stack_size.
9972
9973 2011-05-02 Jan Hubicka <jh@suse.cz>
9974
9975 * lto-streamer.c (lto_streamer_cache_insert_1,
9976 lto_streamer_cache_lookup, lto_streamer_cache_create,
9977 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9978 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9979
9980 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9981
9982 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9983 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9984 config/m68k/t-opts: New files.
9985 * config/m68k/m68k-tables.opt: New file (generated).
9986 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9987 extra_options and m68k/t-opts to tmake_file.
9988 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9989 (all_isas): Initialize using m68k-isas.def.
9990 (all_microarchs): Initialize using m68k-microarchs.def.
9991 (m68k_find_selection): Remove.
9992 (m68k_handle_option): Don't assert that global structures are in
9993 use. Use error_at. Access variables via opts pointer. Don't
9994 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9995 directly for -m68020-40 and -m68020-60.
9996 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9997 m68k_tune_entry here.
9998 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9999 to m68k-opts.h.
10000 (m68k_library_id_string): Remove declaration.
10001 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
10002 (m68k_library_id_string): New Variable.
10003 (march=, mcpu=, mtune=): Use Enum and Var.
10004
10005 2011-05-02 Richard Guenther <rguenther@suse.de>
10006
10007 * varasm.c (output_constructor_regular_field): Compute zero-based
10008 index with double-ints. Make sure to ICE instead of producing
10009 wrong code.
10010 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
10011 in asserts. Properly use a signed type.
10012
10013 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
10014
10015 * config/i386/sse.md (V): New mode iterator.
10016 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
10017 TARGET_SSE2.
10018 (V_256): Rename from AVX256MODE.
10019 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
10020 condition to all users.
10021 (VF1): Ditto.
10022 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
10023 condition to all users.
10024 (VF_128): Make V4SF mode unconditional.
10025 (VF_256): Rename from AVX256MODEF2P.
10026 (VI4F_128): Rename from SSEMODE4S.
10027 (VI8F_128): Rename from SSEMODE2D.
10028 (VI4F_256): Rename from AVX256MODE8P.
10029 (VI8F_256): Rename from AVX256MODE4P.
10030 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
10031 (ssescalarmodesuffix): Remove SF and DF modes.
10032 (SSEMODE124): Remove.
10033 (SSEMODE1248): Ditto.
10034 (SSEMODEF2P): Ditto.
10035 (AVXMODEF2P): Ditto.
10036 (AVXMODEFDP): Ditto.
10037 (AVXMODEFSP): Ditto.
10038 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
10039 unconditional.
10040 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
10041 unconditional.
10042 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
10043 xop_pcmov_<mode>256. Use V mode iterator.
10044
10045 Adjust RTX patterns globally for renamed mode attributes.
10046
10047 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10048
10049 * haifa-sched.c (sched_emit_insn): Emit insn before first
10050 non-scheduled insn. Inform back-end about new insn. Add
10051 new insn to scheduled_insns list.
10052
10053 2011-05-02 Richard Guenther <rguenther@suse.de>
10054
10055 PR tree-optimization/48822
10056 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
10057 (process_scc): Indicate which iteration we start.
10058
10059 2011-05-02 Jan Hubicka <jh@suse.cz>
10060
10061 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
10062 (lto_section_overrun): New.
10063 * lto-section-out.c (append_block): Rename to ...
10064 (lto_append_block): ... this one; export.
10065 (lto_output_1_stream): Move lto lto-streamer.h
10066 (lto_output_data_stream): Update.
10067 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
10068 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
10069 functions.
10070
10071 2011-05-02 Richard Guenther <rguenther@suse.de>
10072
10073 * tree.c (tree_code_counts): New global array.
10074 (record_node_allocation_statistics): Count individual tree codes.
10075 (dump_tree_statistics): Dump individual code stats.
10076
10077 2011-05-01 Jan Hubicka <jh@suse.cz>
10078
10079 * ipa-inline.c (caller_growth_limits): Fix thinko when
10080 looking for largest stack frame.
10081 * ipa-inline.h (dump_inline_summary): Declare.
10082 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
10083 on stack usage.
10084 (dump_inline_summary): Export.
10085 (debug_inline_summary): Declare as DEBUG_FUNCTION.
10086
10087 2011-05-01 Anatoly Sokolov <aesok@post.ru>
10088
10089 * reginfo.c (memory_move_cost): Change rclass argument type form
10090 'enum reg_class' to reg_class_t.
10091 * reload.h (memory_move_cost): Update prototype.
10092 * postreload.c reload_cse_simplify_set): Change type dclass var to
10093 reg_class_t.
10094 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
10095 Update prototype.
10096 (ira_allocate_and_set_costs): Change aclass argument type form
10097 'enum reg_class' to reg_class_t.
10098 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
10099 Change aclass argument type to reg_class_t.
10100 (update_conflict_hard_reg_costs): Change type aclass and pref vars
10101 to reg_class_t.
10102 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
10103 memory_move_cost call.
10104
10105 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
10106 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
10107 Change type tmp var to reg_class_t.
10108
10109 2011-04-30 Jan Hubicka <jh@suse.cz>
10110
10111 * ipa-inline.c (can_inline_edge_p): Disregard limits when
10112 inlining into function with flatten attribute.
10113 (want_inline_small_function_p): Be more realistic about inlining
10114 cold calls where callee size grows.
10115
10116 2011-04-30 Jan Hubicka <jh@suse.cz>
10117
10118 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
10119 flags.
10120
10121 2011-04-30 Anatoly Sokolov <aesok@post.ru>
10122
10123 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10124 PRINT_OPERAND_PUNCT_VALID_P): Remove.
10125 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
10126 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
10127 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10128 (print_operand): Rename to...
10129 (sparc_print_operand): ...this. Make static. Adjust
10130 sparc_print_operand function call.
10131 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
10132 functions.
10133
10134 2011-04-30 Jan Hubicka <jh@suse.cz>
10135
10136 PR middle-end/48752
10137 * ipa-inline.c (early_inliner): Disable when doing late
10138 addition of function.
10139
10140 2011-04-30 Jakub Jelinek <jakub@redhat.com>
10141
10142 * dwarf2out.c (get_address_mode): New inline.
10143 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
10144 if not dwarf_strict emit
10145 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
10146 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
10147 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
10148 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
10149 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
10150 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
10151 mem_loc_descriptor callers.
10152 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10153 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
10154 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
10155 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
10156 (base_types): New variable.
10157 (get_base_type_offset, calc_base_type_die_sizes,
10158 base_type_for_mode, mark_base_types, base_type_cmp,
10159 move_marked_base_types): New functions.
10160 (calc_die_sizes): Assert that die_offset is 0 or equal to
10161 next_die_offset.
10162 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
10163 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
10164 callers. If not dwarf_strict, call mem_loc_descriptor even for
10165 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
10166 (gen_subprogram_die): Don't give up on call site parameters
10167 with non-integral or large integral modes. Adjust
10168 mem_loc_descriptor callers.
10169 (prune_unused_types): Call prune_unused_types_mark on base_types
10170 vector entries.
10171 (resolve_addr): Call mark_base_types.
10172 (dwarf2out_finish): Call move_marked_base_types.
10173
10174 PR tree-optimization/48809
10175 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
10176 type.
10177 (gen_inbound_check): Don't compute index_expr - range_min in utype
10178 again, instead reuse SSA_NAME initialized in build_arrays.
10179 Remove two useless gsi_for_stmt calls.
10180
10181 2011-04-29 Jeff Law <law@redhat.com>
10182
10183 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
10184
10185 2011-04-29 Martin Jambor <mjambor@suse.cz>
10186
10187 * cgraph.h (cgraph_postorder): Remove declaration.
10188 * ipa-utils.h (ipa_free_postorder_info): Declare.
10189 (ipa_reverse_postorder): Likewise.
10190 * cgraphunit.c: Include ipa-utils.h.
10191 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
10192 * ipa-inline.c: Include ipa-utils.h.
10193 (ipa_inline): Update call to ipa_reverse_postorder.
10194 * ipa-pure-const.c (propagate_pure_const): Update call to
10195 ipa_reduced_postorder and ipa_print_order. Call
10196 ipa_free_postorder_info to clean up.
10197 (propagate_nothrow): Likewise.
10198 * ipa-reference.c (propagate): Removed a useless call to
10199 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
10200 and ipa_print_order. Call ipa_free_postorder_info to clean up.
10201 * ipa.c: Include ipa-utils.h.
10202 (ipa_profile): Update call to ipa_reverse_postorder.
10203 (cgraph_postorder): Moved to...
10204 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
10205 (ipa_utils_print_order): Renamed to ipa_print_order.
10206 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10207 comments.
10208 (ipa_free_postorder_info): New function.
10209 * passes.c: Include ipa-utils.h.
10210 (do_per_function_toporder): Update call to ipa_reverse_postorder.
10211 (ipa_write_summaries): Likewise.
10212 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10213 (cgraphunit.o): Likewise.
10214 (ipa.o): Likewise.
10215 (ipa-inline.o): Likewise.
10216
10217 2011-04-29 Jan Hubicka <jh@suse.cz>
10218
10219 * gcc.dg/tree-ssa/inline-10.c: New testcase.
10220 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10221 * ipa-inline.h (clause_t): Turn into unsigned int.
10222 * ipa-inline-analysis.c (add_clause): Do more simplification.
10223 (and_predicates): Shortcut more cases.
10224 (predicates_equal_p): Move forward; check that clauses are properly
10225 ordered.
10226 (or_predicates): Shortcut more cases.
10227 (edge_execution_predicate): Rewrite as...
10228 (set_cond_stmt_execution_predicate): ... this function; handle
10229 __builtin_constant_p.
10230 (set_switch_stmt_execution_predicate): New .
10231 (compute_bb_predicates): New.
10232 (will_be_nonconstant_predicate): Update TODO.
10233 (estimate_function_body_sizes): Use compute_bb_predicates
10234 and free them later, always try to estimate if stmt is constant.
10235 (estimate_time_after_inlining, estimate_size_after_inlining):
10236 Gracefully handle optimized out edges.
10237 (read_predicate): Fix off by one error.
10238
10239 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
10240
10241 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10242
10243 2011-04-27 Xinliang David Li <davidxl@google.com>
10244
10245 * tree-profile.c (init_ic_make_global_vars): Set
10246 tls attribute on ic vars.
10247 * coverage.c (coverage_end_function): Initialize
10248 function_list with zero.
10249
10250 2011-04-29 Richard Guenther <rguenther@suse.de>
10251
10252 * builtins.c (fold_builtin_classify_type): Use integer_type_node
10253 for the type of the result.
10254 (fold_builtin_isascii): Likewise.
10255 (fold_builtin_toascii): Use integer_type_node where appropriate.
10256 (fold_builtin_logb): Likewise.
10257 (fold_builtin_frexp): Likewise.
10258 (fold_builtin_strstr): Likewise.
10259 (fold_builtin_strpbrk): Likewise.
10260 (fold_builtin_fputs): Likewise.
10261 (fold_builtin_sprintf): Likewise.
10262 (fold_builtin_snprintf): Likewise.
10263 (fold_builtin_printf): Likewise.
10264 (do_mpfr_remquo): Use a proper type for the assigned constant.
10265 (do_mpfr_lgamma_r): Likewise.
10266 * dwarf2out.c (resolve_one_addr): Use size_int.
10267 * except.c (init_eh): Likewise.
10268 (assign_filter_values): Use integer_type_node for filter values.
10269 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10270 indices.
10271 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10272 for EH region numbers.
10273 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10274 for the shift amount.
10275
10276 2011-04-29 Richard Guenther <rguenther@suse.de>
10277
10278 * expr.h (expand_shift): Rename to ...
10279 (expand_variable_shift): ... this.
10280 (expand_shift): Take a constant shift amount.
10281 * expmed.c (expand_shift): Rename to ...
10282 (expand_variable_shift): ... this.
10283 (expand_shift): New wrapper around expand_variable_shift.
10284 * expr.c (convert_move, emit_group_load_1, emit_group_store,
10285 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10286 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10287 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10288 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10289 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10290 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10291 emit_store_flag_1, emit_store_flag): Likewise.
10292 * builtins.c (expand_builtin_signbit): Likewise.
10293 * calls.c (load_register_parameters): Likewise.
10294 * function.c (assign_parm_setup_block): Likewise.
10295 * lower-subreg.c (resolve_shift_zext): Likewise.
10296 * optabs.c (widen_bswap, expand_abs_nojump,
10297 expand_one_cmpl_abs_nojump, expand_float): Likewise.
10298 * spu/spu.c (spu_expand_extv): Likewise.
10299 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10300
10301 2011-04-29 Richard Guenther <rguenther@suse.de>
10302
10303 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10304 for the remapped region number.
10305 * predict.c (build_predict_expr): Use integer_type_node for the
10306 predict kind.
10307 * fold-const.c (fold_binary_loc): Use integer_type_node for
10308 the shift amount. Use a proper type for the PLUS_EXPR operand.
10309
10310 2011-04-29 Michael Matz <matz@suse.de>
10311
10312 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10313 other trees that just builtins.
10314 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10315
10316 2011-04-29 Richard Guenther <rguenther@suse.de>
10317
10318 * tree-nested.c (get_trampoline_type): Use size_int.
10319 (get_nl_goto_field): Likewise.
10320 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10321 for all indexes.
10322 (lower_eh_constructs_2): Likewise.
10323 (lower_resx): Likewise.
10324 (lower_eh_dispatch): Likewise.
10325 * tree-mudflap.c (mf_build_string): Use size_int.
10326 (mudflap_register_call): Use integer_type_node for the flag.
10327 (mudflap_enqueue_constant): Use size_int.
10328 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10329 instead of rebuilding it.
10330
10331 2011-04-29 Richard Guenther <rguenther@suse.de>
10332
10333 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10334 Handle OBJ_TYPE_REF.
10335 (find_func_aliases_for_call): Use it more consistently.
10336
10337 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
10338
10339 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10340 (rank_for_schedule): Use it.
10341 (schedule_block): Set it.
10342
10343 2011-04-28 David Li <davidxl@google.com>
10344
10345 * tree.c (crc32_string): Use crc32_byte.
10346 (crc32_byte): New function.
10347 * tree.h (crc32_byte): New function.
10348 * gcov.c (read_graph_file): Handle new cfg_cksum.
10349 (read_count_file): Ditto.
10350 * profile.c (instrument_values): Ditto.
10351 (get_exec_counts): Ditto.
10352 (read_profile_edge_counts): Ditto.
10353 (compute_branch_probabilities): Ditto.
10354 (compute_value_histograms): Ditto.
10355 (branch_prob): Ditto.
10356 (end_branch_prob): Ditto.
10357 * coverage.c (read_counts_file): Ditto.
10358 (get_coverage_counts): Ditto.
10359 (tree_coverage_counter_addr): Ditto.
10360 (coverage_checksum_string): Ditto.
10361 (coverage_begin_output): Ditto.
10362 (coverage_end_function): Ditto.
10363 (build_fn_info_type): Ditto.
10364 (build_fn_info_value): Ditto.
10365 * libgcov.c (gcov_exit): Ditto.
10366 * gcov-dump.c (tag_function): Ditto.
10367 (compute_checksum): Remove.
10368
10369 2011-04-29 Alan Modra <amodra@gmail.com>
10370
10371 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10372 unspec plus offset. Tidy macho code.
10373
10374 2011-04-29 Martin Jambor <mjambor@suse.cz>
10375
10376 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10377 node instead of a decl. Update all callers.
10378 * cgraph.h: Update declaration.
10379
10380 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
10381
10382 PR tree-optimization/48765
10383 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10384 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10385 to indicate if loop aware SLP is being used. Scan the statements
10386 and update the vectorization factor according to the type of
10387 vectorization before statement analysis.
10388 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10389 pass it to vect_analyze_loop_operations.
10390 (vectorizable_reduction): Set number of copies to 1 in case of pure
10391 SLP statement.
10392 * tree-vect-stmts.c (vectorizable_conversion,
10393 vectorizable_assignment, vectorizable_shift,
10394 vectorizable_operation, vectorizable_type_demotion,
10395 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10396 Likewise.
10397 (vectorizable_condition): Move the check that it is not SLP
10398 vectorization before the number of copies check.
10399 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10400 to vectorize the loop using SLP.
10401
10402 2011-04-28 Jakub Jelinek <jakub@redhat.com>
10403
10404 PR middle-end/48597
10405 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10406 inline asm.
10407
10408 2011-04-28 Joseph Myers <joseph@codesourcery.com>
10409
10410 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10411 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10412 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10413 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10414 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10415 linux*.h headers.
10416 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10417 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10418 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10419 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10420 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10421 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10422 REG_NAME.
10423 * config/i386/linux.h (REG_NAME): Don't define.
10424 * config/i386/linux64.h (REG_NAME): Don't define.
10425 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10426 Undefine before defining.
10427
10428 2011-04-28 Jan Hubicka <jh@suse.cz>
10429
10430 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10431 nonconstant_names array.
10432 (estimate_function_body_sizes): Build nonconstant_names array; handle
10433 BUILT_IN_CONSTANT_P.
10434
10435 2011-04-28 Richard Guenther <rguenther@suse.de>
10436
10437 PR bootstrap/48804
10438 Revert
10439 2011-04-28 Richard Guenther <rguenther@suse.de>
10440
10441 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10442 as late as possible.
10443
10444 2011-04-28 Richard Guenther <rguenther@suse.de>
10445
10446 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10447 (debug_constraint): Do it here.
10448 (dump_constraints): And here.
10449 (rewrite_constraints): And here.
10450 (dump_constraint_edge): Remove.
10451 (dump_constraint_graph): Rewrite to produce DOT output.
10452 (solve_constraints): Build succ graph as late as possible.
10453 Dump constraint graphs before and after solving.
10454
10455 2011-04-28 Richard Guenther <rguenther@suse.de>
10456
10457 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10458 New function split out from ...
10459 (find_func_aliases): ... here. Call it.
10460 (find_func_aliases_for_call): Likewise.
10461
10462 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10463
10464 * internal-fn.h (internal_fn_name_array): Declare.
10465 (internal_fn_flags_array): Likewise.
10466
10467 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10468
10469 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10470 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10471 Move from sse.md.
10472 (ssemodefsuffix): Remove.
10473 (ssevecmodesuffix): New mode attribute.
10474 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10475 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10476 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10477 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10478 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10479 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10480 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10481 ssemodesuffix mode attribute.
10482 (float splitters): Use ssevecmodesuffix mode attribute.
10483 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10484 (sseinsmode): Rename from avxvecmode.
10485 (avxsizesuffix): Rename from avxmodesuffix.
10486 (sseintvecmode): Rename from avxpermvecmode.
10487 (ssedoublevecmode): Rename from ssedoublesizemode.
10488 (ssehalfvecmode): Rename from avxhalfvecmode.
10489 (ssescalarmode): Rename from avxscalarmode.
10490 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10491 templates for ssemodesuffix mode attribute.
10492 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10493 mode attribute.
10494
10495 Adjust RTX patterns globally for renamed mode attributes.
10496
10497 2011-04-27 Jan Hubcika <jh@suse.cz>
10498
10499 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10500 * ipa-inline-analysis.c: Include alloc-pool.h.
10501 (edge_predicate_pool): New.
10502 (trye_predicate_p): New function
10503 (false_predicate_p): New function.
10504 (add_clause): Sanity check that false clauses are "optimized";
10505 never add clauses to predicate that is already known to be false.
10506 (and_predicate): Use flase_predicate_p.
10507 (evaulate_predicate): Rename to ...
10508 (evaluate_predicate): ... this one; update all callers; assert
10509 that false is not listed among possible truths.
10510 (dump_predicate): Use true_predicate_p.
10511 (account_size_time): Use false_predicate_p.
10512 (evaulate_conditions_for_edge): Rename to ...
10513 (evaluate_conditions_for_edge) ... this one.
10514 (edge_set_predicate): New function.
10515 (inline_edge_duplication_hook): Duplicate edge predicates.
10516 (inline_edge_removal_hook): Free edge predicates.
10517 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10518 (dump_inline_summary): Update.
10519 (estimate_function_body_sizes): Set edge predicates.
10520 (estimate_calls_size_and_time): Handle predicates.
10521 (estimate_callee_size_and_time): Update.
10522 (remap_predicate): Add toplev_predicate; update comment.
10523 (remap_edge_predicates): New function.
10524 (inline_merge_summary): Compute toplev predicate; update.
10525 (read_predicate): New function.
10526 (read_inline_edge_summary): Use it.
10527 (inline_read_section): Likewise.
10528 (write_predicate): New function.
10529 (write_inline_edge_summary): Use it.
10530 (inline_write_summary): Likewise.
10531 (inline_free_summary): Free alloc pool and edge summary vec.
10532
10533 2011-04-27 Richard Guenther <rguenther@suse.de>
10534
10535 * tree-ssa-structalias.c (changed_count): Remove.
10536 (changed): Use a bitmap.
10537 (unify_nodes): Adjust.
10538 (do_sd_constraint): Likewise.
10539 (do_ds_constraint): Likewise.
10540 (do_complex_constraint): Likewise.
10541 (solve_graph): Likewise.
10542
10543 2011-04-27 Jan Hubicka <jh@suse.cz>
10544
10545 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10546
10547 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10548
10549 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10550 (avx_vperm2f128_*_operand): Ditto.
10551 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10552 Use avx_vpermilp_parallel in insn condition.
10553 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10554 Use avx_vperm2f128_parallel in insn condition.
10555
10556 2011-04-27 Richard Guenther <rguenther@suse.de>
10557
10558 * Makefile.in (tree-ssa-structalias.o): Remove
10559 gt-tree-ssa-structalias.h dependency.
10560 (GTFILES): Remove tree-ssa-structalias.c.
10561 * tree.c (allocate_decl_uid): New function.
10562 (make_node_stat): Use it.
10563 (copy_node_stat): Likewise.
10564 * tree.h (allocate_decl_uid): Declare.
10565 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10566 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10567 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10568 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10569 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10570 (struct heapvar_map): Likewise.
10571 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10572 heapvar_insert): Likewise.
10573 (make_heapvar_for): Rename to ...
10574 (make_heapvar): ... this. Simplify.
10575 (fake_var_decl_obstack): New global var.
10576 (build_fake_var_decl): New function.
10577 (make_constraint_from_heapvar): Adjust.
10578 (handle_lhs_call): Likewise.
10579 (create_function_info_for): Likewise.
10580 (intra_create_variable_infos): Likewise.
10581 (init_alias_vars): Allocate fake_var_decl_obstack.
10582 (init_alias_heapvars, delete_alias_heapvars): Remove.
10583 (compute_points_to_sets): Do not call init_alias_heapvars.
10584 (ipa_pta_execute): Likewise.
10585 (delete_points_to_sets): Free fake_var_decl_obstack.
10586
10587 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10588
10589 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10590 (si_from_UTItype, si_to_UTItype): New functions.
10591 (__udivmodti4): Use them to implement type-punning.
10592 * config/spu/multi3.c (union qword_TItype): New data type.
10593 (si_from_TItype, si_to_TItype): New functions.
10594 (__multi3): Use them to implement type-punning.
10595
10596 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10597
10598 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10599
10600 2011-04-27 Jan Hubicka <jh@suse.cz>
10601
10602 * ipa-prop.c (function_insertion_hook_holder): New holder.
10603 (ipa_add_new_function): New function.
10604 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10605 Register/deregister holder.
10606
10607 2011-04-27 Richard Guenther <rguenther@suse.de>
10608
10609 PR tree-optimization/48772
10610 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10611
10612 2011-04-27 Richard Guenther <rguenther@suse.de>
10613
10614 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10615 TARGET_MEM_REF handling.
10616
10617 2011-04-27 Nick Clifton <nickc@redhat.com>
10618
10619 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10620 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10621 (REG_CLASS_NAMES): Likewise.
10622 (REG_CLASS_CONTENTS): Likewise.
10623 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10624 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10625 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10626 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10627 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10628 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10629 duplicate register classes.
10630 (frv_class_likely_spilled_p): Likewise.
10631 (frv_register_move_cost): Likewise.
10632
10633 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10634 end of the regno_reg_class array.
10635
10636 2011-04-27 Jakub Jelinek <jakub@redhat.com>
10637
10638 PR c/48742
10639 * c-typeck.c (build_binary_op): Don't wrap arguments if
10640 int_operands is true.
10641
10642 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10643
10644 PR target/48767
10645 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10646 targetm.calls.must_pass_in_stack for void type.
10647
10648 2011-04-26 Jan Hubicka <jh@suse.cz>
10649
10650 * cgraphbuild.c (build_cgraph_edges): Update call
10651 of cgraph_create_edge and cgraph_create_indirect_edge.
10652 * cgraph.c (cgraph_create_edge_including_clones,
10653 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10654 cgraph_update_edges_for_call_stmt_node): Do not take nest
10655 argument; do not initialize call_stmt_size/time.
10656 (dump_cgraph_node): Do not dump nest.
10657 (cgraph_clone_edge): Do not take loop_nest argument;
10658 do not propagate it; do not clone call_stmt_size/time.
10659 (cgraph_clone_node): Likewise.
10660 (cgraph_create_virtual_clone): Update.
10661 * cgraph.h (struct cgraph_edge): Remove
10662 call_stmt_size/call_stmt_time/loop_nest.
10663 (cgraph_create_edge, cgraph_create_indirect_edge,
10664 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10665 prototype.
10666 * tree-emutls.c (gen_emutls_addr): Update.
10667 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10668 loop_nest; handle indirect calls, too.
10669 (clone_inlined_nodes): Do not care about updating inline summaries.
10670 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10671 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10672 stream call_stmt_size/call_stmt_time/loop_nest.
10673 * ipa-inline.c (edge_badness): Update.
10674 (ipa_inline): dump summaries after inlining.
10675 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10676 New.
10677 (inline_edge_summary): New function.
10678 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10679 (inline_edge_removal_hook): Handle edge summaries.
10680 (inline_edge_duplication_hook): New hook.
10681 (inline_summary_alloc): Alloc hooks.
10682 (initialize_growth_caches): Do not register removal hooks.
10683 (free_growth_caches); Do not free removal hook.
10684 (dump_inline_edge_summary): New function.
10685 (dump_inline_summary): Use it.
10686 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10687 (inline_update_callee_summaries): New function.
10688 (inline_merge_summary): Use it.
10689 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10690 (read_inline_edge_summary): New function.
10691 (inline_read_section): Use it.
10692 (write_inline_edge_summary): New function.
10693 (inline_write_summary): Use it.
10694 (inline_free_summary): Free edge new holders.
10695 * tree-inline.c (copy_bb): Update.
10696
10697 2011-04-26 Jason Merrill <jason@redhat.com>
10698
10699 * tree-eh.c (lower_try_finally_switch): Create the label along with
10700 the CASE_LABEL_EXPR.
10701
10702 2011-04-26 David S. Miller <davem@davemloft.net>
10703 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10704
10705 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10706 * configure: Regenerate.
10707
10708 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10709
10710 PR target/48258
10711 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10712 reduction.
10713 (VEC_reduc): New code iterator and splitters for vector reduction.
10714 (VEC_reduc_name): Ditto.
10715 (VEC_reduc_rtx): Ditto.
10716 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10717 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10718
10719 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10720 support for extracting SF on VSX.
10721
10722 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10723 generating xscvspdp.
10724 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10725 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10726 double add, minimum, maximum vector reduction.
10727 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10728 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10729 optimize double vector reduction.
10730 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10731
10732 2011-04-26 Joseph Myers <joseph@codesourcery.com>
10733
10734 * config/fr30/fr30.h (inhibit_libc): Don't define.
10735 * config/m32r/m32r-protos.h: Correct comment.
10736 * config/v850/v850.h (GHS_default_section_names,
10737 GHS_current_section_names): Use tree, not union tree_node *.
10738
10739 2011-04-26 Xinliang David Li <davidxl@google.com>
10740
10741 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10742 * c-family/c-opts.c (c_common_handle_option): Set
10743 warn_maybe_uninitialized.
10744 * opts.c (common_handle_option): Ditto.
10745 * common.opt: New option.
10746 * tree-ssa.c (warn_uninit): Add one more parameter.
10747 (warn_uninitialized_var): Pass warning code.
10748 * tree-flow.h: Interface change.
10749
10750 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10751
10752 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10753 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10754 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10755
10756 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10757
10758 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10759 * config/mips/mips.opt (mmips-tfile): Remove.
10760
10761 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10762 mips-tdump reference to ...
10763 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
10764 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10765 reference by Tru64 UNIX.
10766
10767 2011-04-26 Jakub Jelinek <jakub@redhat.com>
10768
10769 PR debug/48768
10770 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10771 is error_mark_node, set value to NULL.
10772
10773 PR tree-optimization/48734
10774 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10775 if return value from maybe_fold_*_comparsions isn't something
10776 the code is prepared to handle.
10777
10778 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
10779
10780 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10781 mode check.
10782 (ext_QIreg_nomode_operands): Remove.
10783 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10784 (*andsi_1): Ditto.
10785 (*andhi_1): Ditto.
10786
10787 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
10788
10789 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10790
10791 2011-04-26 Richard Guenther <rguenther@suse.de>
10792
10793 * c-typeck.c (build_unary_op): Do not expand array-refs via
10794 pointer arithmetic. Only adjust qualifiers for function types.
10795
10796 2011-04-26 Richard Guenther <rguenther@suse.de>
10797
10798 PR middle-end/48694
10799 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10800 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10801 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10802 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10803
10804 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10805
10806 * doc/extend.texi: Document __underlying_type.
10807
10808 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10809
10810 * config/rs6000/titan.md (automata_option "progress"): Remove.
10811
10812 2011-04-25 Jeff Law <law@redhat.com>
10813
10814 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10815
10816 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10817
10818 * system.h (ENUM_BITFIELD): Remove.
10819
10820 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
10821 Eric Botcazou <ebotcazou@adacore.com>
10822
10823 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10824 for STORE_FLAG_VALUE==-1 case.
10825
10826 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10827
10828 PR target/43804
10829 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10830 LEGITIMATE_PIC_OPERAND_P.
10831
10832 2011-04-24 Jan Hubicka <jh@suse.cz>
10833
10834 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10835 WPA hack.
10836 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10837 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10838 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
10839 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10840 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10841 Sanity check predicate length.
10842 (remap_predicate): Likewise; sanity check jump functions.
10843 (inline_read_section, inline_write_summary): Sanity check
10844 predicate length.
10845
10846 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10847
10848 PR other/48748
10849 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10850 __is_literal_type, and __is_trivial; update throughout about
10851 possibly cv-qualified void types.
10852
10853 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10854
10855 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10856 testsuite and make it version agnostic.
10857
10858 2011-04-22 Jan Hubicka <jh@suse.cz>
10859
10860 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10861
10862 2011-04-23 Jakub Jelinek <jakub@redhat.com>
10863
10864 PR c/48685
10865 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10866 to VOID_TYPE even around MODIFY_EXPR.
10867
10868 2011-04-22 Mike Stump <mikestump@comcast.net>
10869
10870 * gensupport.c (read_md_rtx): Fix typo in comment.
10871 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10872 comment.
10873
10874 2011-04-22 Jan Hubicka <jh@suse.cz>
10875
10876 * gengtype.c (open_base_files): Add ipa-inline.h include.
10877 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10878 ipa-prop.c; update all uses.
10879 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
10880 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10881 merge summary of inlined function into former caller.
10882 * ipa-inline.c (max_benefit): Remove.
10883 (edge_badness): Compensate for removal of benefits.
10884 (update_caller_keys): Use
10885 reset_node_growth_cache/reset_edge_growth_cache.
10886 (update_callee_keys): Likewise.
10887 (update_all_callee_keys): Likewise.
10888 (inline_small_functions): Do not collect max_benefit; do not reset
10889 estimated_growth; call free_growth_caches and initialize_growth_caches.
10890 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10891 struct size_time_entry): New structures.
10892 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
10893 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10894 and estimated_growth.
10895 (edge_growth_cache_entry): New structure.
10896 (node_growth_cache, edge_growth_cache): New global vars.
10897 (estimate_growth): Turn into inline.
10898 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10899 initialize_growth_caches, free_growth_caches): Declare.
10900 (estimate_edge_growth): Rewrite.
10901 (estimate_edge_time): Implement as inline cache lookup.
10902 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10903 functions.
10904 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10905 (NUM_CONDITIONS): New constant.
10906 (predicate_conditions): New enum.
10907 (IS_NOT_CONSTANT): New constant.
10908 (edge_removal_hook_holder): New var.
10909 (node_growth_cache, edge_growth_cache): New global vars.
10910 (true_predicate, single_cond_predicate, false_predicate,
10911 not_inlined_predicate, add_condition, add_clause, and_predicates,
10912 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10913 dump_clause, dump_predicate, account_size_time,
10914 evaulate_conditions_for_edge): New functions.
10915 (inline_summary_alloc): Move to heap.
10916 (inline_node_removal_hook): Clear condition and entry vectors.
10917 (inline_edge_removal_hook): New function.
10918 (initialize_growth_caches, free_growth_caches): New function.
10919 (dump_inline_summary): Update.
10920 (edge_execution_predicate): New function.
10921 (will_be_nonconstant_predicate): New function.
10922 (estimate_function_body_sizes): Compute BB and constantness predicates.
10923 (compute_inline_parameters): Do not clear estimated_growth.
10924 (estimate_edge_size_and_time): New function.
10925 (estimate_calls_size_and_time): New function.
10926 (estimate_callee_size_and_time): New function.
10927 (remap_predicate): New function.
10928 (inline_merge_summary): New function.
10929 (do_estimate_edge_time): New function based on...
10930 (estimate_edge_time): ... this one.
10931 (do_estimate_edge_growth): New function.
10932 (do_estimate_growth): New function based on....
10933 (estimate_growth): ... this one.
10934 (inline_analyze_function): Analyze after deciding on jump functions.
10935 (inline_read_section): New function.
10936 (inline_read_summary): Use it.
10937 (inline_write_summary): Write all the new data.
10938 * ipa-prop.c (ipa_get_param_decl_index): Export.
10939 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
10940 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10941 Declare.
10942 (ipa_get_lattice): Move here from ipa-cp.c
10943 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10944 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10945 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10946 cgraph_edge_inlinable_p): Remove.
10947 * cgraphunit.c: Include ipainline.h
10948 (cgraph_process_new_functions): Update call of
10949 compute_inline_parameters.
10950
10951 2011-04-22 Richard Guenther <rguenther@suse.de>
10952
10953 * tree.c (build_int_cst): Properly create canonicalized integer
10954 constants.
10955 (build_int_cst_type): Remove scary comments.
10956
10957 2011-04-22 Xinliang David Li <davidxl@google.com>
10958
10959 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10960 by default when -Wno-error is not specified.
10961 * opts-global.c (decode_options): Remove call to
10962 control_warning_options.
10963
10964 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10965
10966 PR tree-optimization/48717
10967 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10968 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10969
10970 2011-04-22 Joseph Myers <joseph@codesourcery.com>
10971
10972 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10973 definition where used.
10974
10975 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10976
10977 PR c/48716
10978 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10979 TREE_STATIC variables declared inside of some OpenMP construct.
10980
10981 2011-04-22 Martin Jambor <mjambor@suse.cz>
10982
10983 PR middle-end/48585
10984 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
10985
10986 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
10987
10988 PR c/36750
10989 * c-typeck.c (pop_init_level): Do not warn about initializing
10990 with ` = {0}'.
10991
10992 2011-04-22 Alan Modra <amodra@gmail.com>
10993
10994 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10995 when returning call_cookie.
10996 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10997 pointers, to functions with no more vector args than the current
10998 function, and some non-local calls for ABI_V4.
10999 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
11000 sibcall_nonlocal_aix64): Combine to ..
11001 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
11002 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
11003 (sibcall_value_nonlocal_aix<mode>): ..likewise.
11004 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
11005 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
11006 operand.
11007 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
11008 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
11009 sibcall_value_symbolic_64): Delete.
11010
11011 2011-04-21 Xinliang David Li <davidxl@google.com>
11012
11013 * cgraph.h: Remove pid.
11014 * cgraph.c: Remove pid.
11015 * value-prof.c (init_node_map): New function.
11016 (del_node_map): New function.
11017 (find_func_by_funcdef_no): New function.
11018 (gimple_ic_transform): Call new function.
11019 * cgraphunit.c (cgraph_finalize_function): Remove pid.
11020 * function.c (get_last_funcdef_no): New function.
11021 * function.h (get_last_funcdef_no): New function.
11022 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
11023 to libgcov function.
11024 (tree-profiling): Call node map init and delete function.
11025
11026 2011-04-21 Ian Lance Taylor <iant@google.com>
11027
11028 * godump.c (go_format_type): Use exported Go name for anonymous
11029 field name.
11030
11031 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11032
11033 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
11034 Call builtin_function_type_list instead of builtin_function_type.
11035 (UNARY, BINARY, TRINARY, QUAD): Likewise.
11036
11037 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11038
11039 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
11040 build_function_type_list instead of build_function_type.
11041 Delete variable `endlink'.
11042
11043 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11044
11045 * config/s390/s390.c (s390_init_builtins): Call
11046 build_function_type_list instead of build_function_type.
11047
11048 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11049
11050 * config/ia64/ia64.c (ia64_init_builtins): Call
11051 build_function_type_list instead of builtin_function_type.
11052
11053 2011-04-21 Easwaran Raman <eraman@google.com>
11054
11055 * cfgexpand.c (stack_var): Remove OFFSET...
11056 (add_stack_var): ...and its reference here...
11057 (expand_stack_vars): ...and here.
11058 (stack_var_cmp): Sort by descending order of size.
11059 (partition_stack_vars): Change heuristic.
11060 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
11061 (dump_stack_var_partition): Add newline after each partition.
11062
11063 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
11064 Jeff Law <law@redhat.com>
11065
11066 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
11067 * gengtype.c (matching_file_name_substitute): Likewise.
11068
11069 2011-04-21 Richard Guenther <rguenther@suse.de>
11070
11071 PR lto/48703
11072 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
11073
11074 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
11075
11076 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
11077
11078 2011-04-21 Richard Guenther <rguenther@suse.de>
11079
11080 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
11081 file name.
11082
11083 2011-04-21 Richard Guenther <rguenther@suse.de>
11084
11085 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11086 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
11087 Use DECL_P, not SSA_VAR_P.
11088 (ptr_derefs_may_alias_p): Likewise.
11089 (ptr_deref_may_alias_ref_p_1): Likewise.
11090 (decl_refs_may_alias_p): Likewise.
11091 (refs_may_alias_p_1): Likewise.
11092 (ref_maybe_used_by_call_p_1): Likewise.
11093 (call_may_clobber_ref_p_1): Likewise.
11094 (indirect_ref_may_alias_decl_p): Assume indirect refrences
11095 are either MEM_REF or TARGET_MEM_REF.
11096 (indirect_refs_may_alias_p): Likewise.
11097 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
11098 for MEM_EXPR of indirect calls.
11099
11100 2011-04-21 Tristan Gingold <gingold@adacore.com>
11101
11102 * vmsdbgout.c (write_srccorr): Compute file length from the string.
11103 (dst_file_info_struct): Remove flen field.
11104 (lookup_filename): Remove code that set flen field.
11105
11106 2011-04-21 Tristan Gingold <gingold@adacore.com>
11107
11108 * config/ia64/ia64.c (ia64_start_function): Add a guard.
11109
11110 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
11111
11112 PR target/48708
11113 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
11114 vec_extract and vec_concat for non-SSE4_1 targets.
11115
11116 2011-04-21 Richard Guenther <rguenther@suse.de>
11117
11118 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
11119 return statements.
11120
11121 2011-04-21 Joseph Myers <joseph@codesourcery.com>
11122
11123 * config/i386/cygming.h (union tree_node, TREE): Don't define or
11124 undefine.
11125 (FILE): Don't undefine.
11126
11127 2011-04-21 Joseph Myers <joseph@codesourcery.com>
11128
11129 * config/alpha/alpha.c (struct machine_function): Use rtx, not
11130 struct rtx_def *.
11131 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
11132 struct rtx_def *.
11133 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
11134 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
11135 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
11136 rtx_def *.
11137 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
11138 definitions where used.
11139 * config/microblaze/microblaze.h (struct microblaze_args): Use
11140 rtx, not struct rtx_def *.
11141 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
11142 rtx_def *.
11143 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
11144 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
11145 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
11146 not struct rtx_def *.
11147 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
11148 struct rtx_def *.
11149 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
11150 rtx_def *.
11151 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
11152
11153 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11154
11155 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
11156 operand_equal_p to compare DR_BASE_ADDRESSes.
11157 (vect_check_interleaving): Likewise.
11158
11159 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11160
11161 PR target/46329
11162 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
11163 for all Neon struct constants.
11164
11165 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11166
11167 * target.def (legitimate_constant_p): New hook.
11168 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
11169 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
11170 * doc/tm.texi: Regenerate.
11171 * hooks.h (hook_bool_mode_rtx_true): Declare.
11172 * hooks.c (hook_bool_mode_rtx_true): Define.
11173 * system.h (LEGITIMATE_CONSTANT_P): Poison.
11174 * calls.c (precompute_register_parameters): Replace uses of
11175 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
11176 (emit_library_call_value_1): Likewise.
11177 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
11178 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
11179 * ira-costs.c (scan_one_insn): Likewise.
11180 * recog.c (general_operand, immediate_operand): Likewise.
11181 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
11182 * reload1.c (init_eliminable_invariants): Likewise.
11183
11184 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
11185 mode argument.
11186 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
11187 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
11188 argument.
11189 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11190 * config/alpha/predicates.md (input_operand): Update call to
11191 alpha_legitimate_constant_p.
11192
11193 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
11194 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
11195 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
11196 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11197 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
11198 (arm_legitimate_constant_p): New functions.
11199 (arm_cannot_force_const_mem): Make static.
11200
11201 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
11202
11203 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
11204 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
11205 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
11206 instead of bfin_legitimate_constant_p.
11207 (bfin_legitimate_constant_p): Make static. Add a mode argument.
11208 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11209
11210 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11211
11212 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11213
11214 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11215 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11216 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11217 (frv_legitimate_constant_p): Make static. Add a mode argument.
11218
11219 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11220 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11221 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11222
11223 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11224 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11225 * config/i386/i386.c (legitimate_constant_p): Rename to...
11226 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
11227 argument.
11228 (ix86_cannot_force_const_mem): Update accordingly.
11229 (ix86_legitimate_address_p): Likewise.
11230 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11231 * config/i386/i386.md: Update commentary.
11232
11233 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11234 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11235 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11236 (ia64_legitimate_constant_p): Make static. Add a mode argument.
11237
11238 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11239
11240 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11241 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11242 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11243 (lm32_legitimate_constant_p): Make static. Add a mode argument.
11244
11245 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11246 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11247 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11248
11249 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11250 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11251 (m32r_legitimate_constant_p): New function.
11252
11253 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11254 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11255 LEGITIMATE_CONSTANT_P.
11256 (LEGITIMATE_CONSTANT_P): Delete.
11257 * config/m68k/m68k.c (m68k_expand_prologue): Call
11258 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11259 (m68k_legitimate_constant_p): New function.
11260 * config/m68k/m68k.md: Update comments.
11261
11262 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11263 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11264 (mcore_legitimate_constant_p): New function.
11265
11266 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11267 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11268 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11269 Add a mode argument.
11270 (mep_legitimate_address): Update accordingly.
11271 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11272
11273 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11274 Delete.
11275 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11276 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11277 static. Check OP's mode for VOIDmode.
11278 (microblaze_legitimate_constant_p): New function.
11279 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11280
11281 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11282 * config/mips/mips.c (mips_legitimate_constant_p): New function.
11283 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11284 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11285 * config/mips/predicates.md: Update comments.
11286
11287 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11288 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11289 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11290 (mmix_legitimate_constant_p): Make static, return a bool, and take
11291 a mode argument.
11292 (mmix_print_operand_address): Update accordingly.
11293
11294 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11295 Delete.
11296 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11297 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11298 static. Add a mode argument.
11299 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11300
11301 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11302
11303 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11304 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11305 (pa_legitimate_constant_p): New function.
11306
11307 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11308
11309 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11310 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11311 (pdp11_legitimate_constant_p): New function.
11312
11313 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11314 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11315 (rs6000_legitimate_constant_p): New function.
11316
11317 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11318 (rx_legitimate_constant_p): ...this.
11319 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11320 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11321 (rx_legitimate_constant_p): ...this.
11322 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11323 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11324
11325 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11326 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11327 * config/s390/s390.c (legitimate_constant_p): Rename to...
11328 (s390_legitimate_constant_p): ...this. Make static, return a bool,
11329 and add a mode argument.
11330 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11331
11332 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11333
11334 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11335 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11336 (sh_legitimate_constant_p): New function.
11337
11338 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11339 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11340 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11341 (legitimate_constant_p): Rename to...
11342 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11343 argument.
11344 (constant_address_p): Update accordingly.
11345
11346 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11347 argument and return a bool.
11348 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11349 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11350 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11351 (spu_rtx_costs): Update accordingly.
11352 * config/spu/predicates.md (vec_imm_operand): Likewise.
11353
11354 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11355
11356 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11357 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11358 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11359
11360 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11361 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11362 * config/vax/vax.c (legitimate_constant_p): Likewise.
11363
11364 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11365 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11366 (xtensa_legitimate_constant_p): New function.
11367
11368 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11369
11370 * target.def (cannot_force_const_mem): Add a mode argument.
11371 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11372 * doc/tm.texi: Regenerate.
11373 * hooks.h (hook_bool_mode_rtx_false): Declare.
11374 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11375 (hook_bool_mode_const_rtx_true): Likewise.
11376 (hook_bool_mode_rtx_false): New function.
11377 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11378 to be non-VOID. Update call to cannot_force_const_mem.
11379 (find_reloads): Update accordingly.
11380 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11381 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11382 argument.
11383 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11384 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11385 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11386 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11387 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11388 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11389 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11390 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11391 (m68k_cannot_force_const_mem): ...this new function.
11392 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11393 argument.
11394 (mips_const_insns, mips_legitimize_const_move): Update calls.
11395 (mips_secondary_reload_class): Likewise.
11396 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11397 (pa_cannot_force_const_mem): ...this new function.
11398 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11399 (rs6000_cannot_force_const_mem): ...this new function.
11400 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11401 argument.
11402 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11403 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11404 to...
11405 (xtensa_cannot_force_const_mem): ...this new function.
11406
11407 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11408
11409 * config/mips/mips.c (mips16_build_function_stub): Call
11410 build_function_type_list instead of build_function_type.
11411 (mips16_build_call_stub): Likewise.
11412
11413 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11414
11415 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11416 instead of build_function_type.
11417
11418 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11419
11420 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11421 instead of build_function_type.
11422
11423 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
11424
11425 PR target/48678
11426 * config/i386/i386.md (insv): Change operand 0 constraint to
11427 "register_operand". Change operand 1 and 2 constraint to
11428 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11429 * config/i386/sse.md (sse4_1_pinsrb): Export.
11430 (sse2_pinsrw): Ditto.
11431 (sse4_1_pinsrd): Ditto.
11432 (sse4_1_pinsrq): Ditto.
11433 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11434 * config/i386/i386.c (ix86_expand_pinsr): New.
11435
11436 2011-04-20 Easwaran Raman <eraman@google.com>
11437
11438 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11439 containing union type only with -fstrict-aliasing.
11440
11441 2011-04-20 Jim Meyering <meyering@redhat.com>
11442
11443 Remove useless if-before-free tests.
11444 * calls.c (expand_call, save_area): Likewise.
11445 * cfgcleanup.c (try_forward_edges): Likewise.
11446 * collect2.c (collect_execute): Likewise.
11447 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11448 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11449 * coverage.c (coverage_checksum_string): Likewise.
11450 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11451 * cselib.c (cselib_init): Likewise.
11452 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11453 (df_set_clean_cfg): Likewise.
11454 * function.c (free_after_compilation): Likewise.
11455 * gcc.c (do_spec_1, main): Likewise.
11456 * gcov.c (create_file_names): Likewise.
11457 * gensupport.c (identify_predicable_attribute): Likewise.
11458 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11459 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11460 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11461 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11462 * ipa-pure-const.c (local_pure_const): Likewise.
11463 * ipa-reference.c (propagate): Likewise.
11464 * ira-costs.c (free_ira_costs): Likewise.
11465 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11466 * matrix-reorg.c (mat_free): Likewise.
11467 * prefix.c (get_key_value): Likewise.
11468 * profile.c (compute_value_histograms): Likewise.
11469 * reload1.c (free_reg_equiv): Likewise.
11470 * sched-deps.c (free_deps): Likewise.
11471 * sel-sched-ir.c (fence_clear): Likewise.
11472 * sese.c (set_rename, if_region_set_false_region): Likewise.
11473 * tree-data-ref.c (free_rdg): Likewise.
11474 * tree-eh.c (lower_try_finally): Likewise.
11475 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11476 * tree-ssa-live.c (delete_var_map): Likewise.
11477 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11478 * tree-ssa-pre.c (phi_trans_add): Likewise.
11479
11480 2011-04-20 Jakub Jelinek <jakub@redhat.com>
11481
11482 PR tree-optimization/48611
11483 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11484 beyond ERT_MUST_NOT_THROW region.
11485
11486 2011-04-20 Catherine Moore <clm@codesourcery.com>
11487
11488 * config/mips/mips.opt (mfix-24k): New.
11489 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11490 * config/mips/mips.md (length): Increase by 4 for stores if
11491 fixing 24K errata.
11492 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11493 all noreorder if fixing 24K errata.
11494 * doc/invoke.texi: Document mfix-24k.
11495
11496 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11497
11498 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11499 quad-word modes, reduce to 9-bit index range when above 1016 limit.
11500
11501 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11502
11503 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11504 (const_ok_for_op): ... to here.
11505
11506 2011-04-20 Kai Tietz <ktietz@redhat.com>
11507
11508 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11509 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11510
11511 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11512
11513 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11514
11515 2011-04-20 Richard Guenther <rguenther@suse.de>
11516
11517 PR tree-optimization/47892
11518 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11519 are if-convertible.
11520
11521 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11522
11523 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11524
11525 2011-04-20 Tristan Gingold <gingold@adacore.com>
11526
11527 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11528
11529 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
11530
11531 PR target/18145
11532
11533 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11534 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11535 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11536 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11537 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11538
11539 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11540 New prototype.
11541
11542 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11543 (avr_asm_named_section, avr_asm_output_aligned_common,
11544 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11545 New functions to update...
11546 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11547 (avr_asm_init_sections): Overwrite section callbacks for
11548 data_section, bss_section.
11549 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11550 from here to...
11551 (avr_file_end): ...here.
11552
11553 2011-04-20 Richard Guenther <rguenther@suse.de>
11554
11555 PR middle-end/48695
11556 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11557 objects and types here. Adjust for their offset before comparing.
11558
11559 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11560
11561 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11562 statement per copy.
11563
11564 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11565
11566 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11567 (GIMPLE_H): Include $(INTERNAL_FN_H).
11568 (OBJS-common): Add internal-fn.o.
11569 (internal-fn.o): New rule.
11570 * internal-fn.def: New file.
11571 * internal-fn.h: Likewise.
11572 * internal-fn.c: Likewise.
11573 * gimple.h: Include internal-fn.h.
11574 (GF_CALL_INTERNAL): New gf_mask.
11575 (gimple_statement_call): Put fntype into a union with a new
11576 internal_fn field.
11577 (gimple_build_call_internal): Declare.
11578 (gimple_build_call_internal_vec): Likewise.
11579 (gimple_call_same_target_p): Likewise.
11580 (gimple_call_internal_p): New function.
11581 (gimple_call_internal_fn): Likewise.
11582 (gimple_call_fntype): Return null for internal calls.
11583 (gimple_call_set_fntype): Assert that the function is not internal.
11584 (gimple_call_set_fn): Likewise.
11585 (gimple_call_set_fndecl): Likewise.
11586 (gimple_call_set_internal_fn): New function.
11587 (gimple_call_addr_fndecl): Handle null functions.
11588 (gimple_call_return_type): Likewise null types.
11589 * gimple.c (gimple_build_call_internal_1): New function.
11590 (gimple_build_call_internal): Likewise.
11591 (gimple_build_call_internal_vec): Likewise.
11592 (gimple_call_same_target_p): Likewise.
11593 (gimple_call_flags): Handle calls to internal functions.
11594 (gimple_call_fnspec): New function.
11595 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11596 (gimple_has_side_effects): Handle null functions.
11597 (gimple_rhs_has_side_effects): Likewise.
11598 (gimple_call_copy_skip_args): Handle calls to internal functions.
11599 * cfgexpand.c (expand_call_stmt): Likewise.
11600 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11601 * gimple-fold.c (gimple_fold_call): Handle null functions.
11602 (gimple_fold_stmt_to_constant_1): Don't fold
11603 calls to internal functions.
11604 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11605 functions.
11606 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11607 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11608 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11609 (do_warn_unused_result): Likewise.
11610 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11611 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11612 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11613 the target of a call.
11614 (initialize_hash_element): Update accordingly.
11615 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11616 (iterative_hash_hashable_expr): Handle calls to internal functions.
11617 (print_expr_hash_elt): Likewise.
11618 * tree-ssa-pre.c (can_value_number_call): Likewise.
11619 (eliminate): Handle null functions.
11620 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11621 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11622 (find_func_aliases): Likewise.
11623 * value-prof.c (gimple_ic_transform): Likewise.
11624 (gimple_indirect_call_to_profile): Likewise.
11625 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11626 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11627
11628 2011-04-19 Jan Hubicka <jh@suse.cz>
11629
11630 * ipa-inline-transform.c (save_inline_function_body): Add comments.
11631 * ipa-inline.c (inline_small_functions): Compute summaries first,
11632 populate heap later.
11633
11634 2011-04-19 Jan Hubicka <jh@suse.cz>
11635
11636 * cgraph.h (save_inline_function_body): Remove.
11637 * ipa-inline-transform.c: New file, broke out of...
11638 * ipa-inline.c: ... this one; Update toplevel comment.
11639 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11640 make global.
11641 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11642 (cgraph_mark_inline_edge): Rename to inline_call; move to
11643 ipa-inline-transform.c.
11644 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11645 move to ipa-inline-transform.c
11646 (recursive_inlining, inline_small_functions, flatten_function,
11647 ipa_inline, inline_always_inline_functions,
11648 early_inline_small_functions): Update.
11649 (inline_transform): Move to ipa-inline-transform.c.
11650 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11651 Declare.
11652 * Makefile.in (ipa-inline-transform.o): New file.
11653 * cgraphunit.c (save_inline_function_body): Move to
11654 ipa-inline-transform.c
11655
11656 2011-04-19 DJ Delorie <dj@redhat.com>
11657
11658 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11659 registers if we already know there aren't any.
11660 (m32c_emit_epilogue): Don't emit a barrier here.
11661 (m32c_emit_eh_epilogue): Likewise.
11662 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11663 operands at expand time.
11664 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11665 int" wchar type.
11666 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11667 duplicates. Provide aliases instead.
11668 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11669 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11670 the compiler.
11671
11672 2011-04-19 Anatoly Sokolov <aesok@post.ru>
11673
11674 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11675 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11676 (general_or_i64_p, sparc_register_move_cost): New function.
11677
11678 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11679
11680 * doc/install.texi (Configuration, --enable-threads): Remove mach.
11681 Add lynx, mipssde. Sort table.
11682
11683 2011-04-19 Xinliang David Li <davidxl@google.com>
11684
11685 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11686 not negative.
11687
11688 2011-04-19 Jakub Jelinek <jakub@redhat.com>
11689
11690 PR target/48678
11691 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11692 is a SUBREG with non-MODE_INT mode inside of it.
11693
11694 2011-04-19 Martin Jambor <mjambor@suse.cz>
11695
11696 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11697 also according to actual contants.
11698 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11699 (gimple_fold_call): Use it.
11700 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11701
11702 2011-04-19 Martin Jambor <mjambor@suse.cz>
11703
11704 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11705 non-pointer assignments.
11706
11707 2011-04-19 Martin Jambor <mjambor@suse.cz>
11708
11709 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11710 account anc_offset and otr_type from the indirect edge info.
11711 * ipa-prop.c (get_ancestor_addr_info): New function.
11712 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11713 get_ancestor_addr_info, call it.
11714 (ipa_note_param_call): Do not initialize information about polymorphic
11715 calls, return the indirect call graph edge. Remove the last
11716 parameter, adjust all callers.
11717 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11718 parameters. Initialize polymorphic information in the indirect edge.
11719
11720 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11721
11722 PR lto/48148
11723 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11724 the types if they have different enumeration identifiers.
11725
11726 2011-04-19 Jan Hubicka <jh@suse.cz>
11727
11728 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11729 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11730 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11731 (optimize_function_for_size_p) ... here.
11732
11733 2011-04-19 Richard Guenther <rguenther@suse.de>
11734
11735 PR lto/48207
11736 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11737 langhook.
11738
11739 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11740
11741 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11742 if DECL_NO_INLINE_WARNING_P is set on the function.
11743
11744 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11745
11746 PR fortran/47976
11747 * reload1.c (inc_for_reload): Return void. All callers changed.
11748 (emit_input_reload_insns): Don't try to delete previous output
11749 reloads to a register, or record spill_reg_store for autoincs.
11750
11751 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11752
11753 * gengtype.h: Updated copyright year.
11754 (struct input_file_st): Add inpisplugin field.
11755 (type_fileloc): New function.
11756 * gengtype.c
11757 (write_typed_struct_alloc_def): Add gcc_assert.
11758 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11759 (write_typed_alloc_defns): Don't output for plugin files.
11760 (input_file_by_name): Clear inpisplugin field.
11761 (main): Set inpisplugin field for plugin files.
11762
11763 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11764
11765 * gengtype-state.c (string_eq): New.
11766 (read_state): Use string_eq instead of strcmp when creating the
11767 state_ident_tab.
11768
11769 2011-04-19 Wei Guozhi <carrot@google.com>
11770
11771 PR target/47855
11772 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11773 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11774 linkage.
11775 * config/arm/constraints.md (Uu): New constraint.
11776 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11777
11778 2011-04-19 Tristan Gingold <gingold@adacore.com>
11779
11780 * config.gcc (-*-*-*vms): Added.
11781 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11782 definitions moved.
11783 * config/vms/vms-ld.c: New file.
11784 * config/vms/vms-ar.c: New file.
11785 * config/vms/t-vmsnative: New file.
11786
11787 2011-04-18 Xinliang David Li <davidxl@google.com>
11788
11789 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11790
11791 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11792
11793 PR middle-end/48661
11794 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11795 if TREE_TYPE (v) is non-NULL.
11796
11797 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11798 gimple_get_virt_mehtod_for_binfo.
11799 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11800 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11801 callers.
11802 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11803
11804 2011-04-18 Michael Matz <matz@suse.de>
11805 Steve Ellcey <sje@cup.hp.com>
11806
11807 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11808 use its mode as source mode if it isn't VOIDmode.
11809
11810 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11811
11812 * doc/passes.texi: Fill crossref nodes.
11813
11814 2011-04-18 Jim Meyering <meyering@redhat.com>
11815
11816 Fix doubled-word typos in comments and strings
11817 * config/alpha/vms-unwind.h: s/for for/for/
11818 * config/arm/unwind-arm.h: Likewise.
11819 * config/microblaze/microblaze.c: Likewise.
11820 * config/sh/constraints.md: s/in in/in/
11821 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11822
11823 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
11824
11825 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11826 (AVX_FLOAT_MODE_P): Ditto.
11827 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11828 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11829 (AVX_VEC_FLOAT_MODE_P): Ditto.
11830 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11831 (UNSPEC_MASKSTORE): Ditto.
11832 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11833 Merge from <sse>_movmsk<ssemodesuffix> and
11834 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11835 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11836 iterator.
11837 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11838 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11839 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11840
11841 2011-04-18 Jan Hubicka <jh@suse.cz>
11842
11843 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11844
11845 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11846 (want_inline_function_called_once_p): Break out the logic from
11847 ipa_inline.
11848 (edge_badness): Ensure that profile is not misupdated.
11849 (lookup_recursive_calls): Prioritize by call frequencies.
11850 (inline_small_functions): Move program size estimates here;
11851 actually process whole queue even when unit growth has been
11852 met. (to properly compute inline_failed reasons and for the
11853 case unit size decrease.) Revisit comments on recursive inlining.
11854 (ipa_inline): Remove unit summary code; first inline hot calls
11855 of functions called once, cold calls next.
11856 (order, nnodes): Remove unused variables.
11857 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11858 (GTFILES): Remove ipa-inline.c
11859 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11860
11861 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11862
11863 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11864
11865 2011-04-18 Jie Zhang <jie@codesourcery.com>
11866 Richard Earnshaw <rearnsha@arm.com>
11867
11868 * arm.c (neon_builtin_type_bits): Remove.
11869 (typedef enum neon_builtin_mode): New.
11870 (T_MAX): Don't define.
11871 (typedef enum neon_builtin_datum): Remove bits, codes[],
11872 num_vars and base_fcode. Add mode, code and fcode.
11873 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11874 VAR10): Change accordingly.
11875 (neon_builtin_data[]): Change accordingly
11876 (arm_init_neon_builtins): Change accordingly.
11877 (neon_builtin_compare): Remove.
11878 (locate_neon_builtin_icode): Remove.
11879 (arm_expand_neon_builtin): Change accordingly.
11880
11881 * arm.h (enum arm_builtins): Move to ...
11882 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11883
11884 * arm.c (arm_builtin_decl): Declare.
11885 (TARGET_BUILTIN_DECL): Define.
11886 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11887 (arm_builtin_decls[]): New.
11888 (arm_init_neon_builtins): Store builtin declarations in
11889 arm_builtin_decls[].
11890 (arm_init_tls_builtins): Likewise.
11891 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11892 (arm_builtin_decl): New.
11893
11894 2011-04-18 Richard Guenther <rguenther@suse.de>
11895
11896 * tree.c (upper_bound_in_type): Build properly canonicalized
11897 INTEGER_CSTs.
11898 (lower_bound_in_type): Likewise.
11899
11900 2011-04-18 Richard Guenther <rguenther@suse.de>
11901
11902 * gimple.h (gimple_call_addr_fndecl): New function.
11903 (gimple_call_fndecl): Use it.
11904 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11905 for direct calls.
11906 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11907 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11908
11909 2011-04-18 Richard Guenther <rguenther@suse.de>
11910
11911 PR middle-end/48650
11912 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11913
11914 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11915
11916 PR lto/48492
11917 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11918 DECL_IN_CONSTANT_POOL without RTL.
11919
11920 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11921 Ira Rosen <ira.rosen@linaro.org>
11922
11923 PR target/48252
11924 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11925 to match neon_vzip/vuzp/vtrn_internal.
11926 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11927 outputs explicitly dependent on both inputs.
11928 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11929
11930 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11931
11932 PR tree-optimization/48616
11933 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11934 whether the shift is by scalar or vector based on whether all SLP
11935 scalar stmts have the same rhs.
11936
11937 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11938
11939 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11940 memory operands.
11941
11942 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11943
11944 PR target/43700
11945 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11946 registers.
11947
11948 2011-04-17 Jan Hubicka <jh@suse.cz>
11949
11950 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
11951 * cgrpahunit.c (cgraph_finalize_function): Do not set
11952 finalized_by_frontend.
11953 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11954 finalized_by_frontend.
11955
11956 2011-04-17 Jan Hubicka <jh@suse.cz>
11957
11958 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11959 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11960 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
11961 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11962 method.
11963 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11964 gimple-fold.c
11965 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11966
11967 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11968
11969 PR lto/48538
11970 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11971 is non-null before accessing it.
11972 (input_cgraph): Remove trailing spaces.
11973
11974 2011-04-17 Revital Eres <revital.eres@linaro.org>
11975
11976 * params.def (sms-min-sc): New param flag.
11977 * modulo-sched.c (sms_schedule): Use it.
11978 * doc/invoke.texi (sms-min-sc): Document it.
11979
11980 2011-04-17 Jan Hubicka <jh@suse.cz>
11981
11982 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11983 present, also set gimple_call_set_cannot_inline.
11984 * ipa-inline.c: Update toplevel comment.
11985 (MAX_TIME): Remove.
11986 (cgraph_clone_inlined_nodes): Fix linebreaks.
11987 (cgraph_check_inline_limits): Restructure to ...
11988 (caller_growth_limits): ... this one; be more tolerant
11989 on growth in nested inline chains; add explanatory comment;
11990 fix stack accounting thinko introduced by previous patch.
11991 (cgraph_default_inline_p): Remove.
11992 (report_inline_failed_reason): New function.
11993 (can_inline_edge_p): New function.
11994 (can_early_inline_edge_p): New function.
11995 (leaf_node_p): Move upwards in file.
11996 (want_early_inline_function_p): New function.
11997 (want_inline_small_function_p): New function.
11998 (want_inline_self_recursive_call_p): New function.
11999 (cgraph_edge_badness): Rename to ...
12000 (edge_badness) ... this one; fix linebreaks.
12001 (update_edge_key): Update call of edge_baddness; add
12002 detailed dump about queue updates.
12003 (update_caller_keys): Use can_inline_edge_p and
12004 want_inline_small_function_p.
12005 (cgraph_decide_recursive_inlining): Rename to...
12006 (recursive_inlining): Use can_inline_edge_p and
12007 want_inline_self_recursive_call_p; simplify and remove no longer
12008 valid FIXME.
12009 (cgraph_set_inline_failed): Remove.
12010 (add_new_edges_to_heap): Use can_inline_edge_p and
12011 want_inline_small_function_p.
12012 (cgraph_decide_inlining_of_small_functions): Rename to ...
12013 (inline_small_functions): ... this one; cleanup; use
12014 can/want predicates; cleanup debug ouput; work edges till fibheap
12015 is exhausted and do not stop once unit growth is reached; remove
12016 later loop processing remaining edges.
12017 (cgraph_flatten): Rename to ...
12018 (flatten_function): ... this one; use can_inline_edge_p
12019 and can_early_inline_edge_p predicates.
12020 (cgraph_decide_inlining): Rename to ...
12021 (ipa_inline): ... this one; remove unreachable nodes before
12022 inlining functions called once; simplify the pass.
12023 (cgraph_perform_always_inlining): Rename to ...
12024 (inline_always_inline_functions): ... this one; use
12025 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
12026 (cgraph_decide_inlining_incrementally): Rename to ...
12027 (early_inline_small_functions): ... this one; simplify
12028 using new predicates; cleanup; make dumps prettier.
12029 (cgraph_early_inlining): Rename to ...
12030 (early_inliner): newer inline regular functions into always-inlines;
12031 fix updating of call stmt summaries.
12032 (pass_early_inline): Update for new names.
12033 (inline_transform): Fix formating.
12034 (gate_cgraph_decide_inlining): Rename to ...
12035 (pass_ipa_inline): ... this one.
12036 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
12037 * ipa-inline-analysis.c (dump_inline_summary): Update.
12038 (compute_inline_parameters): Do not compute disregard_inline_limits;
12039 look for mismatching arguments.
12040 (estimate_growth): Fix handlig of non-trivial self recursion.
12041 (inline_read_summary): Do not read info->disregard_inline_limits.
12042 (inline_write_summary): Do not write info->disregard_inline_limits.
12043 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
12044 and move all checks into can_inline_edge_p predicate; re-enable code
12045 comparing optimization levels.
12046 (expand_call_inline): Do not test inline_forbidden_into_p.
12047 * Makefile.in (ipa-inline.o): Update arguments.
12048
12049 2011-04-17 Revital Eres <revital.eres@linaro.org>
12050
12051 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
12052
12053 2011-04-17 Revital Eres <revital.eres@linaro.org>
12054
12055 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
12056
12057 2011-04-17 Michael Matz <matz@suse.de>
12058
12059 PR tree-optimization/48622
12060 PR lto/48645
12061 * ipa-inline-analysis.c (inline_read_summary): Read size/time
12062 in same order as they're written.
12063
12064 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12065
12066 * config/pa/predicates.md: Reorganize and simplify predicates.
12067 Eliminate duplicate code checks.
12068 (arith_operand): Rename to arith14_operand
12069 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
12070 * config/pa/pa.md: Use renamed operands.
12071 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
12072 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
12073 arith11_operand, adddi3_operand, indexed_memory_operand,
12074 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
12075 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
12076 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
12077 move_dest_operand, move_src_operand, prefetch_cc_operand,
12078 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
12079 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
12080 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
12081 div_operand, int5_operand, movb_comparison_operator,
12082 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
12083 arith_double_operand, ireg_operand, lhs_lshift_operand,
12084 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
12085 integer_store_memory_operand): Likewise.
12086 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
12087 (integer_store_memory_operand, read_only_operand,
12088 function_label_operand, borx_reg_operand,
12089 non_hard_reg_operand): Likewise.
12090 (eq_neq_comparison_operator): Delete unused operator.
12091 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
12092 function_label_operand.
12093 (emit_move_sequence): Likewise.
12094
12095 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
12096
12097 * config/i386/sse.md (sseunpackmode): New mode attribute.
12098 (ssepackmode): Ditto.
12099 (vec_pack_trunc_<mode>): Macroize expander from
12100 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
12101 (vec_unpacks_lo_<mode>): Macroize expander from
12102 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12103 (vec_unpacks_hi_<mode>): Macroize expander from
12104 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12105 (vec_unpacku_lo_<mode>): Macroize expander from
12106 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12107 (vec_unpacku_hi_<mode>): Macroize expander from
12108 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12109 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
12110 ix86_expand_sse4_unpack.
12111 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
12112
12113 2011-04-16 Jan Hubicka <jh@suse.cz>
12114
12115 * cgraphbuild.c: Include ipa-inline.h.
12116 (reset_inline_failed): Use initialize_inline_failed.
12117 * cgraph.c: Include ipa-inline.h.
12118 (cgraph_create_node_1): Do not initialize estimated_growth.
12119 (initialize_inline_failed): More to ipa-inline-analysis.c
12120 (dump_cgraph_node): Do not dump inline flags.
12121 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
12122 and disregard_inline_limits flags.
12123 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
12124 time, size, estimated_growth.
12125 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
12126 Update.
12127 * cgraphunit.c (cgraph_decide_is_function_needed): Use
12128 DECL_DISREGARD_INLINE_LIMITS.
12129 (cgraph_analyze_function): Do not initialize
12130 node->local.disregard_inline_limits.
12131 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12132 inlinable, versionable and disregard_inline_limits.
12133 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
12134 cgraph_check_inline_limits, cgraph_default_inline_p,
12135 cgraph_edge_badness, update_caller_keys, update_callee_keys,
12136 add_new_edges_to_heap): Update.
12137 (cgraph_decide_inlining_of_small_function): Update; set
12138 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
12139 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
12140 cgraph_decide_inlining_incrementally): Update.
12141 * ipa-inline.h (inline_summary): Add inlinable, versionable,
12142 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
12143 time, size and estimated_growth parameters.
12144 (estimate_edge_growth): Update.
12145 (initialize_inline_failed): Declare.
12146 * ipa-split.c: Include ipa-inline.h
12147 (execute_split_functions): Update.
12148 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
12149 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
12150 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
12151 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
12152 estimated_growth to INT_MIN.
12153 (inline_node_duplication_hook): Likewise.
12154 (dump_inline_summary): Dump new fields.
12155 (compute_inline_parameters): Update.
12156 (estimate_edge_time, estimate_time_after_inlining,
12157 estimate_size_after_inlining, estimate_growth, inline_read_summary,
12158 inline_write_summary):
12159 (initialize_inline_failed): Move here from cgraph.c.
12160 * tree-sra.c: Include ipa-inline.h.
12161 (ipa_sra_preliminary_function_checks): Update.
12162 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
12163 ipa-inline.h.
12164
12165 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
12166
12167 * config/i386/sse.md (V16): New mode iterator.
12168 (VI1, VI8): Ditto.
12169 (AVXMODEQI, AVXMODEDI): Remove.
12170 (sse2, sse3): New mode attribute.
12171 (mov<mode>): Use V16 mode iterator.
12172 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
12173 (push<mode>1): Use V16 mode iterator.
12174 (movmisalign<mode>): Ditto.
12175 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12176 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
12177 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12178 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
12179 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
12180 avx_movdqu<avxmodesuffix>.
12181 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
12182 *avx_movdqu<avxmodesuffix>.
12183 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
12184 avx_lddqu<avxmodesuffix>.
12185 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
12186 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
12187 avx_movnt<AVXMODEDI:mode>.
12188 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
12189 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
12190
12191 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
12192
12193 PR target/48629
12194 * haifa-sched.c (prune_ready_list, schedule_block): Use
12195 sched_pressure_p rather than flag_sched_pressure.
12196
12197 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
12198
12199 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12200 cgraph_get_node instead of cgraph_get_create_node.
12201
12202 2011-04-15 Jakub Jelinek <jakub@redhat.com>
12203
12204 * cfgexpand.c (expand_debug_expr): Use
12205 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
12206
12207 2011-04-15 Michael Matz <matz@suse.de>
12208
12209 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12210 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12211 * function.c (gimplify_parameters): Ditto.
12212 * gimplify.c (gimplify_vla_decl): Ditto.
12213
12214 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12215 (gimple_call_set_alloca_for_var): New inline function.
12216 (gimple_call_alloca_for_var_p): Ditto.
12217 * gimple.c (gimple_build_call_from_tree): Remember
12218 CALL_ALLOCA_FOR_VAR_P state.
12219 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12220
12221 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12222 calls if they were for VLA objects.
12223
12224 2011-04-15 Martin Jambor <mjambor@suse.cz>
12225
12226 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12227 of ADR_EXPRs.
12228
12229 2011-04-15 Martin Jambor <mjambor@suse.cz>
12230
12231 PR middle-end/48601
12232 * tree-emutls.c (lower_emutls_function_body): Call
12233 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
12234 result is non-NULL.
12235
12236 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
12237
12238 * c-decl.c (detect_field_duplicates): Call
12239 objc_detect_field_duplicates instead of objc_get_interface_ivars.
12240
12241 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
12242
12243 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12244 * gimple.c (gimple_asm_clobbers_memory_p): Define.
12245 * ipa-pure-const.c (check_stmt): Call it.
12246 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12247
12248 2011-04-15 Richard Guenther <rguenther@suse.de>
12249
12250 PR tree-optimization/48290
12251 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12252 Properly decide inhibiting propagation based on the valueized
12253 operand. Do loop-closed SSA form preserving here ...
12254 (init_copy_prop): ... not here.
12255
12256 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
12257
12258 PR target/48612
12259 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12260 (*ieee_smax<mode>3): Likewise.
12261
12262 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12263
12264 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12265 Replace match_operand with match_dup for the third operand in
12266 these expanders.
12267
12268 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12269
12270 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12271 to track processing of conditionals. Update all callers.
12272 (try_combine, simplify_if_then_else): Update.
12273
12274 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12275
12276 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12277 -fsched-pressure.
12278
12279 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
12280
12281 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12282 instead of match_operand for operand 3.
12283
12284 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
12285
12286 * recog.h (insn_operand_data): Add an "allows_mem" field.
12287 * genoutput.c (output_operand_data): Initialize it.
12288 * optabs.c (maybe_legitimize_operand_same_code): New function.
12289 (maybe_legitimize_operand): Use it when matching the original
12290 op->value.
12291
12292 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12293
12294 * gimplify.c: Fix issues in comments throughout.
12295 (voidify_wrapper_expr): Fix long line.
12296 (build_stack_save_restore): Likewise.
12297 (gimplify_loop_expr): Likewise.
12298 (gimplify_compound_lval): Likewise.
12299 (gimplify_init_ctor_eval): Likewise.
12300 (gimplify_modify_expr_rhs): Likewise.
12301 (omp_notice_threadprivate_variable): Likewise.
12302
12303 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12304
12305 * cfgexpand.c (expand_call_stmt): Convert the function type to the
12306 original one if this is not a builtin function.
12307
12308 2011-04-14 Jakub Jelinek <jakub@redhat.com>
12309
12310 PR target/48605
12311 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12312 offset it as needed based on top 2 bits in operands[3], change
12313 MEM mode to SFmode and mask those 2 bits away from operands[3].
12314
12315 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12316
12317 * c-parser.c (c_parser_objc_protocol_definition): Updated for
12318 change from objc_declare_protocols() to objc_declare_protocol().
12319
12320 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
12321
12322 * config/i386/sse.md (sse4_1): New mode attribute.
12323 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12324 avx_blend<ssemodesuffix><avxmodesuffix> and
12325 sse4_1_blend<ssemodesuffix> using VF mode iterator.
12326 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12327 avx_blendv<ssemodesuffix><avxmodesuffix> and
12328 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12329 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12330 avx_dp<ssemodesuffix><avxmodesuffix> and
12331 sse4_1_dp<ssemodesuffix> using VF mode iterator.
12332 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12333 (sse4_1_packusdw): Merge with *avx_packusdw.
12334 (sse4_1_pblendvb): Merge with *avx_pblendvb.
12335 (sse4_1_pblendw): Merge with *avx_pblendw.
12336 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12337 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12338 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12339 VF mode iterator.
12340 (sse4_1_round<ssescalarmodesuffix>): Merge with
12341 *avx_round<ssescalarmodesuffix>.
12342 (aesenc): Merge with *avx_aesenc.
12343 (aesenclast): Merge with *avx_aesenclast.
12344 (aesdec): Merge with *avx_aesdec.
12345 (aesdeclast): Merge with *avx_aesdeclast.
12346 (pclmulqdq): Merge with *pclmulqdq.
12347 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12348 New predicate.
12349 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12350
12351 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12352
12353 PR middle-end/48608
12354 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12355 (align_local_variable): This. Update DECL_ALIGN.
12356 (add_stack_var): Updated.
12357 (expand_one_stack_var): Likewise.
12358
12359 2011-04-14 Richard Guenther <rguenther@suse.de>
12360
12361 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12362 Remove.
12363 (dse_initialize_block_local_data, dse_leave_block,
12364 record_voperand_set, get_stmt_uid): Likewise.
12365 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12366 (dse_optimize_stmt): Remove voperand set handling code.
12367 Simplify and improve to handle any kind of killing stmt.
12368 (dse_record_phi): Remove.
12369 (dse_enter_block): Simplify.
12370 (tree_ssa_dse): Likewise.
12371 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12372
12373 2011-04-14 Jan Hubicka <jh@suse.cz>
12374
12375 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12376 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12377 (cgraph_local_info): Remove inline_summary.
12378 * ipa-cp.c: Include ipa-inline.h.
12379 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12380 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12381 accesor.
12382 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12383 (input_overwrite_node): Do not set inline summary.
12384 (input_node): Do not stream inline summary.
12385 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12386 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12387 growth; we do not have inline parameters computed for that anyway.
12388 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12389 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12390 (inline_summary_t): New type and VECtor.
12391 (debug_inline_summary, dump_inline_summaries): Declare.
12392 (inline_summary): Use VOCtor.
12393 (estimate_edge_growth): Kill hack computing call stmt size directly.
12394 * lto-section-in.c (lto_section_name): Add inline section.
12395 * ipa-inline-analysis.c: Include lto-streamer.h
12396 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12397 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12398 (inline_summary_vec): Define.
12399 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12400 dump_inline_summaries): New functions.
12401 (estimate_function_body_sizes): Properly compute size/time of outgoing
12402 calls.
12403 (compute_inline_parameters): Alloc inline_summary; do not compute
12404 size/time of incomming calls.
12405 (estimate_edge_time): Avoid missing time summary hack.
12406 (inline_read_summary): Read inline summary info.
12407 (inline_write_summary): Write inline summary info.
12408 (inline_free_summary): Free all hooks and inline summary vector.
12409 * lto-streamer.h: Add LTO_section_inline_summary section.
12410 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12411 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12412
12413 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12414
12415 * tree-vectorizer.h (vect_strided_store_supported): Add a
12416 HOST_WIDE_INT argument.
12417 (vect_strided_load_supported): Likewise.
12418 (vect_permute_store_chain): Return void.
12419 (vect_transform_strided_load): Likewise.
12420 (vect_permute_load_chain): Delete.
12421 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12422 count argument. Check that the count is a power of two.
12423 (vect_strided_load_supported): Likewise.
12424 (vect_permute_store_chain): Return void. Update after above changes.
12425 Assert that the access is supported.
12426 (vect_permute_load_chain): Likewise.
12427 (vect_transform_strided_load): Return void.
12428 * tree-vect-stmts.c (vectorizable_store): Update calls after
12429 above interface changes.
12430 (vectorizable_load): Likewise.
12431 (vect_analyze_stmt): Don't check for strided powers of two here.
12432
12433 2011-04-14 Richard Guenther <rguenther@suse.de>
12434
12435 PR tree-optimization/48590
12436 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12437 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12438 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12439 BUILT_IN_STACK_SAVE.
12440 * tree-ssa-dce.c (propagate_necessity): Handle
12441 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12442
12443 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12444
12445 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12446 objc_declare_class.
12447
12448 2011-04-14 Richard Guenther <rguenther@suse.de>
12449
12450 * tree.h (get_object_alignment_1): Declare.
12451 * builtins.c (get_object_alignment_1): Split out worker from ...
12452 (get_object_alignment): ... here.
12453 * fold-const.c (get_pointer_modulus_and_residue): Use
12454 get_object_alignment_1.
12455
12456 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12457
12458 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12459 type parameter.
12460 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12461 parameter. Generalise code to handle arrays as well as vectors.
12462 (vect_setup_realignment): Update accordingly.
12463 * tree-vect-stmts.c (vectorizable_store): Likewise.
12464 (vectorizable_load): Likewise.
12465
12466 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12467
12468 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12469 within the per-copy loop.
12470
12471 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12472
12473 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12474 in the dump file.
12475
12476 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12477
12478 * doc/options.texi (Negative): Explicitly mention that the
12479 Negative chain must be circular.
12480
12481 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12482
12483 * function.h (block_chainon): Declare.
12484 * function.c (block_chainon): Define.
12485
12486 2011-04-14 Anatoly Sokolov <aesok@post.ru>
12487 Eric Weddington <eric.weddington@atmel.com>
12488 Georg-Johann Lay <avr@gjlay.de>
12489
12490 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12491 New Includes
12492 (avr_init_builtins, avr_expand_builtin,
12493 avr_expand_delay_cycles, avr_expand_unop_builtin,
12494 avr_expand_binop_builtin ): New functions.
12495 (avr_builtin_id): New enum
12496 (struct avr_builtin_description): New struct
12497 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12498 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12499
12500 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12501 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12502 UNSPECV_DELAY_CYCLES): new enumeration values
12503 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12504 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12505 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12506 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12507 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12508 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12509 "fmulsu"): New insns
12510
12511 * config/avr/avr-c.c: fix line endings
12512 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12513 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12514 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12515 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12516 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12517
12518 * doc/extend.texi (AVR Built-in Functions): New node
12519 (Target Builtins): Add documentation of AVR
12520 built-in functions.
12521
12522 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
12523
12524 PR target/44643
12525 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12526 alone. Error if non-const data has attribute progmem.
12527
12528 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12529
12530 * tree.h (struct tree_constructor): Include tree_typed instead of
12531 tree_common.
12532 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12533 TS_TYPED instead of TS_COMMON.
12534
12535 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12536
12537 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12538 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12539 (sse2_psadbw): Merge with *avx_psadbw.
12540 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12541 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12542 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12543 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12544 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12545 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12546 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12547 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12548 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12549 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12550 (ssse3_palignrti): Merge with *avx_palignrti.
12551
12552 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12553
12554 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12555 * tree-ssanames.c (fini_ssanames): VEC_free it.
12556 (make_ssa_name_fn): Update for VECness of free_ssanames.
12557 (release_ssa_name, release_dead_ssa_names): Likewise.
12558 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12559 tree_common.
12560 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12561 TS_TYPED instead of TS_COMMON.
12562
12563 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12564
12565 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12566 statistics_counter_event.
12567 * tree-ssa-copyrename.c (stats): Define.
12568 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12569 statistics_counter_event.
12570 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12571 (bswap_stats, widen_mul_stats): Define.
12572 (insert_reciprocals): Increment rdivs_inserted.
12573 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12574 rfuncs_inserted. Add calls to statistics_counter_event.
12575 (execute_cse_sincos_1): Increment inserted.
12576 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12577 statistics_counter_event.
12578 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12579 of bswap_stats. Add calls to statistics_counter_event.
12580 (convert_mult_to_widen): Increment widen_mults_inserted.
12581 (convert_plusminus_to_widen): Increment maccs_inserted.
12582 (convert_mult_to_fma): Increment fmas_inserted.
12583 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12584 calls to statistics_counter_event.
12585
12586 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12587
12588 PR rtl-optimization/48455
12589 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12590 `temp_costs->mem_cost'.
12591
12592 2011-04-13 Jan Hubicka <jh@suse.cz>
12593
12594 * ipa-inline.h: New file.
12595 * ipa-inline-analysis.c: New file. Broken out of ...
12596 * ipa-inline.c: ... this file; update toplevel comment;
12597 include ipa-inline.h
12598 (inline_summary): Move to ipa-inline.h
12599 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12600 ipa-inline-analysis.c.
12601 (cgraph_estimate_time_after_inlining): Rename to
12602 estiamte_time_after_inlining; move to ipa-inline-analysis.c
12603 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12604 to estimate_edge_growth.
12605 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12606 rename to estimate_size_after_inlining.
12607 (cgraph_mark_inline_edge): Update for new naming convention.
12608 (cgraph_check_inline_limits): Likewise.
12609 (cgraph_edge_badness): Likewise.
12610 (cgraph_decide_recursive_inlining): Likewise.
12611 (cgraph_decide_inlining_of_small_functions): Likewise.
12612 (cgraph_decide_inlining_incrementally): Likewise.
12613 (cgraph_estimate_growth): Rename to estimate_growth; move to
12614 ipa-inline-analysis.c.
12615 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12616 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12617 (compute_inline_parameters): Likewise.
12618 (compute_inline_parameters_for_current): Likewise.
12619 (pass_inline_parameters): Likewise.
12620 (inline_indirect_intraprocedural_analysis): Likewise.
12621 (analyze_function): Rename to inline_analyze_function; likewise.
12622 (add_new_function): Move to ipa-inline-analysis.c.
12623 (inline_generate_summary): Likewise.
12624 (inline_read_summary): Likewise.
12625 (inline_write_summary): Likewise.
12626 * Makefile.in (ipa-inline-analysis.c): New file.
12627
12628 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12629
12630 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12631 * configure: Regenerate.
12632
12633 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12634
12635 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12636 instead of tree_common.
12637 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12638 Likewise.
12639 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12640 TS_TYPED rather than TS_COMMON.
12641 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12642
12643 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
12644
12645 PR target/45263
12646 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12647 r20 around calls of __tablejump_elpm__
12648
12649 2011-04-13 Jakub Jelinek <jakub@redhat.com>
12650
12651 PR middle-end/48591
12652 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12653 NULL.
12654 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12655
12656 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12657
12658 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12659 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12660 (cfi_vec): New typedef.
12661 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12662 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12663 (cie_cfi_vec): New static variable.
12664 (cie_cfi_head): Delete.
12665 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12666 declaration changed. Use vector rather than list operations.
12667 (new_cfi): Don't initialize the dw_cfi_next field.
12668 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12669 rather than list operations.
12670 (lookup_cfa): Use vector rather than list operations.
12671 (output_cfis): New argument upto. Accept a cfi_vec rather than
12672 a dw_cfi_ref list head as argument. All callers changed.
12673 Iterate over the vector using upto as a maximum index.
12674 (output_all_cfis): New static function.
12675 (output_fde): Use vector rather than list operations. Use the
12676 new upto argument for output_cfis rather than manipulating a
12677 list.
12678 (dwarf2out_begin_prologue): Change initializations to match
12679 new struct members.
12680 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12681 from the vector length rather than searching for the end of a list.
12682 Use output_all_cfis.
12683 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12684
12685 2011-04-13 Nick Clifton <nickc@redhat.com>
12686
12687 * config/rx/rx.md (movmemsi): Do not use this pattern when
12688 volatile pointers are involved.
12689
12690 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12691
12692 * config/i386/sse.md (pinsrbits): Remove.
12693 (sse2_packsswb): Merge with *avx_packsswb.
12694 (sse2_packssdw): Merge with *avx_packssdw.
12695 (sse2_packuswb): Merge with *avx_packuswb.
12696 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12697 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12698 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12699 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12700 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12701 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12702 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12703 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12704 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12705 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12706 (sse2_loadld): Merge with *avx_loadld.
12707 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12708 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12709 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12710 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12711 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12712
12713 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12714
12715 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12716 calling TREE_CHAIN.
12717 * print-tree.c (print_node): Likewise.
12718 * tree-inline.c (copy_tree_r): Likewise.
12719 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12720 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12721 instead of TS_COMMON.
12722 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12723 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12724 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12725 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12726 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12727 ...and these...
12728 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12729 * tree.h: ...here.
12730 (TREE_CHAIN): Check for a TS_COMMON structure.
12731 (TREE_TYPE): Check for a TS_TYPED structure.
12732
12733 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
12734
12735 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12736 cgraph_get_create_node instead of cgraph_node.
12737
12738 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12739
12740 * c-parser.c (c_parser_initelt): Updated call to
12741 objc_build_message_expr.
12742 (c_parser_postfix_expression): Likewise.
12743
12744 2011-04-12 Kai Tietz <ktietz@redhat.com>
12745
12746 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12747 MASK_MS_BITFIELD_LAYOUT bit.
12748
12749 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12750
12751 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12752 assert it is always true.
12753 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12754 moves.
12755
12756 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12757
12758 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12759 compiling Objective-C to be more efficient.
12760
12761 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
12762
12763 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12764 argv_copied.
12765
12766 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12767
12768 * recog.h, genoutput.c, optabs.c: Revert last patch.
12769
12770 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12771
12772 PR target/48090
12773 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12774
12775 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12776
12777 * recog.h (insn_operand_data): Add an "allows_mem" field.
12778 * genoutput.c (output_operand_data): Initialize it.
12779 * optabs.c (maybe_legitimize_operand_same_code): New function.
12780 (maybe_legitimize_operand): Use it when matching the original
12781 op->value.
12782
12783 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12784
12785 * genpreds.c (process_define_predicate): Move most processing
12786 to gensupport.c. Continue to validate the expression.
12787 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12788 (process_define_predicate): Move processing to gensupport.c.
12789 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12790 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12791 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12792 argument.
12793 (valid_predicate_name_p): New function, split out from old
12794 genpreds.c:process_define_predicate.
12795 (process_define_predicate): New function, combining code from
12796 old genpreds.c and genrecog.c functions.
12797 (process_rtx): Call it for DEFINE_PREDICATE and
12798 DEFINE_SPECIAL_PREDICATE.
12799
12800 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12801
12802 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12803 size of a '%A' memory reference.
12804 (T_DREG, T_QREG): New neon_builtin_type_bits.
12805 (arm_init_neon_builtins): Assert that the load and store operands
12806 are neon_struct_operands.
12807 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12808 (NEON_ARG_MEMORY): New builtin_arg.
12809 (neon_dereference_pointer): New function.
12810 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12811 Handle NEON_ARG_MEMORY.
12812 (arm_expand_neon_builtin): Update after above interface changes.
12813 Use NEON_ARG_MEMORY for loads and stores.
12814 * config/arm/predicates.md (neon_struct_operand): New predicate.
12815 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12816 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12817 (V_four_elem): Tweak formatting.
12818 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12819 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12820 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12821 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12822 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12823 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12824 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12825 Use %A in the output template.
12826 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12827 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12828 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12829 the width of the memory access. Remove post-increment.
12830 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12831
12832 2011-04-12 Nick Clifton <nickc@redhat.com>
12833
12834 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12835 instruction for interrupt handlers if the target is the basic V850
12836 architecture.
12837 (expand_epilogue): Likewise.
12838
12839 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12840
12841 PR rtl-optimization/48549
12842 * combine.c (propagate_for_debug): Also stop after BB_END of
12843 this_basic_block. Process LAST and just stop processing after it.
12844 (combine_instructions): If last_combined_insn has been deleted,
12845 set last_combined_insn to its PREV_INSN.
12846
12847 2011-04-12 Richard Guenther <rguenther@suse.de>
12848
12849 PR tree-optimization/46076
12850 * gimple.h (struct gimple_statement_call): Add fntype field.
12851 (gimple_call_fntype): Adjust.
12852 (gimple_call_set_fntype): New function.
12853 * gimple.c (gimple_build_call_1): Set the call function type.
12854 * gimplify.c (gimplify_call_expr): Preserve the function
12855 type the frontend used for the call.
12856 (gimplify_modify_expr): Likewise.
12857 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12858 function type.
12859 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12860 function type.
12861 * tree-ssa.c (useless_type_conversion_p): Function pointer
12862 conversions are useless.
12863
12864 2011-04-12 Martin Jambor <mjambor@suse.cz>
12865
12866 * cgraph.h (cgraph_node): Remove function declaration.
12867 (cgraph_create_node): Declare.
12868 (cgraph_get_create_node): Likewise.
12869 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12870 Updated all callers.
12871 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12872 the decl does not already exist. Call cgraph_get_create_node instead
12873 of cgraph_node.
12874 (cgraph_get_create_node): New function.
12875 (cgraph_same_body_alias): Update comment.
12876 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12877 assert it does not return NULL.
12878 (cgraph_update_edges_for_call_stmt): Likewise.
12879 (cgraph_clone_edge): Likewise.
12880 (cgraph_create_virtual_clone): Likewise.
12881 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12882 instead of cgraph_node.
12883 (cgraph_add_new_function): Call cgraph_create_node or
12884 cgraph_get_create_node instead of cgraph_node.
12885 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12886 instead of cgraph_node.
12887 (record_eh_tables): Likewise.
12888 (mark_address): Likewise.
12889 (mark_load): Likewise.
12890 (build_cgraph_edges): Call cgraph_get_create_node instead
12891 of cgraph_node.
12892 (rebuild_cgraph_edges): Likewise.
12893 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12894 instead of cgraph_node.
12895 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12896 cgraph_node.
12897 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12898 cgraph_create_node instead of cgraph_node.
12899 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12900 of cgraph_node.
12901 * lto-cgraph.c (input_node): Likewise.
12902 * lto-streamer-in.c (input_function): Likewise.
12903 * varasm.c (mark_decl_referenced): Likewise.
12904 (assemble_alias): Likewise.
12905
12906 2011-04-12 Martin Jambor <mjambor@suse.cz>
12907
12908 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12909 instead of cgraph_node and assert it does not return NULL.
12910 * lto-streamer-in.c (lto_read_body): Likewise.
12911 * omp-low.c (new_omp_context): Likewise.
12912 (create_task_copyfn): Likewise.
12913 * tree-emutls.c (lower_emutls_function_body): Likewise.
12914 * matrix-reorg.c (transform_allocation_sites): Likewise.
12915
12916 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12917
12918 PR c/48552
12919 * c-typeck.c (build_asm_expr): Error out on attempts to use
12920 void type outputs or inputs for constraints that allow reg or
12921 don't allow memory.
12922
12923 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12924 Richard Earnshaw <rearnsha@arm.com>
12925
12926 PR target/48250
12927 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12928 to use sign-magnitude offsets. Reject unsupported unaligned
12929 cases. Add detailed description in comments.
12930 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12931 condition from TARGET_32BIT to TARGET_ARM.
12932
12933 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12934
12935 * tree.h (struct typed_tree): New.
12936 (struct tree_common): Include it instead of tree_base.
12937 (TREE_TYPE): Update for new location of type field.
12938 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12939 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12940 (union tree_node): Add typed field.
12941 * treestruct.def (TS_TYPED): New.
12942 * lto-streamer.c (check_handled_ts_structures): Handle it.
12943 * tree.c (MARK_TS_TYPED): New macro.
12944 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12945
12946 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12947
12948 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12949 (force_nonfallthru): Do not alter the loop nest if no basic block
12950 was created.
12951
12952 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12953
12954 * config/i386/sse.md (VI): New mode iterator.
12955 (SSEMODEI): Remove.
12956 (AVX256MODEI): Ditto.
12957 (AVXMODEF4P): Ditto.
12958 (avxvecpsmode): Ditto.
12959 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12960 (sse2_andnot<mode>3): New expander.
12961 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12962 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12963 (<any_logic:code><mode>3): Use VI mode iterator.
12964 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12965 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12966 (*andnottf3): Handle AVX three-operand constraints.
12967 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12968
12969 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12970 Robert Millan <rmh@gnu.org>
12971
12972 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12973 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12974 GNU_USER_DYNAMIC_LINKER64): Define.
12975 (REG_NAME): Don't undefine.
12976 (MD_UNWIND_SUPPORT): Undefine.
12977 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12978 (REG_NAME): Don't undefine.
12979 (MD_UNWIND_SUPPORT): Undefine.
12980 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
12981
12982 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12983
12984 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12985 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12986
12987 2011-04-11 Xinliang David Li <davidxl@google.com>
12988
12989 * value-profile.c (check_ic_target): New function.
12990 (gimple_ic_transform): Sanity check indirect call target.
12991 * gimple-low.c (gimple_check_call_args): Interface change.
12992 (gimple_check_call_matching_types): New function.
12993 * tree-inline.c (tree_can_inline_p): Call new function.
12994
12995 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12996
12997 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12998 tree-pretty-print.h & realmpfr.h.
12999
13000 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
13001
13002 PR middle-end/48464
13003 * ira.c (setup_pressure_classes): Fix typo in loop condition.
13004 (setup_allocno_and_important_classes): Ditto.
13005
13006 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13007
13008 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
13009 GNU_USER_DYNAMIC_LINKER.
13010 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
13011 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13012 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
13013 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13014 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13015 GNU_USER_TARGET_OS_CPP_BUILTINS.
13016 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
13017 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13018 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13019 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13020 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
13021 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13022 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13023 GNU_USER_TARGET_OS_CPP_BUILTINS.
13024 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13025 GNU_USER_DYNAMIC_LINKER.
13026 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13027 GNU_USER_TARGET_OS_CPP_BUILTINS.
13028 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
13029 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13030 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
13031 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13032 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
13033 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
13034 GNU_USER_DYNAMIC_LINKER64): Remove.
13035 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
13036 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13037 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13038 GNU_USER_DYNAMIC_LINKER.
13039 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13040 GNU_USER_TARGET_OS_CPP_BUILTINS.
13041 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13042 GNU_USER_TARGET_OS_CPP_BUILTINS.
13043 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
13044 to GNU_USER_TARGET_OS_CPP_BUILTINS.
13045 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13046 GNU_USER_TARGET_OS_CPP_BUILTINS.
13047 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
13048 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
13049 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13050 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
13051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13052 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13053 GNU_USER_DYNAMIC_LINKER.
13054 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13055 GNU_USER_TARGET_OS_CPP_BUILTINS.
13056 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
13057 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13058 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13059 GNU_USER_DYNAMIC_LINKER.
13060 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13061 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13062 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
13063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13064 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13065 GNU_USER_DYNAMIC_LINKER.
13066 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
13067 GNU_USER_DYNAMIC_LINKERN32.
13068 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
13069 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
13070 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
13071 GNU_USER_DYNAMIC_LINKER32.
13072 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
13073 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13074 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13075 GNU_USER_DYNAMIC_LINKER.
13076 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13077 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13078 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
13079 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13080 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13081 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
13082 GNU_USER_DYNAMIC_LINKER32.
13083 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13084 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
13085 GNU_USER_DYNAMIC_LINKER.
13086 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
13087 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13088 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13089 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
13090 GNU_USER_DYNAMIC_LINKER64.
13091 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
13092 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13093 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13094 GNU_USER_DYNAMIC_LINKER.
13095 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
13096 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13097 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13098 GNU_USER_DYNAMIC_LINKER.
13099 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
13100 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13101 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13102 GNU_USER_DYNAMIC_LINKER32.
13103 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13104 GNU_USER_DYNAMIC_LINKER64.
13105 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13106 GNU_USER_DYNAMIC_LINKER64.
13107 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
13108 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13109 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
13110 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13111 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
13112
13113 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13114
13115 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
13116 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
13117 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
13118 GNU_USER_DYNAMIC_LINKER.
13119 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13120 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
13121 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
13122 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
13123 GNU_USER_DYNAMIC_LINKER64.
13124 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13125 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
13126 GNU_USER_LINK_EMULATION.
13127 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
13128 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
13129 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
13130 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
13131 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
13132 CPP_SPEC, CC1_SPEC): Remove.
13133 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
13134 (GNU_USER_DYNAMIC_LINKER): Define.
13135 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
13136 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
13137 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
13138 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
13139 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
13140 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
13141 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13142 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
13143 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
13144 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
13145 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
13146 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
13147 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
13148 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
13149 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
13150 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13151 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13152 GNU_USER_DYNAMIC_LINKER.
13153 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13154 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13155 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13156 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13157 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13158 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13159 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
13160 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
13161 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
13162 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
13163
13164 2011-04-11 Kai Tietz <ktietz@redhat.com>
13165
13166 PR target/9601
13167 PR target/11772
13168 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
13169 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
13170 comment.
13171 (ix86_is_msabi_thiscall): Removed.
13172 (ix86_is_type_thiscall): Likewise.
13173 (ix86_get_callcvt): New function.
13174 (ix86_comp_type_attributes): Simplify check.
13175 (ix86_function_regparm): Use ix86_get_callcvt for calling
13176 convention attribute checks.
13177 (ix86_return_pops_args): Likewise.
13178 (ix86_static_chain): Likewise.
13179 (x86_this_parameter): Likewise.
13180 (x86_output_mi_thunk): Likewise.
13181 (ix86_function_type_abi): Optimize check for types without attributes.
13182 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
13183 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
13184 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
13185 by flag-values.
13186 (IX86_BASE_CALLCVT): Helper macro.
13187 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13188 Use ix86_get_callcvt for calling convention attribute checks and avoid
13189 symbol-decoration for stdcall in TARGET_RTD case.
13190 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13191 Likewise.
13192 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
13193 for declaration.
13194
13195 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
13196
13197 * config/i386/sse.md (VI_128): New mode iterator.
13198 (VI12_128): Rename from SSEMODE12.
13199 (VI14_128): Rename from SSEMODE14.
13200 (VI124_128): New mode iterator.
13201 (VI24_128): Rename from SSEMODE248.
13202 (VI248_128): Rename from SSEMODE248.
13203 (SSEMODE124C8): Remove.
13204 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13205 (*sse2_<plusminus_insn><mode>3): Merge with
13206 *avx_<plusminus_insn><mode>3.
13207 (*mulv8hi3): Merge with *avx_mulv8hi3.
13208 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13209 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13210 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13211 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13212 (ashr<mode>3): Merge with *avx_ashr<mode>3.
13213 (lshr<mode>3): Merge with *avx_lshr<mode>3.
13214 (ashl<mode>3): Merge with *avx_ashl<mode>3.
13215 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13216 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13217 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13218 (*<smaxmin:code>v8hi3): Ditto.
13219 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13220 (*<smaxmin:code>v16qi3): Ditto.
13221 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13222 (*sse2_eq<mode>3): Ditto.
13223 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13224 (*sse2_gt<mode>3): Ditto.
13225 (vcondv2di): Split out of vcond<mode>.
13226 (vconduv2di): Split out of vcondu<mode>.
13227
13228 2011-04-11 Richard Guenther <rguenther@suse.de>
13229
13230 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13231 before calling tree_low_cst.
13232
13233 2011-04-11 Richard Guenther <rguenther@suse.de>
13234
13235 * stor-layout.c (layout_type): Compute all array index size operations
13236 in the original type.
13237 (initialize_sizetypes): Add comment.
13238 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13239
13240 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13241
13242 * common.opt (Tbss=, Tdata=, Ttext=): New options.
13243
13244 2011-04-11 Martin Jambor <mjambor@suse.cz>
13245
13246 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13247 of cgraph_node, handle NULL return value.
13248 (cgraph_global_info): Likewise.
13249 (cgraph_rtl_info): Likewise.
13250 * tree-inline.c (estimate_num_insns): Likewise.
13251 * gimplify.c (unshare_body): Likewise.
13252 (unvisit_body): Likewise.
13253 (gimplify_body): Likewise.
13254 * predict.c (optimize_function_for_size_p): Likewise.
13255 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13256 (call_may_clobber_ref_p_1): Likewise.
13257 * varasm.c (function_section_1): Likewise.
13258 (assemble_start_function): Likewise.
13259
13260 2011-04-11 Martin Jambor <mjambor@suse.cz>
13261
13262 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13263 of cgraph_node.
13264 * final.c (rest_of_clean_state): Likewise.
13265 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13266 * passes.c (pass_init_dump_file): Likewise.
13267 (execute_all_ipa_transforms): Likewise.
13268 (function_called_by_processed_nodes_p): Likewise.
13269 * predict.c (maybe_hot_frequency_p): Likewise.
13270 (probably_never_executed_bb_p): Likewise.
13271 (compute_function_frequency): Likewise.
13272 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13273 (unnest_nesting_tree_1): Likewise.
13274 (lower_nested_functions): Likewise.
13275 * tree-optimize.c (execute_fixup_cfg): Likewise.
13276 (tree_rest_of_compilation): Likewise.
13277 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13278 * tree-sra.c (ipa_early_sra): Likewise.
13279 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13280 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13281 * ipa.c (record_cdtor_fn): Likewise.
13282 * ipa-inline.c (cgraph_early_inlining): Likewise.
13283 (compute_inline_parameters_for_current): Likewise.
13284 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13285 * ipa-pure-const.c (local_pure_const): Likewise.
13286 * ipa-split.c (split_function): Likewise.
13287 (execute_split_functions): Likewise.
13288 * cgraphbuild.c (build_cgraph_edges): Likewise.
13289 (rebuild_cgraph_edges): Likewise.
13290 (cgraph_rebuild_references): Likewise.
13291 (remove_cgraph_callee_edges): Likewise.
13292 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13293 (verify_cgraph_node): Likewise.
13294 (cgraph_analyze_functions): Likewise.
13295 (cgraph_preserve_function_body_p): Likewise.
13296 (save_inline_function_body): Likewise.
13297 (save_inline_function_body): Likewise.
13298 * tree-inline.c (copy_bb): Likewise.
13299 (optimize_inline_calls): Likewise.
13300
13301 2011-04-11 Martin Jambor <mjambor@suse.cz>
13302
13303 PR tree-optimization/48195
13304 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13305 ipa_check_create_edge_args.
13306 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13307 ipa_check_create_edge_args.
13308 * ipa-inline.c (inline_generate_summary): Do not call
13309 ipa_check_create_node_params and ipa_check_create_edge_args.
13310 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13311 ipa_check_create_edge_args.
13312
13313 2011-04-09 Anatoly Sokolov <aesok@post.ru>
13314
13315 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13316 instead of loop.
13317 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13318 * function.c (record_hard_reg_sets): Likewise.
13319 * ira.c (compute_regs_asm_clobbered): Likewise.
13320 * sched-deps.c (sched_analyze_1): Likewise.
13321 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13322
13323 2011-04-09 Xinliang David Li <davidxl@google.com>
13324
13325 PR tree-optimization/PR48484
13326 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13327 has_valid_pred lazily
13328
13329 2011-04-09 Duncan Sands <baldrick@free.fr>
13330
13331 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13332
13333 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13334
13335 * combine.c (combine_validate_cost): Adjust comments. Set registered
13336 cost of I0 to zero at the end, if any.
13337
13338 2011-04-08 Xinliang David Li <davidxl@google.com>
13339
13340 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13341 to insane profile data.
13342
13343 2011-04-08 Xinliang David Li <davidxl@google.com>
13344
13345 * ipa-cp.c (ipcp_update_profiling): Correct
13346 negative scale factor due to insane profile data.
13347
13348 2011-04-08 Xinliang David Li <davidxl@google.com>
13349
13350 * final.c (dump_basic_block_info): New function.
13351 (final): Dump basic block.
13352 (final_scan_insn): Remove old dump.
13353
13354 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13355
13356 PR target/47829
13357 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13358 crtbegin/crtend.
13359
13360 2011-04-08 Michael Matz <matz@suse.de>
13361
13362 PR middle-end/48389
13363 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13364 functions.
13365 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13366 * rtl.h (rebuild_jump_labels_chain): Declare.
13367 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13368 insns inserted on edges.
13369
13370 2011-04-08 Joseph Myers <joseph@codesourcery.com>
13371
13372 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13373 * config/arm/arm-arches.def: New.
13374 * config/arm/arm-opts.h: New.
13375 * config/arm/genopt.sh: New.
13376 * config/arm/arm-tables.opt: New (generated).
13377 * config/arm/arm.c (arm_handle_option, arm_target_help,
13378 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13379 (all_architectures): Get most table contents from arm-arches.def.
13380 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13381 arm_selected_tune here.
13382 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13383 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13384 (march=, mcpu=, mtune=): Use Enum and Var.
13385 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13386 (arm.o): Update dependencies.
13387
13388 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
13389
13390 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13391 of header_file.
13392 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13393 (write_typed_alloc_defns): Likewise.
13394 (main): Calls write_typed_alloc_defns with output_header.
13395
13396 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13397
13398 PR inline-asm/48435
13399 * ira-color.c (setup_profitable_hard_regs): Add comments.
13400 Don't take prohibited hard regs into account.
13401 (setup_conflict_profitable_regs): Rename to
13402 get_conflict_profitable_regs.
13403 (check_hard_reg_p): Check prohibited hard regs.
13404
13405 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13406
13407 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13408 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13409 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13410
13411 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13412
13413 PR target/48366
13414 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13415 move from floating point to shift amount register.
13416 (emit_move_sequence): Remove secondary reload support for floating
13417 point to shift amount amount register copies.
13418 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13419 amount register copies.
13420 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13421 register, return false if mode isn't a scalar integer mode.
13422 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13423
13424 2011-04-08 Richard Guenther <rguenther@suse.de>
13425
13426 * gimple.c (gimple_call_flags): Remove kludge.
13427
13428 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13429
13430 * sel-sched.c (sel_region_init): Move call to
13431 sel_setup_region_sched_flags after setup_current_loop_nest.
13432
13433 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
13434
13435 PR rtl-optimization/48272
13436 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13437 init_insn_reg_pressure_info. Adjust a caller.
13438 * sched-int.h (init_insn_reg_pressure_info): Declare.
13439 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13440 when sched-pressure is enabled.
13441
13442 2011-04-08 Richard Guenther <rguenther@suse.de>
13443
13444 * gimple.c (gimple_set_modified): Do not queue calls to
13445 MODIFIED_NORETURN_CALLS here ...
13446 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13447
13448 2011-04-08 Richard Guenther <rguenther@suse.de>
13449
13450 PR lto/48467
13451 * toplev.c (lang_dependent_init): Do not open asm_out_file
13452 in WPA mode, nor perform debug machinery initialization.
13453 (finalize): Do not unlink asm_out_file in WPA mode.
13454
13455 2011-04-08 Richard Guenther <rguenther@suse.de>
13456
13457 * gimple.h (gimple_call_fntype): New function.
13458 (gimple_call_return_type): Use it.
13459 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13460 * gimple-low.c (gimple_check_call_args): Likewise.
13461 * gimple.c (gimple_call_flags): Likewise.
13462 (gimple_call_arg_flags): Likewise.
13463 (gimple_call_return_flags): Likewise.
13464 * tree-cfg.c (verify_gimple_call): Likewise.
13465 (do_warn_unused_result): Likewise.
13466 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13467 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13468
13469 2011-04-08 Dmitry Melnik <dm@ispras.ru>
13470
13471 PR rtl-optimization/48235
13472 * sel-sched.c (code_motion_process_successors): Recompute the last
13473 insn in basic block if control flow changed.
13474 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13475 Update condition for ilist_remove.
13476
13477 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13478
13479 PR rtl-optimization/48302
13480 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13481 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13482 it to record added preheader blocks.
13483 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13484 on to sel_add_loop_preheaders.
13485 (sel_region_init): Move call to setup_current_loop_nest after
13486 sel_init_bbs.
13487
13488 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13489
13490 PR target/48273
13491 * cfgloop.h (loop_has_exit_edges): New helper.
13492 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13493 non-clonable.
13494 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13495 that have no exit edges.
13496
13497 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13498
13499 PR rtl-optimization/48442
13500 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13501 all callers. Adjust assert.
13502
13503 2011-04-08 Jakub Jelinek <jakub@redhat.com>
13504
13505 PR tree-optimization/48377
13506 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13507 is_packed to true even for types with smaller TYPE_ALIGN than
13508 TYPE_SIZE.
13509
13510 2011-04-08 Richard Guenther <rguenther@suse.de>
13511
13512 PR bootstrap/48513
13513 * doc/tm.texi: Re-generate.
13514
13515 2011-04-08 Wei Guozhi <carrot@google.com>
13516
13517 PR target/47855
13518 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13519 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13520 * config/arm/arm.md (*push_multi): Change the length computation to
13521 call a C function.
13522
13523 2011-04-08 Anatoly Sokolov <aesok@post.ru>
13524
13525 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13526 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13527 * doc/tm.texi: Regenerate.
13528 * system.h (ASM_OUTPUT_BSS): Poison.
13529 * varasm.c (asm_output_bss): Remove function.
13530 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13531
13532 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13533 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13534 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13535 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13536 Likewise.
13537 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13538 Likewise.
13539 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13540 Likewise.
13541 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13542
13543 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13544
13545 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13546 EnumValue lines.
13547
13548 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13549
13550 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13551 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13552 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13553 OPT_mcpu32.
13554 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13555 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13556 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13557 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13558 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13559 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13560 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13561 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13562 options. Don't map other m68k options manually. Don't handle
13563 old-style options as canonical.
13564 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13565 * doc/install.texi (m68k-*-*): Document binutils version requirement.
13566
13567 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13568
13569 * basic-block.h (force_nonfallthru): Move to...
13570 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13571 (force_nonfallthru): ...here.
13572 * cfghooks.c (force_nonfallthru): New function.
13573 * cfgrtl.c (force_nonfallthru): Rename into...
13574 (rtl_force_nonfallthru): ...this.
13575 (commit_one_edge_insertion): Do not set AUX field.
13576 (commit_edge_insertions): Do not discover new basic blocks.
13577 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13578 (cfg_layout_rtl_cfg_hooks): Likewise.
13579 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13580 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13581 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13582
13583 2011-04-07 Anatoly Sokolov <aesok@post.ru>
13584
13585 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13586 Remove macros.
13587
13588 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
13589
13590 * config/i386/sse.md: Update copyright year.
13591 (avxcvtvecmode): Remove.
13592 (sse_movhlps): Merge with *avx_movhlps.
13593 (sse_movlhps): Merge with *avx_movlhps.
13594 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13595 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13596 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13597 (sse_loadhps): Merge with *avx_loadhps.
13598 (sse_storelps): Merge with *avx_storelps.
13599 (sse_loadlps): Merge with *avx_loadlps.
13600 (sse_movss): Merge with *avx_movss.
13601 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13602 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13603 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13604 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13605 (vec_set<mode>_0): Ditto.
13606 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13607 (sse4_1_insertps): Merge with *avx_insertps.
13608 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13609 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13610 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13611 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13612 (sse2_storehpd): Merge with *avx_storehpd.
13613 (sse2_loadhpd): Merge with *avx_loadhpd.
13614 (sse2_loadlpd): Merge with *avx_loadlpd.
13615 (sse2_movsd): Merge with *avx_movsd.
13616 (*vec_concatv2df): Merge with *vec_concatv2df.
13617
13618 2011-04-07 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR debug/48343
13621 * combine.c (combine_instructions): Add last_combined_insn,
13622 update it if insn is after it, pass it to all try_combine calls.
13623 (try_combine): Add last_combined_insn parameter, pass it instead of
13624 i3 to propagate_for_debug.
13625
13626 2011-04-07 Nick Clifton <nickc@redhat.com>
13627
13628 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13629 to handle MDR <-> data register transfers.
13630 (movhi_internal): Likewise.
13631
13632 2011-04-07 Alan Modra <amodra@gmail.com>
13633
13634 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13635 previous stack info.
13636
13637 2011-04-07 Tom de Vries <tom@codesourcery.com>
13638
13639 PR target/43920
13640 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13641 flow_find_cross_jump. Swap variables to implement backward replacement.
13642 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13643
13644 2011-04-07 Tom de Vries <tom@codesourcery.com>
13645
13646 PR target/43920
13647 * cfgcleanup.c (walk_to_nondebug_insn): New function.
13648 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13649 and bb2.
13650 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13651 src1 or src2. Redirect edges to the last basic block. Update
13652 frequency and count on multiple basic blocks in case of fallthru.
13653
13654 2011-04-07 Tom de Vries <tom@codesourcery.com>
13655
13656 PR target/43920
13657 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13658 function.
13659 (old_insns_match_p): Change return type. Replace return false/true
13660 with return dir_none/dir_both. Use can_replace_by.
13661 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13662 direction from dir_p. Register replacement direction in dir, last_dir
13663 and afterlast_dir. Handle new return type of old_insns_match_p using
13664 merge_dir. Return replacement direction in dir_p.
13665 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13666 return type of old_insns_match_p.
13667 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13668 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13669 flow_find_cross_jump.
13670 * basic-block.h (enum replace_direction): New type.
13671 (flow_find_cross_jump): Add parameter to declaration.
13672
13673 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13674
13675 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13676 (AVXMODEDCVTPS2DQ): Ditto.
13677 (VEC_FLOAT_MODE): Ditto.
13678 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13679 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13680 (<any_logic:code><mode>3): Use VF mode iterator.
13681 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13682 Use VF mode iterator.
13683 (copysign<mode>3): Use VF mode iterator.
13684 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13685 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13686 (*<any_logic:code><MODEF:mode>3): Merge with
13687 *avx_<any_logic:code><MODEF:mode>3.
13688 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13689 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13690 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13691 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13692 (sse2_cvtdq2ps): Use %v modifier.
13693 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13694 (avx_cvtps2dq<avxmodesuffix>): Remove.
13695 (sse2_cvtps2dq): Use %v modifier.
13696 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13697 (avx_cvttps2dq<avxmodesuffix>): Remove.
13698 (sse2_cvttps2dq): Use %v modifier.
13699 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13700 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13701 (sse2_cvtsd2siq): Fix insn template.
13702 (sse2_cvtsd2siq_2): Ditto.
13703 (sse2_cvttsd2siq): Ditto.
13704 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13705 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13706
13707 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13708
13709 * gcov-io.c: Use GCC Runtime Library Exception.
13710
13711 2011-04-06 Jakub Jelinek <jakub@redhat.com>
13712
13713 PR debug/48466
13714 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13715 as base_reg whatever register reg has been eliminated to, instead
13716 of hardcoding STACK_POINTER_REGNUM.
13717
13718 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13719
13720 * doc/tm.texi.in: Document C target hooks as separate from general
13721 target hooks.
13722 * doc/tm.texi: Regenerate.
13723 * genhooks.c (struct hook_desc): Add docname field.
13724 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13725 docname field.
13726 (hook_array): Include c-target.def.
13727 (emit_documentation): Use docname field in output.
13728 (emit_init_macros): Take docname argument. Only emit definitions
13729 for hooks matching docname.
13730 (main): Expect additional arguments in all cases. Pass argument
13731 to emit_init_macros.
13732 * target.def: Move initial macro definitions and comments to
13733 target-hooks-macros.h.
13734 (gcc_targetcm): Move to c-family/c-target.def.
13735 * target.h (targetcm): Move declaration to c-family/c-target.h.
13736 * targhooks.c (default_handle_c_option): Move to
13737 c-family/c-opts.c.
13738 * targhooks.h (default_handle_c_option): Move declaration to
13739 c-family/c-common.h.
13740 * target-hooks-macros.h: New file.
13741 * config.gcc (target_has_targetcm): Define and use to add to
13742 c_target_objs and cxx_target_objs.
13743 * config/default-c.c: New file.
13744 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13745 of target.h and target-def.h.
13746 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13747 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13748 darwin_check_cfstring_format_arg): Make static.
13749 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13750 TARGET_STRING_OBJECT_REF_TYPE_P,
13751 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13752 * config/darwin-protos.h (darwin_objc_construct_string,
13753 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13754 declare.
13755 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13756 TARGET_STRING_OBJECT_REF_TYPE_P,
13757 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13758 * config/t-darwin (darwin-c.o): Update dependencies.
13759 * system.h (TARGET_HAS_TARGETCM): Poison.
13760 * Makefile.in (TARGET_H): Update.
13761 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13762 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13763 (default-c.o): New target.
13764 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13765 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13766 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13767 c-target.def.
13768 (build/genhooks.o): Update dependencies.
13769
13770 2011-04-06 Richard Guenther <rguenther@suse.de>
13771
13772 * ipa-inline.c (enum inlining_mode): Remove.
13773 (cgraph_flatten): Use some other token.
13774 (cgraph_edge_early_inlinable_p): New function, split out from ...
13775 (cgraph_perform_always_inlining): New function, split out from ...
13776 (cgraph_decide_inlining_incrementally): ... here.
13777 (cgraph_mark_inline_edge): Adjust.
13778 (cgraph_early_inlining): Re-structure.
13779 (pass_early_inline): Require SSA form.
13780
13781 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
13782 Julian Brown <julian@codesourcery.com>
13783 Mark Shinwell <shinwell@codesourcery.com>
13784
13785 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13786 LO_REGS only for Thumb-1.
13787 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13788 be used in short instructions when optimising for size on Thumb-2.
13789
13790 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13791
13792 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13793 associated with user returns to be preserved.
13794
13795 2011-04-06 Tristan Gingold <gingold@adacore.com>
13796
13797 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13798 symbol_queue_size, DBXOUT_DECR_NESTING,
13799 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13800 if XCOFF_DEBUGGING_INFO.
13801
13802 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13803
13804 * config/i386/i386.md (attribute isa): New.
13805 (attribute enabled): New.
13806 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13807 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13808 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13809 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13810 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13811 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13812 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13813 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13814
13815 * config/i386/sse.md (VF): New mode iterator.
13816 (VF1): Ditto.
13817 (VF2): Ditto.
13818 (VF_128): Ditto.
13819 (SSEMODEF4): Remove.
13820 (attribute sse): Handle V8SF and V4DF modes.
13821 (<absneg:code><mode>2): Use VF mode iterator.
13822 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13823 mode iterator.
13824 (<plusminus_insn><mode>3): Use VF mode iterator.
13825 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13826 Use VF mode iterator.
13827 (<sse>_vm<plusminus_insn><mode>3): Merge with
13828 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13829 (mul<mode>3): Use VF mode iterator.
13830 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13831 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13832 mode iterator.
13833 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13834 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13835 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13836 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13837 mode iterator.
13838 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13839 Use VF1 mode iterator.
13840 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13841 (sqrt<VF2:mode>2): New expander.
13842 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13843 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13844 and sqrtv2df2. Use VF mode iterator.
13845 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13846 mode iterator.
13847 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13848 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13849 Use VF1 mode iterator.
13850 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13851 (<smaxmin:code><mode>3): Use VF mode iterator.
13852 (*<smaxmin:code><mode>3_finite): Merge with
13853 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13854 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13855 (<sse>_vm<smaxmin:code><mode>2): Merge with
13856 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13857 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13858 mode iterator.
13859 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13860 mode iterator.
13861 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13862 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13863 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13864 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13865 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13866 VF mode iterator.
13867 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13868 Use VF_128 mode iterator.
13869 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13870 mode iterator.
13871 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13872 VF_128 mode iterator.
13873 (vcond<mode>): Use VF mode iterator.
13874 * config/i386/predicates.md (sse_comparison_operator): Merge with
13875 avx_comparison_float_operator. Do not declare as special_predicate.
13876 * config/i386/i386.c (struct builtin_description): Update for renamed
13877 compare patterns.
13878 (ix86_expand_args_builtin): Ditto.
13879 (ix86_expand_sse_compare_mask): Ditto.
13880
13881 2011-04-06 Richard Guenther <rguenther@suse.de>
13882
13883 * tree-inline.c (estimate_num_insns): For calls simply account
13884 for all passed arguments and a used return value.
13885
13886 2011-04-06 Richard Guenther <rguenther@suse.de>
13887
13888 PR tree-optimization/47663
13889 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13890 call_stmt_time fields.
13891 (cgraph_edge_inlinable_p): Declare.
13892 (cgraph_edge_recursive_p): New inline function.
13893 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13894 (cgraph_clone_edge): Copy it.
13895 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13896 Account for call stmt time.
13897 (cgraph_estimate_time_after_inlining): Take edge argument.
13898 (cgraph_estimate_edge_growth): Account call stmt size.
13899 (cgraph_estimate_size_after_inlining): Take edge argument.
13900 (cgraph_mark_inline_edge): Adjust.
13901 (cgraph_check_inline_limits): Likewise.
13902 (cgraph_recursive_inlining_p): Remove.
13903 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13904 (cgraph_decide_recursive_inlining): Take edge argument and
13905 adjust.
13906 (cgraph_decide_inlining_of_small_functions): Do not avoid
13907 diags for recursive inlining here.
13908 (cgraph_flatten): Adjust.
13909 (cgraph_decide_inlining_incrementally): Likewise.
13910 (estimate_function_body_sizes): Remove call cost handling.
13911 (compute_inline_parameters): Initialize caller edge call costs.
13912 (cgraph_estimate_edge_growth): New function.
13913 (cgraph_estimate_growth): Use it.
13914 (cgraph_edge_badness): Likewise.
13915 (cgraph_check_inline_limits): Take an edge argument.
13916 (cgraph_decide_inlining_of_small_functions): Adjust.
13917 (cgraph_decide_inlining): Likewise.
13918 * tree-inline.c (estimate_num_insns): Only account for call
13919 return value if it is used.
13920 (expand_call_inline): Avoid diagnostics on recursive inline
13921 functions here.
13922 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13923 (input_edge): Input edge call costs.
13924
13925 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13926
13927 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13928
13929 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13930
13931 * doc/invoke.texi (Spec Files): Fix typo.
13932
13933 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13934
13935 * profile.c (branch_prob): Move declaration of local variable. Remove
13936 obsolete ??? comment. Expand the location explicitly instead of using
13937 the LOCATION_FILE and LOCATION_LINE macros.
13938
13939 2011-04-06 Wei Guozhi <carrot@google.com>
13940
13941 PR target/47855
13942 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13943 (arm_cond_branch): Likewise.
13944 (arm_cond_branch_reversed): Likewise.
13945 (arm_jump): Likewise.
13946 (push_multi): Likewise.
13947 * config/arm/constraints.md (Py): New constraint.
13948
13949 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13950
13951 PR bootstrap/48471
13952 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13953 Move these...
13954 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13955 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13956 #ifdef DBX_DEBUGGING_INFO.
13957
13958 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13959
13960 PR bootstrap/48403
13961 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13962 if old and new states differ.
13963
13964 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13965
13966 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13967 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13968 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13969 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13970 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13971 mcfv4e): Use Alias.
13972 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13973 ColdFire options to -mcpu= options.
13974
13975 2011-04-05 Jeff Law <law@redhat.com>
13976
13977 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13978 check if BB is a successor of LOOP->header and return
13979 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13980
13981 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13982
13983 * cprop.c (struct reg_use): Remove.
13984 (reg_use_table): Make an array of RTX.
13985 (find_used_regs, constprop_register, local_cprop_pass,
13986 bypass_block): Simplify users of reg_use_table.
13987 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13988 on one of the uses found by find_used_regs.
13989
13990 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13991
13992 PR bootstrap/48469
13993 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13994 declaration.
13995
13996 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13997
13998 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13999 as an rtx.
14000 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
14001
14002 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
14003
14004 PR middle-end/48441
14005 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
14006
14007 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14008
14009 * combine.c: Include obstack.h.
14010 (struct insn_link): Define.
14011 (uid_log_links): Adjust type.
14012 (FOR_EACH_LOG_LINK): New macro.
14013 (insn_link_obstack): Declare.
14014 (alloc_insn_link): Define.
14015 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
14016 type of link variables.
14017 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
14018 (try_combine, record_promoted_values, distribute_notes): Likewise.
14019 (distribute_links): Likewise. Tweak prototype.
14020 (clear_log_links): Delete.
14021 (adjust_for_new_dest): Call alloc_insn_link.
14022 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
14023
14024 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14025
14026 * gcse.c (modify_mem_list): Convert to an array of VECs.
14027 (canon_modify_mem_list, compute_transp): Tweak formatting.
14028 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
14029 (load_killed_in_block_p): Likewise.
14030 (record_last_mem_set_info): Likewise.
14031 (clear_modify_mem_tables): Likewise.
14032
14033 2011-04-05 Tom de Vries <tom@codesourcery.com>
14034
14035 PR middle-end/48461
14036 * function.c (emit_use_return_register_into_block): Only define if
14037 HAVE_return.
14038
14039 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
14040
14041 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
14042
14043 2011-04-05 Joseph Myers <joseph@codesourcery.com>
14044
14045 * config/rx/rx-opts.h: New.
14046 * config/rx/rx.c (rx_cpu_type): Remove.
14047 (rx_handle_option): Don't assert that global structures are in
14048 use. Access variables via opts pointer. Defer most handling of
14049 OPT_mint_register_. Use error_at.
14050 (rx_option_override): Handle deferred OPT_mint_register_ here.
14051 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
14052 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
14053 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
14054 (rx_cpu_types): New Enum and EnumValue entries.
14055 (mint-register=): Use Defer and use Var accordingly.
14056
14057 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14058
14059 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
14060 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
14061 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
14062 Move these...
14063 (debug_free_queue, debug_nesting, symbol_queue_index):
14064 ...and these...
14065 * dbxout.c: ...to here. Make static.
14066
14067 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14068
14069 * gcse.c (modify_pair): Define. Define a VEC of it.
14070 (canon_modify_mem_list): Convert to an array of VECs.
14071 (free_insn_expr_list_list): Delete.
14072 (clear_modify_mem_tables): Call VEC_free instead.
14073 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
14074 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
14075 (canon_list_insert, compute_transp): Likewise.
14076
14077 2011-04-05 Tom de Vries <tom@codesourcery.com>
14078
14079 PR target/43920
14080 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
14081 for size.
14082
14083 2011-04-05 Tom de Vries <tom@codesourcery.com>
14084
14085 PR target/43920
14086 * function.c (emit_use_return_register_into_block): New function.
14087 (thread_prologue_and_epilogue_insns): Use
14088 emit_use_return_register_into_block.
14089
14090 2011-04-05 Tom de Vries <tom@codesourcery.com>
14091
14092 PR target/43920
14093 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
14094 insn.
14095
14096 2011-04-05 Tom de Vries <tom@codesourcery.com>
14097
14098 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
14099
14100 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
14101
14102 * config/arm/arm.md (define_constants for unspec): Replace with
14103 define_c_enum.
14104 (define_constants for unspecv): Replace with define_c_enum.
14105 * config/arm/neon.md (define_constants for unspec): Replace with
14106 define_c_enum.
14107
14108 2011-04-04 Richard Henderson <rth@redhat.com>
14109
14110 PR bootstrap/48400
14111 * dwarf2out.c (output_line_info): Always emit line info from
14112 at least one section.
14113 (dwarf2out_init): Create text_section_line_info here ...
14114 (set_cur_line_info_table): ... not here.
14115
14116 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
14117
14118 PR target/48380
14119 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
14120 not called.
14121
14122 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
14123
14124 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
14125
14126 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
14127 (expr_equiv_p): Remove.
14128 (insert_set_in_table): Look at <dest, src> pair instead of expr.
14129 (hash_scan_set): Update call to insert_set_in_table.
14130 (dump_hash_table): Dump <dest, src> pair.
14131 (lookup_set): Simplify. Lookup <dest, src> pair.
14132 (compute_transp): Remove, fold heavily simplified code into...
14133 (compute_local_properties): ...here. Expect COMP and TRANSP
14134 unconditionally.
14135 (find_avail_set): Take set directly from struct expr.
14136 (find_bypass-set): Likewise.
14137 (bypass_block): Likewise.
14138 (cprop_insn): Likewise. Remove redundant INSN_P test.
14139
14140 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
14141 checks on form of COND from find_implicit_sets to here.
14142 (find_implicit_sets): Cleanup control flow. Split critical edges
14143 if it exposes implicit sets. Allocate/resize implicit_sets as
14144 necessary.
14145 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
14146 changed something. Run df_analyze after find_implicit_sets if any
14147 edges were split. Do not allocate implicit_sets here.
14148
14149 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
14150 (gcse_obstack): Renamed to cprop_obstack.
14151 (GNEW, GNEWVEC, GNEWVAR): Remove.
14152 (gmalloc): Remove.
14153 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
14154 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
14155 (gcse_alloc): Likewise, and rename to cprop_alloc.
14156 (alloc_gcse_men, free_gcse_mem): Remove.
14157 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
14158 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
14159 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
14160
14161 * cprop.c (oprs_not_set_p): Remove.
14162 (mark_set, mark_clobber): Remove.
14163 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
14164 (reg_not_set_p): New function.
14165 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
14166 (cprop_insn): Likewise.
14167 (cprop_jump): Use FOR_EACH_EDGE.
14168
14169 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
14170
14171 PR bootstrap/48403
14172 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
14173 (rank_for_schedule): Use scheduled_insns vector instead of
14174 last_scheduled_insn.
14175 (ok_for_early_queue_removal): Likewise.
14176 (queue_to_ready): Search forward in nonscheduled_insns_begin if
14177 we have a dbg_cnt.
14178 (choose_ready): Likewise.
14179 (commit_schedule): Use VEC_iterate.
14180 (schedule_block): Initialize nonscheduled_insns_begin. If we have
14181 a dbg_cnt, use it and ensure the first insn is in the ready list.
14182 (haifa_sched_init): Allocate scheduled_insns.
14183 (sched_extend_ready_list): Don't allocate it; reserve space.
14184 (haifa_sched_finish): Free it.
14185
14186 2011-04-04 Joseph Myers <joseph@codesourcery.com>
14187
14188 * optc-gen.awk: Always remove type from Variable entry before
14189 recording in var_seen.
14190
14191 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14192
14193 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
14194 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
14195 call to tidy_fallthru_edges.
14196
14197 2011-04-04 Joseph Myers <joseph@codesourcery.com>
14198
14199 * doc/options.texi (ToLower): Document.
14200 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
14201 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
14202 * opts.h (cl_option): Add cl_tolower field.
14203 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
14204 arguments with lowercase strings.
14205 * config/rx/rx.opt (mcpu=): Add ToLower.
14206 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14207 argument.
14208
14209 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14210
14211 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14212
14213 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14214
14215 * config/vax/vax.c: Include reload.h.
14216
14217 2011-04-04 Anatoly Sokolov <aesok@post.ru>
14218
14219 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14220 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14221 (sparc_preferred_reload_class): New function.
14222
14223 2011-04-04 Jakub Jelinek <jakub@redhat.com>
14224
14225 PR debug/48401
14226 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14227 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14228
14229 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
14230
14231 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14232 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14233
14234 2011-04-03 Anatoly Sokolov <aesok@post.ru>
14235
14236 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14237 (ASM_OUTPUT_ALIGNED_BSS): Define.
14238
14239 2011-04-03 Michael Matz <matz@suse.de>
14240
14241 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14242 and next_slot members.
14243 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14244 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14245 (lto_streamer_cache_append): Declare.
14246 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14247 unsigned index, remove offset parameter, ensure that we append
14248 or update existing entries.
14249 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14250 parameter, update next_slot for append.
14251 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14252 parameter.
14253 (lto_streamer_cache_insert_at): Likewise.
14254 (lto_streamer_cache_append): New function.
14255 (lto_streamer_cache_lookup): Use unsigned index.
14256 (lto_streamer_cache_get): Likewise.
14257 (lto_record_common_node): Don't test tree_node_can_be_shared.
14258 (preload_common_node): Adjust call to lto_streamer_cache_insert.
14259 (lto_streamer_cache_delete): Don't free offsets member.
14260 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14261 (lto_output_string_with_length): Use lto_output_data_stream.
14262 (lto_output_tree_header): Remove ix parameter, don't write it.
14263 (lto_output_builtin_tree): Likewise.
14264 (lto_write_tree): Adjust callers to above, don't track and write
14265 offset, write unsigned index.
14266 (output_unreferenced_globals): Don't emit all global vars.
14267 (write_global_references): Use unsigned indices.
14268 (lto_output_decl_state_refs): Likewise.
14269 (write_symbol): Likewise.
14270 * lto-streamer-in.c (lto_input_chain): Move earlier.
14271 (input_function): Use unsigned index.
14272 (input_alias_pairs): Don't read and then ignore all global vars.
14273 (lto_materialize_tree): Remove ix_p parameter, don't read index,
14274 don't pass it back, use lto_streamer_cache_append.
14275 (lto_register_var_decl_in_symtab): Use unsigned index.
14276 (lto_register_function_decl_in_symtab): Likewise.
14277 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14278 index.
14279 (lto_get_builtin_tree): Don't read index, use
14280 lto_streamer_cache_append.
14281 (lto_read_tree): Adjust call to lto_materialize_tree.
14282
14283 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14284 don't use function calls in arguments to MIN.
14285
14286 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14287 twice.
14288
14289 * gimple.c (gimple_type_leader_entry): Mark deletable.
14290
14291 2011-04-03 Alan Modra <amodra@gmail.com>
14292
14293 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14294
14295 2011-04-03 Michael Matz <matz@suse.de>
14296
14297 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14298 an integer.
14299 * tree.h (tree_decl_non_common.vindex): Adjust comment.
14300
14301 2011-04-03 Michael Matz <matz@suse.de>
14302
14303 * cgraphbuild.c (record_reference): Canonicalize constructor values.
14304 * gimple-fold.c (canonicalize_constructor_val): Accept being called
14305 without function context.
14306 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14307 current_function_decl and cfun.
14308
14309 2011-04-03 Michael Matz <matz@suse.de>
14310
14311 * tree.c (decl_init_priority_insert): Don't create entry for
14312 default priority.
14313 (decl_fini_priority_insert): Ditto.
14314 (fields_compatible_p, find_compatible_field): Remove.
14315 * tree.h (fields_compatible_p, find_compatible_field): Remove.
14316 * gimple.c (gimple_compare_field_offset): Adjust block comment.
14317
14318 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
14319
14320 * combine.c (try_combine): Remove useless local variable.
14321
14322 2011-04-03 Richard Guenther <rguenther@suse.de>
14323 Ira Rosen <ira.rosen@linaro.org>
14324
14325 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14326 non-variable offsets and compare the remaining bases of the two
14327 accesses instead of looking for exact same data-ref.
14328
14329 2011-04-02 Kai Tietz <ktietz@redhat.com>
14330
14331 PR target/48416
14332 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14333
14334 * i386.c (ix86_is_msabi_thiscall): New helper function.
14335 (ix86_is_type_thiscall): New helper function.
14336 (ix86_comp_type_attributes): Handle thiscall for method-functions
14337 special.
14338 (init_cumulative_args): Likewise.
14339 (find_drap_reg): Likewise.
14340 (ix86_static_chain): Likewise.
14341 (x86_this_parameter): Likewise.
14342 (x86_output_mi_thunk): Likewise.
14343
14344 2011-04-01 Olivier Hainque <hainque@adacore.com>
14345 Nicolas Setton <setton@adacore.com>
14346 Eric Botcazou <ebotcazou@adacore.com>
14347
14348 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14349 (add_gnat_descriptive_type_attribute): New function.
14350 (gen_array_type_die): Call it.
14351 (gen_enumeration_type_die): Likewise.
14352 (gen_struct_or_union_type_die): Likewise.
14353 (modified_type_die): Likewise.
14354 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14355 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14356 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14357
14358 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14359
14360 PR bootstrap/48148
14361 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14362 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14363
14364 Revert:
14365 2011-03-17 Richard Guenther <rguenther@suse.de>
14366
14367 PR bootstrap/48148
14368 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14369 origin for decls in other ltrans units.
14370 (input_varpool_node): Likewise.
14371
14372 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14373
14374 PR middle-end/48335
14375 * expr.c (expand_assignment): Handle all possibilities
14376 if TO_RTX is CONCAT.
14377 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14378 (store_split_bit_field): If SUBREG_REG (op0) or
14379 op0 itself has smaller mode than word, return it
14380 for offset 0 and const0_rtx for out-of-bounds stores.
14381 If word is const0_rtx, skip it.
14382
14383 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14384
14385 * config/h8300/h8300.c (print_operand_address): Rename to...
14386 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14387 Call h8300_print_operand and h8300_print_operand_address instead of
14388 print_operand and print_operand_address. Declare.
14389 (print_operand): Renake to...
14390 (h8300_print_operand): ...this. Make static. Adjust comments.
14391 Call h8300_print_operand instead of print_operand. Declare.
14392 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14393 (h8300_register_move_cost): Likewise.
14394 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14395 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14396 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14397 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14398 * config/h8300/h8300-protos.h (print_operand): Delete.
14399 (print_operand_address): Delete.
14400
14401 2011-04-01 Richard Henderson <rth@redhat.com>
14402
14403 PR 48400
14404 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14405 in strict mode before dwarf4. Re-order tests to early out
14406 before switching sections.
14407
14408 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14409
14410 * config/h8300/constraints.md: New file.
14411 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14412 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14413 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14414 * config/h8300/predicates.md (bit_operand): Likewise.
14415 (incdec_operand): Use satisfies_constraint_M and
14416 satisfies_constraint_O. Don't use C code block.
14417 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14418 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14419 (compute_mov_length): Use satisfies_constraint_G.
14420 (fix_bit_operand): Use satisfies_constraint_U.
14421 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14422 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14423 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14424 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14425 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14426 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14427 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14428 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14429 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14430 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14431 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14432 (EXTRA_MEMORY_CONSTRAINT): Delete.
14433
14434 2011-04-01 Andrew Pinski <pinskia@gmail.com>
14435 Michael Meissner <meissner@linux.vnet.ibm.com>
14436
14437 PR target/48262
14438 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14439 operands, as per the specifications.
14440
14441 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14442 (vec_extract_evenv4sf): Ditto.
14443 (vec_extract_evenv8hi): Ditto.
14444 (vec_extract_evenv16qi): Ditto.
14445 (vec_extract_oddv4si): Ditto.
14446
14447 2011-03-31 Mark Wielaard <mjw@redhat.com>
14448
14449 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14450 high_pc attribute if the CU has no associated code. Only output
14451 DW_AT_entry_pc for CU if not generating strict dwarf and
14452 dwarf_version < 4.
14453
14454 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14455
14456 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14457 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14458 out of ...
14459 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14460 * final.c (final_start_function): Call the new function rather
14461 than using a NULL argument for dwarf2out_frame_debug.
14462
14463 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14464 that contains the prologue.
14465
14466 * haifa-sched.c (queue_insn): New arg REASON. All callers
14467 changed. Print it in debugging output.
14468
14469 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14470
14471 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14472 Split most of the code into...
14473 (begin_move_insn): ... here. New function.
14474 (ebb_sched_info): Add a pointer to it.
14475 * haifa-sched.c (scheduled_insns): New static variable.
14476 (sched_extend_ready_list): Allocate it.
14477 (schedule_block): Use it to record the order of scheduled insns.
14478 Perform RTL changes to move insns only after all scheduling
14479 decisions have been made.
14480 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14481 begin_move_insn field.
14482 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14483 * sched-int.h (struct haifa_sched_info): Remove second argument
14484 from begin_schedule_ready hook. Add new member begin_move_insn.
14485 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14486 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14487
14488 * haifa-sched.c (prune_ready_list): New function, broken out of
14489 schedule_block.
14490 (schedule_block): Use it.
14491
14492 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14493
14494 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14495
14496 2011-04-01 Kai Tietz <ktietz@redhat.com>
14497
14498 * config.gcc (*-*-mingw*): Allow as option the
14499 posix threading model.
14500 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
14501 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14502 definition.
14503 (CPP_SPEC): Add pthread/no-pthread handling.
14504 (LIB_SPEC): Likewise.
14505 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14506 (LIB_SPEC): Likewise.
14507 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14508 flag to pass -pthread option for shared libgcc build.
14509 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14510 for shared libgcc build.
14511 * config/i386/t-mingw-pthread: New file.
14512 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14513 New define to enable use of library pthread by default.
14514 * config/i386/mingw.opt (pthread): New driver option.
14515 (no-pthread): New driver option.
14516 * config/i386/cygming.opt: Make sure trailing empty line is retained.
14517 * config/i386/mingw-w64.opt: Likewise.
14518
14519 2011-04-01 Gary Funck <gary@intrepid.com>
14520
14521 * c-decl.c (grokdeclarator): Fix formatting.
14522
14523 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14524
14525 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14526 instead of n_operands.
14527 (set_storage_via_setmem): Likewise.
14528 * optabs.c (maybe_gen_insn): Likewise.
14529 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14530 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14531 (mips_expand_builtin_direct): Likewise.
14532 * config/spu/spu.c (expand_builtin_args): Likewise.
14533
14534 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14535
14536 * recog.h (insn_data_d): Add n_generator_args.
14537 * genoutput.c (data): Likewise.
14538 (output_insn_data): Print it.
14539 (max_opno, num_dups): Delete.
14540 (scan_operands): Just fill in "d->operand[...]".
14541 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14542
14543 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14544
14545 * gensupport.h (pattern_stats): New structure.
14546 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14547 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14548 (max_operand_1, max_operand_vec): Delete.
14549 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14550
14551 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14552
14553 * emit-rtl.c (emit_pattern_after_setloc): New function.
14554 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14555 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14556 (emit_pattern_after): New function.
14557 (emit_insn_after, emit_jump_insn_after): Call it.
14558 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14559 (emit_pattern_before_setloc): New function.
14560 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14561 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14562 Likewise.
14563 (emit_pattern_before): New function.
14564 (emit_insn_before, emit_jump_insn_before): Call it.
14565 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14566
14567 2011-03-31 Richard Henderson <rth@redhat.com>
14568
14569 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14570 (dw_separate_line_info_entry): Remove.
14571 (enum dw_line_info_opcode): New.
14572 (dw_line_info_entry): Use it.
14573 (dw_line_info_table, dw_line_info_table_p): New.
14574 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14575 (line_info_table, line_info_label_num): Remove.
14576 (line_info_table_in_use): Remove.
14577 (separate_line_info_table): Remove.
14578 (separate_line_info_table_allocated): Remove.
14579 (separate_line_info_table_in_use): Remove.
14580 (LINE_INFO_TABLE_INCREMENT): Remove.
14581 (line_info_label_num): New.
14582 (cur_line_info_table): New.
14583 (text_section_line_info, cold_text_section_line_info): New.
14584 (separate_line_info): New.
14585 (SEPARATE_LINE_CODE_LABEL): Remove.
14586 (print_dwarf_line_table): Remove.
14587 (debug_dwarf): Don't dump it.
14588 (output_one_line_info_table): New.
14589 (output_line_info): Use it.
14590 (new_line_info_table): New.
14591 (set_cur_line_info_table): New.
14592 (dwarf2out_switch_text_section): Use it.
14593 (dwarf2out_begin_function): Likewise.
14594 (push_dw_line_info_entry): New.
14595 (dwarf2out_source_line): Rewrite for new line info tables.
14596 (dwarf2out_init): Remove dead initailizations.
14597
14598 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14599
14600 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14601 various flags.
14602 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14603 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14604 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14605 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14606 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14607 * opt-functions.awk (flag_init, switch_bit_fields): New.
14608 (switch_flags): Don't handle flags moved to bit-fields. Don't
14609 generate CL_MISSING_OK or CL_SAVE.
14610 * optc-gen.awk: Update to generate bit-field output as well as
14611 flags field.
14612 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14613 bit-field instead of CL_REJECT_DRIVER flag.
14614 * opts-common.c (generate_canonical_option,
14615 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14616 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14617 instead of CL_REJECT_NEGATIVE flag.
14618 * toplev.c (print_switch_values): Use cl_report bit-field instead
14619 of CL_REPORT flag.
14620
14621 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14622
14623 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14624 a zero minimum index only if it is redundant.
14625
14626 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14627
14628 PR rtl-optimization/48381
14629 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14630 instead of ira_class_hard_reg_index for calculating conflicting
14631 hard registers.
14632
14633 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14634
14635 * cprop.c: Clean up hash table building.
14636 (reg_avail_info): Remove.
14637 (oprs_available_p): Remove.
14638 (record_last_reg_set_info): Remove.
14639 (record_last_set_info): Remove.
14640 (reg_available_p): New function.
14641 (gcse_constant_p): Do not treat unfolded conditions as constants.
14642 (make_set_regs_unavailable): New function.
14643 (hash_scan_set): Simplify with new reg_available_p.
14644 (compute_hash_table_work): Traverse insns stream only once.
14645 Do not compute reg_avail_info. Traverse insns in reverse order.
14646 Record implicit sets after recording explicit sets from the block.
14647
14648 2011-03-31 Michael Matz <matz@suse.de>
14649
14650 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14651
14652 2011-03-31 Anatoly Sokolov <aesok@post.ru>
14653
14654 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14655 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14656 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14657 (h8300_mode_dependent_address_p): New function.
14658 (h8300_get_index): Make static.
14659
14660 2011-03-31 Jeff Law <law@redhat.com>
14661
14662 * reload1.c (elimination_effects): Fix typo in recent change.
14663
14664 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14665 typo potentially leading to null pointer dereference.
14666
14667 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14668 (setup_save_areas): Corresponding changes to avoid useless
14669 assignments.
14670
14671 * jump.c (reversed_comparison_code_parts): Avoid successive return
14672 statements when REVERSE_CONDITION is defined.
14673
14674 * expr.c (expand_assignment): Avoid useless assignments.
14675 (expand_expr_real_1): Likewise.
14676 (expand_expr_real_2): Avoid useless statements.
14677
14678 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14679
14680 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14681
14682 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14683 statements.
14684
14685 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14686
14687 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14688
14689 PR target/47109
14690 * doc/tm.texi.in (TARGET_VERSION): Remove.
14691 * doc/tm.texi: Regenerate.
14692 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14693 * collect2.c (main): Don't use TARGET_VERSION.
14694 * mips-tdump.c (main): Don't use TARGET_VERSION.
14695 * mips-tfile.c (main): Don't use TARGET_VERSION.
14696 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14697 * config/rs6000/vxworksae.h: Remove.
14698 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14699 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14700 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14701 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14702 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14703 * config/arm/arm.h (TARGET_VERSION): Remove.
14704 * config/arm/coff.h (TARGET_VERSION): Remove.
14705 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14706 * config/arm/elf.h (TARGET_VERSION): Remove.
14707 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14708 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14709 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14710 * config/arm/pe.h (TARGET_VERSION): Remove.
14711 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14712 * config/arm/semi.h (TARGET_VERSION): Remove.
14713 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14714 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14715 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14716 * config/avr/avr.h (TARGET_VERSION): Remove.
14717 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14718 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14719 * config/frv/frv.h (TARGET_VERSION): Remove.
14720 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14721 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14722 * config/i386/darwin.h (TARGET_VERSION): Remove.
14723 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14724 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14725 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14726 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14727 * config/i386/gnu.h (TARGET_VERSION): Remove.
14728 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14729 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14730 * config/i386/linux.h (TARGET_VERSION): Remove.
14731 * config/i386/linux64.h (TARGET_VERSION): Remove.
14732 * config/i386/lynx.h (TARGET_VERSION): Remove.
14733 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14734 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14735 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14736 * config/i386/netware.h (TARGET_VERSION): Remove.
14737 * config/i386/nto.h (TARGET_VERSION): Remove.
14738 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14739 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14740 * config/ia64/elf.h (TARGET_VERSION): Remove.
14741 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14742 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14743 * config/ia64/linux.h (TARGET_VERSION): Remove.
14744 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14745 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14746 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14747 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14748 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14749 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14750 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14751 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14752 * config/m68k/linux.h (TARGET_VERSION): Remove.
14753 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14754 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14755 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14756 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14757 * config/mep/mep.h (TARGET_VERSION): Remove.
14758 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14759 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14760 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14761 * config/mips/linux.h (TARGET_VERSION): Remove.
14762 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14763 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14764 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14765 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14766 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14767 * config/pa/pa.h (TARGET_VERSION): Remove.
14768 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14769 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14770 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14771 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14772 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14773 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14774 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14775 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14776 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14777 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14778 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14779 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14780 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14781 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14782 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14783 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14784 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14785 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14786 * config/s390/linux.h (TARGET_VERSION): Remove.
14787 * config/s390/s390.h (TARGET_VERSION): Remove.
14788 * config/s390/tpf.h (TARGET_VERSION): Remove.
14789 * config/score/score.h (TARGET_VERSION): Remove.
14790 * config/sh/linux.h (TARGET_VERSION): Remove.
14791 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14792 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14793 * config/sh/sh.h (TARGET_VERSION): Remove.
14794 * config/sh/sh64.h (TARGET_VERSION): Remove.
14795 * config/sh/superh.h (TARGET_VERSION): Remove.
14796 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14797 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14798 * config/sparc/linux.h (TARGET_VERSION): Remove.
14799 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14800 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14801 TARGET_NAME32, TARGET_NAME): Remove.
14802 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14803 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14804 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14805 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14806 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14807 * config/spu/spu.h (TARGET_VERSION): Remove.
14808 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14809 * config/v850/v850.h (TARGET_VERSION): Remove.
14810 * config/vax/linux.h (TARGET_VERSION): Remove.
14811 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14812 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14813 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14814
14815 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14816
14817 PR target/48142
14818 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14819 frame-related from frame-unrelated adjustments to the stack pointer.
14820
14821 2011-03-31 Jakub Jelinek <jakub@redhat.com>
14822
14823 * common.opt (fdebug-types-section): Move earlier.
14824 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14825
14826 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
14827
14828 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14829 var.
14830
14831 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14832
14833 * tree.h (CASE_CHAIN): Define.
14834 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14835 (gimple_redirect_edge_and_branch): Likewise.
14836
14837 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14838
14839 PR middle-end/48367
14840 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14841 calculation.
14842
14843 2011-03-30 Jeff Law <law@redhat.com>
14844
14845 * PR bootstrap/48371
14846 * reload1.c (reload): Fix botch in last change.
14847
14848 * reload.h (struct reload): Fix typo introduced in last change.
14849
14850 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14851
14852 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14853 Undocumented. Remove help text.
14854 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14855 -mhard-float.
14856
14857 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14858
14859 * doc/options.texi (NegativeAlias): Document.
14860 (Alias): Mention NegativeAlias.
14861 * opt-functions.awk: Handle NegativeAlias.
14862 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
14863 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14864 * opts.h (CL_NEGATIVE_ALIAS): Define.
14865 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14866 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14867 OPT_mspe_.
14868 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14869 Alias entries.
14870 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14871 mno-spe and mno-isel instead of mspe=no and -misel=no.
14872
14873 2011-03-29 Mark Wielaard <mjw@redhat.com>
14874
14875 * common.opt (fdebug-types-section): New flag.
14876 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14877 * dwarf2out.c (use_debug_types): New define.
14878 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14879 (print_die): Guard output of type unit signatures using
14880 use_debug_types.
14881 (build_abbrev_table): Replace assert of dwarf_version >= 4
14882 with assert on use_debug_types.
14883 (size_of_die): Likewise.
14884 (unmark_dies): Likewise.
14885 (value_format): Decide AT_ref_external form on use_debug_types.
14886 (output_die): Replace dwarf_version version check guard with
14887 use_debug_types where appropriate.
14888 (modified_type_die): Likewise.
14889 (gen_reference_type_die): Likewise.
14890 (dwarf2out_start_source_file): Likewise.
14891 (dwarf2out_end_source_file): Likewise.
14892 (prune_unused_types_walk_attribs): Likewise.
14893 (dwarf2out_finish): Likewise.
14894
14895 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14896
14897 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14898
14899 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14900
14901 PR rtl-optimization/48332
14902 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14903 mode of input operand N and modeN to its actual mode.
14904
14905 2011-03-30 Jeff Law <law@redhat.com>
14906
14907 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14908 define accessor macro.
14909 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14910 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14911 (reg_equiv_init): Likewise.
14912 (reg_equivs_size): New variable.
14913 (reg_equiv_init_size): Remove.
14914 (allocate_initial_values): Move prototype to here from....
14915 * integrate.h (allocate_initial_values): Remove prototype.
14916 * integrate.c: Include reload.h.
14917 (allocate_initial_values): Corresponding changes.
14918 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14919 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14920 (update_equiv_regs): Corresponding changes.
14921 (ira): Corresponding changes.
14922 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14923 (push_secondary_reload): Corresponding changes.
14924 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14925 (make_memloc, find_reloads_address): Corresponding changes.
14926 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14927 (find_reloads_address_1): Corresponding changes.
14928 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14929 (refers_to_regno_for_reload_p): Corresponding changes.
14930 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14931 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14932 * reload1.c: Include ggc.h.
14933 (grow_reg_equivs): New function.
14934 (replace_pseudos_in, reload): Corresponding changes.
14935 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14936 (eliminate_regs_1, elimination_effects): Corresponding changes.
14937 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14938 (delete_output_reload): Likewise.
14939 * caller-save.c (mark_referenced_regs): Corresponding changes.
14940 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14941 * frv/predicates.md (frv_load_operand): Corresponding changes.
14942 * microblaze/microblaze.c (double_memory_operand): Corresponding
14943 changes.
14944 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14945 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
14946 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
14947 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14948 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14949 changes.
14950 * pa/pa.c (emit_move_sequence): Corresponding changes.
14951 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14952
14953 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14954
14955 PR target/47551
14956 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14957 structure modes. Don't check neon_vector_mem_operand for
14958 vector or structure modes.
14959
14960 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14961 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14962
14963 PR target/43590
14964 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14965 operand 1 and reshuffle the operands to match.
14966 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14967
14968 2011-03-30 Christian Schüler <cschueler@gmx.de>
14969
14970 PR driver/48208
14971 * config/c.opt (F): Added 'Driver' to -F option.
14972
14973 PR driver/48260
14974 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14975 handler function.
14976 * config/darwin.opt: Added '-arch' option.
14977
14978 2011-03-30 Nick Clifton <nickc@redhat.com>
14979
14980 * config/rx/rx.md: Add peepholes and patterns to combine
14981 extending loads and simple arithmetic instructions.
14982 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
14983 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14984 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
14985 modes to use pre-decrement and post-increment addressing.
14986 (rx_is_restricted_memory_address): Add range checking of REG+INT
14987 addresses.
14988 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14989 (rx_memory_move_cost): Adjust cost of stores.
14990 (rx_adjust_insn_length): New function.
14991
14992 2011-03-30 Jakub Jelinek <jakub@redhat.com>
14993
14994 PR c/48305
14995 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14996 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14997 matching arg00/arg01 types.
14998
14999 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
15000
15001 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
15002 last_location to UNKNOWN_LOCATION.
15003
15004 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
15005
15006 PR target/48349
15007 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
15008 FLOAT_SSE_REGS.
15009
15010 2011-03-30 Joseph Myers <joseph@codesourcery.com>
15011 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15012
15013 PR bootstrap/48337
15014 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
15015 Init(PROCESSOR_V7).
15016 (sparc_cpu): Likewise.
15017 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
15018 PROCESSOR_V7.
15019
15020 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15021
15022 PR target/48336
15023 PR middle-end/48342
15024 PR rtl-optimization/48345
15025 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
15026 hard regs for given mode from profitable regs when doing secondary
15027 allocation.
15028
15029 2011-03-29 Jeff Law <law@redhat.com>
15030
15031 PR bootstrap/48327
15032 * tree-ssa-threadupdate.c (struct redirection_data): Remove
15033 do_not_duplicate field.
15034 (lookup_redirection_data): Corresponding changes.
15035 (create_duplicates): Always create a template block.
15036 (redirect_edges): Remove code which reused the original block
15037 when it was going to become unreachable code.
15038 (thread_block): Don't set do_not_duplicate field.
15039
15040 2011-03-29 Joseph Myers <joseph@codesourcery.com>
15041
15042 * lto-opts.c (register_user_option_p, lto_register_user_option):
15043 Make type argument unsigned.
15044 * lto-streamer.h (lto_register_user_option): Make type argument
15045 unsigned.
15046 * opth-gen.awk: Make CL_* macros unsigned.
15047 * opts-common.c (find_opt): Make lang_mask argument unsigned.
15048 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
15049 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
15050 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
15051 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
15052 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
15053 (find_opt): Make lang_mask argument unsigned.
15054
15055 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15056
15057 PR rtl-optimization/48331
15058 PR rtl-optimization/48334
15059 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
15060 for any used algorithm.
15061
15062 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15063
15064 * ira-conflicts.c (build_object_conflicts): Add unused attribute
15065 to parent_max.
15066
15067 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
15068
15069 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
15070 (alpha_option_override): Don't set alpha_sr_alias_set.
15071 (emit_frame_store_1): Use gen_frame_mem rather than calling
15072 set_mem_alias_set.
15073 (alpha_expand_epilogue): Ditto.
15074
15075 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
15076
15077 PR tree-optimization/48290
15078 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
15079 vectorization, check that relevant phis in the basic block after
15080 the inner loop are really inner loop's exit phis.
15081
15082 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
15083
15084 PR debug/48190
15085 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
15086 (cached_dw_loc_list_def): New structure.
15087 (cached_dw_loc_list): New typedef.
15088 (cached_dw_loc_list_table): New variable.
15089 (cached_dw_loc_list_table_hash): New function.
15090 (cached_dw_loc_list_table_eq): Likewise.
15091 (add_location_or_const_value_attribute): Take a bool cache_p.
15092 Cache the list when the parameter is true.
15093 (gen_formal_parameter_die): Update caller.
15094 (gen_variable_die): Likewise.
15095 (dwarf2out_finish): Likewise.
15096 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
15097 while generating debug info for the decl.
15098 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
15099 (dwarf2out_init): Initialize cached_dw_loc_list_table.
15100 (resolve_addr): Cache the result of resolving a chain of
15101 location lists.
15102
15103 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
15104
15105 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
15106 conflict object hard regset nodes have intersecting hard reg sets.
15107
15108 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
15109 after regstat_init_n_sets_and_refs.
15110
15111 * ira.c: Add more comments at the top.
15112 (setup_stack_reg_pressure_class, setup_pressure_classes):
15113 Add comments how we compute the register pressure classes.
15114 (setup_allocno_and_important_classes): Add more comments.
15115 (setup_class_translate_array, reorder_important_classes)
15116 (setup_reg_class_relations): Add comments.
15117
15118 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
15119 start of the file.
15120
15121 * ira-color.c: Add 2011 to the Copyright line.
15122 (assign_hard_reg): Add more comments.
15123 (improve_allocation): Ditto.
15124
15125 * ira-costs.c: Add 2011 to the Copyright line.
15126 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
15127 comments.
15128 (setup_regno_cost_classes_by_mode): Ditto.
15129
15130 Initial patches from ira-improv branch:
15131
15132 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15133
15134 * ira-build.c (ira_create_object): Remove initialization of
15135 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
15136 (ira_create_allocno): Remove initialization of
15137 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
15138 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
15139 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15140 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
15141 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
15142 Initialize ALLOCNO_ADD_DATA.
15143 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
15144 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
15145 ALLOCNO_REG.
15146 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
15147 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
15148
15149 * ira.c (ira_reallocate): Remove.
15150 (setup_pressure_classes): Call
15151 ira_init_register_move_cost_if_necessary. Use
15152 ira_register_move_cost instead of ira_get_register_move_cost.
15153 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
15154 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
15155
15156 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
15157 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15158 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
15159 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
15160 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
15161 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
15162 Fix formatting.
15163 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
15164 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15165 (struct allocno_color_data): New.
15166 (allocno_color_data_t): New typedef.
15167 (allocno_color_data): New definition.
15168 (ALLOCNO_COLOR_DATA): New macro.
15169 (struct object_color_data): New.
15170 (object_color_data_t): New typedef.
15171 (object_color_data): New definition.
15172 (OBJECT_COLOR_DATA): New macro.
15173 (update_copy_costs, calculate_allocno_spill_cost): Call
15174 ira_init_register_move_cost_if_necessary. Use
15175 ira_register_move_cost instead of ira_get_register_move_cost.
15176 (move_spill_restore, update_curr_costs): Ditto.
15177 (allocno_spill_priority): Make it inline.
15178 (color_pass): Allocate and free allocno_color_dat and object_color_data.
15179 (struct coalesce_data, coalesce_data_t): New.
15180 (allocno_coalesce_data): New definition.
15181 (ALLOCNO_COALESCE_DATA): New macro.
15182 (merge_allocnos, coalesced_allocno_conflict_p): Use
15183 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
15184 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
15185 (coalesce_allocnos): Ditto.
15186 (setup_coalesced_allocno_costs_and_nums): Ditto.
15187 (collect_spilled_coalesced_allocnos): Ditto.
15188 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
15189 (setup_slot_coalesced_allocno_live_ranges): Ditto.
15190 (coalesce_spill_slots): Ditto.
15191 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
15192 free allocno_coalesce_data.
15193
15194 * ira-conflicts.c: Fix formatting.
15195 (process_regs_for_copy): Call
15196 ira_init_register_move_cost_if_necessary. Use
15197 ira_register_move_cost instead of ira_get_register_move_cost.
15198 (build_object_conflicts): Optimize.
15199
15200 * ira-costs.c (record_reg_classes): Optimize. Call
15201 ira_init_register_move_cost_if_necessary. Use
15202 ira_register_move_cost, ira_may_move_in_cost, and
15203 ira_may_move_out_cost instead of ira_get_register_move_cost and
15204 ira_get_may_move_cost.
15205 (record_address_regs): Ditto.
15206 (scan_one_insn): Optimize.
15207 (find_costs_and_classes): Optimize.
15208 (process_bb_node_for_hard_reg_moves): Call
15209 ira_init_register_move_cost_if_necessary. Use
15210 ira_register_move_cost instead of ira_get_register_move_cost.
15211
15212 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15213 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15214 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15215 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15216 definitions.
15217 (ira_initiate_emit_data, ira_finish_emit_data)
15218 (create_new_allocno): New functions.
15219 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
15220 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15221 Use ira_register_move_cost instead of ira_get_register_move_cost.
15222
15223 * ira-int.h: Fix some comments.
15224 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15225 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15226 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15227 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
15228 add_data.
15229 (struct ira_allocno): Make mode and aclass a bitfield. Move other
15230 bitfield after mode. Make hard_regno a short int. Make
15231 hard_regno short. Remove first_coalesced_allocno and
15232 next_coalesced_allocno. Move mem_optimized_dest_p,
15233 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15234 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
15235 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15236 temp, colorable_p. Add new member add_data.
15237 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15238 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15239 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15240 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15241 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15242 (ALLOCNO_ADD_DATA): New macro.
15243 (ira_emit_data_t): New typedef.
15244 (struct ira_emit_data): New. Move mem_optimized_dest_p,
15245 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15246 from struct ira_allocno.
15247 (ALLOCNO_EMIT_DATA): New macro.
15248 (ira_allocno_emit_data, allocno_emit_reg): New.
15249 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15250 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15251 (OBJECT_ADD_DATA): New macro.
15252 (ira_reallocate): Remove.
15253 (ira_initiate_emit_data, ira_finish_emit_data): New.
15254 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15255 (ira_init_register_move_cost_if_necessary): New.
15256 (ira_object_conflict_iter_next): Merge into
15257 ira_object_conflict_iter_cond.
15258 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15259
15260 * ira-live.c (process_single_reg_class_operands): Call
15261 ira_init_register_move_cost_if_necessary. Use
15262 ira_register_move_cost instead of ira_get_register_move_cost.
15263
15264 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15265
15266 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15267
15268 * ira-costs.c: Fix formatting.
15269 (cost_classes, cost_classes_num): Remove.
15270 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15271 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15272 (cost_classes_del, cost_classes_htab): New.
15273 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15274 (initiate_regno_cost_classes, setup_cost_classes): New.
15275 (setup_regno_cost_classes_by_aclass): New.
15276 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15277 (record_reg_classes): Use regno_cost_classes instead of
15278 cost_classes. Move checking opposite operand up.
15279 (record_address_regs): Use regno_cost_classes
15280 instead of cost_classes.
15281 (scan_one_insn): Ditto. Use always general register.
15282 (print_allocno_costs): Use regno_cost_classes instead of
15283 cost_classes.
15284 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
15285 (find_costs_and_classes): Set up cost classes for each registers.
15286 Use also their mode for this. Use regno_cost_classes instead of
15287 cost_classes.
15288 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15289 cost_classes.
15290 (free_ira_costs, ira_init_costs): Don't use cost_classes.
15291 (ira_costs, ira_set_pseudo_classes): Call
15292 initiate_regno_cost_classes and finish_regno_cost_classes.
15293
15294 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
15295
15296 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15297
15298 * target.def (ira_cover_classes): Remove.
15299
15300 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15301
15302 * doc/tm.texi.in: Ditto.
15303
15304 * ira-conflicts.c: Remove mentioning cover classes from the file.
15305 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
15306 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
15307
15308 * targhooks.c (default_ira_cover_classes): Remove.
15309
15310 * targhooks.h (default_ira_cover_classes): Ditto.
15311
15312 * haifa-sched.c: Remove mentioning cover classes from the file.
15313 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15314 ira_pressure_classes and ira_pressure_classes_num instead of
15315 ira_reg_class_cover_size and ira_reg_class_cover. Use
15316 sched_regno_pressure_class instead of sched_regno_cover_class.
15317 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15318 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15319
15320 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
15321 classes from the file.
15322 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15323 (struct object_hard_regs, struct object_hard_regs_node): New.
15324 (struct ira_object): New members profitable_hard_regs,
15325 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15326 (struct ira_allocno): Rename cover_class to aclass. Rename
15327 cover_class_cost and updated_cover_class_cost to class_cost and
15328 updated_class_cost. Remove splay_removed_p and
15329 left_conflict_size. Add new members colorable_p.
15330 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15331 (ALLOCNO_COLORABLE_P): New macro.
15332 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15333 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15334 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15335 (OBJECT_...): Rename parameter C to O.
15336 (OBJECT_PROFITABLE_HARD_REGS): New macro.
15337 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15338 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15339 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15340 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15341 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15342 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15343 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15344 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15345 x_ira_reg_class_subunion.
15346 (ira_max_memory_move_cost, ira_max_register_move_cost)
15347 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15348 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15349 (ira_important_class_nums, ira_reg_class_superunion): New macros.
15350 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15351 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15352 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15353 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15354 (ira_tune_allocno_costs_and_cover_classes): Rename to
15355 ira_tune_allocno_costs.
15356 (ira_debug_hard_regs_forest): New.
15357 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15358 (ira_object_conflict_iter_next): Fix comments.
15359 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15360 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15361 cover_class to aclass.
15362 (ira_allocate_and_accumulate_costs): Ditto.
15363 (ira_allocate_and_set_or_copy_costs): Ditto.
15364
15365 * opts.c (decode_options): Remove ira_cover_class check.
15366
15367 * ira-color.c: Remove mentioning cover classes from the file. Use
15368 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15369 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15370 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15371 (splay-tree.h): Remove include.
15372 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15373 before copy_freq_compare_func.
15374 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15375 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15376 New definitions.
15377 (hard_regs_roots, hard_regs_node_vec): Ditto.
15378 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15379 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15380 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15381 (create_new_object_hard_regs_node): Ditto.
15382 (add_new_object_hard_regs_node_to_forest): Ditto.
15383 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15384 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15385 Ditto.
15386 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15387 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15388 (remove_unused_object_hard_regs_nodes): Ditto.
15389 (enumerate_object_hard_regs_nodes): Ditto.
15390 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15391 (object_hard_regs_subnode_t): Ditto.
15392 (struct object_hard_regs_subnode): Ditto.
15393 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15394 (setup_object_hard_regs_subnode_index): Ditto.
15395 (get_object_hard_regs_subnodes_num): Ditto.
15396 (form_object_hard_regs_nodes_forest): Ditto.
15397 (finish_object_hard_regs_nodes_tree): Ditto.
15398 (finish_object_hard_regs_nodes_forest): Ditto.
15399 (allocnos_have_intersected_live_ranges_p): Rename to
15400 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15401 (pseudos_have_intersected_live_ranges_p): Rename to
15402 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15403 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15404 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15405 (update_copy_costs): Remove assert. Skip cost update if the hard
15406 reg does not belong the class.
15407 (assign_hard_reg): Process only profitable hard regs.
15408 (uncolorable_allocnos_num): Make it scalar.
15409 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15410 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15411 and ira_reg_class_max_nregs.
15412 (bucket_allocno_compare_func): Check frequency first.
15413 (sort_bucket): Add compare function as a parameter.
15414 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15415 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15416 (push_allocno_to_stack): Rewrite for checking new allocno
15417 colorability.
15418 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
15419 (push_only_colorable): Pass new parameter to sort_bucket.
15420 (push_allocno_to_spill): Remove.
15421 (allocno_spill_priority_compare): Make it inline and rewrite.
15422 (splay_tree_allocate, splay_tree_free): Remove.
15423 (allocno_spill_sort_compare): New function.
15424 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15425 build and use splay tree. Choose first allocno in uncolorable
15426 allocno bucket to spill. Remove setting spill cost.
15427 (all_conflicting_hard_regs): Remove.
15428 (setup_allocno_available_regs_num): Check only profitable hard
15429 regs. Print info about hard regs nodes.
15430 (setup_allocno_left_conflicts_size): Remove.
15431 (put_allocno_into_bucket): Don't call
15432 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
15433 (improve_allocation): New.
15434 (color_allocnos): Call setup_profitable_hard_regs,
15435 form_object_hard_regs_nodes_forest, improve_allocation,
15436 finish_object_hard_regs_nodes_forest. Setup spill cost.
15437 (print_loop_title): Use pressure classes.
15438 (color_allocnso): Ditto.
15439 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15440 and allocnos_for_spilling.
15441 (ira_sort_regnos_for_alter_reg): Don't setup members
15442 {first,next}_coalesced_allocno.
15443 (color): Remove allocating and freeing removed_splay_allocno_vec.
15444 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15445 prohibited_class_mode_regs.
15446
15447 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15448 formatting.
15449 (update_allocno_pressure_excess_length): Use pressure classes.
15450 (inc_register_pressure, dec_register_pressure): Check for pressure
15451 class.
15452 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15453 pressure class. Use ira_reg_class_nregs instead of
15454 ira_reg_class_max_nregs.
15455 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15456 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15457 (single_reg_class): Use ira_reg_class_nregs instead of
15458 ira_reg_class_max_nregs.
15459 (process_bb_node_lives): Use pressure classes.
15460
15461 * ira-emit.c: Remove mentioning cover classes from the file. Use
15462 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15463 (change_loop): Use pressure classes.
15464 (modify_move_list): Call ira_set_allocno_class instead of
15465 ira_set_allocno_cover_class.
15466
15467 * ira-build.c: Remove mentioning cover classes from the file. Use
15468 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15469 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15470 ALLOCNO_UPDATED_CLASS_COST instead of
15471 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15472 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15473 (ira_create_allocno): Remove initialization of
15474 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15475 ALLOCNO_COLORABLE_P.
15476 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15477 Update conflict regs for the objects.
15478 (create_cap_allocno): Remove assert. Don't propagate
15479 ALLOCNO_AVAILABLE_REGS_NUM.
15480 (ira_free_allocno_costs): New function.
15481 (finish_allocno): Change a part of code into call of
15482 ira_free_allocno_costs.
15483 (low_pressure_loop_node_p): Use pressure classes.
15484 (object_range_compare_func): Don't compare classes.
15485 (setup_min_max_conflict_allocno_ids): Ditto.
15486
15487 * loop-invariant.c: Remove mentioning cover classes from the file.
15488 Use ira_pressure_classes and ira_pressure_classes_num instead of
15489 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
15490 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15491 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15492 Use reg_allocno_class instead of reg_cover_class.
15493 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15494 STACK_REG_COVER_CLASS.
15495 (get_regno_cover_class): Rename to get_regno_pressure_class.
15496 (move_loop_invariants): Initialize and finalize regstat.
15497
15498 * ira.c: Remove mentioning cover classes from the file. Add
15499 comments about coloring without cover classes. Use ALLOCNO_CLASS
15500 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15501 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15502 setup_class_subset_and_memory_move_costs.
15503 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15504 (setup_cover_and_important_classes): Rename to
15505 setup_allocno_and_important_classes.
15506 (setup_class_translate_array): New.
15507 (setup_class_translate): Call it for allocno and pressure classes.
15508 (cover_class_order): Rename to allocno_class_order.
15509 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15510 of ira_class_translate.
15511 (reorder_important_classes): Set up ira_important_class_nums.
15512 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15513 (print_class_cover): Rename to print_classes. Add parameter.
15514 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15515 Print pressure classes too.
15516 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15517 setup_reg_subclasses.
15518 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15519 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15520 (setup_prohibited_class_mode_regs): Use
15521 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15522 (clarify_prohibited_class_mode_regs): New function.
15523 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15524 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15525 (ira_init_once): Initialize them.
15526 (free_register_move_costs): Process them.
15527 (ira_init): Move calls of find_reg_classes and
15528 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15529 Call clarify_prohibited_class_mode_regs.
15530 (ira_no_alloc_reg): Remove.
15531 (too_high_register_pressure_p): Use pressure classes.
15532
15533 * sched-deps.c: Remove mentioning cover classes from the file.
15534 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15535 ira_pressure_classes and ira_pressure_classes_num instead of
15536 ira_reg_class_cover_size and ira_reg_class_cover.
15537 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15538 sched_regno_pressure_class instead of sched_regno_cover_class.
15539 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15540 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15541
15542 * ira.h: Add 2010 to Copyright.
15543 (ira_no_alloc_reg): Remove external.
15544 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15545 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15546 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15547 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15548 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15549 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15550 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15551 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15552 x_ira_no_alloc_regs.
15553 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15554 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15555 ira_allocno_classes_num and ira_allocno_classes.
15556 (ira_class_translate): Rename to ira_allocno_class_translate.
15557 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15558 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15559 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15560 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15561 (ira_no_alloc_regs): New.
15562
15563 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15564 classes from the file. Use ALLOCNO_CLASS instead of
15565 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15566 ALLOCNO_COVER_CLASS_COST.
15567 (regno_cover_class): Rename to regno_aclass.
15568 (record_reg_classes): Use ira_reg_class_subunion instead of
15569 ira_reg_class_union.
15570 (record_address_regs): Check overflow.
15571 (scan_one_insn): Ditto.
15572 (print_allocno_costs): Print total mem cost fore regional allocation.
15573 (print_pseudo_costs): Use REG_N_REFS.
15574 (find_costs_and_classes): Use classes intersected with them on the
15575 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15576 ira_reg_class_union. Use ira_allocno_class_translate and
15577 regno_aclass instead of ira_class_translate and regno_cover_class.
15578 Modify code for finding regno_aclass. Setup preferred classes for
15579 the next pass.
15580 (setup_allocno_cover_class_and_costs): Rename to
15581 setup_allocno_class_and_costs. Use regno_aclass instead of
15582 regno_cover_class. Use ira_set_allocno_class instead of
15583 ira_set_allocno_cover_class.
15584 (init_costs, finish_costs): Use regno_aclass instead of
15585 regno_cover_class.
15586 (ira_costs): Use setup_allocno_class_and_costs instead of
15587 setup_allocno_cover_class_and_costs.
15588 (ira_tune_allocno_costs_and_cover_classes): Rename to
15589 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15590 by processing objects. Use ira_reg_class_max_nregs instead of
15591 ira_reg_class_nregs.
15592
15593 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15594
15595 * sched-int.h: Remove mentioning cover classes from the file.
15596 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15597
15598 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15599 classes from the file.
15600 (struct reg_pref): Rename coverclass into allocnoclass.
15601 (reg_cover_class): Rename to reg_allocno_class.
15602
15603 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15604
15605 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15606
15607 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15608
15609 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15610
15611 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15612
15613 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15614
15615 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15616
15617 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15618
15619 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15620
15621 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15622
15623 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15624 (i386_ira_cover_classes): Ditto.
15625
15626 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15627
15628 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15629
15630 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15631
15632 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15633
15634 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15635
15636 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15637
15638 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15639 (mips_ira_cover_classes): Ditto.
15640
15641 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15642
15643 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15644
15645 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15646
15647 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15648
15649 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15650
15651 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15652 (IRA_COVER_CLASSES_VSX): Ditto.
15653
15654 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15655 (rs6000_ira_cover_classes): Ditto.
15656
15657 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15658
15659 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15660
15661 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15662
15663 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15664
15665 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15666
15667 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15668
15669 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15670
15671 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15672
15673 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15674
15675 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15676
15677 2011-03-29 Jakub Jelinek <jakub@redhat.com>
15678
15679 PR debug/48253
15680 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15681 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15682 dw_fde_unlikely_section_end_label, cold_in_std_section,
15683 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15684 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15685 fields.
15686 (output_fde): Use dw_fde_second_{begin,end} if second is
15687 true, otherwise dw_fde_{begin,end}.
15688 (output_call_frame_info): Test dw_fde_second_begin != NULL
15689 instead of dw_fde_switched_sections.
15690 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15691 fields, initialize new fields. Initialize in_std_section
15692 unconditionally from the first partition.
15693 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15694 dw_fde_second_begin is non-NULL.
15695 (dwarf2out_switch_text_section): Stop initializing removed
15696 dw_fde_struct fields, initialize new fields, initialize
15697 also dw_fde_end here. Set dw_fde_switch_cfi even when
15698 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15699 (struct var_loc_list_def): Add last_before_switch field.
15700 (arange_table, arange_table_allocated, arange_table_in_use,
15701 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15702 (size_of_aranges): Count !in_std_section and !second_in_std_section
15703 hunks in fdes, instead of looking at arange_table_in_use.
15704 (output_aranges): Add aranges_length argument, don't call
15705 size_of_aranges here. Instead of using aranges_table*
15706 emit ranges for fdes when !in_std_section resp.
15707 !second_in_std_section.
15708 (dw_loc_list): Break ranges crossing section switch.
15709 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
15710 use dw_fde_second_end instead of dw_fde_end as end of last range.
15711 (gen_subprogram_die): Don't call add_arange. Use
15712 dw_fde_{begin,end} for first partition and if switched
15713 section dw_fde_second_{begin,end} for the second.
15714 (var_location_switch_text_section_1,
15715 var_location_switch_text_section): New functions.
15716 (dwarf2out_begin_function): Initialize cold_text_section even
15717 when function_section () isn't text_section.
15718 (prune_unused_types): Don't walk arange_table.
15719 (dwarf2out_finish): Don't needlessly test
15720 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15721 If info_section_emitted, call size_of_aranges and if it indicates
15722 non-empty .debug_aranges, call output_aranges with the computed
15723 size. Stop using removed dw_fde_struct fields, use
15724 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15725 for second.
15726
15727 PR debug/48203
15728 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15729 create ENTRY_VALUE if incoming or address of incoming's MEM
15730 is a hard REG.
15731 * dwarf2out.c (mem_loc_descriptor): Don't emit
15732 DW_OP_GNU_entry_value of DW_OP_fbreg.
15733 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15734 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15735 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15736 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15737 ENTRY_VALUE_EXPs.
15738 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15739 is a REG_P or MEM_P with REG_P address, compute hash directly
15740 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15741 (preserve_only_constants): Don't clear VALUES forwaring
15742 ENTRY_VALUE to some other VALUE.
15743
15744 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15745
15746 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15747 instead of GEN_INT.
15748
15749 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15750
15751 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15752 block before expanding the statement.
15753 (expand_gimple_stmt_1): Likewise. Set them here...
15754 (expand_gimple_stmt): ...and not here. Tidy.
15755 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15756 unknown.
15757
15758 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15759
15760 * Makefile.in: New rule for cprop.o.
15761 * gcse.c: Move constant/copy propagation to cprop.c.
15762 (compute_local_properties): Only handle expression tables.
15763 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15764 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15765 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15766 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15767 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15768 compute_cprop_data, find_used_regs, try_replace_reg,
15769 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15770 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15771 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15772 find_bypass_set, reg_killed_on_edge, bypass_block,
15773 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15774 execute_rtl_cprop, pass_rtl_cprop): Move to...
15775 * cprop.c: ...here. New file, constant/copy propagation for RTL
15776 moved from gcse.c to here with minor cleanups in duplicated code.
15777
15778 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15779
15780 * config/i386/i386.c (flag_opts): Fix a typo in
15781 -mavx256-split-unaligned-store.
15782
15783 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15784
15785 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15786 LIBCALL_VALUE): Remove macros.
15787 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15788 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15789 (h8300_function_value, h8300_libcall_value,
15790 h8300_function_value_regno_p): New functions.
15791
15792 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15793
15794 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15795
15796 2011-03-28 Jeff Law <law@redhat.com>
15797
15798 * tree-ssa-threadupdate.c (redirect_edges): Call
15799 create_edge_and_update_destination_phis as needed.
15800 (create_edge_and_update_destination_phis): Accept new BB argument.
15801 All callers updated.
15802 (thread_block): Do not update the profile when threading around
15803 intermediate blocks.
15804 (thread_single_edge): Likewise.
15805 (determine_bb_domination_status): If BB is not a successor of the
15806 loop header, return NONDOMINATING.
15807 (register_jump_thread): Note when we register a jump thread around
15808 an intermediate block.
15809 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15810 (thread_across_edge): Use it.
15811
15812 2011-03-28 Tristan Gingold <gingold@adacore.com>
15813
15814 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15815 when for_return is 2.
15816
15817 2011-03-28 Jeff Law <law@redhat.com>
15818
15819 * var-tracking.c (canonicalize_values_mark): Delete unused
15820 lhs assignment.
15821 (canonicalize_values_star, set_variable_part): Likewise.
15822 (clobber_variable_part, delete_variable_part): Likewise.
15823
15824 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15825
15826 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15827
15828 2011-03-28 Martin Jambor <mjambor@suse.cz>
15829
15830 * tree-inline.c (expand_call_inline): Do not check that destination
15831 node is analyzed.
15832 (optimize_inline_calls): Assert that destination node is analyzed.
15833 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15834 not call tree_lowering_passes.
15835 * cgraph.h (cgraph_analyze_function): Declare.
15836 * cgraphunit.c (cgraph_analyze_function): Make public.
15837
15838 2011-03-28 Joseph Myers <joseph@codesourcery.com>
15839
15840 * config/sparc/sparc-opts.h: New.
15841 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15842 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15843 (sparc_option_override): Store processor_type enumeration rather
15844 than string in cpu_default. Remove name and enumeration from
15845 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15846 without using sparc_select. Use target_flags_explicit instead of
15847 fpu_option_set.
15848 * config/sparc/sparc.h (enum processor_type): Move to
15849 sparc-opts.h.
15850 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15851 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15852 HeaderInclude entry.
15853 (mcpu=, mtune=): Use Var and Enum.
15854 (sparc_processor_type): New Enum and EnumValue entries.
15855
15856 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15857 Iain Sandoe <iains@gcc.gnu.org>
15858
15859 PR target/48245
15860 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15861
15862 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15863
15864 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15865 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15866 Insert new statements at it in lieu of STMT.
15867 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15868 * tree-vect-stmts.c (vectorizable_store): Likewise.
15869 (vectorizable_load): Likewise.
15870
15871 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
15872
15873 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15874 (divtf3): Ditto.
15875 (multf3): Ditto.
15876 (subtf3): Ditto.
15877
15878 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15879
15880 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15881 unaligned 256bit load/store.
15882 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15883 (*avx_movdqu<avxmodesuffix>): Likewise.
15884
15885 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15886
15887 PR target/48288
15888 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15889 * config/pa/pa.md (iordi3): Use new predicate in expander.
15890 (iorsi3): Likewise.
15891
15892 2011-03-27 Anatoly Sokolov <aesok@post.ru>
15893
15894 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
15895 FUNCTION_VALUE_REGNO_P): Remove macros.
15896 * config/mips/mips-protos.h (mips_function_value): Remove.
15897 * config/mips/mips.c (mips_function_value): Rename to...
15898 (mips_function_value_1): ... this. Make static. Handle receiving
15899 the function type in 'fn_decl_or_type' argument.
15900 (mips_function_value, mips_libcall_value,
15901 mips_function_value_regno_p): New function.
15902 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15903 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15904
15905 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15906
15907 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15908 and -mavx256-split-unaligned-store.
15909 (ix86_option_override_internal): Split 32-byte AVX unaligned
15910 load/store by default.
15911 (ix86_avx256_split_vector_move_misalign): New.
15912 (ix86_expand_vector_move_misalign): Use it.
15913
15914 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15915 -mavx256-split-unaligned-store.
15916
15917 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15918 256bit load/store. Generate unaligned store on misaligned memory
15919 operand.
15920 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15921 256bit load/store.
15922 (*avx_movdqu<avxmodesuffix>): Likewise.
15923
15924 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15925 -mavx256-split-unaligned-store.
15926
15927 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15928
15929 PR target/38598
15930 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15931 Update commentary.
15932
15933 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15934
15935 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15936 opno arguments with an expand_operand. Use create_input_operand.
15937 (mips_prepare_builtin_target): Delete.
15938 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15939 functions.
15940 (mips_expand_builtin_direct): Use create_output_operand and
15941 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15942 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15943 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15944
15945 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
15946
15947 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15948 function.
15949 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15950
15951 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15952
15953 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15954 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15955 basic blocks and call commit_edge_insertions directly.
15956 (fixup_abnormal_edges): Move from here to...
15957 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15958 on the edges and return whether some have actually been inserted.
15959 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15960 compensation code.
15961
15962 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
15963
15964 PR rtl-optimization/48144
15965 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15966 (merge_expr_data): ... here.
15967 (av_set_intersect): Rename to av_set_code_motion_filter.
15968 Update all callers. Call merge_history_vect when an expression
15969 is found in both sets.
15970 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15971
15972 2011-03-26 Alan Modra <amodra@gmail.com>
15973
15974 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15975 cmodel medium addresses.
15976 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15977 64-bit gpr loads and stores.
15978 (rs6000_secondary_reload_ppc64): New function.
15979 * config/rs6000/rs6000-protos.h: Declare it.
15980 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15981
15982 2011-03-26 Alan Modra <amodra@gmail.com>
15983
15984 PR target/47487
15985 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15986 GNU Go in traceback table.
15987
15988 2011-03-25 Richard Henderson <rth@redhat.com>
15989
15990 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15991 if there are exactly 6 operands.
15992 (set_storage_via_setmem): Similarly.
15993
15994 2011-03-25 Kai Tietz <ktietz@redhat.com>
15995
15996 * collect2.c (write_c_file_stat): Handle backslash
15997 as right-hand directory separator.
15998 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15999 checking just for slash.
16000 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
16001 instead of checking for trailing slash.
16002 * gcc.c (record_temp_file): Use filename_cmp instead
16003 of strcmp.
16004 (do_spec_1): Likewise.
16005 (replace_outfile_spec_function): Likewise.
16006 (is_directory): Use filename_ncmp instead of strncmp.
16007 (print_multilib_info): Likewise.
16008 * gcov.c (find_source): Use filename_cmp instead
16009 instead of strcmp.
16010 (make_gcov_file_name): Fix order of slash/backslash
16011 checks.
16012 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
16013 (add_standard_paths): Likewise.
16014 * mips-tfile.c (saber_stop): Handle backslash.
16015 * prefix.c (update_path): Use filename_ncmp instead of
16016 strncmp.
16017 * profile.c (output_location): Use filename_cmp instead
16018 of strcmp.
16019 * read-md.c (handle_toplevel_file): Handle backslash.
16020 * tlink.c (frob_extension): Likewise.
16021 * tree-cfg.c (same_line_p): Use filename_cmp instead of
16022 strcmp.
16023 * tree-dump.c (dequeue_and_dump): Handle backslash.
16024 * tree.c (get_file_function_name): Likewise.
16025 * gengtype.c (read_input_list): Likewise.
16026 (get_file_realbasename): Likewise.
16027 (get_output_file_with_visibility): Use filename_cmp
16028 instead of strcmp.
16029
16030 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
16031
16032 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
16033 case to VFPv1.
16034
16035 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16036
16037 * fold-const.c (expr_location_or): New function.
16038 (fold_truth_not_expr): Call it.
16039
16040 2011-03-25 Jeff Law <law@redhat.com>
16041
16042 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
16043 va_end.
16044 * c-family/c-common.c (def_fn_type): Likewise.
16045 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
16046 * emit-rtl.c (gen_rtvec): Likewise.
16047 * lto/lto-lang.c (def_fn_type): Likewise.
16048
16049 2011-03-25 Richard Guenther <rguenther@suse.de>
16050
16051 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
16052 also generate copies.
16053 (fini_copy_prop): Handle constant values properly.
16054
16055 2011-03-25 Jakub Jelinek <jakub@redhat.com>
16056
16057 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
16058 mode size instead of bitsize with DWARF2_ADDR_SIZE.
16059 (hash_loc_operands, compare_loc_operands): Handle
16060 DW_OP_GNU_entry_value.
16061
16062 2011-03-25 Kai Tietz <ktietz@redhat.com>
16063
16064 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
16065 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
16066 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
16067 comment and use macro TARGET_64BIT_MS_ABI instead.
16068 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
16069 and change default behavior for 32-bit MS_ABI.
16070 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
16071 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
16072 32-bit, too.
16073 (ix86_cfun_abi): Likewise.
16074 (ix86_maybe_switch_abi): Adjust comment.
16075 (init_cumulative_args): Check for bit-ness in MS_ABI case.
16076 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
16077 instead of checking for SYSV_ABI.
16078 (ix86_nsaved_sseregs): Likewise.
16079 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
16080 to 16 bytes.
16081 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
16082 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
16083 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
16084 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
16085 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
16086
16087 2011-03-25 Richard Guenther <rguenther@suse.de>
16088
16089 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
16090 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16091 (verify_gimple): Remove.
16092 * tree-cfg.c (verify_gimple_call): Merge verification
16093 from verify_stmts.
16094 (verify_gimple_phi): Merge verification from verify_stmts.
16095 (verify_gimple_label): New function.
16096 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
16097 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16098 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
16099 (verify_stmts): Rename to verify_gimple_in_cfg.
16100 (verify_gimple_in_cfg): New function.
16101 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
16102 * tree-ssa.c (verify_ssa): Likewise.
16103 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
16104
16105 2011-03-25 Richard Guenther <rguenther@suse.de>
16106
16107 * passes.c (init_optimization_passes): Add FRE pass after
16108 early SRA.
16109
16110 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
16111 Andrew Stubbs <ams@codesourcery.com>
16112
16113 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
16114 for Cortex-A8.
16115 (arm_movdi_vfp_cortexa8): New pattern.
16116 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
16117 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
16118 instructions when tuning for Cortex-A8. Set attribute "arch".
16119 * config/arm/arm.md: Move include arm-tune.md up a bit.
16120 (define_attr "arch"): Add "onlya8" and "nota8" values.
16121 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
16122
16123 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16124
16125 PR bootstrap/48282
16126 Revert:
16127 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16128
16129 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16130 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16131 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16132 * passes.c (init_optimization_passes): Move
16133 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16134
16135 2011-03-25 Kai Tietz <ktietz@redhat.com>
16136
16137 * c-typeck.c (comptypes_internal): Replace target
16138 hook call of comp_type_attributes by version in tree.c file.
16139 * gimple.c (gimple_types_compatible_p_1): Likewise.
16140 * tree-ssa.c (useless_type_conversion_p): Likewise.
16141 * tree.c (build_type_attribute_qual_variant): Likewise.
16142 (attribute_value_equal): New static helper function.
16143 (comp_type_attributes): New function.
16144 (merge_attributes): Use attribute_value_equal for comparison.
16145 (attribute_list_contained): Likewise.
16146 * tree.h (comp_type_attributes): New prototype.
16147
16148 2011-03-25 Richard Guenther <rguenther@suse.de>
16149
16150 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
16151 of complex types at -O0.
16152 (verify_gimple_assign_binary): Likewise.
16153 (verify_gimple_assign_ternary): Likewise.
16154
16155 2011-03-24 Mark Wielaard <mjw@redhat.com>
16156
16157 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
16158 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
16159
16160 2011-03-24 Mark Wielaard <mjw@redhat.com>
16161
16162 PR debug/48041
16163 * dwarf2out.c (output_abbrev_section): Only write table when
16164 abbrev_die_table_in_use > 1.
16165
16166 2011-02-24 Richard Henderson <rth@redhat.com>
16167
16168 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
16169 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
16170 (alpha_expand_unaligned_load_words): Use extql.
16171 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
16172 (emit_insxl): Handle all modes for consistency.
16173
16174 2011-02-24 Richard Henderson <rth@redhat.com>
16175
16176 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
16177 (alpha_expand_unaligned_load): Likewise.
16178 (alpha_expand_unaligned_store): Likewise.
16179 (alpha_expand_unaligned_load_words): Likewise.
16180 (alpha_expand_unaligned_store_words): Likewise.
16181 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
16182 (alpha_split_lock_test_and_set_12): Likewise.
16183 (print_operand, alpha_fold_builtin_extxx): Likewise.
16184 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
16185 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
16186 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
16187 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
16188 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
16189 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
16190 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
16191 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
16192 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
16193 (extwl, extll, extql): Similarly.
16194 (inswh, inslh, insqh): Similarly.
16195 (mskbl, mskwl, mskll, mskql): Similarly.
16196 (mskwh, msklh, mskqh): Similarly.
16197
16198 2011-02-24 Richard Henderson <rth@redhat.com>
16199
16200 * config/alpha/alpha.md (attribute isa): Add er, ner.
16201 (attribute enabled): Handle them.
16202 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
16203
16204 2011-02-24 Richard Henderson <rth@redhat.com>
16205
16206 * config/alpha/alpha.md (attribute isa): Add vms.
16207 (attribute enabled): Handle it.
16208 (*movsf): Merge *movsf_{nofix,fix,nofp}.
16209 (*movdf): Merge *movdf_{nofix,fix,nofp}.
16210 (*movtf): Rename from *movtf_internal for consistency.
16211 (*movsi): Merge with *movsi_nt_vms.
16212 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16213 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16214 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16215 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16216
16217 2011-02-24 Richard Henderson <rth@redhat.com>
16218
16219 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16220 (extendqisi2, extendhisi2): Likewise.
16221 (extendqidi2): Simplify BWX/non-BWX expansions.
16222 (extendhidi2): Similarly.
16223
16224 2011-02-24 Richard Henderson <rth@redhat.com>
16225
16226 * config/alpha/alpha.md (attribute isa): New.
16227 (attribute enabled): New.
16228 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16229 (zero_extendqisi2, zero_extendqidi2): Similarly.
16230 (zero_extendhisi2, zero_extendhidi2): Similarly.
16231 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16232
16233 2011-02-24 Richard Henderson <rth@redhat.com>
16234
16235 * config/alpha/predicates.md (input_operand): Revert last change;
16236 update comment to mention 32-bit VMS rather than Windows.
16237
16238 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16239
16240 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16241 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16242 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16243 * passes.c (init_optimization_passes): Move
16244 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16245
16246 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16247
16248 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16249
16250 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16251
16252 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16253 correctly.
16254
16255 2011-03-24 Jakub Jelinek <jakub@redhat.com>
16256
16257 PR debug/48204
16258 * simplify-rtx.c (simplify_const_unary_operation): Call
16259 real_convert when changing mode class with FLOAT_EXTEND.
16260
16261 2011-03-24 Nick Clifton <nickc@redhat.com>
16262
16263 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16264 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16265 * config/rx/rx.c (rx_option_override): Set align_jumps,
16266 align_loops and align_labels if not set by the user.
16267 (rx_align_for_label): New function.
16268 (rx_max_skip_for_label): New function.
16269 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16270 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16271 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16272 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16273 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16274
16275 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16276
16277 PR rtl-optimization/48263
16278 * optabs.c (expand_binop_directly): Reinstate convert_modes code
16279 and original commutative_p handling. Use maybe_gen_insn.
16280
16281 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16282
16283 * reload.c (find_reloads_subreg_address): Add address_reloaded
16284 parameter and return true there if the full address has been
16285 reloaded.
16286 (find_reloads_toplev): Pass address_reloaded flag.
16287 (find_reloads_address_1): Don't use address_reloaded parameter.
16288
16289 2011-03-24 Jeff Law <law@redhat.com>
16290
16291 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16292 unused variable "ann".
16293 (remove_unused_locals): Likewise.
16294
16295 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16296 statement.
16297
16298 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16299 after it is freed.
16300
16301 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16302
16303 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16304 for invalid symbolic addresses.
16305 (s390_secondary_reload): Don't use s390_check_symref_alignment for
16306 larl operands.
16307
16308 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16309
16310 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16311 the argument in calls to fold_truth_not_expr.
16312
16313 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16314
16315 * tree.c (record_node_allocation_statistics): New function.
16316 (make_node_stat, copy_node_stat, build_string): Call it.
16317 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16318 (build1_stat, build_omp_clause): Likewise.
16319
16320 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16321
16322 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16323 last commit.
16324
16325 2011-03-24 Richard Guenther <rguenther@suse.de>
16326
16327 PR tree-optimization/48271
16328 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16329 blocks that still exist.
16330
16331 2011-03-24 Richard Guenther <rguenther@suse.de>
16332
16333 PR tree-optimization/48270
16334 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16335 not free datarefs before ddrs.
16336
16337 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16338
16339 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16340 from the address built for a reference with variable offset.
16341
16342 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16343
16344 PR target/48237
16345 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16346 alternatives that can be handled with movq or movabsq insn.
16347 (*movdf_internal): Disable for !TARGET_64BIT.
16348 (*movdf_internal_nointeger): Ditto.
16349 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16350
16351 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16352
16353 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16354 (FUNCTION_ARG_ADVANCE): Likewise.
16355 * tm.texi.in: Change references to them to hook references.
16356 * tm.texi: Regenerate.
16357 * targhooks.c (default_function_arg): Eliminate check for target macro.
16358 (default_function_incoming_arg): Likewise.
16359 (default_function_arg_advance): Likewise.
16360 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16361 (function_arg_advance): Likewise.
16362 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16363
16364 2011-03-24 Richard Guenther <rguenther@suse.de>
16365
16366 PR middle-end/48269
16367 * tree-object-size.c (addr_object_size): Do not double-account
16368 for MEM_REF offsets.
16369
16370 2011-03-24 Diego Novillo <dnovillo@google.com>
16371
16372 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16373 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16374 (lto_input_data_block): Move from lto-opts.c. Make extern.
16375 Update all users.
16376 (lto_input_string): Rename from input_string. Make extern.
16377 Update all users.
16378 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16379 output_string_with_length.
16380 Output 0 to indicate a non-NULL string. Update all callers to
16381 not emit 0.
16382 (lto_output_string): Rename from output_string. Make extern.
16383 Update all users.
16384 (lto_output_decl_state_streams): Make extern.
16385 (lto_output_decl_state_refs): Make extern.
16386 * lto-streamer.h (lto_input_string): Declare.
16387 (lto_input_data_block): Declare.
16388 (lto_output_string): Declare.
16389 (lto_output_string_with_length): Declare.
16390 (lto_output_decl_state_streams): Declare.
16391 (lto_output_decl_state_refs): Declare.
16392
16393 2011-03-24 Richard Guenther <rguenther@suse.de>
16394
16395 PR tree-optimization/46562
16396 * tree.c (build_invariant_address): New function.
16397 * tree.h (build_invariant_address): Declare.
16398 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16399 a renamed function moved ...
16400 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16401 Take valueization callback parameter.
16402 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16403 * gimple-fold.h: New file.
16404 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16405 (ccp_fold, fold_const_aggregate_ref,
16406 fold_ctor_reference, fold_nonarray_ctor_reference,
16407 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16408 get_base_constructor): Move ...
16409 * gimple-fold.c: ... here.
16410 (gimple_fold_stmt_to_constant_1): New function
16411 split out from ccp_fold. Take a valueization callback parameter.
16412 Valueize all operands.
16413 (gimple_fold_stmt_to_constant): New wrapper function.
16414 (fold_const_aggregate_ref_1): New function split out from
16415 fold_const_aggregate_ref. Take a valueization callback parameter.
16416 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16417 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16418 invariant POINTER_PLUS_EXPRs to invariant form.
16419 (vn_valueize): New function.
16420 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16421 * tree-vrp.c (vrp_valueize): New function.
16422 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16423 to fold statements to constants.
16424 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16425 function declarations.
16426 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16427 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16428
16429 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16430
16431 * config/h8300/predicates.md (jump_address_operand): Fix register
16432 mode check.
16433
16434 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
16435
16436 * doc/invoke.texi (max-stores-to-sink): Document.
16437 * params.h (MAX_STORES_TO_SINK): Define.
16438 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16439 if either vectorization or if-conversion is disabled.
16440 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16441 tree-vect-data-refs.c vect_equal_offsets.
16442 (dr_equal_offsets_p): New function.
16443 (find_data_references_in_bb): Remove static.
16444 * tree-data-ref.h (find_data_references_in_bb): Declare.
16445 (dr_equal_offsets_p): Likewise.
16446 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16447 (vect_drs_dependent_in_basic_block): Update calls to
16448 vect_equal_offsets.
16449 (vect_check_interleaving): Likewise.
16450 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16451 (cond_if_else_store_replacement): Rename to...
16452 (cond_if_else_store_replacement_1): ... this. Change arguments and
16453 documentation.
16454 (cond_if_else_store_replacement): New function.
16455 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16456 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16457
16458 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16459
16460 PR target/46934
16461 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16462 to subtract lower bound instead of GEN_INT().
16463
16464 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16465
16466 PR other/48179
16467 PR other/48221
16468 PR other/48234
16469 * doc/extend.texi (Alignment): Move section to match order in TOC.
16470 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16471 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16472
16473 2011-03-23 Jeff Law <law@redhat.com>
16474
16475 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16476 before removing the edge.
16477
16478 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16479 it may have been freed by redirect_branch_edge or
16480 redirect_edge_succ_nodup.
16481
16482 2011-03-23 Richard Guenther <rguenther@suse.de>
16483
16484 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16485 (check_va_list_escapes): Likewise.
16486 (check_all_va_list_escapes): Likewise.
16487
16488 2011-03-23 Richard Guenther <rguenther@suse.de>
16489
16490 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16491 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16492 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16493 (alias.o): Likewise.
16494 (ipa-type-escape.o): Remove.
16495 (ipa-struct-reorg.o): Likewise.
16496 (GTFILES): Remove ipa-struct-reorg.c.
16497 * alias.c: Do not include ipa-type-escape.h.
16498 * tree-ssa-alias.c: Likewise.
16499 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16500 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16501 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16502 and ipa-type-escape passes.
16503 * tree-pass.h (pass_ipa_type_escape): Remove.
16504 (pass_ipa_struct_reorg): Likewise.
16505 * ipa-struct-reorg.h: Remove.
16506 * ipa-struct-reorg.c: Likewise.
16507 * ipa-type-escape.h: Likewise.
16508 * ipa-type-escape.c: Likewise.
16509 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16510 (--param struct-reorg-cold-struct-ratio): Likewise.
16511 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16512 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16513 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16514
16515 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16516
16517 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16518 cpu attribute value.
16519 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16520 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16521 * config/s390/s390.c (processor_flags_table): New constant array.
16522 (s390_handle_arch_option): Remove.
16523 (s390_handle_option): Remove s390_handle_arch_option invocations
16524 and OPT_mwarn_framesize_ handling.
16525 (s390_option_override): Remove s390_handle_arch_option invocation.
16526 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16527 warnings.
16528 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16529 * config/s390/s390.opt (s390_tune, s390_arch)
16530 (march=): Replace s390_arch_option enum and values with
16531 processor_type. Set variable name to s390_arch. Set
16532 initialization value.
16533 (mtune=): Replace s390_arch_option with processor_type. Set
16534 variable name to s390_tune. Set initialization value.
16535
16536 2011-03-23 Julian Brown <julian@codesourcery.com>
16537
16538 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16539 accesses which are not naturally aligned.
16540
16541 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16542
16543 PR target/47553
16544 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16545
16546 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16547
16548 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16549 parameter from "int" to "enum insn_code".
16550 (expand_operand_type): New enum.
16551 (expand_operand): New structure.
16552 (create_expand_operand): New function.
16553 (create_fixed_operand, create_output_operand): Likewise
16554 (create_input_operand, create_convert_operand_to): Likewise.
16555 (create_convert_operand_from, create_address_operand): Likewise.
16556 (create_integer_operand): Likewise.
16557 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16558 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16559 (expand_insn, expand_jump_insn): Likewise.
16560 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16561 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16562 (expand_movstr, expand_builtin___clear_cache): Likewise.
16563 (expand_builtin_lock_release): Likewise.
16564 * explow.c (allocate_dynamic_stack_space): Likewise.
16565 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16566 and use the default handling in that case.
16567 * expmed.c (check_predicate_volatile_ok): Delete.
16568 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16569 (emit_cstore): Likewise.
16570 * expr.c (emit_block_move_via_movmem): Likewise.
16571 (set_storage_via_setmem, expand_assignment): Likewise.
16572 (emit_storent_insn, try_casesi): Likewise.
16573 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16574 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16575 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16576 (expand_twoval_unop, expand_twoval_binop): Likewise.
16577 (expand_unop_direct, emit_indirect_jump): Likewise.
16578 (emit_conditional_move, vector_compare_rtx): Likewise.
16579 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16580 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16581 (expand_sync_lock_test_and_set): Likewise.
16582 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16583 (emit_unop_insn): Likewise.
16584 (expand_copysign_absneg): Change icode to an insn_code.
16585 (create_convert_operand_from_type): New function.
16586 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16587 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16588 (expand_insn, expand_jump_insn): Likewise.
16589 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16590 than const_int_operand for operand 2.
16591
16592 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16593
16594 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16595 if possible.
16596
16597 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16598
16599 * emit-rtl.c (emit_pattern_before_noloc): New function.
16600 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16601 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16602 (emit_pattern_after_noloc): New function.
16603 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16604 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16605
16606 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16607
16608 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16609 (__ffsDI2): Likewise.
16610
16611 2011-03-22 Richard Henderson <rth@redhat.com>
16612
16613 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16614 of !TARGET_ABI_OPEN_VMS.
16615 (alpha_trampoline_init, alpha_start_function): Likewise.
16616 (alpha_expand_epilogue, alpha_file_start): Likewise.
16617 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16618 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16619 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16620 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16621 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16622
16623 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16624
16625 * config/s390/s390-opts.h: New.
16626 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16627 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16628 s390_stack_guard): Remove.
16629 (s390_handle_arch_option): Return void. Take enum
16630 s390_arch_option value instead of string and searching array.
16631 (s390_handle_option): Don't assert that global structures are in
16632 use. Access variables via opts pointer. Use error_at. Don't use
16633 sscanf for -mstack-guard= or -mstack-size=. Update call to
16634 s390_handle_arch_option.
16635 (s390_option_override): Update call to s390_handle_arch_option.
16636 (s390_emit_prologue): Use %d format for s390_stack_size in
16637 diagnostic. Use %wd for HOST_WIDE_INT.
16638 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16639 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16640 * config/s390/s390.opt (config/s390/s390-opts.h): New
16641 HeaderInclude entry.
16642 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16643 s390_arch_flags, s390_warn_framesize): New Variable entries.
16644 (s390_arch_option): New Enum and EnumValue entries.
16645 (march=): Use Enum instead of Var.
16646 (mstack-guard=, mstack-size=): Use UInteger and Var.
16647 (mtune=): Use Enum.
16648
16649 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16650
16651 * config/score/score.c (score_handle_option): Don't assert that
16652 global structures are in use. Access target_flags via opts
16653 pointer. Use value of -march= option to determine target_flags
16654 settings.
16655 * config/score/score.opt (march=): Use Enum.
16656 (score_arch): New Enum and EnumValue entries.
16657
16658 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16659
16660 * config/mep/mep.c (option_mtiny_specified): Remove.
16661 (mep_option_override): Move register handling for -mivc2 from
16662 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16663 instead of option_mtiny_specified.
16664 (mep_handle_option): Access target_flags via opts pointer. Don't
16665 assert that global structures are in use. Defer part of -mivc2
16666 handling and move it to mep_option_override.
16667 * config/mep/mep.opt (IVC2): New Mask entry.
16668 (mivc2): Use Var and Defer instead of Mask.
16669
16670 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16671
16672 * config/v850/v850-opts.h: New.
16673 * config/v850/v850.c (small_memory): Replace with
16674 small_memory_physical_max array. Make that array static const.
16675 (v850_handle_memory_option): Take integer value of argument. Take
16676 gcc_options pointer, option text and location. Return void.
16677 Update for changes to small memory structures.
16678 (v850_handle_option): Access target_flags via opts pointer. Don't
16679 assert that global structures are in use. Update calls to
16680 v850_handle_memory_option.
16681 (v850_encode_data_area): Update references to small memory settings.
16682 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16683 (enum small_memory_type): Move to v850-opts.h.
16684 * config/v850/v850.opt (config/v850/v850-opts.h): New
16685 HeaderInclude entry.
16686 (small_memory_max): New Variable entry.
16687 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16688 (mtda, mzda): Likewise.
16689
16690 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16691
16692 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16693 pointer. Don't assert that global structures are in use.
16694
16695 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16696
16697 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16698 via opts pointer. Don't assert that global structures are in use.
16699
16700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16701
16702 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16703 (munix=93): Use Var.
16704 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16705 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16706 * config/pa/pa-opts.h: New.
16707 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16708 (pa_handle_option): Don't assert that global structures are in
16709 use. Access target_flags via opts pointer. Don't handle
16710 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16711 OPT_munix_98 here.
16712 (pa_option_override): Handle deferred OPT_mfixed_range_.
16713
16714 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16715
16716 * config/mn10300/mn10300-opts.h: New.
16717 * config/mn10300/mn10300.c (mn10300_processor,
16718 mn10300_tune_string): Remove.
16719 (mn10300_handle_option): Don't assert that global structures are
16720 in use. Access mn10300_processor via opts pointer. Don't handle
16721 OPT_mtune_ here.
16722 * config/mn10300/mn10300.h (enum processor_type): Move to
16723 mn10300-opts.h.
16724 (mn10300_processor): Remove.
16725 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16726 HeaderInclude entry.
16727 (mn10300_processor): New Variable entry.
16728 (mtune=): Use Var.
16729
16730 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16731
16732 * config/microblaze/microblaze.c: Don't include opts.h.
16733 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16734 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16735 (mno-clearbss): Use Var and Warn.
16736
16737 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16738
16739 * config/m32r/m32r-opts.h: New.
16740 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16741 (m32r_handle_option): Don't assert that global structures are in
16742 use. Access target_flags and m32r_cache_flush_func via opts
16743 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16744 OPT_mno_flush_trap here.
16745 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16746 include of m32r-opts.h.
16747 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16748 HeaderInclude entry.
16749 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16750 (mmodel=): Use Enum and Var.
16751 (m32r_model): New Enum and EnumValue entries.
16752 (mno-flush-trap): Use Var.
16753 (msdata=): Use Enum and Var.
16754 (m32r_sdata): New Enum and EnumValue entries.
16755
16756 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16757
16758 * config/m32c/m32c.c: Don't include opts.h.
16759 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16760 m32c_handle_option): Remove.
16761 (m32c_option_override): Check global_options_set.x_target_memregs
16762 instead of target_memregs_set.
16763 * config/m32c/m32c.h (target_memregs): Remove.
16764 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16765 variable.
16766
16767 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16768
16769 * config/iq2000/iq2000-opts.h: New.
16770 * config/iq2000/iq2000.c: Don't include opts.h.
16771 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16772 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16773 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16774 HeaderInclude entry.
16775 (iq2000_tune): New Variable entry.
16776 (march=): Add comment. Use Enum.
16777 (iq2000_arch): New Enum and EnumValue entries.
16778 (mcpu=): Use Enum and Var.
16779 (iq2000_tune): New Enum and EnumValue entries.
16780
16781 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16782
16783 * config/ia64/ia64-opts.h: New.
16784 * config/ia64/ia64.c (ia64_tune): Remove.
16785 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16786 here. Use error_at.
16787 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16788 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16789 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16790 HeaderInclude entry.
16791 (ia64_tune): New Variable entry.
16792 (mfixed-range=): Use Defer and Var.
16793 (mtune=): Use Enum and Var.
16794 (ia64_tune): New Enum and EnumValue entries.
16795
16796 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16797
16798 * config/frv/frv-opts.h: New.
16799 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16800 frv-opts.h.
16801 (frv_cpu_type): Remove.
16802 * config/frv/frv.c: Don't include opts.h.
16803 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16804 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16805 (frv_cpu_type): New Variable entry.
16806 (frv_cpu): New Enum and EnumValue entries.
16807
16808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16809
16810 * config/cris/cris.c (cris_handle_option): Access target_flags via
16811 opts pointer. Don't assert that global structures are in use.
16812 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16813 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16814
16815 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16816
16817 * config/bfin/bfin-opts.h: New.
16818 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16819 bfin_si_revision, bfin_workarounds): Remove.
16820 (bfin_cpus): Make static const.
16821 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16822 not bfin_lib_id_given.
16823 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16824 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16825 pointer. Use error_at. Don't assert that global structures are in use.
16826 * config/bfin/bfin.h: Include bfin-opts.h.
16827 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16828 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16829 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16830 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16831 entries.
16832
16833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16834
16835 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16836 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16837 or -msoft-float here.
16838 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16839 -msoft-float and -mhard-float.
16840 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
16841 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16842 msoft-float.
16843 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16844 -msoft-float.
16845 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16846 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16847 not mhard-float.
16848 (LIBGCC_SPEC): Don't handle -msoft-float.
16849 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16850 -mhard-float.
16851 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16852 msoft-float.
16853 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16854 -mfloat-abi=*, not -msoft-float and -mhard-float.
16855 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16856 -msoft-float.
16857 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16858 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16859 mhard-float and msoft-float.
16860 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16861 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16862 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16863 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16864 mhard-float.
16865 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16866 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16867 msoft-float.
16868 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16869 not mhard-float.
16870 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16871 not msoft-float.
16872
16873 2011-03-22 Richard Henderson <rth@redhat.com>
16874
16875 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16876 TARGET_ABI_WINDOWS_NT.
16877 (alpha_output_function_end_prologue): Likewise.
16878 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16879 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16880 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16881 (trap, *movsi_nt_vms): Likewise.
16882 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16883 (*tablejump_osf_nt_internal): Remove.
16884 * config/alpha/predicates.md (input_operand): Only test Pmode.
16885
16886 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16887
16888 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16889 via opts pointer. Use error_at. Don't assert that global
16890 structures are in use.
16891
16892 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16893
16894 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16895 (ix86_handle_option): Access ix86_isa_flags and
16896 ix86_isa_flags_explicit via opts pointer. Don't assert that
16897 global structures are in use.
16898 (ix86_function_specific_save, ix86_function_specific_restore):
16899 Update ix86_isa_flags_explicit field name.
16900 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
16901 (ix86_isa_flags_explicit): Rename TargetSave entry to
16902 x_ix86_isa_flags_explicit.
16903
16904 2011-03-22 Richard Henderson <rth@redhat.com>
16905
16906 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16907 (alpha_option_override, direct_return): Likewise.
16908 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16909 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16910 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16911 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16912 (alpha_expand_epilogue, alpha_end_function): Likewise.
16913 (alpha_init_libfuncs): Likewise.
16914 (struct machine_function): Remove unicosmk members.
16915 (print_operand) ['t']: Remove.
16916 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16917 unicosmk_output_module_name, unicosmk_output_common,
16918 current_section_align, unicosmk_output_text_section_asm_op,
16919 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16920 unicosmk_section_type_flags, unicosmk_unique_section,
16921 unicosmk_asm_named_section, unicosmk_insert_attributes,
16922 unicosmk_output_align, unicosmk_defer_case_vector,
16923 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16924 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16925 unicosmk_output_ssib, unicosmk_add_call_info_word,
16926 unicosmk_extern_head, unicosmk_output_default_externs,
16927 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16928 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16929 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16930 * config/alpha/alpha-protos.h: Update.
16931 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16932 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16933 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16934 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16935 (*mulsi_se, mulvsi3): Likewise.
16936 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16937 (*divmodsi_internal, call, call_value, realign): Likewise.
16938 (moddi3, umoddi3): Likewise; remove duplicate expander.
16939 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16940 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16941 (*movdi_nofix): Remove r/U alternative.
16942 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16943 * config/alpha/constraints.md ("U"): Remove.
16944 * config/alpha/predicates.md (call_operand"): Don't test
16945 TARGET_ABI_UNICOSMK.
16946
16947 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16948
16949 * target.def (handle_option): Take gcc_options and
16950 cl_decoded_option pointers and location_t.
16951 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16952 * doc/tm.texi: Regenerate.
16953 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16954 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16955 * lto-opts.c (lto_reissue_options): Generate option structure for
16956 targetm.handle_option call.
16957 * opts.c (target_handle_option): Update call to
16958 targetm.handle_option. Remove assertions about values now passed
16959 down to hook.
16960 * targhooks.c (default_target_handle_option): New.
16961 * targhooks.h (default_target_handle_option): Declare.
16962 * config/alpha/alpha.c: Include opts.h.
16963 (alpha_handle_option): Update to new hook interface.
16964 * config/arm/arm.c: Include opts.h.
16965 (arm_handle_option): Update to new hook interface.
16966 * config/arm/t-arm (arm.o): Update dependencies.
16967 * config/bfin/bfin.c: Include opts.h.
16968 (bfin_handle_option): Update to new hook interface.
16969 * config/cris/cris.c: Include opts.h.
16970 (cris_handle_option): Update to new hook interface.
16971 * config/frv/frv.c: Include opts.h.
16972 (frv_handle_option): Update to new hook interface.
16973 * config/i386/i386.c: Include opts.h.
16974 (ix86_handle_option): Update to new hook interface.
16975 (ix86_valid_target_attribute_inner_p): Generate option structure
16976 for call to ix86_handle_option.
16977 * config/i386/t-i386 (i386.o): Update dependencies.
16978 * config/ia64/ia64.c: Include opts.h.
16979 (ia64_handle_option): Update to new hook interface.
16980 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16981 * config/iq2000/iq2000.c: Include opts.h.
16982 (iq2000_handle_option): Update to new hook interface.
16983 * config/m32c/m32c.c: Include opts.h.
16984 (m32c_handle_option): Update to new hook interface.
16985 * config/m32r/m32r.c: Include opts.h.
16986 (m32r_handle_option): Update to new hook interface.
16987 * config/m68k/m68k.c: Include opts.h.
16988 (m68k_handle_option): Update to new hook interface.
16989 * config/mep/mep.c: Include opts.h.
16990 (mep_handle_option): Update to new hook interface.
16991 * config/microblaze/microblaze.c: Include opts.h.
16992 (microblaze_handle_option): Update to new hook interface.
16993 * config/mips/mips.c: Include opts.h.
16994 (mips_handle_option): Update to new hook interface.
16995 * config/mn10300/mn10300.c: Include opts.h.
16996 (mn10300_handle_option): Update to new hook interface.
16997 * config/pa/pa.c: Include opts.h.
16998 (pa_handle_option): Update to new hook interface.
16999 * config/pdp11/pdp11.c: Include opts.h.
17000 (pdp11_handle_option): Update to new hook interface.
17001 * config/rs6000/rs6000.c: Include opts.h.
17002 (rs6000_handle_option): Update to new hook interface.
17003 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
17004 * config/rx/rx.c: Include opts.h.
17005 (rx_handle_option): Update to new hook interface.
17006 * config/s390/s390.c: Include opts.h.
17007 (s390_handle_option): Update to new hook interface.
17008 * config/score/score.c: Include opts.h.
17009 (score_handle_option): Update to new hook interface.
17010 * config/sh/sh.c: Include opts.h.
17011 (sh_handle_option): Update to new hook interface.
17012 * config/sparc/sparc.c: Include opts.h.
17013 (sparc_handle_option): Update to new hook interface.
17014 * config/v850/v850.c: Include opts.h.
17015 (v850_handle_option): Update to new hook interface.
17016
17017 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17018
17019 * gcc.c (driver_unknown_option_callback): Only permit and save
17020 unknown -Wno- options.
17021 (driver_wrong_lang_callback): Save options directly instead of via
17022 driver_unknown_option_callback.
17023
17024 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
17025
17026 * combine.c (simplify_set): Try harder to find the best CC mode when
17027 simplifying a nested COMPARE on the RHS.
17028
17029 2011-03-22 Joseph Myers <joseph@codesourcery.com>
17030
17031 * config/alpha/gnu.h: Remove.
17032 * config/arc: Remove directory.
17033 * config/arm/netbsd.h: Remove.
17034 * config/arm/t-pe: Remove.
17035 * config/crx: Remove directory.
17036 * config/i386/netbsd.h: Remove.
17037 * config/m68hc11: Remove directory.
17038 * config/m68k/uclinux-oldabi.h: Remove.
17039 * config/mcore/mcore-pe.h: Remove.
17040 * config/mcore/t-mcore-pe: Remove.
17041 * config/netbsd-aout.h: Remove.
17042 * config/rs6000/gnu.h: Remove.
17043 * config/sh/sh-symbian.h: Remove.
17044 * config/sh/symbian-base.c: Remove.
17045 * config/sh/symbian-c.c: Remove.
17046 * config/sh/symbian-cxx.c: Remove.
17047 * config/sh/symbian-post.h: Remove.
17048 * config/sh/symbian-pre.h: Remove.
17049 * config/sh/t-symbian: Remove.
17050 * config/svr3.h: Remove.
17051 * config/vax/netbsd.h: Remove.
17052 * config.build: Don't handle i[34567]86-*-pe.
17053 * config.gcc: Remove handling of deprecations for most deprecated
17054 targets.
17055 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
17056 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
17057 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
17058 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
17059 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
17060 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
17061 Remove cases.
17062 * config.host: Don't handle i[34567]86-*-pe.
17063 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
17064 (ASM_SPEC32): Don't handle -mcall-gnu.
17065 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
17066 -mcall-gnu.
17067 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
17068 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
17069 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17070 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
17071 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
17072 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
17073 conditional on SYMBIAN.
17074 * configure.ac: Don't handle powerpc*-*-gnu*.
17075 * configure: Regenerate.
17076 * doc/extend.texi (interrupt attribute): Don't mention CRX.
17077 * doc/install-old.texi (m6811, m6812): Don't mention.
17078 * doc/install.texi (arc-*-elf*): Don't document multilib option.
17079 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
17080 (m68k-uclinuxoldabi): Don't mention.
17081 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
17082 Remove.
17083 (-mcall-gnu): Remove.
17084 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
17085 families): Remove constraint documentation.
17086
17087 2011-03-22 Marius Strobl <marius@FreeBSD.org>
17088
17089 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
17090 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
17091 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
17092
17093 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17094
17095 PR target/48226
17096 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
17097 vector when peeking at the next token for vector, don't expand the
17098 keywords.
17099
17100 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
17101
17102 * config/avr/avr-protos.h (expand_epilogue): Change prototype
17103 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
17104 * config/avr/avr.c (init_cumulative_args)
17105 (avr_function_arg_advance): Use it.
17106 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
17107 sibcall epilogues.
17108 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
17109 (avr_function_ok_for_sibcall): ...this new function.
17110 (avr_lookup_function_attribute1): New static Function.
17111 (avr_naked_function_p, interrupt_function_p)
17112 (signal_function_p, avr_OS_task_function_p)
17113 (avr_OS_main_function_p): Use it.
17114 * config/avr/avr.md ("sibcall", "sibcall_value")
17115 ("sibcall_epilogue"): New expander.
17116 ("*call_insn", "*call_value_insn"): New insn.
17117 ("call_insn", "call_value_insn"): Remove
17118 ("call", "call_value", "epilogue"): Change expander to handle
17119 sibling calls.
17120
17121 2011-03-21 Nick Clifton <nickc@redhat.com>
17122
17123 * doc/invoke.texi (Overall Options): Move closing brace to end of
17124 options list.
17125 (Optimization Options): Add missing @gol.
17126 (Directory Options): Likewise.
17127 (i386 and x86-64 Options): Likewise.
17128 (RS6000 and PowerPC Options): Likewise.
17129 (i386 and x86-64 Windows Options): Likewise.
17130 (V850 Options): Add text missing from descriptions.
17131
17132 2011-03-22 Richard Henderson <rth@redhat.com>
17133
17134 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
17135 (avr_incoming_return_addr_rtx): New.
17136 (emit_push_byte): New.
17137 (expand_prologue): Use it. Remove incorrect dwarf annotation for
17138 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
17139 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
17140 (emit_pop_byte): New.
17141 (expand_epilogue): Use it. Pop frame pointer by bytes.
17142 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
17143 (INCOMING_RETURN_ADDR_RTX): New.
17144 (INCOMING_FRAME_SP_OFFSET): New.
17145 (ARG_POINTER_CFA_OFFSET): New.
17146 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
17147 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
17148 (pophi): Remove.
17149
17150 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
17151
17152 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17153
17154 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17155 (FUNCTION_ARG_ADVANCE): Likewise.
17156 * tm.texi.in: Change references to them to hook references.
17157 * tm.texi: Regenerate.
17158 * targhooks.c (default_function_arg): Eliminate check for target
17159 macro.
17160 (default_function_incoming_arg): Likewise.
17161 (default_function_arg_advance): Likewise.
17162 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
17163 (function_arg_advance): Likewise.
17164 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17165
17166 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17167
17168 * tree.c (build_call_1): New function.
17169 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
17170
17171 2011-03-22 Richard Guenther <rguenther@suse.de>
17172
17173 PR tree-optimization/48228
17174 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
17175 for single-arg PHIs.
17176
17177 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
17178
17179 PR rtl-optimization/48143
17180 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
17181 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
17182 sse2_cvtps2pd): Likewise.
17183
17184 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17185
17186 * recog.c (canonicalize_change_group): Use validate_unshare_change.
17187
17188 2011-03-22 Richard Guenther <rguenther@suse.de>
17189
17190 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
17191 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
17192 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
17193 and REALIGN_LOAD_EXPR.
17194 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
17195 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
17196 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
17197 DOT_PROD_EXPR case ...
17198 (expand_expr_real_2): ... here.
17199 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
17200 and REALIGN_LOAD_EXPR.
17201 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
17202 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
17203 (vect_create_epilog_for_reduction): Likewise.
17204 (vectorizable_reduction): Likewise.
17205 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
17206 * tree-vect-stmts.c (vectorizable_load): Likewise.
17207
17208 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
17209
17210 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17211
17212 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17213
17214 * config/s390/s390.c (s390_delegitimize_address): Fix offset
17215 handling for PLTOFF/GOTOFF.
17216
17217 2011-03-22 Nick Clifton <nickc@redhat.com>
17218
17219 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17220 trailing backslash from the end of the macro definition.
17221
17222 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17223
17224 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17225 and PLT unspecs.
17226
17227 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
17228
17229 * expr.h (prepare_operand): Move to...
17230 * optabs.h (prepare_operand): ...here and change the insn code
17231 parameter from "int" to "enum insn_code".
17232 (insn_operand_matches): Declare.
17233 * expr.c (init_expr_target): Use insn_operand_matches.
17234 (compress_float_constant): Likewise.
17235 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17236 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17237 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
17238 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17239 Likewise.
17240 (gen_cond_trap): Likewise.
17241 (prepare_operand): Likewise. Change icode to an insn_code.
17242 (insn_operand_matches): New function.
17243 * reload.c (find_reloads_address_1): Use insn_operand_matches.
17244 * reload1.c (gen_reload): Likewise.
17245 * targhooks.c (default_secondary_reload): Likewise.
17246
17247 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
17248
17249 * config/alpha/alpha.md (unspec): New define_c_enum.
17250 (unspecv): Ditto.
17251
17252 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
17253
17254 PR debug/48214
17255 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17256 between a call and its CALL_ARG_LOCATION note.
17257
17258 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17259
17260 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17261
17262 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17263
17264 PR c/42544
17265 PR c/48197
17266 * c-common.c (shorten_compare): If primopN is first sign-extended
17267 to opN and then zero-extended to result type, set primopN to opN.
17268
17269 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
17270
17271 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17272 for barrier handlers.
17273
17274 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17275
17276 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17277 UNSPEC constants to be in the unspec enumeration, and redefine
17278 all UNSPECV constants to be in the unspecv enumeration, so that
17279 dumps print which unspec/unspec_volatile this is.
17280 * config/rs6000/vector.md (UNSPEC_*): Ditto.
17281 * config/rs6000/paired.md (UNSPEC_*): Ditto.
17282 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17283 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17284 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17285
17286 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17287 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17288 UNSPECV_LWSYNC, since these are used as unspec_volatile.
17289 * config/rs6000/sync.md (isync, lwsync): Ditto.
17290
17291 2011-03-21 Richard Guenther <rguenther@suse.de>
17292
17293 * params.def (lto-min-partition): Fix typo.
17294
17295 2011-03-21 Richard Guenther <rguenther@suse.de>
17296
17297 PR c/47939
17298 * c-decl.c (grokdeclarator): Drop to the main variant only
17299 for array types. Drop flag_gen_aux_info check.
17300
17301 2011-03-21 Richard Guenther <rguenther@suse.de>
17302
17303 PR translation/47911
17304 * params.def (lto-partitions): Fix typo.
17305 (lto-min-partition): Fix wording.
17306
17307 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
17308
17309 * config/rs6000/t-freebsd: Remove duplication from file.
17310
17311 2011-03-21 Richard Guenther <rguenther@suse.de>
17312
17313 PR middle-end/47661
17314 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17315
17316 2011-03-21 Richard Guenther <rguenther@suse.de>
17317
17318 PR lto/48210
17319 * params.def (lto-partitions): Require at least 1 partition.
17320
17321 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17322
17323 * gthr-solaris.h: Remove.
17324 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17325 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17326 (LIB_SPEC): Likewise.
17327 * config/sol2.opt (threads): Remove.
17328 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17329 (sparc*-*-solaris2*): Likewise.
17330 * configure.ac (enable_threads): Enable solaris support.
17331 * configure: Regenerate.
17332 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17333 * doc/install.texi (Configuration, --enable-threads=lib): Remove
17334 solaris.
17335
17336 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17337
17338 * config.gcc: Obsolete *-*-solaris2.8*.
17339 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17340
17341 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17342
17343 PR bootstrap/48135
17344 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17345 reference. Solaris 8 perl works.
17346
17347 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17348
17349 PR bootstrap/48135
17350 * doc/install.texi (Prerequisites): Move jar etc. up.
17351 Explain support library version requirements.
17352
17353 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17354
17355 PR bootstrap/48135
17356 * doc/install.texi (Prerequisites): Move Perl to build
17357 requirements. Always necessary on Solaris 2 with Sun ld.
17358
17359 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17360
17361 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17362 binutils 2.21.
17363 (Specific, i?86-*-solaris2.[89]): Likewise.
17364 (Specific, i?86-*-solaris2.10): Likewise.
17365 (Specific, mips-sgi-irix6): Likewise.
17366 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17367 Update for binutils 2.21.
17368
17369 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17370
17371 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17372 Allow -fuse-linker-plugin for non-default plugin linker.
17373 * configure: Regenerate.
17374
17375 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17376
17377 PR bootstrap/48167
17378 * gengtype.c (files_rules): Added rule for cp/parser.h.
17379
17380 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17381
17382 PR target/48213
17383 * config/s390/s390.c (s390_delegitimize_address): Don't call
17384 lowpart_subreg if orig_x has BLKmode.
17385
17386 2011-03-21 Kai Tietz <ktietz@redhat.com>
17387
17388 PR target/12171
17389 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17390 * tree.h (attribute_spec): Add new member affects_type_identity.
17391 * attribs.c (empty_attribute_table): Adjust attribute_spec
17392 initializers.
17393 * config/alpha/alpha.c: Likewise.
17394 * config/arc/arc.c: Likewise.
17395 * config/arm/arm.c: Likewise.
17396 * config/avr/avr.c: Likewise.
17397 * config/bfin/bfin.c: Likewise.
17398 * config/crx/crx.c: Likewise.
17399 * config/darwin.h: Likewise.
17400 * config/h8300/h8300.c: Likewise.
17401 * config/i386/cygming.h: Likewise.
17402 * config/i386/i386.c: Likewise.
17403 * config/ia64/ia64.c: Likewise.
17404 * config/m32c/m32c.c: Likewise.
17405 * config/m32r/m32r.c: Likewise.
17406 * config/m68hc11/m68hc11.c: Likewise.
17407 * config/m68k/m68k.c: Likewise.
17408 * config/mcore/mcore.c: Likewise.
17409 * config/mep/mep.c: Likewise.
17410 * config/microblaze/microblaze.c: Likewise.
17411 * config/mips/mips.c: Likewise.
17412 * config/rs6000/rs6000.c: Likewise.
17413 * config/rx/rx.c: Likewise.
17414 * config/sh/sh.c: Likewise.
17415 * config/sol2.h: Likewise.
17416 * config/sparc/sparc.c: Likewise.
17417 * config/spu/spu.c: Likewise.
17418 * config/stormy16/stormy16.c: Likewise.
17419 * config/v850/v850.c: Likewise.
17420
17421 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17422
17423 * simplify-rtx.c (simplify_binary_operation_1): Handle
17424 (xor (and A B) C) case when B and C are both constants.
17425
17426 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17427
17428 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17429
17430 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17431
17432 PR bootstrap/48168
17433 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17434
17435 2011-03-20 Jakub Jelinek <jakub@redhat.com>
17436
17437 PR rtl-optimization/48156
17438 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17439 assume df and df_lr are not NULL.
17440
17441 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17442
17443 PR debug/48023
17444 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17445 between a call and its CALL_ARG_LOCATION note.
17446
17447 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17448
17449 PR debug/48178
17450 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17451 between a call and its corresponding CALL_ARG_LOCATION note.
17452
17453 2011-03-19 Anatoly Sokolov <aesok@post.ru>
17454
17455 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17456 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17457 * haifa-sched.c (setup_ref_regs): Ditto.
17458 * caller-save.c (add_used_regs_1): Ditto.
17459 * dse.c (look_for_hardregs): Ditto.
17460 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17461 * sched-rgn.c (check_live_1): Ditto.
17462
17463 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17464
17465 * c-decl.c (diagnose_mismatched_decls): Give an error for
17466 redefining a typedef with variably modified type.
17467
17468 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17469
17470 * c-decl.c (grokfield): Don't allow typedefs for structures or
17471 unions with no tag by default.
17472 * doc/extend.texi (Unnamed Fields): Update.
17473
17474 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
17475
17476 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17477 Rewrite using indirect functions.
17478 (lwp_slwpcb): Ditto.
17479 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17480 (avx_vinsertf128<mode>): Ditto.
17481
17482 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17483
17484 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17485 unspecs.
17486
17487 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17488
17489 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17490 splitting between a call and its corresponding CALL_ARG_LOCATION note.
17491
17492 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17493
17494 PR rtl-optimization/48170
17495 * gcse.c (hoist_code): Remove bogus asserts.
17496
17497 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
17498
17499 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17500 computation for prologue/epilogue.
17501
17502 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17503
17504 * Makefile.in (check-consistency): Remove.
17505
17506 2011-03-18 Jakub Jelinek <jakub@redhat.com>
17507
17508 PR debug/48176
17509 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17510 arange_table_in_use is 0, but either text_section_used or
17511 cold_text_section_used is true. Don't call it if
17512 !info_section_emitted.
17513
17514 2011-03-18 Anatoly Sokolov <aesok@post.ru>
17515
17516 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17517 FUNCTION_VALUE_REGNO_P): Remove.
17518 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17519 Remove.
17520 * config/avr/avr.c (avr_ret_register): Make static inline.
17521 (avr_function_value_regno_p): New function.
17522 (avr_libcall_value): Make static. Add 'func' argument.
17523 (avr_function_value): Make static. Rename 'func' argument to
17524 'fn_decl_or_type', forward it to avr_libcall_value. Call
17525 avr_ret_register function instead of RET_REGISTER macro.
17526 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17527
17528 2011-03-18 Jason Merrill <jason@redhat.com>
17529
17530 PR c++/23372
17531 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17532
17533 2011-03-18 Richard Guenther <rguenther@suse.de>
17534
17535 * doc/install.texi (--enable-gold): Remove.
17536 (--with-plugin-ld): Document.
17537 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17538
17539 2011-03-18 Andrew Pinski <pinskia@gmail.com>
17540
17541 PR middle-end/47790
17542 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17543 again after expansion changes.
17544
17545 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17546
17547 * combine.c (try_combine): Do simplification only call of
17548 subst() on i2 even when i1 is present. Update comments.
17549
17550 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17551
17552 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17553 and UNSPEC_PCREL_SYMOFF.
17554
17555 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17556
17557 * config/s390/s390.md: Use define_c_enum for the unspec constant
17558 definitions.
17559
17560 2011-03-18 Richard Henderson <rth@redhat.com>
17561 Jakub Jelinek <jakub@redhat.com>
17562
17563 PR bootstrap/48161
17564 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17565 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17566
17567 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17568
17569 PR middle-end/47725
17570 * combine.c (cant_combine_insn_p): Don't check zero/sign
17571 extended hard registers.
17572
17573 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17574
17575 PR middle-end/47725
17576 * combine.c (cant_combine_insn_p): Check zero/sign extended
17577 hard registers.
17578
17579 2011-03-17 Anatoly Sokolov <aesok@post.ru>
17580
17581 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17582 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17583 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17584 Change return type to bool.
17585 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17586
17587 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17588
17589 PR debug/48163
17590 * var-tracking.c (prepare_call_arguments): If CALL target
17591 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17592 pc instead of looking it up using cselib_lookup and use
17593 Pmode for it if x has VOIDmode.
17594 * dwarf2out.c (gen_subprogram_die): If also both first and
17595 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17596
17597 PR debug/48163
17598 * function.c (assign_parms): For data.passed_pointer parms
17599 use MEM of data.entry_parm instead of data.entry_parm itself
17600 as DECL_INCOMING_RTL.
17601 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17602 also when passed and declared mode is the same, DECL_RTL
17603 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17604 a MEM too.
17605
17606 2011-03-16 Jeff Law <law@redhat.com>
17607
17608 PR rtl-optimization/37273
17609 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17610 handle them like argument loads from stack slots. Do not double
17611 count memory for memory constants and argument loads from stack slots.
17612
17613 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17614
17615 PR debug/48160
17616 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17617
17618 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17619
17620 PR target/48171
17621 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17622
17623 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17624
17625 PR bootstrap/48153
17626 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17627 if dwarf_strict.
17628 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17629 Clear call_arg_locations and call_arg_loc_last always.
17630
17631 PR middle-end/48152
17632 * var-tracking.c (prepare_call_arguments): If argument needs to be
17633 passed by reference, adjust argtype and mode.
17634
17635 2011-03-17 Richard Guenther <rguenther@suse.de>
17636
17637 PR middle-end/48134
17638 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17639 a value make sure to fold the statement.
17640
17641 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17642
17643 PR target/43872
17644 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17645 return condition with !cfun->calls_alloca.
17646
17647 2011-03-17 Richard Guenther <rguenther@suse.de>
17648
17649 PR bootstrap/48148
17650 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17651 origin for decls in other ltrans units.
17652 (input_varpool_node): Likewise.
17653
17654 2011-03-17 Richard Guenther <rguenther@suse.de>
17655
17656 PR middle-end/48165
17657 * tree-object-size.c (compute_object_offset): Properly return
17658 the offset operand of MEM_REFs as sizetype.
17659
17660 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17661
17662 PR rtl-optimization/48141
17663 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17664 * dse.c: Include params.h.
17665 (active_local_stores_len): New variable.
17666 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17667 to NULL.
17668 (record_store, check_mem_read_rtx): Decrease it when removing
17669 from the chain.
17670 (scan_insn): Likewise. Increase it when adding to chain, if it
17671 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17672 set active_local_stores to NULL before the addition.
17673 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17674
17675 PR rtl-optimization/48141
17676 * dse.c (record_store): If no positions are needed in an insn
17677 that cannot be deleted, at least unchain it from active_local_stores.
17678
17679 2011-03-16 Dodji Seketeli <dodji@redhat.com>
17680
17681 PR debug/47510
17682 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17683 (lookup_type_die_strip_naming_typedef): ... here.
17684 (get_context_die): Use it.
17685 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17686 the anonymous struct named by the naming typedef.
17687
17688 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17689
17690 PR target/48154
17691 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17692 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17693
17694 2011-03-16 Jeff Law <law@redhat.com>
17695
17696 * tree-vrp.c (identify_jump_threads): Slightly simplify type
17697 check for operands of conditional. Allow type to be a pointer.
17698
17699 2011-03-16 Richard Guenther <rguenther@suse.de>
17700
17701 PR tree-optimization/48149
17702 * fold-const.c (fold_binary_loc): Fold
17703 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17704
17705 2011-03-16 Richard Guenther <rguenther@suse.de>
17706
17707 PR tree-optimization/26134
17708 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17709 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17710 (non_rewritable_mem_ref_base): Handle complex type component
17711 accesses, constrain offsets for vector and complex extracts
17712 more properly.
17713
17714 2011-03-16 Richard Guenther <rguenther@suse.de>
17715
17716 PR tree-optimization/48146
17717 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17718 operands avoiding the need for renaming.
17719
17720 2011-03-16 Richard Guenther <rguenther@suse.de>
17721
17722 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17723 constant folding. Move MEM_REF canonicalization first.
17724 Rely on fold_const_aggregate_ref for initializer folding.
17725 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17726
17727 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17728
17729 PR middle-end/48136
17730 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17731 arg0/arg1 or their arguments are always fold converted to matching
17732 types.
17733
17734 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17735 to nargs.
17736
17737 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17738
17739 PR lto/46944
17740 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17741 Handle in-tree gold.
17742 (ld_vers): Extract binutils version for gold.
17743 (gcc_cv_ld_hidden): Handle gold here.
17744 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17745 * configure: Regenerate.
17746 * config.in: Regenerate.
17747 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17748 -fuse-linker-plugin otherwise.
17749 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17750 (LINK_COMMAND_SPEC): Use it.
17751 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17752
17753 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17754
17755 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17756 * calls.c: Remove debug.h include.
17757 (emit_call_1): Don't call virtual_call_token debug hook.
17758 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17759 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17760 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17761 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17762 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17763 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17764 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17765 dwarf2out_virtual_call): Remove.
17766 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17767 copy_call_info and virtual_call hooks.
17768 (dwarf2out_init): Don't initialize vcall_insn_table,
17769 debug_dcall_section and debug_vcall_section.
17770 (prune_unused_types): Don't mark nodes from dcall_table.
17771 (dwarf2out_finish): Don't output dcall or vcall tables.
17772 * final.c (final_scan_insn): Don't call direct_call or
17773 virtual_call debug hooks.
17774 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17775 virtual_call_token, copy_call_info and virtual_call hooks.
17776 (debug_nothing_uid): Remove prototype.
17777 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17778 copy_call_info and virtual_call hooks.
17779 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17780 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17781 * debug.c (do_nothing_debug_hooks): Likewise.
17782 (debug_nothing_uid): Remove.
17783 * doc/invoke.texi (-fenable-icf-debug): Remove.
17784 * common.opt (-fenable-icf-debug): Likewise.
17785
17786 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17787 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17788 call's MEM. Handle functions returning aggregate through a hidden
17789 first pointer. For virtual calls add clobbered pc to call arguments
17790 chain.
17791 * dwarf2out.c (gen_subprogram_die): Emit
17792 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17793 can't be emitted.
17794
17795 PR debug/45882
17796 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17797 * rtl.h (ENTRY_VALUE_EXP): Define.
17798 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17799 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17800 * print-rtl.c (print_rtx): Likewise.
17801 * gengtype.c (adjust_field_rtx_def): Likewise.
17802 * var-tracking.c (vt_add_function_parameter): Adjust
17803 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17804 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17805 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17806 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17807 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17808
17809 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17810 Call var_location debug hook even on CALL_INSNs.
17811 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17812 * rtl.def (ENTRY_VALUE): New.
17813 * dwarf2out.c: Include cfglayout.h.
17814 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17815 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17816 (struct call_arg_loc_node): New type.
17817 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17818 tail_call_site_count): New variables.
17819 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17820 DW_TAG_GNU_call_site_parameter.
17821 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17822 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17823 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17824 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17825 and DW_AT_GNU_all_source_call_sites.
17826 (mem_loc_descriptor): Handle ENTRY_VALUE.
17827 (add_src_coords_attributes): Don't add enything if
17828 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17829 (dwarf2out_abstract_function): Save and clear call_arg_location,
17830 call_site_count and tail_call_site_count around dwarf2out_decl call.
17831 (gen_call_site_die): New function.
17832 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17833 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17834 (dwarf2out_function_decl): Clear call_arg_locations,
17835 call_arg_loc_last, set call_site_count and tail_call_site_count
17836 to -1 and free block_map.
17837 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17838 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17839 followed by any real instructions.
17840 (dwarf2out_begin_function): Set call_site_count and
17841 tail_call_site_count to 0.
17842 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17843 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17844 attempt to force a DIE for it and worst case remove the attribute.
17845 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17846 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17847 the decl itself.
17848 * var-tracking.c: Include tm_p.h.
17849 (vt_stack_adjustments): For calls call note_register_arguments.
17850 (argument_reg_set): New variable.
17851 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17852 ensure the VALUE is resolved.
17853 (call_arguments): New variable.
17854 (prepare_call_arguments): New function.
17855 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17856 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17857 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17858 always use the best expression.
17859 (vt_expand_loc): Add ignore_cur_loc argument.
17860 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17861 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17862 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17863 note for all calls.
17864 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17865 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17866 argument. Don't call cselib_preserve_only_values and
17867 cselib_reset_table.
17868 (note_register_arguments): New function.
17869 (vt_initialize): Compute argument_reg_set. Call
17870 vt_add_function_parameters before processing basic blocks instead of
17871 afterwards. For calls call prepare_call_arguments before calling
17872 cselib_process_insn.
17873 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17874 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17875 (var-tracking.o): Depend on $(TM_P_H).
17876 * cfglayout.h (insn_scope): New prototype.
17877 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17878 * cfglayout.c (insn_scope): No longer static.
17879 * insn-notes.def (CALL_ARG_LOCATION): New.
17880 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17881 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17882 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17883 nothing for DECL_EXTERNAL BLOCK_VARS.
17884
17885 2011-03-16 Alan Modra <amodra@gmail.com>
17886
17887 PR target/45844
17888 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17889 create invalid offset address for vsx splat insn.
17890 * config/rs6000/predicates.md (splat_input_operand): New.
17891 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17892
17893 2011-03-15 Xinliang David Li <davidxl@google.com>
17894
17895 PR c/47837
17896 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17897 (normalize_preds): New function.
17898 (is_use_properly_guarded): Normalize def predicates.
17899
17900 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17901
17902 PR target/46788
17903 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17904 in the output template.
17905
17906 2011-03-15 Richard Guenther <rguenther@suse.de>
17907
17908 PR middle-end/47650
17909 * tree-pretty-print.c (dump_function_declaration): Properly
17910 dump unprototyped and varargs function types.
17911
17912 2011-03-15 Richard Guenther <rguenther@suse.de>
17913
17914 PR tree-optimization/13954
17915 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17916 and friends.
17917
17918 2011-03-15 Richard Guenther <rguenther@suse.de>
17919
17920 PR tree-optimization/48037
17921 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17922 selects into BIT_FIELD_REFs.
17923 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17924 vector select.
17925
17926 2011-03-15 Jakub Jelinek <jakub@redhat.com>
17927
17928 PR tree-optimization/48129
17929 * builtins.c (fold_builtin_snprintf): Convert to type of
17930 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17931 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17932
17933 2011-03-15 Richard Guenther <rguenther@suse.de>
17934
17935 PR tree-optimization/41490
17936 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17937 value but with VUSE.
17938 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17939 return statements.
17940 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17941 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17942 * tree-tailcall.c (find_tail_calls): Ignore returns.
17943
17944 2011-03-15 Richard Guenther <rguenther@suse.de>
17945
17946 PR middle-end/48031
17947 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17948 or variable-indexed array accesses when in gimple form.
17949
17950 2011-03-15 Richard Guenther <rguenther@suse.de>
17951
17952 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
17953
17954 2011-03-15 Alan Modra <amodra@gmail.com>
17955
17956 PR target/48032
17957 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17958 presume symbol_refs without a symbol_ref_decl are suitably
17959 aligned, nor other trees we may see here. Handle anchor symbols.
17960 (legitimate_constant_pool_address_p): Comment. Add mode param.
17961 Check cmodel=medium addresses. Adjust all calls.
17962 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17963 creating cmodel=medium optimized access to locals.
17964 * config/rs6000/constraints.md (R): Pass QImode to
17965 legitimate_constant_pool_address_p.
17966 * config/rs6000/predicates.md (input_operand): Pass mode to
17967 legitimate_constant_pool_address_p.
17968 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17969 Update prototype.
17970
17971 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17972
17973 PR target/48053
17974 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17975 64-bit constants being loaded into registers other than GPRs such
17976 as loading 0 into a VSX register.
17977
17978 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17979
17980 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
17981
17982 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17983
17984 PR middle-end/47917
17985 * builtins.c (fold_builtin_snprintf): New function.
17986 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17987 (fold_builtin_4): Likewise.
17988
17989 PR middle-end/38878
17990 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17991 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17992 and C - X == X also strip nops from +/-/p+ operand.
17993 When optimizing -X == C, fold C to arg0's type.
17994
17995 PR debug/47946
17996 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17997 emit it as add_AT_int instead of add_AT_unsigned.
17998
17999 2011-03-14 Tom Tromey <tromey@redhat.com>
18000
18001 * unwind-dw2.c: Include sys/sdt.h if it exists.
18002 (_Unwind_DebugHook): Use STAP_PROBE2.
18003 * config.in, configure: Rebuild.
18004 * configure.ac: Check for sys/sdt.h.
18005
18006 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
18007
18008 * config/i386/i386.md (ROUND_FLOOR): New constant.
18009 (ROUND_CEIL): Ditto.
18010 (ROUND_TRUNC): Ditto.
18011 (ROUND_MXCSR): Ditto.
18012 (ROUND_NO_EXC): Ditto.
18013 (rint<mode>2): Use new defines instead of numerical constants.
18014 (floor<mode>2): Ditto.
18015 (ceil<mode>2): Ditto.
18016 (btrunc<mode>2): Ditto.
18017 * config/i386/i386-builtin-types.def: Define ROUND function type
18018 aliases.
18019 * config/i386/i386.c (enum ix86_builtins): Add
18020 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
18021 (struct builtin_description): Add
18022 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
18023 (ix86_expand_sse_round): New static function.
18024 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
18025 function types.
18026 (ix86_builtin_vectorized_function): Handle
18027 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18028
18029 2011-03-14 Tom Tromey <tromey@redhat.com>
18030
18031 * c-parser.c (c_parser_asm_string_literal): Clear
18032 warn_overlength_strings.
18033
18034 2011-03-14 Tom Tromey <tromey@redhat.com>
18035
18036 * c-parser.c (disable_extension_diagnostics): Save
18037 warn_overlength_strings.
18038 (restore_extension_diagnostics): Restore warn_overlength_strings.
18039
18040 2011-03-14 Jakub Jelinek <jakub@redhat.com>
18041
18042 * BASE-VER: Change to 4.7.0.
18043
18044 2011-03-14 Richard Guenther <rguenther@suse.de>
18045
18046 PR middle-end/48098
18047 * tree.c (build_vector_from_val): Adjust assert to requirements
18048 and reality.
18049
18050 2011-03-14 Jakub Jelinek <jakub@redhat.com>
18051
18052 PR bootstrap/48102
18053 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
18054
18055 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
18056
18057 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
18058 terms of target_flags_explicit. Adjust copyright year.
18059
18060 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
18061 * config/rs6000/t-freebsd: New file. Add override for
18062 LIB2FUNCS_EXTRA.
18063
18064 2011-03-13 Chris Demetriou <cgd@google.com>
18065
18066 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
18067 (-fno-diagnostics-show-option): this, to reflect current default.
18068 (-Werror=): Update text about -fno-diagnostics-show-option.
18069
18070 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
18071
18072 PR target/48053
18073 * config/rs6000/predicates.md (easy_vector_constant_add_self,
18074 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
18075 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
18076 mode is not V2DImode or V2DFmode.
18077 (vspltis_constant): Do not handle V2DImode and V2DFmode.
18078 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
18079 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
18080 registers to 0.
18081 (movdi_internal64): Likewise.
18082
18083 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
18084
18085 PR tree-optimization/47127
18086 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
18087 parameter.
18088 (set_cloog_options): Same.
18089 (scop_to_clast): Same.
18090 (print_clast_stmt): Do not call cloog_state_malloc and
18091 cloog_state_free.
18092 (print_generated_program): Same.
18093 (gloog): Same.
18094 * graphite-clast-to-gimple.h (cloog_state): Declared.
18095 (scop_to_clast): Adjust declaration.
18096 * graphite.c (cloog_state): Defined here.
18097 (graphite_initialize): Call cloog_state_malloc.
18098 (graphite_finalize): Call cloog_state_free.
18099
18100 2011-03-11 Jason Merrill <jason@redhat.com>
18101
18102 * attribs.c (lookup_attribute_spec): Take const_tree.
18103 * tree.h: Adjust.
18104
18105 2011-03-11 Joseph Myers <joseph@codesourcery.com>
18106
18107 * config/sparc/sparc.c (sparc_option_override): Use
18108 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
18109
18110 2011-03-11 Richard Guenther <rguenther@suse.de>
18111
18112 PR tree-optimization/48067
18113 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
18114 multiplication result will be only used once on the target
18115 stmt.
18116
18117 2011-03-11 Richard Guenther <rguenther@suse.de>
18118
18119 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
18120
18121 2011-03-11 Richard Guenther <rguenther@suse.de>
18122
18123 PR lto/48073
18124 * tree.c (find_decls_types_r): Do not walk types only reachable
18125 from IDENTIFIER_NODEs.
18126
18127 2011-03-11 Jakub Jelinek <jakub@redhat.com>
18128
18129 PR middle-end/48044
18130 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
18131 all vnode->force_output nodes as needed.
18132
18133 2011-03-11 Jason Merrill <jason@redhat.com>
18134
18135 PR c++/48069
18136 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
18137 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
18138
18139 2011-03-11 Martin Jambor <mjambor@suse.cz>
18140
18141 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
18142 cgraph_node.
18143
18144 2011-03-11 Jakub Jelinek <jakub@redhat.com>
18145
18146 PR tree-optimization/48063
18147 * ipa-inline.c (cgraph_decide_inlining): Don't try to
18148 inline functions called once if !tree_can_inline_p (node->callers).
18149
18150 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
18151
18152 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
18153 extra_objs.
18154 * config/score/score3.c: Delete.
18155 * config/score/score3.h: Delete.
18156 * config/score/mul-div.S: Delete.
18157 * config/score/sfp-machine.h: Add new file.
18158 * config/score/constraints.md: Add new file.
18159 * config/score/t-score-softfp: Add new file.
18160 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
18161 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
18162 (score7_extra_constraint): Delete.
18163 (score7_option_override): Remove unused code.
18164 * config/score/score.c: Remove score3 and score5 define and code.
18165 * config/score/score.h: Remove score3 and score5 define and code.
18166 * config/score/score.md: Remove score3 template and unusual insn.
18167 * config/score/score.opt: Remove score3 and score5 options.
18168
18169 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18170
18171 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
18172 when _HPUX_SOURCE is defined.
18173 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
18174
18175 2011-03-10 Jason Merrill <jason@redhat.com>
18176
18177 PR c++/48029
18178 * stor-layout.c (layout_type): Don't set structural equality
18179 on arrays of incomplete type.
18180 * tree.c (type_hash_eq): Handle comparing them properly.
18181
18182 2011-03-10 Jakub Jelinek <jakub@redhat.com>
18183
18184 PR debug/48043
18185 * config/s390/s390.c (s390_delegitimize_address): Make sure the
18186 result mode matches original rtl mode.
18187
18188 2011-03-10 Nick Clifton <nickc@redhat.com>
18189
18190 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
18191 (andsi3, andsi3_flags): Fix timings for three operand alternative.
18192
18193 2011-03-09 Jakub Jelinek <jakub@redhat.com>
18194
18195 PR rtl-optimization/47866
18196 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
18197 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
18198 if target wasn't scalar.
18199 * function.c (assign_stack_temp_for_type): Assert that neither
18200 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
18201 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
18202 macro.
18203 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
18204
18205 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18206
18207 * config/s390/s390-protos.h (s390_label_align): New prototype.
18208 * config/s390/s390.c (s390_label_align): New function.
18209 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18210
18211 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18212
18213 PR target/47755
18214 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18215 V2DI/V2DF constants. Only all 0's or all 1's are easy.
18216 (output_vec_const_move): Ditto.
18217
18218 2011-03-08 Anatoly Sokolov <aesok@post.ru>
18219
18220 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18221 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18222 * config/mips/mips.c (mips_preferred_reload_class): Make static.
18223 Change 'rclass' argument and result type to reg_class_t.
18224 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18225
18226 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
18227
18228 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18229 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18230 (TARGET_MEMORY_MOVE_COST): Define.
18231 (avr_register_move_cost, avr_memory_move_cost): New Functions.
18232
18233 2011-03-08 Jakub Jelinek <jakub@redhat.com>
18234
18235 PR debug/47881
18236 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18237 removed anything.
18238
18239 PR tree-optimization/48022
18240 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18241 for EQ/NE_EXPR.
18242
18243 2011-03-07 Jakub Jelinek <jakub@redhat.com>
18244
18245 PR debug/47991
18246 * var-tracking.c (find_use_val): Return NULL for
18247 cui->sets && cui->store_p BLKmode MEMs.
18248
18249 2011-03-07 Anatoly Sokolov <aesok@post.ru>
18250
18251 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18252 Remove.
18253 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18254 xstormy16_print_operand_address): Remove.
18255 * config/stormy16/stormy16.c (xstormy16_print_operand,
18256 xstormy16_print_operand_address): Make static.
18257 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18258
18259 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
18260
18261 PR target/47862
18262 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18263 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18264 before definition.
18265
18266 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
18267
18268 PR bootstrap/48000
18269 * cfgloopmanip.c (fix_bb_placements): Return immediately
18270 if FROM is BASE_LOOP's header.
18271
18272 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
18273
18274 * gimplify.c (gimplify_function_tree): Fix building calls
18275 to __builtin_return_address.
18276
18277 2011-03-07 Alan Modra <amodra@gmail.com>
18278
18279 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18280 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18281 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18282 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18283 return_mode args.
18284 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18285 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18286 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18287 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18288 * config/rs6000/rs6000.c
18289 (rs6000_elf_end_indicate_exec_stack): Rename to..
18290 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
18291 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
18292 (rs6000_file_start): ..here.
18293 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18294 file scope variables.
18295 (call_ABI_of_interest): New function.
18296 (init_cumulative_args): Set above vars when function return value
18297 is a float, vector, or small struct.
18298 (rs6000_function_arg_advance_1): Likewise for function args.
18299 (rs6000_va_start): Set rs6000_passes_float if variable arg function
18300 references float args.
18301
18302 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
18303
18304 * doc/cfg.texi: Remove "See" before @ref.
18305 * doc/invoke.texi: Likewise.
18306
18307 2011-03-05 Jason Merrill <jason@redhat.com>
18308
18309 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18310
18311 2011-03-05 Anthony Green <green@moxielogic.com>
18312
18313 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18314
18315 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
18316
18317 PR rtl-optimization/47899
18318 * cfgloopmanip.c (fix_bb_placements): Fix first argument
18319 to flow_loop_nested_p when moving the loop upward.
18320
18321 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
18322
18323 PR target/47719
18324 * arm.md (movhi_insn_arch4): Accept any immediate constant.
18325
18326 2011-03-05 Jakub Jelinek <jakub@redhat.com>
18327
18328 PR tree-optimization/47967
18329 * ipa-cp.c (build_const_val): Return NULL instead of creating
18330 VIEW_CONVERT_EXPR for mismatching sizes.
18331 (ipcp_create_replace_map): Return NULL if build_const_val failed.
18332 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18333 give up on versioning.
18334
18335 2011-03-05 Alan Modra <amodra@gmail.com>
18336
18337 PR target/47986
18338 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18339 full cmodel medium/large lo_sum + high addresses.
18340
18341 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18342
18343 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18344 pool references in UNSPEC_LTREL_OFFSET.
18345
18346 2011-03-04 Jan Hubicka <jh@suse.cz>
18347
18348 PR lto/47497
18349 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18350 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18351 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18352 Add node pointers.
18353 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18354 cgraph_add_thunk): Add node pointers.
18355 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18356 associated to right node.
18357 (input_node): Update use of cgraph_same_body_alias
18358 and cgraph_add_thunk.
18359
18360 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18361
18362 * config/i386/i386.opt (mprefer-avx128): New flag.
18363 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18364 modes when the flag -mprefer-avx128 is on.
18365
18366 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18367
18368 * dwarf2out.c (compare_loc_operands): Fix address handling.
18369
18370 2011-03-04 Alan Modra <amodra@gmail.com>
18371
18372 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18373
18374 2011-03-04 Richard Guenther <rguenther@suse.de>
18375
18376 PR middle-end/47968
18377 * expmed.c (extract_bit_field_1): Prefer vector modes that
18378 vec_extract patterns can handle.
18379
18380 2011-03-04 Richard Guenther <rguenther@suse.de>
18381
18382 PR middle-end/47975
18383 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18384
18385 2011-03-04 Richard Henderson <rth@redhat.com>
18386
18387 * explow.c (emit_stack_save): Remove 'after' parameter.
18388 (emit_stack_restore): Likewise.
18389 * expr.h: Update to match.
18390 * builtins.c, calls.c, stmt.c: Likewise.
18391 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18392 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18393 * function.c (expand_function_end): Insert the emit_stack_save
18394 sequence before parm_birth_insn instead of after.
18395
18396 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
18397
18398 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18399 (ssse3_pmaddubsw128): Ditto.
18400 (ssse3_pmaddubsw): Ditto.
18401
18402 2011-03-03 Steve Ellcey <sje@cup.hp.com>
18403
18404 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18405
18406 2011-03-03 Jakub Jelinek <jakub@redhat.com>
18407
18408 PR c/47963
18409 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18410 on TYPE_SIZE_UNIT if it is a DECL.
18411
18412 PR debug/47283
18413 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18414 first operand is not is_gimple_mem_ref_addr, try to fold it.
18415 If the operand still isn't is_gimple_mem_ref_addr, clear
18416 MEM_EXPR on op0.
18417
18418 2011-03-03 Richard Guenther <rguenther@suse.de>
18419
18420 PR middle-end/47283
18421 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18422 match comment.
18423 (refs_may_alias_p_1): For release branches return true if
18424 we are confused by our input.
18425
18426 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18427
18428 * config/s390/s390.c (s390_function_value): Rename to ...
18429 (s390_function_and_libcall_value): ... this.
18430 (s390_function_value): New function.
18431 (s390_libcall_value): New function.
18432 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18433 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18434 target macro definitions.
18435 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18436
18437 2011-03-02 Joseph Myers <joseph@codesourcery.com>
18438
18439 * config/i386/freebsd64.h (CC1_SPEC): Define.
18440 * config/i386/linux64.h (CC1_SPEC): Define.
18441 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18442
18443 2011-03-02 Anatoly Sokolov <aesok@post.ru>
18444
18445 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18446 Remove.
18447 * config/stormy16/stormy16.c: Include reload.h.
18448 (xstormy16_memory_move_cost): New function.
18449 (TARGET_MEMORY_MOVE_COST): Define.
18450
18451 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18452
18453 PR rtl-optimization/47925
18454 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18455 with side effects. Remove the more-specific check for volatile asms.
18456
18457 2011-03-02 Alan Modra <amodra@gmail.com>
18458
18459 PR target/47935
18460 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18461 toc relative addresses for valid offsets.
18462
18463 2011-03-01 Richard Guenther <rguenther@suse.de>
18464
18465 PR tree-optimization/47890
18466 * tree-vect-loop.c (get_initial_def_for_induction): Set
18467 related stmt properly.
18468
18469 2011-03-01 Richard Guenther <rguenther@suse.de>
18470
18471 PR lto/47924
18472 * lto-streamer.c (lto_record_common_node): Also register
18473 the canonical type.
18474
18475 2011-03-01 Richard Guenther <rguenther@suse.de>
18476
18477 PR lto/46911
18478 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18479 Do not stream DECL_ABSTRACT_ORIGIN.
18480 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18481 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18482 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18483 Do not stream DECL_ABSTRACT_ORIGIN.
18484 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18485 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18486
18487 2011-02-28 Anatoly Sokolov <aesok@post.ru>
18488
18489 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18490 FUNCTION_VALUE_REGNO_P): Remove.
18491 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18492 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18493 Add 'outgoing' argument.
18494 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18495 function.
18496 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18497 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18498
18499 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
18500
18501 PR debug/28047
18502 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18503 (lookup_filename): Likewise.
18504 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18505
18506 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18507 Jakub Jelinek <jakub@redhat.com>
18508
18509 PR middle-end/47893
18510 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18511 (assign_stack_local_1): Change last argument type to int.
18512 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18513 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
18514 don't record padding space into frame_space_list nor use those areas.
18515 (assign_stack_local): Adjust caller.
18516 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18517 of assign_stack_local, pass 0 as last argument.
18518 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18519 callers.
18520
18521 2011-02-28 Jakub Jelinek <jakub@redhat.com>
18522
18523 PR debug/47283
18524 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18525 Use target address_mode and pointer_mode hooks instead of hardcoded
18526 Pmode and ptr_mode. Handle some simple cases of extending if
18527 POINTERS_EXTEND_UNSIGNED < 0.
18528 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18529 Call convert_debug_memory_address.
18530 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18531 convert_debug_memory_address.
18532
18533 PR middle-end/46790
18534 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18535 * configure: Regenerated.
18536 * config.in: Regenerated.
18537 * varasm.c (default_function_section): Return NULL
18538 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18539
18540 2011-02-28 Martin Jambor <mjambor@suse.cz>
18541
18542 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18543 the description to match the printed values.
18544
18545 2011-02-28 Richard Guenther <rguenther@suse.de>
18546
18547 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18548 of the copied scope tree.
18549
18550 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18551
18552 * doc/extend.texi (Function Attributes): Avoid deeply (and
18553 wrongly) nested tables.
18554
18555 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18556
18557 PR middle-end/47903
18558 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18559 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18560 r isn't op0 nor op1.
18561
18562 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18563
18564 * config/avr/avr.md: Remove magic comment for emacs.
18565
18566 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18567
18568 PR target/45261
18569 * config/avr/avr.c (avr_option_override): Use error on bad options.
18570 (avr_help): New function.
18571 (TARGET_HELP): Define.
18572
18573 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
18574
18575 PR target/42240
18576 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18577 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18578
18579 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18580
18581 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18582 (ARM Options): Ditto.
18583 (i386 and x86-64 Options): Ditto.
18584 (RX Options): Ditto.
18585 (SPARC Options): Ditto.
18586
18587 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
18588
18589 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18590 FreeBSD 6 and later. Generally use cpu generic.
18591
18592 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18593
18594 * doc/cpp.texi: Update copyright years.
18595
18596 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
18597
18598 PR target/46898
18599 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18600
18601 2011-02-25 Jon Beniston <jon@beniston.com>
18602
18603 PR target/46898
18604 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18605 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18606 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18607 (lm32_block_move_inline): Add type cast to remove warning.
18608 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18609 (gen_int_relational): Move declarations to start of function.
18610
18611 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18612
18613 PR tree-optimization/45470
18614 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18615 can throw internally only.
18616 * tree-vect-stmts.c (vectorizable_call): Likewise.
18617
18618 2011-02-24 Anatoly Sokolov <aesok@post.ru>
18619
18620 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18621 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18622 * config/stormy16/stormy16-protos.h
18623 (xstormy16_preferred_reload_class): Remove.
18624 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18625 static. Change 'rclass' argument and return type to reg_class_t.
18626 (TARGET_PREFERRED_RELOAD_CLASS,
18627 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18628
18629 2011-02-24 Richard Guenther <rguenther@suse.de>
18630
18631 * lto-streamer-in.c (input_bb): Do not find referenced vars
18632 in debug statements.
18633
18634 2011-02-23 Jason Merrill <jason@redhat.com>
18635
18636 * common.opt (fabi-version): Document v5 and v6.
18637
18638 2011-02-23 Richard Guenther <rguenther@suse.de>
18639
18640 PR tree-optimization/47849
18641 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18642
18643 2011-02-23 Jie Zhang <jie@codesourcery.com>
18644
18645 * opts-common.c (decode_cmdline_option): Print empty string
18646 argument as "" in decoded->orig_option_with_args_text.
18647 * gcc.c (execute): Print empty string argument as ""
18648 in the verbose output.
18649 (do_spec_1): Keep empty string argument.
18650
18651 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18652
18653 * config.gcc: Declare score-* and crx-* obsolete.
18654
18655 2011-02-23 Jie Zhang <jie@codesourcery.com>
18656
18657 PR rtl-optimization/47763
18658 * web.c (web_main): Ignore naked clobber when replacing register.
18659
18660 2011-02-22 Anatoly Sokolov <aesok@post.ru>
18661
18662 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18663 Remove.
18664
18665 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18666
18667 PR doc/47848
18668 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18669
18670 2011-02-22 Mike Stump <mikestump@comcast.net>
18671
18672 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18673 assembler.
18674 * configure: Regenerate.
18675
18676 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18677
18678 PR rtl-optimization/46002
18679 * ira-color.c (update_copy_costs): Change class intersection
18680 test to reg_class_contents[] test of 'hard_regno'.
18681
18682 2011-02-21 Joseph Myers <joseph@codesourcery.com>
18683
18684 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18685 than Driver option.
18686 * config/hpux11.opt (mt): Likewise.
18687 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18688 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18689 * config/vax/elf.opt (mno-asm-pic): Likewise.
18690 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18691
18692 2011-02-21 Mike Stump <mikestump@comcast.net>
18693
18694 PR target/47822
18695 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18696 tree so we can get save the type.
18697 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18698 for CFString instead of trying to use past the end of the builtins.
18699 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18700 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18701 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18702 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18703 Rename to darwin_builtin_cfstring.
18704 (darwin_init_cfstring_builtins): Return the built type.
18705
18706 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
18707
18708 PR target/47840
18709 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18710 (_mm256_insert_epi64): Use _mm_insert_epi64.
18711
18712 2011-02-21 Anatoly Sokolov <aesok@post.ru>
18713
18714 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18715 * config/stormy16/stormy16-protos.h
18716 (xstormy16_mode_dependent_address_p): Remove.
18717 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18718 Make static. Change return type to bool. Change argument type to
18719 const_rtx. Remove dead code.
18720 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18721
18722 2011-02-21 Richard Guenther <rguenther@suse.de>
18723
18724 PR lto/47820
18725 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18726 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18727 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18728 TUs context.
18729 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18730 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18731
18732 2011-02-20 Richard Guenther <rguenther@suse.de>
18733
18734 PR lto/47822
18735 * tree.c (free_lang_data_in_decl): Clean builtins from
18736 the TU decl BLOCK_VARS.
18737
18738 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
18739
18740 PR debug/47620
18741 PR debug/47630
18742 * haifa-sched.c (fix_tick_ready): Skip tick computation
18743 for debug insns.
18744
18745 2011-02-19 Richard Guenther <rguenther@suse.de>
18746
18747 PR lto/47647
18748 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18749 Remove lazy BLOCK_VARS streaming.
18750 (lto_input_ts_block_tree_pointers): Likewise.
18751 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18752
18753 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18754
18755 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18756
18757 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18758
18759 * config/i386/biarch32.h, config/i386/mach.h,
18760 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18761
18762 2011-02-19 Jakub Jelinek <jakub@redhat.com>
18763
18764 PR target/47800
18765 * config/i386/i386.md (peephole2 for shift and plus): Use
18766 operands[1] original mode in the first insn.
18767
18768 2011-02-18 Mike Stump <mikestump@comcast.net>
18769
18770 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18771
18772 2011-02-18 Jan Hubicka <jh@suse.cz>
18773
18774 PR middle-end/47788
18775 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18776 to zero when the function is not inlinable at all.
18777
18778 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18779
18780 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18781 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18782 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18783 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18784 * config/pa/t-pa64: Likewise.
18785 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18786
18787 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18788
18789 PR driver/47787
18790 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18791
18792 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18793
18794 PR target/47792
18795 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18796
18797 2011-02-18 Anatoly Sokolov <aesok@post.ru>
18798
18799 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18800 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18801 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18802 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18803 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18804 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18805 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18806 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18807 m32r_legitimate_address_p): New functions.
18808 * config/m32r/constraints.md (constraint "S"): Don't use
18809 STORE_PREINC_PREDEC_P.
18810 (constraint "U"): Don't use LOAD_POSTINC_P.
18811
18812 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18813
18814 PR rtl-optimization/46178
18815 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18816 compute ira_hard_regno_cover_class[].
18817
18818 2011-02-18 Richard Guenther <rguenther@suse.de>
18819
18820 PR lto/47798
18821 * lto-streamer.h (lto_global_var_decls): Declare.
18822 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18823 statics for global var processing.
18824
18825 2011-02-18 Richard Guenther <rguenther@suse.de>
18826
18827 PR tree-optimization/47737
18828 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18829 edge dominance check.
18830
18831 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18832
18833 PR debug/47780
18834 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18835 avoid invalid rtx sharing.
18836
18837 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18838
18839 * doc/cpp.texi (Obsolete Features): Add background on the
18840 origin of assertions.
18841
18842 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18843
18844 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
18845 objc_abi == 2.
18846 * config/darwin.c (output_objc_section_asm_op): Added support for
18847 ABI v1 and v2.
18848 (is_objc_metadata): New.
18849 (darwin_objc2_section): New.
18850 (darwin_objc1_section): New.
18851 (machopic_select_section): Added support for ABI v1 and v2.
18852 (darwin_emit_objc_zeroed): New.
18853 (darwin_output_aligned_bss): Detect objc metadata and treat it
18854 appropriately.
18855 (darwin_asm_output_aligned_decl_common): Same.
18856 (darwin_asm_output_aligned_decl_local): Same.
18857 * config/darwin-sections.def: Updated for ABI v1 and v2.
18858 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18859 compiling Objective-C code for the NeXT runtime, default to using
18860 ABI version 0 for 32-bit, and version 2 for 64-bit.
18861
18862 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18863
18864 * common.opt (optimize_fast): New Variable.
18865 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18866 instead of local variable ofast.
18867
18868 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18869
18870 * doc/invoke.texi (fobjc-abi-version): Documented.
18871 (fobjc-nilcheck): Documented.
18872 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18873 version.
18874
18875 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18876
18877 PR driver/47390
18878 * common.opt (export-dynamic): New Driver option.
18879 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18880
18881 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18882
18883 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18884
18885 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
18886 Jan Hubicka <jh@suse.cz>
18887
18888 PR debug/47106
18889 PR debug/47402
18890 * cfgexpand.c (account_used_vars_for_block): Remove.
18891 (estimated_stack_frame_size): Use referenced vars.
18892 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18893 that were referenced in the original function. Test src_fn
18894 rather than cfun. Drop redundant get_var_ann.
18895 (setup_one_parameter): Drop redundant get_var_ann.
18896 (declare_return_variable): Likewise.
18897 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18898 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18899 * ipa-inline.c (compute_inline_parameters): Do not compute
18900 disregard_inline_limits here.
18901 (compute_inlinable_for_current, pass_inlinable): New.
18902 (pass_inline_parameters): Require PROP_referenced_vars.
18903 * cgraphunit.c (cgraph_process_new_functions): Don't run
18904 compute_inline_parameters explicitly unless function is in SSA form.
18905 (cgraph_analyze_function): Set .disregard_inline_limits.
18906 * tree-sra.c (convert_callers): Compute inliner parameters
18907 only for functions already in SSA form.
18908
18909 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18910
18911 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18912 -mlittle-endian-data.
18913
18914 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18915
18916 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18917 -mno-fpu, not -fpu and -no-fpu.
18918 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18919 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18920
18921 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
18922
18923 PR target/43653
18924 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18925 input reload with PLUS RTX.
18926
18927 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18928
18929 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18930 of InverseVar(MDMX).
18931
18932 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18933
18934 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18935 --m4-340.
18936
18937 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18938
18939 * config/mn10300/mn10300.opt (mno-crt0): New.
18940
18941 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18942
18943 * config/m68k/uclinux.opt (static-libc): New Driver option.
18944
18945 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18946
18947 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18948
18949 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18950
18951 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18952 %{muser-extend-enabled}.
18953
18954 2011-02-16 Richard Guenther <rguenther@suse.de>
18955
18956 PR tree-optimization/47738
18957 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18958 the TODO from tree_predictive_commoning.
18959
18960 2011-02-15 Jeff Law <law@redhat.com>
18961
18962 Revert
18963 2011-01-25 Jeff Law <law@redhat.com>
18964
18965 PR rtl-optimization/37273
18966 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18967 handle them like argument loads from stack slots. Do not double
18968 count memory for memory constants and argument loads from stack slots.
18969
18970 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18971
18972 PR middle-end/47725
18973 * combine.c (cant_combine_insn_p): Revert the last change.
18974
18975 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18976
18977 PR target/47755
18978 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18979 mode for vector constants. Remove code that checks for TImode.
18980
18981 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18982
18983 PR debug/47106
18984 PR debug/47402
18985 * cgraph.h (compute_inline_parameters): Return void.
18986 * ipa-inline.c (compute_inline_parameters): Adjust.
18987
18988 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18989
18990 PR debug/47106
18991 PR debug/47402
18992 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18993 rather than decl.
18994 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18995 * ipa-inline.c (compute_inline_parameters): Adjust.
18996
18997 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18998
18999 PR debug/47106
19000 PR debug/47402
19001 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
19002 Adjust all users. Pass FN to...
19003 * tree-flow-inline.h (first_referenced_var): ... this. Add
19004 fn argument.
19005 * ipa-struct-reorg.c: Adjust.
19006 * tree-dfa.c: Adjust.
19007 * tree-into-ssa.c: Adjust.
19008 * tree-sra.c: Adjust.
19009 * tree-ssa-alias.c: Adjust.
19010 * tree-ssa-live.c: Adjust.
19011 * tree-ssa.c: Adjust.
19012 * tree-ssanames.c: Adjust.
19013 * tree-tailcall.c: Adjust.
19014
19015 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
19016
19017 PR debug/47106
19018 PR debug/47402
19019 * tree-flow.h (referenced_var_lookup): Add fn parameter.
19020 Adjust all callers.
19021 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
19022 * tree-flow-inline.h: Adjust.
19023 * gimple-pretty-print.c: Adjust.
19024 * tree-into-ssa.c: Adjust.
19025 * tree-ssa.c: Adjust.
19026 * cfgexpand.c: Adjust.
19027
19028 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19029
19030 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
19031 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19032 (EXTRA_CONSTRAINT): Delete.
19033 * config/iq2000/constraints.md: New file.
19034 * config/iq2000/iq2000.md: Include it.
19035 (define_insn ""): Delete.
19036 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
19037 unsupported constraint letters from patterns.
19038 (call_value, call_value_internal1): Likewise.
19039 (call_value_multiple_internal1): Likewise.
19040
19041 2011-02-15 Nick Clifton <nickc@redhat.com>
19042
19043 * config/mn10300/mn10300.c: Include tm-constrs.h.
19044 (struct liw_data): New data structure describing an LIW candidate
19045 instruction.
19046 (extract_bundle): Use struct liw_data. Allow small integer
19047 operands for some instructions.
19048 (check_liw_constraints): Use struct liw_data. Remove swapped
19049 parameter. Add comments describing the checks. Fix bug when
19050 assigning the source of liw1 to the source of liw2.
19051 (liw_candidate): Delete. Code moved into extract_bundle.
19052 (mn10300_bundle_liw): Use struct liw_data. Check constraints
19053 before swapping.
19054 * config/mn10300/predicates.md (liw_operand): New predicate.
19055 Allows registers and small integer constants.
19056 * config/mn10300/constraints.md (O): New constraint. Accetps
19057 integers in the range -8 to +7 inclusive.
19058 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
19059 for moving a small integer into a register. Give this alternative
19060 LIW attributes.
19061 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
19062 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
19063 using the J,K,L and M constraints,
19064 (liw): Remove SI mode on second operands to allow for HI and QI
19065 mode values.
19066 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
19067 instruction.
19068
19069 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
19070
19071 PR middle-end/47725
19072 * combine.c (cant_combine_insn_p): Check zero/sign extended
19073 hard registers.
19074
19075 2011-02-15 Richard Guenther <rguenther@suse.de>
19076
19077 PR tree-optimization/47743
19078 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
19079 for a non-type-compatible VN lookup bail out.
19080
19081 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19082
19083 * config/fr30/constraints.md: New file.
19084 * config/fr30/fr30.md: Include it.
19085 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
19086 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19087 (EXTRA_CONSTRAINT): Delete.
19088
19089 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19090
19091 * config/frv/constraints.md: New file.
19092 * config/frv/predicates.md: Include it.
19093 * config/frv/frv.c (reg_class_from_letter): Delete.
19094 (frv_option_override): Don't initialize it.
19095 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
19096 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
19097 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
19098 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19099 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
19100 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19101 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
19102 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
19103 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
19104 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
19105 (REG_CLASS_FROM_CONSTRAINT): Delete.
19106
19107 2011-02-15 Jakub Jelinek <jakub@redhat.com>
19108
19109 PR middle-end/47581
19110 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
19111 if frame size is 0 in a leaf function.
19112
19113 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19114
19115 PR pch/14940
19116 * config/alpha/host-osf.c: New file.
19117 * config/alpha/x-osf: New file.
19118 * config.host (alpha*-dec-osf*): Use it.
19119
19120 2011-02-14 Anatoly Sokolov <aesok@post.ru>
19121
19122 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19123 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
19124 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
19125 (rx_mode_dependent_address_p): ...this. Make static. Change argument
19126 type to const_rtx.
19127 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19128
19129 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19130
19131 * config/stormy16/constraints.md: New file.
19132 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
19133 Use satisfies_constraint_Q and satisfies_constraint_R.
19134 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
19135 Delete.
19136 (xstormy16_legitiamte_address_p): Declare.
19137 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
19138 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19139 (EXTRA_CONSTRAINT): Delete.
19140 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
19141 Un-staticize.
19142 (xstormy16_extra_constraint_p): Delete.
19143
19144 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
19145
19146 PR tree-optimization/46494
19147 * loop-unroll.c (split_edge_and_insert): Adjust comment.
19148 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
19149 (pass_rtl_loop_done): Add TODO_verify_flow.
19150 * fwprop.c (pass_rtl_fwprop): Likewise.
19151 * modulo-sched.c (pass_sms): Likewise.
19152 * tree-ssa-dom.c (pass_dominator): Likewise.
19153 * tree-ssa-loop-ch.c (pass_ch): Likewise.
19154 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
19155 (pass_tree_loop_done): Likewise.
19156 * tree-ssa-pre.c (execute_pre): Likewise.
19157 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19158 * tree-ssa-sink.c (pass_sink_code): Likewise.
19159 * tree-vrp.c (pass_vrp): Likewise.
19160
19161 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19162
19163 * config/v850/constraints.md: New file.
19164 * config/v850/v850.md: Include it.
19165 * config/v850/predicates.md (reg_or_0_operand): Use
19166 satisfies_constraint_G.
19167 (special_symbolref_operand): Use satisfies_constraint_K.
19168 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
19169 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
19170 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
19171 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19172 (EXTRA_CONSTRAINT): Delete.
19173 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
19174 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
19175 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
19176
19177 2011-02-14 Anatoly Sokolov <aesok@post.ru>
19178
19179 PR target/47696
19180 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
19181 description.
19182
19183 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19184
19185 * config/mcore/constraints.md: New file.
19186 * config/mcore/mcore.md: Include it.
19187 * config/mcore/mcore.c (reg_class_from_letter): Delete.
19188 * config/mcore/mcore.h (reg_class_from_letter): Delete.
19189 (REG_CLASS_FROM_LETTER): Delete.
19190 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
19191 insn_const_int_ok_for_constraint.
19192 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
19193 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
19194 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19195 (EXTRA_CONSTRAINT): Delete.
19196
19197 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19198
19199 PR ada/41929
19200 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
19201 (IS_SIGHANDLER): Define.
19202 (sparc64_is_sighandler): New function, split off from
19203 sparc64_fallback_frame_state.
19204 (sparc_is_sighandler): New function, split off from
19205 sparc_fallback_frame_state.
19206 (sparc64_fallback_frame_state): Merge with ...
19207 (sparc_fallback_frame_state): ... this into ...
19208 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
19209 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
19210 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
19211 stack instead of hardcoded offsets.
19212
19213 2011-02-14 Andriy Gapon <avg@freebsd.org>
19214
19215 PR target/45808
19216 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19217
19218 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19219
19220 * configure: Regenerate.
19221
19222 2011-02-12 Joseph Myers <joseph@codesourcery.com>
19223
19224 PR driver/45731
19225 * gcc.c (asm_options): Correct spec matching --target-help.
19226
19227 2011-02-12 Martin Jambor <mjambor@suse.cz>
19228
19229 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19230 to gimple call error.
19231
19232 2011-02-12 Mike Stump <mikestump@comcast.net>
19233
19234 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19235 comments in backslash regions.
19236
19237 2011-02-12 Mike Stump <mikestump@comcast.net>
19238 Jakub Jelinek <jakub@redhat.com>
19239 Iain Sandoe <iains@gcc.gnu.org>
19240
19241 PR target/47324
19242 * dwarf2out.c (output_cfa_loc): When required, apply the
19243 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19244 (output_loc_sequence): Likewise.
19245 (output_loc_operands_raw): Likewise.
19246 (output_loc_sequence_raw): Likewise.
19247 (output_cfa_loc): Likewise.
19248 (output_loc_list): Suppress register number adjustment when
19249 calling output_loc_sequence()
19250 (output_die): Likewise.
19251
19252 2011-02-12 Anatoly Sokolov <aesok@post.ru>
19253
19254 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19255 Remove macros.
19256 * config/xtensa/xtensa.c (xtensa_register_move_cost,
19257 xtensa_memory_move_cost): New functions.
19258 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19259
19260 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
19261
19262 PR lto/47225
19263 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19264 in the current directory.
19265 * configure: Rebuilt.
19266
19267 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19268
19269 * config/darwin.c (darwin_override_options): Add a hunk missed
19270 from the commit of r168571. Trim comment line lengths and
19271 correct indents of the preceding block.
19272
19273 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19274
19275 * gcc.c (driver_handle_option): Concatenate the argument to -F with
19276 the switch.
19277
19278 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19279
19280 * common.opt (nostartfiles): New Driver option.
19281
19282 2011-02-11 Xinliang David Li <davidxl@google.com>
19283
19284 PR tree-optimization/47707
19285 * tree-chrec.c (convert_affine_scev): Keep type precision.
19286
19287 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
19288
19289 PR tree-optimization/47420
19290 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19291
19292 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
19293
19294 PR rtl-optimization/47614
19295 * rtl.h (check_for_inc_dec): Declare.
19296 * dse.c (check_for_inc_dec): Externalize...
19297 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19298 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19299
19300 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19301
19302 PR driver/47678
19303 * gcc.c (main): Do not compile inputs if there were errors in
19304 option handling.
19305 * opts-common.c (read_cmdline_option): Check for wrong language
19306 after other error checks.
19307
19308 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
19309
19310 * cgraph.c: Fix comment typos.
19311 * cgraph.h: Likewise.
19312 * cgraphunit.c: Likewise.
19313 * ipa-cp.c: Likewise.
19314 * ipa-inline.c: Likewise.
19315 * ipa-prop.c: Likewise.
19316 * ipa-pure-const.c: Likewise.
19317 * ipa-ref.c: Likewise.
19318 * ipa-reference.c: Likewise.
19319
19320 2011-02-11 Jakub Jelinek <jakub@redhat.com>
19321
19322 PR debug/47684
19323 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19324
19325 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19326
19327 PR testsuite/47400
19328 * doc/sourcebuild.texi (Require Support): Document
19329 dg-require-ascii-locale.
19330
19331 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
19332
19333 * doc/lto.texi (Write summary): Fix missing parentheses.
19334
19335 2011-02-10 DJ Delorie <dj@redhat.com>
19336
19337 * config/m32c/m32c.c (m32c_option_override): Disable
19338 -fcombine-stack-adjustments until flag value tracking and compare
19339 optimization can be rewritten.
19340
19341 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19342
19343 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19344 PROCESSOR_POWER7.
19345 (PROCESSOR_DEFAULT64): Likewise.
19346
19347 2011-02-10 Richard Henderson <rth@redhat.com>
19348
19349 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19350 change from 2011-02-03.
19351 * config/rx/rx.c (flags_from_code): Likewise.
19352 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19353 is valid, n/pz otherwise.
19354 (rx_select_cc_mode): Return CCmode if Y is not zero.
19355
19356 2011-02-10 Richard Guenther <rguenther@suse.de>
19357
19358 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19359
19360 2011-02-10 Richard Guenther <rguenther@suse.de>
19361
19362 PR tree-optimization/47677
19363 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19364
19365 2011-02-10 Jakub Jelinek <jakub@redhat.com>
19366
19367 PR target/47665
19368 * combine.c (make_compound_operation): Only change shifts into
19369 multiplication for SCALAR_INT_MODE_P.
19370
19371 2011-02-10 Jie Zhang <jie@codesourcery.com>
19372
19373 PR testsuite/47622
19374 Revert
19375 2011-02-05 Jie Zhang <jie@codesourcery.com>
19376 PR debug/42631
19377 * web.c (entry_register): Don't clobber the number of the
19378 first uninitialized reference in used[].
19379
19380 2011-02-09 Richard Guenther <rguenther@suse.de>
19381
19382 PR tree-optimization/47664
19383 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19384 all edges again.
19385
19386 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
19387
19388 PR target/46481
19389 PR target/47032
19390 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19391 PROCESSOR_POWER7.
19392 (PROCESSOR_DEFAULT64): Same.
19393 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19394
19395 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19396
19397 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19398
19399 2011-02-09 Martin Jambor <mjambor@suse.cz>
19400
19401 PR middle-end/45505
19402 * tree-sra.c (struct access): New flags grp_scalar_read and
19403 grp_scalar_write. Changed description of assignment read and write
19404 flags.
19405 (dump_access): Dump new flags, reorder all of them.
19406 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19407 to detect multiple scalar reads.
19408 (analyze_access_subtree): Use the new scalar read write flags instead
19409 of the old flags. Adjusted comments.
19410
19411 2011-02-08 DJ Delorie <dj@redhat.com>
19412
19413 PR target/47548
19414 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19415 patterns.
19416
19417 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19418
19419 * config/m68k/uclinux.opt: New.
19420 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19421
19422 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19423
19424 * config/cris/elf.opt (sim): New Driver option.
19425
19426 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19427
19428 * config/xtensa/elf.opt: New.
19429 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19430
19431 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19432
19433 * config/vax/elf.opt: New.
19434 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19435
19436 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19437
19438 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19439
19440 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19441
19442 * config/gnu-user.opt: New.
19443 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19444 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19445 *-*-uclinux*): Use gnu-user.opt.
19446
19447 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
19448
19449 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19450 * config/i386/gnu.h (CPP_SPEC): Likewise.
19451
19452 2011-02-08 Ian Lance Taylor <iant@google.com>
19453
19454 * common.opt (fcx-limited-range): Add SetByCombined flag.
19455 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19456 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19457 (fassociative-math, freciprocal-math): Likewise.
19458 (funsafe-math-optimizations): Likewise.
19459 * opth-gen.awk: Handle SetByCombined.
19460 * optc-gen.awk: Likewise.
19461 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19462 (set_unsafe_math_optimizations_flags): Likewise.
19463 * doc/options.texi (Option properties): Document SetByCombined.
19464
19465 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19466
19467 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19468 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19469 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19470 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19471 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19472
19473 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19474
19475 PR tree-optimization/46834
19476 PR tree-optimization/46994
19477 PR tree-optimization/46995
19478 * graphite-sese-to-poly.c (used_outside_reduction): New.
19479 (detect_commutative_reduction): Call used_outside_reduction.
19480 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19481 translate_scalar_reduction_to_array only when at least one
19482 loop-phi/close-phi tuple has been detected.
19483
19484 2011-02-08 Richard Guenther <rguenther@suse.de>
19485
19486 PR middle-end/47639
19487 * tree-vect-generic.c (expand_vector_operations_1): Update
19488 stmts here ...
19489 (expand_vector_operations): ... not here. Cleanup EH info
19490 and the CFG if required.
19491
19492 2011-02-08 Richard Guenther <rguenther@suse.de>
19493
19494 PR tree-optimization/47641
19495 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19496 require type compatibility.
19497
19498 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19499
19500 * gimple-low.c (lower_function_body): Don't remove the location of
19501 the return statement here.
19502 (lower_gimple_return): Do it here instead but only if the return
19503 statement is actually used twice.
19504
19505 2011-02-08 Richard Guenther <rguenther@suse.de>
19506
19507 PR tree-optimization/47632
19508 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19509 unused up_to_stmt parameter, return whether cfg-cleanup is
19510 necessary, remove EH info properly.
19511 (forward_propagate_into_gimple_cond): Adjust caller.
19512 (forward_propagate_into_cond): Likewise.
19513 (forward_propagate_comparison): Likewise.
19514 (tree_ssa_forward_propagate_single_use_vars): Make
19515 forward_propagate_comparison case similar to the two others.
19516
19517 2011-02-08 Nick Clifton <nickc@redhat.com>
19518
19519 * config/mn10300/mn10300.opt (mliw): New command line option.
19520 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19521 (liw_bundling): New automaton.
19522 (liw): New attribute.
19523 (liw_op): New attribute.
19524 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19525 (movsi_internal): Add LIW attributes.
19526 (andsi3): Likewise.
19527 (iorsi3): Likewise.
19528 (xorsi3): Likewise.
19529 (addsi3): Separate register and immediate alternatives.
19530 Add LIW attributes.
19531 (subsi3): Likewise.
19532 (cmpsi): Likewise.
19533 (aslsi3): Likewise.
19534 (lshrsi3): Likewise.
19535 (ashrsi3): Likewise.
19536 (liw): New pattern.
19537 * config/mn10300/mn10300.c (liw_op_names): New
19538 (mn10300_print_operand): Handle 'W' operand descriptor.
19539 (extract_bundle): New function.
19540 (check_liw_constraints): New function.
19541 (liw_candidate): New function.
19542 (mn10300_bundle_liw): New function.
19543 (mn10300_reorg): New function.
19544 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19545 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19546 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19547 __LIW__ or __NO_LIW__.
19548 * doc/invoke.texi: Describe the -mliw command line option.
19549
19550 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19551
19552 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19553 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19554 pthread_mutex_unlock): Remove.
19555 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19556 * config/pa/t-pa64: Likewise.
19557 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19558 shared libc if not linking against libpthread.
19559 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19560
19561 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19562
19563 PR target/47558
19564 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19565 on 10.6 and later to ensure that we always use the unwinder from
19566 the system. Only add -no_compact_unwind when tarteting darwin
19567 10.6 or later.
19568
19569 2011-02-07 Steve Ellcey <sje@cup.hp.com>
19570
19571 PR target/46997
19572 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19573 (vec_interleave_lowv2sf): Ditto.
19574 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19575 (vec_extract_oddv2sf): Ditto.
19576
19577 2011-02-07 Mike Stump <mikestump@comcast.net>
19578
19579 PR target/42333
19580 Add __ieee_divdc3 entry point.
19581 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19582 entry point.
19583 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19584 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19585 * config/darwin.c (darwin_rename_builtins): Add.
19586 * config/darwin-protos.h (darwin_rename_builtins): Add.
19587
19588 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19589
19590 PR target/47636
19591 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19592 for the condition.
19593
19594 2011-02-07 Mike Stump <mikestump@comcast.net>
19595
19596 * config/darwin.opt (mmacosx-version-min): Update default OS version.
19597
19598 2011-02-07 Denis Chertykov <chertykov@gmail.com>
19599
19600 PR target/47534
19601 * config/avr/libgcc.S (exit): Move .endfunc
19602
19603 2011-02-07 Richard Guenther <rguenther@suse.de>
19604
19605 PR tree-optimization/47615
19606 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19607 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19608 (run_scc_vn): Initialize it.
19609 (visit_reference_op_load): Use it.
19610 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19611
19612 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19613
19614 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19615 DImode trapping arithmetic libfuncs.
19616
19617 2011-02-07 Richard Guenther <rguenther@suse.de>
19618
19619 PR tree-optimization/47621
19620 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19621 two duplicates ...
19622 (execute_update_addresses_taken): ... here. Make it more
19623 conservative in what we accept.
19624
19625 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19626
19627 * config/sparc/freebsd.h (ASM_SPEC): Define.
19628 * config/sparc/vxworks.h (ASM_SPEC): Define.
19629
19630 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19631
19632 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19633
19634 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19635
19636 * doc/invoke.texi: Remove reference to compiler internals from
19637 user documentation.
19638
19639 * reg-notes.def: Remove REG_VALUE_PROFILE.
19640 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19641
19642 2011-02-05 Jakub Jelinek <jakub@redhat.com>
19643
19644 PR middle-end/47610
19645 * varasm.c (default_section_type_flags): If decl is NULL,
19646 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19647
19648 2011-02-05 Jie Zhang <jie@codesourcery.com>
19649
19650 PR debug/42631
19651 * web.c (entry_register): Don't clobber the number of the
19652 first uninitialized reference in used[].
19653
19654 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19655
19656 PR tree-optimization/46194
19657 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19658 (build_classic_dist_vector_1): Do not represent classic distance
19659 vectors when the access functions are variating in different loops.
19660
19661 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19662
19663 * config/mips/iris6.opt: New.
19664 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19665
19666 2011-02-04 Richard Henderson <rth@redhat.com>
19667 Steve Ellcey <sje@cup.hp.com>
19668
19669 PR target/46997
19670 * config/ia64/predicates.md (mux1_brcst_element): New.
19671 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19672 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19673 (ia64_unpack_sign): New.
19674 (ia64_expand_unpack): Rewrite using new routines.
19675 (ia64_expand_widen_sum): Ditto.
19676 (ia64_expand_dot_prod_v8qi): Ditto.
19677 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19678 routines, add endian check.
19679 (pmpy2_even): Rename from pmpy2_r, add endian check.
19680 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19681 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19682 (vec_widen_smult_hi_v4hi): Ditto.
19683 (vec_widen_umult_lo_v4hi): Ditto.
19684 (vec_widen_umult_hi_v4hi): Ditto.
19685 (mulv2si3): Change endian checks.
19686 (sdot_prodv4hi): Rewrite with new calls.
19687 (udot_prodv4hi): New.
19688 (vec_pack_ssat_v4hi): Add endian check.
19689 (vec_pack_usat_v4hi): Ditto.
19690 (vec_pack_ssat_v2si): Ditto.
19691 (max1_even): Rename from max1_r, add endian check.
19692 (max1_odd): Rename from max1_l, add endian check.
19693 (*mux1_rev): Format change.
19694 (*mux1_mix): Ditto.
19695 (*mux1_shuf): Ditto.
19696 (*mux1_alt): Ditto.
19697 (*mux1_brcst_v8qi): Use new predicate.
19698 (vec_extract_evenv8qi): Remove endian check.
19699 (vec_extract_oddv8qi): Ditto.
19700 (vec_interleave_lowv4hi): Format change.
19701 (vec_interleave_highv4hi): Ditto.
19702 (mix2_even): Rename from mix2_r, add endian check.
19703 (mix2_odd): Rename from mux2_l, add endian check.
19704 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19705 (vec_extract_evenodd_helper): Format change.
19706 (vec_extract_evenv4hi): Remove endian check.
19707 (vec_extract_oddv4hi): Remove endian check.
19708 (vec_interleave_lowv2si): Format change.
19709 (vec_interleave_highv2si): Format change.
19710 (vec_initv2si): Remove endian check.
19711 (vecinit_v2si): Add endian check.
19712 (reduc_splus_v2sf): Add endian check.
19713 (reduc_smax_v2sf): Ditto.
19714 (reduc_smin_v2sf): Ditto.
19715 (vec_initv2sf): Remove endian check.
19716 (fpack): Add endian check.
19717 (fswap): Add endian check.
19718 (vec_interleave_highv2sf): Add endian check.
19719 (vec_interleave_lowv2sf): Add endian check.
19720 (fmix_lr): Add endian check.
19721 (vec_setv2sf): Format change.
19722 (*vec_extractv2sf_0_be): Use shift to extract operand.
19723 (*vec_extractv2sf_1_be): New.
19724 (vec_pack_trunc_v4hi): Add endian check.
19725 (vec_pack_trunc_v2si): Format change.
19726
19727 2011-02-04 Jakub Jelinek <jakub@redhat.com>
19728
19729 PR inline-asm/23200
19730 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
19731 do bb, locus and block comparison and disallow loads if it is not set.
19732 (stmt_is_replaceable_p): New function.
19733 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19734 callers.
19735 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19736 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19737 SSA_NAME_DEF_STMT.
19738 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19739
19740 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19741
19742 * config/rs6000/xilinx.opt: New.
19743 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19744
19745 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19746
19747 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19748
19749 2011-02-03 Anatoly Sokolov <aesok@post.ru>
19750
19751 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19752 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19753 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19754 secondary_reload_info, xtensa_secondary_reload): Remove.
19755 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19756 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19757 (xtensa_preferred_reload_class): Make static. Change return and
19758 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19759 Use CONST_DOUBLE_P predicate.
19760 (xtensa_preferred_output_reload_class): New function.
19761 (xtensa_secondary_reload): Make static.
19762
19763 2011-02-03 Joseph Myers <joseph@codesourcery.com>
19764
19765 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19766 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19767 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19768
19769 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19770
19771 PR middle-end/31490
19772 * output.h (SECTION_RELRO): Define.
19773 (SECTION_MACH_DEP): Adjust.
19774 (get_variable_section): New prototype.
19775 * varpool.c (varpool_finalize_named_section_flags): New function.
19776 (varpool_assemble_pending_decls): Call it.
19777 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19778 * cgraphunit.c (cgraph_output_in_order): Call
19779 varpool_finalize_named_section_flags.
19780 * varasm.c (get_section): Allow section flags conflicts between
19781 relro and read-only sections if the section hasn't been declared yet.
19782 Set SECTION_OVERRIDE after diagnosing section type conflict.
19783 (get_variable_section): No longer static.
19784 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19785 readonly sections that need relocations.
19786 (decl_readonly_section_1): New function.
19787 (decl_readonly_section): Use it.
19788
19789 Revert:
19790 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
19791 Steve Ellcey <sje@cup.hp.com>
19792
19793 PR middle-end/31490
19794 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19795 if section attribute used.
19796
19797 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19798
19799 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19800 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19801 (darwin_init_sections): Remove assertion.
19802
19803 2011-02-03 Nick Clifton <nickc@redhat.com>
19804
19805 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19806 lt and ge.
19807 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19808 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19809 instead of "n" and "pz".
19810 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19811 CC_FLAG_S.
19812
19813 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19814
19815 PR target/47312
19816 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19817 fma, expand FMA_EXPR as fma{,f,l} call.
19818
19819 PR lto/47274
19820 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19821 copy them into a unsigned char variable and pass address of it to
19822 lto_output_data_stream.
19823
19824 PR target/47564
19825 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19826 around backend_init_target and lang_dependent_init_target calls.
19827 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19828 (verify_cgraph_node): Don't call set_cfun here. Use
19829 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19830 Set error_found for incorrectly represented calls to thunks.
19831
19832 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19833
19834 PR debug/43092
19835 PR rtl-optimization/43494
19836 * rtl.h (for_each_inc_dec_fn): New type.
19837 (for_each_inc_dec): Declare.
19838 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19839 (for_each_inc_dec_find_inc_dec): New fn.
19840 (for_each_inc_dec_find_mem): New fn.
19841 (for_each_inc_dec): New fn.
19842 * dse.c (struct insn_size): Remove.
19843 (replace_inc_dec, replace_inc_dec_mem): Remove.
19844 (emit_inc_dec_insn_before): New fn.
19845 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19846 (canon_address): Pass mem modes to cselib_lookup.
19847 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19848 (cselib_lookup_from_insn): Likewise.
19849 (cselib_subst_to_values): Likewise.
19850 * cselib.c (find_slot_memmode): New var.
19851 (cselib_find_slot): New fn. Use it instead of
19852 htab_find_slot_with_hash everywhere.
19853 (entry_and_rtx_equal_p): Use find_slot_memmode.
19854 (autoinc_split): New fn.
19855 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19856 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19857 Deal with autoinc. Special-case recursion into MEMs.
19858 (cselib_hash_rtx): Likewise.
19859 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19860 address and MEM modes.
19861 (cselib_subst_to_values): Add memmode, pass it on.
19862 Deal with autoinc.
19863 (cselib_lookup): Add memmode argument, pass it on.
19864 (cselib_lookup_from_insn): Add memmode.
19865 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19866 (struct cselib_record_autoinc_data): New.
19867 (cselib_record_autoinc_cb): New fn.
19868 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19869 mode to cselib_lookup. Reset autoinced REGs here instead of...
19870 (cselib_process_insn): ... here.
19871 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19872 to cselib_lookup.
19873 (add_uses): Likewise, also to cselib_subst_to_values.
19874 (add_stores): Likewise.
19875 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19876 cselib_subst_to_values.
19877 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19878 * gcse.c (do_local_cprop): Adjusted.
19879 * postreload.c (reload_cse_simplify_set): Adjusted.
19880 (reload_cse_simplify_operands): Adjusted.
19881 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19882
19883 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19884
19885 PR tree-optimization/45122
19886 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19887 unsafe assumptions when there's more than one loop exit.
19888
19889 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19890
19891 PR target/47272
19892 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19893 Document using vector double with the load/store builtins, and
19894 that the load/store builtins always use Altivec instructions.
19895
19896 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19897 to use altivec memory instructions, even on VSX.
19898 (vector_altivec_store_<mode>): Ditto.
19899
19900 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19901 function.
19902
19903 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19904 V2DF, V2DI support to load/store overloaded builtins.
19905
19906 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19907 altivec load/store builtins for V2DF/V2DI types.
19908
19909 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19910 set avoid indexed addresses on power6 if -maltivec.
19911 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19912 vector_altivec_load/vector_altivec_store builtins.
19913 (altivec_expand_st_builtin): Ditto.
19914 (altivec_expand_builtin): Add VSX memory builtins.
19915 (rs6000_init_builtins): Add V2DI types to internal types.
19916 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19917 load/store builtins.
19918 (rs6000_address_for_altivec): Insure memory address is appropriate
19919 for Altivec.
19920
19921 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19922 vec_vsx_ld and vec_vsx_st.
19923 (vsx_store_<mode>): Ditto.
19924
19925 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19926 variables to hold long long types for VSX vector memory builtins.
19927 (RS6000_BTI_unsigned_long_long): Ditto.
19928 (long_long_integer_type_internal_node): Ditti.
19929 (long_long_unsigned_type_internal_node): Ditti.
19930
19931 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19932 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19933 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19934
19935 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19936 short cuts.
19937 (vec_vsx_st): Ditto.
19938
19939 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19940
19941 * config/pa/pa-hpux10.opt: New.
19942 * config/hpux11.opt (pthread): New Driver option.
19943 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19944 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19945
19946 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19947
19948 * config/ia64/vms.opt: New.
19949 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19950
19951 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19952
19953 PR target/47580
19954 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19955 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19956 generator functions.
19957 (vsx_floatuns<VSi><mode>2): Ditto.
19958 (vsx_fix_trunc<mode><VSi>2): Ditto.
19959 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19960
19961 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19962
19963 * config/i386/djgpp.opt (posix): New Driver option.
19964
19965 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19966
19967 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19968 Move to the unsupported targets list.
19969
19970 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19971
19972 PR rtl-optimization/47525
19973 * df-scan.c: Update copyright years.
19974 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19975 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19976
19977 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19978
19979 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19980 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19981 (ASM_OUTPUT_ASCII): Remove.
19982 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19983
19984 2011-02-02 Jeff Law <law@redhat.com>
19985
19986 PR middle-end/47543
19987 * reload.c (find_reloads_address): Handle reg+d address where both
19988 components are invalid by reloading the entire address.
19989
19990 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19991 Richard Guenther <rguenther@suse.de>
19992
19993 PR tree-optimization/40979
19994 PR bootstrap/47044
19995 * passes.c (init_optimization_passes): After LIM call copy_prop
19996 and DCE to clean up.
19997 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19998
19999 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
20000
20001 PR tree-optimization/47576
20002 PR tree-optimization/47555
20003 * doc/invoke.texi (scev-max-expr-complexity): Documented.
20004 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20005 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
20006 * tree-scalar-evolution.c (follow_ssa_edge): Use
20007 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
20008
20009 2011-02-02 Richard Guenther <rguenther@suse.de>
20010
20011 PR tree-optimization/47566
20012 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
20013
20014 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
20015
20016 PR debug/47106
20017 PR debug/47402
20018 * tree-inline.c (declare_return_variable): Remove unused caller
20019 variable.
20020
20021 PR debug/47106
20022 PR debug/47402
20023 * tree-flow-inline.h (clear_is_used, is_used_p): New.
20024 * cfgexpand.c (account_used_vars_for_block): Use them.
20025 * tree-nrv.c (tree_nrv): Likewise.
20026 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
20027 (dump_scope_block): Likewise.
20028 (remove_unused_locals): Likewise.
20029
20030 PR debug/47106
20031 PR debug/47402
20032 * tree-inline.c (declare_return_variable): Add result decl to
20033 local decls only once.
20034 * gimple-low.c (record_vars_into): Mark newly-created variables
20035 as referenced.
20036
20037 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
20038
20039 PR debug/47498
20040 PR debug/47501
20041 PR debug/45136
20042 PR debug/45130
20043 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20044 debug insns.
20045 (no_real_insns_p, schedule_block, set_priorities): Drop special
20046 treatment of boundary debug insns.
20047 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20048 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
20049 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20050 (BOUNDARY_DEBUG_INSN_P): Likewise.
20051 (SCHEDULE_DEBUG_INSN_P): Likewise.
20052 * sched-rgn.c (init_ready_list): Drop special treatment of
20053 boundary debug insns.
20054 * final.c (rest_of_clean_state): Clear notes' BB.
20055
20056 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20057
20058 * config/openbsd.opt (assert=): New Driver option.
20059
20060 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20061
20062 * config/i386/nto.opt: New.
20063 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
20064
20065 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20066
20067 * config/i386/netware.opt: New.
20068 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
20069
20070 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20071
20072 * config/interix.opt (posix): New Driver option.
20073
20074 2011-02-01 DJ Delorie <dj@redhat.com>
20075
20076 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
20077
20078 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
20079 class for A0/A1.
20080
20081 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
20082
20083 PR tree-optimization/47561
20084 * toplev.c (process_options): Print the Graphite flags. Add
20085 flag_loop_flatten to the list of options requiring Graphite.
20086
20087 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20088
20089 * config/i386/cygming.opt (posix): New Driver option.
20090
20091 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20092
20093 * config/arm/vxworks.opt: New.
20094 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
20095
20096 2011-02-01 Joseph Myers <joseph@codesourcery.com>
20097
20098 * config/alpha/elf.opt: New.
20099 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
20100 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
20101
20102 2011-02-01 Richard Guenther <rguenther@suse.de>
20103
20104 PR tree-optimization/47559
20105 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
20106 store-motion on references that can throw.
20107
20108 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
20109
20110 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
20111 * tree-pass.h (TDF_CSELIB): New macro.
20112 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
20113 cselib_lookup): Check for it rather than for TDF_DETAILS.
20114
20115 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
20116
20117 PR driver/47547
20118 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
20119 is HOST_BIT_BUCKET.
20120
20121 * opts.c (finish_options): Don't add x_aux_base_name if it is
20122 HOST_BIT_BUCKET.
20123
20124 2011-02-01 Richard Guenther <rguenther@suse.de>
20125
20126 PR tree-optimization/47555
20127 Revert
20128 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
20129
20130 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20131
20132 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
20133
20134 PR gcc/46692
20135 * config/lm32/t-lm32: Add multilib for all CPU options.
20136
20137 2011-02-01 Richard Guenther <rguenther@suse.de>
20138
20139 PR tree-optimization/47541
20140 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
20141 sure to have a field at offset zero.
20142
20143 2011-01-31 Joseph Myers <joseph@codesourcery.com>
20144
20145 * config/arc/arc.opt (EB, EL): New Driver options.
20146
20147 2011-01-31 Joseph Myers <joseph@codesourcery.com>
20148
20149 * config/alpha/osf5.opt: New.
20150 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
20151
20152 2011-01-31 Joseph Myers <joseph@codesourcery.com>
20153
20154 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
20155
20156 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
20157
20158 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
20159 -floop-interchange.
20160 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
20161 is an alias of -floop-interchange and that it requires the
20162 Graphite infrastructure.
20163 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
20164 flag_loop_interchange based on the value of flag_tree_loop_linear.
20165
20166 2011-01-31 Jakub Jelinek <jakub@redhat.com>
20167 Richard Guenther <rguenther@suse.de>
20168
20169 PR tree-optimization/47538
20170 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
20171 type instead of r1type, except for comparisons. For right
20172 shifts and comparisons punt if there are mismatches in
20173 sizetype vs. non-sizetype types.
20174
20175 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20176
20177 * doc/sourcebuild.texi (Effective-Target Keywords): Document
20178 avx_runtime.
20179
20180 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20181
20182 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
20183 version number.
20184 * configure: Regenerate.
20185
20186 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20187
20188 * configure.ac (gcc_cv_ld_static_option): Define.
20189 (gcc_cv_ld_dynamic_option): Define.
20190 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
20191 instead.
20192 (HAVE_LD_STATIC_DYNAMIC): Update message.
20193 (LD_STATIC_OPTION): Define.
20194 (LD_DYNAMIC_OPTION): Define.
20195 * configure: Regenerate.
20196 * config.in: Regenerate.
20197 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
20198 HAVE_LD_STATIC_DYNAMIC]: Use them.
20199
20200 2011-01-31 Nick Clifton <nickc@redhat.com>
20201
20202 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
20203 registers inside interrupt handlers if the handler is not a leaf
20204 function.
20205
20206 2011-01-31 Nick Clifton <nickc@redhat.com>
20207
20208 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20209 reg_renumber returning an INVALID_REGNUM.
20210
20211 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
20212
20213 PR libgcj/44341
20214 * doc/install.texi: Document host options discarded when cross
20215 configuring target libraries.
20216
20217 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
20218
20219 Reverted:
20220 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20221 PR debug/45136
20222 PR debug/45130
20223 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20224 debug insns.
20225 (no_real_insns_p, schedule_block, set_priorities): Drop special
20226 treatment of boundary debug insns.
20227 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20228 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20229 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20230 (BOUNDARY_DEBUG_INSN_P): Likewise.
20231 (SCHEDULE_DEBUG_INSN_P): Likewise.
20232 * sched-rgn.c (init_ready_list): Drop special treatment of
20233 boundary debug insns.
20234 * final.c (rest_of_clean-state): Clear notes' BB.
20235
20236 2011-01-31 Alan Modra <amodra@gmail.com>
20237
20238 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20239 toc relative expressions as we do in print_operand_address.
20240
20241 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
20242
20243 * doc/extend.texi: Follow spelling conventions.
20244 * doc/invoke.texi: Fix a typo.
20245
20246 2011-01-30 Joseph Myers <joseph@codesourcery.com>
20247
20248 * config/hpux11.opt: New.
20249 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20250 ia64*-*-hpux*): Use hpux11.opt.
20251
20252 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
20253
20254 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20255 to tmake_file.
20256
20257 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20258
20259 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20260 support sites.
20261
20262 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20263
20264 * doc/install.texi (Binaries): Remove outdated reference for
20265 Motorola 68HC11/68HC12 downloads.
20266
20267 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20268
20269 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20270 Drepper's paper.
20271
20272 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
20273
20274 PR bootstrap/47147
20275 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20276 used by NetBSD.
20277
20278 2011-01-28 Ahmad Sharif <asharif@google.com>
20279
20280 * value-prof.c (check_counter): Corrected error message.
20281
20282 2011-01-29 Jie Zhang <jie@codesourcery.com>
20283
20284 * config/arm/arm.c (arm_legitimize_reload_address): New.
20285 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20286 arm_legitimize_reload_address.
20287 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20288
20289 2011-01-28 Ian Lance Taylor <iant@google.com>
20290
20291 * godump.c (go_define): Ignore macros whose definitions include
20292 two adjacent operands.
20293
20294 2011-01-28 Jakub Jelinek <jakub@redhat.com>
20295
20296 PR target/42894
20297 * varasm.c (force_const_mem): Store copy of x in desc->constant
20298 instead of x itself.
20299 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20300 itself into REG_EQUAL note.
20301
20302 2011-01-28 Joseph Myers <joseph@codesourcery.com>
20303
20304 * config/freebsd.opt (posix, rdynamic): New Driver options.
20305
20306 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20307
20308 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20309 -Bstatic/-Bdynamic.
20310 * configure: Regenerate.
20311
20312 2011-01-27 Joseph Myers <joseph@codesourcery.com>
20313
20314 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20315 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20316
20317 2011-01-27 Anatoly Sokolov <aesok@post.ru>
20318
20319 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20320 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20321 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20322 (s390_preferred_reload_class): Make static. Change return and
20323 'rclass' argument type to reg_class_t.
20324
20325 2011-01-27 Jan Hubicka <jh@suse.cz>
20326
20327 PR middle-end/46949
20328 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20329 (process_function_and_variable_attributes): Check defined weakrefs.
20330
20331 2011-01-27 Martin Jambor <mjambor@suse.cz>
20332
20333 PR tree-optimization/47228
20334 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20335 build_ref_for_offset.
20336
20337 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20338
20339 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20340
20341 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
20342
20343 PR rtl-optimization/46856
20344 * postreload.c (reload_combine_recognize_const_pattern): Do not
20345 separate cc0 setter and user on cc0 targets.
20346
20347 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20348
20349 PR c/43082
20350 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20351 passed a VOID_TYPE expression, immediately emit an error and
20352 return error_mark_node.
20353
20354 2011-01-26 Jeff Law <law@redhat.com>
20355
20356 PR rtl-optimization/47464
20357 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20358 rather than may_trap_p as needed.
20359
20360 2011-01-26 DJ Delorie <dj@redhat.com>
20361
20362 PR rtl-optimization/46878
20363 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20364 setter/user dependency as well.
20365
20366 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20367
20368 PR rtl-optimization/44469
20369 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20370 after removing trivially dead basic blocks.
20371
20372 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20373
20374 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20375 * config/frv/frv.h (LINK_SPEC): Likewise.
20376 * config/i386/netware.h (LINK_SPEC): Likewise.
20377 * config/m68k/linux.h (ASM_SPEC): Likewise.
20378 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20379 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20380 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20381 * config/sparc/linux.h (ASM_SPEC): Likewise.
20382 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20383 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20384
20385 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20386
20387 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20388 * config/frv/frv.h (ASM_SPEC): Likewise.
20389 * config/m68k/linux.h (ASM_SPEC): Likewise.
20390 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20391 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20392 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20393 * config/sparc/linux.h (ASM_SPEC): Likewise.
20394 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20395 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20396
20397 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20398
20399 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20400 * config/frv/frv.h (LINK_SPEC): Likewise.
20401 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20402
20403 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20404
20405 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20406 * config/frv/frv.h (ASM_SPEC): Likewise.
20407 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20408 * config/m68k/linux.h (ASM_SPEC): Likewise.
20409 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20410 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20411 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20412 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20413 * config/sparc/linux.h (ASM_SPEC): Likewise.
20414 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20415 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20416 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20417
20418 2011-01-26 Steve Ellcey <sje@cup.hp.com>
20419
20420 PR target/46997
20421 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20422 (*mux2): Ditto.
20423 (vec_extract_evenodd_help): Ditto.
20424 (vec_extract_evenv4hi): Ditto.
20425 (vec_extract_oddv4hi): Ditto.
20426 (vec_interleave_lowv2si): Ditto.
20427 (vec_interleave_highv2si): Ditto.
20428 (vec_extract_evenv2si): Ditto.
20429 (vec_extract_oddv2si: Ditto.
20430 (vec_pack_trunc_v2si): Ditto.
20431
20432 2011-01-22 Jan Hubicka <jh@suse.cz>
20433
20434 PR target/47237
20435 * cgraph.h (cgraph_local_info): New field can_change_signature.
20436 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20437 signature can change.
20438 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20439 can change.
20440 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20441 (cgraph_function_versioning): We can not change signature of functions
20442 that don't allow that.
20443 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20444 (lto_input_node): Likewise.
20445 * ipa-inline.c (compute_inline_parameters): Compute
20446 local.can_change_signature.
20447 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20448 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20449 functions that can not change signature.
20450 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20451 init_cumulative_args): Do not use local calling conventions
20452 for functions that can not change signature.
20453
20454 2011-01-22 Jan Hubicka <jh@suse.cz>
20455
20456 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20457
20458 2011-01-26 Richard Guenther <rguenther@suse.de>
20459
20460 PR tree-optimization/47190
20461 * cgraphunit.c (process_common_attributes): New function.
20462 (process_function_and_variable_attributes): Use it.
20463
20464 2011-01-26 Richard Guenther <rguenther@suse.de>
20465
20466 PR lto/47423
20467 * cgraphbuild.c (record_eh_tables): Record reference to personality
20468 function.
20469
20470 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
20471
20472 PR debug/45454
20473 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20474 non-debug insns from moving up.
20475
20476 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20477
20478 PR target/40125
20479 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20480 t-dlldir{,-x} fragment for build and add it to tmake_file.
20481 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20482 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20483 * config/i386/t-dlldir: New file.
20484 (SHLIB_DLLDIR): Define.
20485 * config/i386/t-dlldir-x: New file.
20486 (SHLIB_DLLDIR): Define.
20487 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20488 (SHLIB_INSTALL): Use it.
20489
20490 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20491
20492 PR target/47246
20493 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20494 lower bound of the allowed Thumb-2 coprocessor load/store
20495 index range to -256. Add explaining comment.
20496
20497 2011-01-25 Ian Lance Taylor <iant@google.com>
20498
20499 * godump.c (go_define): Improve lexing of macro expansion to only
20500 accept expressions which match Go spec.
20501
20502 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20503
20504 PR c++/43601
20505 * tree.c (handle_dll_attribute): Handle it.
20506 * doc/extend.texi (@item dllexport): Mention it.
20507 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20508
20509 2011-01-25 Ian Lance Taylor <iant@google.com>
20510
20511 PR tree-optimization/26854
20512 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20513 (decl_jump_unsafe): Move higher in file, with no other change.
20514 (bind): Set has_jump_unsafe_decl if appropriate.
20515 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20516 (check_earlier_gotos): Likewise.
20517 (c_check_switch_jump_warnings): Likewise.
20518
20519 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20520
20521 * doc/invoke.texi (Warning Options): Add missing hyphen.
20522 (-fprofile-dir): Minor grammatical fixes.
20523 (-fbranch-probabilities): Likewise.
20524
20525 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20526
20527 PR debug/45136
20528 PR debug/45130
20529 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20530 debug insns.
20531 (no_real_insns_p, schedule_block, set_priorities): Drop special
20532 treatment of boundary debug insns.
20533 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20534 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20535 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20536 (BOUNDARY_DEBUG_INSN_P): Likewise.
20537 (SCHEDULE_DEBUG_INSN_P): Likewise.
20538 * sched-rgn.c (init_ready_list): Drop special treatment of
20539 boundary debug insns.
20540 * final.c (rest_of_clean-state): Clear notes' BB.
20541
20542 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20543
20544 * Makefile.in (LAMBDA_H): Removed.
20545 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20546 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20547 lambda-trans.o, and tree-loop-linear.o.
20548 (lto-symtab.o): Remove dependence on LAMBDA_H.
20549 (tree-loop-linear.o): Remove rule.
20550 (lambda-mat.o): Same.
20551 (lambda-trans.o): Same.
20552 (lambda-code.o): Same.
20553 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20554 (tree-vect-slp.o): Same.
20555 * hwint.h (gcd): Moved here.
20556 (least_common_multiple): Same.
20557 * lambda-code.c: Removed.
20558 * lambda-mat.c: Removed.
20559 * lambda-trans.c: Removed.
20560 * lambda.h: Removed.
20561 * tree-loop-linear.c: Removed.
20562 * lto-symtab.c: Do not include lambda.h.
20563 * omega.c (gcd): Removed.
20564 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20565 * tree-data-ref.c (print_lambda_vector): Moved here.
20566 (lambda_vector_copy): Same.
20567 (lambda_matrix_copy): Same.
20568 (lambda_matrix_id): Same.
20569 (lambda_vector_first_nz): Same.
20570 (lambda_matrix_row_add): Same.
20571 (lambda_matrix_row_exchange): Same.
20572 (lambda_vector_mult_const): Same.
20573 (lambda_vector_negate): Same.
20574 (lambda_matrix_row_negate): Same.
20575 (lambda_vector_equal): Same.
20576 (lambda_matrix_right_hermite): Same.
20577 * tree-data-ref.h: Do not include lambda.h.
20578 (lambda_vector): Moved here.
20579 (lambda_matrix): Same.
20580 (dependence_level): Same.
20581 (lambda_transform_legal_p): Removed declaration.
20582 (lambda_collect_parameters): Same.
20583 (lambda_compute_access_matrices): Same.
20584 (lambda_vector_gcd): Same.
20585 (lambda_vector_new): Same.
20586 (lambda_vector_clear): Same.
20587 (lambda_vector_lexico_pos): Same.
20588 (lambda_vector_zerop): Same.
20589 (lambda_matrix_new): Same.
20590 * tree-flow.h (least_common_multiple): Removed declaration.
20591 * tree-parloops.c (lambda_trans_matrix): Moved here.
20592 (LTM_MATRIX): Same.
20593 (LTM_ROWSIZE): Same.
20594 (LTM_COLSIZE): Same.
20595 (LTM_DENOMINATOR): Same.
20596 (lambda_trans_matrix_new): Same.
20597 (lambda_matrix_vector_mult): Same.
20598 (lambda_transform_legal_p): Same.
20599 * tree-pass.h (pass_linear_transform): Removed declaration.
20600 * tree-ssa-loop.c (tree_linear_transform): Removed.
20601 (gate_tree_linear_transform): Removed.
20602 (pass_linear_transform): Removed.
20603 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20604 flag_loop_interchange.
20605
20606 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20607
20608 PR tree-optimization/47265
20609 PR tree-optimization/47443
20610 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20611 if name still has some uses.
20612
20613 2011-01-25 Martin Jambor <mjambor@suse.cz>
20614
20615 PR tree-optimization/47382
20616 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20617 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20618
20619 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
20620
20621 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20622 sjlj_except_unwind_info.
20623
20624 2011-01-25 Richard Guenther <rguenther@suse.de>
20625
20626 PR tree-optimization/47426
20627 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20628 visible functions results escape.
20629
20630 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20631
20632 PR target/45701
20633 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20634 (arm_get_frame_offsets): Use it.
20635
20636 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20637 Jakub Jelinek <jakub@redhat.com>
20638
20639 PR tree-optimization/47271
20640 * tree-if-conv.c (bb_postdominates_preds): New.
20641 (if_convertible_bb_p): Call bb_postdominates_preds.
20642 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20643 (predicate_scalar_phi): Call bb_postdominates_preds.
20644
20645 2011-01-25 Nick Clifton <nickc@redhat.com>
20646
20647 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20648 * config/rx/rx.c (rx_function_value): Likewise.
20649 (rx_promote_function_mode): Likewise.
20650 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20651 in order to make it legitimate.
20652 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20653 make sure that the first operand is the same as the result register.
20654 (addsi3_unspec): Delete.
20655 (subdi3): Do not accept immediate operands.
20656 (subdi3_internal): Likewise.
20657
20658 2011-01-25 Jeff Law <law@redhat.com>
20659
20660 PR rtl-optimization/37273
20661 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20662 handle them like argument loads from stack slots. Do not double
20663 count memory for memory constants and argument loads from stack slots.
20664
20665 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20666
20667 PR tree-optimization/47427
20668 PR tree-optimization/47428
20669 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20670 coalesce if the new root var would be TREE_READONLY.
20671
20672 2011-01-25 Richard Guenther <rguenther@suse.de>
20673
20674 PR middle-end/47414
20675 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20676 correct type for TBAA.
20677
20678 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20679
20680 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20681 (close_phi_written_to_memory): Call for_each_index with
20682 dr_indices_valid_in_loop.
20683
20684 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20685
20686 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20687 when it is initialized.
20688
20689 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20690
20691 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20692 call to graphite_find_data_references_in_stmt.
20693 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20694 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20695 call to graphite_find_data_references_in_stmt.
20696 (analyze_drs_in_stmts): Same.
20697 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20698 in which the scalar analysis of indices is performed.
20699 (create_data_ref): Same. Update call to dr_analyze_indices.
20700 (find_data_references_in_stmt): Update call to create_data_ref.
20701 (graphite_find_data_references_in_stmt): Same.
20702 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20703 declaration.
20704 (create_data_ref): Same.
20705 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20706 call to create_data_ref.
20707
20708 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20709
20710 * graphite-sese-to-poly.c (build_poly_scop): Move
20711 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20712
20713 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20714
20715 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20716 VAR_DECL, PARM_DECL, and RESULT_DECL.
20717
20718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20719
20720 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20721 in a reduction PBB.
20722 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20723 that have already been marked as PBB_IS_REDUCTION.
20724
20725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20726
20727 * graphite-scop-detection.c (same_close_phi_node): New.
20728 (remove_duplicate_close_phi): New.
20729 (make_close_phi_nodes_unique): New.
20730 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20731
20732 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20733
20734 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20735 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20736 of both data references to be the same.
20737
20738 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20739
20740 * graphite-dependences.c (build_lexicographical_constraint): Remove
20741 the gdim parameter.
20742 (build_lexicographical_constraint): Adjust call to
20743 ppl_powerset_is_empty.
20744 (dependence_polyhedron): Same.
20745 (graphite_legal_transform_dr): Same.
20746 (graphite_carried_dependence_level_k): Same.
20747 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20748 parameter.
20749 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20750
20751 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20752
20753 * graphite-sese-to-poly.c
20754 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20755 (close_phi_written_to_memory): New.
20756 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20757 and unshare_expr.
20758
20759 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20760
20761 * doc/install.texi: Update the expected version number of PPL to 0.11.
20762 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20763 #if PPL_VERSION_MINOR < 11.
20764
20765 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20766
20767 * graphite-dependences.c: Include graphite-cloog-util.h.
20768 (new_poly_ddr): Inlined into dependence_polyhedron.
20769 (free_poly_ddr): Moved close by new_poly_ddr.
20770 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20771 Early return NULL when ppl_powerset_is_empty returns true.
20772 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20773 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20774 (graphite_legal_transform_dr): Call new_poly_ddr.
20775 (graphite_carried_dependence_level_k): Same.
20776 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20777 (dot_transformed_deps_stmt_1): Removed.
20778 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20779 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20780 (dot_deps_1): Call dot_deps_2.
20781 * Makefile.in (graphite-dependences.o): Add missing dependence on
20782 graphite-cloog-util.h.
20783
20784 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20785
20786 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20787 (build_lexicographical_constraint): Same.
20788 (dependence_polyhedron_1): Same.
20789 (graphite_legal_transform_dr): Same.
20790 (graphite_carried_dependence_level_k): Same.
20791 * graphite-ppl.c (ppl_powerset_is_empty): New.
20792 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20793 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20794
20795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20796
20797 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20798 the "a followed by b" relation and document it.
20799
20800 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20801
20802 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20803 iteration when the bag of constraints is empty.
20804
20805 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20806
20807 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20808
20809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20810
20811 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20812 nest and two loop depths as parameters.
20813 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20814 lst_perfect_nestify.
20815
20816 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20817
20818 * graphite-dependences.c (print_pddr): Call
20819 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20820
20821 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20822
20823 * graphite-ppl.c (debug_gmp_value): New.
20824 * graphite-ppl.h (debug_gmp_value): Declared.
20825
20826 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20827
20828 * doc/install.texi: Document availability of cloog-0.16.
20829
20830 2011-01-25 Vladimir Kargov <kargov@gmail.com>
20831
20832 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20833 invalid postdominance info.
20834
20835 2011-01-24 Jan Hubicka <jh@suse.cz>
20836
20837 PR c/21659
20838 * doc/extend.texi (weak pragma): Drop claim that it must
20839 appear before definition.
20840 * varasm.c (merge_weak, declare_weak): Only sanity check
20841 that DECL is not output at a time it is declared weak.
20842
20843 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20844
20845 * machmode.def: Fixed comments.
20846
20847 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
20848
20849 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20850
20851 2011-01-24 Paul Koning <ni1d@arrl.net>
20852
20853 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
20854 WORDS_BIG_ENDIAN.
20855
20856 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20857
20858 PR target/46519
20859 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20860 (block_info): Add scanned and prev.
20861 (move_or_delete_vzeroupper_2): Return if the basic block
20862 has been scanned and the upper 128bit state is unchanged
20863 from the last scan.
20864 (move_or_delete_vzeroupper_1): Return true if the exit
20865 state is changed.
20866 (move_or_delete_vzeroupper): Visit basic blocks using the
20867 work-list based algorithm based on vt_find_locations in
20868 var-tracking.c.
20869
20870 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20871
20872 2011-01-24 Nick Clifton <nickc@redhat.com>
20873
20874 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20875 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20876 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20877 then define __v850e1__.
20878 * doc/invoke.texi: Document -mv850es.
20879
20880 2011-01-24 Richard Henderson <rth@redhat.com>
20881
20882 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20883 compound unordered comparisons.
20884 * config/rx/rx.c (rx_split_fp_compare): Remove.
20885 * config/rx/rx-protos.h: Update.
20886 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20887 (cbranchsf4): Don't call rx_split_fp_compare.
20888 (*cbranchsf4): Use rx_split_cbranch.
20889 (*cmpsf): Don't accept "i" constraint.
20890 (*conditional_branch): Only valid after reload.
20891 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20892
20893 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20894
20895 PR target/47385
20896 * config/rs6000/altivec.md (vector constant splitters): Add
20897 support for creating vector single precision constants if -mvsx is
20898 used and we would create the constant using Altivec primitives.
20899
20900 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20901 Richard Sandiford <rdsandiford@googlemail.com>
20902
20903 PR rtl-optimization/47166
20904 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20905 mechanism for PRE_MODIFY and POST_MODIFY.
20906 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20907 reloadreg.
20908
20909 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20910
20911 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
20912
20913 2011-01-22 Jan Hubicka <jh@suse.cz>
20914
20915 PR lto/47333
20916 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20917
20918 2011-01-22 Jan Hubicka <jh@suse.cz>
20919
20920 PR tree-optimization/43884
20921 PR lto/44334
20922 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
20923 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20924
20925 2011-01-22 Anatoly Sokolov <aesok@post.ru>
20926
20927 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20928 * config/s390/s390.c (s390_register_move_cost,
20929 s390_memory_move_cost): New.
20930 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20931
20932 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20933
20934 PR middle-end/47401
20935 * except.c (sjlj_assign_call_site_values): Move setting the
20936 crtl->uses_eh_lsda flag to ...
20937 (sjlj_mark_call_sites): ... here.
20938 (sjlj_emit_function_enter): Support NULL dispatch label.
20939 (sjlj_build_landing_pads): In a function with no landing pads
20940 that still has must-not-throw regions, generate code to register
20941 a personality function with empty LSDA.
20942
20943 2011-01-21 Richard Henderson <rth@redhat.com>
20944
20945 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20946
20947 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20948
20949 * compare-elim.c: New file.
20950 * Makefile.in (OBJS-common): Add it.
20951 (compare-elim.o): New.
20952 * common.opt (fcompare-elim): New.
20953 * opts.c (default_options_table): Add OPT_fcompare_elim.
20954 * tree-pass.h (pass_compare_elim_after_reload): New.
20955 * passes.c (init_optimization_passes): Add it.
20956 * recog.h: Protect against re-inclusion.
20957 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20958 * doc/invoke.texi (-fcompare-elim): Document it.
20959 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20960 * doc/tm.texi: Rebuild.
20961
20962 2011-01-22 Nick Clifton <nickc@redhat.com>
20963
20964 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20965 rx_split_fp_compare.
20966
20967 2011-01-22 Nick Clifton <nickc@redhat.com>
20968
20969 * config/rx/rx.md (UNSPEC_CONST): New.
20970 (deallocate_and_return): Wrap the amount popped off the stack in
20971 an UNSPEC_CONST in order to stop it being rejected by
20972 -mmax-constant-size.
20973 (pop_and_return): Add a "(return)" rtx.
20974 (call): Drop the immediate operand.
20975 (call_internal): Likewise.
20976 (call_value): Likewise.
20977 (call_value_internal): Likewise.
20978 (sibcall_internal): Likewise.
20979 (sibcall_value_internal): Likewise.
20980 (sibcall): Likewise. Generate an explicit call using
20981 sibcall_internal.
20982 (sibcall_value): Likewise.
20983 (mov<>): FAIL if a constant operand is not legitimate.
20984 (addsi3_unpsec): New pattern.
20985
20986 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
20987 (ok_for_max_constant): New function.
20988 (gen_safe_add): New function.
20989 (rx_expand_prologue): Use gen_safe_add.
20990 (rx_expand_epilogue): Likewise.
20991 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20992 UNSPEC CONSTs.
20993
20994 2011-01-21 Jeff Law <law@redhat.com>
20995
20996 PR tree-optimization/47053
20997 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20998 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20999 statements are deleted.
21000 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
21001 is nonempty, then purge dead edges and cleanup the CFG.
21002
21003 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21004
21005 PR debug/47402
21006 Temporarily revert:
21007 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21008 PR debug/47106
21009 * tree-dfa.c (create_var_ann): Mark variable as used.
21010
21011 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21012
21013 PR middle-end/45566
21014 * except.c (convert_to_eh_region_ranges): Emit queued no-region
21015 notes from other section in hot/cold partitioning even if
21016 last_action is -3. Increment call_site_base.
21017
21018 PR rtl-optimization/47366
21019 * fwprop.c (forward_propagate_into): Return bool. If
21020 any changes are made, -fnon-call-exceptions is used and
21021 REG_EH_REGION note is present, call purge_dead_edges
21022 and return true if it purged anything.
21023 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
21024 any EH edges were purged.
21025
21026 2011-01-21 Jeff Law <law@redhat.com>
21027
21028 PR rtl-optimization/41619
21029 * caller-save.c (setup_save_areas): Break out code to determine
21030 which hard regs are live across calls by examining the reload chains
21031 so that it is always used.
21032 Eliminate code which checked REG_N_CALLS_CROSSED.
21033
21034 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21035
21036 PR tree-optimization/47355
21037 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
21038 NOP has non-debug uses beyond PHIs in new_bb.
21039
21040 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
21041
21042 PR debug/47106
21043 * cfgexpand.c (account_used_vars_for_block): Only account vars
21044 that are annotated as used.
21045 (estimated_stack_frame_size): Don't set TREE_USED.
21046 * tree-dfa.c (create_var_ann): Mark variable as used.
21047
21048 2011-01-21 Richard Guenther <rguenther@suse.de>
21049
21050 PR middle-end/47395
21051 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
21052
21053 2011-01-21 Richard Guenther <rguenther@suse.de>
21054
21055 PR tree-optimization/47365
21056 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
21057 (vn_reference_lookup_pieces): Adjust.
21058 (vn_reference_lookup): Likewise.
21059 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
21060 (vn_reference_lookup_3): Only look through kills if in
21061 VN_WALKREWRITE mode.
21062 (vn_reference_lookup_pieces): Adjust.
21063 (vn_reference_lookup): Likewise.
21064 (visit_reference_op_load): Likewise.
21065 (visit_reference_op_store): Likewise.
21066 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
21067 (compute_avail): Likewise.
21068 (eliminate): Likewise.
21069
21070 2011-01-21 Jakub Jelinek <jakub@redhat.com>
21071
21072 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
21073 DECL_IGNORED_P non-reg vars if they are used.
21074
21075 PR tree-optimization/47391
21076 * varpool.c (const_value_known_p): Return false if
21077 decl is volatile.
21078
21079 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
21080
21081 PR bootstrap/47215
21082 * config/i386/i386.c (ix86_local_alignment): Handle
21083 case for va_list_type_node is nil.
21084 (ix86_canonical_va_list_type): Likewise.
21085
21086 2011-01-21 Alan Modra <amodra@gmail.com>
21087
21088 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
21089 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
21090
21091 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21092
21093 * config/arm/arm.md (define_attr type): Rename f_load
21094 and f_store to f_fpa_load and f_fpa_store. Update.
21095 (write_conflict): Deal with rename fallout.
21096 (*push_fp_multi): Likewise.
21097 * config/arm/fpa.md (f_load): Use f_fpa_load.
21098 (f_store): Use f_fpa_store.
21099 (*movsf_fpa): Likewise.
21100 (*movdf_fpa): Likewise.
21101 (*movxf_fpa): Likewise.
21102 (*thumb2_movsf_fpa): Likewise.
21103 (*thumb2_movdf_fpa): Likewise.
21104 (*thumb2_movxf_fpa): Likewise.
21105 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
21106 f_loadd and f_stored.
21107 (*thumb2_movdi_vfp): Likewise.
21108 (*thumb2_movsf_vfp): Fix attribute to f_loads.
21109 (*thumb2_movsi_vfp): Likewise.
21110 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
21111 Use f_loads instead of f_load.
21112 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
21113
21114 2011-01-20 Anatoly Sokolov <aesok@post.ru>
21115
21116 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21117 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
21118 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21119 (xtensa_mode_dependent_address_p): New function.
21120 (constantpool_address_p): Make static. Change return type to bool.
21121 Change argument type to const_rtx. Use CONST_INT_P predicate.
21122
21123 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
21124
21125 PR debug/46583
21126 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
21127
21128 2011-01-20 Jakub Jelinek <jakub@redhat.com>
21129
21130 PR debug/47283
21131 * cfgexpand.c (expand_debug_expr): Instead of generating
21132 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
21133 etc. handling.
21134
21135 2011-01-20 Richard Guenther <rguenther@suse.de>
21136
21137 PR middle-end/47370
21138 * tree-inline.c (remap_gimple_op_r): Recurse manually for
21139 the pointer operand of MEM_REFs.
21140
21141 2011-01-20 Jakub Jelinek <jakub@redhat.com>
21142
21143 PR tree-optimization/46130
21144 * ipa-split.c (consider_split): If return_bb contains non-virtual
21145 PHIs other than for retval or if split_function would not adjust it,
21146 refuse to split.
21147
21148 2011-01-20 Richard Guenther <rguenther@suse.de>
21149
21150 PR tree-optimization/47167
21151 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21152 Revert previous change, only avoid enumeral type changes.
21153
21154 2011-01-19 Mike Stump <mikestump@comcast.net>
21155
21156 * doc/tm.texi.in (BRANCH_COST): Englishify.
21157 * doc/tm.texi (BRANCH_COST): Likewise.
21158
21159 2011-01-19 Dodji Seketeli <dodji@redhat.com>
21160
21161 PR c++/47291
21162 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
21163 (gen_scheduled_generic_parms_dies): New functions.
21164 (gen_struct_or_union_type_die): Schedule template parameters DIEs
21165 generation for the end of CU compilation.
21166 (dwarf2out_finish): Generate template parameters DIEs here.
21167
21168 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
21169
21170 PR debug/46240
21171 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
21172 debug bind stmt on merge edges.
21173
21174 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
21175
21176 PR debug/47079
21177 PR debug/46724
21178 * function.c (instantiate_expr): Instantiate incoming rtl of
21179 implicit arguments, and recurse on VALUE_EXPRs.
21180 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
21181 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
21182
21183 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
21184
21185 * c-parser.c (c_parser_for_statement): Initialize
21186 collection_expression.
21187
21188 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21189
21190 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
21191
21192 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21193
21194 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
21195 (LINK_SHLIB_SPEC): Don't use %(link_path).
21196 (SUBTARGET_EXTRA_SPECS): Remove link_path.
21197
21198 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21199
21200 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
21201 (NO_SHARED_LIB_SUPPORT): Remove.
21202 (LINK_SHLIB_SPEC): Remove one conditional definition.
21203
21204 2011-01-19 Joseph Myers <joseph@codesourcery.com>
21205
21206 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21207 %{call_shared}.
21208 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21209 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21210 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21211 %{call_shared} and conditionals on these options not being passed.
21212 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21213 %{call_shared}.
21214
21215 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21216
21217 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21218 simplify.
21219
21220 * ipa-split.c: Spelling fixes.
21221
21222 2011-01-19 Richard Henderson <rth@redhat.com>
21223
21224 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21225 (*mulsi3): Likewise.
21226
21227 * longlong.h [__mn10300__] (count_leading_zeros): New.
21228 [__mn10300__] (umul_ppmm, smul_ppmm): New.
21229 [__mn10300__] (add_ssaaaa, subddmmss): New.
21230 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21231 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21232
21233 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21234
21235 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21236
21237 2011-01-19 Richard Henderson <rth@redhat.com>
21238
21239 * config/mn10300/mn10300.md (addsi3_flags): New.
21240 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21241 (subsi3_flags, subc_internal, subdi3): New.
21242 (subdi3_internal, *subdi3_degenerate): New.
21243 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21244
21245 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21246 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21247 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
21248 * config/mn10300/mn10300-protos.h: Update.
21249 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21250 (return_ret): Likewise. Rename from return_internal_regs.
21251 (return_internal): Remove.
21252
21253 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21254 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21255 (mn10300_legitimate_constant_p): Likewise.
21256 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21257 (mn10300_frame_size): New.
21258 (mn10300_expand_prologue): Use it.
21259 (mn10300_expand_epilogue): Likewise.
21260 (mn10300_initial_offset): Likewise.
21261 * config/mn10300/mn10300-protos.h: Update.
21262 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21263 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21264 (prologue, epilogue, return_internal): Tidy output code.
21265 (mn10300_store_multiple_operation, return): Likewise.
21266 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21267 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21268 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21269 (load_pic, am33_load_pic): New.
21270 (mn10300_load_pic0, mn10300_load_pic1): New.
21271
21272 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21273 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21274 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21275 (cc_flags_for_mode, cc_flags_for_code): New.
21276 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21277 overflow flag is not valid. Validate that the flags we need
21278 for the comparison are valid.
21279 (mn10300_output_cmp): Remove.
21280 (mn10300_output_add): New.
21281 (mn10300_select_cc_mode): Use cc_flags_for_code.
21282 (mn10300_split_cbranch): New.
21283 (mn10300_match_ccmode): New.
21284 (mn10300_split_and_operand_count): New.
21285 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21286 to the function.
21287 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21288 (addsi3): ... here. Use mn10300_output_add.
21289 (*addsi3_flags): New.
21290 (*am33_subsi3, *mn10300_subsi3): Merge...
21291 (subsi3): ... here. Use attribute isa.
21292 (*subsi3_flags): New.
21293 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
21294 when possible.
21295 (*am33_andsi3, *mn10300_andsi3): Merge...
21296 (andsi3): ... here.
21297 (*andsi3_flags): New.
21298 (andsi3 splitters): New.
21299 (*am33_iorsi3, *mn10300_iorsi3): Merge...
21300 (iorsi3): ... here.
21301 (*iorsi3_flags): New.
21302 (*am33_xorsi3, *mn10300_xorsi3): Merge...
21303 (xorsi3): ... here.
21304 (*xorsi3_flags): New.
21305 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21306 (one_cmplsi2): ... here.
21307 (*one_cmplsi2_flags): New.
21308 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
21309 instead of "dax" in constraints. Use mn10300_split_cbranch.
21310 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
21311 use matching constraints to eliminate a self-comparison.
21312 (*integer_conditional_branch): Rename from integer_conditional_branch.
21313 Use int_mode_flags to match CC_REG.
21314 (*cbranchsi4_btst, *btstsi): New.
21315 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
21316 mn10300_split_cbranch.
21317 (*am33_cmpsf): Rename from am33_cmpsf.
21318 (*float_conditional_branch): Rename from float_conditional_branch.
21319 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21320 (zero_extendqisi2): ... here.
21321 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21322 (zero_extendhisi2): ... here.
21323 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21324 (extendqisi2): ... here.
21325 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21326 (extendhisi2): ... here.
21327 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21328 (ashlsi3): ... here.
21329 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21330 (lshrsi3): ... here.
21331 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21332 (ashrsi3): ... here.
21333 (consecutive add peephole): Remove.
21334 * config/mn10300/predicates.md (label_ref_operand): New.
21335 (int_mode_flags): New.
21336 (CCZN_comparison_operator): New.
21337
21338 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21339 (throughput_42_latency_43): New reservation.
21340 (mulsidi3, umulsidi3): New expanders.
21341 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21342 the MDR register to allocation; separately allocate the low and
21343 high parts of the DImode result.
21344 (umulsidi3_internal): Similarly.
21345 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21346 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21347 (udivsi3, umodsi3): Remove.
21348 (udivmodsi4, divmodsi4): New expanders.
21349 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21350 (*divmodsi4): Simiarly.
21351 (ext_internal): New.
21352
21353 * config/mn10300/constraints.md ("z"): New constraint.
21354 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21355 (FIXED_REGISTERS): Don't fix MDR.
21356 (CALL_USED_REGSITERS): Reformat nicely.
21357 (REG_ALLOC_ORDER): Add MDR.
21358 (enum regclass): Add MDR_REGS.
21359 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21360 (IRA_COVER_CLASSES): Add MDR_REGS.
21361 (REGNO_REG_CLASS): Handle MDR_REG.
21362 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21363 (mn10300_register_move_cost): Likewise.
21364 * config/mn10300/mn10300.md (MDR_REG): New.
21365 (*movsi_internal): Handle moves to/from MDR_REGS.
21366
21367 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21368 POST_MODIFY.
21369 (mn10300_secondary_reload): Tidy combination reload classes.
21370 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21371 addresses for AM33. Allow symbolic offsets for reg+imm.
21372 (mn10300_regno_in_class_p): New.
21373 (mn10300_legitimize_reload_address): New.
21374 * config/mn10300/mn10300.h (enum reg_class): Remove
21375 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21376 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21377 SP_OR_GENERAL_REGS.
21378 (REG_CLASS_NAMES): Update to match.
21379 (REG_CLASS_CONTENTS): Likewise.
21380 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21381 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21382 (REGNO_IN_RANGE_P): Remove.
21383 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21384 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21385 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21386 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21387 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21388 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21389 (REGNO_GENERAL_P): New.
21390 (HAVE_POST_MODIFY_DISP): New.
21391 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21392 (LEGITIMIZE_RELOAD_ADDRESS): New.
21393 * config/mn10300/mn10300-protos.h: Update.
21394
21395 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21396 DATA_REGS for AM33 stack-pointer destination.
21397 (mn10300_preferred_output_reload_class): Likewise.
21398 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21399 into a form appropriate for ...
21400 (TARGET_SECONDARY_RELOAD): New.
21401 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21402 * config/mn10300/mn10300-protos.h: Update.
21403 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21404 reload_insi; use the "A" constraint for the scratch; handle AM33
21405 moves of sp to non-address registers.
21406
21407 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21408 (*movqi_internal): ... here.
21409 (*am33_movhi, *mn10300_movhi): Merge into...
21410 (*movhi_internal): ... here.
21411 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21412 as the source/destination of moves from/to SP.
21413 (movsf): Only allow for AM33-2.
21414 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21415 any integer constant constraint. Only allow for AM33-2. Tidy
21416 all of the alternative outputs.
21417 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21418 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21419 for MN103.
21420 (udivsi3, umodsi3): New patterns for MN103 only.
21421
21422 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
21423
21424 * doc/tm.texi.in: Spell out that a lack of register class unions
21425 can lead to ICEs.
21426 * doc/tm.texi: Regenerate.
21427
21428 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21429
21430 PR rtl-optimization/47337
21431 * dce.c (check_argument_store): New function.
21432 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21433
21434 PR tree-optimization/47290
21435 * tree-eh.c (infinite_empty_loop_p): New function.
21436 (cleanup_empty_eh): Use it.
21437
21438 2011-01-18 Steve Ellcey <sje@cup.hp.com>
21439
21440 PR target/46997
21441 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21442 (a64_expand_widen_sum): Ditto.
21443 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21444 (vec_extract_evenodd_help): Ditto.
21445 (vec_extract_evenv4hi): Ditto.
21446 (vec_extract_oddv4hi): Ditto.
21447 (vec_extract_evenv2si): Ditto.
21448 (vec_extract_oddv2si): Ditto.
21449 (vec_extract_evenv2sf): Ditto.
21450 (vec_extract_oddv2sf): Ditto.
21451 (vec_pack_trunc_v4hi: Ditto.
21452 (vec_pack_trunc_v2si): Ditto.
21453 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21454 (vec_interleave_highv8qi): Ditto.
21455 (mix1_r): Ditto.
21456 (vec_extract_oddv8qi): Ditto.
21457 (vec_interleave_lowv4hi): Ditto.
21458 (vec_interleave_highv4hi): Ditto.
21459 (vec_interleave_lowv2si): Ditto.
21460 (vec_interleave_highv2si): Ditto.
21461
21462 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21463
21464 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21465 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21466 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21467 (pa_c_mode_for_suffix): New.
21468 (TARGET_EXPAND_BUILTIN): Define.
21469 (TARGET_C_MODE_FOR_SUFFIX): Define.
21470 (pa_builtins): Define.
21471 (pa_init_builtins): Register __float128 type and init new support
21472 builtins.
21473 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21474 * config/pa/quadlib.c (_U_Qfcopysign): New.
21475
21476 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21477
21478 PR middle-end/46894
21479 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21480 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21481 are defined.
21482
21483 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21484
21485 PR tree-optimization/47179
21486 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21487 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21488
21489 2011-01-18 Richard Guenther <rguenther@suse.de>
21490
21491 PR rtl-optimization/47216
21492 * emit-rtl.c: Include tree-flow.h.
21493 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21494 of replicating it with different semantics.
21495 * Makefile.in (emit-rtl.o): Adjust.
21496
21497 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21498
21499 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21500 (cortex_a9_dp): Handle neon types correctly.
21501
21502 2011-01-18 Jakub Jelinek <jakub@redhat.com>
21503
21504 PR rtl-optimization/47299
21505 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21506 subtarget. Use normal multiplication if both operands are constants.
21507 * expmed.c (expand_widening_mult): Don't try to optimize constant
21508 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21509 before using it.
21510
21511 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21512
21513 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21514 spacing after 'e.g.', typos, comma, hyphenation.
21515
21516 2011-01-17 Richard Henderson <rth@redhat.com>
21517
21518 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21519 (rx_restricted_mem_operand): New.
21520 (rx_shift_operand): Use register_operand.
21521 (rx_source_operand, rx_compare_operand): Likewise.
21522 * config/rx/rx.md (addsi3_flags): New expander.
21523 (adddi3): Rewrite as expander.
21524 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21525 (subsi3_flags): New expander.
21526 (subdi3): Rewrite as expander.
21527 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21528
21529 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21530 (rx_init_builtins): Remove sat builtin.
21531 (rx_expand_builtin): Likewise.
21532 * config/rx/rx.md (ssaddsi3): New.
21533 (*sat): Rename from sat. Represent the CC_REG input.
21534
21535 * config/rx/predicates.md (rshift_operator): New.
21536 * config/rx/rx.c (rx_expand_insv): Remove.
21537 * config/rx/rx-protos.h: Update.
21538 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21539 operand to the canonical position.
21540 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21541 (*bitclr, *bitclr_in_memory): Similarly.
21542 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21543 (insv): Retain the zero_extract in the expansion.
21544
21545 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21546 (bswaphi2, bitinvert, revw): Likewise.
21547
21548 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21549 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21550 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21551 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21552 (bitset, bitset_in_memory): Likewise.
21553 (bitinvert, bitinvert_in_memory): Likewise.
21554 (bitclr, bitclr_in_memory): Likewise.
21555 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21556 (rx_strend, rx_cmpstrn): Likewise.
21557 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21558 (bitop peep2 patterns): Remove.
21559
21560 * config/rx/rx.c (rx_match_ccmode): New.
21561 * config/rx/rx-protos.h: Update.
21562 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21563 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21564 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21565 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21566 (fix_truncsfsi2, floatsisf2): Likewise.
21567 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21568 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21569 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21570 (*subsi3_flags, *xorsi3_flags): New.
21571
21572 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21573
21574 * config/rx/rx.c (rx_print_operand): Remove workaround for
21575 unsplit comparison operations.
21576
21577 * config/rx/rx.md (movsicc): Split after reload.
21578 (*movsicc): Merge *movsieq and *movsine via match_operator.
21579 (*stcc): New pattern.
21580
21581 * config/rx/rx.c (rx_float_compare_mode): Remove.
21582 * config/rx/rx.h (rx_float_compare_mode): Remove.
21583 * config/rx/rx.md (cstoresi4): Split after reload.
21584 (*sccc): New pattern.
21585
21586 * config/rx/predicates.md (label_ref_operand): New.
21587 (rx_z_comparison_operator): New.
21588 (rx_zs_comparison_operator): New.
21589 (rx_fp_comparison_operator): New.
21590 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21591 Validate that the flags are set properly for the comparison.
21592 (rx_gen_cond_branch_template): Remove.
21593 (rx_cc_modes_compatible): Remove.
21594 (mode_from_flags): New.
21595 (flags_from_code): Rename from flags_needed_for_conditional.
21596 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21597 (rx_select_cc_mode): Likewise.
21598 (rx_split_fp_compare): New.
21599 (rx_split_cbranch): New.
21600 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21601 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21602 (*cbranchsf4): Similarly.
21603 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21604 match_operator and rx_split_cbranch.
21605 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21606 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21607 (*cmpsi): Rename from cmpsi.
21608 (*tstsi): Rename from tstsi.
21609 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21610 (*conditional_branch): Rename from conditional_branch.
21611 (*reveresed_conditional_branch): Remove.
21612 (b<code>): Remove expander.
21613 * config/rx/rx-protos.h: Update.
21614
21615 * config/rx/rx.c (rx_compare_redundant): Remove.
21616 * config/rx/rx.md (cmpsi): Don't use it.
21617 * config/rx/rx-protos.h: Update.
21618
21619 * config/rx/rx-modes.def (CC_F): New mode.
21620 * config/rx/rx.c (rx_select_cc_mode): New.
21621 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21622 * config/rx/rx-protos.h: Update.
21623
21624 2011-01-17 Richard Henderson <rth@redhat.com>
21625
21626 * except.c (dump_eh_tree): Fix stray ; after for statement.
21627
21628 2011-01-17 Richard Guenther <rguenther@suse.de>
21629
21630 PR tree-optimization/47313
21631 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21632 handling before copying the body. Properly deal with
21633 by-reference result in SSA form.
21634
21635 2011-01-17 Ian Lance Taylor <iant@google.com>
21636
21637 PR target/47219
21638 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21639 (struct_value_alias_set): Don't define.
21640 (sparc_option_override): Don't set sparc_sr_alias_set and
21641 struct_value_alias_set.
21642 (save_or_restore_regs): Use gen_frame_mem rather than calling
21643 set_mem_alias_set.
21644 (sparc_struct_value_rtx): Likewise.
21645
21646 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21647
21648 PR target/47318
21649 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21650 (_mm_maskstore_pd): Likewise.
21651 (_mm_maskload_ps): Likewise.
21652 (_mm_maskstore_ps): Likewise.
21653 (_mm256_maskload_pd): Change mask to __m256i.
21654 (_mm256_maskstore_pd): Likewise.
21655 (_mm256_maskload_ps): Likewise.
21656 (_mm256_maskstore_ps): Likewise.
21657
21658 * config/i386/i386-builtin-types.def: Updated.
21659 (ix86_expand_special_args_builtin): Likewise.
21660
21661 * config/i386/i386.c (bdesc_special_args): Update
21662 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21663 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21664 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21665 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21666
21667 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21668 Use <avxpermvecmode> on mask register.
21669 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21670
21671 2011-01-17 Olivier Hainque <hainque@adacore.com>
21672 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21673 Eric Botcazou <ebotcazou@adacore.com>
21674
21675 PR target/46655
21676 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21677 if <= USHRT_MAX in 32-bit mode.
21678
21679 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21680
21681 * doc/install.texi (Configuration, Specific): Wrap long
21682 lines in examples. Allow line wrapping in long options
21683 and URLs where beneficial for PDF output.
21684
21685 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21686
21687 * config/mips/mips.c (mips_classify_symbol): Don't return
21688 SYMBOL_PC_RELATIVE for nonlocal labels.
21689
21690 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
21691
21692 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21693
21694 2011-01-15 Jan Hubicka <jh@suse.cz>
21695
21696 PR tree-optimization/47276
21697 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21698 declarations as needed.
21699
21700 2011-01-15 Martin Jambor <mjambor@suse.cz>
21701
21702 * common.opt (fdevirtualize): New flag.
21703 * doc/invoke.texi (Option Summary): Document it.
21704 * opts.c (default_options_table): Add devirtualize flag.
21705 * ipa-prop.c (detect_type_change): Return immediately if
21706 devirtualize flag is not set.
21707 (detect_type_change_ssa): Likewise.
21708 (compute_known_type_jump_func): Likewise.
21709 (ipa_analyze_virtual_call_uses): Likewise.
21710
21711 2011-01-14 Martin Jambor <mjambor@suse.cz>
21712
21713 PR tree-optimization/45934
21714 PR tree-optimization/46302
21715 * ipa-prop.c (type_change_info): New type.
21716 (stmt_may_be_vtbl_ptr_store): New function.
21717 (check_stmt_for_type_change): Likewise.
21718 (detect_type_change): Likewise.
21719 (detect_type_change_ssa): Likewise.
21720 (compute_complex_assign_jump_func): Check for dynamic type change.
21721 (compute_complex_ancestor_jump_func): Likewise.
21722 (compute_known_type_jump_func): Likewise.
21723 (compute_scalar_jump_functions): Likewise.
21724 (ipa_analyze_virtual_call_uses): Likewise.
21725 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21726
21727 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21728
21729 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21730 * config/i386/i386.opt (msse5): New Alias.
21731
21732 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21733
21734 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21735 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21736 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21737 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21738
21739 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21740
21741 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21742 -mcpu options.
21743 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21744 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21745 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21746 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21747 Likewise.
21748 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21749
21750 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21751
21752 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21753
21754 2011-01-14 Mike Stump <mikestump@comcast.net>
21755
21756 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21757 * config/fr30/fr30.md: Likweise
21758 (movsi_push): Likewise.
21759 (movsi_pop): Likewise.
21760 (enter_func): Likewise.
21761 * config/moxie/moxie.md (movsi_push): Likewise.
21762 (movsi_pop): Likewise.
21763
21764 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21765
21766 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21767 %{no_archive} %{exact_version}.
21768 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21769 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21770 %{no_archive} %{exact_version}.
21771 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21772 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21773 * config/mips/vxworks.h: Likewise.
21774
21775 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21776
21777 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21778
21779 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21780
21781 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21782 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21783
21784 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21785
21786 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21787 -nodefaultlib.
21788
21789 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21790
21791 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21792 for mcpu not cpu.
21793 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21794 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21795 not cpu.
21796 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21797 Don't handle -shlib.
21798
21799 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21800
21801 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21802 (CC1_SPEC): Don't handle -profile.
21803
21804 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21805
21806 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21807 * config/mips/mips.h (CC1_SPEC): Likewise.
21808
21809 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21810
21811 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21812 * config/mips/mips.h (CC1_SPEC): Likewise.
21813
21814 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21815
21816 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21817 * config/m32r/linux.h (LINK_SPEC): Likewise.
21818 * config/mips/linux.h (LINK_SPEC): Likewise.
21819 * config/mips/linux64.h (LINK_SPEC): Likewise.
21820 * config/sparc/linux.h (LINK_SPEC): Likewise.
21821 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21822 LINK_SPEC): Likewise.
21823 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21824
21825 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21826
21827 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21828 %{version:-v}.
21829 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21830
21831 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21832
21833 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21834 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21835
21836 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21837
21838 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21839
21840 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21841
21842 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21843 supports -Bstatic/-Bdynamic.
21844 * configure: Regenerate.
21845
21846 2011-01-14 Jan Hubicka <jh@suse.cz>
21847 Jack Howarth <howarth@bromo.med.uc.edu>
21848
21849 PR target/46037
21850 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21851 when checking debug_info_level. Test write_symbols instead of
21852 debug_hooks->var_location when setting flag_var_tracking_uninit.
21853
21854 2011-01-14 Richard Guenther <rguenther@suse.de>
21855
21856 PR tree-optimization/47179
21857 * target.def (ref_may_alias_errno): New target hook.
21858 * targhooks.h (default_ref_may_alias_errno): Declare.
21859 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21860 (default_ref_may_alias_errno): New function.
21861 * target.h (struct ao_ref_s): Declare.
21862 * tree-ssa-alias.c: Include target.h.
21863 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21864 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21865 (targhooks.o): Likewise.
21866 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21867 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21868
21869 2011-01-14 Richard Guenther <rguenther@suse.de>
21870
21871 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21872
21873 2011-01-14 Richard Guenther <rguenther@suse.de>
21874
21875 PR tree-optimization/47280
21876 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21877 return CFG changes.
21878 (tree_ssa_forward_propagate_single_use_vars): Deal with
21879 CFG changes from associate_plusminus.
21880
21881 2011-01-14 Richard Guenther <rguenther@suse.de>
21882
21883 PR middle-end/47281
21884 Revert
21885 2011-01-11 Richard Guenther <rguenther@suse.de>
21886
21887 PR tree-optimization/46076
21888 * tree-ssa.c (useless_type_conversion_p): Conversions from
21889 unprototyped to empty argument list function types are useless.
21890
21891 2011-01-14 Richard Guenther <rguenther@suse.de>
21892
21893 PR tree-optimization/47286
21894 * tree-ssa-structalias.c (new_var_info): Register variables are global.
21895
21896 2011-01-14 Martin Jambor <mjambor@suse.cz>
21897
21898 PR middle-end/46823
21899 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21900
21901 2011-01-13 Anatoly Sokolov <aesok@post.ru>
21902
21903 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21904 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21905 * config/xtensa/xtensa.c (xtensa_libcall_value,
21906 xtensa_function_value_regno_p): New functions.
21907 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21908
21909 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
21910
21911 PR c++/47213
21912 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21913 PE specific hook.
21914 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21915 New function prototype.
21916 * config/i386/winnt.c (i386_pe_assemble_visibility):
21917 Warn only if attribute was specified by user.
21918
21919 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21920
21921 PR target/47251
21922 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21923 floating point.
21924 (floatunsdidf2_fcfidu): Ditto.
21925
21926 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21927
21928 * config/s390/s390.c (print_operand_address): Replace 'error' with
21929 'output_operand_lossage'.
21930 (print_operand): Likewise.
21931
21932 2011-01-13 Jeff Law <law@redhat.com>
21933
21934 PR rtl-optimization/39077
21935 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21936 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21937 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21938 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21939 * gcse.c (prune_insertions_deletions): New function.
21940 (compute_pre_data): Use it.
21941
21942 2011-01-13 Dodji Seketeli <dodji@redhat.com>
21943
21944 PR debug/PR46973
21945 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21946 static function.
21947 (prune_unused_types_mark): Use it.
21948
21949 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
21950
21951 PR rtl-optimization/45352
21952 * sel-sched.c: Update copyright years.
21953 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
21954 in the advancing loop when we have issued issue_rate insns.
21955
21956 2011-01-12 Richard Henderson <rth@redhat.com>
21957
21958 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21959 (TARGET_MD_ASM_CLOBBERS): New.
21960
21961 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21962 (TARGET_DELEGITIMIZE_ADDRESS): New.
21963
21964 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21965 (clzsi2, *bsch): New patterns.
21966
21967 * config/mn10300/mn10300.md (INT): New mode iterator.
21968 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21969
21970 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21971 flag_split_wide_types.
21972
21973 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21974 (mn10300_trampoline_init): Rewrite without a template, an immediate
21975 load and a direct branch.
21976 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21977
21978 2011-01-12 Anatoly Sokolov <aesok@post.ru>
21979
21980 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21981 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21982 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21983 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21984
21985 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
21986
21987 PR debug/47209
21988 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21989 of type.
21990
21991 2011-01-12 Jan Hubicka <jh@suse.cz>
21992
21993 PR driver/47244
21994 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21995 (PLUGIN_COND_CLOSE): New macro.
21996 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21997
21998 2011-01-12 Richard Guenther <rguenther@suse.de>
21999
22000 PR lto/47259
22001 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
22002 register variables in a MEM_REF.
22003
22004 2011-01-12 Joseph Myers <joseph@codesourcery.com>
22005
22006 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
22007 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
22008 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
22009 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
22010 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
22011 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
22012 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
22013 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
22014 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
22015 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
22016 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
22017 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
22018 * config/gnu-user.h: New. Copied from linux.h.
22019 (LINUX_TARGET_STARTFILE_SPEC): Rename to
22020 GNU_USER_TARGET_STARTFILE_SPEC.
22021 (LINUX_TARGET_ENDFILE_SPEC): Rename to
22022 GNU_USER_TARGET_ENDFILE_SPEC.
22023 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
22024 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
22025 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
22026 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
22027 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
22028 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
22029 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
22030 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
22031 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
22032 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
22033 * config/arm/linux-eabi.h (CC1_SPEC): Use
22034 GNU_USER_TARGET_CC1_SPEC.
22035 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
22036 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
22037 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
22038 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
22039 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
22040 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
22041 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
22042 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
22043
22044 2011-01-12 Richard Guenther <rguenther@suse.de>
22045
22046 PR other/46946
22047 * doc/invoke.texi (ffast-math): Document it is turned on
22048 with -Ofast.
22049
22050 2011-01-12 Jan Hubicka <jh@suse.cz>
22051
22052 PR tree-optimization/47233
22053 * opts.c (common_handle_option): Disable ipa-reference with profile
22054 feedback.
22055
22056 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
22057
22058 * c-parser.c (c_parser_objc_at_property_declaration): Improved
22059 error message.
22060
22061 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
22062
22063 * c-parser.c (c_lex_one_token): Updated and reindented some
22064 comments. No changes in code.
22065
22066 2011-01-11 Ian Lance Taylor <iant@google.com>
22067
22068 * godump.c (go_output_var): Don't output the variable if there is
22069 already a type with the same name.
22070
22071 2011-01-11 Ian Lance Taylor <iant@google.com>
22072
22073 * godump.c (go_format_type): Don't generate float80.
22074
22075 2011-01-11 Richard Henderson <rth@redhat.com>
22076
22077 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
22078 declaration. Rewrite for both speed and size.
22079 (mn10300_address_cost_1): Remove.
22080 (mn10300_register_move_cost): New.
22081 (mn10300_memory_move_cost): New.
22082 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
22083 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
22084 extensions, shifts, BSWAP, CLZ.
22085 (mn10300_wide_const_load_uses_clr): Remove.
22086 (TARGET_REGISTER_MOVE_COST): New.
22087 (TARGET_MEMORY_MOVE_COST): New.
22088 * config/mn10300/mn10300-protos.h: Update.
22089 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
22090
22091 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
22092 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
22093 * config/mn10300/mn10300-protos.h: Update.
22094 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
22095 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
22096 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
22097 (*test_int_bitfield, *test_byte_bitfield): Remove.
22098 (*bit_test, *subreg_bit_test): Remove.
22099 * config/mn10300/predicates.md (const_8bit_operand): Remove.
22100
22101 * config/mn10300/constraints.md ("c"): Rename from "A".
22102 ("A", "D"): New constraint letters.
22103 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
22104 (fmssf4, fnmasf4, fnmssf4): Likewise.
22105
22106 * config/mn10300/mn10300.md (isa): New attribute.
22107 (enabled): New attribute.
22108
22109 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
22110 (abssf2, negsf2): Define only for hardware fp.
22111 (sqrtsf2): Reformat.
22112 (addsf3, subsf3, mulsf3): Merge expander and insn.
22113
22114 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
22115 (DEBUGGER_AUTO_OFFSET): Remove.
22116 (DEBUGGER_ARG_OFFSET): Remove.
22117
22118 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
22119 Emit register stores with the same offsets as the hardware.
22120 (mn10300_store_multiple_operation): Don't check that the register
22121 save offsets are monotonic.
22122 * config/mn10300/mn10300-protos.h: Update.
22123
22124 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
22125
22126 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
22127 in terms of the value on the stack, not the MDR register.
22128
22129 2011-01-11 Jan Hubicka <jh@suse.cz>
22130
22131 PR lto/45721
22132 PR lto/45375
22133 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
22134 (symbol_alias_set_destroy, symbol_alias_set_contains,
22135 propagate_aliases_backward): Declare.
22136 * lto-streamer-out.c (struct sets): New sturcture.
22137 (trivally_defined_alias): New function.
22138 (output_alias_pair_p): Rewrite.
22139 (output_unreferenced_globals): Fix output of alias pairs.
22140 (produce_symtab): Likewise.
22141 * ipa.c (function_and_variable_visibility): Set weak alias destination
22142 as needed in lto.
22143 * varasm.c (symbol_alias_set_t): Remove.
22144 (symbol_alias_set_destroy): Export.
22145 (propagate_aliases_forward, propagate_aliases_backward): New functions
22146 based on ...
22147 (compute_visible_aliases): ... this one; remove.
22148 (trivially_visible_alias): New
22149 (trivially_defined_alias): New.
22150 (remove_unreachable_alias_pairs): Rewrite.
22151 (finish_aliases_1): Reorganize code checking if alias is defined.
22152 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
22153 in LTO mode.
22154
22155 2011-01-11 Richard Guenther <rguenther@suse.de>
22156
22157 PR tree-optimization/46076
22158 * tree-ssa.c (useless_type_conversion_p): Conversions from
22159 unprototyped to empty argument list function types are useless.
22160
22161 2011-01-11 Richard Guenther <rguenther@suse.de>
22162
22163 PR middle-end/45235
22164 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
22165 volatile MEMs as MEM_READONLY_P.
22166
22167 2011-01-11 Richard Guenther <rguenther@suse.de>
22168
22169 PR tree-optimization/47239
22170 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
22171
22172 2011-01-11 Jeff Law <law@redhat.com>
22173
22174 PR tree-optimization/47086
22175 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
22176 IVs from statements that might throw.
22177
22178 2011-01-10 Jan Hubicka <jh@suse.cz>
22179
22180 PR lto/45375
22181 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
22182
22183 2011-01-10 Jan Hubicka <jh@suse.cz>
22184
22185 PR lto/45375
22186 * profile.c (read_profile_edge_counts): Ignore profile inconistency
22187 when correcting profile.
22188
22189 2011-01-10 Jan Hubicka <jh@suse.cz>
22190
22191 PR lto/46083
22192 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
22193 DECL_FINI_PRIORITY.
22194 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
22195 Restore DECL_FINI_PRIORITY.
22196
22197 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22198
22199 * doc/gimple.texi: Fix quoting of multi-word return values in
22200 @deftypefn statements. Ensure presence of return value. Wrap
22201 overlong @deftypefn lines.
22202 (is_gimple_operand, is_gimple_min_invariant_address): Remove
22203 descriptions of removed functions.
22204 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
22205 of multi-word return value in @deftypefn statement.
22206
22207 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22208
22209 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22210 (Conditional Expressions, Logical Operators)
22211 (Statement and operand traversals): Do not indent smallexample
22212 code. Fix duplicate function argument in example.
22213
22214 2011-01-10 Jeff Law <law@redhat.com>
22215
22216 PR tree-optimization/47141
22217 * ipa-split.c (split_function): Handle case where we are
22218 returning a value and the return block has a virtual operand phi.
22219
22220 2011-01-10 Jan Hubicka <jh@suse.cz>
22221
22222 PR tree-optimization/47234
22223 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22224 (pass_feedback_split_functions): Declare.
22225 * passes.c (init_optimization_passes): Add ipa-split as subpass of
22226 tree-profile.
22227 * ipa-split.c (gate_split_functions): Update comments; disable
22228 split-functions for profile_arc_flag and branch_probabilities.
22229 (gate_feedback_split_functions): New function.
22230 (execute_feedback_split_functions): New function.
22231 (pass_feedback_split_functions): New global var.
22232
22233 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
22234
22235 PR lto/46760
22236 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22237 calling gimple_call_set_cannot_inline.
22238
22239 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
22240
22241 * config/darwin-sections.def: Remove unused section.
22242
22243 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
22244
22245 PR c++/47218
22246 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22247
22248 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
22249
22250 PR objc/47232
22251 * c-parser.c (c_parser_declaration_or_fndef): Improved
22252 error message.
22253
22254 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
22255
22256 * config/i386/winnt.c (i386_pe_start_function): Make sure
22257 to switch back to function's section.
22258
22259 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
22260
22261 PR gcc/46902
22262 PR testsuite/46912
22263 * plugin.c: Move include of dlfcn.h from here...
22264 * system.h: ... to here.
22265
22266 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22267
22268 * doc/cpp.texi (C++ Named Operators): Fix markup for header
22269 file name.
22270 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22271 two extra empty pages in PDF output.
22272
22273 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
22274
22275 PR objc/47078
22276 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22277 for error recovery purposes behave as if it was not specified so
22278 that the default type is usd.
22279
22280 2011-01-07 Jan Hubicka <jh@suse.cz>
22281
22282 PR tree-optmization/46469
22283 * ipa.c (function_and_variable_visibility): Clear needed flags on
22284 nodes with external decls; handle weakrefs merging correctly.
22285
22286 2011-01-07 Joseph Myers <joseph@codesourcery.com>
22287
22288 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22289 not false.
22290
22291 2011-01-07 Jan Hubicka <jh@suse.cz>
22292
22293 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22294 and no longer claim that gold is required for linker plugin.
22295 * configure: Regenerate.
22296 * gcc.c (PLUGIN_COND): New macro.
22297 (LINK_COMMAND_SPEC): Use it.
22298 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22299 * config.in (HAVE_LTO_PLUGIN): New.
22300 * configure.ac (--with-lto-plugin): New parameter; autodetect
22301 HAVE_LTO_PLUGIN.
22302
22303 2011-01-07 Jan Hubicka <jh@suse.cz>
22304
22305 PR tree-optimization/46367
22306 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22307 when we can update original.
22308 (cgraph_mark_inline_edge): Sanity check.
22309 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22310
22311 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22312
22313 * config/spu/spu.h (ASM_COMMENT_START): Define.
22314
22315 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
22316
22317 PR driver/42445
22318 * gcc.c (%>S): New.
22319 (SWITCH_KEEP_FOR_GCC): Likewise.
22320 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22321 (do_spec_1): Handle "%>".
22322
22323 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22324
22325 2011-01-07 Jakub Jelinek <jakub@redhat.com>
22326
22327 PR target/47201
22328 * config/i386/i386.c (ix86_delegitimize_address): If
22329 simplify_gen_subreg fails, return orig_x.
22330
22331 PR bootstrap/47187
22332 * value-prof.c (gimple_stringop_fixed_value): Handle
22333 lhs of the call properly.
22334
22335 2011-01-07 Jan Hubicka <jh@suse.cz>
22336
22337 PR lto/45375
22338 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22339
22340 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22341
22342 * target.def (function_switched_text_sections): New hook.
22343 * doc/tm.texi: Regenerated.
22344 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22345 * final.c (default_function_switched_text_sections): New.
22346 (final_scan_insn): Call function_switched_text_sections when a
22347 mid-function section change occurs.
22348 * output.h (default_function_switched_text_sections): Declare.
22349 * config/darwin-protos.h (darwin_function_switched_text_sections):
22350 Likewise.
22351 * config/darwin.c (darwin_function_switched_text_sections): New.
22352 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22353
22354 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22355
22356 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22357 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22358 the secondary code fragment when outputting for DWARF == 2.
22359
22360 2011-01-07 Anatoly Sokolov <aesok@post.ru>
22361
22362 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22363 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22364 Remove.
22365 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22366 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22367
22368 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22369
22370 PR debug/46704
22371 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22372 when it is not empty.
22373
22374 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
22375
22376 Bobcat Enablement
22377 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22378 (case ${target}): Add btver1.
22379 * config/i386/driver-i386.c (host_detect_local_cpu): Let
22380 -march=native recognize btver1 processors.
22381 * config/i386/i386-c.c (ix86_target_macros_internal): Add
22382 btver1 def_and_undef
22383 * config/i386/i386.c (struct processor_costs btver1_cost): New
22384 btver1 cost table.
22385 (m_BTVER1): New definition.
22386 (m_AMD_MULTIPLE): Includes m_BTVER1.
22387 (initial_ix86_tune_features): Add btver1 tune.
22388 (processor_target_table): Add btver1 entry.
22389 (static const char *const cpu_names): Add btver1 entry.
22390 (software_prefetching_beneficial_p): Add btver1.
22391 (ix86_option_override_internal): Add btver1 instruction sets.
22392 (ix86_issue_rate): Add btver1.
22393 (ix86_adjust_cost): Add btver1.
22394 * config/i386/i386.h (TARGET_BTVER1): New definition.
22395 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22396 (enum processor_type): Add PROCESSOR_BTVER1.
22397 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22398
22399 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22400
22401 PR target/43309
22402 * config/i386/i386.c (legitimize_tls_address)
22403 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22404 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22405 (tls_initial_exec_64_sun): New pattern.
22406
22407 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22408
22409 * doc/invoke.texi (Overall Options): Improve wording and markup
22410 of the description of -wrapper.
22411
22412 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22413
22414 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22415 rdynamic, threads): New Driver options.
22416
22417 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22418
22419 PR target/38118
22420 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22421 if coming from .tdata.
22422 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22423
22424 2011-01-06 Jan Hubicka <jh@suse.cz>
22425
22426 PR lto/47188
22427 * collect2.c (main): Do not enable LTOmode when plugin is active.
22428
22429 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22430
22431 PR other/45915
22432 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22433 --version output if supported.
22434 * configure: Regenerate.
22435
22436 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22437
22438 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22439 Driver options.
22440
22441 2011-01-06 Jakub Jelinek <jakub@redhat.com>
22442
22443 PR c/47150
22444 * c-convert.c (convert): When converting a complex expression
22445 other than COMPLEX_EXPR to a different complex type, ensure
22446 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22447 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22448 when converting COMPLEX_TYPE.
22449
22450 2011-01-06 Ira Rosen <irar@il.ibm.com>
22451
22452 PR tree-optimization/47139
22453 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22454 only the last reduction value is used outside the loop. Update
22455 documentation.
22456
22457 2011-01-05 Joseph Myers <joseph@codesourcery.com>
22458
22459 * config/rtems.opt: New.
22460 * config.gcc (*-*-rtems*): Use rtems.opt.
22461
22462 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22463
22464 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22465 processors do not support 3DNow instructions.
22466
22467 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22468
22469 * config/spu/spu.c (spu_option_override): Set parameter
22470 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22471
22472 2011-01-05 Jan Hubicka <jh@suse.cz>
22473
22474 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22475 at the command line.
22476
22477 2011-01-05 Martin Jambor <mjambor@suse.cz>
22478
22479 PR lto/47162
22480 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22481 deltas on streamed outgoing edges.
22482 (output_node_opt_summary): Output info for outgoing edges only when
22483 the node is in new parameter set.
22484 (output_cgraph_opt_summary): New parameter set, passed to the two
22485 aforementioned functions. Update its forward declaration and its
22486 callee too.
22487
22488 2011-01-05 Tom Tromey <tromey@redhat.com>
22489
22490 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22491 operator to c_finish_omp_atomic.
22492 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22493 (build_unary_op): Update.
22494 (build_modify_expr): Update.
22495 (build_asm_expr): Update.
22496
22497 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22498
22499 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22500 newly inserted insns.
22501 (pad_bb): Likewise.
22502 (spu_emit_branch_hint): Likewise.
22503 (insert_hbrp_for_ilb_runout): Likewise.
22504 (spu_machine_dependent_reorg): Call df_finish_pass after
22505 schedule_insns returns.
22506
22507 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22508
22509 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22510
22511 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22512
22513 PR tree-optimization/47005
22514 * tree-sra.c (struct access): Add 'non_addressable' bit.
22515 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22516 (decide_one_param_reduction): Return 0 if the parameter is passed by
22517 reference and one of the accesses in the group is non_addressable.
22518
22519 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22520
22521 PR tree-optimization/47056
22522 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22523 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22524 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22525
22526 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22527
22528 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22529 initializer. Skip view conversions from aggregate types.
22530
22531 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
22532
22533 PR bootstrap/47055
22534 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22535
22536 2011-01-04 Philipp Thomas <pth@suse.de>
22537
22538 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22539 obvious typo.
22540
22541 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22542
22543 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22544 on empty epilogue sequences.
22545
22546 2011-01-04 Joseph Myers <joseph@codesourcery.com>
22547
22548 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22549 non-static): New Driver options.
22550
22551 2011-01-04 Jie Zhang <jie@codesourcery.com>
22552
22553 PR driver/47137
22554 * gcc.c (default_compilers[]): Set combinable field to 0
22555 for all assembly languages.
22556
22557 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22558
22559 * config/mips/loongson3a.md: New file.
22560 * config/mips/mips.md: Include loongson3a.md.
22561 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22562 TUNE_LOONGSON_3A.
22563
22564 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22565
22566 PR middle-end/47017
22567 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22568 instead of convert_memory_address_addr_space on the base expression.
22569
22570 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22571
22572 * config/spu/spu.c (spu_option_override): Update error text
22573 for bad -march= / -mtune= values.
22574
22575 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22576
22577 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22578 if branch-hint optimization will be performed.
22579
22580 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22581
22582 PR tree-optimization/47148
22583 * ipa-split.c (split_function): Convert arguments to
22584 DECL_ARG_TYPE if possible.
22585
22586 PR tree-optimization/47155
22587 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22588 when computing uns.
22589
22590 PR rtl-optimization/47157
22591 * combine.c (try_combine): If undobuf.other_insn becomes
22592 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22593 and set *new_direct_jump_p too.
22594
22595 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22596
22597 PR tree-optimization/47021
22598 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22599
22600 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22601
22602 * gcc.c (process_command): Update copyright notice dates.
22603 * gcov.c (print_version): Likewise.
22604 * gcov-dump.c (print_version): Likewise.
22605 * mips-tfile.c (main): Likewise.
22606 * mips-tdump.c (main): Likewise.
22607
22608 2011-01-03 Martin Jambor <mjambor@suse.cz>
22609
22610 PR tree-optimization/46801
22611 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22612 aggregate fields start at byte boundary instead of the bit-field flag.
22613
22614 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22615
22616 PR driver/47137
22617 * gcc.c (main): Revert revision 168407.
22618
22619 2011-01-03 Martin Jambor <mjambor@suse.cz>
22620
22621 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22622
22623 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22624
22625 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22626 vector optab to expand vector/scalar shift, update gimple to vector.
22627
22628 2011-01-03 Martin Jambor <mjambor@suse.cz>
22629
22630 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22631 a thunk.
22632
22633 2011-01-03 Martin Jambor <mjambor@suse.cz>
22634
22635 PR tree-optimization/46984
22636 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22637 HOST_WIDE_INT.
22638 (cgraph_create_indirect_edge): Fixed line length.
22639 (cgraph_indirect_call_info): Declare.
22640 (cgraph_make_edge_direct) Update declaration.
22641 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22642 (cgraph_create_indirect_edge): Use it.
22643 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22644 callees.
22645 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22646 the new thunk_delta representation.
22647 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22648 HOST_WIDE_INT.
22649 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22650 (ipa_read_indirect_edge_info): Likewise.
22651 * lto-cgraph.c (output_edge_opt_summary): New function.
22652 (output_node_opt_summary): Call it on all outgoing edges.
22653 (input_edge_opt_summary): New function.
22654 (input_node_opt_summary): Call it on all outgoing edges.
22655
22656 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22657
22658 PR driver/47137
22659 * gcc.c (main): Don't check have_o when settting combine_inputs.
22660
22661 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22662
22663 * regrename.c: Add general comment describing the pass.
22664 (struct du_head): Remove 'length' field.
22665 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22666 (regrename_optimize): Do not sort chains. Rework comments, add others.
22667 Force renaming to the preferred class (if any) in the first pass and do
22668 not consider registers that belong to it in the second pass.
22669 (create_new_chain): Do not set 'length' field.
22670 (scan_rtx_reg): Likewise.
22671
22672 2011-01-02 Jakub Jelinek <jakub@redhat.com>
22673
22674 PR tree-optimization/47140
22675 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22676 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22677 to bit_value_binop.
22678
22679 PR rtl-optimization/47028
22680 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22681 parm_birth_insn instead of at the beginning of first bb.
22682
22683 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
22684
22685 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22686 Remove the word "see" before "@pxref".
22687 * doc/rtl.texi: Remove the word "see" before "@pxref".
22688
22689 2011-01-01 Jan Hubicka <jh@suse.cz>
22690
22691 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22692 memory.
22693
22694 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
22695
22696 PR target/38662
22697 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22698
22699 \f
22700 Copyright (C) 2011 Free Software Foundation, Inc.
22701
22702 Copying and distribution of this file, with or without modification,
22703 are permitted in any medium without royalty provided the copyright
22704 notice and this notice are preserved.