]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
target-supports.exp (check_ifunc_available): Rewrite.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
7fd72c6f
L
12011-07-21 H.J. Lu <hongjiu.lu@intel.com>
2
3 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
4 instead of force_reg.
5
96f0b772
L
62011-07-21 H.J. Lu <hongjiu.lu@intel.com>
7
8 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
9 needed and use force_reg after convert.
10 (ix86_expand_call): Likewise.
11 (ix86_expand_special_args_builtin): Likewise.
12 (ix86_expand_builtin): Likewise.
13
ef74e2ba
SP
142011-07-21 Sebastian Pop <sebastian.pop@amd.com>
15
16 PR middle-end/47654
17 PR middle-end/49649
18 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
19 in parameter. Initialize v1 and v2 based on the values returned
20 by clast_name_to_lb_ub.
21 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
22 values.
23 (type_for_clast_bin): Same.
24 (type_for_clast_expr): Same.
25 (type_for_clast_eq): Update calls to type_for_clast_expr.
26 (type_for_clast_for): Same.
27 (build_iv_mapping): Same.
28 * graphite-ppl.h (value_min): New.
29
84f2ffea
SP
302011-07-21 Sebastian Pop <sebastian.pop@amd.com>
31
32 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
33 types whenever possible.
34
3d9784cb
SP
352011-07-21 Sebastian Pop <sebastian.pop@amd.com>
36
37 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
38 and ub fields.
39 (new_clast_name_index): Add lb and ub parameters.
40 (free_clast_name_index): New.
41 (clast_name_to_lb_ub): New.
42 (save_clast_name_index): Add lb and ub parameters.
43 (compute_bounds_for_param): New.
44 (type_for_level): Removed.
45 (type_for_clast_for): Removed level parameter. Do not call
46 type_for_level.
47 (graphite_create_new_loop): Store the lb and ub for the clast_name
48 of the iterator of the loop that has been generated.
49 (graphite_create_new_loop_guard): Remove parameter level.
50 (create_params_index): Store the lb and ub of each parameter.
51 (gloog): Use free_clast_name_index. Pass to create_params_index
52 the current scop.
53
12b30e6d
SP
542011-07-21 Sebastian Pop <sebastian.pop@amd.com>
55
56 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
57 (max_precision_type): Inline max_signed_precision_type.
58 (type_for_clast_red): Use max_precision_type.
59 (type_for_clast_bin): Same.
60 (type_for_clast_for): Same.
61
0cdd9dcf
SP
622011-07-21 Sebastian Pop <sebastian.pop@amd.com>
63
64 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
65 type_for_interval.
66 (gcc_type_for_value): Renamed type_for_value.
67 (gcc_type_for_clast_term): Renamed type_for_clast_term.
68 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
69 (gcc_type_for_clast_red): Renamed type_for_clast_red.
70 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
71 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
72 (graphite_translate_clast_equation): Update calls.
73 (compute_type_for_level): Renamed type_for_level.
74 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
75 (build_iv_mapping): Update calls.
76 (graphite_create_new_loop_guard): Same.
77
8aab43a0
SP
782011-07-21 Sebastian Pop <sebastian.pop@amd.com>
79
80 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
81 comment.
82
cf7eab7d
SP
832011-07-21 Sebastian Pop <sebastian.pop@amd.com>
84
85 * graphite-clast-to-gimple.c (struct ivs_params): New.
86 (clast_name_to_gcc): Use ivs_params to pass around parameters.
87 (clast_to_gcc_expression): Same.
88 (clast_to_gcc_expression_red): Same.
89 (gcc_type_for_clast_term): Same.
90 (gcc_type_for_clast_expr): Same.
91 (gcc_type_for_clast_red): Same.
92 (gcc_type_for_clast_bin): Same.
93 (gcc_type_for_clast_eq): Same.
94 (graphite_translate_clast_equation): Same.
95 (graphite_create_guard_cond_expr): Same.
96 (graphite_create_new_guard): Same.
97 (graphite_create_new_loop): Same.
98 (build_iv_mapping): Same.
99 (translate_clast_user): Same.
100 (graphite_create_new_loop_guard): Same.
101 (translate_clast): Same.
102 (translate_clast_for_loop): Same.
103 (translate_clast_for): Same.
104 (translate_clast_guard): Same.
105 (initialize_cloog_names): Fix typo.
106 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
107
7b1e9596
SP
1082011-07-21 Sebastian Pop <sebastian.pop@amd.com>
109
110 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
111 (new_clast_name_index): Add level parameter.
112 (clast_name_to_level): New.
113 (save_clast_name_index): Add level parameter.
114 (newivs_to_depth_to_newiv): Removed.
115 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
116 (graphite_create_new_loop): Add level parameter. Pass level to
117 save_clast_name_index.
118 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
119 (create_params_index): Pass level to save_clast_name_index.
120
6e6568db
SP
1212011-07-21 Sebastian Pop <sebastian.pop@amd.com>
122
123 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
124 recompute type, lb, and ub. Get them from...
125 (graphite_create_new_loop_guard): ...here. Pass in parameter
126 pointers to type, lb, and ub.
127 (translate_clast_for_loop): Update function calls.
128 (translate_clast_for): Same.
129
dff62090
SP
1302011-07-21 Sebastian Pop <sebastian.pop@amd.com>
131
132 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
133 psct_dynamic_dim.
134 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
135 (gcc_type_for_iv_of_clast_loop): Update use of level.
136 (gloog): Start counting nesting level from 0.
137 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
138 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
139 psct_dynamic_dim on level.
140
628c1ac9
L
1412011-07-21 H.J. Lu <hongjiu.lu@intel.com>
142
143 * config/i386/i386.c (ix86_legitimize_address): Convert to
144 Pmode if needed.
145
08a8923e
L
1462011-07-21 H.J. Lu <hongjiu.lu@intel.com>
147
148 * config/i386/i386.c (function_value_64): Always return pointers
149 in Pmode.
150 (ix86_promote_function_mode): New.
151 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
152
777a4e9a
BS
1532011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
154
155 PR tree-optimization/49749
156 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
157 remove no-longer-used maxrank variable.
158
e9514725
GJL
1592011-07-21 Georg-Johann Lay <avr@gjlay.de>
160
161 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
162
9ca1483b
JM
1632011-07-21 Jason Merrill <jason@redhat.com>
164
165 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
166 * recog.h (struct insn_data_d): Check it instead of
167 HAVE_DESIGNATED_INITIALIZERS.
168 * genoutput.c (output_insn_data): Likewise.
169
3ceaf2f5
RG
1702011-07-21 Richard Guenther <rguenther@suse.de>
171
172 PR tree-optimization/49770
173 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
174 valueized any operand. Renamed from ...
175 (valueize_refs): ... this. New wrapper around valueize_refs_1.
176 (valueize_shared_reference_ops_from_ref): Return whether we
177 valueized any operand.
178 (vn_reference_lookup): Only when we valueized any operand
179 use the valueized reference for alias analysis. Do not preserve
180 the original reference tree in this case.
181
7c53a140
UB
1822011-07-21 Uros Bizjak <ubizjak@gmail.com>
183
184 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 185 register operands and subregs of DImode hard registers in index.
7c53a140 186
7f3ff782
KT
1872011-07-21 Kai Tietz <ktietz@redhat.com>
188
189 * fold-const.c (fold_unary_loc): Preserve indirect
190 comparison cast to none-boolean type.
191 * tree-ssa.c (useless_type_conversion_p): Preserve cast
192 from/to boolean-type.
7c53a140
UB
193 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
194 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
195 * tree-cfg.c (verify_gimple_comparison): Check result
196 type of comparison expression.
7c53a140
UB
197 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
198 of condition result and disallow type-cast sinking into comparison.
7f3ff782 199
91bc6112
RG
2002011-07-21 Richard Guenther <rguenther@suse.de>
201
202 * tree-ssa-forwprop.c (combine_conversions): Return whether
203 we have to run cfg-cleanup. Properly remove dead stmts.
204 (ssa_forward_propagate_and_combine): Adjust.
205
d6f23738
RS
2062011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
207
208 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
209
fec3cad3
KT
2102011-07-21 Kai Tietz <ktietz@redhat.com>
211
212 * tree-ssa-propagate.c (substitute_and_fold): Use
213 do_dce flag to deside, if BB's statements are scanned
214 in last to first, or first to last order.
215
21f3ae2f 2162011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 217
21f3ae2f
GJL
218 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
219
6025b127
L
2202011-07-20 H.J. Lu <hongjiu.lu@intel.com>
221 Uros Bizjak <ubizjak@gmail.com>
222 Richard Henderson <rth@redhat.com>
223
224 * config/i386/constraints.md (w): New.
225
226 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
227 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
228
229 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
230 instead of TARGET_64BIT.
231
232 * config/i386/i386.md (indirect_jump): Replace
233 nonimmediate_operand with indirect_branch_operand.
234 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
235 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
236 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
237 (*tablejump_1): Replace nonimmediate_operand with
238 indirect_branch_operand. Replace constraint "m" with "w".
239 (*call_vzeroupper): Replace constraint "m" with "w".
240 (*call): Likewise.
241 (*call_rex64_ms_sysv_vzeroupper): Likewise.
242 (*call_rex64_ms_sysv): Likewise.
243 (*call_value_vzeroupper): Likewise.
244 (*call_value): Likewise.
245 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
246 (*call_value_rex64_ms_sysv): Likewise.
a4235495 247 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
248
249 * config/i386/predicates.md (indirect_branch_operand): New.
250 (call_insn_operand): Support x32.
251
7f8925a1
ME
2522011-07-20 Michael Eager <eager@eagercon.com>
253
254 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
255
510a442a
RH
2562011-07-20 Richard Henderson <rth@redhat.com>
257
258 * cfg.c (dump_bb_info): Dump basic_block->flags.
259 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
260
00b40d0d
UB
2612011-07-20 Uros Bizjak <ubizjak@gmail.com>
262
263 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
264 of DImode hard registers in index.
265 (ix86_legitimate_address_p): Allow subregs of base and index to span
266 more than a word. Assert that subregs of base and index satisfy
267 register_no_elim_operand predicates. Reject addresses where
268 base and index have different modes.
269
87f53554
RM
2702011-07-20 Robert Millan <rmh@gnu.org>
271
272 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
273
742f29ab
UW
2742011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
275
276 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
277 removing now-unnecessary assignment.
278
d05f3564
UW
2792011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
280
281 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
282 memory address space to the type's address space.
283
8c352fa8 2842011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 285
8c352fa8
GJL
286 PR target/36467
287 PR target/49687
00b40d0d
UB
288 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
289 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
290 (usmulqihi3): New insn.
291 (*sumulqihi3): New insn.
292 (*osmulqihi3): New insn.
293 (*oumulqihi3): New insn.
294 (*muluqihi3.uconst): New insn_and_split.
295 (*muluqihi3.sconst): New insn_and_split.
296 (*mulsqihi3.sconst): New insn_and_split.
297 (*mulsqihi3.uconst): New insn_and_split.
298 (*mulsqihi3.oconst): New insn_and_split.
299 (*ashifthi3.signx.const): New insn_and_split.
300 (*ashifthi3.signx.const7): New insn_and_split.
301 (*ashifthi3.zerox.const): New insn_and_split.
302 (mulsqihi3): New insn.
303 (muluqihi3): New insn.
304 (muloqihi3): New insn.
305 * config/avr/predicates.md (const_2_to_7_operand): New.
306 (const_2_to_6_operand): New.
307 (u8_operand): New.
308 (s8_operand): New.
309 (o8_operand): New.
310 (s9_operand): New.
311 (register_or_s9_operand): New.
312
be31603a
KT
3132011-07-20 Kai Tietz <ktietz@redhat.com>
314
315 * builtins.c (fold_builtin_expect): See through the cast
316 from truthvalue_type_node to long.
317
c36193c6
MM
3182011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
319
320 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
321 where we can use them from the standard and altivec instruction
322 sets, instead of always using the 3 operand VSX forms that require
323 the destination to overlap one of the inputs.
324 (vsx_fms*): Ditto.
325 (vsx_fnma*): Ditto.
326 (vsx_fnms*): Ditto.
327
328 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
329 for DF types.
330 (fmsdf4_fpr): Ditto.
331 (nfmadf4_fpr): Ditto.
332 (nfmsdf4_fpr): Ditto.
333
02aec184
SL
3342011-07-20 Sandra Loosemore <sandra@codesourcery.com>
335
336 * genrecog.c (make_insn_sequence): Correct position numbering
337 when filtering out match_scratch and match_dup.
338
f8ecf734
RG
3392011-07-20 Richard Guenther <rguenther@suse.de>
340
341 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
342 against already removed statements.
343 (forward_propagate_into_comparison): Remove dead defining stmts.
344 (forward_propagate_into_gimple_cond): Likewise.
345 (forward_propagate_into_cond): Simplify.
346 (ssa_forward_propagate_and_combine): Handle changed cfg from
347 forward_propagate_into_comparison.
348 * tree-ssa-phiopt.c (conditional_replacement): Use proper
349 locations for newly built statements.
350
73451ae7
GJL
3512011-07-20 Georg-Johann Lay <avr@gjlay.de>
352
353 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
354
c4100a35
AK
3552011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
356
357 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
358 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
359
dca412a1
RG
3602011-07-20 Richard Guenther <rguenther@suse.de>
361
362 PR middle-end/18908
363 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
364 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
365 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
366
73d7e266
VM
3672011-07-20 Vladimir Makarov <vmakarov@redhat.com>
368
369 * config/frv/frv.c (frv_register_move_cost): Define explicitly
370 costs for subclasses of GR_REGS.
371
5e27a6d4
UB
3722011-07-20 Uros Bizjak <ubizjak@gmail.com>
373
374 PR target/49780
375 * config/i386/predicates.md (no_seg_addres_operand): No more special.
376 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
377 of DImode hard registers in base.
378 (ix86_legitimate_address_p): Allow SImode and DImode base and index
379 registers.
380
74d8fa44
RG
3812011-07-20 Richard Guenther <rguenther@suse.de>
382
5e27a6d4 383 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
384 (unify_nodes): Deal with that.
385 (solve_graph): Likewise.
386
b0e43da8
CLT
3872011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
388
389 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
390 canonicalize left operand from ZERO_EXTEND to AND.
391
a8c44c52
AS
3922011-07-20 Anatoly Sokolov <aesok@post.ru>
393
394 * target.def (class_max_nregs): New hook.
395 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
396 * doc/tm.texi: Regenerate.
397 * targhooks.c (default_class_max_nregs): New function.
398 * targhooks.h (default_class_max_nregs): Declare.
399 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
400 x_ira_reg_class_min_nregs arrays to unsigned char.
401 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
402 hook instead of CLASS_MAX_NREGS macro.
403 * reginfo.c (restore_register_info): Ditto.
404 * ira-conflicts.c (process_regs_for_copy): Use
405 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
406 Change type rclass and aclass vars to reg_class_t.
407 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
408 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
409 reg_class_t.
410 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
411 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
412
413 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
414 * config/i386/i386.c (ix86_class_max_nregs): New function.
415 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
416 instead of CLASS_MAX_NREGS macro.
417 (TARGET_CLASS_MAX_NREGS): Define.
418 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
419 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
420 * config/avr/avr.c (class_max_nregs): Remove function.
421 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
422 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
423 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
424 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
425 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
426 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
427 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
428 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
429 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
430 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
431 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
432 * config/score/score.h (CLASS_MAX_NREGS): Remove.
433 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
434 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
435 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
436
fd811f03
EB
4372011-07-19 Eric Botcazou <ebotcazou@adacore.com>
438
439 * cif-code.def (OVERWRITABLE): Fix typo and move around.
440 (TARGET_OPTIMIZATION_MISMATCH): Delete.
441 (EH_PERSONALITY): Fix typo.
442 (NON_CALL_EXCEPTIONS): Fix message.
443 (OPTIMIZATION_MISMATCH): Adjust message.
444 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
445
78767fd9
ILT
4462011-07-19 Ian Lance Taylor <iant@google.com>
447
448 * doc/install.texi (Configuration): Document
449 --enable-build-poststage1-with-cxx.
450
0baeec1b
RM
4512011-07-19 Robert Millan <rmh@gnu.org>
452
453 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
454 (GLIBC_DYNAMIC_LINKER): Remove.
455
456 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
457 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
458 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
459 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
460 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
461 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
462
463 * config/mips/linux.h: Remove everything except for ...
464 (GLIBC_DYNAMIC_LINKER): ... this macro.
465
466 * config/mips/linux64.h: Remove everything except for ...
467 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
468 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
469 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
470 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
471 (GNU_USER_LINK_EMULATIONN32): New macros.
472
5e27a6d4
UB
473 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
474 Use the new headers.
0baeec1b 475
754c3d5d
RS
4762011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
477
478 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
479 Add offset_known_p and size_known_p fields.
480 (MEM_OFFSET_KNOWN_P): Update accordingly.
481 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
482 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
483 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
484 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
485 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
486 (init_emit_regs): Likewise.
487
527210c4
RS
4882011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
489
490 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
491 (MEM_OFFSET): Change from returning an rtx to returning a
492 HOST_WIDE_INT.
493 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
494 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
495 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
496 (clear_mem_offset): Declare.
497 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
498 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
499 MEM_OFFSET to get a HOST_WIDE_INT offset.
500 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
501 (adjust_offset_for_component_ref): Take a bool "known_p"
502 parameter and a HOST_WIDE_INT "offset" parameter.
503 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
504 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
505 than an rtx. Use clear_mem_offset to clear the offset.
506 * cfgcleanup.c (merge_memattrs): Likewise.
507 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
508 * function.c (assign_parm_find_stack_rtl): Likewise.
509 (assign_parm_setup_stack): Likewise.
510 * print-rtl.c (print_rtx): Likewise.
511 * reload.c (find_reloads_subreg_address): Likewise.
512 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
513 * var-tracking.c (INT_MEM_OFFSET): Likewise.
514 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
515 (get_mem_align_offset): Likewise.
516 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
517 (clear_mem_offset): New function.
518 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
519 offset rather than an rtx. Assume both the expressio and offset
520 are available.
521 (r10k_needs_protection_p_1): Update accordingly, checking the
522 expression and offset availability here instead.
523
f5541398
RS
5242011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
525
526 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
527 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
528 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
529 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
530 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
531 (clear_mem_size): Declare.
532 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
533 (clear_mem_size): New function.
534 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
535 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
536 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
537 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
538 to clear the size.
539 (nonoverlapping_memrefs_p): Likewise.
540 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
541 (expand_builtin_init_trampoline): Likewise.
542 * calls.c (compute_argument_addresses): Likewise.
543 * cfgcleanup.c (merge_memattrs): Likewise.
544 * dce.c (find_call_stack_args): Likewise.
545 * dse.c (record_store, scan_insn): Likewise.
546 * dwarf2out.c (dw_sra_loc_expr): Likewise.
547 * expr.c (emit_block_move_hints): Likewise.
548 * function.c (assign_parm_find_stack_rtl): Likewise.
549 * print-rtl.c (print_rtx): Likewise.
550 * reload.c (find_reloads_subreg_address): Likewise.
551 * rtlanal.c (may_trap_p_1): Likewise.
552 * var-tracking.c (track_expr_p): Likewise.
553 * varasm.c (assemble_trampoline_template): Likewise.
554 * config/arm/arm.c (arm_print_operand): Likewise.
555 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
556 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
557 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
558 (expand_constant_setmem_prologue): Likewise.
559 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
560 * config/rs6000/rs6000.c (expand_block_move): Likewise.
561 (adjacent_mem_locations): Likewise.
562 * config/s390/s390.c (s390_expand_setmem): Likewise.
563 (s390_expand_insv): Likewise.
564 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
565 (*extendqi<mode>2_short_displ): Likewise.
566 * config/sh/sh.c (expand_block_move): Likewise.
567 * config/sh/sh.md (extv, extzv): Likewise.
568
f12144dd
RS
5692011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
570
571 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
572 (mem_attrs_htab_eq): ...here.
573 (find_mem_attrs): Replace with...
574 (set_mem_attrs): ...this function. Take a mem_attrs structure
575 rather than individual fields.
576 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
577 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
578 (set_mem_size, change_address, adjust_address_1, offset_address)
579 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
580 Update accordingly.
581
1c3f523e
RS
5822011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
583
584 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
585 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
586 Provide a dummy definition of MEM_ADDR_SPACE for generators.
587 (target_rtl): Add x_mode_mem_attrs.
588 (mode_mem_attrs): New macro.
589 (get_mem_attrs): New function.
590 * emit-rtl.c (get_mem_attrs): Rename to...
591 (find_mem_attrs): ...this.
592 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
593 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
594 (set_mem_size, change_address, adjust_address_1, offset_address)
595 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
596 Update accordingly.
597 (init_emit_regs): Initialize mode_mem_attrs.
598
3046b1a9
RG
5992011-07-19 Richard Guenther <rguenther@suse.de>
600
601 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
602 TRUTH_*_EXPR handling.
603 * tree-ssa-operands.c (get_expr_operands): Likewise.
604 * tree-ssa-pre.c (fully_constant_expression): Likewise.
605 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
606 Likewise.
607 (is_and_or_or): Likewise.
608 (is_norm_cond_subset_of): Likewise.
609
5d49b6a7
RG
6102011-07-19 Richard Guenther <rguenther@suse.de>
611
612 * tree.h (fold_build_pointer_plus_loc): New helper function.
613 (fold_build_pointer_plus_hwi_loc): Likewise.
614 (fold_build_pointer_plus): Define.
615 (fold_build_pointer_plus_hwi): Likewise.
616 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
617 (fold_builtin_memory_op): Likewise.
618 (fold_builtin_stpcpy): Likewise.
619 (fold_builtin_memchr): Likewise.
620 (fold_builtin_strstr): Likewise.
621 (fold_builtin_strchr): Likewise.
622 (fold_builtin_strrchr): Likewise.
623 (fold_builtin_strpbrk): Likewise.
624 (fold_builtin_strcat): Likewise.
625 (expand_builtin_memory_chk): Likewise.
626 (fold_builtin_memory_chk): Likewise.
627 * c-typeck.c (build_unary_op): Likewise.
628 * cgraphunit.c (thunk_adjust): Likewise.
629 * fold-const.c (build_range_check): Likewise.
630 (fold_binary_loc): Likewise.
631 * omp-low.c (extract_omp_for_data): Likewise.
632 (expand_omp_for_generic): Likewise.
633 (expand_omp_for_static_nochunk): Likewise.
634 (expand_omp_for_static_chunk): Likewise.
635 * tree-affine.c (add_elt_to_tree): Likewise.
636 * tree-data-ref.c (split_constant_offset_1): Likewise.
637 * tree-loop-distribution.c (generate_memset_zero): Likewise.
638 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
639 * tree-predcom.c (ref_at_iteration): Likewise.
640 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
641 (add_to_parts): Likewise.
642 (create_mem_ref): Likewise.
643 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
644 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
645 (number_of_iterations_le): Likewise.
646 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
647 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
648 (vect_create_addr_base_for_vector_ref): Likewise.
649 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
650 (vect_create_cond_for_alias_checks): Likewise.
651 * tree-vrp.c (extract_range_from_assert): Likewise.
652 * config/alpha/alpha.c (alpha_va_start): Likewise.
653 (alpha_gimplify_va_arg_1): Likewise.
654 * config/i386/i386.c (ix86_va_start): Likewise.
655 (ix86_gimplify_va_arg): Likewise.
656 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
657 * config/mep/mep.c (mep_expand_va_start): Likewise.
658 (mep_gimplify_va_arg_expr): Likewise.
659 * config/mips/mips.c (mips_va_start): Likewise.
660 (mips_gimplify_va_arg_expr): Likewise.
661 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
662 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
663 (rs6000_gimplify_va_arg): Likewise.
664 * config/s390/s390.c (s390_va_start): Likewise.
665 (s390_gimplify_va_arg): Likewise.
666 * config/sh/sh.c (sh_va_start): Likewise.
667 (sh_gimplify_va_arg_expr): Likewise.
668 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
669 * config/spu/spu.c (spu_va_start): Likewise.
670 (spu_gimplify_va_arg_expr): Likewise.
671 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
672 Likewise.
673 (xstormy16_gimplify_va_arg_expr): Likewise.
674 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
675 (xtensa_gimplify_va_arg_expr): Likewise.
676
d906fd7f
RG
6772011-07-19 Richard Guenther <rguenther@suse.de>
678
679 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
680 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
681 handling.
682
683 PR middle-end/18908
684 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
685 result of BIT_*_EXPR to bitfield precision.
686
1b14d815
RS
6872011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
688
689 PR tree-optimization/49742
690 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
691 as a potential write.
692
d906fd7f
RG
6932011-07-19 Richard Guenther <rguenther@suse.de>
694
695 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
696 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
697 (forward_propagate_comparison): Simplify, remove obsolete code.
698
53020648
RG
6992011-07-19 Richard Guenther <rguenther@suse.de>
700
701 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
702 BIT_XOR_EXPR, same as the RTL expander does.
703 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
704 (verify_gimple_assign_unary): Likewise.
705 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
706 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
707 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
708
b8b2b009
JJ
7092011-07-19 Jakub Jelinek <jakub@redhat.com>
710
711 PR tree-optimization/49768
712 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
713 if offset is smaller than bitoffset, but offset+size is bigger
714 than bitoffset.
715
338f655d
IR
7162011-07-19 Ira Rosen <ira.rosen@linaro.org>
717
718 PR tree-optimization/49771
719 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
720 zero step, set segment length to the size of the data-ref's type.
721
310bc633
MJ
7222011-07-18 Martin Jambor <mjambor@suse.cz>
723
724 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
725 comments.
726 (ipcp_values_pool): Declare.
727 (ipcp_sources_pool): Likewise.
728 (ipcp_lattice): Changed to forward declaration.
729 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
730 cannot_devirtualize.
731 (ipa_node_params): New fields descriptors, lattices, known_vals,
732 clone_for_all_contexts and node dead, removed fields params and
733 count_scale.
734 (ipa_set_param_count): Removed.
735 (ipa_get_param_count): Made to work with descriptors vector.
736 (ipa_get_param): Updated.
737 (ipa_param_cannot_devirtualize_p): Removed.
738 (ipa_param_types_vec_empty): Likewise.
739 (ipa_set_param_used): New function.
740 (ipa_get_param_used): Updated to use descriptors vector.
741 (ipa_func_list): Removed.
742 (ipa_init_func_list): Removed declaration.
743 (ipa_push_func_to_list_1): Likewise.
744 (ipa_pop_func_from_list): Likewise.
745 (ipa_push_func_to_list): Removed.
746 (ipa_lattice_from_jfunc): Remove declaration.
747 (ipa_get_jf_pass_through_result): Declare.
748 (ipa_get_jf_ancestor_result): Likewise.
749 (ipa_value_from_jfunc): Likewise.
750 (ipa_get_lattice): Update.
751 (ipa_lat_is_single_const): New function.
752 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
753 (ipa_init_func_list): Likewise.
754 (ipa_pop_func_from_list): Likewise.
755 (ipa_get_param_decl_index): Fix coding style.
756 (count_formal_params): Removed.
757 (count_formal_params_1): Renamed to count_formal_params.
758 (ipa_populate_param_decls): Update to use descriptors vector.
759 (ipa_initialize_node_params): Likewise.
760 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
761 (ipa_analyze_params_uses): Likewise.
762 (ipa_free_node_params_substructures): Likewise and free also lattices
763 and known values.
764 (duplicate_array): Removed.
765 (ipa_edge_duplication_hook): Add the new edge to the list of edge
766 clones.
767 (ipa_node_duplication_hook): Update to use new lattices.
768 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
769 (ipa_free_all_structures_after_iinln): Likewise.
770 (ipa_write_node_info): Update to use new lattices.
771 (ipa_read_node_info): Likewise.
772 (ipa_get_jf_pass_through_result): New function.
773 (ipa_get_jf_ancestor_result): Likewise.
774 (ipa_value_from_jfunc): Likewise.
775 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
776 * ipa-cp.c: Reimplemented.
777 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
778 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
779 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
780 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
781 * doc/invoke.texi (devirt-type-list-size): Removed description.
782 (ipa-cp-value-list-size): Added description.
783
6774a66f
RH
7842011-07-18 Richard Henderson <rth@redhat.com>
785
786 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
787 before calling create_basic_block.
788
8b316874
JJ
7892011-07-18 Jakub Jelinek <jakub@redhat.com>
790
791 PR middle-end/49675
792 * tree.c (build_common_builtin_nodes): Register
793 __builtin_return_address, __cyg_profile_func_enter
794 and __cyg_profile_func_exit.
795
9f68560b
RH
7962011-07-18 Richard Henderson <rth@redhat.com>
797
798 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
799 (add_labels_and_missing_jumps): ... here.
800 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
801
03126412
UB
8022011-07-18 Uros Bizjak <ubizjak@gmail.com>
803
804 PR target/47744
805 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
806 of DImode hard registers in PLUS address chains.
807
fbf80ef7
RO
8082011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
809
810 PR bootstrap/49769
811 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
812 (alpha*-*-freebsd*): Likewise.
813 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
814 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
815 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
816 crtprec80.o, crtfastmath.o to extra_parts for all targets.
817 (ia64*-*-elf*): Remove extra_parts.
818 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
819 (sparc64-*-linux*): Likewise.
820 (sparc64-*-freebsd*): Likewise.
821
822 Revert:
823 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
824 (ia64*-*-linux*): Likewise.
825 (mips64*-*-linux*): Likewise.
826 (mips*-*-linux*): Likewise.
827
daf633ba
DE
8282011-07-18 David Edelsohn <dje.gcc@gmail.com>
829
830 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
831
4b4455e5
RG
8322011-07-18 Richard Guenther <rguenther@suse.de>
833
834 * gimplify.c (gimplify_expr): Use input_location, not saved_location
835 when building new trees.
836
e002c7cb
RG
8372011-07-18 Richard Guenther <rguenther@suse.de>
838
839 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
840 expansion result to bitfield precision if required.
841
e44dbbe1
RO
8422011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
843
844 * config.gcc (i[3456x]86-*-netware*): Remove.
845
846 * gthr-nks.h: Remove.
847 * configure.ac (enable_threads): Remove nks.
848 * configure: Regenerate.
849
850 * config/i386/i386.c (ix86_encode_section_info): Remove netware
851 reference.
852 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
853 <netware.h> reference.
854
855 * config/i386/netware-libgcc.c,
856 gcc/config/i386/netware-libgcc.def,
857 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
858 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
859 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
860 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
861
862 * doc/extend.texi (Function Attributes,
863 callee_pop_aggregate_return): Remove i?86-netware reference.
864 * doc/install.texi (Configuration, --enable-threads): Remove nks.
865
fd862017
JDA
8662011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
867
868 PR target/49746
869 Revert:
870 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
871
872 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
873 patterns.
874
1ff24749
EB
8752011-07-17 Eric Botcazou <ebotcazou@adacore.com>
876
877 PR middle-end/49732
878 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
879
a4a2c37d
MK
8802011-07-16 Matthias Klose <doko@ubuntu.com>
881
882 * doc/install.texi: Document --enable-static-libjava.
883
ea6136a2
RH
8842011-07-15 Richard Henderson <rth@redhat.com>
885
886 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
887 Replace all three arguments by returning a VEC of edges.
888 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
889 pointers and counts.
890 (fix_edges_for_rarely_executed_code): Merge ...
891 (rest_of_handle_partition_blocks): ... into...
892 (partition_hot_cold_basic_blocks): ... here. Return todo items if
893 any work was performed.
894 (pass_partition_blocks): Clear todo_flags_finish.
895
6545e33e
PC
8962011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
897 Jakub Jelinek <jakub@redhat.com>
898 Jonathan Wakely <jwakely.gcc@gmail.com>
899
900 PR libstdc++/49745
901 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
902 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
903
6feeed06
JM
9042011-07-15 Jason Merrill <jason@redhat.com>
905
906 PR testsuite/49741
907 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
908 rather than --tool_opts.
909
44762055
BS
9102011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
911
912 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 913 corresponding gtype.state.
44762055 914
1be0310c
JDA
9152011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
916
917 PR target/49723
918 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
919
12c5ffe5
EB
9202011-07-15 Eric Botcazou <ebotcazou@adacore.com>
921
922 PR target/48220
923 * doc/md.texi (Standard Names): Document window_save.
924 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
925 expand_debug_expr and expand_debug_source_expr. If the target has
926 a window_save instruction, adjust the ENTRY_VALUE_EXP.
927 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
928 SSA_NAME_VAR is a parameter.
929 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
930 * var-tracking.c (parm_reg_t): New type and associated vector type.
931 (windowed_parm_regs): New variable.
932 (adjust_insn): If the target has a window_save instruction and this
933 is the instruction, make its effect on parameter registers explicit.
934 (next_non_note_insn_var_location): New function.
935 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
936 (vt_add_function_parameter): If the target has a window_save insn,
937 adjust the incoming RTL and record that in windowed_parm_regs.
938 (vt_finalize): Free windowed_parm_regs.
939
bcead286
BS
9402011-07-15 Bernd Schmidt <bernds@codesourcery.com>
941
942 * doc/invoke.texi (C6X Options): New section.
943 * doc/md.texi (TI C6X family): New section.
944 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
945 tic6x-*-uclinux.
946 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
947 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
948 Provide C6X definitions.
949 * config/c6x/c6x.md: New file.
950 * config/c6x/constraints.md: New file.
951 * config/c6x/predicates.md: New file.
952 * config/c6x/c6x-sched.md.in: New file.
953 * config/c6x/c6x-sched.md: New file.
954 * config/c6x/gensched.sh: New file.
955 * config/c6x/c6x-mult.md.in: New file.
956 * config/c6x/genmult.sh: New file.
957 * config/c6x/c6x-mult.md: New file.
958 * config/c6x/sync.md: New file.
959 * config/c6x/c6x-protos.h: New file.
960 * config/c6x/sfp-machine.h: New file.
961 * config/c6x/c6x.c: New file.
962 * config/c6x/c6x.h: New file.
963 * config/c6x/crti.s: New file.
964 * config/c6x/crtn.s: New file.
965 * config/c6x/lib1funcs.asm: New file.
966 * config/c6x/c6x-modes.def: New file.
967 * config/c6x/genopt.sh: New file.
968 * config/c6x/c6x.opt: New file.
969 * config/c6x/c6x-tables.opt: New file.
970 * config/c6x/c6x-opts.h: New file.
971 * config/c6x/c6x-isas.def: New file.
972 * config/c6x/elf.h: New file.
973 * config/c6x/elf-common.h: New file.
974 * config/c6x/uclinux-elf.h: New file.
975 * config/c6x/t-c6x: New file.
976 * config/c6x/t-c6x-elf: New file.
977 * config/c6x/t-c6x-uclinux: New file.
978 * config/c6x/t-c6x-softfp: New file.
979 * config/c6x/gtd.c: New file.
980 * config/c6x/gtf.c: New file.
981 * config/c6x/ltd.c: New file.
982 * config/c6x/ltf.c: New file.
983 * config/c6x/ged.c: New file.
984 * config/c6x/gef.c: New file.
985 * config/c6x/led.c: New file.
986 * config/c6x/lef.c: New file.
987 * config/c6x/eqd.c: New file.
988 * config/c6x/eqf.c: New file.
989 * config/c6x/libgcc-c6xeabi.ver: New file.
990
aef0e7a8
BS
991 Revert
992 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
993 PR rtl-optimization/11320
994 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
995 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
996 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
997 current_sched_info->compute_jump_reg_dependencies. Record which
998 registers are used and which registers are set by the jump.
999 Clear deps->reg_conditional_sets after a barrier.
1000 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1001 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1002 (init_deps): Initialize reg_conditional_sets.
1003 (free_deps): Clear reg_conditional_sets.
1004 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1005 Mark registers live on entry of the fallthrough block and conditionally
1006 set as set by the jump. Mark registers live on entry of non-fallthrough
1007 blocks as used by the jump.
1008 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1009 Mark new parameters as unused.
1010
9bed2f0d
AP
10112011-07-14 Andrew Pinski <pinskia@gmail.com>
1012
1013 PR tree-opt/49309
1014 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
1015 Use fold_build2_loc instead of build2.
1016 Use the correct type for the new tree.
1017
1f88caaa
BS
10182011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1019
1020 PR rtl-optimization/11320
1021 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
1022 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
1023
d772f97c 10242011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 1025
d772f97c
GJL
1026 PR target/49487
1027 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
1028 of REG.
1029 (*rotw<mode>): Use const_int_operand for operand2.
1030 Use match_scatch for operand3.
1031 (*rotb<mode>): Ditto
1032 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
1033
1a5d20a4
RG
10342011-07-14 Richard Guenther <rguenther@suse.de>
1035
1036 PR tree-optimization/49651
1037 * tree-ssa-structalias.c (get_constraint_for_1): Properly
1038 handle dereferences with subvariables.
1039
5fbcc0ed
RG
10402011-07-14 Richard Guenther <rguenther@suse.de>
1041
1042 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
1043 (fold_stmt_1): Do it here directly on gimple and as a first thing.
1044
fbf3fee2
RG
10452011-07-14 Richard Guenther <rguenther@suse.de>
1046
1047 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
1048 not bool_var when folding bool_var != 1 or bool_var == 0.
1049
b953c2b8
BS
10502011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1051
1052 * haifa-sched.c (schedule_insns): Remove outdated comment.
1053 (schedule_block): When computing a known value for TODO_SPEC,
1054 just set it rather than using logical operations.
1055 (try_ready): Likewise. Use a local variable rather than a
1056 pointer to TODO_SPEC. Reorder an if statement to move the
1057 easy case to the then block.
1058 * sched-deps.c (dep_spec_p): New static function.
1059 (update_dep): Use it to decide whether to call
1060 change_spec_dep_to_hard.
1061 (get_back_and_forw_lists): Use it.
1062 (sd_resolve_dep): Likewise.
1063 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
1064 (haifa_note_mem_dep): Likewise.
1065 (check_dep): Likewise.
1066 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
1067 (sched_free_deps): Free in two passes.
1068
1f098f07
RS
10692011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
1070
1071 PR middle-end/49736
1072 * expr.c (all_zeros_p): Undo bogus part of last change.
1073
73059910
MK
10742011-07-14 Matthias Klose <doko@ubuntu.com>
1075
1076 * doc/extend.texi (optimize attribute): Fix typo.
1077
bd5d002e
RG
10782011-07-14 Richard Guenther <rguenther@suse.de>
1079
1080 * gimplify.c (gimplify_expr): Only do required conversions.
1081
eb1dcdff
GJL
10822011-07-14 Georg-Johann Lay <avr@gjlay.de>
1083
1084 PR target/43746
1085 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
1086 i.e. use default_elf_select_section.
1087 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
1088 (READONLY_DATA_SECTION_ASM_OP): Remove.
1089 (TARGET_ASM_NAMED_SECTION): Move from here...
1090 * config/avr/avr.c: ...to here.
03126412 1091 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
1092 (avr_asm_named_section): Make static.
1093
d31fb329
RO
10942011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1095
1096 PR bootstrap/49739
03126412
UB
1097 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
1098 and crtfastmath.o for Linux/x86.
d31fb329 1099
26965010
BS
11002011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1101
1102 * haifa-sched.c: Include "hashtab.h"
1103 (sched_no_dce): New global variable.
1104 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
1105 SHADOW_P): New macros.
1106 (last_clock_var, cycle_issued_insns): Move declarations.
1107 (must_backtrack): New static variable.
1108 (struct delay_pair): New structure.
1109 (delay_htab, delay_htab_i2): New static variables.
1110 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
1111 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
1112 functions.
1113 (dep_cost_1): If delay pairs exist, try to look up the insns and
1114 use the correct pair delay if we find them.
1115 (rank-for_schedule): Tweak priority for insns that must be scheduled
1116 soon to avoid backtracking.
1117 (queue_insn): Detect conditions which force backtracking.
1118 (ready_add): Likewise.
1119 (struct sched_block_state): Add member shadows_only_p.
1120 (struct haifa_save_data): New structure.
1121 (backtrack_queue): New static variable.
1122 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
1123 unschedule_insns_until, restore_last_backtrack_point,
1124 free_topmost_backtrack_point, free_backtrack_queue,
1125 estimate_insn_tick, estimate_shadow_tick): New functions.
1126 (prune_ready_list): New arg shadows_only_p. All callers changed.
1127 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 1128 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
1129 (verify_shadows): New function.
1130 (schedule_block): Add machinery to enable backtracking.
1131 (sched_init): Take sched_no_dce into account when setting
1132 DF_LR_RUN_DCE.
1133 (free_delay_pairs): New function.
1134 (init_h_i_d): Initialize INSN_EXACT_TICK.
1135 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
1136 * sched-deps.c (sd_unresolve_dep): New function.
1137 * sched-int. (struct haifa_sched_info): New fields save_state
1138 and restore_state.
1139 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
1140 feeds_backtrack_insn and shadow_p.
1141 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
1142 (sched_no_dce): Declare variable.
1143 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
1144 sd_unresolve_dep): Declare functions.
1145 * modulo-sched.c (sms_sched_info): Clear the two new fields.
1146 * sched-rgn.c (rgn_const_sched_info): Likewise.
1147 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1148 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
1149 (ebb_sched_info): Add them for the two new fields.
1150 (add_deps_for_risky_insns): Call add_delay_dependencies.
1151
1db75f6c
MM
11522011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1153
1154 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
1155 Rename -mr11.
1156 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
1157 (rs6000_call_indirect_aix): Ditto.
1158 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
1159 (call_indirect_aix<ptrsize>_internal): Ditto.
1160 (call_indirect_aix<ptrsize>_nor11): Ditto.
1161 (call_indirect_aix<ptrsize>_internal2): Ditto.
1162 (call_value_indirect_aix<ptrsize>): Ditto.
1163 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1164 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1165 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1166 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
1167
e2995714
JM
11682011-07-13 Jason Merrill <jason@redhat.com>
1169
1170 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
1171
4dfe3ad5
UW
11722011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1173
1174 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
1175 * config/spu/spu.md ("clrsb<mode>2"): New expander.
1176
dddc6762
TS
11772011-07-13 Thomas Schwinge <thomas@schwinge.name>
1178
1179 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
1180 * configure: Regenerate.
1181
b4d80e56
UW
11822011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1183
1184 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1185 (asm_file_start): Remove.
1186 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1187 free_bb_for_insn around code that modifies insns before
1188 restarting df analysis.
1189
9e34e53f
RO
11902011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1191
1192 PR target/49541
03126412 1193 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
1194 (LINK_SPEC): ... here.
1195
51564684
BS
11962011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1197
1198 * haifa-sched.c (struct sched_block_state): New.
1199 (schedule_block): Move some local variables into such a structure.
1200
b3fe1584
RO
12012011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1202
1203 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1204 * config/i386/t-crtpc: Remove.
1205 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1206 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1207 tmake_file.
1208 (x86_64-*-darwin*): Likewise.
1209 (i[34567]86-*-linux*): Likewise.
1210 (x86_64-*-linux*): Likewise.
1211
1212 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1213 Handle -mpc32, -mpc64, -mpc80.
1214
35d8090d
RO
12152011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1216
1217 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1218 * config/alpha/t-crtfm: Remove.
1219 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1220 * config/i386/t-crtfm: Remove.
1221 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1222 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1223 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1224 * config/sparc/t-crtfm: Remove.
1225
1226 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1227 (alpha*-*-freebsd*): Likewise.
1228 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1229 (x86_64-*-darwin*): Likewise.
1230 (i[34567]86-*-linux*): Likewise.
1231 (x86_64-*-linux*): Likewise.
1232 (x86_64-*-mingw*): Likewise.
1233 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1234 (ia64*-*-freebsd*): Likewise.
1235 (ia64*-*-linux*): Likewise.
1236 (mips64*-*-linux*): Likewise.
1237 (mips*-*-linux*): Likewise.
1238 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1239 (sparc64-*-linux*): Likewise.
1240 (sparc64-*-freebsd*): Likewise.
1241
e141542e
RO
12422011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1243
1244 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1245 * config/darwin-crt3.c: Move to ../libgcc/config.
1246 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1247 ($(T)crt3$(objext)): Remove.
1248 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1249 ($(T)crt2$(objext)): Remove.
1250 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1251 (powerpc64-*-darwin*): Likewise.
1252
72fbc381
L
12532011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1254
03126412 1255 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
1256
1257 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1258 (addsi_1_zext): This.
1259
727a65e6
BS
12602011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1261
1262 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1263 * doc/tm.texi: Regenerate.
73451ae7 1264 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
1265 * varasm.c (mergeable_string_section, mergeable_constant_section):
1266 Use it. Allocate name with alloca.
1267
cb77b6cf
L
12682011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1269
1270 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1271
36fc3799
RS
12722011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1273
1274 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1275 overlap check.
1276
953d0c90
RS
12772011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1278
1279 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
1280 (count_type_elements): Delete.
1281 (complete_ctor_at_level_p): Declare.
1282 * expr.c (flexible_array_member_p): New function, split out from...
1283 (count_type_elements): ...here. Make static. Replace allow_flexarr
1284 parameter with for_ctor_p. When for_ctor_p is true, return the
1285 number of elements that should appear in the top-level constructor,
1286 otherwise return an estimate of the number of scalars.
1287 (categorize_ctor_elements): Replace p_must_clear with p_complete.
1288 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
1289 (complete_ctor_at_level_p): New function, borrowing union logic
1290 from old categorize_ctor_elements_1.
1291 (mostly_zeros_p): Return true if the constructor is not complete.
1292 (all_zeros_p): Update call to categorize_ctor_elements.
1293 * gimplify.c (gimplify_init_constructor): Update call to
1294 categorize_ctor_elements. Don't call count_type_elements.
1295 Unconditionally prevent clearing for variable-sized types,
1296 otherwise rely on categorize_ctor_elements to detect
1297 incomplete initializers.
1298
9111c715
RG
12992011-07-13 Richard Guenther <rguenther@suse.de>
1300
1301 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1302 the final type is integral.
1303
a19af9c4
BS
13042011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1305
1306 * sched-int.h (struct _dep): Add member cost.
1307 (DEP_COST, UNKNOWN_DEP_COST): New macros.
1308 * sched-deps.c (init_dep_1): Initialize DEP_COST.
1309 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1310 (sched_change_pattern): Reset it for dependent insns.
1311
2d1efe2d
RO
13122011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1313
1314 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1315 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1316 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1317 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1318 (CRT0_S, MCRT0_S): Remove.
1319 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1320 Remove.
1321 (s-crt0): Remove.
1322 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1323
e84a58ff
EB
13242011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1325
1326 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1327 on the next line.
1328 * emit-rtl.c (push_to_sequence): Likewise.
1329 * haifa-sched.c (max_issue): Likewise.
1330 * matrix-reorg.c (add_allocation_site): Likewise.
1331 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1332 * reload.c (alternative_allows_const_pool_ref): Likewise.
1333 * sched-rgn.c (rgn_add_block): Likewise.
1334 (rgn_fix_recovery_cfg): Likewise.
1335 * tree.c (attribute_list_contained): Likewise.
1336
3a4ffde6
UB
13372011-07-12 Uros Bizjak <ubizjak@gmail.com>
1338
1339 * config/i386/i386.c: Tidy processor feature bitmasks.
1340 (m_P4_NOCONA): New.
1341
10b75750
AP
13422011-07-12 Andrew Pinski <pinskia@gmail.com>
1343
1344 PR rtl-opt/49474
1345 * cprop.c (find_implicit_sets): Correct the condition.
1346
4f42d714
RH
13472011-07-12 Richard Henderson <rth@redhat.com>
1348
1349 PR target/49713
1350 * dwarf2out.h (dwarf_frame_regnum): Remove.
1351 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1352 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1353 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1354 (execute_dwarf2_frame): Initialize them.
1355 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1356 users of the macros with the variables.
1357 (expand_builtin_dwarf_sp_column): Revert last change.
1358 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1359 result of DWARF_FRAME_REGNUM into a local variable.
1360
3a5e4ad6
RH
13612011-07-12 Richard Henderson <rth@redhat.com>
1362
1363 PR target/49714
1364 * config/i386/i386.c (x86_output_mi_thunk): Use
1365 machopic_indirect_call_target instead of machopic_indirection_name
1366 directly.
1367
9e9bd455
LG
13682011-07-12 Laurent GUERBY <laurent@guerby.net>
1369 Eric Botcazou <ebotcazou@adacore.com>
1370
1371 * prefix.h: Wrap up in extern "C" block.
1372
4d652a18
HJ
13732011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1374
1375 AMD bdver2 Enablement
1376 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1377 (case ${target}): Add bdver2.
1378 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1379 -march=native recognize bdver2 processors.
1380 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1381 bdver2 def_and_undef
1382 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1383 bdver2 cost table.
1384 (m_BDVER2): New definition.
1385 (m_AMD_MULTIPLE): Includes m_BDVER2.
1386 (initial_ix86_tune_features): Add bdver2 tuning.
1387 (processor_target_table): Add bdver2 entry.
1388 (static const char *const cpu_names): Add bdver2 entry.
1389 (ix86_option_override_internal): Add bdver2 instruction sets.
1390 (ix86_issue_rate): Add bdver2.
1391 (ix86_adjust_cost): Add bdver2.
1392 (has_dispatch): Add bdver2.
1393 * config/i386/i386.h (TARGET_BDVER2): New definition.
1394 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1395 (enum processor_type): Add PROCESSOR_BDVER2.
1396 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1397 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1398 description.
1399
5756d08c
RH
14002011-07-12 Richard Henderson <rth@redhat.com>
1401
1402 PR target/49714
1403 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1404 destination address in memory on some paths.
1405
123148b5
BS
14062011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1407
1408 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1409 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1410 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1411 * function.c (locate_and_pad_parm): Take it into account.
1412 * target.def (function_arg_round_boundary): New hook.
1413 * targhooks.c (default_function_arg_round_boundary): New function.
1414 * targhooks.h (default_function_arg_round_boundary): Declare.
1415 * doc/tm.texi: Regenerate.
1416
b7a83ad8
RG
14172011-07-12 Richard Guenther <rguenther@suse.de>
1418
1419 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1420 Do not perform no-op changes.
1421
12c4ecb1
RS
14222011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1423
1424 * config/arm/predicates.md (neon_struct_operand): Make a normal
1425 predicate.
1426 (neon_struct_or_register_operand): New predicate.
1427 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1428 with neon_struct_or_register_operand.
1429 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1430 neon_struct_operand instead of memory_operand.
1431
ab079773
MJ
14322011-07-12 Martin Jambor <mjambor@suse.cz>
1433
1434 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1435 * cgraph.c (cgraph_get_node_or_alias): Removed.
1436 (change_decl_assembler_name): Changed all calls to
1437 cgraph_get_node_or_alias to a call to cgraph_get_node.
1438 (cgraph_make_decl_local): Likewise.
1439 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1440 * varasm.c (default_binds_local_p_1): Likewise.
1441 (decl_binds_to_current_def_p): Likewise.
1442
d5fed62d
JJ
14432011-07-12 Jakub Jelinek <jakub@redhat.com>
1444
1445 PR tree-optimization/49712
1446 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1447
c0b6224a
BS
14482011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1449
1450 * genautomata.c (add_arc): Return void. All callers changed.
1451 (make_automaton): Remove dead code.
1452
7263c6d7
RH
14532011-07-11 Richard Henderson <rth@redhat.com>
1454
1455 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1456 (DW_FRAME_POINTER_REGNUM): New.
1457 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1458 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1459 (dwf_regno): New.
1460 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1461 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1462 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1463 Use it.
1464 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1465 * dwarf2out.h (dwarf_frame_regnum): New.
1466 (struct cfa_loc): Document the domain of the reg member.
1467
f9610d20
UB
14682011-07-11 Uros Bizjak <ubizjak@gmail.com>
1469
1470 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1471 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1472
96ae7458
JJ
14732011-07-11 Jakub Jelinek <jakub@redhat.com>
1474
1475 PR debug/49676
1476 * dwarf2out.c (int_shift_loc_descriptor): New function.
1477 (int_loc_descriptor): If shorter, emit i as
1478 (i >> shift), shift, DW_OP_shl for suitable shift value.
1479 Similarly, try to optimize large negative values using
1480 DW_OP_neg of a positive value if shorter.
1481 (size_of_int_shift_loc_descriptor): New function.
1482 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1483 changes.
1484 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1485 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1486 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1487 is shorter.
1488 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1489 addend as added DW_OP_plus if it is shorter.
1490
feffaec4
RO
14912011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1492
1493 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1494 (DTORS_SECTION_ASM_OP): Define.
1495
2d8d5935
RO
14962011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1497
1498 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1499 * config/t-dfprules: Move to ../libgcc/config.
1500 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1501 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1502 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1503 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1504 Likewise.
1505 (i[34567]86-*-cygwin*): Likewise.
1506 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1507 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1508 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1509 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1510 D64PBIT_FUNCS, D128PBIT_FUNCS.
1511
dcc95c20
RG
15122011-07-11 Richard Guenther <rguenther@suse.de>
1513
1514 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1515 translate the source value-range through the conversion chain.
1516
28164eed
RS
15172011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1518
1519 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1520
f3054223
AL
15212011-07-11 Arthur Loiret <aloiret@debian.org>
1522
1523 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1524 a bi-arch compiler defaulting to 31-bit. In this case:
1525 (tmake_file): Add s390/t-linux64.
1526 * doc/install.texi: Add s390-linux to the list of targets supporting
1527 --enable-targets=all.
1528
bd5ab709
AL
15292011-07-11 Arthur Loiret <aloiret@debian.org>
1530 Matthias Klose <doko@debian.org>
1531
1532 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1533 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1534 (tm_file): Add mips/linux64.h.
1535 (tmake_file): Add mips/t-linux64.
1536 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1537 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1538 instead of hardcoded mabi=n32.
1539 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1540 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1541 convention.
1542
d3b7e946
AK
15432011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1544
1545 * passes.c (init_optimization_passes): Add invariant motion pass
1546 after induction variable optimization.
1547
7e4ec472 15482011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1549
7e4ec472
GJL
1550 PR target/39633
1551 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1552 offsets 1..5 set cc0 in a usable way.
1553
0e65e631
RG
15542011-07-11 Romain Geissler <romain.geissler@gmail.com>
1555
1556 * tree.h (call_expr_arg): Remove.
1557 (call_expr_argp): Likewise.
1558
18970372
EB
15592011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * config/sparc/sparc.md (save_register_window_1): Rename to...
1562 (window_save): ...this.
1563 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1564 (emit_window_save): ...this.
1565 (sparc_expand_prologue): Adjust to above renaming.
1566
9e419e38
L
15672011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1568
1569 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1570 of movabs for x32.
1571
3db72de3
RH
15722011-07-10 Richard Henderson <rth@redhat.com>
1573
1574 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1575 run final, instead of emitting text directly.
1576
a1f91bca
L
15772011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1578
1579 * config/i386/i386.c (ix86_option_override_internal): Turn on
1580 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1581 small PIC models for TARGET_X32.
1582
a50023f9
HPN
15832011-07-10 Hans-Peter Nilsson <hp@axis.com>
1584
9a0b29f0
HPN
1585 PR target/49684
1586 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1587 $(LIBGCC2_CFLAGS).
1588
a50023f9
HPN
1589 PR bootstrap/49680
1590 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1591 stray notes and debug insns by using prev_nonnote_nondebug_insn
1592 instead of PREV_INSN.
1593
948d330e
RH
15942011-07-09 Richard Henderson <rth@redhat.com>
1595
1596 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1597 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1598 * dwarf2out.c: ... here.
1599 (output_all_cfis): Remove.
1600 (dwarf2out_switch_text_section): Use output_cfis directly.
1601 (size_of_locs): Export.
1602 (output_loc_sequence, output_loc_sequence_raw): Export.
1603 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1604 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1605 output_cfa_loc_raw): Move to ...
1606 * dwarfcfi.c: ... here.
1607 * dwarf2out.h: Update decls.
1608
db42e39d
RH
16092011-07-09 Richard Henderson <rth@redhat.com>
1610
1611 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1612 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1613 * dwarf2cfi.c: ... here.
1614 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1615 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1616 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1617 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1618 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1619
a8e5c0e7
RH
16202011-07-09 Richard Henderson <rth@redhat.com>
1621
1622 * dwarf2cfi.c (cie_return_save): New.
1623 (queue_reg_save): Use compare_reg_or_pc.
1624 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1625 (dwarf2out_frame_debug_expr): Likewise.
1626 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1627 (initial_return_save): Likewise.
1628 (execute_dwarf2_frame): Save and restore initial return save from
1629 the cie to the fde.
1630 * config/mips/mips.c (mips_frame_set): Remove special case for
1631 DWARF_FRAME_RETURN_COLUMN.
1632
4a8ee122
RH
16332011-07-09 Richard Henderson <rth@redhat.com>
1634
1635 * dwarf2cfi.c (lookup_cfa): Remove.
1636 (execute_dwarf2_frame): Assert queues are empty on entry.
1637 Setup initial cfa directly, not via lookup_cfa.
1638 Don't clear args_size state here.
1639
3edb53aa
RH
16402011-07-09 Richard Henderson <rth@redhat.com>
1641
1642 * dwarf2cfi.c (add_cfi_vec): New.
1643 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1644 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1645 (execute_dwarf2_frame): Set add_cfi_vec.
1646
ded49a7f
RH
16472011-07-09 Richard Henderson <rth@redhat.com>
1648
1649 * defaults.h (ASM_COMMENT_START): Move here...
1650 * dwarf2asm.c: ... from here.
1651 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1652 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1653 * varasm.c: Likewise.
1654
45fba6d1
RH
16552011-07-09 Richard Henderson <rth@redhat.com>
1656
1657 PR debug/49686
1658 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1659 (create_cfi_notes): ... do it here instead.
1660
5b696ba2
JJ
16612011-07-09 Jakub Jelinek <jakub@redhat.com>
1662
1663 PR debug/49676
1664 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1665 (address_of_int_loc_descriptor): Use it.
f9610d20 1666 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 1667
8662b2ba
RH
16682011-07-09 Richard Henderson <rth@redhat.com>
1669
1670 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1671 (prologue, epilogue): New.
1672 (return, *rts): New.
1673 (blockage, setd, seti): New.
1674 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1675 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1676 (pdp11_saved_regno): New.
1677 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1678 generate rtl instead of text.
1679 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1680 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1681 * config/pdp11/pdp11-protos.h: Update.
1682
28b21ebb
RH
16832011-07-09 Richard Henderson <rth@redhat.com>
1684
1685 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1686 try to insert an rtl prologue here.
1687 (rs6000_output_function_epilogue): Similarly.
1688 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1689 satisfy !TARGET_SCHED_PROLOG.
1690 (epilogue, sibcall_epilogue): Likewise.
1691
0a222ba7
EB
16922011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1693
1694 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1695 (FP_REG_P): Delete.
1696 (IN_OR_GLOBAL_P): Likewise.
1697
2fda8e14
JM
16982011-07-08 Jason Merrill <jason@redhat.com>
1699
4063e61b
JM
1700 PR c++/45437
1701 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1702 compound assignment.
1703
2fda8e14
JM
1704 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1705 * cgraph.h: Declare it.
1706 * ipa.c (function_and_variable_visibility): Make sure thunks
1707 have the right visibility.
1708
830f11fe
RH
17092011-07-08 Richard Henderson <rth@redhat.com>
1710
1711 PR bootstrap/49680
1712 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1713 any tablejump vector.
1714
965b2557
RH
1715 PR bootstrap/49680
1716 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1717 end of the prologue.
1718
70db9095
JJ
17192011-07-08 Jakub Jelinek <jakub@redhat.com>
1720
1721 PR target/49621
1722 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 1723 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
1724 * config/rs6000/vector.md (vector_select_<mode>,
1725 vector_select_<mode>_uns): Change second operand of NE to
1726 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1727 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1728 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1729 zero_constant of the corresponding vector mode.
1730 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1731 Likewise.
1732
e92c5020
SP
17332011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1734
1735 * graphite-dependences.c (build_alias_set_powerset): Remove
1736 continue from loop, add one more assert.
1737
3e4f8484 17382011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1739
3e4f8484
GJL
1740 PR target/46779
1741 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1742 In particular, allow 8-bit values in r28 and r29.
1743 (avr_hard_regno_scratch_ok): Disallow any register that might be
1744 part of the frame pointer.
1745 (avr_hard_regno_rename_ok): Same.
1746 (avr_legitimate_address_p): Don't allow SUBREGs.
1747
0094f21b
JB
17482011-07-08 Julian Brown <julian@codesourcery.com>
1749
1750 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1751 big-endian mode.
1752 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1753 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1754 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1755 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1756 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1757 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1758 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1759 registers in big-endian mode.
1760
9ae60101
BS
17612011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1762
1763 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1764 in terms of another.
1765 (write_attr_value): Write a cast if necessary.
1766
c0a6a1ef
BS
1767 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1768 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1769 (REG_WORDS_BIG_ENDIAN): Document.
1770 * doc/tm.texi: Regenerate.
1771 * reload.c (operands_match_p): Take it into account.
1772 (reload_adjust_reg_for_mode): Likewise.
1773 * rtlanal.c (subreg_get_info): Likewise.
1774
b862187a
RG
17752011-07-08 Richard Guenther <rguenther@suse.de>
1776
1777 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1778 folding.
1779
e8e8c74b
KT
17802011-07-08 Kai Tietz <ktietz@redhat.com>
1781
1782 * fold-const.c (fold_truth_andor): Factored out truth_andor
1783 label from fold_binary as function.
1784 (fold_binary_loc): Replace truth_andor lable
1785 by function fold_truth_andor.
1786
6c3cb698
KY
17872011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1788
1789 PR middle-end/49519
1790 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1791 check if address is stored in register. If so - give up.
1792 (check_sibcall_argument_overlap_1): Do not perform check of
1793 overlapping when it is call to address.
1794
7d8d6d73 17952011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 1796
7d8d6d73
GJL
1797 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1798 of magic '31'.
1799
69660a70
BS
18002011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1801
1802 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1803 GET_MODE_BITSIZE where appropriate.
1804 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1805 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1806 expand_float, expand_fix): Likewise.
1807 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1808 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1809 * stor-layout.c (get_mode_bounds): Likewise.
1810 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1811 Likewise.
1812 * convert.c (convert_to_integer): Likewise.
1813 * expmed.c (expand_shift_1): Likewise.
1814
86cdf393
BS
1815 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1816 a bitsize.
1817
0d44736e
BS
1818 * optabs.c (expand_binop): Tighten conditions for doubleword
1819 expansions.
f9610d20 1820 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
1821 * stor-layout.c (get_best_mode): Skip modes that have lower
1822 precision than bitsize.
1823 * recog.c (simplify_while_replacing): Assert that bitsize and
1824 precision are the same.
1825
2c50b2c3
RO
18262011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1827
1828 * Makefile.in (LIBGCOV): Remove.
1829 (libgcc.mvars): Remove LIBGCOV.
1830 * libgov.c: Move to ../libgcc.
1831
a039d7c2
RO
18322011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1833
1834 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1835
e923ef41
MJ
18362011-07-08 Martin Jambor <mjambor@suse.cz>
1837
1838 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1839 is too big for total scalarization.
1840
b709e189
RH
18412011-07-07 Richard Henderson <rth@redhat.com>
1842
1843 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1844 (DBX_DEBUGGING_INFO): Undef.
1845
2867fa7c
RH
18462011-07-07 Richard Henderson <rth@redhat.com>
1847
1848 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1849 Handle some opcodes specially for debugging.
1850 * print-rtl.c: Include dwarf2out.h
1851 (print_rtx): Handle NOTE_INSN_CFI.
1852 * Makefile.in (print-rtl.o): Update.
1853
7644b3c7
RH
18542011-07-07 Richard Henderson <rth@redhat.com>
1855
1856 * tree-pass.h (pass_dwarf2_frame): Declare.
1857 * passes.c (init_optimization_passes): Add it.
1858 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1859 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1860 make static, do not call add_cfis_to_fde.
1861 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1862 dwarf2out_frame_init): Merge into...
1863 (execute_dwarf2_frame): ... here. New function.
1864 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1865 saved_do_cfi_asm to a tri-state variable.
1866 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1867 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1868 if it has yet to be done. Don't call dwarf2cfi_function_init.
1869 * dwarf2out.h, debug.h: Update decls.
1870 * final.c (final_start_function): Don't call
1871 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1872 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1873 * toplev.c (lang_dependent_init): Likewise.
1874
a518b996
RH
18752011-07-07 Richard Henderson <rth@redhat.com>
1876
1877 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1878 FDE_TABLE_INCREMENT): Replace with...
1879 (fde_vec): ... this, a new vector.
1880 (current_fde): Remove. Replace all users with cfun->fde.
1881 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1882 (size_of_aranges, dwarf2out_finish): Likewise.
1883 (dwarf2out_alloc_current_fde): Break out from ...
1884 (dwarf2out_begin_prologue): ... here.
1885 (dwarf2out_frame_init): Remove.
1886 * dwarf2cfi.c: Update all users of current_fde.
1887 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1888 * dwarf2out.h: Update decls.
1889 (dw_fde_node): Add fde_index member.
1890 * function.h (struct function): Add fde member.
1891
89e25f95
BS
18922011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1893 Richard Henderson <rth@redhat.com>
1894
1895 * dwarf2cfi.c (add_cfi): Remove.
1896 (dwarf2out_cfi_label): Remove force argument. Only generate the
1897 label name.
1898 (add_fde_cfi): Simplify the different code paths.
1899 (add_cie_cfi): New.
1900 (old_cfa, old_cfa_remember): New.
1901 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1902 (last_reg_save_label): Remove.
1903 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1904 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1905 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1906 dwarf2out_frame_debug_cfa_expression,
1907 dwarf2out_frame_debug_cfa_restore,
1908 dwarf2out_frame_debug_cfa_window_save,
1909 dwarf2out_frame_debug_expr): Remove label parameter.
1910 (cfi_label_required_p, add_cfis_to_fde): New.
1911 (dwarf2out_frame_debug_after_prologue): New.
1912 (dwarf2cfi_frame_init): Initialize old_cfa.
1913 (dwarf2out_frame_debug_restore_state): Likewise.
1914 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1915 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1916 * final.c (final_start_function): Call
1917 dwarf2out_frame_debug_after_prologue.
1918
bc5612ed
BS
19192011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1920 Richard Henderson <rth@redhat.com>
1921
1922 * dwarf2cfi.c (cfi_insn): New.
1923 (dwarf2out_cfi_label): Don't emit cfi label here.
1924 (add_fde_cfi): Create a NOTE_INSN_CFI.
1925 (dwarf2out_frame_debug): Setup cfi_insn.
1926 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1927 (dwarf2out_cfi_begin_epilogue): Make static.
1928 (dwarf2out_frame_debug_restore_state): Make static.
1929 * dwarf2out.c (output_cfi_directive): Make static.
1930 (dwarf2out_emit_cfi): New.
1931 * dwarf2out.h: Update.
1932 * final.c (final): Remove CFI notes.
1933 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1934 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1935 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1936 * insn-notes.def (NOTE_INSN_CFI): New.
1937 (NOTE_INSN_CFI_LABEL): New.
1938 * rtl.h (union rtunion_def): Add rt_cfi member.
1939 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1940
647a1567
RH
19412011-07-07 Richard Henderson <rth@redhat.com>
1942
1943 * dwarf2cfi.c: New file.
1944 * Makefile.in (OBJS): Add it.
1945 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1946 * gengtype.c (open_base_files): Include dwarf2out.h.
1947 * coretypes.h (enum var_init_status): Move from ...
1948 * rtl.h: ... here.
1949 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1950 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1951 expand_builtin_dwarf_sp_column, init_return_column_size,
1952 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1953 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1954 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1955 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1956 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1957 compute_barrier_args_size, dwarf2out_args_size,
1958 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1959 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1960 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1961 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1962 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1963 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1964 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1965 dwarf2out_frame_debug_cfa_expression,
1966 dwarf2out_frame_debug_cfa_restore,
1967 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1968 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1969 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1970 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1971 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1972 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1973 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1974 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1975 dw_loc_descr_node): Move to dwarf2out.h.
1976 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1977 mem_loc_descriptor): Export.
1978 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
1979 (dwarf2out_frame_init): Extract CIE generation code to
1980 dwarf2cfi_frame_init.
1981
b286d9ed
EB
19822011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1983
1984 PR target/49660
1985 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1986 MASK_V8PLUS, remove commented out flag and reorder.
1987
c4603e7c
JJ
19882011-07-07 Jakub Jelinek <jakub@redhat.com>
1989
1990 PR c/49644
1991 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1992 one non-complex and one complex argument, call c_save_expr on both
1993 operands.
1994
81361831
MJ
19952011-07-07 Martin Jambor <mjambor@suse.cz>
1996
1997 PR middle-end/49495
1998 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1999 (verify_cgraph_node): Some functinality moved to
2000 verify_edge_corresponds_to_fndecl, call it.
2001
1e4b2746
JM
20022011-07-07 Joseph Myers <joseph@codesourcery.com>
2003
2004 * config.gcc (*local*): Remove.
2005 * doc/install-old.texi: Don't mention local configurations.
2006
d7ff1e11
JJ
20072011-07-07 Jakub Jelinek <jakub@redhat.com>
2008
2009 PR debug/49522
2010 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
2011 referencing debug insns that have been reset.
2012 (dead_debug_insert_before): Don't assert reg is non-NULL,
2013 instead return immediately if it is NULL.
2014
2492731a
JM
20152011-07-07 Joseph Myers <joseph@codesourcery.com>
2016
f9610d20 2017 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 2018
9d9c740d
BS
20192011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2020
2021 * hw-doloop.c: New file.
2022 * hw-doloop.h: New file.
2023 * Makefile.in (OBJS): Add hw-doloop.o.
2024 (hw-doloop.o): New rule.
2025 ($(obj_out_file)): Add hw-doloop.h dependency.
2026 * config/bfin/bfin.c: Include "hw-doloop.h".
2027 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
2028 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
2029 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
2030 type changed to hwloop_info. Return bool, true if the loop was
2031 successfully optimized. Remove code that was moved to
2032 hw-doloop.c, and adjust other parts.
2033 (hwloop_fail): New static function, containing parts that used
2034 to be in bfin_optimize_loop.
2035 (bfin_discover_loop, bfin_discover_loops, free_loops,
2036 bfin_reorder_loops): Remove.
2037 (hwloop_pattern_reg): New static function.
2038 (bfin_doloop_hooks): New variable.
2039 (bfin_reorg_loops): Remove most code, call reorg_loops.
2040 * config/bfin/bfin.md (doloop_end splitter): Also enable if
2041 loop counter is a memory_operand.
2042
f0ea7581
L
20432011-07-07 H.J. Lu <hongjiu.lu@intel.com>
2044
f9610d20 2045 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
2046
2047 * configure.ac: Mention x86-64 for --with-multilib-list.
2048 * configure: Regenerated.
2049
2050 * config/i386/gnu-user64.h (SPEC_64): Support x32.
2051 (SPEC_32): Likewise.
2052 (ASM_SPEC): Likewise.
2053 (LINK_SPEC): Likewise.
2054 (TARGET_THREAD_SSP_OFFSET): Likewise.
2055 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
2056 (SPEC_X32): New.
2057
2058 * config/i386/i386.h (TARGET_X32): New.
2059 (TARGET_LP64): New.
2060 (LONG_TYPE_SIZE): Likewise.
2061 (POINTER_SIZE): Likewise.
2062 (POINTERS_EXTEND_UNSIGNED): Likewise.
2063 (OPT_ARCH64): Support x32.
2064 (OPT_ARCH32): Likewise.
2065
2066 * config/i386/i386.opt (mx32): New.
2067
2068 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
2069 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2070 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
2071 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2072
2073 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
2074 (BIONIC_DYNAMIC_LINKERX32): Likewise.
2075 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
2076
2077 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
2078
f9610d20 2079 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
2080
2081 * doc/invoke.texi: Document -mx32.
2082
38460025
RS
20832011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2084
2085 * doc/invoke.texi (mwords-little-endian): Deprecate.
2086 * config/arm/arm.opt (mwords-little-endian): Likewise.
2087 * config/arm/arm.c (arm_option_override): Warn about the deprecation
2088 of -mwords-little-endian.
2089
3f125532
RS
20902011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2091
2092 * reload1.c (choose_reload_regs): Use mode sizes to check whether
2093 an old reload register completely defines the required value.
2094
bbc210ab
RG
20952011-07-07 Richard Guenther <rguenther@suse.de>
2096
2097 * fold-const.c (fold_unary_loc): Do not strip sign-changes
2098 for NEGATE_EXPR.
2099
29c5134a
RG
21002011-07-07 Richard Guenther <rguenther@suse.de>
2101
2102 * tree-vrp.c (simplify_conversion_using_ranges): New function.
2103 (simplify_stmt_using_ranges): Call it.
2104
0816a42a
KT
21052011-07-07 Kai Tietz <ktietz@redhat.com>
2106
2107 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
2108 (lookup_logical_inverted_value): Likewise.
2109 (simplify_bitwise_binary_1): Likewise.
2110 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
2111
3ce9f090
JM
21122011-07-07 Joseph Myers <joseph@codesourcery.com>
2113
2114 * gcc.c (%[Spec]): Don't document.
2115 (struct spec_list): Update comment.
2116 (do_spec_1): Don't handle %[Spec].
2117 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
2118
41dfca87
JM
21192011-07-07 Joseph Myers <joseph@codesourcery.com>
2120
2121 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
2122 default based on TARGET_ASM_NAMED_SECTION.
2123 * common/common-target.def (have_named_sections): Default to true.
2124 * common/config/default-common.c: Don't include tm.h.
2125 * common/config/picochip/picochip-common.c
2126 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
2127 * common/config/m32c/m32c-common.c: Remove.
2128 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
2129 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2130 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2131 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 2132 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
2133 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2134 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 2135
19c44640
JJ
21362011-07-07 Jakub Jelinek <jakub@redhat.com>
2137
2138 PR middle-end/49640
f9610d20
UB
2139 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
2140 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 2141
891a2e42
RO
21422011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2143
2144 PR libmudflap/49550
2145 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
2146
fbdd5d87
RO
21472011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2148
2149 PR target/39150
2150 * configure.ac (gcc_cv_as_hidden): Also accept
2151 x86_64-*-solaris2.1[0-9]*.
2152 (gcc_cv_as_cfi_directive): Likewise.
2153 (gcc_cv_as_comdat_group_group): Likewise.
2154 (set_have_as_tls): Likewise.
2155 * configure: Regenerate.
2156 * config.gcc (i[34567]86-*-solaris2*): Also handle
2157 x86_64-*-solaris2.1[0-9]*.
2158 * config.host (i[34567]86-*-solaris2*): Likewise.
2159 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
2160 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
2161 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
2162 (TARGET_LD_EMULATION): Use it.
2163 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
2164 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
2165 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
2166 (ASM_CPU64_DEFAULT_SPEC): Define.
2167 (ASM_CPU_SPEC): Use %(asm_cpu_default).
2168 (ASM_SPEC): Redefine.
2169 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
2170 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 2171 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
2172 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
2173 configuration.
2174 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
2175
fcf7471a
RO
21762011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2177
2178 * config/sol2.h (ASM_SPEC): Split into ...
2179 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
2180 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2181 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2182 (ASM_SPEC): Use ASM_SPEC_BASE.
2183 * config/sparc/sol2.h (ASM_SPEC): Redefine.
2184
1e6a67d1 21852011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 2186
1e6a67d1
GJL
2187 * config/avr/avr.md (*reload_insi): Change predicate #1 to
2188 const_int_operand. Ditto for peep2 producing this insn.
2189 Add argument to output_reload_insisf call.
2190 (*movsi,*movsf): Add argument to output_movsisf call.
2191 (*reload_insf): New insn and new peep2 to produce it.
2192 * config/avr/avr-protos.h (output_movsisf): Change prototype.
2193 (output_reload_insisf): Change prototype.
2194 * config/avr/avr.c (avr_asm_len): New function.
2195 (output_reload_insisf): Rewrite.
2196 (output_movsisf): Change prototype. output_reload_insisf for
2197 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
2198 (adjust_insn_length): Add argument to output_movsisf and
2199 output_reload_insisf call.
2200
6a4bdc79
BS
22012011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2202
2203 * emit-rtl.c (paradoxical_subreg_p): New function.
2204 * rtl.h (paradoxical_subreg_p): Declare.
2205 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2206 apply_distributive_law, simplify_comparison, simplify_set): Use it.
2207 * cse.c (record_jump_cond, cse_insn): Likewise.
2208 * expr.c (force_operand): Likewise.
2209 * rtlanal.c (num_sign_bit_copies1): Likewise.
2210 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2211 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2212 (push_reload): Use precision to check for paradoxical subregs.
2213 * expmed.c (extract_bit_field_1): Likewise.
2214
46c9550f
BS
2215 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2216 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2217 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2218 simplify_set, simplify_logical, expand_compound_operation,
2219 make_extraction, force_to_mode, if_then_else_cond, extended_count,
2220 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2221 record_value_for_reg): Likewise.
2222 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2223 * simplify-rtx. c (simplify_unary_operation_1,
2224 simplify_binary_operation_1, simplify_const_relational_operation):
2225 Likewise.
2226
5511bc5a
BS
2227 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2228 instead of GET_MODE_BITSIZE where appropriate.
2229 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2230 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2231 init_num_sign_bit_copies_in_rep): Likewise.
2232 * cse.c (fold_rtx, cse_insn): Likewise.
2233 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2234 * simplify-rtx.c (simplify_unary_operation_1,
2235 simplify_const_unary_operation, simplify_binary_operation_1,
2236 simplify_const_binary_operation, simplify_ternary_operation,
2237 simplify_const_relational_operation, simplify_subreg): Likewise.
2238 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2239 simplify_if_then_else, simplify_set, expand_compound_operation,
2240 expand_field_assignment, make_extraction, if_then_else_cond,
2241 make_compound_operation, force_to_mode, make_field_assignment,
2242 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2243 extended_count, try_widen_shift_mode, simplify_shift_const_1,
2244 simplify_comparison, record_promoted_value, simplify_compare_const,
2245 record_dead_and_set_regs_1): Likewise.
2246
d58c1a38
BS
2247 Revert:
2248 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
2249 shift_truncation_mask hook instead of performing modulo by width.
2250 Compare against mode precision, not bitsize.
d58c1a38 2251 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 2252 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 2253
76594d53
MM
22542011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2255
2256 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2257 declaration.
2258 (rs6000_save_toc_in_prologue_p): Ditto.
2259
2260 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2261 up the static chain (r11) during indirect function calls.
2262 (-msave-toc-indirect): New undocumented debug switch.
2263
2264 * config/rs6000/rs6000.c (struct machine_function): Add
2265 save_toc_in_prologue field to note whether the prologue needs to
2266 save the TOC value in the reserved stack location.
2267 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
2268 to save the TOC in the prologue, do so.
2269 (rs6000_trampoline_init): Don't allow creating AIX style
2270 trampolines if -mno-r11 is in effect.
2271 (rs6000_call_indirect_aix): New function to create AIX style
2272 indirect calls, adding support for -mno-r11 to suppress loading
2273 the static chain, and saving the TOC in the prologue instead of
2274 the call body.
2275 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2276 TOC in the prologue.
2277
2278 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2279 register numbers.
2280 (TOC_REGNUM): Ditto.
2281 (STATIC_CHAIN_REGNUM): Ditto.
2282 (ARG_POINTER_REGNUM): Ditto.
2283 (SFP_REGNO): Delete, unused.
2284 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2285 function descriptor offsets.
2286 (TOC_SAVE_OFFSET_64BIT): Ditto.
2287 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2288 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2289 (AIX_FUNC_DESC_SC_32BIT): Ditto.
2290 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
2291 (ptrload): New mode attribute for the appropriate load of a pointer.
2292 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
2293 (call_indirect_aix64): Ditto.
2294 (call_value_indirect_aix32): Ditto.
2295 (call_value_indirect_aix64): Ditto.
2296 (call_indirect_nonlocal_aix32_internal): Ditto.
2297 (call_indirect_nonlocal_aix32): Ditto.
2298 (call_indirect_nonlocal_aix64_internal): Ditto.
2299 (call_indirect_nonlocal_aix64): Ditto.
2300 (call): Rewrite AIX indirect function calls. Add support for
2301 eliminating the static chain, and for moving the save of the TOC
2302 to the function prologue.
2303 (call_value): Ditto.
2304 (call_indirect_aix<ptrsize>): Ditto.
2305 (call_indirect_aix<ptrsize>_internal): Ditto.
2306 (call_indirect_aix<ptrsize>_internal2): Ditto.
2307 (call_indirect_aix<ptrsize>_nor11): Ditto.
2308 (call_value_indirect_aix<ptrsize>): Ditto.
2309 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2310 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2311 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2312 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2313 (call_nonlocal_aix64): Ditto.
2314
2315 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2316 -mno-r11 documentation.
2317
49d6830d
JW
23182011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2319
2320 PR other/49658
2321 * doc/extend.texi (Compound Literals): Fix typo.
2322
c884924f
JG
23232011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2324
f9610d20 2325 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 2326
bf588455
BS
23272011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2328
2329 * configure.ac (plugin-version.h): Generate
2330 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2331 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2332 macros.
2333
2334 * configure: Regenerate.
2335
2336 * doc/plugins.texi (Building GCC plugins): Mention
2337 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2338
d0edd768
BS
23392011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2340
2341 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2342 * combine.c (make_extraction, gen_lowpart_or_truncate,
2343 apply_distributive_law, simplify_comparison,
2344 reg_truncated_to_mode, record_truncated_value): Use it.
2345 * cse.c (notreg_cost): Likewise.
2346 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2347 * expr.c (convert_move, convert_modes): Likewise.
2348 * optabs.c (expand_binop, expand_unop): Likewise.
2349 * postreload.c (move2add_last_label): Likewise.
2350 * regmove.c (optimize_reg_copy_3): Likewise.
2351 * rtlhooks.c (gen_lowpart_general): Likewise.
2352 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2353
e5cabdfb
JM
23542011-07-06 Joseph Myers <joseph@codesourcery.com>
2355
2356 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2357
2d0c270f
BS
23582011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2359
2360 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2361 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2362 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2363 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
2364 simplify_const_binary_operation, simplify_const_relational_operation):
2365 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
2366 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2367 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2368 simplify_shift_const_1, simplify_comparison): Likewise.
2369 * expr.c (convert_modes): Likewise.
2370 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 2371 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
2372 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2373
f9c08345
BS
2374 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2375
6d6c9525
RG
23762011-07-06 Richard Guenther <rguenther@suse.de>
2377
2378 PR tree-optimization/49645
2379 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2380 register variables.
2381 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2382 in type qualification here ...
2383 (copy_reference_ops_from_ref): ... not here.
2384 (vn_reference_lookup_3): ... or here.
2385 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2386 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2387
d1a6ec10
ILT
23882011-07-06 Ian Lance Taylor <iant@google.com>
2389
2390 * doc/install.texi (Configuration): It's
2391 --enable-gnu-indirect-function, not --enable-indirect-function.
2392
ff3e08af
BS
23932011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2394
2395 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
2396 shift_truncation_mask hook instead of performing modulo by width.
2397 Compare against mode precision, not bitsize.
ff3e08af 2398 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 2399 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 2400
a369b639
L
24012011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2402
2403 PR middle-end/47383
2404 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2405 address computation and convert to address_mode if needed.
2406
1a072294
RG
24072011-07-06 Richard Guenther <rguenther@suse.de>
2408
2409 * tree.c (build_common_tree_nodes_2): Merge with
2410 build_common_tree_nodes.
2411 * tree.h (build_common_tree_nodes): Adjust prototype.
2412 (build_common_tree_nodes_2): Remove.
2413 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2414 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2415
f2c3a8ce
JJ
24162011-07-05 Jakub Jelinek <jakub@redhat.com>
2417
2418 PR tree-optimization/49618
2419 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2420 t recurse on the decl.
2421 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2422 return true if expr isn't known to be defined in current
2423 TU or some other LTO partition.
2424
3aa439ed
MM
24252011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2426
2427 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2428 override CASE_VALUES_THRESHOLD.
2429
2430 * stmt.c (toplevel): Include params.h.
2431 (case_values_threshold): Use the --param case-values-threshold
2432 value if non-zero, otherwise use machine dependent value.
2433 (expand_case): Use case_values_threshold.
2434
2435 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2436
2437 * doc/invoke.texi (--param case-values-threshold): Document.
2438
49956667
RH
24392011-07-05 Richard Henderson <rth@redhat.com>
2440
2441 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2442 (dwarf2out_flush_queued_reg_saves): Make static.
2443 (dwarf2out_reg_save): Remove.
2444 (dwarf2out_return_save): Remove.
2445 (dwarf2out_return_reg): Remove.
2446 (dwarf2out_reg_save_reg): Remove.
2447 (dwarf2out_def_cfa): Merge into ...
2448 (dwarf2out_frame_init): ... here.
2449 * dwarf2out.h, tree.h: Remove declarations as necessary.
2450
9f2ff8e5
RH
24512011-07-05 Richard Henderson <rth@redhat.com>
2452
c2b40eba
RH
2453 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2454 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2455 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2456 the alloc insn.
2457
7d3c6cd8
RH
2458 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2459 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2460 (process_epilogue): Don't call dwarf2out_def_cfa.
2461
5f740973
RH
2462 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2463 indicate the return address save.
2464 (process_cfa_register): Likewise.
2465
a1880147
RH
2466 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2467 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2468
9f2ff8e5
RH
2469 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2470 for ar.pfs save at alloc insn.
2471
ddc6e7d6
RH
24722011-07-05 Richard Henderson <rth@redhat.com>
2473
2474 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2475 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2476 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2477 stack pointer save.
2478 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2479 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2480 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2481 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2482
a3515605
RH
24832011-07-05 Richard Henderson <rth@redhat.com>
2484
2485 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2486 VUNSPEC_* constants here instead of via define_constants.
2487 (VUNSPEC_PEM): New constant.
2488 (procedure_entry_mask): New insn.
2489 (prologue): New expander.
2490 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2491 (vax_expand_prologue): Rename from vax_output_function_prologue;
2492 emit rtl instead of text.
2493 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2494 (print_operand): Add 'x' prefix.
2495
a7adbbcb
L
24962011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2497
2498 PR middle-end/47715
2499 * calls.c (precompute_register_parameters): Promote the function
2500 argument before checking non-legitimate constant.
2501
cec11ec4
SP
25022011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2503
2504 PR tree-optimization/47654
2505 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2506 (lst_do_strip_mine_loop): Return an int.
2507 (lst_do_strip_mine): Same.
2508 (scop_do_strip_mine): Same.
2509 (scop_do_block): Loop blocking should strip-mine at least two loops.
2510 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2511 (scop_do_interchange): Same.
2512 * graphite-poly.h (scop_do_interchange): Update declaration.
2513 (scop_do_strip_mine): Same.
2514
9b0d314a
SP
25152011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2516
2517 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2518 (precision_for_interval): Removed.
2519 (gcc_type_for_interval): Use mpz_sizeinbase.
2520
81d6d080
SP
25212011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2522
2523 * graphite-ppl.h (value_max): Correct computation of max.
2524
369e3430
SP
25252011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2526
2527 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2528
fce5dddd
RG
25292011-07-05 Richard Guenther <rguenther@suse.de>
2530
2531 * c-decl.c (c_init_decl_processing): Defer building common
2532 tree nodes to c_common_nodes_and_builtins.
2533
12037899
RL
25342011-07-05 Razya Ladelsky <razya@il.ibm.com>
2535
2536 PR tree-optimization/49580
f9610d20 2537 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 2538 the loop's number of iterations.
f9610d20
UB
2539 * tree-parloops.c (transform_to_exit_first_loop): Add the
2540 handling of the loop's number of iterations before the call
12037899 2541 to gimple_duplicate_sese_tail.
28b21ebb 2542 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
2543 condition stmt to the preheader instead of iters_bb.
2544
509a31f8
L
25452011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2546
2547 PR rtl-optimization/47449
2548 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2549 register nor zero/sign extended hard register.
2550
39becbac
RG
25512011-07-05 Richard Guenther <rguenther@suse.de>
2552
2553 PR tree-optimization/49518
2554 PR tree-optimization/49628
2555 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2556 irrelevant and invariant data-references.
2557 (vect_analyze_data_ref_access): For invariant loads clear the
2558 group association.
2559
15923c25
JJ
25602011-07-04 Jakub Jelinek <jakub@redhat.com>
2561
af421d9c
JJ
2562 PR rtl-optimization/49619
2563 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2564 pass VOIDmode as op0_mode to recursive call, and return temp even
2565 when different from tor, just if it is not IOR of the original
2566 PLUS arguments.
2567
707f9919
JJ
2568 PR rtl-optimization/49472
2569 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2570 negating MULT, negate the second operand instead of first.
2571 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
2572 a NEG and the other is MULT, don't attempt to optimize by negation
2573 of the MULT operand if it only moves the NEG operation around.
707f9919 2574
15923c25
JJ
2575 PR debug/49602
2576 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2577 get_current_def return value if it can't be trusted to be
2578 the current value of the variable in the current bb.
2579
0d5e0c1b
UB
25802011-07-04 Uros Bizjak <ubizjak@gmail.com>
2581
2582 PR target/49600
2583 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2584 general register to memory for !TARGET_INTER_UNIT_MOVES.
2585
db297e20
GJL
25862011-07-04 Georg-Johann Lay <avr@gjlay.de>
2587
2588 PR target/44643
2589 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2590 instead of TREE_READONLY.
2591
f451d14d
GJL
25922011-07-04 Georg-Johann Lay <avr@gjlay.de>
2593
2594 * doc/extend.texi (AVR Built-in Functions): Update documentation
2595 of __builtin_avr_fmul*.
0d5e0c1b 2596 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
2597 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2598 * config/avr/avr.md (fmul): Rename to fmul_insn.
2599 (fmuls): Rename to fmuls_insn.
2600 (fmulsu): Rename to fmulsu_insn.
2601 (fmul,fmuls,fmulsu): New expander.
2602 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2603 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2604 * config/avr/libgcc.S (__fmul): New function.
2605 (__fmuls): New function.
2606 (__fmulsu,__fmulsu_exit): New function.
2607
30f1e6de
RG
26082011-07-04 Richard Guenther <rguenther@suse.de>
2609
2610 PR tree-optimization/49615
2611 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2612 basic-block index check.
2613
6dab9931
GJL
26142011-07-04 Georg-Johann Lay <avr@gjlay.de>
2615
2616 * longlong.h (count_leading_zeros, count_trailing_zeros,
2617 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2618 resp. 64.
2619
b5066d8b
IR
26202011-07-03 Ira Rosen <ira.rosen@linaro.org>
2621
2622 PR tree-optimization/49610
2623 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2624 a basic block.
2625
bc712852
EB
26262011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2627 Olivier Hainque <hainque@adacore.com>
2628 Nicolas Setton <setton@adacore.com>
2629
2630 * tree.h (TYPE_ARTIFICIAL): New flag.
2631 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2632 the DIE of the type if it is artificial.
2633 (gen_array_type_die): Likewise.
2634 (gen_enumeration_type_die): Likewise.
2635 (gen_struct_or_union_type_die): Likewise.
2636 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2637 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2638
8b1bdcc5
JJ
26392011-07-01 Jakub Jelinek <jakub@redhat.com>
2640
2641 * tree-object-size.c (pass_through_call): Handle
2642 BUILT_IN_ASSUME_ALIGNED.
2643
06e88d73
MJ
26442011-07-01 Martin Jambor <mjambor@suse.cz>
2645
2646 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2647
6bbec3e1
L
26482011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2649
2650 PR middle-end/48016
2651 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2652 for stack save area.
2653 * function.c (expand_function_start): Likewise.
2654
e8fdf1cd
RG
26552011-07-01 Richard Guenther <rguenther@suse.de>
2656
2657 PR middle-end/49596
2658 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2659 may have unknown refs.
2660
80d3dd38
KT
26612011-07-01 Kai Tietz <ktietz@redhat.com>
2662
2663 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2664
179fc656
RO
26652011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2666
2667 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2668 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2669 (Specific, mips-sgi-irix6): Likewise.
2670
14a393a3
RO
26712011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2672
2673 PR libmudflap/49549
2674 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2675
3aecd443
JJ
26762011-07-01 Jakub Jelinek <jakub@redhat.com>
2677
2678 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2679 [idx]= and [idx1 ... idx2]= before initializers if needed for
2680 array initializers.
2681
7474f719
CL
26822011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2683
2684 * config.gcc (score-*-elf): Remove score7.o.
2685 * config/score/t-score-elf: Likewise.
2686 * config/score/score.c: Merge score7 to score.c and
2687 remove forwarding functions.
2688 * config/score/score7.c: Deleted.
2689 * config/score/score7.h: Deleted.
2690
ab70d825
RG
26912011-07-01 Richard Guenther <rguenther@suse.de>
2692
2693 PR tree-optimization/49603
0d5e0c1b 2694 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 2695
1ac93f10
MJ
26962011-06-30 Martin Jambor <mjambor@suse.cz>
2697
2698 * tree-sra.c (struct access): Rename total_scalarization to
2699 grp_total_scalarization
2700 (completely_scalarize_var): New function.
2701 (sort_and_splice_var_accesses): Set total_scalarization in the
2702 representative access.
2703 (analyze_access_subtree): Propagate total scalarization accross the
2704 tree, no holes in totally scalarized trees, simplify coverage
2705 computation.
2706 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2707 of completely_scalarize_record.
2708
97f309c3
RH
27092011-06-30 Richard Henderson <rth@redhat.com>
2710
2711 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2712 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2713 * config/i386/i386.c: Don't include dwarf2out.h.
2714 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2715 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2716 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2717 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2718 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2719
ef284364
RH
27202011-06-30 Richard Henderson <rth@redhat.com>
2721
2722 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2723 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2724 * final.c (final_scan_insn): Look for it, and invoke
2725 dwarf2out_frame_debug before the insn if found.
2726
c8412f97
RH
27272011-06-30 Richard Henderson <rth@redhat.com>
2728
2729 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2730 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2731
e3f903d8
RH
27322011-06-30 Richard Henderson <rth@redhat.com>
2733
2734 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2735 Define a vector of this type.
2736 (regs_saved_in_regs): Use a VEC.
2737 (num_regs_saved_in_regs): Remove.
2738 (compare_reg_or_pc): New.
2739 (record_reg_saved_in_reg): Split out from...
2740 (dwarf2out_flush_queued_reg_saves): ... here.
2741 (clobbers_queued_reg_save): Update for VEC.
2742 (reg_saved_in): Likewise.
2743 (dwarf2out_frame_debug_init): Likewise.
2744 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2745 (dwarf2out_frame_debug_cfa_register): Likewise.
2746
e2c9010a
EB
27472011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2748
2749 PR tree-optimization/49572
2750 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2751 type of the RHS instead of that of the LHS for the expression type.
2752
dbb07bbc
EB
27532011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2754
2755 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2756 unconditionally.
2757
1565af08
RG
27582011-06-30 Richard Guenther <rguenther@suse.de>
2759
2760 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2761 * tree-ssa-structalias.c (create_variable_info_for): Do not
2762 add initial constraints for non-var-decls. Properly handle
2763 globals in other ltrans partitions.
2764 (intra_create_variable_infos): Manually create constraints for
2765 the fake no-alias parameter.
2766 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2767 and assert there are no clones.
2768
42373e0b
RG
27692011-06-30 Richard Guenther <rguenther@suse.de>
2770
2771 PR tree-optimization/46787
2772 * tree-data-ref.c (dr_address_invariant_p): Remove.
2773 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 2774 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
2775 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2776 invariant loads.
2777
7aa62ea1
MJ
27782011-06-30 Martin Jambor <mjambor@suse.cz>
2779
2780 PR tree-optimization/49094
2781 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2782 (build_accesses_from_assign): Use it.
2783
f60f32b3
JJ
27842011-06-30 Jakub Jelinek <jakub@redhat.com>
2785
d9048d16
JJ
2786 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2787 handling of BUILT_IN_ASSUME_ALIGNED.
2788
f60f32b3
JJ
2789 PR debug/49364
2790 * dwarf2out.c (output_abbrev_section): Don't return early
2791 if abbrev_die_table_in_use is 1.
2792 (dwarf2out_finish): Instead don't call output_abbrev_section
2793 nor emit abbrev_section_label in that case.
2794
7cce15d4
NC
27952011-06-30 Nick Clifton <nickc@redhat.com>
2796
2797 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2798 for the V850E.
2799
ce7e54ff
JJ
28002011-06-30 Jakub Jelinek <jakub@redhat.com>
2801
2802 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2803 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2804
83197f37
IR
28052011-06-30 Ira Rosen <ira.rosen@linaro.org>
2806
2807 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2808 both pattern and original statements if necessary.
2809 (vect_transform_loop): Likewise.
2810 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2811 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2812 Mark the pattern statement only if the original statement doesn't
2813 have its own uses.
2814 (process_use): Call vect_mark_relevant with additional parameter.
2815 (vect_mark_stmts_to_be_vectorized): Likewise.
2816 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2817 (vect_analyze_stmt): Handle both pattern and original statements
2818 if necessary.
2819 (vect_transform_stmt): Don't store vectorized pattern statement
2820 in the original statement.
2821 (vect_is_simple_use_1): Use related pattern statement only if the
2822 original statement is irrelevant.
2823 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2824
dbb07bbc 28252011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 2826
dbb07bbc
EB
2827 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2828 option.
2829 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2830 entry.
5c0d88e6
CF
2831 (TARGET_AVX128_OPTIMAL): New definition.
2832 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2833 X86_TUNE_AVX128_OPTIMAL entry.
2834 (ix86_option_override_internal): Enable the generation
2835 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2836 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2837 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2838
931050d0
EB
28392011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2840
2841 PR tree-optimization/49539
2842 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2843 names by means of stmt_references_abnormal_ssa_name.
2844 (associate_plusminus): Call can_propagate_from before propagating
2845 from definition statements.
2846 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2847
dfedbe40
RG
28482011-06-29 Richard Guenther <rguenther@suse.de>
2849
2850 * doc/invoke.texi: Document -scev dump modifier.
2851 * tree-pass.h (TDF_SCEV): New dump flag.
2852 * tree-dump.c (dump_option_value_in): Add scev.
2853 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2854 * tree-scalar-evolution.c: Likewise.
2855
3a86cfeb
NS
28562011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2857
2858 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2859 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
2860 (__gnu_unwind_pr_common): Reconstruct additional indirection
2861 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 2862
f3678bfb
UW
28632011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2864
2865 PR rtl-optimization/49114
2866 * reload.c (struct replacement): Remove SUBREG_LOC member.
2867 (push_reload): Do not set it.
2868 (push_replacement): Likewise.
2869 (subst_reload): Remove dead code.
2870 (copy_replacements): Remove assertion.
2871 (copy_replacements_1): Do not handle SUBREG_LOC.
2872 (move_replacements): Likewise.
2873 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2874 Detect subregs via recursive descent instead of via SUBREG_LOC.
2875
433ba0a5 28762011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2877
433ba0a5
GJL
2878 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2879 default_encode_section_info.
2880
73f6eabc
RS
28812011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2882
2883 PR tree-optimization/49545
2884 * builtins.c (get_object_alignment_1): Update function comment.
2885 Do not use DECL_ALIGN for functions, but test
2886 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2887 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2888 for functions here.
2889 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2890
a0f33d3a
JJ
28912011-06-29 Jakub Jelinek <jakub@redhat.com>
2892
2893 PR debug/49567
0d5e0c1b
UB
2894 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2895 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 2896
946c8b23 28972011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2898
946c8b23 2899 PR target/34734
0d5e0c1b 2900 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
2901 about uninitialized data attributed 'progmem' from here...
2902 (avr_encode_section_info): ...to this new function.
2903 (TARGET_ENCODE_SECTION_INFO): New define.
2904 (avr_section_type_flags): For data in ".progmem.data", remove
2905 section flag SECTION_WRITE.
2906
9a63dee4 29072011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2908
9a63dee4
GJL
2909 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2910 _xmulhisi3_exit.
2911 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2912 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2913 (__umulhisi3): Ditto.
2914 * config/avr/avr.md (mulhisi3): New insn expender.
2915 (umulhisi3): New insn expender.
2916 (*mulhisi3_call): New insn.
2917 (*umulhisi3_call): New insn.
2918
4374ce45
JM
29192011-06-28 Joseph Myers <joseph@codesourcery.com>
2920
2921 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2922
94759030
RH
29232011-06-28 Richard Henderson <rth@redhat.com>
2924
2925 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2926 all code and arguments that handled pushes. Update all callers.
2927
d018b46e
RH
29282011-06-28 Richard Henderson <rth@redhat.com>
2929
2930 * config/arm/arm.c (arm_output_function_prologue): Don't call
2931 thumb1_output_function_prologue.
2932 (arm_expand_prologue): Avoid dead store.
2933 (number_of_first_bit_set): Use ctz_hwi.
2934 (thumb1_emit_multi_reg_push): New.
2935 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2936 to emit the entire prologue as rtl.
2937 (thumb1_output_interwork): Split out from
2938 thumb1_output_function_prologue.
2939 (thumb1_output_function_prologue): Remove.
2940 (arm_attr_length_push_multi): Handle thumb1.
2941 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2942 (prologue_thumb1_interwork): New.
2943 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2944 * config/arm/predicates.md (push_mult_memory_operand): New.
2945
97269a23
EB
29462011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2947
2948 * config/sparc/sync.md (*stbar): Delete.
2949 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2950
4a9206ce
EB
29512011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2952
2953 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2954
6138f9bd
RO
29552011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2956
2957 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2958 (TARGET_64BIT_DEFAULT): Define.
2959 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2960 of tm_file.
2961 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2962
a7d0d30f
JM
29632011-06-28 Joseph Myers <joseph@codesourcery.com>
2964
2965 * common.opt (in_lto_p): New Variable entry.
2966 * flags.h (in_lto_p): Move to common.opt.
2967 * gcc.c: Include params.h.
2968 (set_option_handlers): Also use common_handle_option and
2969 target_handle_option.
0d5e0c1b 2970 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
2971 * opts.c (debug_type_names): Move from toplev.c.
2972 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
2973 (common_handle_option): Return early in the driver for some options.
2974 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2975 opts pointer.
a7d0d30f
JM
2976 * toplev.c (in_lto_p): Move to common.opt.
2977 (debug_type_names): Move to opts.c.
2978 * Makefile.in (OBJS): Remove opts.o.
2979 (OBJS-libcommon-target): Add opts.o.
2980 (gcc.o): Update dependencies.
2981
420863a9
KT
29822011-06-28 Kai Tietz <ktietz@redhat.com>
2983
0d5e0c1b 2984 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 2985
0498a2be
RR
29862011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2987
2988 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2989 with '=' constraint modifier.
2990 (*divdf3_vfp): Likewise.
2991 ("*mulsf3_vfp"): Likewise.
2992 ("*muldf3_vfp"): Likewise.
2993 ("*mulsf3negsf_vfp"): Likewise.
2994 ("*muldf3negdf_vfp"): Likewise.
2995
4a68b724
NC
29962011-06-28 Nick Clifton <nickc@redhat.com>
2997
2998 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2999 relaxation when performing an incremental link.
3000
72a32729
KT
30012011-06-28 Kai Tietz <ktietz@redhat.com>
3002
3003 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
3004 within BB from last to first.
3005
88a00ef7
JM
30062011-06-28 Joseph Myers <joseph@codesourcery.com>
3007
3008 * genattr-common.c: New. Based on genattr.c.
3009 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
3010 (MOSTLYCLEANFILES): Add insn-attr-common.h.
3011 (opts.o): Update dependencies.
3012 (.PRECIOUS): Add insn-attr-common.h.
3013 (simple_rtl_generated_h): Add insn-attr-common.h.
3014 (build/genattr-common.o): New.
3015 (genprogrtl): Add attr-common.
3016 * genattr.c (main): Include insn-attr-common.h. Don't generate
3017 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 3018 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 3019
880962ac
GJL
30202011-06-28 Georg-Johann Lay <avr@gjlay.de>
3021
4a68b724 3022 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 3023 avr-*-* and avr-*-rtems* targets.
4a68b724 3024
880962ac
GJL
3025 * config/avr/elf.h: New file.
3026 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
3027 (TARGET_ASM_SELECT_SECTION): Define.
3028 (INIT_SECTION_ASM_OP): Undefine.
3029 (FINI_SECTION_ASM_OP): Undefine.
3030 (READONLY_DATA_SECTION_ASM_OP): Undefine.
3031 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
3032 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
3033 * config/avr/avr.h:
3034 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
3035 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
3036 (MAX_OFILE_ALIGNMENT): Move to elf.h.
3037 (STRING_LIMIT): Move to elf.h.
3038 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
3039 (ASM_DECLARE_OBJECT_NAME): Remove.
3040 (ESCAPES): Remove.
3041 (ASM_OUTPUT_SKIP): Remove.
3042 (DWARF2_DEBUGGING_INFO): Remove.
3043 (OBJECT_FORMAT_ELF): Remove.
3044 (USER_LABEL_PREFIX): Remove.
3045 (ASM_OUTPUT_EXTERNAL): Remove.
3046 (ASM_OUTPUT_ASCII): Remove.
3047 (TYPE_ASM_OP): Remove.
3048 (SIZE_ASM_OP): Remove.
3049 (WEAK_ASM_OP): Remove.
3050 (STRING_ASM_OP): Remove.
3051 (SET_ASM_OP): Remove.
3052 (ASM_WEAKEN_LABEL): Remove.
3053 (TYPE_OPERAND_FMT): Remove.
3054 (ASM_DECLARE_FUNCTION_SIZE): Remove.
3055 (ASM_FINISH_DECLARE_OBJECT): Remove.
3056 (NO_DOLLAR_IN_LABEL): Remove.
3057 (ASM_GENERATE_INTERNAL_LABEL): Remove.
3058 (ASM_OUTPUT_CASE_LABEL): Remove.
3059 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
3060 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
3061 (gas_output_ascii): Remove.
3062 (gas_output_limited_string): Remove.
3063 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3064 * config/avr/avr-protos.h
3065 (gas_output_ascii): Remove prototye.
3066 (gas_output_limited_string): Remove prototype.
3067
a1b5eb93
RE
30682011-06-27 Richard Earnshaw <rearnsha@arm.com>
3069
3070 PR target/48637
3071 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
3072 asm operands.
3073
310e71a8
JH
30742011-06-27 Jan Hubicka <jh@suse.cz>
3075
4a9206ce
EB
3076 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
3077 node instead of references in node.
310e71a8 3078
171da07a
RH
30792011-06-27 Richard Henderson <rth@redhat.com>
3080
3081 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
3082 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
3083 inside ifdef.
3084
dc2a58da
JJ
30852011-06-27 Jakub Jelinek <jakub@redhat.com>
3086
56300785
JJ
3087 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
3088
45d439ac
JJ
3089 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
3090 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
3091 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
3092 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
3093 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
3094 (evaluate_stmt, execute_fold_all_builtins): Handle
3095 BUILT_IN_ASSUME_ALIGNED.
3096 * tree-ssa-dce.c (propagate_necessity): Likewise.
3097 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3098 call_may_clobber_ref_p_1): Likewise.
3099 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
3100 (expand_builtin_assume_aligned): New function.
3101 * doc/extend.texi (__builtin_assume_aligned): Document.
3102
dc2a58da
JJ
3103 PR debug/49544
3104 * cselib.c (promote_debug_loc): If cselib_preserve_constants
3105 and l has two DEBUG_INSN owned locs instead of just one, adjust
3106 the second location's setting_insn too.
3107
0d72f628
RO
31082011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3109
3110 PR libmudflap/38738
3111 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
3112
bebd619e
NC
31132011-06-27 Nick Clifton <nickc@redhat.com>
3114
0d5e0c1b
UB
3115 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
3116 bit position of highest bit set into a count of the high zero bits.
bebd619e 3117
353b39fa
EB
31182011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3119
3120 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
3121
a7af037b
EB
31222011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3123
3124 PR lto/48492
3125 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
3126 to a NULL parent.
3127
1c86160a
RG
31282011-06-27 Richard Guenther <rguenther@suse.de>
3129
3130 PR tree-optimization/49394
3131 * passes.c (execute_one_pass): Restore current_pass after
3132 applying IPA transforms.
3133
5da49a9d
KT
31342011-06-27 Kai Tietz <ktietz@redhat.com>
3135
3136 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
3137 out of type precision after operation.
0d5e0c1b
UB
3138 (find_bswap): Take for limit value the integer auto-promotion
3139 into account.
5da49a9d 3140
9242213f
EB
31412011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3142
3143 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
3144 forward scan as well.
3145
db8b22ef
TG
31462011-06-27 Tristan Gingold <gingold@adacore.com>
3147
3148 PR target/44241
3149 * config/vms/vms-protos.h: New file.
3150 * config/vms/vms-crtlmap.map: New file.
3151 * config/vms/vms.c: New file.
3152 * config/vms/make-crtlmap.awk: New file.
3153 * config/vms/vms-crtl.h: File removed.
3154 * config/vms/vms-crtl-64.h: File removed.
3155 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
3156 * config/alpha/vms64.h: Do not include vms-crtl-64.h
3157 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
3158 clear some builtins on VMS. Calls vms_patch_builtins.
3159 (avms_asm_output_external): Remove.
3160 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
3161 (struct crtl_name_spec): Remove
3162 (DO_CTRL_NAMES): Remove.
3163 * config/ia64/vms.h (struct crtl_name_spec): Remove
3164 (DO_CTRL_NAMES): Remove.
3165 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
3166 clear some builtins on VMS. Calls vms_patch_builtins.
3167 (ia64_asm_output_external): Remove DO_CRTL_NAME.
3168 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 3169 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 3170
b213221d
TG
31712011-06-27 Tristan Gingold <gingold@adacore.com>
3172
3173 * config/alpha/alpha.c (alpha_end_function): Always generate .end
3174 directive on VMS.
3175
157b9300
EB
31762011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3177
3178 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
3179 the function receives nonlocal gotos.
3180
ccbf5bb4
RG
31812011-06-27 Richard Guenther <rguenther@suse.de>
3182
3183 PR tree-optimization/49536
3184 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3185 For non-scalar inner types use a scalar type according to
3186 the scalar inner mode.
3187
fe4cd14b
RG
31882011-06-27 Richard Guenther <rguenther@suse.de>
3189
3190 PR tree-optimization/49365
3191 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3192
afc3f22f
RS
31932011-06-27 Richard Guenther <rguenther@suse.de>
3194
3195 PR tree-optimization/49169
3196 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3197 the alignment of function decls.
3198
92590751 31992011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
3200
3201 PR target/47997
3202 * config/darwin.c (darwin_mergeable_string_section): Place string
3203 constants in '.cstring' rather than '.const' when CF/NSStrings are
3204 active.
3205
605354f3
EB
32062011-06-26 Eric Botcazou <ebotcazou@adacore.com>
3207
3208 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3209 (emit_save_register_window): Likewise.
3210 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3211 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
3212 Swap back %o7/%i7 in register naming.
3213
0e9197f5
IS
32142011-06-25 Iain Sandoe <iains@gcc.gnu.org>
3215
3216 PR driver/49371
3217 * config/darwin.c (darwin_override_options): Improve warning when
3218 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3219 is given with fpie/fPIE.
3220 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3221 * config/darwin9.h (PIE_SPEC): New.
53461199 3222
605354f3 32232011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
3224
3225 * timevar.c (timevar_print): Increase width for display of timevar
3226 name.
3227
f796c438
JJ
32282011-06-24 Jakub Jelinek <jakub@redhat.com>
3229
3230 PR c++/46400
3231 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3232 instead of TYPE_CHAIN for chain_next for types.
3233
a7289eaf
RH
32342011-06-24 Richard Henderson <rth@redhat.com>
3235
3236 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3237 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3238 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3239 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3240 (sparc_flat_expand_prologue): Emit individual instructions
3241 instead of one of the above.
3242
c4b9a87e
ER
32432011-06-24 Easwaran Raman <eraman@google.com>
3244
3245 PR rtl-optimization/49429
3246 PR target/49454
3247 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
3248 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3249 used to copy y into x.
3250 * calls.c (initialize_argument_information): Mark
3251 an argument addressable if it is passed by invisible reference.
3252 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
3253 if it is passed by reference.
3254
5ac6c59e
L
32552011-06-24 H.J. Lu <hongjiu.lu@intel.com>
3256
3257 PR rtl-optimization/49504
3258 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
3259 subtraction of a pointer in Pmode if pointers extend unsigned.
3260 (num_sign_bit_copies1): Likewise.
5ac6c59e 3261
b807e627
MJ
32622011-06-24 Martin Jambor <mjambor@suse.cz>
3263
3264 PR tree-optimizations/49516
3265 * tree-sra.c (sra_modify_assign): Choose the safe path for
3266 aggregate copies if we also did scalar replacements.
3267
9a1ea4b9
RR
32682011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3269
3270 PR target/49335
3271 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 3272 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 3273
949cfd0a
AK
32742011-06-24 Andi Kleen <ak@linux.intel.com>
3275
3276 * tree-sra.c (type_internals_preclude_sra_p): Add msg
3277 parameter. Split up ifs and report reason in *msg.
3278 (reject): Add.
3279 (find_var_candiate): Add msg variable.
3280 Split up ifs and report reason to reject.
3281 (find_param_candidates): Add msg variable.
3282 Pass msg to type_internals_preclude_sra_p.
3283
49e9c661 32842011-06-23 Jeff Law <law@redhat.com>
ad3577df 3285
b0c11403
JL
3286 PR middle-end/48770
3287 * reload.h (reload): Change to return a bool.
3288 * ira.c (ira): If requested by reload, run a fast DCE pass after
3289 reload has completed. Fix comment typo.
3290 * reload1.c (need_dce): New file scoped static.
3291 (reload): Set reload_completed here. Return whether or not a DCE
3292 pass after reload is needed.
3293 (delete_dead_insn): Set need_dce as needed.
3294
ad3577df
JL
3295 PR middle-end/49465
3296 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3297 to detect threading through joiner block. If there was already
3298 an edge to the new target, then do not change the PHI nodes.
3299
7cf64710
JJ
33002011-06-23 Jakub Jelinek <jakub@redhat.com>
3301
3302 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3303 get_pointer_alignment to see if base isn't sufficiently aligned.
3304
febb1302
JH
33052011-06-23 Jan Hubicka <jh@suse.cz>
3306
3307 PR tree-optimize/49373
3308 * tree-pass.h (all_late_ipa_passes): Declare.
3309 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
3310 (cgraph_optimize): Execute late passes; remove unreachable funcions
3311 after materialization.
3312 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3313 LTOing.
febb1302
JH
3314 * passes.c (all_late_ipa_passes): Declare.
3315 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
3316 (init_optimization_passes): Move ipa_pta to late passes; schedule
3317 fixup_cfg at beggining of all_passes.
febb1302
JH
3318 (apply_ipa_transforms): New function.
3319 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3320
4c77620d
JM
33212011-06-23 Joseph Myers <joseph@codesourcery.com>
3322
3323 * params.c: Include common/common-target.h. Don't include tm.h.
3324 (lang_independent_params): Move from toplev.c.
3325 (global_init_params): New.
3326 * params.h (global_init_params): Declare.
3327 * target.def (default_params): Move to common-target.def.
3328 * toplev.c (lang_independent_options): Remove.
3329 (lang_independent_params): Move to params.c.
3330 (general_init): Use global_init_params.
3331 * common/common-target.def (option_default_params): Move from
3332 target.def.
3333 * common/config/ia64/ia64-common.c: Include params.h.
3334 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3335 from ia64.c.
3336 * common/config/rs6000/rs6000-common.c: Include params.h.
3337 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3338 from rs6000.c.
3339 * common/config/sh/sh-common.c: Include params.h.
3340 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3341 from sh.c.
3342 * common/config/spu/spu-common.c: Include params.h.
3343 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3344 from spu.c.
3345 * config/ia64/ia64.c (ia64_option_default_params,
3346 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3347 * config/rs6000/rs6000.c (rs6000_option_default_params,
3348 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3349 * config/sh/sh.c (sh_option_default_params,
3350 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3351 * config/spu/spu.c (spu_option_default_params,
3352 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3353 * Makefile.in (OBJS): Remove params.o.
3354 (OBJS-libcommon-target): Add params.o.
3355 (params.o, $(common_out_object_file)): Update dependencies.
3356 * doc/tm.texi: Regenerate.
3357
6aad1e38
AM
33582011-06-23 Alan Modra <amodra@gmail.com>
3359
3360 PR bootstrap/49383
3361 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3362 invocation for 2011-06-09 changes.
3363
4fb489e7
JJ
33642011-06-22 Jakub Jelinek <jakub@redhat.com>
3365
fb79f500
JJ
3366 PR libgomp/49490
3367 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
3368 use n ceil/ nthreads size for the first n % nthreads threads in the
3369 team instead of all threads except for the last few ones which
fb79f500
JJ
3370 get less work or none at all.
3371
4fb489e7
JJ
3372 PR debug/49496
3373 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3374 uses.
3375
9c7c9f10
RG
33762011-06-22 Richard Guenther <rguenther@suse.de>
3377
3378 PR tree-optimization/49493
3379 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3380 Refer to the alias target of variables.
3381 (associate_varinfo_to_alias_1): Remove.
3382 (ipa_pta_execute): Do not associate aliases with anything.
3383 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3384 (cgraph_function_node): Likewise.
3385 (cgraph_function_or_thunk_node): Likewise.
3386 (varpool_variable_node): Likewise.
3387
7cf13d1f
NS
33882011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3389
0d5e0c1b 3390 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
3391 * config.gcc (arm*-*-linux*): Default to gnu tls.
3392 (arm*-*-*): Add --with-tls option.
3393 (all_defaults): Add 'tls'.
3394
78a8eb4e
RH
33952011-06-22 Richard Henderson <rth@redhat.com>
3396
3397 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3398 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3399 (dwarf2out_frame_debug_cfa_window_save): Rename from
3400 dwarf2out_window_save; make static.
3401 * tree.h (dwarf2out_window_save): Don't declare.
3402
3403 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3404 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3405 (emit_save_register_window): Rename from gen_save_register_window;
3406 emit the insn and add REG_CFA_* notes.
3407 (sparc_expand_prologue): Update to match.
3408 * config/sparc/sparc.md (save_register_window_1): Simplify from
3409 save_register_window<P:mode>.
3410
3b4c46d7
L
34112011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3412
3413 PR target/49497
3414 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3415 (*lea_general_2_zext): Likewise.
3416 (imul to lea peepholes): Use const359_operand and check
3417 TARGET_PARTIAL_REG_STALL.
3418
3419 * config/i386/predicates.md (const359_operand): New.
3420
4399cf59
MM
34212011-06-22 Michael Matz <matz@suse.de>
3422
3423 * cgraphunit.c (assemble_thunk): Use correct return type.
3424
31a0c825 34252011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 3426 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
3427
3428 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3429 (neon_output_shift_immediate): Ditto.
3430 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3431 prototype.
3432 (neon_output_shift_immediate): Ditto.
3433 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3434 (vashr<mode>3_imm): New insn pattern.
3435 (vlshr<mode>3_imm): Ditto.
3436 (vashr<mode>3): Modified constraint.
3437 (vlshr<mode>3): Ditto.
3438 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3439 predicate.
3440 (imm_for_neon_rshift_operand): Ditto.
3441 (imm_lshift_or_reg_neon): Ditto.
3442 (imm_rshift_or_reg_neon): Ditto.
3443
3444 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3445
ddb555ed
JJ
34462011-06-22 Jakub Jelinek <jakub@redhat.com>
3447
36dc1a88
JJ
3448 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3449 builtin calls even if likelyvalue is not CONSTANT.
3450 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3451 Return get_value_for_expr of first operand
3452 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3453 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3454 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3455 their non-checking counterparts.
3456 (call_may_clobber_ref_p_1): Likewise.
3457 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3458 like their non-checking counterparts.
3459 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3460 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3461 like their non-checking counterparts.
3462 (find_func_clobbers): Likewise.
3463 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3464 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3465
41cd4957
JJ
3466 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3467 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3468 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3469 of base type reference as argument.
3470 (resolve_addr_in_expr): Likewise. Fix keep computation.
3471 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
3472 (convert_descriptor_to_mode): ... this. For wider types convert to
3473 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
3474 (typed_binop): New function.
3475 (scompare_loc_descriptor, ucompare_loc_descriptor,
3476 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3477 default to unsigned type instead of signed.
3478
ddb555ed
JJ
3479 PR debug/47858
3480 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3481 (gimple_build_debug_source_bind_stat): New prototype.
3482 (gimple_build_debug_source_bind): Define.
3483 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3484 gimple_debug_source_bind_get_value,
3485 gimple_debug_source_bind_get_value_ptr,
3486 gimple_debug_source_bind_set_var,
3487 gimple_debug_source_bind_set_value): New inlines.
3488 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3489 * gimple-pretty-print.c (dump_gimple_debug): Handle
3490 GIMPLE_DEBUG_SOURCE_BIND.
3491 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3492 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3493 * tree-parloops.c (eliminate_local_variables,
3494 separate_decls_in_region): Likewise.
3495 (separate_decls_in_region_debug): Renamed from
3496 separate_decls_in_region_debug_bind. Handle
3497 gimple_debug_source_bind_p.
3498 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3499 prototypes.
3500 (DECL_HAS_DEBUG_ARGS_P): Define.
3501 (struct tree_function_decl): Add has_debug_args_flag field.
3502 * tree.c (debug_args_for_decl): New variable.
3503 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3504 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3505 (rewrite_debug_stmt_uses): New function.
3506 (rewrite_stmt): Use it to rewrite debug stmt uses.
3507 * rtl.def (DEBUG_PARAMETER_REF): New.
3508 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3509 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3510 DEBUG_PARAMETER_REF.
3511 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3512 * print-rtl.c (print_rtx): Likewise.
3513 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3514 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3515 debug stmts in the first bb.
3516 * tree-inline.c (remap_ssa_name): If remapping default def
3517 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3518 a source bind debug stmt.
3519 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3520 (maybe_move_debug_stmts_to_successors): Likewise.
3521 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3522 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3523 debug args vector from old_decl to new_decl.
3524 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3525 or modified parameters, add debug bind stmts before call
0d5e0c1b 3526 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
3527 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3528 on DECL_DEBUG_EXPRs from debug args vector.
3529 (expand_debug_source_expr): New function.
3530 (expand_debug_locations): Use it for source bind insns.
3531 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3532 * var-tracking.c (prepare_call_arguments): Add debug args
3533 to call_arguments if any.
3534 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
3535 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3536 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
3537 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3538 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3539 (gen_subprogram_die): Handle parameters identified by
3540 DEBUG_PARAMETER_REF.
3541
ccdc2164
NS
35422011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3543
3544 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3545 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
3546 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3547 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3548 (arm_tls_descseq_addr): New.
3549 (legitimize_tls_address): Add tlsdesc support.
3550 (arm_cannot_copy_insn_p): Check for tlscall.
3551 (arm_emit_tls_decoration): Likewise.
3552 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3553 (OPTION_DEFAULT_SPECS): Add with-tls support.
3554 * config/arm/arm.md (R1_REGNUM): Define.
3555 (tlscall): New.
3556 * config/arm/arm.opt (tls_type): New enumeration type and values.
3557 (mtls-dialect): New switch.
3558 * config/arm/arm-opts.h (enum tls_type): New.
3559
70e41a6a
NP
35602011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3561
3562 * attribs.c (register_attribute): Added assert to check that all
3563 attribute specs are registered with a name that is not empty and
3564 does not start with '_'.
3565 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3566 if the function has no attributes.
3567 * tree.c (is_attribute_with_length_p): Removed.
3568 (is_attribute_p): Removed.
0d5e0c1b 3569 (private_is_attribute_p): New.
70e41a6a
NP
3570 (private_lookup_attribute): New.
3571 (lookup_attribute): Removed.
3572 (lookup_ident_attribute): New.
3573 (remove_attribute): Require the first argument to be in the form
3574 'text', not '__text__'. Updated asserts.
3575 (merge_attributes): Use lookup_ident_attributes instead of
3576 lookup_attribute.
3577 (merge_dllimport_decl_attributes): Use remove_attribute.
3578 (attribute_list_contained): Likewise.
3579 (attribute_list_equal): Immediately return 1 if the arguments are
3580 identical pointers.
3581 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3582 'int'. Require the first argument to be in the form 'text', not
3583 '__text__'. Require the second argument to be an identifier.
3584 (lookup_attribute): Made inline. Require the first argument to be
3585 in the form 'text', not '__text__'.
3586 (private_is_attribute_p, private_lookup_attribute): New.
3587 Updated comments.
0d5e0c1b 3588
e0a8ecf2
AM
35892011-06-21 Andrew MacLeod <amacleod@redhat.com>
3590
3591 * builtins.c: Add sync_ or SYNC__ to builtin names.
3592 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3593 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3594
663827d3 35952011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 3596
663827d3
GJL
3597 PR target/33049
3598 * config/avr/avr.md (extzv): New expander.
3599 (*extzv): New insn.
3600 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3601 * config/avr/constraints.md (C04): New constraint.
3602 * doc/md.texi (Machine Constraints): Document it.
3603
146aef0b
JJ
36042011-06-21 Jakub Jelinek <jakub@redhat.com>
3605
3606 PR middle-end/49489
3607 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3608 unsignedp argument instead of 1 for clrsb_optab.
3609 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3610 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3611 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3612 * optabs.c (widen_leading): Call widen_operand and expand_unop
3613 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 3614 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 3615
c0503294
GJL
36162011-06-21 Georg-Johann Lay <avr@gjlay.de>
3617
3618 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3619
3801c801
BS
36202011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3621
0bddee8e
BS
3622 * gensupport.c (add_define_attr): New static function.
3623 (is_predicable): Allow multi-alternative lists for the "predicable"
3624 attribute.
3625 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3626 (process_one_cond_exec): Call alter_attrs_for_insn.
3627 * doc/md.texi (Defining Attributes): Mention some standard names.
3628 (Conditional Execution): Update documentation for "predicable".
3629
3801c801
BS
3630 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3631 __builtin_clrsbll): Document.
3632 * doc/rtl.texi (clrsb): New entry.
3633 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3634 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3635 (expand_unop): Handle clrsb_optab.
3636 (init_optabs): Initialize it.
3637 * optabs.h (enum optab_index): New entry OTI_clrsb.
3638 (clrsb_optab): Define.
3639 * genopinit.c (optabs): Add an entry for it.
3640 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3641 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3642 BUILT_IN_CLRSBLL): New.
3643 * rtl.def (CLRSB): New code.
3644 * dwarf2out.c (mem_loc_descriptor): Handle it.
3645 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3646 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3647 and popcount.
3648 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3649 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3650 (__ctzDI2): Move declaration.
3651 * config/bfin/bfin.md (clrsbsi2): New expander.
3652 (signbitssi2): Use the CLRSB rtx.
3653 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3654 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3655
55f01229
RG
36562011-06-21 Richard Guenther <rguenther@suse.de>
3657
637c11bd 3658 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 3659
5181cd6a
IR
36602011-06-21 Ira Rosen <ira.rosen@linaro.org>
3661
3662 PR tree-optimization/49478
3663 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3664 with constant operand.
3665
e4ee3d70
RG
36662011-06-21 Richard Guenther <rguenther@suse.de>
3667
3668 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 3669
7b7ec6c5
RG
36702011-06-21 Richard Guenther <rguenther@suse.de>
3671
3672 PR tree-optimization/49483
3673 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3674 VIEW_CONVERT_EXPR conversions.
3675
1b916ca6
JM
36762011-06-21 Joseph Myers <joseph@codesourcery.com>
3677
3678 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3679 * config/avr/avr-tables.opt: New file (generated).
3680 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3681 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3682 avr-mcus.def.
3683 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3684 (avr_option_override): Don't process -mmcu= argument here. Set
3685 avr_current_device using avr_mcu_index.
637c11bd 3686 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
3687 * config/avr/avr.opt (mmcu=): Use Enum.
3688 * config/avr/t-avr (avr-devices.o): Update dependencies.
3689 ($(srcdir)/config/avr/avr-tables.opt): New.
3690 * target.def (help): Remove.
3691 * doc/tm.texi.in (TARGET_HELP): Remove.
3692 * doc/tm.texi: Regenerate.
3693 * opts.c: Don't include target.h.
3694 (common_handle_option): Don't call targetm.help.
3695 * system.h (TARGET_HELP): Poison.
3696 * Makefile.in (opts.o): Update dependencies.
3697
7ecfa34f
RO
36982011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3699
3700 * config/usegld.h: New file.
3701 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3702 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 3703 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
3704 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3705 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
3706 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3707 Define.
7ecfa34f
RO
3708 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3709 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3710 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3711 (STACK_CHECK_STATIC_BUILTIN): Define.
3712 * config/sol2.opt (compat-bsd): Remove.
3713 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3714 * config/sol2-bi.h: New file.
3715 * config/sol2-gld.h: Remove.
3716 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3717 (NO_DBX_BNSYM_ENSYM): Remove.
3718 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3719 (STACK_CHECK_STATIC_BUILTIN): Remove.
3720 Test USE_GLD instead of TARGET_GNU_LD.
3721 * config/i386/sol2-10.h: Rename to ...
3722 * config/i386/sol2-bi.h .. this.
3723 (SUBTARGET_EXTRA_SPECS): Redefine.
3724 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3725 (MULTILIB_DEFAULTS): Remove.
3726 (DEFAULT_ARCH32_P): Define.
3727 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3728 (ARCH64_SUBDIR): Define.
3729 Test USE_GLD instead of TARGET_GNU_LD.
3730 (I386_EMULATION): Rename to ...
3731 (ARCH32_EMULATION): ... this.
3732 (X86_64_EMULATION): Rename to ...
3733 (ARCH64_EMULATION): ... this.
3734 (TARGET_LD_EMULATION): Remove.
3735 (LINK_ARCH_SPEC): Remove.
3736 * config/i386/sol2-gas.h: Remove.
3737 * config/i386/t-sol2-10: Rename to ...
3738 * config/i386/t-sol2-64: ... this.
3739 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3740 (AS_SPARC64_FLAG): Define.
3741 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3742 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3743 depending on TARGET_CPU_DEFAULT.
3744 (CPP_CPU_SPEC): Redefine.
3745 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3746 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3747 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3748 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3749 ASM_ARCH_DEFAULT_SPEC): Redefine.
3750 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3751 LINK_ARCH_DEFAULT_SPEC.
3752 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3753 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3754 (ARCH64_SUBDIR): Define.
3755 (LINK_ARCH64_SPEC): Redefine.
3756 (CC1_SPEC): Redefine.
3757 (OPTION_DEFAULT_SPECS): Redefine.
3758 (MULTILIB_DEFAULTS): Define.
3759 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3760 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3761 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3762 (NO_DBX_BNSYM_ENSYM): Remove.
3763 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3764 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3765 (TARGET_ASM_NAMED_SECTION): Likewise.
3766 (STACK_CHECK_STATIC_BUILTIN): Remove.
3767 * config/sparc/sol2-bi.h: Remove.
3768 * config/sparc/sol2-gas-bi.h: Remove.
3769 * config/sparc/sol2-gas.h: Remove.
3770 * config/sparc/sol2-gld-bi.h: Remove.
3771 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3772 common parts ...
3773 (*-*-solaris2*): ... here.
3774
4b583c43 37752011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 3776
4b583c43 3777 PR other/43564
637c11bd
UB
3778 * ipa-inline.c (can_inline_edge_p): Check
3779 !DECL_DISREGARD_INLINE_LIMITS.
3780
3bb556ad 37812011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 3782
3bb556ad
CB
3783 PR middle-end/49139
3784 * cgraphunit.c (process_function_and_variable_attributes): warn when
3785 always_inline functions that are not inline.
637c11bd
UB
3786 * ipa-inline-transform.c (inline_transform): Always call
3787 optimize_inline.
3788 * tree-inline.c (tree_inlinable_function_p): Use error instead
3789 of sorry.
3bb556ad 3790 (expand_call_inline): Likewise.
637c11bd 3791
f1ee724c
JJ
37922011-06-21 Jakub Jelinek <jakub@redhat.com>
3793
3794 * Makefile.in (dg_target_exps): Set.
3795 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3796 instead of 7, try to divide it more evenly.
3797
37982011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 3799
931050d0 3800 PR target/49089
97ef5ae6
CF
3801 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3802 (avx256_split_unaligned_store): New definition.
3803 (ix86_option_override_internal): Enable avx256 unaligned load/store
3804 splitting only when avx256_split_unaligned_load/store is set.
3805
998c75b6
BS
38062011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3807
3808 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3809 open chain in a smaller mode without failing the entire block.
3810
83a8cbda
L
38112011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3812
3813 PR middle-end/47725
3814 * combine.c (cant_combine_insn_p): Don't check zero/sign
3815 extended hard registers.
3816
3a769784
AM
38172011-06-21 Alan Modra <amodra@gmail.com>
3818
3819 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3820 CONST high part large-toc address.
3821 (rs6000_tls_referenced_p): Make static.
3822 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3823
d1e32c4a
L
38242011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3825
3826 PR middle-end/47725
3827 * combine.c (cant_combine_insn_p): Check zero/sign extended
3828 hard registers.
3829
c2954af9
RR
38302011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3831
3832 PR target/49385
3833 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3834 one of the operands is a register.
3835
a95015b6
KT
38362011-06-20 Kai Tietz <ktietz@redhat.com>
3837
637c11bd
UB
3838 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3839 operations in combination with binary and.
a95015b6 3840
49a30d00
BS
38412011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3842
3843 * regrename.c (do_replace): Don't update notes.
3844
3bae1d98
AM
38452011-06-20 Alan Modra <amodra@gmail.com>
3846
3847 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3848 of toc-relative address in CONST.
3849 (rs6000_delegitimize_address): Recognize changed address.
3850 (rs6000_legitimize_reload_address): Likewise.
3851 (rs6000_emit_move): Don't force these constants to memory.
3852 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3853 toc-relative address in CONST.
3854 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3855 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3856
10937b0c
L
38572011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3858
637c11bd 3859 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
3860 (count_trailing_zeros): Likewise.
3861
0c587260
L
38622011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3863
3864 PR other/49325
3865 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3866 .init_array can be used with .ctors on targets.
3867 * configure: Regenerated.
3868
c020c92b
EB
38692011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3870
3871 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3872 if the element type is volatile.
3873
cd35bcf7
JH
38742011-06-18 Jan Hubicka <jh@suse.cz>
3875
3876 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3877 extra name aliases.
3878 (lto_symtab_resolve_can_prevail_p): Likewise.
3879 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3880 * cgraphbuild.c (record_reference): Remove extra body alias code.
3881 (mark_load): Likewise.
3882 (mark_store): Likewise.
3883 * cgraph.h (varpool_node): Remove extra_name filed;
3884 add alias_of and extraname_alias.
3885 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3886 (varpool_alias_aliased_node): New inline function.
3887 (varpool_variable_node): New function.
3888 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3889 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3890 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3891 (input_varpool_node): Likewise.
3892 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3893 (varpool_externally_visible_p): Remove extra body alias code.
3894 (function_and_variable_visibility): Likewise.
3895 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3896 (ipa_pta_execute): Use it.
3897 * varpool.c (varpool_remove_node): Remove extra name alias code.
3898 (varpool_mark_needed_node): Likewise.
3899 (varpool_analyze_pending_decls): Analyze aliases.
3900 (assemble_aliases): New functoin.
3901 (varpool_assemble_decl): Use it.
3902 (varpool_create_variable_alias): New function.
3903 (varpool_extra_name_alias): Rewrite.
3904 (varpool_for_node_and_aliases): New function.
3905
c96b4102
JJ
39062011-06-18 Jakub Jelinek <jakub@redhat.com>
3907
3908 PR target/49411
3909 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3910 last_arg_constant and last argument doesn't match its predicate,
3911 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3912 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3913 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3914 spelling of error message.
3915 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3916 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3917 const_0_to_255_operand instead of const_int_operand.
3918
3919 Revert:
3920 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3921
3922 * config/i386/sse.md (blendbits): Remove mode attribute.
3923 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3924 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3925 Check integer value of operand 3 in insn constraint.
3926
9a2091cd
HPN
39272011-06-17 Hans-Peter Nilsson <hp@axis.com>
3928
3929 PR rtl-optimization/48542
3930 * reload.c (find_equiv_reg): Stop looking when finding a
3931 setjmp-type call.
3932 * reload1.c (reload_as_needed): Invalidate all reload
3933 registers when crossing a setjmp-type call.
3934
361b51c0
JL
39352011-06-16 Jeff Law <law@redhat.com>
3936
3937 * tree-ssa-threadupdate.c (struct redirection_data): New field
3938 intermediate_edge.
3939 (THREAD_TARGET2): Define.
637c11bd 3940 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
3941 (lookup_redirection_data): Drop useless argument. Extract the
3942 outgoing_edge and intermediate edge from E. Callers updated.
3943 (copy_phi_args, update_destination_phis): New functions.
3944 (fix_duplicate_block_edges): Likewise.
3945 (create_edge_and_update_destination_phis): Duplicate all the edges
3946 hung off e->aux. Use copy_phi_args.
3947 (create_duplicates): Use fix_duplicate_block_edges.
3948 (fixup_template_block): Likewise.
3949 (redirect_edges): If necessary, redirect the joiner block's incoming
3950 edge to the duplicate of the joiner block.
3951 (thread_block): Don't muck up loops when threading through a joiner
3952 block.
637c11bd 3953 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
3954 (mark_threaded_blocks, register_jump_thread): Likewise.
3955 * tree-flow.h (register_jump_thread): Add new argument. Callers
3956 updated.
3957 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3958 (thread_across_edge): Handle threading through a joiner block.
637c11bd 3959
ee460e75
MJ
39602011-06-16 Martin Jambor <mjambor@suse.cz>
3961
3962 PR tree-optimization/49343
3963 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3964 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3965
a285ba2e
IS
39662011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3967
3968 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3969 inside RTX_CODE ifdef.
3970
0703f020
TV
39712011-06-16 Tom de Vries <tom@codesourcery.com>
3972
3973 PR target/45098
637c11bd
UB
3974 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3975 Disallow NULL pointer for pointer arithmetic.
0703f020 3976
900c07da
RR
39772011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3978
3979 PR target/49398
3980 Revert.
3981 2011-06-10 Wei Guozhi <carrot@google.com>
3982
3983 PR target/45335
3984 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3985 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3986 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3987 related peephole2.
3988 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3989 related peephole2.
3990 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3991 (arm_legitimate_ldrd_p): New prototype.
3992 (arm_output_ldrd): New prototype.
3993 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3994 (arm_legitimate_ldrd_p): New function.
3995 (arm_output_ldrd): New function.
3996
c020c92b 39972011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
3998
3999 PR middle-end/46500
4000 * doc/tm.texi.in: Update Copyright date.
4001 * doc/tm.texi: Regenerate.
4002 * targhooks.c (default_setup_incoming_varargs): Replace
4003 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4004 (default_pretend_outgoing_varargs_named): Likewise.
4005 (hook_pass_by_reference_must_pass_in_stack): Likewise.
4006 (hook_callee_copies_named): Likewise.
4007 (default_function_arg_advance): Likewise.
4008 (default_function_arg): Likewise.
4009 (default_function_incoming_arg): Likewise.
4010 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4011 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4012 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4013 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4014 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4015 * targhooks.h (default_setup_incoming_varargs): Likewise.
4016 (default_pretend_outgoing_varargs_named): Likewise.
4017 (hook_pass_by_reference_must_pass_in_stack): Likewise.
4018 (hook_callee_copies_named): Likewise.
4019 (default_function_arg_advance): Likewise.
4020 (default_function_arg): Likewise.
4021 (default_function_incoming_arg): Likewise.
4022 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
4023 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
4024 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
4025 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4026 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
4027 * target.def (pass_by_reference): Likewise.
4028 (setup_incoming_varargs, strict_argument_naming): Likewise.
4029 (pretend_outgoing_varargs_named, callee_copies): Likewise.
4030 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
4031 (function_incoming_arg): Likewise.
4032 * target.h: Don't include "tm.h" .
4033 (cumulative_args_t): New typedef.
4034 [GCC_TM_H] (get_cumulative_args): New static inline function.
4035 [GCC_TM_H] (pack_cumulative_args): Likewise.
4036 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
4037 argument type with cumulative_args_t.
4038 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
4039 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
4040 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4041 (frv_arg_partial_bytes, frv_function_arg): Likewise.
4042 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
4043 (frv_function_arg_1): Likewise.
4044 * config/s390/s390.c (s390_pass_by_reference): Likewise.
4045 (s390_function_arg_advance, s390_function_arg): Likewise.
4046 * config/m32c/m32c.c (m32c_function_arg): Likewise.
4047 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
4048 (m32c_strict_argument_naming): Likewise.
4049 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
4050 (spu_function_arg_advance): Likewise.
4051 (spu_setup_incoming_varargs): Likewise. Make static.
4052 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
4053 Remove prototype.
4054 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
4055 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4056 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
4057 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
4058 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
4059 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
4060 (mep_pass_by_reference, mep_function_arg): Likewise.
4061 (mep_function_arg_advance): Likewise.
4062 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4063 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
4064 (m32r_function_arg, m32r_function_arg_advance): Likewise.
4065 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
4066 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4067 (ix86_function_arg, ix86_pass_by_reference): Likewise.
4068 (ix86_setup_incoming_varargs): Likewise.
4069 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4070 (sh_strict_argument_naming): Likewise.
4071 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
4072 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
4073 (sh_function_arg_advance, sh_function_arg): Likewise.
4074 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4075 (pdp11_function_arg_advance): Likewise.
4076 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4077 Likewise.
4078 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
4079 * config/avr/avr.c (avr_function_arg): Likewise.
4080 (avr_function_arg_advance): Likewise.
4081 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4082 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
4083 (xtensa_function_arg_1): Likewise.
637c11bd
UB
4084 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
4085 Likewise.
d5cc9181
JR
4086 (xstormy16_function_arg): Likewise.
4087 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4088 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4089 (fr30_function_arg_advance): Likewise.
4090 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4091 (lm32_function_arg, lm32_function_arg_advance): Likewise.
4092 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4093 (moxie_function_arg, moxie_function_arg_advance): Likewise.
4094 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
4095 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4096 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
4097 (cris_function_arg, cris_function_incoming_arg): Likewise.
4098 (cris_function_arg_advance, cris_function_arg_1): Likewise.
4099 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4100 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
4101 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
4102 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4103 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
4104 (mn10300_arg_partial_bytes): Likewise.
4105 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4106 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
4107 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
4108 (ia64_function_arg_1): Likewise.
4109 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4110 (m68k_function_arg): Likewise.
4111 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
4112 (rs6000_function_arg, setup_incoming_varargs): Likewise.
4113 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
4114 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
4115 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
4116 (picochip_arg_advance): Likewise.
4117 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4118 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
4119 (mcore_function_arg_advance): Likewise.
4120 * config/score/score.c (score_pass_by_reference): Likewise.
4121 (score_function_arg_advance): Likewise.
4122 (score_arg_partial_bytes): Likewise. Make static.
4123 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
4124 * config/arm/arm.c (arm_arg_partial_bytes): Replace
4125 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4126 (arm_function_arg, arm_function_arg_advance): Likewise.
4127 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
4128 * config/pa/pa.c (pa_pass_by_reference): Likewise.
4129 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
4130 (pa_function_arg): Likewise.
4131 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
4132 (mips_function_arg, mips_function_arg_advance): Likewise.
4133 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
4134 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
4135 * config/vax/vax.c (vax_function_arg): Likewise.
4136 (vax_function_arg_advance): Likewise.
4137 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4138 (h8300_function_arg_advance): Likewise.
4139 * config/v850/v850.c (v850_pass_by_reference): Likewise.
4140 (v850_strict_argument_naming, v850_function_arg): Likewise.
4141 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
4142 (v850_setup_incoming_varargs): Likewise.
4143 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4144 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
4145 (mmix_function_arg, mmix_pass_by_reference): Likewise.
4146 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
4147 with const void *.
4148 * config/bfin/bfin.c (setup_incoming_varargs): Replace
4149 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4150 (bfin_function_arg_advance, bfin_function_arg): Likewise.
4151 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
4152 * calls.c (emit_call_1): Change type of args_so_far to
4153 cumulative_args_t. Changed all callers.
4154 (initialize_argument_information): Likewise.
4155 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
4156 * dse.c (get_call_args): Likewise.
4157 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4158 * function.c (pass_by_reference, reference_callee_copied): Likewise.
4159 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
4160 New member args_so_far_v. Changed all users.
4161 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
4162 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4163 * config/mips/mips.c (mips_output_args_xfer): Likewise.
4164 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4165 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
4166 * config/microblaze/microblaze.c (microblaze_expand_prologue):
4167 Likewise.
d5cc9181
JR
4168 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
4169 m32r_pass_by_reference.
4170
51312233
IR
41712011-06-16 Ira Rosen <ira.rosen@linaro.org>
4172
4173 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
4174 argument to be a VEC of statements.
637c11bd
UB
4175 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
4176 assert that pattern statements have to have their vector type set.
51312233
IR
4177 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
4178 Change the first argument to be a VEC of statements. Update
4179 documentation.
4180 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4181 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
4182 (vect_recog_widen_mult_pattern): Change the first argument to be a
4183 VEC of statements. Update documentation. Check that the constant is
4184 INTEGER_CST. Support multiplication by a constant that fits an
4185 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
4186 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4187 call. Handle additional pattern statements if necessary.
4188
fd4df33d
NC
41892011-06-16 Nick Clifton <nickc@redhat.com>
4190
4191 PR target/49427
4192 * config.gcc: Set cpu_type to v850 for any V850 architecture.
4193 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4194 md_file, extra_modes, out_file and extra_options are these are all
4195 deduced from cpu_type.
4196
fbd05da0
GJL
41972011-06-16 Georg-Johann Lay <avr@gjlay.de>
4198
4199 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4200 truncation mask to 63.
4201
0ad8bb3b
GJL
42022011-06-16 Georg-Johann Lay <avr@gjlay.de>
4203
4204 PR target/49313
4205 PR target/29524
4206 * longlong.h: Add AVR support:
4207 (count_leading_zeros): New macro.
4208 (count_trailing_zeros): New macro.
4209 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
4210 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4211 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4212 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4213 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
4214 (LIB2FUNCS_EXCLUDE): Add _clz.
4215 * config/avr/libgcc.S (XCALL): Move up in file.
4216 (XJMP): New C Macro.
4217 (DEFUN): New asm macro.
4218 (ENDF): New asm macro.
4219 (__ffssi2): New function.
4220 (__ffshi2): New function.
4221 (__loop_ffsqi2): New function.
4222 (__ctzsi2): New function.
4223 (__ctzhi2): New function.
4224 (__clzdi2): New function.
4225 (__clzsi2): New function.
4226 (__clzhi2): New function.
4227 (__paritydi2): New function.
4228 (__paritysi2): New function.
4229 (__parityhi2): New function.
59c1e10b 4230 (__parityqi2): New function.
0ad8bb3b
GJL
4231 (__popcounthi2): New function.
4232 (__popcountsi2): New function.
4233 (__popcountdi2): New function.
4234 (__popcountqi2): New function.
4235 (__bswapsi2): New function.
4236 (__bswapdi2): New function.
4237 (__ashldi3): New function.
4238 (__ashrdi3): New function.
4239 (__lshrdi3): New function.
4240 Fix suspicous lines.
4241
12430896
RG
42422011-06-16 Richard Guenther <rguenther@suse.de>
4243
4244 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4245 the same as x != 0.
637c11bd
UB
4246 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4247 to (bool) X & 1.
12430896
RG
4248 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4249 equality compares against zero for the lower bit.
4250
09302442
JJ
42512011-06-16 Jakub Jelinek <jakub@redhat.com>
4252
4253 PR tree-optimization/49419
4254 * tree-vrp.c (execute_vrp): Call init_range_assertions
4255 before estimate_numbers_of_iterations, call
4256 free_number_of_iterations_estimates before calling
4257 remove_range_assertions.
4258
81c41166
RE
42592011-06-16 Revital Eres <revital.eres@linaro.org>
4260
4261 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4262 (struct partial_schedule): Add rows_length field.
4263 (verify_partial_schedule): Check rows_length.
4264 (ps_insert_empty_row): Handle rows_length.
4265 (create_partial_schedule): Likewise.
4266 (free_partial_schedule): Likewise.
4267 (reset_partial_schedule): Likewise.
4268 (create_ps_insn): Remove rest_count argument.
4269 (remove_node_from_ps): Update rows_length.
4270 (add_node_to_ps): Update rows_length and call create_ps_insn
4271 without passing row_rest_count.
4272 (rotate_partial_schedule): Update rows_length.
4273
d24dc7b3
RE
42742011-06-16 Revital Eres <revital.eres@linaro.org>
4275
4276 * ddg.c (add_intra_loop_mem_dep): New function.
4277 (build_intra_loop_deps): Call it.
4278
361b51c0 42792011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
4280
4281 * df-problems.c (df_lr_local_compute): Manually CSE
4282 PIC_OFFSET_TABLE_REGNUM.
4283 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4284 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4285
85ce9375
JH
42862011-06-13 Jan Hubicka <jh@suse.cz>
4287
4288 * cgraphunit.c (handle_alias_pairs): New function.
4289 (cgraph_finalize_compilation_unit): Use it.
4290 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4291 as externally visible.
4292
a577c405
RG
42932011-06-15 Richard Guenther <rguenther@suse.de>
4294
4295 * expr.c (expand_expr_real_2): Reduce all integral types to
4296 bitfield precision.
4297 (expand_expr_real_1): Likewise.
4298
93536c97
MJ
42992011-06-15 Martin Jambor <mjambor@suse.cz>
4300
4301 PR tree-optimization/48613
4302 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4303 ipa_node_params_vector is NULL.
fd4df33d 4304
ba45cfc4
JJ
43052011-06-15 Jakub Jelinek <jakub@redhat.com>
4306
4307 PR debug/49382
4308 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
4309 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4310 location in the list, even if it is modified before first real insn.
ba45cfc4 4311 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 4312 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 4313
6fc5966f
AM
43142011-06-15 Alexander Monakov <amonakov@ispras.ru>
4315
4316 PR target/49349
4317 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4318 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4319 above a fence. Update comments.
4320 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4321 placed just above it. Do not allow NULL place_to_insert.
4322
9d5e7640
IR
43232011-06-15 Ira Rosen <ira.rosen@linaro.org>
4324
4325 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4326 (slpeel_tree_peel_loop_to_edge): Don't call
4327 remove_dead_stmts_from_loop.
4328 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4329 remove irrelevant pattern statements. For irrelevant statements
4330 check if it is the last statement of a detected pattern, use
4331 corresponding pattern statement instead.
4332 (destroy_loop_vec_info): No need to remove pattern statements,
4333 only free stmt_vec_info.
4334 (vect_transform_loop): For irrelevant statements check if it is
4335 the last statement of a detected pattern, use corresponding
4336 pattern statement instead.
4337 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4338 pattern statements. Set basic block for the new statement.
4339 (vect_pattern_recog): Update documentation.
4340 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4341 operands of pattern statements.
4342 (vectorizable_call): Fix printing. In case of a pattern statement
4343 use the lhs of the original statement when creating a dummy
4344 statement to replace the original call.
4345 (vect_analyze_stmt): For irrelevant statements check if it is
4346 the last statement of a detected pattern, use corresponding
4347 pattern statement instead.
4348 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4349 statements use gsi of the original statement.
4350
677f3fa8
JM
43512011-06-14 Joseph Myers <joseph@codesourcery.com>
4352
4353 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4354 common/common-target-def.h.
4355 * target.def (default_target_flags, handle_option,
4356 supports_split_stack, optimization_table, init_struct,
4357 except_unwind_info, unwind_tables_default, have_named_sections):
4358 Move to common/common-target.def.
4359 * target.h (enum opt_levels, struct default_options): Move to
4360 common/common-target.h.
4361 * targhooks.c (default_except_unwind_info,
4362 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4363 default_target_handle_option, empty_optimization_table): Move to
4364 common/common-targhooks.c.
4365 * targhooks.h (default_except_unwind_info,
4366 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4367 default_target_handle_option, empty_optimization_table): Move to
4368 common/common-targhooks.h.
4369 * common/common-target-def.h: Include common/common-targhooks.h.
4370 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4371 defined.
4372 * common/common-target.def (handle_option, option_init_struct,
4373 option_optimization_table, default_target_flags,
4374 except_unwind_info, supports_split_stack, unwind_tables_default,
4375 have_named_sections): Move from target.def.
4376 (HOOK_PREFIX): Undefine at end of file.
4377 * common/common-target.h: Include input.h.
4378 (enum opt_levels, struct default_options): Move from target.h.
4379 * common/common-targhooks.c, common/common-targhooks.h: New.
4380 * config.gcc (target_has_targetm_common): Default to yes.
4381 (moxie*): Set target_has_targetm_common=no.
4382 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4383 * doc/tm.texi: Regenerate.
4384 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4385 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4386 (GCC_OBJS): Remove vec.o.
4387 (OBJS): Remove hooks.o and vec.o.
4388 (OBJS-libcommon-target): Add vec.o, hooks.o and
4389 common/common-targhooks.o.
4390 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4391 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4392 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4393 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4394 Update dependencies.
4395 (common/common-targhooks.o): New.
637c11bd 4396 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
4397 * common/config/pa/pa-common.c: Include more headers. Take
4398 copyright dates from pa.c.
4399 (pa_option_optimization_table, pa_handle_option,
4400 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4401 TARGET_HANDLE_OPTION): Move from pa.c.
4402 * common/config/alpha/alpha-common.c,
4403 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4404 common/config/bfin/bfin-common.c,
4405 common/config/cris/cris-common.c,
4406 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4407 common/config/h8300/h8300-common.c,
4408 common/config/i386/i386-common.c,
4409 common/config/ia64/ia64-common.c,
4410 common/config/iq2000/iq2000-common.c,
4411 common/config/lm32/lm32-common.c,
4412 common/config/m32c/m32c-common.c,
4413 common/config/m32r/m32r-common.c,
4414 common/config/m68k/m68k-common.c,
4415 common/config/mcore/mcore-common.c,
4416 common/config/mep/mep-common.c,
4417 common/config/microblaze/microblaze-common.c,
4418 common/config/mips/mips-common.c,
4419 common/config/mmix/mmix-common.c,
4420 common/config/mn10300/mn10300-common.c,
4421 common/config/pdp11/pdp11-common.c,
4422 common/config/picochip/picochip-common.c,
4423 common/config/rs6000/rs6000-common.c,
4424 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4425 common/config/score/score-common.c, common/config/sh/sh-common.c,
4426 common/config/sparc/sparc-common.c,
4427 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4428 common/config/vax/vax-common.c,
4429 common/config/xstormy16/xstormy16-common.c,
4430 common/config/xtensa/xtensa-common.c: New.
4431 * config/alpha/alpha.c: Include common/common-target.h.
4432 (alpha_option_optimization_table, alpha_handle_option,
4433 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4434 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4435 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4436 * config/arm/arm.c (arm_option_optimization_table,
4437 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4438 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4439 arm-common.c.
4440 * config/avr/avr.c (avr_option_optimization_table,
4441 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4442 to avr-common.c.
4443 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4444 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4445 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4446 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4447 * config/cris/cris.c (cris_option_optimization_table,
4448 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4449 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4450 cris-common.c.
4451 * config/fr30/fr30.c (fr30_option_optimization_table,
4452 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4453 to fr30-common.c.
4454 * config/frv/frv.c (frv_option_optimization_table,
4455 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4456 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4457 * config/h8300/h8300.c (h8300_option_optimization_table,
4458 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4459 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4460 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4461 * config/i386/i386.c: Include common/common-target.h.
4462 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4463 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4464 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4465 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4466 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4467 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4468 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4469 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4470 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4471 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4472 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4473 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4474 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4475 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4476 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4477 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4478 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4479 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4480 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4481 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4482 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4483 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4484 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4485 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4486 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4487 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4488 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4489 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4490 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4491 ix86_option_optimization_table, ix86_option_init_struct,
4492 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4493 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4494 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4495 i386-common.c.
4496 * config/i386/t-i386 (i386.o): Update dependencies.
4497 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4498 * config/ia64/ia64.c (ia64_option_optimization_table,
4499 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4500 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4501 ia64_handle_option): Move to ia64-common.c.
4502 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4503 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4504 * config/lm32/lm32.c (lm32_option_optimization_table,
4505 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4506 to lm32-common.c.
4507 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4508 m32c-common.c.
4509 * config/m32r/m32r.c (m32r_option_optimization_table,
4510 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4511 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4512 m32r_handle_option): Move to m32r-common.c.
4513 (m32r_memory_move_cost): Remove comment referring to
4514 TARGET_HANDLE_OPTION.
4515 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4516 Move to m68k-common.c.
4517 * config/mcore/mcore.c (mcore_option_optimization_table,
4518 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4519 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4520 * config/mep/mep.c (mep_option_optimization_table,
4521 mep_handle_option, TARGET_HANDLE_OPTION,
4522 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4523 Move to mep-common.c.
4524 * config/microblaze/microblaze.c
4525 (microblaze_option_optimization_table,
4526 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4527 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4528 * config/mips/mips.c (mips_handle_option,
4529 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4530 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4531 mips-common.c.
4532 * config/mmix/mmix.c (mmix_option_optimization_table,
4533 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4534 Move to mmix-common.c.
4535 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4536 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4537 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4538 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4539 * config/pa/pa.c: Include common/common-target.h.
4540 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4541 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4542 pa_handle_option): Move to pa-common.c.
4543 (pa_option_override): Use targetm_common.except_unwind_info.
4544 (pa_asm_output_mi_thunk, pa_function_section): Use
4545 targetm_common.have_named_sections.
4546 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4547 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4548 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4549 pdp11_handle_option, pdp11_option_init_struct): Move to
4550 pdp11-common.c.
4551 * config/picochip/picochip.c (picochip_option_optimization_table,
4552 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4553 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4554 * config/rs6000/rs6000.c: Include common/common-target.h.
4555 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4556 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4557 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4558 rs6000_handle_option): Move to rs6000-common.c.
4559 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4560 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4561 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4562 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4563 * config/s390/s390.c (processor_flags_table,
4564 s390_option_optimization_table, s390_option_init_struct,
4565 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4566 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4567 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4568 * config/s390/s390.h (processor_flags_table): Declare.
4569 * config/score/score.c (score_option_optimization_table,
4570 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4571 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4572 score_handle_option): Move to score-common.c.
4573 * config/sh/sh.c (sh_option_optimization_table,
4574 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4575 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4576 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4577 * config/sparc/sparc.c: Include common/common-target.h.
4578 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4579 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4580 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4581 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4582 spu_option_init_struct): Move to spu-common.c.
4583 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4584 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4585 * config/v850/v850.c (small_memory_physical_max,
4586 v850_handle_memory_optionn v850_handle_option,
4587 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4588 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4589 v850-common.c.
637c11bd 4590 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
4591 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4592 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4593 Move to xtensa-common.c.
4594 * cfglayout.c: Include common/common-target.h.
4595 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4596 * cfgrtl.c: Include common/common-target.h.
4597 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4598 targetm_common.have_named_sections.
4599 * dbxout.c: Include common/common-target.h.
4600 (dbxout_function_end): Use targetm_common.have_named_sections.
4601 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4602 targetm_common.except_unwind_info.
4603 * dwarf2out.c: Include common/common-target.h.
4604 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4605 dwarf2out_begin_prologue, dwarf2out_frame_init,
4606 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4607 targetm_common.except_unwind_info.
4608 * except.c: Include common/common-target.h.
4609 (init_eh, finish_eh_generation,
4610 output_one_function_exception_table): Use
4611 targetm_common.except_unwind_info.
637c11bd 4612 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
4613 * explow.c: Include common/common-target.h.
4614 * expr.c: Include common/common-target.h.
637c11bd 4615 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
4616 * function.c: Include common/common-target.h.
4617 (expand_function_end): Use targetm_common.except_unwind_info.
4618 * haifa-sched.c: Include common/common-target.h.
637c11bd 4619 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
4620 * lto-opts.c: Include common/common-target.h instead of target.h.
4621 (lto_reissue_options): Use targetm_common.handle_option.
4622 * opts.c: Include common/common-target.h.
4623 (target_handle_option): Use targetm_common.handle_option.
4624 (init_options_struct): Update comment referring to
4625 targetm.target_option.optimization. Use
4626 targetm_common.default_target_flags,
4627 targetm_common.unwind_tables_default and
4628 targetm_common.option_init_struct.
4629 (default_options_optimization): Use
4630 targetm_common.option_optimization_table.
4631 (finish_options): Use targetm_common.except_unwind_info,
4632 targetm_common.unwind_tables_default,
4633 targetm_common.have_named_sections and
4634 targetm_common.supports_split_stack.
4635 * toplev.c: Include common/common-target.h.
4636 (process_options): Use targetm_common.have_named_sections.
4637 * tree-tailcall.c: Include common/common-target.h.
637c11bd 4638 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 4639 * tree.c: Include common/common-target.h.
637c11bd 4640 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
4641 * varasm.c: Include common/common-target.h.
4642 (resolve_unique_section, hot_function_section,
4643 default_function_section): Use targetm_common.have_named_sections.
4644
d26c7090
ER
46452011-06-14 Easwaran Raman <eraman@google.com>
4646
4647 PR rtl-optimization/44194
4648 * dse.c: Include tree-flow.h
4649 (insn_info): Add new field non_frame_wild_read.
4650 (group_info): Add new fields escaped_n and escaped_p.
4651 (kill_on_calls): New variable.
4652 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4653 (dse_step0): Initialize kill_on_calls.
4654 (can_escape): New function.
4655 (set_usage_bits): Add additional parameter; record information
4656 about escaped locations.
637c11bd 4657 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
4658 (dse_step2_nospill): Set kill_on_calls based on
4659 group->escaped_n and group->escaped_n.
4660 (add_wild_read): Refactor into...
4661 (reset_active_stores): ... New function, and
4662 (free_read_records): ... New function.
4663 (add_non_frame_wild_read): New function.
4664 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 4665 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
4666 (dse_step5_nospill): Call scan_reads_nospill for instructions
4667 marked as non_frame_wild_read.
637c11bd 4668 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 4669
c49a6962
JM
46702011-06-14 Joseph Myers <joseph@codesourcery.com>
4671
4672 * common/common-target-def.h, common/common-target.def,
4673 common/common-target.h, common/config/default-common.c,
4674 common/config/pa/pa-common.c: New files.
4675 * Makefile.in (common_out_file, common_out_object_file,
4676 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4677 (OBJS-libcommon-target): Include $(common_out_object_file).
4678 (prefix.o): Update dependencies.
4679 ($(common_out_object_file), common/common-target-hooks-def.h,
4680 s-common-target-hooks-def-h): New.
4681 (s-tm-texi): Also check timestamp on common-target.def.
4682 (build/genhooks.o): Update dependencies.
4683 * config.gcc (common_out_file, target_has_targetm_common): Define.
4684 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4685 TARGET_ALWAYS_STRIP_DOTDOT.
4686 * configure.ac (common_out_object_file): Define.
4687 (common_out_file, common_out_object_file): Substitute.
4688 (common): Create directory.
4689 * configure: Regenerate.
4690 * doc/tm.texi.in (targetm_common): Document.
4691 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4692 * doc/tm.texi: Regenerate.
4693 * genhooks.c (hook_array): Also include common/common-target.def.
4694 * prefix.c (tm.h): Don't include.
4695 (common/common-target.h): Include.
4696 (ALWAYS_STRIP_DOTDOT): Don't define.
4697 (update_path): Use targetm_common.always_strip_dotdot instead of
4698 ALWAYS_STRIP_DOTDOT.
4699 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4700
22c5fa5f
DL
47012011-06-14 David Li <davidxl@google.com>
4702
4703 * passes.c (execute_function_todo): Remove TODO_dump_func.
4704 (execute_one_pass): Remove TODO_dump_func.
4705 (execute_function_dump): New function.
4706 * tree-vrp.c: Remove TODO_dump_func.
4707 * regrename.c: Remove TODO_dump_func.
4708 * fwprop.c: Remove TODO_dump_func.
4709 * tree-into-ssa.c: Remove TODO_dump_func.
4710 * tree-complex.c: Remove TODO_dump_func.
4711 * tracer.c: Remove TODO_dump_func.
4712 * tree-loop-distribution.c: Remove TODO_dump_func.
4713 * postreload-gcse.c: Remove TODO_dump_func.
4714 * postreload.c: Remove TODO_dump_func.
4715 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4716 * tree-tailcall.c: Remove TODO_dump_func.
4717 * ipa-cp.c: Remove TODO_dump_func.
4718 * final.c: Remove TODO_dump_func.
4719 * tree-emutls.c: Remove TODO_dump_func.
4720 * omp-low.c: Remove TODO_dump_func.
4721 * tree-ssa-dse.c: Remove TODO_dump_func.
4722 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4723 * auto-inc-dec.c: Remove TODO_dump_func.
4724 * reorg.c: Remove TODO_dump_func.
4725 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4726 * tree-ssa-ccp.c: Remove TODO_dump_func.
4727 * compare-elim.c: Remove TODO_dump_func.
4728 * mode-switching.c: Remove TODO_dump_func.
4729 * modulo-sched.c: Remove TODO_dump_func.
4730 * tree-call-cdce.c: Remove TODO_dump_func.
4731 * cse.c: Remove TODO_dump_func.
4732 * web.c: Remove TODO_dump_func.
4733 * tree-stdarg.c: Remove TODO_dump_func.
4734 * lto-streamer-out.c: Remove TODO_dump_func.
4735 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4736 * tree-ssa-dom.c: Remove TODO_dump_func.
4737 * tree-nrv.c: Remove TODO_dump_func.
4738 * loop-init.c: Remove TODO_dump_func.
4739 * gimple-low.c: Remove TODO_dump_func.
4740 * ipa-inline.c: Remove TODO_dump_func.
4741 * tree-ssa-sink.c: Remove TODO_dump_func.
4742 * jump.c: Remove TODO_dump_func.
4743 * ifcvt.c: Remove TODO_dump_func.
4744 * tree-ssa-loop.c: Remove TODO_dump_func.
4745 * recog.c: Remove TODO_dump_func.
4746 * dse.c: Remove TODO_dump_func.
4747 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4748 * matrix-reorg.c: Remove TODO_dump_func.
4749 * tree-eh.c: Remove TODO_dump_func.
4750 * regmove.c: Remove TODO_dump_func.
4751 * function.c: Remove TODO_dump_func.
4752 * tree-vectorizer.c: Remove TODO_dump_func.
4753 * ipa-split.c: Remove TODO_dump_func.
4754 * gcse.c: Remove TODO_dump_func.
4755 * tree-if-conv.c: Remove TODO_dump_func.
4756 * init-regs.c: Remove TODO_dump_func.
4757 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4758 * implicit-zee.c: Remove TODO_dump_func.
4759 * lower-subreg.c: Remove TODO_dump_func.
4760 * bt-load.c: Remove TODO_dump_func.
4761 * tree-dfa.c: Remove TODO_dump_func.
4762 * except.c: Remove TODO_dump_func.
4763 * emit-rtl.c: Remove TODO_dump_func.
4764 * store-motion.c: Remove TODO_dump_func.
4765 * cfgexpand.c: Remove TODO_dump_func.
4766 * tree-cfgcleanup.c: Remove TODO_dump_func.
4767 * cfgcleanup.c: Remove TODO_dump_func.
4768 * tree-ssa-pre.c: Remove TODO_dump_func.
4769 * tree-sra.c: Remove TODO_dump_func.
4770 * tree-mudflap.c: Remove TODO_dump_func.
4771 * tree-ssa-copy.c: Remove TODO_dump_func.
4772 * cfglayout.c: Remove TODO_dump_func.
4773 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4774 * tree-ssa-dce.c: Remove TODO_dump_func.
4775 * ira.c: Remove TODO_dump_func.
4776 * tree-ssa.c: Remove TODO_dump_func.
4777 * integrate.c: Remove TODO_dump_func.
4778 * tree-optimize.c: Remove TODO_dump_func.
4779 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4780 * tree-object-size.c: Remove TODO_dump_func.
4781 * combine.c: Remove TODO_dump_func.
4782 * bb-reorder.c: Remove TODO_dump_func.
4783 * cprop.c: Remove TODO_dump_func.
4784 * var-tracking.c: Remove TODO_dump_func.
4785 * tree-profile.c: Remove TODO_dump_func.
4786 * tree-vect-generic.c: Remove TODO_dump_func.
4787 * reg-stack.c: Remove TODO_dump_func.
4788 * sched-rgn.c: Remove TODO_dump_func.
4789 * tree-ssa-structalias.c: Remove TODO_dump_func.
4790 * tree-switch-conversion.c: Remove TODO_dump_func.
4791 * tree-cfg.c: Remove TODO_dump_func.
4792 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4793 * combine-stack-adj.c: Remove TODO_dump_func.
4794 * dce.c: Remove TODO_dump_func.
4795 * tree-ssanames.c: Remove TODO_dump_func.
4796 * regcprop.c: Remove TODO_dump_func.
4797
fa465762
L
47982011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4799
4800 PR middle-end/47364
4801 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4802 and properly handle result not in Pmode.
4803
7d8d16c3
RM
48042011-06-14 Robert Millan <rmh@gnu.org>
4805
4806 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4807 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4808 `config/linux.h'.
4809
4810 * config/i386/kfreebsd-gnu64.h: New file.
4811 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4812 with `i386/kfreebsd-gnu64.h'.
4813
4814 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4815 (GNU_USER_LINK_EMULATION64): New macros.
4816 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4817 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4818 of hardcoding `elf_i386' and `elf_x86_64'.
4819
0ccef3d2
NC
48202011-06-14 Nick Clifton <nickc@redhat.com>
4821
4822 PR target/49403
4823 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4824
4825 PR target/49402
4826 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4827
8a76c4a0
JJ
48282011-06-14 Jakub Jelinek <jakub@redhat.com>
4829
1ace6185
JJ
4830 PR fortran/49103
4831 * tree.h (DECL_NONSHAREABLE): Define.
4832 (struct tree_decl_common): Change decl_common_unused to
4833 decl_nonshareable_flag.
4834 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4835 Ignore vars with DECL_NONSHAREABLE bit set.
4836 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4837 on stores to automatic aggregate vars.
4838
8a76c4a0
JJ
4839 PR rtl-optimization/49390
4840 Revert:
4841 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4842
4843 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4844 MEM_ALIAS_SET.
4845
b4a9343c
ZD
48462011-06-14 Zdenek Dvorak <ook@ucw.cz>
4847 Tom de Vries <tom@codesourcery.com>
4848
4849 PR target/45098
4850 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4851 Document changed semantics.
4852 (max_stmt_executions, max_stmt_executions_int): Declare.
4853 * tree-data-ref.c (estimated_loop_iterations)
4854 (estimated_loop_iterations_int): Move functions...
4855 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4856 (estimated_loop_iterations_int): here.
4857 (record_estimate): Change nb_iterations_upper_bound and
4858 nb_iterations_estimate semantics.
4859 (max_stmt_executions, max_stmt_executions_int): New function.
4860 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4861 (max_stmt_executions_tree): this.
4862 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4863 estimated_loop_iterations_tree.
4864 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4865 max_stmt_executions_int instead of estimated_loop_iterations_int.
4866 * predict.c (predict_loops): Idem.
4867 * tree-parloops.c (parallelize_loops): Idem.
4868 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4869 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4870 (init_omega_for_ddr_1): Idem.
4871 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4872 (loop_prefetch_arrays): Idem
4873 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4874 max_stmt_executions instead of estimated_loop_iterations.
4875 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4876 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4877 instead of nb_iterations_upper_bound.
4878
d2640c43
JH
48792011-06-13 Jan Hubicka <jh@suse.cz>
4880
4881 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4882
40873cdd
RH
48832011-06-14 Richard Henderson <rth@redhat.com>
4884
4885 PR debug/48459
4886 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4887 (based_loc_descr): Assert it's true.
4888 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4889 aborting immediately.
4890
73e8cb24
SL
48912011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4892 Mingfeng Wu <mingfeng@faraday-tech.com>
4893
4894 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4895
f835f0a7
JH
48962011-06-13 Jan Hubicka <jh@suse.cz>
4897
4898 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4899
ee6f1177
JH
49002011-06-13 Jan Hubicka <jh@suse.cz>
4901
4902 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4903 similarly to DECL_COMDAT.
4904 * cgraphunit.c (cgraph_analyze_function): Likewise.
4905 * ipa.c (function_and_variable_visibility): Likewise.
4906
618abf9a
JH
49072011-06-13 Jan Hubicka <jh@suse.cz>
4908
4909 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4910 BINFO_VIRTUALS when streaming for ltrans unit.
4911
a45fe02f
DE
49122011-06-13 David Edelsohn <dje.gcc@gmail.com>
4913
4914 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4915 (movdi_internal64): Same.
4916
49172011-06-13 Edmar Wienskoski <edmar@freescale.com>
4918
e641e495 4919 PR target/44618
7d8d16c3
RM
4920 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4921 a set of similar patterns, where the MATCH_OPERAND for the function
4922 argument is replaced with individual references to hardware registers.
a45fe02f
DE
4923 (save_fpregs_<mode>): Ditto
4924 (restore_gpregs_<mode>): Ditto
4925 (return_and_restore_gpregs_<mode>): Ditto
4926 (return_and_restore_fpregs_<mode>): Ditto
4927 (return_and_restore_fpregs_aix_<mode>): Ditto
4928
8775a18b
JH
49292011-06-13 Jan Hubicka <jh@suse.cz>
4930
4931 * ipa-utils.c (postorder_stack): New structure.
4932 (ipa_reverse_postorder): Handle aliases.
4933
49342011-06-13 Jan Hubicka <jh@suse.cz>
4935
4936 * ipa-inline.c (reset_edge_caches): Walk aliases.
4937 (update_caller_keys): Do not test inlinability of aliases.
4938 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4939 (do_estimate_growth): Fix typo.
4940
6c69a029
JH
49412011-06-13 Jan Hubicka <jh@suse.cz>
4942
4943 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4944 (can_remove_node_now_p): ... here; handle same comdat groups.
4945 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4946 (inline_call): Update use of can_remove_node_now_p.
4947
10c63ba4 49482011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 4949
10c63ba4 4950 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
4951 condition to disallow non-identical memory locations.
4952 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4953 preference to bit manipulation instructions.
495f8c14 4954
9aa3f5c5
JH
49552011-06-13 Jan Hubicka <jh@suse.cz>
4956
4957 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4958 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4959 (nonremovable_p): New function.
4960 (cgraph_can_remove_if_no_direct_calls_p): New function.
4961 (used_from_object_file_p): New functoin.
10c63ba4
EB
4962 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4963 references from aliases.
9aa3f5c5
JH
4964 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4965 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
4966 (want_inline_function_called_once_p): Use it; accept aliases called
4967 once, too.
9aa3f5c5
JH
4968 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4969
30cecf17
RR
49702011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4971
4972 PR target/48454
4973 * config/arm/neon.md (vec_pack_trunc): Set the lengths
4974 correctly for the case with Quad vectors.
4975
29f85237
JJ
49762011-06-13 Jakub Jelinek <jakub@redhat.com>
4977 Ira Rosen <ira.rosen@linaro.org>
4978
4979 PR tree-optimization/49352
4980 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4981 all, make sure loop_use_stmt after the loop is a def stmt of a used
4982 SSA_NAME that is the only one defined inside of the loop. Don't
4983 check for COND_EXPR and GIMPLE_BINARY_RHS.
4984 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4985 check_reduction is true.
4986
c3e3f090
JH
49872011-06-11 Jan Hubicka <jh@suse.cz>
4988
4989 PR middle-end/49373
4990 * ipa.c (cgraph_externally_visible_p): Check resolution info.
4991
516e0768
JH
49922011-06-11 Jan Hubicka <jh@suse.cz>
4993
4994 PR middle-end/48836
4995 * ipa-inline-transform.c: Include tree-pass.h
4996 (inline_transform): Set TODO_update_ssa_only_virtuals.
4997 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4998
903b0a8b
JH
49992011-06-11 Jan Hubicka <jh@suse.cz>
5000
5001 PR middle-end/49378
5002 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
5003 aliases and thunks.
5004
44542f8e
IR
50052011-06-12 Ira Rosen <ira.rosen@linaro.org>
5006
5007 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
5008 Take number of iterations to peel into account for equally frequent
5009 misalignment values.
5010
ea89702b
JH
50112011-06-11 Jan Hubicka <jh@suse.cz>
5012
637c11bd
UB
5013 * lto-streamer-out.c (produce_symtab): Stream out the newly
5014 represented aliases.
ea89702b 5015
380ed5ed
JH
50162011-06-11 Jan Hubicka <jh@suse.cz>
5017
637c11bd
UB
5018 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
5019 varying args.
380ed5ed
JH
5020 (ipa_update_after_lto_read): Likewise.
5021 (ipa_write_node_info): Do not sream call_with_var_arguments.
5022 (ipa_read_node_info): Likewise.
5023
00cfc363
JH
50242011-06-11 Jan Hubicka <jh@suse.cz>
5025
5026 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
5027
39e2db00
JH
50282011-06-11 Jan Hubicka <jh@suse.cz>
5029
5030 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
5031 (lto_symtab_resolve_can_prevail_p): Likewise.
5032 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
5033 * cgraph.c (same_body_aliases_done): New global var.
5034 (cgraph_same_body_alias_1): Rename to ...
5035 (cgraph_create_function_alias): ... this one; reorg to new
5036 representation.
5037 (cgraph_same_body_alias): Use cgraph_create_function_alias;
5038 record references when asked to.
5039 (cgraph_add_thunk): Fix formating.
5040 (cgraph_get_node): Kill same body alias code.
5041 (cgraph_node_for_asm): Likewise.
5042 (cgraph_remove_same_body_alias): Remove.
5043 (cgraph_remove_node): Kill same body alias code.
5044 (cgraph_mark_address_taken_node): Mark also the aliased function
5045 as having address taken.
5046 (dump_cgraph_node): Dump same body aliases.
5047 (cgraph_for_node_thunks_and_aliases): Update for new alias
5048 representation.
5049 (cgraph_for_node_and_aliases): Likewise.
5050 * cgraph.h (same_body): Kll pointer.
5051 (same_body_alias): Update comment.
5052 (same_body_aliases_done): Declare.
5053 (cgraph_remove_same_body_alias): Remove declaration.
5054 (cgraph_create_function_alias): Declare.
5055 (cgraph_process_same_body_aliases): Declare.
5056 (cgraph_function_with_gimple_body_p): Check for alias.
5057 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
5058 (cgraph_alias_aliased_node): New function.
5059 (cgraph_function_node): Update for new aliases.
5060 (cgraph_function_or_thunk_node): Likewise.
5061 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
5062 (inline_call): Remove dead aliases.
10c63ba4
EB
5063 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
5064 name hack for same body aliases.
39e2db00
JH
5065 (clone_of_p): Look through aliases.
5066 (verify_cgraph_node): Verify aliases.
5067 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
5068 (cgraph_process_same_body_aliases): New function.
5069 (process_function_and_variable_attributes): Disable weakref warning on
5070 alias.
5071 (cgraph_analyze_functions): Handle aliases.
5072 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
5073 (assemble_thunks): Rename to ...
5074 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
5075 (cgraph_expand_function): Remove alias output code.
5076 (cgraph_output_in_order): Skip aliases.
5077 (cgraph_preserve_function_body_p): Aliases don't need preserving.
5078 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
5079 (ipa_record_reference): Do not assert on alias references.
5080 (ipa_ref_has_aliases_p): New function.
5081 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
5082 (ipa_ref_has_aliases_p): Declare.
5083 * lto-cgraph.c (lto_output_node): Handle aliases.
5084 (input_node): Likewise.
5085 * lto-streamer-out.c (lto_output): Skip aliases.
5086 (produce_symtab): Kill same_body_alias code.
5087 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
5088 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
5089 * ipa-inline.c (update_caller_keys): Walk aliases.
5090 (inline_small_functions): Fix thinko in previous patch.
5091 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
5092 (function_and_variable_visibility): Do not walk same body aliases.
5093 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
5094 (ipa_pta_execute): Use it.
5095
9ee65b55
UB
50962011-06-11 Uros Bizjak <ubizjak@gmail.com>
5097
5098 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
5099 (*vec_dupv2df): Rename from vec_dupv2df.
5100 (vec_dupv2df): New expander.
5101
51022011-06-11 Uros Bizjak <ubizjak@gmail.com>
5103
5104 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
5105
51062011-06-11 Uros Bizjak <ubizjak@gmail.com>
5107
5108 * config/i386/i386.md: Use default value in "isa" attribute.
5109 * config/i386/sse.md: Ditto.
5110 * config/i386/mmx.md: Ditto.
5111
ba68a139
WG
51122011-06-10 Wei Guozhi <carrot@google.com>
5113
5114 PR target/45335
5115 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5116 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5117 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5118 related peephole2.
5119 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5120 related peephole2.
5121 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5122 (arm_legitimate_ldrd_p): New prototype.
5123 (arm_output_ldrd): New prototype.
5124 * config/arm/arm.c (arm_check_ldrd_operands): New function.
5125 (arm_legitimate_ldrd_p): New function.
5126 (arm_output_ldrd): New function.
5127
deced1e2
XDL
51282011-06-10 David Li <davidxl@google.com>
5129
5130 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5131 * passes.c (passr_eq): New function.
5132 (create_pass_tab): New function.
5133 (pass_traverse): New function.
5134 (dump_one_pass): New function.
5135 (dump_pass_list): New function.
5136 (dump_passes): New function.
5137
71fb4f92
JH
51382011-06-10 Jan Hubicka <jh@suse.cz>
5139
5140 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
5141 setting the nothrow flag.
5142 * ipa-reference.c (propagate): Skip aliases.
5143 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
5144 (propagate_nothrow): Skip aliases; do not update cgraph.
5145 (local_pure_const): Do not update cgraph.
5146 * tree-profile.c (tree_profiling): Do fixup_cfg.
5147
41817394
JH
51482011-06-10 Jan Hubicka <jh@suse.cz>
5149
5150 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
5151 (cgraph_local_node_p): ... here; handle aliases.
5152 (has_addr_references_p): Break out from ...;
5153 (cgraph_remove_unreachable_nodes) ... here.
5154
fb37c1de
JH
51552011-06-10 Jan Hubicka <jh@suse.cz>
5156
5157 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
5158 * common.opt (flag_inline_functions_called_once): Do not
5159 initialize to 1.
fb37c1de 5160
0818c24c
JH
51612011-06-10 Jan Hubicka <jh@suse.cz>
5162
5163 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
5164 (ipcp_initialize_node_lattices): Do not deal with aliases;
5165 Do not try to propagate through thunks.
0818c24c
JH
5166 (ipcp_change_tops_to_bottom): Do not deal with aliases.
5167
c8246dbe
JH
51682011-06-10 Jan Hubicka <jh@suse.cz>
5169
9ee65b55
UB
5170 * ipa-prop.c (ipa_write_node_info): Stream jump functions
5171 for indirect calls.
c8246dbe
JH
5172 (ipa_read_node_info): Likewise.
5173
d7e2a1c1
BS
51742011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5175
5176 PR lto/49302
5177 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5178 (build_and_insert_call): Likewise.
5179 (build_and_insert_ref): New.
5180 (gimple_expand_builtin_pow): Minor cleanup.
5181 (gimple_expand_builtin_cabs): New.
5182 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 5183
749f25d8
JH
51842011-06-10 Jan Hubicka <jh@suse.cz>
5185
5186 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5187 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5188 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5189 (ipcp_propagate_stage): Skip aliases when propagating.
5190 (ipcp_need_redirect_p): Skip aliases.
5191 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5192 collect_callers_of_node.
5193 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5194 for aliases.
5195 (ipa_compute_jump_functions): Look through aliases.
5196
8340fbd7
RO
51972011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5198
5199 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5200
9aaa7e47
HPN
52012011-06-10 Hans-Peter Nilsson <hp@axis.com>
5202
5203 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5204 Adjust comments.
5205 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5206
f1724940
JH
52072011-06-10 Jan Hubicka <jh@suse.cz>
5208
5209 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5210 Update call of gimple_get_virt_method_for_binfo.
5211 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5212 refuse_thunks parameter.
5213 (gimple_fold_call): Update.
5214 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5215
a6f834c5
JH
52162011-06-10 Jan Hubicka <jh@suse.cz>
5217
5218 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5219 (not_all_callers_have_enough_arguments_p): ... this one; turn into
5220 worker for cgraph_for_node_and_aliases.
5221 (convert_callers_for_node): Break out from ...
5222 (convert_callers): ... here.
5223 (modify_function): Use collect_callers_of_node.
5224 (ipa_early_sra): Use cgraph_for_node_and_aliases.
5225
7871eee3
RG
52262011-06-10 Richard Guenther <rguenther@suse.de>
5227
5228 PR tree-optimization/49361
5229 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5230 when not already in gimple form.
5231
dae957ae
RG
52322011-06-10 Richard Guenther <rguenther@suse.de>
5233
5234 PR bootstrap/49344
5235 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5236 FOR_EACH_PHI_OR_STMT_USE.
5237
a5b1779f
JH
52382011-06-10 Jan Hubicka <jh@suse.cz>
5239
5240 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5241 (clone_inlined_nodes): ... here.
5242 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5243 to real destination prior inlining.
5244 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5245 can_early_inline_edge_p, want_early_inline_function_p,
5246 want_early_inline_function_p, want_inline_small_function_p,
5247 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5248 edge_badness, update_all_callee_keys, lookup_recursive_calls,
5249 add_new_edges_to_heap, inline_small_functions, flatten_function,
5250 inline_always_inline_functions, early_inline_small_functions): Use
5251 cgraph_function_or_thunk_node.
5252 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5253 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5254 (do_estimate_edge_growth_1): Break out from ...
5255 (do_estimate_growth) ... here; walk aliases.
5256 (inline_generate_summary): Skip aliases.
5257
c1ae3ca5
RG
52582011-06-10 Richard Guenther <rguenther@suse.de>
5259
9ee65b55
UB
5260 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5261 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 5262
b504a918
PC
52632011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
5264
5265 * tree.h (error_operand_p): Add.
5266 * dbxout.c (dbxout_type_fields): Use the latter.
5267 * c-decl.c (add_stmt): Likewise.
5268 * gimplify.c (omp_add_variable, omp_notice_variable,
5269 gimplify_scan_omp_clauses): Likewise.
5270
3f5ea9dc 52712011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 5272
3f5ea9dc
GJL
5273 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5274 when a value is actually passed in regs.
5275
b11b0904 52762011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 5277 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
5278
5279 * doc/invoke.texi (SPARC options): Add -mflat.
5280 * config/sparc/sparc.opt: Likewise.
5281 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5282 (sparc_flat_expand_prologue): Declare.
5283 (sparc_flat_expand_epilogue): Likewise.
5284 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5285 (CPP_ENDIAN_SPEC): Replace with...
5286 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
5287 (CPP_SPEC): Adjust to above change.
5288 (EXTRA_SPECS): Likewise.
5289 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5290 (INCOMING_REGNO): Likewise.
5291 (OUTGOING_REGNO): Likewise.
5292 (LOCAL_REGNO): Likewise.
5293 (SETUP_FRAME_ADDRESSES): Likewise.
5294 (FIXED_REGISTERS): Set 0 for %fp.
5295 (CALL_USED_REGISTERS): Likewise.
5296 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5297 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5298 (RETURN_ADDR_REGNUM): Define.
5299 (RETURN_ADDR_RTX): Use it.
5300 (INCOMING_RETURN_ADDR_REGNUM): Define.
5301 (INCOMING_RETURN_ADDR_RTX): Use it.
5302 (DWARF_FRAME_RETURN_COLUMN): Likewise.
5303 (EH_RETURN_REGNUM): Define.
5304 (EH_RETURN_STACKADJ_RTX): Use it.
5305 (EH_RETURN_HANDLER_RTX): Delete.
5306 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5307 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5308 Delete.
5309 (struct machine_function): Add frame_size, apparent_frame_size,
5310 frame_base_reg, frame_base_offset, n_global_fp_regs and
5311 save_local_in_regs_p fields.
5312 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5313 sparc_frame_base_offset, sparc_n_global_fp_regs,
5314 sparc_save_local_in_regs_p): New macros.
5315 (sparc_option_override): Error out if -fcall-saved-REG is specified
5316 for Out registers.
5317 (eligible_for_restore_insn): Fix formatting.
5318 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5319 (eligible_for_sibcall_delay): Likewise.
5320 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5321 (sparc_legitimate_address_p): Adjust to above change.
5322 (save_global_or_fp_reg_p): New predicate.
5323 (return_addr_reg_needed_p): Likewise.
5324 (save_local_or_in_reg_p): Likewise.
5325 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5326 (SORR_SAVE, SORR_RESTORE): Delete.
5327 (sorr_pred_t): New typedef.
5328 (sorr_act_t): New enum.
5329 (save_or_restore_regs): Rename to...
5330 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5331 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5332 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5333 mechanism. Add CFI information for double-word saves in 32-bit mode.
5334 (emit_adjust_base_to_offset): New function extracted from...
5335 (emit_save_or_restore_regs): ...this. Rename the rest to...
5336 (emit_save_or_restore_regs_global_fp_regs): ...this.
5337 (emit_save_or_restore_regs_local_in_regs): New function.
5338 (gen_create_flat_frame_[123]): New functions.
5339 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5340 (sparc_flat_expand_prologue): New function.
5341 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5342 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5343 (sparc_flat_expand_epilogue): New function.
5344 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5345 (output_return): Likewise.
5346 (output_sibcall): Likewise.
5347 (sparc_output_mi_thunk): Likewise.
5348 (sparc_frame_pointer_required): Likewise.
5349 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5350 function optimization.
5351 * config/sparc/sparc.md (flat): New attribute.
5352 (prologue): Add TARGET_FLAT handling.
5353 (save_register_window): Disable if TARGET_FLAT.
5354 (create_flat_frame_[123]): New patterns.
5355 (epilogue): Add TARGET_FLAT handling.
5356 (sibcall_epilogue): Likewise.
5357 (eh_return): New expander.
5358 (eh_return_internal): New insn and splitter.
5359 (return_internal): Add TARGET_FLAT handling.
5360 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5361 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5362 (nonlocal_goto): Add TARGET_FLAT handling.
5363 * config/sparc/t-elf: Add -mflat multilib.
5364 * config/sparc/t-leon: Likewise.
5365
fede8efa
JH
53662011-06-10 Jan Hubicka <jh@suse.cz>
5367
5368 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5369 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5370 (self_recursive_p): Use cgraph_function_node.
5371 (propagate_pure_const): Likewise.
5372 (propagate_nothrow): Likewise.
5373 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5374 cgraph_function_node.
5375 (propagate_bits): Likewise.
5376 (propagate): Likewise.
5377
0127c76f
RR
53782011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5379 Richard Earnshaw <rearnsha@arm.com>
5380
9ee65b55 5381 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
5382 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5383 (*thumb2_movdi_vfp): Delete.
5384 (*arm_movdi_vfp_cortexa8): Delete.
5385 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5386 (*movdi_vfp_cortexa8): Likewise.
5387
f93fe5a0
RG
53882011-06-10 Richard Guenther <rguenther@suse.de>
5389
5390 * stor-layout.c (initialize_sizetypes): Give names to all
5391 sizetype kinds.
5392
f2164f87
IR
53932011-06-10 Ira Rosen <ira.rosen@linaro.org>
5394
5395 PR tree-optimization/49318
5396 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5397 irrelevant pattern statements.
5398
3f91c962
HPN
53992011-06-10 Hans-Peter Nilsson <hp@axis.com>
5400
3d223145
HPN
5401 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5402
3f91c962
HPN
5403 PR bootstrap/49354
5404 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5405 to last assignment.
5406
b125ad45
JH
54072011-06-09 Jan Hubicka <jh@suse.cz>
5408
5409 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5410 do not recompute reachable flag.
5411 (cgraph_finalize_function, cgraph_analyze_functions): Set
5412 redefined_extern_inline here.
5413
be330ed4
JH
54142011-06-09 Jan Hubicka <jh@suse.cz>
5415
5416 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5417 (cgraph_only_called_directly_p): ... this one; bring offline.
5418 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5419 varpool_used_from_object_file_p): Drop names from the declaratoin.
5420 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5421 collect_callers_of_node): New.
5422 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5423 (cgraph_edge_recursive_p): Use cgraph_function_node.
5424 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5425 (cgraph_node_cannot_be_local_p_1): Break out from ...
5426 (cgraph_node_can_be_local_p): ... here; walk aliases.
5427 (cgraph_for_node_thunks_and_aliases): New function.
5428 (cgraph_for_node_and_aliases): New function.
5429 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
5430 (cgraph_make_node_local) ... here; use
5431 cgraph_for_node_thunks_and_aliases.
be330ed4 5432 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
5433 (cgraph_set_nothrow_flag) ... here;
5434 use cgraph_for_node_thunks_and_aliases.
be330ed4 5435 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
5436 (cgraph_set_const_flag) ... here;
5437 use cgraph_for_node_thunks_and_aliases.
be330ed4 5438 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
5439 (cgraph_set_pure_flag) ... here;
5440 use cgraph_for_node_thunks_and_aliases.
be330ed4 5441 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
5442 (cgraph_propagate_frequency) ... here; use
5443 cgraph_for_node_thunks_and_aliases.
be330ed4 5444 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
5445 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5446 New functions.
be330ed4
JH
5447 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5448
2ea91d6b
HPN
54492011-06-10 Hans-Peter Nilsson <hp@axis.com>
5450
5451 PR rtl-optimization/49154
5452 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5453 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5454 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5455 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5456 * config/cris/cris.h (cris_register_move_cost): Remove
5457 !TARGET_V32 code. Tweak comments.
5458
9cf4fb5a
JH
54592011-06-09 Jan Hubicka <jh@suse.cz>
5460
5461 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5462 address taken.
5463
6049a4c8
HPN
54642011-06-10 Hans-Peter Nilsson <hp@axis.com>
5465
c577822e 5466 PR rtl-optimization/49154
9ee65b55
UB
5467 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5468 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 5469
54e1e4f7 5470 PR rtl-optimization/49154
6049a4c8
HPN
5471 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5472 register classes.
5473 * doc/tm.texi: Regenerate.
5474
3be68b64
KK
54752011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5476
5477 PR target/49307
5478 * config/sh/sh.md (UNSPEC_CHKADD): New.
5479 (chk_guard_add): New define_insn_and_split.
5480 (symGOT_load): Use chk_guard_add instead of blockage.
5481
bf806a90
KT
54822011-06-09 Kai Tietz <ktietz@redhat.com>
5483
5484 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5485
d5a9738b
EB
54862011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5487
5488 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5489
527e82c2
WG
54902011-06-09 Wei Guozhi <carrot@google.com>
5491
5492 PR target/46975
5493 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5494 (peephole2 for conditional move): Generate 16 bit instructions.
5495
b8bc3a43
UB
54962011-06-09 Uros Bizjak <ubizjak@gmail.com>
5497
5498 * config/i386/i386.md (*movdi_internal_rex64): Merge
5499 alternatives 6 and 8.
5500
4745da6e
DL
55012011-06-09 David Li <davidxl@google.com>
5502
5503 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5504 * passes.c (passr_eq): New function.
5505 (create_pass_tab): New function.
5506 (pass_traverse): New function.
5507 (dump_one_pass): New function.
5508 (dump_pass_list): New function.
5509 (dump_passes): New function.
5510
bdf67bcb
DL
55112011-06-09 David Li <davidxl@google.com>
5512
5513 * tree-complex.c (tree_lower_complex): Gate cleanup.
5514 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5515 (execute_optimize_stdarg): Ditto.
5516 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5517 (execute_cleanup_eh_1): Ditto.
5518 (execute_cleanup_eh): Ditto.
5519 * gcse.c (gate_rtl_pre): Ditto.
5520 (execute_rtl_pre): Ditto.
5521 * except.c (finish_eh_generation): Ditto.
5522 (convert_to_eh_region_ranges): Ditto.
5523 * cprop.c (one_cprop_pass): Ditto.
5524
547fdef8
BS
55252011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5526
5527 PR target/48673
5528 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5529 in all basic blocks.
5530
10e48e39
RO
55312011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5532
5533 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5534 (HAVE_ENABLE_EXECUTE_STACK): Define.
5535 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5536 (HAVE_ENABLE_EXECUTE_STACK): Define.
5537 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5538 (HAVE_ENABLE_EXECUTE_STACK): Define.
5539 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5540 (ENABLE_EXECUTE_STACK): Remove.
5541 (HAVE_ENABLE_EXECUTE_STACK): Define.
5542 [IN_LIBGCC2]: Don't include <windows.h>.
5543 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5544 (HAVE_ENABLE_EXECUTE_STACK): Define.
5545 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5546 (HAVE_ENABLE_EXECUTE_STACK): Define.
5547 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5548 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5549 (HAVE_ENABLE_EXECUTE_STACK): Define.
5550 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5551 (HAVE_ENABLE_EXECUTE_STACK): Define.
5552 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5553 (HAVE_ENABLE_EXECUTE_STACK): Define.
5554 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5555 (HAVE_ENABLE_EXECUTE_STACK): Define.
5556 * config/alpha/alpha.c (alpha_trampoline_init): Test
5557 HAVE_ENABLE_EXECUTE_STACK.
5558 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5559 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5560 (sparc64_initialize_trampoline): Likewise.
5561 * libgcc2.c [L_enable_execute_stack]: Remove.
5562 * system.h (ENABLE_EXECUTE_STACK): Poison.
5563 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5564 * doc/tm.texi: Regenerate.
5565 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5566
8ced31fe
JJ
55672011-06-09 Jakub Jelinek <jakub@redhat.com>
5568
5569 PR middle-end/49308
5570 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5571 variable. After resetting and rescanning insn continue with previous
5572 statement.
5573
ee610fcd
RO
55742011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5575
5576 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5577 (gcc_cv_ld_hidden): Likewise.
5578 * configure: Regenerate.
5579 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5580 (ix86_stack_protect_fail): Mark unused.
5581 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5582 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5583 [TARGET_MACHO]: Don't define.
5584 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5585 (TARGET_STACK_PROTECT_FAIL): Likewise.
5586 (rs6000_stack_protect_fail): Mark unused.
5587 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 5588 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 5589
8f2e22ff
AK
55902011-06-08 Andi Kleen <ak@linux.intel.com>
5591
5592 * varasm.c (get_section): Print location of other conflict
5593 for section conflicts.
5594
815cecbe
AK
55952011-06-08 Andi Kleen <ak@linux.intel.com>
5596
5597 * config/i386/driver-i386.c (host_detect_local_cpu):
5598 Add model 0x2d Intel CPU.
5599
1460ec5c
AK
56002011-06-08 Andi Kleen <ak@linux.intel.com>
5601
5602 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
5603 (globalize_reg): Add decl parameter. Compute location. Pass location
5604 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
5605 * rtl.h (globalize_reg): Update prototype.
5606 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5607
df17530a
MX
56082011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5609
5610 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5611
409fed48
KK
56122011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5613
5614 PR target/49305
5615 * config/sh/predicates.md (general_movsrc_operand): Check
5616 mode for memory with indexed address for QI and HImode.
5617 (general_movdst_operand): Likewise.
5618
87c16a45
NP
56192011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5620
b8bc3a43 5621 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 5622
49931fcb
AO
56232011-06-08 Alexandre Oliva <aoliva@redhat.com>
5624
5625 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5626 (num_ssa_operands): Likewise.
5627 (op_iter_init_phiuse): Forward-declare.
5628 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5629
29494d1f
NC
56302011-06-08 Nick Clifton <nickc@redhat.com>
5631
5632 * doc/invoke.texi (ARM Options): Update description of
5633 -mthumb-interwork.
5634
4ffae7ff
L
56352011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5636
5637 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5638 unknown Intel family 0x6 CPUs.
5639
d9c77712
MJ
56402011-06-08 Martin Jambor <mjambor@suse.cz>
5641
5642 * tree-sra.c (mark_rw_status): Removed.
5643 (analyze_access_subtree): New parameter parent instead of
5644 mark_read and mark_write, propagate from that.
5645
b1def36c
JB
56462011-06-08 Julian Brown <julian@codesourcery.com>
5647
5648 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5649 for double-precision helper functions in hard-float mode if only
5650 single-precision arithmetic is supported in hardware.
5651
6c8e9fc9
AM
56522011-06-08 Alexander Monakov <amonakov@ispras.ru>
5653
5654 PR rtl-optimization/49303
5655 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5656 code_motion_path_driver returned 0 or 1.
5657 (sel_region_finish): Clear h_d_i_d.
5658
c2bbcb0d
KK
56592011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5660
5661 * config/sh/sh.c (prepare_move_operands): Set pic register
5662 appropriately for global and local dynamic tls models even
5663 if flag_pic is unset.
5664
6976ae51
JM
56652011-06-07 Jason Merrill <jason@redhat.com>
5666
5667 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5668
bb5b1f5e
XDL
56692011-06-07 Xinliang David Li <davidxl@google.com>
5670 * passes.c (enable_disable_pass): Handle assembler name.
5671 (is_pass_explicitly_enabled_or_disabled): Ditto.
5672
91ffe356
RO
56732011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5674
5675 PR tree-optimization/48497
5676 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5677
06bc3ec7
BS
56782011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5679
5680 PR tree-optimization/46728
5681 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5682 to use gimple_val_nonnegative_real_p.
5683 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5684 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 5685
c074d740
L
56862011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5687
5688 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5689
8973b112
SG
56902011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5691
5692 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5693 constant vectors.
5694
67b88453
RG
56952011-06-07 Richard Guenther <rguenther@suse.de>
5696
5697 * stor-layout.c (initialize_sizetypes): Initialize all
5698 sizetypes based on target definitions.
5699 (set_sizetype): Remove.
5700 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5701 * tree.h (set_sizetype): Remove.
5702
1dcad079
NC
57032011-06-07 Nick Clifton <nickc@redhat.com>
5704
5705 * config.gcc: Unify V850 architecture options and add support for
5706 newer V850 architectures.
5707 * config/v850/t-v850e: Delete.
5708
009db074
RG
57092011-06-07 Richard Guenther <rguenther@suse.de>
5710
5711 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5712 Call set_sizetype from here.
5713
f373314f
AS
57142011-06-07 Andrew Stubbs <ams@codesourcery.com>
5715
5716 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5717 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5718
c536876e
AS
57192011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5720 Andrew Stubbs <ams@codesourcery.com>
5721
5722 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5723 multiplies.
5724 * doc/md.texi (Canonicalization of Instructions): Document widening
5725 multiply canonicalization.
5726
308dc890
JJ
57272011-06-07 Jakub Jelinek <jakub@redhat.com>
5728
5729 PR gcov-profile/49299
b8bc3a43 5730 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 5731
383d9c83
IR
57322011-06-07 Ira Rosen <ira.rosen@linaro.org>
5733
5734 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5735 a pointer.
5736 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5737 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5738 vect_recog_pow_pattern): Likewise.
5739 (vect_pattern_recog_1): Remove declaration.
5740 (widened_name_p): Remove declaration. Add new argument to specify
5741 whether to check that both types are either signed or unsigned.
5742 (vect_recog_widen_mult_pattern): Update documentation. Handle
5743 unsigned patterns and multiplication by constants.
5744 (vect_pattern_recog_1): Update vect_recog_func references. Use
5745 statement information from the statement returned from pattern
5746 detection functions.
5747 (vect_pattern_recog): Update vect_recog_func reference.
5748 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5749 multiplication by a constant use the type of the other operand.
5750
4de4b0f2
RS
57512011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5752
5753 PR rtl-optimization/49145
5754 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5755
a9d24544
JJ
57562011-06-06 Jakub Jelinek <jakub@redhat.com>
5757
99a5e049
JJ
5758 PR debug/49262
5759 * dwarf2out.c (native_encode_initializer): Decrement count in each
5760 iteration.
5761
04902d4c
JJ
5762 PR debug/49294
5763 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5764 non-MODE_INT modes.
5765
a9d24544
JJ
5766 PR c++/49264
5767 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5768 if stmt folded into nothing.
b8bc3a43
UB
5769 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5770 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
5771 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5772 to be NULL. Don't compute count and frequency if new_call is NULL.
5773
47c79d56
DN
57742011-06-04 Diego Novillo <dnovillo@google.com>
5775
5776 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5777 (cgraph.o): Likewise.
5778 (cgraphunit.o): Likewise.
5779 * cgraphunit.c: Include lto-streamer.h
5780 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5781 if LTO is enabled.
5782 * lto-streamer-in.c (unpack_value_fields): Call
5783 streamer_hooks.unpack_value_fields if set.
5784 (lto_materialize_tree): For unhandled nodes, first try to
5785 call lto_streamer_hooks.alloc_tree, if it exists.
5786 (lto_input_ts_decl_common_tree_pointers): Move reading of
5787 DECL_INITIAL to lto_streamer_read_tree.
5788 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5789 (lto_streamer_read_tree): New.
5790 (lto_reader_init): Rename from lto_init_reader.
5791 Move initialization code to lto/lto.c.
5792 * lto-streamer-out.c (pack_value_fields): Call
5793 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
5794 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5795 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 5796 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
5797 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5798 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5799 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5800 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
5801 (lto_streamer_write_tree): New.
5802 (lto_output): Call lto_streamer_init directly.
5803 (lto_writer_init): Remove.
5804 * lto-streamer.c (streamer_hooks): New.
5805 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5806 instead of lto_preload_common_nodes.
5807 (lto_is_streamable): Move from lto-streamer.h
5808 (lto_streamer_hooks_init): New.
5809 (streamer_hooks): New.
5810 (streamer_hooks_init): New.
5811 * lto-streamer.h (struct output_block): Forward declare.
5812 (struct lto_input_block): Likewise.
5813 (struct data_in): Likewise.
5814 (struct bitpack_d): Likewise.
5815 (struct streamer_hooks): Declare.
5816 (streamer_hooks): Declare.
5817 (lto_streamer_hooks_init): Declare.
5818 (lto_streamer_write_tree): Declare.
5819 (lto_streamer_read_tree): Declare.
5820 (streamer_hooks_init): Declare.
5821 (lto_is_streamable): Move to lto-streamer.c
5822
22afe143
AK
58232011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5824
5825 * longlong.h (smul_ppmm): The resulting register pair contains the
5826 higher order word first.
5827
3906ea1b
BS
58282011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5829
5830 PR tree-optimization/46728
5831 * builtins.c (powi_table): Remove.
5832 (powi_lookup_cost): Remove.
5833 (powi_cost): Remove.
5834 (expand_powi_1): Remove.
5835 (expand_powi): Remove.
5836 (expand_builtin_pow_root): Remove.
5837 (expand_builtin_pow): Remove.
5838 (expand_builtin_powi): Eliminate handling of constant exponent.
5839 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 5840
3598cabd
AO
58412011-06-06 Alexandre Oliva <aoliva@redhat.com>
5842
5843 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5844
a7a110bb
AO
58452011-06-06 Alexandre Oliva <aoliva@redhat.com>
5846
5847 * dce.c (reset_unmarked_insns_debug_uses): New.
5848 (delete_unmarked_insns): Skip debug insns.
5849 (prescan_insns_for_dce): Likewise.
5850 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5851 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5852 active reg can be found.
5853 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5854 (convert_regs_1): Use it.
5855
6d8402ac
AO
58562011-06-06 Alexandre Oliva <aoliva@redhat.com>
5857
5858 * tree-pretty-print.c (dump_function_header): Add flags.
5859 Don't dump decl_uid with nouid.
5860 * tree-pretty-print.h (dump_function_header): Adjust.
5861 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5862 * passes.c (pass_init_dump_file): Pass dump_flags on.
5863 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5864
f75e1f1e
AO
58652011-06-06 Alexandre Oliva <aoliva@redhat.com>
5866
5867 PR bootstrap/49270
5868 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5869
275311c4
MP
58702011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5871
5872 PR tree-optimization/49243
5873 * calls.c (setjmp_call_p): Also check if fndecl has the
5874 returns_twice attribute.
5875
aa4203e7
RO
58762011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5877
5878 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5879 -ffast-math etc.
5880
48f9d59a
RH
58812011-06-06 Richard Henderson <rth@redhat.com>
5882 Georg-Johann Lay <avr@gjlay.de>
5883
5884 PR target/42210
5885 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5886 New predicates.
5887 * config/avr/avr.md ("insv"): New insn expander.
5888 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5889 "*insv.not.io", "*insv.reg"): New insns.
5890
11494830
HPN
58912011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5892
5893 PR target/49285
b8bc3a43
UB
5894 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5895 to nonimmediate_operand from memory_operand for the operand that is to
5896 be forced to memory by the expander. Lose the constraints.
11494830 5897
679e70df
EB
58982011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5899
5900 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5901 EH return when delayed branches are disabled.
5902
4d3d7f15
UB
59032011-06-05 Uros Bizjak <ubizjak@gmail.com>
5904
5905 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5906 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5907 calculation.
5908 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5909 Simplify MODE_V1DF and MODE_V2SF handling.
5910 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5911 Simplify MODE_SF handling.
5912
a45c0557
JH
59132011-06-04 Jan Hubicka <jh@suse.cz>
5914
5915 PR tree-optimization/48893
5916 PR tree-optimization/49091
5917 PR tree-optimization/49179
5918 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5919 Bounds check.
5920
26740835
JH
59212011-06-04 Jan Hubicka <jh@suse.cz>
5922
5923 PR lto/48954
b8bc3a43
UB
5924 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5925 bitmaps.
26740835 5926
014ab419
JW
59272011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5928
5929 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5930
407bcba7
JJ
59312011-06-04 Jakub Jelinek <jakub@redhat.com>
5932
5933 PR target/49281
5934 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5935 to be strictly smaller than 1 << shiftcount.
5936
e3195c52
JH
59372011-06-04 Jan Hubicka <jh@suse.cz>
5938
5939 PR tree-optimize/48929
5940 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5941 of empty predicate.
5942
047d33a0
AO
59432011-06-04 Alexandre Oliva <aoliva@redhat.com>
5944
5945 PR debug/48333
5946 * calls.c (emit_call_1): Prefer the __builtin declaration of
5947 builtin functions.
5948
dc587809
DN
59492011-06-03 Diego Novillo <dnovillo@google.com>
5950
5951 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5952 (lto_input_tree_pointers): Likewise.
5953 * lto-streamer-out.c (pack_value_fields): Likewise.
5954 (lto_output_tree_pointers): Likewise.
5955 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5956 and OPTIMIZATION_NODE.
5957
58cd1d70
RO
59582011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5959
5960 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5961 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5962 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5963 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5964 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5965 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5966 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5967 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5968 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5969 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5970 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5971 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5972 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5973 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5974 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5975 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5976 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5977 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5978 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5979 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5980 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5981 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5982 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5983 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5984 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5985 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5986 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5987 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5988 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5989 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5990 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5991 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5992 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5993 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5994 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5995 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5996 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5997 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5998 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5999 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
6000 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
6001 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
6002 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
6003 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
6004 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
6005 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
6006 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
6007 * system.h (MD_UNWIND_SUPPORT): Poison.
6008 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
6009 * doc/tm.texi: Regenerate.
6010 * unwind-dw2.c: Include md-unwind-support.h instead of
6011 MD_UNWIND_SUPPORT.
6012 * config/ia64/unwind-ia64.c: Likewise.
6013 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
6014
10c63ba4 60152011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
6016
6017 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
6018
1b7a0148
RH
60192011-06-03 Richard Henderson <rth@redhat.com>
6020 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6021
6022 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
6023 (sigill_hdlr): Correct insn, insn size.
6024 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
6025
737346fa
RO
60262011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6027
6028 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
6029 t-slibgcc-dummy.
6030 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
6031 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
6032 * config/mips/t-iris: Remove.
6033 * config/mips/t-irix6: New file.
6034 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
6035
c192cee6
RO
60362011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6037
6038 * Makefile.in (LIB2ADDEHDEP): Remove.
6039 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
6040 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
6041 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
6042 * config/t-darwin (LIB2ADDEHDEP): Remove.
6043 * config/t-freebsd (LIB2ADDEHDEP): Remove.
6044 * config/t-linux (LIB2ADDEHDEP): Remove.
6045
d5828cc7
DN
60462011-06-03 Diego Novillo <dnovillo@google.com>
6047
6048 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
6049 (lto_register_var_decl_in_symtab): Likewise.
6050 (lto_register_function_decl_in_symtab): Likewise.
6051 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 6052 logic to uniquify_nodes.
d5828cc7 6053
ee33b5f0
RO
60542011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6055
6056 * config/alpha/t-osf5: Remove.
6057 * config/alpha/t-osf-pthread: Remove.
6058 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
6059 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
6060
16868d84
JB
60612011-06-03 Julian Brown <julian@codesourcery.com>
6062
6063 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
6064 (strongarm1110): Use strongarm tuning.
4d3d7f15 6065 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
6066 * config/arm/arm.c (arm_strongarm_tune): New.
6067 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6068 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
6069 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
6070 setting, using previous defaults or 1 for Cortex-A5.
6071 (arm_option_override): Set max_insns_skipped from current tuning.
6072
1cec1285
NS
60732011-06-03 Nathan Sidwell <nathan@codesourcery.com>
6074
6075 * doc/install.texi (Options specification): Document --with-specs.
6076
eed55426
RR
60772011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6078
6079 * config/arm/neon.md (orndi3_neon): Actually split it.
6080
d5b6cc25
AO
60812011-06-02 Alexandre Oliva <aoliva@redhat.com>
6082
6083 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
6084 * var-tracking.c (reverse_op): Limite recurse depth to 5.
6085
2ba42841
AO
60862011-06-02 Alexandre Oliva <aoliva@redhat.com>
6087
6088 PR debug/47590
6089 * target.def (delay_sched2, delay_vartrack): New.
6090 * doc/tm.texi.in: Update.
6091 * doc/tm.texi: Rebuild.
6092 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
6093 * var-tracking.c (gate_handle_var_tracking): Likewise.
6094 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
6095 (bfin_flag_var_tracking): Drop.
6096 (output_file_start): Don't save and override flag_var_tracking.
6097 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
6098 (bfin_reorg): Test original variables.
6099 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6100 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
6101 (ia64_flag_var_tracking): Drop.
6102 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6103 (ia64_file_start): Don't save and override flag_var_tracking.
6104 (ia64_override_options_after_change): Ditto
6105 flag_schedule_insns_after_reload.
6106 (ia64_reorg): Test original variables.
6107 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
6108 (picochip_flag_var_tracking): Drop.
6109 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6110 (picochip_option_override): Don't save and override
6111 flag_schedule_insns_after_reload.
6112 (picochip_asm_file_start): Ditto flag_var_tracking.
6113 (picochip_reorg): Test original variables.
6114 * config/spu/spu.c (spu_flag_var_tracking): Drop.
6115 (TARGET_DELAY_VARTRACK): Define.
6116 (spu_var_tracking): New.
6117 (spu_machine_dependent_reorg): Call it.
6118 (asm_file_start): Don't save and override flag_var_tracking.
6119
a700b5f0
KK
61202011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
6121
6122 PR target/49163
6123 * config/sh/predicates.md (general_movsrc_operand): Return 0
6124 for memory and memory subreg of which address is an invalid
6125 indexed address for QI and HImode.
6126 (general_movdst_operand): Likewise.
6127
76015c34
EB
61282011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6129
6130 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
6131 edges only, when there is a non-local label in the function.
6132 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
6133
4e76acd2
UB
61342011-06-02 Uros Bizjak <ubizjak@gmail.com>
6135
6136 * config/i386/constraints.md (Y3): New register constraint.
6137 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
6138 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
6139 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
6140 *sse2_interleave_lowv2df.
6141
288f605f
JB
61422011-06-02 Julian Brown <julian@codesourcery.com>
6143
6144 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
6145 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
6146 (arm_cortex_a5_tune): New.
6147
7ec70105
JB
61482011-06-02 Julian Brown <julian@codesourcery.com>
6149
153668ec
JB
6150 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
6151 * config/arm/arm.c (arm_default_branch_cost): New.
6152 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6153 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
6154 (arm_fa726_tune): Set branch_cost field using
6155 arm_default_branch_cost.
6156 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
6157 current_tune structure.
6158 * dojump.c (tm_p.h): Include file.
6159
61602011-06-02 Julian Brown <julian@codesourcery.com>
6161
6162 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
6163 tuning.
7ec70105
JB
6164 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
6165 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6166 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
6167 field.
6168 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
6169 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
6170 (arm_fa726te_tune): Add prefer_constant_pool setting.
6171 (arm_v6t2_tune, arm_cortex_tune): New.
6172 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
6173 prefer_constant_pool setting.
6174
aad61732
UB
61752011-06-02 Uros Bizjak <ubizjak@gmail.com>
6176
4e76acd2
UB
6177 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
6178 switch statement.
aad61732
UB
6179 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
6180 (*movdf_internal) <case 6,7,8>: Ditto.
6181
4e76acd2 6182 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
6183 * config/i386/sse.md (vec_set<mode>_0): Merge with
6184 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6185 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6186 *vec_extractv2di_1_sse.
6187 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6188 and *vec_concatv2di_rex64_sse.
6189
6e588138
SH
61902011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
6191
6192 PR target/48807
6193 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6194 of cgraph_local_info for null before attempting to use it.
6195
bc6d3f91
EB
61962011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6197
6198 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6199 (current_function_dynamic_alloc_count): Delete.
6200 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6201 (expand_builtin_nonlocal_goto): Remove obsolete comment.
6202 (expand_builtin_update_setjmp_buf): Remove dead code.
6203 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6204 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6205 support.
6206 * function.c (instantiate_virtual_regs): Likewise.
6207 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6208 for a block with a single abnormal incoming edge.
6209 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 6210 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
6211 * config/sparc/sparc-protos.h (load_got_register): Declare.
6212 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6213 (load_got_register): Make global.
6214 (sparc_frame_pointer_required): Add 'static'.
6215 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
6216 (sparc_builtin_setjmp_frame_value): New function.
6217 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6218 (save_stack_nonlocal): New expander.
6219 (restore_stack_nonlocal): Likewise.
6220 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6221 (nonlocal_goto_internal): New insn.
6222 (goto_handler_and_restore): Delete.
6223 (builtin_setjmp_setup): Likewise.
6224 (do_builtin_setjmp_setup): Likewise.
6225 (setjmp): Likewise.
6226 (builtin_setjmp_receiver): New expander.
6227
69282fee
DL
62282011-06-01 David Li <davidxl@google.com>
6229
6230 PR middle-end/49261
6231 * tree-pretty-print.c (dump_function_header): Format cleanup.
6232
e95873dd
KK
62332011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
6234
6235 PR target/49238
6236 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6237 needed when original operands are used for msw_skip comparison.
6238
88c15821
JJ
62392011-06-01 Jakub Jelinek <jakub@redhat.com>
6240
6241 PR debug/49250
6242 * var-tracking.c (add_uses, add_stores): Don't call
6243 cselib_subst_to_values on ENTRY_VALUE.
6244
07233947
DN
62452011-06-01 Diego Novillo <dnovillo@google.com>
6246
6247 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6248 output_record_start with LTO_null instead of output_zero.
6249 (lto_output_ts_binfo_tree_pointers): Likewise.
6250 (lto_output_tree): Likewise.
6251 (output_eh_try_list): Likewise.
6252 (output_eh_region): Likewise.
6253 (output_eh_lp): Likewise.
6254 (output_eh_regions): Likewise.
6255 (output_bb): Likewise.
6256 (output_function): Likewise.
6257 (output_unreferenced_globals): Likewise.
6258 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6259 instead of NUM_TREE_CODES.
6260 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6261 (lto_output_int_in_range): Change << to >> when shifting VAL.
6262
4ee3537a
DN
62632011-06-01 Diego Novillo <dnovillo@google.com>
6264
6265 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6266 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6267
02972eaf
RS
62682011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6269
6270 PR target/45074
6271 * optabs.h (valid_multiword_target_p): Declare.
6272 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6273 doing multi-word operations.
6274 * optabs.c (expand_binop): Likewise.
6275 (expand_doubleword_bswap): Likewise.
6276 (expand_absneg_bit): Likewise.
6277 (expand_unop): Likewise.
6278 (expand_copysign_bit): Likewise.
6279 (multiword_target_p): New function.
6280
4d41c2d1
RS
62812011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6282
6283 PR rtl-optimization/48830
6284 PR rtl-optimization/48808
6285 PR rtl-optimization/48792
6286 * reload.c (push_reload): Check contains_reg_of_mode.
6287 * reload1.c (strip_paradoxical_subreg): New function.
6288 (gen_reload_chain_without_interm_reg_p): Use it to handle
6289 paradoxical subregs.
6290 (emit_output_reload_insns, gen_reload): Likewise.
6291
5f57dccb
DL
62922011-06-01 David Li <davidxl@google.com>
6293
6294 * predict.c : Change pass name
6295 * ipa.c: Ditto.
6296 * dce.c: Ditto.
6297 * tree-profile.c: Ditto.
6298 * except.c: Ditto.
6299
ea6cf778
DL
63002011-06-01 David Li <davidxl@google.com>
6301
6302 * tree-pretty-print.c (dump_function_header): New function.
6303 * final.c (rest_of_clean_state): Use header dumper.
6304 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6305 * passes.c (pass_init_dump_file): Use header dumper.
6306
ebdc0d4b
JJ
63072011-06-01 Jakub Jelinek <jakub@redhat.com>
6308
eeeb9b49
JJ
6309 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6310 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6311 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6312 New functions.
6313 (mem_loc_descriptor): Use them.
6314
ebdc0d4b
JJ
6315 * var-tracking.c (create_entry_value): New function.
6316 (vt_add_function_parameter): Use it.
6317
0699e415
RO
63182011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6319
6320 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6321 Include <signal.h>, <ucontext.h>.
6322 (sigill_caught): Define.
6323 (sigill_hdlr): New function.
6324 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6325 insns can be executed.
aad61732 6326 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
6327 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6328
ca24c5ad
RO
63292011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6330
6331 * config/t-slibgcc-darwin: Move to ...
aad61732 6332 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
6333 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6334 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6335 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 6336 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
6337 Remove i386/t-crtstuff from tmake_file.
6338 (i[34567]86-*-solaris2*): Remove t-svr4,
6339 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6340 t-slibgcc-dummy.
6341 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6342 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6343 sparc/t-crtfm from tmake_file.
6344 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6345 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6346 Remove extra_parts.
6347 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6348 * config/i386/t-nwld (SHLIB_LINK): Remove.
6349 * config/i386/t-rtems-i386: Rename to ...
6350 * config/i386/t-rtems: ... this.
6351 ($(T)crti.o, $(T)crtn.o): Remove.
6352 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6353 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6354 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6355 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6356 EXTRA_MULTILIB_PARTS): Remove.
6357 * config/sparc/t-sol2-64: Likewise.
6358 * config/sparc/t-sol2: Remove.
6359 * config/sparc/t-crtin: Remove.
6360 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6361 * config/i386/gmon-sol2.c: Remove.
6362 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6363 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6364 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6365 * config/i386/sol2-gc1.asm: Remove.
6366 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6367 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6368 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6369 * config/t-slibgcc-sld: Remove.
6370
a78d13c3
JJ
63712011-06-01 Jakub Jelinek <jakub@redhat.com>
6372
6373 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6374 base_type_for_mode with op_mode instead of mode.
6375
572070ef
PB
63762011-06-01 Paul Brook <paul@cpodesourcery.com>
6377
6378 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6379 Cortex-A15.
6380 * config/arm/arm-tune.md: Regenerate.
6381 * config/arm/arm-tables.opt: Regenerate.
6382 * config/arm/arm.c (FL_DIV): Rename...
6383 (FL_THUMB_DIV): ... to this.
6384 (FL_ARM_DIV): Define.
6385 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6386 (arm_arch_hwdiv): Remove.
6387 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6388 (arm_issue_rate): Add cortexr5.
6389 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6390 __ARM_ARCH_EXT_IDIV__.
6391 (TARGET_IDIV): Define.
6392 (arm_arch_hwdiv): Remove.
6393 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6394 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6395 (divsi3, udivsi3): New patterns.
6396 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6397 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6398
11026b51
MJ
63992011-06-01 Martin Jambor <mjambor@suse.cz>
6400
6401 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6402 * ipa-utils.c (searchc): Set scc_no.
6403
b6156cf2
MJ
64042011-06-01 Martin Jambor <mjambor@suse.cz>
6405
6406 * ipa-utils.c (searchc_env): New field allow_overwritable.
6407 (searchc): do not ignore edges to overwritable nodes if indicated
6408 by env->allow_overwritable.
6409 (ipa_reduced_postorder): Set env.allow_overwritable.
6410
6807da97
RG
64112011-06-01 Richard Guenther <rguenther@suse.de>
6412
6413 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6414 char_type_node.
6415 * lto-streamer.c (lto_record_common_node): Take node pointer,
6416 do not register types.
6417 (lto_preload_common_nodes): Explicitly skip preloading nodes
6418 that differ between frontends.
6419
66bd20e7 64202011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
6421
6422 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6423 NON_FLOAT_REGS.
6424
66bd20e7 64252011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
6426
6427 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6428 parameter value for dump. Dump cost on outermost call only.
6429 (rs6000_memory_move_cost): Dump cost on outermost call only.
6430
7351d8da
JJ
64312011-05-31 Jakub Jelinek <jakub@redhat.com>
6432
ead7c399
JJ
6433 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6434 DW_OP_GNU_convert ops.
6435
509f4495
JJ
6436 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6437 cselib_preserve_constants.
6438 (cselib_lookup_1): If cselib_preserve_constants,
6439 a new VALUE is being created for REG and there is a VALUE for the
6440 same register in wider mode, add another loc with lowpart SUBREG of
6441 the wider VALUE.
6442 (cselib_subst_to_values): Handle ENTRY_VALUE.
6443 * var-tracking.c (replace_expr_with_values): Return NULL for
6444 ENTRY_VALUE too.
6445 * dwarf2out.c (convert_descriptor_to_signed): New function.
6446 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6447 instead of two shifts.
6448 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6449 the right mode if needed.
6450 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6451 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6452 convert_descriptor_to_signed.
6453 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6454 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6455
7351d8da
JJ
6456 PR target/48688
6457 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6458
5cc93ee0
UB
64592011-05-31 Uros Bizjak <ubizjak@gmail.com>
6460
6461 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6462 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6463 (SWI248x): New mode iterator, rename from X87MODEI.
6464 (X87MODEI): Remove mode iterator.
6465 (X87MODEI12): Ditto.
6466 (SSEMODEI24): Ditto.
6467
f0686e78
AO
64682011-05-31 Alexandre Oliva <aoliva@redhat.com>
6469
6470 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6471 * doc/invoke.texi: Document max-vartrack-expr-depth.
6472 * var-tracking.c (EXPR_DEPTH): New.
6473 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6474
f3308413
AO
64752011-05-31 Alexandre Oliva <aoliva@redhat.com>
6476
6477 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6478 * config/i386/sse.md: Add n to negated FMA pattern names.
6479
28c14a04
AO
64802011-05-31 Alexandre Oliva <aoliva@redhat.com>
6481
6482 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6483
70efc82d
AO
64842011-05-31 Alexandre Oliva <aoliva@redhat.com>
6485
5cc93ee0 6486 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 6487
6ba5d856
UB
64882011-05-31 Uros Bizjak <ubizjak@gmail.com>
6489
6490 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6491 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6492
64932011-05-31 Uros Bizjak <ubizjak@gmail.com>
6494
6495 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6496 registers. Penalize F*r->o alternative to prevent partial memory
6497 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6498 CONST_DOUBLE immediates when optimizing function for size. Do not move
6499 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6500 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6501 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6502 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6503 alternatives.
6504 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6505
6506 (fp_register_operand splitters): Use fp_register_operand
6507 constraint. Do not use FP_REG_P in insn condition.
6508 (any_fp_register_operand splitters): Use any_fp_register_operand
6509 constraint. Do not use ANY_FP_REG_P in insn condition.
6510
533c07c5
JH
65112011-05-31 Jan Hubicka <jh@suse.cz>
6512
6513 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6514 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6515 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6516 (lto_output_edge): Use output_enum and var_len_unsigned.
6517 (lto_output_varpool_node): Likewise.
6518 (input_overwrite_node): Do not take resolution parameter;
6519 extract it from a bitpack.
6520 (input_node): Do not read resolution; use input_enum and
6521 var_len_unsigned.
6522 (input_varpool_node): Likewise.
6523 (input_edge): Likewise.
6524 (input_cgraph_1): Likewise.
6525
2611db71
RG
65262011-05-31 Richard Guenther <rguenther@suse.de>
6527
6528 * gimple.c (gimple_register_canonical_type): Do not register
6529 any types via gimple_register_type.
6530
b9e57365
JH
65312011-05-31 Jan Hubicka <jh@suse.cz>
6532
6533 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6534 of thunks.
6535
35979cc2
JJ
65362011-05-31 Jakub Jelinek <jakub@redhat.com>
6537
6538 PR rtl-optimization/49235
6539 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6540 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6541
8f7de592
IR
65422011-05-31 Ira Rosen <ira.rosen@linaro.org>
6543
6544 PR tree-optimization/49093
6545 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6546 data references.
6547
8d8a3bda
DS
65482011-05-31 Dodji Seketeli <dodji@redhat.com>
6549
6550 PR debug/49047
6551 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 6552 for concrete functions containing the code of cloned functions.
8d8a3bda 6553
2e87621c
RG
65542011-05-31 Richard Guenther <rguenther@suse.de>
6555
6556 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6557 to ...
6558 (forward_propagate_into_comparison_1): ... this.
6559 (forward_propagate_comparison): Rename to ...
6560 (forward_propagate_into_comparison): ... this. Split out
6561 real forward propagation code to ...
6562 (forward_propagate_comparison): ... this.
6563 (forward_propagate_into_gimple_cond): Remove looping.
6564 (forward_propagate_into_cond): Likewise.
6565 (simplify_not_neg_expr): Return whether we have done something.
6566 (simplify_gimple_switch): Likewise.
6567 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6568 (ssa_forward_propagate_and_combine): ... this. Re-structure
6569 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 6570 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
6571 (pass_forwprop): Adjust.
6572
5a880d5d
ILT
65732011-05-30 Ian Lance Taylor <iant@google.com>
6574
6575 * godump.c (go_format_type): Correct length of name added to
6576 obstack for anonymous field.
6577
5f133038
KK
65782011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6579
6580 PR target/49186
6581 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6582 part of the second operand is 0.
6583
b17d5426
UB
65842011-05-30 Uros Bizjak <ubizjak@gmail.com>
6585
6586 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6587 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6588 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6589 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 6590 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
6591 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6592 when optimizing function for size. Do not move CONST_DOUBLEs
6593 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
6594 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6595 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
6596 check for ANY_FP_REGNO_P instead.
6597 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6598 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6599 function for speed.
6600 * config/i386/i386.c (ix86_option_override_internal): Do not
6601 set TARGET_INTEGER_DFMODE_MOVES here.
6602
a0cd843f
L
66032011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6604
6605 PR target/49168
aad61732 6606 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 6607
006a5f38
JJ
66082011-05-30 Jakub Jelinek <jakub@redhat.com>
6609
6610 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6611 DW_TAG_rvalue_reference_type even for
6612 -gdwarf-4 -fno-debug-types-section.
6613
6e96f98a
BS
66142011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6615
6616 PR tree-optimization/46728
6617 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6618 (build_and_insert_binop): New.
6619 (gimple_expand_builtin_pow): Reorder args for
6620 build_and_insert_call; use build_and_insert_binop; add more
6621 optimizations for fractional exponents.
b17d5426 6622
4f60111f
NF
66232011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6624
6625 PR bootstrap/49190
6626
6627 Revert:
6628 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6629
6630 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6631 tree_common.
6632 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6633 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6634 TS_BASE instead of TS_COMMON.
6635 * varasm.c (assemble_name): Remove assert.
6636
3fd7879d
RS
66372011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6638
6639 * config.gcc: Keep obselete list sorted.
6640
80060f7a
JJ
66412011-05-30 Jakub Jelinek <jakub@redhat.com>
6642 Eric Botcazou <ebotcazou@adacore.com>
6643
6644 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6645 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6646 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6647 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6648 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6649
17e99cdb
RG
66502011-05-30 Richard Guenther <rguenther@suse.de>
6651
6652 * gimple.c (gimple_types_compatible_p_1): Compare record
6653 and union type members properly.
6654
42b05b6e
RG
66552011-05-30 Richard Guenther <rguenther@suse.de>
6656
6657 PR tree-optimization/49210
6ba5d856
UB
6658 * ipa-split.c (split_function): Care for the case where the call
6659 result is not trivially convertible to the result holding variable.
42b05b6e 6660
f3321158
RG
66612011-05-30 Richard Guenther <rguenther@suse.de>
6662
6663 PR tree-optimization/49218
6664 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6665 overflow occured.
6666
d12d8efe
RG
66672011-05-30 Richard Guenther <rguenther@suse.de>
6668
6669 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6670 New function split out from ...
6671 (forward_propagate_into_gimple_cond): ... here. Adjust.
6672 (forward_propagate_into_cond): Likewise.
6673 (forward_propagate_comparison): Also propagate into
6674 comparisons on assignment RHS. Change return value to
6675 behave similar to forward_propagate_into_cond.
6676 (tree_ssa_forward_propagate_single_use_vars): Handle
6677 strict-overflow warnings properly for forward_propagate_comparison.
6678
df33b41f
RO
66792011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6680
6681 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6682 from plugin linker.
6683 * configure: Regenerate.
6684
69940d4d
IR
66852011-05-30 Ira Rosen <ira.rosen@linaro.org>
6686
6687 PR tree-optimization/49199
6688 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 6689 non-reduction operands are either defined in the loop or by induction.
69940d4d 6690
226c52aa
XDL
66912011-05-29 Xinliang David Li <davidxl@google.com>
6692
6693 * opts-global.c (handle_common_deferred_options): Handle new options.
6694 * passes.c (register_one_dump_file): Call register_pass_name.
6695 (execute_one_pass): Check explicit enable/disable flag.
6696 (passr_hash): New function.
6697 (passr_eq): Ditto.
6698 (register_pass_name): Ditto.
6699 (get_pass_by_name): Ditto.
6700 (pass_hash): Ditto.
6701 (pass_eq): Ditto.
6702 (enable_pass): Ditto.
6703 (disable_pass): Ditto.
6704 (is_pass_explicitly_enabled_or_disabled): Ditto.
6705
491d8eed
UB
67062011-05-29 Uros Bizjak <ubizjak@gmail.com>
6707
6708 * config/i386/i386.md (*movoi_internal_avx): Use
6709 standard_sse_constant_opcode for alternative 0.
6710 (*movti_internal_sse): Ditto.
6711 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6712 alternative 2.
6713 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6714 sselog1 type moves.
6715 (*movsi_internal): Ditto.
6716 (*movdi_internal): Ditto. Add ssecvt type moves.
6717
eb93b31f
EB
67182011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6719
6720 PR target/48830
6721 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6722
3f831b7d
JJ
67232011-05-29 Jakub Jelinek <jakub@redhat.com>
6724
6725 PR rtl-optimization/49095
6726 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6727 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6728
ee3ee488
RS
67292011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6730
6731 PR target/43995
6732 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6733 recurse_p argument. Only follow register copies if it is set,
6734 and prevent mips_find_pic_call_symbol from recursing.
6735 (mips_find_pic_call_symbol): Add a recurse_p argument.
6736 Pass it to mips_pic_call_symbol_from_set.
6737 (mips_annotate_pic_calls): Update accordingly.
6738
65f3dedb
RS
67392011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6740
6741 * emit-rtl.c (try_split): Use a loop to search for
6742 NOTE_INSN_CALL_ARG_LOCATIONs.
6743
61e374ab
RG
67442011-05-29 Richard Guenther <rguenther@suse.de>
6745
6746 PR tree-optimization/49217
6747 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6748
fac009a8
JH
67492011-05-28 Jan Hubicka <jh@suse.cz>
6750
6751 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6752 length.
6753 (string_slot_free): Remove
6754 (create_output_block): Initialize obstack.
6755 (destroy_output_block): Free obstack.
6756 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6757 the string unless it needs to be added into the hash.
6758 (lto_output_string_with_length): Add persistent attribute;
6759 handle NULL strings.
6760 (lto_output_string): Add PERSISTENT parameter.
6761 (output_string_cst, output_identifier): Simplify.
6762 (lto_output_location_bitpack): Update.
6763 (lto_output_builtin_tree): Update.
6764 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
6765 (lto_output_string, lto_output_string_with_length): Remove
6766 declarations; functions are static now.
fac009a8 6767
fa766006
JH
67682011-05-28 Jan Hubicka <jh@suse.cz>
6769
6770 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6771 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6772 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6773 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6774 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6775 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6776 unpack_ts_decl_with_vis_value_fields,
6777 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6778 lto_get_builtin_tree): Use enum and variable length i/o.
6779 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6780 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6781 New functions.
6782 (bp_pack_enum, bp_unpack_enum): New macros.
6783
e092158b
RS
67842011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6785
6786 * genrecog.c: Remove redundant forward declarations.
6787
7ca2afa0
RS
67882011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6789
6790 * config.gcc: Deprecate mips*-*-openbsd*.
6791
a601a53a
RS
67922011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6793
6794 PR bootstrap/49195
6795 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6796 for match_op_dup.
6797
fc64b448
AP
67982011-05-27 Andrew Pinski <pinskia@gmail.com>
6799
6800 PR middle-end/48981
6801 * gengtype.c (vec_prefix_type): New function.
6802 (note_def_vec): Use vec_prefix_type and change the length
6803 attribute to be based on the prefix.
6804 * vec.c: Include coretypes.h before vec.h.
6805 (struct vec_prefix): Remove.
6806 (vec_gc_p_reserve): Change the offsetof to sizeof.
6807 (vec_gc_p_reserve_exact): Likewise.
6808 (vec_heap_p_reserve): Likewise.
6809 (vec_heap_p_reserve_exact): Likewise.
6810 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6811 (vec_stack_p_reserve): Change the offsetof to sizeof.
6812 (vec_stack_p_reserve_exact): Likewise.
6813 * vec.h (struct vec_prefix): New struct definition.
6814 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6815 (VEC_T_GTY(T,B)): Likewise.
6816 (DEF_VEC_FUNC_P(T)): Use prefix field.
6817 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6818 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6819
ba869341
BS
68202011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6821
6822 PR tree-optimization/46728
6823 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6824 (powi_as_mults): Add gimple_set_location.
6825 (build_and_insert_call): New.
6826 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6827 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 6828
d296760d
AM
68292011-05-27 Alexander Monakov <amonakov@ispras.ru>
6830
6831 * doc/contrib.texi: Update copyright years.
6832 (Contributors): Add Zdenek Sojka.
6833
38e01f9e
NF
68342011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6835
6836 * c-decl.c (c_push_function_context): Copy the current statement
6837 list stack.
6838 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6839 (finish_struct): Call building_stmt_list_p instead of checking
6840 cur_stmt_list.
6841 * c-parser.c (c_parser_postfix_expression): Likewise.
6842 * c-typeck.c (c_end_compound_stmt): Likewise.
6843 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6844 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6845 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6846 (free_stmt_list): Likewise.
6847 * tree.h (struct tree_statement_list): Include typed_tree instead
6848 of tree_common.
6849 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6850 as TS_TYPED instead of TS_COMMON.
6851
8950516e 68522011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 6853 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
6854
6855 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6856 (HAVE_AS_IX86_TLSGDPTL): Define.
6857 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6858 (HAVE_AS_IX86_TLSLDMPLT): Define.
6859 * configure: Regenerate.
6860 * config.in: Regenerate.
6861 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6862 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6863 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6864 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6865 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6866 @tlsldmplt or @plt.
6867 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6868
b0bd15f7
BS
68692011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6870
6871 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6872 and reverse_cond.
6873 (INSN_COND, INSN_REVERSE_COND): New macros.
6874 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6875 once.
6876 (sched_get_condition_with_rev): Cache the results, and look them up
6877 if possible.
6878 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6879 are clobbered by the current insn.
6880 * target.def (exposed_pipline): New sched data hook.
6881 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6882 * doc/tm.texi: Regenerate.
6883
fa65a9cf
BS
68842011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6885
6886 PR tree-optimization/49170
6887 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6888 sincos or cexp.
b0bd15f7 6889
c2299dfe
RG
68902011-05-27 Richard Guenther <rguenther@suse.de>
6891
6892 PR middle-end/49189
6893 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6894 of comparisons.
6895
a95b23b4
BS
68962011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6897
6898 * haifa-sched.c (sched_scan_info): Remove.
6899 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6900 with NULL args.
6901 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6902 Remove functions.
6903 (sched_scan): Remove.
6904 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6905 static. All callers changed.
6906 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6907 static. All callers changed.
6908 (sched_init_luids): Remove all arguments except the first. All
6909 callers changed. Don't use sched_scan.
6910 (haifa_init_h_i_d): Likewise.
6911 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6912 manually rather than using sched_init_luids. Likewise with
6913 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6914 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6915 rather than sched_init_luids with NULL args.
6916 * sel-sched-ir.c (new_insns): Remove variable.
6917 (sched_scan): New static function, previously in haifa-sched.c. Remove
6918 all arguments but the first two; all callers changed.
6919 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6920 rather than sched_init_luids.
6921 (sel_init_bbs): Remove second argument. All callers changed.
6922 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6923 with NULL arguments.
6924 (create_insn_rtx_from_pattern): Likewise.
6925 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6926 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6927 (sched_init_insn_luid, sched_extend_luids): Declare.
6928 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6929 declarations.
6930
f8f972fc
RB
69312011-05-27 Richard Guenther <rguenther@suse.de>
6932
6933 PR middle-end/49177
6934 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6935 A CMP B ? (T) true : (T) false for non-integral types T again.
6936
51a9ed47
JH
69372011-05-27 Jan Hubicka <jh@suse.cz>
6938
6939 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6940 so 0 means NULL string.
6941 (lto_output_string_with_length): ... here.
f8f972fc
RB
6942 (lto_output_string, output_string_cst, output_identifier): Update
6943 handling of NULL strings.
51a9ed47
JH
6944 (lto_output_location_bitpack): New function.
6945 (lto_output_location): Use it.
6946 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
6947 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6948 len values.
6949 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6950 values by 1.
491d8eed 6951 (input_string_internal): ... here;
f8f972fc
RB
6952 (input_string_cst, input_identifier, lto_input_string): Update handling
6953 of NULL strings.
51a9ed47
JH
6954 (lto_input_location_bitpack): New function
6955 (lto_input_location): Use it.
f8f972fc
RB
6956 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6957 values.
51a9ed47
JH
6958 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6959 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6960 (bp_pack_value): Sanity check the value range.
6961 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6962 New functions.
6963 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6964 New functions.
6965
66bd20e7 69662011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
6967
6968 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6969 call_arg_location instructions down the floor.
6970
574e418a
VM
69712011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6972
6973 PR rtl-optimization/49154
6974 * ira.c (setup_pressure_classes): Process class without sublcasses
6975 as a candidate for pressure classes.
6976
6a1a787e
RS
69772011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
6978
6979 PR rtl-optimization/48575
6980 * genrecog.c (position_type): New enum.
6981 (position): New structure.
6982 (decision): Use position structure instead of a string.
6983 (root_pos, peep2_insn_pos_list): New variables.
6984 (next_position, compare_positions): New functions.
6985 (new_decision): Use position structures instead of strings.
6986 (maybe_both_true): Likewise.
6987 (change_state): Likewise.
6988 (write_tree): Likewise.
6989 (make_insn_sequence): Likewise.
6990
92e948a8
NF
69912011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6992
6993 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6994 TS_BASE instead of TS_COMMON.
6995 (find_decls_types_r): Check for TS_TYPED structure before looking at
6996 TREE_TYPE.
6997 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6998 Add chain field.
6999 (BLOCK_CHAIN): Use new chain field.
7000
66bd20e7 70012011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
7002
7003 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
7004 moves expensive on Power7 also.
7005
1f498652
RG
70062011-05-26 Richard Guenther <rguenther@suse.de>
7007
7008 * fold-const.c (fold_unary_loc): Remove bogus code.
7009
a2fc3e63
NF
70102011-05-26 Nathan Froyd <froydnj@codesourcery.com>
7011
7012 * tree.h (struct tree_identifier): Inherit from tree_typed, not
7013 tree_common.
7014 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
7015 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
7016 TS_BASE instead of TS_COMMON.
7017 * varasm.c (assemble_name): Remove assert.
7018
d11bf18f
BS
70192011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7020
7021 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
7022 substituted first.
7023 * libgcc-std.ver: Delete file.
7024
ac8e1875
RG
70252011-05-26 Richard Guenther <rguenther@suse.de>
7026
7027 PR tree-optimization/48702
7028 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
7029 only when we know the base address is within bounds.
7030 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
7031 assume the base address of TARGET_MEM_REFs is in bounds.
7032
7e32e652
RO
70332011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7034
7035 PR target/49099
7036 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
7037 declaration in TARGET_SOLARIS.
7038
66bd20e7 70392011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
7040
7041 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 7042 The instruction is then expanded explicitly.
43660e0b
HS
7043 (supported_compare): Callable instruction.
7044 (compare): Likewise.
7045
1537737f
JJ
70462011-05-26 Jakub Jelinek <jakub@redhat.com>
7047
7048 PR c++/49165
7049 * gimplify.c (shortcut_cond_r): Don't special case
7050 COND_EXPRs if they have void type on one of their arms.
7051
7b1ac803
BS
70522011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7053
7054 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
7055 to reduce duplication, and to achieve a slightly more logical order
7056 of operations.
7057
1aa9438f
JJ
70582011-05-26 Jakub Jelinek <jakub@redhat.com>
7059
7060 PR tree-optimization/49161
7061 * tree-vrp.c (struct case_info): New type.
7062 (compare_case_labels): Sort case_info structs instead of
7063 trees, and not primarily by CASE_LABEL uids but by
7064 label_for_block indexes.
7065 (find_switch_asserts): Put case labels into struct case_info
7066 array instead of TREE_VEC, adjust sorting, compare label_for_block
7067 values instead of CASE_LABELs.
7068
50fed7bf
RR
70692011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7070
7071 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
7072 ("orndi3_neon"): Likewise.
7073 ("bic<mode>3_neon"): Likewise.
7074
48df3fa6
IR
70752011-05-26 Ira Rosen <ira.rosen@linaro.org>
7076
7077 PR tree-optimization/49038
7078 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
7079 Ensure at least one epilogue iteration if required by data
7080 accesses with gaps.
7081 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7082 to mark loops that require peeling for gaps.
7083 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
7084 (vect_get_known_peeling_cost): Take peeling for gaps into
7085 account.
7086 (vect_transform_loop): Generate epilogue if required by data
7087 access with gaps.
7088 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
7089 loop as requiring an epilogue if there are gaps in the end of
7090 the strided group.
7091
53febcba
ILT
70922011-05-25 Ian Lance Taylor <iant@google.com>
7093
7094 * godump.c (go_format_type): Output the first field with a usable
7095 Go type, if any.
7096
dbbc4d4c
ILT
70972011-05-25 Ian Lance Taylor <iant@google.com>
7098
7099 * godump.c (go_format_type): Check for invalid type names, pointer
7100 target types, and struct field types.
7101
f03a5402
JM
71022011-05-25 Jason Merrill <jason@redhat.com>
7103
7104 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
7105
c497c412
UB
71062011-05-25 Uros Bizjak <ubizjak@gmail.com>
7107
7108 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
7109
e470affe
L
71102011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7111
7112 * config/i386/i386.md (*movqi_extv_1)): Put back
7113 "register_operand" check in "type" calculation.
7114 (*movqi_extzv_2): Likewise.
7115
6c81b2bc
L
71162011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7117
c497c412 7118 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 7119
0c007eb2
BS
71202011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7121
7122 PR bootstrap/49160
7123 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
7124 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
7125 __divxc3, __divtc3): Wrap definitions in #ifndef.
7126
521ca78e
L
71272011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7128
7129 PR target/49142
7130 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
7131 "register_operand" check and replace q_regs_operand with
7132 QIreg_operand in "type" calculation.
7133 (*movqi_extv_1): Likewise.
7134 (*movqi_extzv_2_rex64): Likewise.
7135 (*movqi_extzv_2): Likewise.
7136
7137 * config/i386/predicates.md (QIreg_operand): New.
7138
29f8b844
RG
71392011-05-25 Richard Guenther <rguenther@suse.de>
7140
7141 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7142 type-based offset disambiguation, streamline MEM_REF and
7143 TARGET_MEM_REF handling.
7144
74838de3
L
71452011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7146
7147 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
7148 (bdesc_special_args): Add pause intrinsic.
7149
7150 * config/i386/i386.md (UNSPEC_PAUSE): New.
7151 (pause): Likewise.
7152 (*pause): Likewise.
7153 * config/i386/ia32intrin.h (__pause): Likewise.
7154
7155 * doc/extend.texi (X86 Built-in Functions): Add documentation for
7156 pause intrinsic.
7157
d24ad7d6
BS
71582011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7159
7160 PR tree-optimization/46728
7161 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
7162 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 7163
d9f8303f
NF
71642011-05-25 Nathan Froyd <froydnj@codesourcery.com>
7165
7166 * tree.h (struct tree_exp): Inherit from struct tree_typed.
7167 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
7168 instead of TS_COMMON.
7169
cdbf4541
BS
71702011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7171
7172 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
7173 LIBGCC2_GNU_PREFIX is defined.
7174 (__N): New macro.
7175 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
7176 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
7177 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
7178 __clz_tab): Define using __N.
7179 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
7180 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7181 * target.def (libfunc_gnu_prefix): New hook.
7182 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7183 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7184 * doc/tm.texi: Regenerate.
7185 * system.h (LIBGCC2_GNU_PREFIX): Poison.
7186 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7187 account.
7188 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7189 (init_optabs): Likewise for the bswap libfuncs.
7190 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7191 and divide.
7192 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7193 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7194 * libgcc-std.ver: Remove.
7195 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7196 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7197 libgcc-std.ver.
7198 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7199 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7200 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7201 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7202 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7203 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7204 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7205 * config/fixed-bit.h (FIXED_OP): Define differently depending on
7206 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7207 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7208
f242c0a5
JH
72092011-05-25 Jan Hubicka <jh@suse.cz>
7210
7211 * lto-streamer-out.c (output_record_start): Use lto_output_enum
7212 (lto_output_tree): Use output_record_start.
7213 * lto-streamer-in.c (input_record_start): Use lto_input_enum
7214 (lto_get_pickled_tree): Use input_record_start.
7215 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7216 (lto_value_range_error): New function.
7217 * lto-streamer.h (lto_value_range_error): Declare.
7218 (lto_output_int_in_range, lto_input_int_in_range): New functions.
7219 (lto_output_enum, lto_input_enum): New macros.
7220
a11e0df4
EB
72212011-05-25 Eric Botcazou <ebotcazou@adacore.com>
7222
7223 * common.opt (flag_stack_usage_info): New variable.
7224 (-Wstack-usage): New option.
7225 * doc/invoke.texi (Warning options): Document -Wstack-usage.
7226 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7227 <OPT_fstack_usage>: Likewise.
7228 * toplev.c (output_stack_usage): Handle -Wstack-usage.
7229 * calls.c (expand_call): Test flag_stack_usage_info variable instead
7230 of flag_stack_usage.
7231 (emit_library_call_value_1): Likewise.
7232 * explow.c (allocate_dynamic_stack_space): Likewise.
7233 * function.c (instantiate_virtual_regs ): Likewise.
7234 (prepare_function_start): Likewise.
7235 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7236 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7237 * config/arm/arm.c (arm_expand_prologue): Likewise.
7238 (thumb1_expand_prologue): Likewise.
7239 * config/avr/avr.c (expand_prologue): Likewise.
7240 * config/i386/i386.c (ix86_expand_prologue): Likewise.
7241 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7242 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7243 * config/mips/mips.c (mips_expand_prologue): Likewise.
7244 * config/pa/pa.c (hppa_expand_prologue): Likewise.
7245 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7246 * config/s390/s390.c (s390_emit_prologue): Likewise.
7247 * config/sh/sh.c (sh_expand_prologue): Likewise.
7248 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7249 * config/spu/spu.c (spu_expand_prologue): Likewise.
7250
e7cfe241
RG
72512011-05-25 Richard Guenther <rguenther@suse.de>
7252
7253 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7254 (gimple_canonical_types_compatible_p): Likewise.
7255
c5235f4c
JH
72562011-05-25 Jan Hubicka <jh@suse.cz>
7257
7258 PR middle-end/49062
7259 * ipa.c (function_and_variable_visibility): Only add to same
7260 comdat group list if DECL_ONE_ONLY.
7261
8242a0f6
AB
72622011-05-25 Andrey Belevantsev <abel@ispras.ru>
7263
7264 PR rtl-optimization/49014
7265 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7266
642a011d
JJ
72672011-05-25 Jakub Jelinek <jakub@redhat.com>
7268
7269 PR target/49128
7270 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7271
30a435d8
VM
72722011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7273
7274 PR rtl-optimization/48757
7275 * ira-build.c (loop_with_eh_edge_p): Rename to
7276 loop_with_complex_edge_p, check edges on complexity, make function
7277 conditional.
7278 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7279 conditional.
7280
24d1bbc7
EB
72812011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7282
7283 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7284 force flag_ira_share_save_slots to 0.
7285
65773087
EB
72862011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7287
7288 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7289 (vt_initialize): Set PROLOGUE_BB unconditionally.
7290 Add block comment about CFA_BASE_RTX machinery.
7291 Reset FP_CFA_OFFSET to -1 on all invalid paths.
7292 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7293
4e26ba90
NP
72942011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
7295
7296 PR objc/48187
7297 * c-parser.c (c_parser_objc_class_instance_variables): More robust
7298 parsing of syntax error in ObjC instance variable lists. In
7299 particular, avoid an infinite loop if there is a stray ']'.
7300 Updated error message.
7301
936fd13c
ILT
73022011-05-24 Ian Lance Taylor <iant@google.com>
7303
7304 * godump.c (go_define): Don't accept a string immediately after
7305 another operand.
7306
f17333e3
ILT
73072011-05-24 Ian Lance Taylor <iant@google.com>
7308
7309 * godump.c (struct godump_container): Add invalid_hash field.
7310 (go_format_type): Return false if type is found in invalid_hash.
7311 (go_output_typedef): Add invalid type to invalid_hash.
7312 (go_finish): Create and delete invalid_hash.
7313
d24ad7d6 73142011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 7315
78be79d5
BS
7316 PR tree-optimization/46728
7317 * tree-ssa-math-opts.c (powi_table): New.
7318 (powi_lookup_cost): New.
7319 (powi_cost): New.
7320 (powi_as_mults_1): New.
7321 (powi_as_mults): New.
7322 (gimple_expand_builtin_powi): New.
7323 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7324 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 7325
caee412b
RO
73262011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7327
7328 PR target/3746
7329 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7330 mips-tdump native.
7331 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7332 * mips-tdump.c: Likewise.
7333
5eed4f27
L
73342011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7335
7336 PR target/49128
7337 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7338 add -mno-XXX. Handle FMA.
7339
8c5fdaae
VM
73402011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7341
7342 PR rtl-optimization/48633
7343 * ira-build.c (loop_with_eh_edge_p): New function.
7344 (mark_loops_for_removal): Use it.
7345
73462011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
7347
7348 PR rtl-optimization/48971
7349 * ira.c (setup_pressure_classes): Don't check register move cost
7350 for classes with one registers. Don't add pressure class if there
7351 is a pressure class with the same available hard registers.
7352 Check contains_reg_of_mode. Fix a typo in collecting
7353 temp_hard_regset. Ignore hard registers not belonging to a class.
7354
df1f7315
UB
73552011-05-24 Uros Bizjak <ubizjak@gmail.com>
7356
7357 PR target/49133
7358 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7359
ee0cb37c
EB
73602011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7361 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7362
7363 PR gcov-profile/48845
7364 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7365
6a20ce76
RG
73662011-05-24 Richard Guenther <rguenther@suse.de>
7367
7368 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7369 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7370 (gimple_types_compatible_p_1): Adjust.
7371 (iterative_hash_canonical_type): Do not bother about complete vs.
7372 incomplete types.
7373 (gimple_canonical_types_compatible_p): Likewise.
7374
2fcb858c
RO
73752011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7376
7377 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7378
96d91dcf
RG
73792011-05-24 Richard Guenther <rguenther@suse.de>
7380
7381 PR bootstrap/49078
7382 * gimple.c (gimple_register_canonical_type): Revert
7383 previous change.
7384 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7385 does not for a tree for the case where it matters. Cache
7386 pointer-type alias-sets.
7387
1ed1641d
JM
73882011-05-24 Joseph Myers <joseph@codesourcery.com>
7389
7390 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7391 (OBJS): Remove options.o, opts-common.o and prefix.o.
7392 (OBJS-libcommon-target): New.
7393 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7394 (BACKEND): Include libcommon-target.a.
7395 (MOSTLYCLEANFILES): Include libcommon-target.a.
7396 (libcommon-target.a): New.
7397 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7398 prefix.o.
7399
57dfdff0
JM
74002011-05-23 Joseph Myers <joseph@codesourcery.com>
7401
7402 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7403 parts of output shared with the driver.
7404 * optc-gen.awk: Don't generate parts of output not shared with the
7405 driver.
7406 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7407 * doc/options.texi (SourcerInclude): Mention options-save.c.
7408 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7409 (OBJS): Add options-save.o.
7410 (options-save.c, options-save.o): New.
7411 (options.o): Update dependencies.
7412 (gcc-options.o): Remove.
7413 (mostlyclean): Remove options-save.c.
7414
0e0d82a7
JJ
74152011-05-23 Jakub Jelinek <jakub@redhat.com>
7416
9166988f
JJ
7417 PR debug/49032
7418 * dbxout.c: Include cgraph.h.
7419 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7420 and without value expr, return NULL if no varpool node exists for
7421 it or if it is not needed.
7422 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7423
0e0d82a7
JJ
7424 PR c/49120
7425 * c-decl.c (start_decl): Convert expr to void_type_node.
7426
65712d5c
RS
74272011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7428
7429 PR rtl-optimization/48826
7430 * emit-rtl.c (try_split): When splitting a call that is followed
7431 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7432
9025085e
JJ
74332011-05-23 Jakub Jelinek <jakub@redhat.com>
7434
7435 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7436 parameters passed in memory prefer using DECL_INCOMING_RTL over
7437 the pseudos it will be copied into.
7438
34a061be
L
74392011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7440
7441 PR target/47315
7442 * config/i386/i386.c (ix86_option_override_internal): Save the
7443 initial options after checking vzeroupper.
7444
c375a3a4
DL
74452011-05-23 David Li <davidxl@google.com>
7446
7447 PR tree-optimization/48988
7448 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7449 Initialize has_valid_pred for each pred chain.
7450
e1caba18
RG
74512011-05-23 Richard Guenther <rguenther@suse.de>
7452
7453 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7454 (iterative_hash_gimple_type): Always hash type names.
7455
dde05067
NF
74562011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7457
7458 * c-typeck.c (build_function_call_vec): Tweak call to
7459 check_function_arguments.
7460
094f6ab3
RG
74612011-05-23 Richard Guenther <rguenther@suse.de>
7462
7463 PR tree-optimization/49115
7464 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7465 is not necessarily carried out, do not claim it kills the ref.
7466 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7467
9a9822e1
RG
74682011-05-23 Richard Guenther <rguenther@suse.de>
7469
7470 PR middle-end/15419
7471 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7472 what pointer types we accept for folding.
7473
c8028650
RO
74742011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7475
7476 * gthr-gnat.c: Remove.
7477 * gthr-gnat.h: Remove.
7478 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7479 * config/t-freebsd (LIB2ADDEH): Likewise.
7480 * config/t-linux (LIB2ADDEH): Likewise.
7481 * config/t-sol2 (LIB2ADDEH): Likewise.
7482 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7483 * configure.ac (target_thread_file): Remove gnat handling.
7484 * configure: Regenerate.
7485 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7486
15882fe9
TG
74872011-05-23 Tristan Gingold <gingold@adacore.com>
7488 Eric Botcazou <ebotcazou@adacore.com>
7489
7490 * gcov.c (create_file_names): If no object directory is specified,
7491 keep the directory of the file.
7492
da90c957
RO
74932011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7494
7495 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7496 * configure: Regenerate.
7497
7bba408b
JJ
74982011-05-23 Jakub Jelinek <jakub@redhat.com>
7499
7500 PR middle-end/48973
7501 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7502 failed and the comparison has a single bit signed type, use
7503 constm1_rtx instead of const1_rtx for true value.
7504 (do_store_flag): If ops->type is single bit signed type, disable
7505 signel bit test optimization and pass -1 instead of 1 as last
7506 parameter to emit_store_flag_force.
7507
bc69f7ff
TV
75082011-05-23 Tom de Vries <tom@codesourcery.com>
7509
7510 PR target/45098
7511 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7512 function.
7513 (infer_loop_bounds_from_undefined): Use new function.
7514
29cedf8e
RS
75152011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7516
7517 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7518 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7519 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7520 and -O0 otherwise.
7521 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7522
afe8b6ec
EB
75232011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7524
7525 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7526 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7527 returns true.
7528
872dab53
RS
75292011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7530
7531 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7532
145f6c5b
EB
75332011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7534
7535 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7536 UNSPEC_MOVE_PIC pattern.
7537
8ac79835
EB
75382011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7539
7540 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7541 (sparc-*-rtems*): Likewise.
7542 (sparc64-*-elf*): Likewise.
7543 (sparc64-*-rtems*): Likewise.
7544 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7545 * config/sparc/t-crtin: New file.
7546 * config/sparc/t-sol2 (crti.o): Delete rule.
7547 (crtn.o): Likewise.
7548 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7549 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7550 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7551 (ENDFILE_SPEC): Add crtn.o.
7552
5fb43dd8
TV
75532011-05-22 Tom de Vries <tom@codesourcery.com>
7554
7555 PR middle-end/48689
7556 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7557 CODE_CONTAINS_STRUCT (TS_COMMON).
7558
ccb1b17b
JJ
75592011-05-22 Jakub Jelinek <jakub@redhat.com>
7560
7561 PR middle-end/49029
7562 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7563 only after deciding which mode to use.
7564
50ad7db2
TV
75652011-05-22 Tom de Vries <tom@codesourcery.com>
7566
7567 PR target/45098
dc0a3366 7568 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
7569 for call to get_shiftadd_cost.
7570
ef230b38
UB
75712011-05-22 Uros Bizjak <ubizjak@gmail.com>
7572
7573 PR target/49104
7574 * config/i386/cpuid.h (bit_MMXEXT): New define.
7575
15f072f9
NC
75762011-05-22 Nick Clifton <nickc@redhat.com>
7577
7578 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7579 initialisation of non-existant args[2] element. Use args[] array
7580 not arg[] array to pass arguments to build_function_type_list.
7581
e38fdc94
IR
75822011-05-22 Ira Rosen <ira.rosen@linaro.org>
7583
7584 PR tree-optimization/49087
ef230b38 7585 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 7586
5b018c65
JM
75872011-05-21 Jason Merrill <jason@redhat.com>
7588
7589 PR c++/49092
7590 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7591 static storage duration.
7592
abd9a770
EB
75932011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7594
7595 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7596 frame pointer.
7597
bd9a3248
EB
75982011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7599
7600 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7601 false if there are call-saved registers here...
7602 (sparc_can_use_return_insn_p): ...but here instead.
7603 (save_or_restore_regs): Fix thinko.
7604 (sparc_expand_prologue): Use current_function_is_leaf.
7605 (sparc_frame_pointer_required): Likewise.
7606
a5dfec9a
NC
76072011-05-21 Nick Clifton <nickc@redhat.com>
7608
7609 PR target/49098
7610 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7611
555c3771
NP
76122011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7613
7614 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7615 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7616
86fa5de4
JM
76172011-05-21 Joseph Myers <joseph@codesourcery.com>
7618
7619 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7620 * optc-gen.awk: Move common code to opt-read.awk.
7621 * opth-gen.awk: Likewise.
ef230b38 7622 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 7623
bce33ab2
NF
76242011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7625
7626 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7627
e6450c11
TV
76282011-05-20 Tom de Vries <tom@codesourcery.com>
7629
7630 PR target/45098
7631 * tree-ssa-loop-ivopts.c: Include expmed.h.
7632 (get_shiftadd_cost): New function.
7633 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7634
0e8b84ec
JJ
76352011-05-20 Jakub Jelinek <jakub@redhat.com>
7636
7637 PR bootstrap/49086
7638 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7639 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7640
946bdf67
JM
76412011-05-20 Joseph Myers <joseph@codesourcery.com>
7642
7643 * Makefile.in: Update comment referring to $(OBJS-common).
7644
c53aafdf
ILT
76452011-05-20 Ian Lance Taylor <iant@google.com>
7646
7647 * godump.c (go_output_typedef): Put enum constants in the macro
7648 hash table to avoid duplicate Go const definitions.
7649
2691e6d7
JM
76502011-05-20 Joseph Myers <joseph@codesourcery.com>
7651
7652 * Makefile.in (LIBDEPS): Add libcommon.a.
7653 (LIBS): Likewise.
7654 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7655 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7656 pretty-print.o and version.o.
7657 (OBJS-libcommon): New.
7658 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7659 (BACKEND): Add libcommon.a.
7660 (MOSTLYCLEANFILES): Likewise.
7661 (libcommon.a): New.
7662 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7663 (cpp$(exeext)): Likewise.
7664 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7665 pretty-print.o and input.o.
7666 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7667 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7668 (errors.o): Remove.
7669 (mips-tfile): Don't explicitly use version.o.
7670 (mips-tdump): Likewise.
7671 (gcov.o): Depend on $(DIAGNOSTIC_H).
7672 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7673 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7674 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7675 * gcov-dump.c: Include intl.h and diagnostic.h.
7676 (main): Initialize diagnostics.
7677 * gcov.c: Include diagnostic.h.
7678 (fnotice): Remove.
7679 (main): Initialize diagnostics.
7680 * lto-wrapper.c: Include diagnostic.h.
7681 (main): Initialize diagnostics.
7682
252b3e8c
MM
76832011-05-20 Michael Matz <matz@suse.de>
7684
7685 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7686
2ee36ba6
MM
76872011-05-20 Michael Matz <matz@suse.de>
7688 Richard Guenther <rguenther@suse.de>
7689
7690 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7691 use lto_streamer_cache_append directly instead of returning a VEC.
7692 (preload_common_node): Remove.
7693 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7694 track seen nodes.
7695 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7696
90ff582f
RG
76972011-05-20 Richard Guenther <rguenther@suse.de>
7698
7699 PR tree-optimization/49079
7700 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7701 MEM_REFs correctly for the trailing array access detection.
7702 Special case constants the same way as decls for overall size
7703 constraining.
7704
3cda91d8
UB
77052011-05-20 Uros Bizjak <ubizjak@gmail.com>
7706
7707 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7708 argument expansion.
7709
6c66f733
JJ
77102011-05-20 Jakub Jelinek <jakub@redhat.com>
7711
7712 PR tree-optimization/49073
3cda91d8
UB
7713 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7714 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
7715 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7716
0ea80a16
RG
77172011-05-20 Richard Guenther <rguenther@suse.de>
7718
7719 PR middle-end/48849
7720 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7721 of pointer types the same way the middle-end does.
7722
fb291a1e
RG
77232011-05-20 Richard Guenther <rguenther@suse.de>
7724
3cda91d8
UB
7725 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7726 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 7727
37cb25ed
QN
77282011-05-19 Quentin Neill <quentin.neill@amd.com>
7729
7730 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7731 (fma4_fmaddsub): Likewise
7732
a30726a4
JH
77332011-05-19 Jan Hubicka <jh@suse.cz>
7734
7735 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7736 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7737 (type_pair_cache): New static var.
7738 (lookup_type_pair): Use fixed sized custom hash; make inline.
7739 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7740 calls of lookup_type_pair.
7741 (print_gimple_types_stats): Remove cache stats.
7742 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7743 and gtc_ob.
7744
0955cf61
UB
77452011-05-19 Uros Bizjak <ubizjak@gmail.com>
7746
7747 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7748 when TARGET_RDRND is active.
7749 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7750 Generate dummy SImode target register when target is NULL.
7751
12d844c8
JM
77522011-05-19 Joseph Myers <joseph@codesourcery.com>
7753
7754 * config/arm/arm-fpus.def: New.
7755 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7756 arm-fpus.def.
7757 * config/arm/arm-tables.opt: Regenerate.
7758 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7759 (arm_option_override): Don't decode FPU name to string here.
7760 * config/arm/arm.opt (mfpu=): Use Enum.
7761 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7762 Update dependencies.
7763
9e350e99
JM
77642011-05-19 Joseph Myers <joseph@codesourcery.com>
7765
7766 * collect2.c: Include diagnostic.h.
7767 (fatal_perror, fatal, error, fancy_abort): Remove.
7768 (main): Set progname. Call xmalloc_set_program_name and
7769 diagnostic_initialize.
7770 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7771 scan_libraries, resolve_lib_name): Call fatal_error instead of
7772 fatal and fatal_perror.
7773 * collect2.h (error, fatal, fatal_perror): Don't declare.
7774 * tlink.c: Include diagnostic-core.h.
7775 (recompile_files): Call fatal_error instead of fatal_perror.
7776 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7777 pretty-print.o and input.o.
7778 (collect2.o, tlink.o): Update dependencies.
7779
86ff4081
RO
77802011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7781
7782 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7783
2ca48caa
RO
77842011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7785
7786 PR target/40483
7787 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7788 COMDAT group syntax, both SPARC and x86 variants.
7789 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7790 * configure: Regenerate.
7791 * config/sol2.h (TARGET_SOLARIS): Define.
7792 (PUSHSECTION_FORMAT): Remove.
7793 (SECTION_NAME_FORMAT): Define.
7794 * config/sol2.c: Include hashtab.h.
7795 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7796 expansion, using SECTION_NAME_FORMAT.
7797 (solaris_comdat_htab): New variable.
7798 (struct comdat_entry): Define.
7799 (comdat_hash): New function.
7800 (comdat_eq): New function.
7801 (solaris_elf_asm_comdat_section): New function.
7802 (solaris_define_comdat_signature): New function.
7803 (solaris_code_end): New function.
7804 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7805 (solaris_code_end): Declare.
7806 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7807 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7808 solaris_code_end.
7809 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7810 Remove ATTRIBUTE_UNUSED.
7811 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7812 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 7813 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
7814 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7815 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7816 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7817 (PUSHSECTION_FORMAT): Remove.
7818 (SECTION_NAME_FORMAT): Redefine.
7819
da5fb469
KT
78202011-05-19 Kai Tietz <ktietz@redhat.com>
7821
7822 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7823 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7824 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7825
1651e703 78262011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
7827 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7828
7829 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7830
e497b9bd
RG
78312011-05-19 Richard Guenther <rguenther@suse.de>
7832
7833 PR middle-end/48985
7834 * tree-object-size.c (addr_object_size): If the pointed-to
7835 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7836
31b3ca64
RG
78372011-05-19 Richard Guenther <rguenther@suse.de>
7838
7839 * gimple.c (gimple_types_compatible_p_1): Compare names of
7840 the types themselves.
7841 (iterative_hash_gimple_type): And hash them that way.
7842 (gimple_register_type_1): If we register a main variant properly
7843 initialize the leader to ourselves.
7844
bb8d292d
TV
78452011-05-19 Tom de Vries <tom@codesourcery.com>
7846
7847 PR target/45098
7848 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7849 get_loop_invariant_expr_id.
7850 (get_loop_invariant_expr_id): Use get_expr_id.
7851 (parm_decl_cost): New function.
7852 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7853 Improve bound cost estimation. Use different inv_expr_id for elim and
7854 express cases.
7855
a53c5024
TV
78562011-05-19 Tom de Vries <tom@codesourcery.com>
7857
7858 PR target/45098
7859 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7860 cost_base.cost == 0.
7861
31f9eb59
L
78622011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7863
7864 PR target/49002
66bd20e7
EB
7865 * config/i386/sse.md
7866 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7867 load cast.
31f9eb59 7868
681056ae
JJ
78692011-05-18 Jakub Jelinek <jakub@redhat.com>
7870
7871 PR tree-optimization/49039
7872 * tree-vrp.c (extract_range_from_binary_expr): For
7873 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7874 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7875
b5ee6752
TV
78762011-05-18 Tom de Vries <tom@codesourcery.com>
7877
7878 PR target/45098
7879 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7880
0bda47a3
UB
78812011-05-18 Uros Bizjak <ubizjak@gmail.com>
7882
7883 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7884 (*tls_global_dynamic_64): Ditto.
7885 (*tls_local_dynamic_base_32_gnu): Ditto.
7886 (*tls_local_dynamic_base_64): Ditto.
7887 (tls_initial_exec_64_sun): Ditto.
7888
033b0805
SH
78892011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7890
7891 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7892 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7893 bf592-none.
7894 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7895 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7896 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7897 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 7898 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
7899 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7900 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7901
ba163417
JM
79022011-05-18 Joseph Myers <joseph@codesourcery.com>
7903
7904 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 7905 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
7906 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7907 target_thread_pointer, arm_structure_size_boundary, struct
7908 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7909 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
7910 (arm_option_override) Don't process most enumerated option values here.
7911 Don't process target_fpe_name here. Work with integer not string for
7912 structure size boundary; use separate diagnostics for each case.
ba163417
JM
7913 * config/arm/arm.h (enum float_abi_type, enum
7914 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7915 to arm-opts.h.
7916 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7917 arm_structure_size_boundary): Remove.
7918 * config/arm/arm.opt (mabi=): Use Enum and Init.
7919 (arm_abi_type): New Enum and EnumValue entries.
7920 (mfloat-abi=): Use Enum and Init.
7921 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 7922 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
7923 (mfp16-format=): Use Enum and Init.
7924 (arm_fp16_format_type): New Enum and EnumValue entries.
7925 (mstructure-size-boundary=): Use UInteger and Init.
7926 (mtp=): Use Enum and Init.
7927 (arm_tp_type): New Enum and EnumValue entries.
7928
179184e3
RG
79292011-05-18 Richard Guenther <rguenther@suse.de>
7930
7931 PR tree-optimization/49018
7932 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7933 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7934 gimple_has_side_effects.
7935
93b2a207
RG
79362011-05-18 Richard Guenther <rguenther@suse.de>
7937
7938 * gimple.c (gimple_register_type_1): New function, split out from ...
7939 (gimple_register_type): ... here. Avoid infinite recursion.
7940
b010117a
IR
79412011-05-18 Ira Rosen <ira.rosen@linaro.org>
7942
7943 PR tree-optimization/41881
7944 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7945 reduction_chains along with a macro for its access.
7946 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7947 (destroy_loop_vec_info): Free reduction chains.
7948 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7949 (vect_is_slp_reduction): New function.
7950 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7951 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7952 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7953 definition types for reduction chains.
7954 (vect_supported_load_permutation_p): Don't allow permutations for
7955 reduction chains.
7956 (vect_analyze_slp_instance): Support reduction chains.
7957 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7958 (vect_get_constant_vectors): Handle reduction chains.
7959 (vect_schedule_slp_instance): Mark the first statement of the
7960 reduction chain as reduction.
7961
e14c1050
IR
79622011-05-18 Ira Rosen <ira.rosen@linaro.org>
7963
7964 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7965 names for group elements access.
7966 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7967 reduction chains as well. Remove data reference and interleaving
7968 related words from the fields names.
7969 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7970 elements access.
7971 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7972 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7973 vect_update_interleaving_chain, vect_same_range_drs,
7974 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7975 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7976 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7977 vect_analyze_group_access, vect_analyze_data_ref_access,
7978 vect_create_data_ref_ptr, vect_transform_strided_load,
7979 vect_record_strided_load_vectors): Likewise.
7980 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7981 vect_model_load_cost, vectorizable_store, vectorizable_load,
7982 vect_remove_stores, new_stmt_vec_info): Likewise.
7983 * tree-vect-slp.c (vect_build_slp_tree,
7984 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7985
51c213f7
RG
79862011-05-18 Richard Guenther <rguenther@suse.de>
7987
7988 PR middle-end/48989
7989 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7990 operand verification.
7991 (verify_gimple_assign_binary): Likewise.
7992 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7993 to non-1-precision BOOLEAN_TYPEs.
7994
8f5e5434
TV
79952011-05-18 Tom de Vries <tom@codesourcery.com>
7996
7997 PR target/45098
7998 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7999
116bc3a4
JJ
80002011-05-18 Jakub Jelinek <jakub@redhat.com>
8001
8002 PR tree-optimization/49000
8003 * tree-ssa.c (execute_update_addresses_taken): Call
8004 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
8005 be rewritten and decl has been marked for renaming, reset
8006 the debug stmt.
8007
26a8964c
JM
80082011-05-17 Joseph Myers <joseph@codesourcery.com>
8009
8010 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
8011 enum_opts_set when testing if attributes have set -mfpmath=.
8012
82bd45d7
RS
80132011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
8014
8015 * config/mips/mips.c (mips_handle_option): Remove unused variable.
8016
267ffce3
UB
80172011-05-17 Uros Bizjak <ubizjak@gmail.com>
8018
8019 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
8020 info->entry with 0
8021 * tree-inline.c (maybe_inline_call_in_expr): Initialize
8022 id.transform_lang_insert_block with NULL.
8023
80242011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
8025
8026 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
8027 (output_fp_compare): Change args 3 and 4 to bool.
8028 (ix86_expand_call): Change arg 6 to bool.
8029 (ix86_attr_length_immediate_default): Change arg 2 to bool.
8030 (ix86_attr_length_vex_default): Change arg 3 to bool.
8031 * config/i386/i386.md: Update all uses.
8032 * config/i386/i386.c: Ditto.
8033 (ix86_flags_dependent): Change return type to bool.
8034
5beaf664
RG
80352011-05-17 Richard Guenther <rguenther@suse.de>
8036
8037 * gimple.c (type_hash_pair_compare): Fix comparison.
8038
008bad7a
RG
80392011-05-17 Richard Guenther <rguenther@suse.de>
8040
8041 * gimple.c (iterative_hash_gimple_type): Simplify singleton
8042 case some more, fix final hash value of the non-singleton case.
8043
36461340
RG
80442011-05-17 Richard Guenther <rguenther@suse.de>
8045
8046 PR bootstrap/49013
8047 Revert
8048 2011-05-16 Richard Guenther <rguenther@suse.de>
8049
8050 * gimple.c (gimple_types_compatible_p_1): Use names of the
8051 type itself, not its main variant.
8052 (iterative_hash_gimple_type): Likewise.
8053
6b6a59f3
RG
80542011-05-17 Richard Guenther <rguenther@suse.de>
8055
8056 * gimple.c (gimple_register_canonical_type): Use the main-variant
8057 leader for computing the canonical type.
8058
4ffc4134
NC
80592011-05-17 Nick Clifton <nickc@redhat.com>
8060
a1d8754e
NC
8061 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
8062 moves.
8063
4ffc4134
NC
8064 * config/rx/rx.md: Add peephole to remove redundant extensions
8065 after loads.
39960f7a
NC
8066 (bitset_in_memory): Use rx_restricted_mem_operand.
8067 (bitinvert_in_memory): Likewise.
8068 (bitclr_in_memory): Likewise.
4ffc4134 8069
b3db92ac
KI
80702011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
8071 Nick Clifton <nickc@redhat.com>
8072
8073 * config/rx/rx.md: Add peepholes to match a register move followed
8074 by a comparison of the moved register. Replace these with an
8075 addition of zero that does both actions in one instruction.
8076
8637e32a
JJ
80772011-05-17 Jakub Jelinek <jakub@redhat.com>
8078
8079 PR target/48986
8080 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
8081 predicate to allow CONST_INT.
8082 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
8083
8023568e
JM
80842011-05-16 Joseph Myers <joseph@codesourcery.com>
8085
8086 * opts-common.c (opt_enum_arg_to_value): New.
8087 * opts.h (opt_enum_arg_to_value): Declare.
8088 * config/i386/i386.opt (fpmath): Remove.
8089 (mfpmath=): Use Enum, Init and Save.
8090 (fpmath_unit): New Enum and EnumValue entries.
8091 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
8092 name for function fpmath state.
8093 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
8094 * config/i386/i386.c: Include diagnostic.h.
8095 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 8096 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 8097 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 8098 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
8099 (x86_function_specific_save, ix86_function_specific_restore):
8100 Don't handle fpmath state specially.
8101 (ix86_function_specific_print): Pass fpmath state to
8102 ix86_target_string instead of printing in this function.
8103 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
8104 Handle enum attributes.
8105 (IX86_ATTR_ENUM, ix86_opt_enum): New.
8106 (ix86_valid_target_attribute_tree): Update option_strings
8107 handling. Handle fpmath as enum option.
8108 (ix86_can_inline_p): Update field names for function fpmath state.
8109 (ix86_expand_builtin): Update call to ix86_target_string.
8110 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
8111 (ix86_fpmath): Remove.
8112 * config/i386/t-i386 (i386.o): Update dependencies.
8113
9e8d926e
JM
81142011-05-16 Joseph Myers <joseph@codesourcery.com>
8115
8116 PR preprocessor/48677
8117 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
8118 from decoded_options[0], not from itself.
8119
f6449011
UB
81202011-05-16 Uros Bizjak <ubizjak@gmail.com>
8121
8122 * config/i386/constraints.md (z): New constraint.
8123 * config/i386/i386.c (c): New mode attribute.
8124 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
8125 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
8126 constraint for operand 0.
8127 (*call_vzeroupper): Ditto.
8128 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
8129 (*call_rex64_ms_sysv_vzeroupper): Ditto.
8130 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
8131 Use "lzm" constraint for operand 0.
8132 (*call_pop_vzeroupper): Ditto.
8133 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
8134 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
8135 constraint for operand 0.
8136 (*sibcall_vzeroupper): Ditto.
8137 (*sibcall_rex64_ms_sysv): Ditto.
8138 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
8139 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
8140 *sibcall_pop_1. Use "Uz" constraint for operand 0.
8141 (*sibcall_pop_vzeroupper): Ditto.
8142 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
8143 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
8144 mode iterator. Use "<c>zm" constraint for operand 1.
8145 (*call_value_vzeroupper): Ditto.
8146 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 8147 for operand 1.
f6449011
UB
8148 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
8149 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
8150 *call_value_pop_1. Use "lzm" constraint for operand 1.
8151 (*call_value_pop_vzeroupper): Ditto.
8152 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
8153 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
8154 mode iterator. Use "Uz" constraint for operand 1.
8155 (*sibcall_value_vzeroupper): Ditto.
8156 (*sibcall_value_rex64_ms_sysv): Ditto.
8157 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
8158 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
8159 constraint for operand 1.
8160 (*sibcall_value_pop_vzeroupper): Ditto.
8161 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
8162 and "z" constraint for operand 2.
8163 (*tls_global_dynamic_32_gnu): Ditto.
8164 (*tls_local_dynamic_base_32_gnu): Ditto.
8165 (*tls_local_dynamic_base_64): Ditto.
8166 (*tls_local_dynamic_32_once): Ditto.
8167 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
8168 Update all callers.
8169 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
8170
c11b6902
RG
81712011-05-16 Richard Guenther <rguenther@suse.de>
8172
8173 * gimple.c (gimple_types_compatible_p_1): Use names of the
8174 type itself, not its main variant.
8175 (iterative_hash_gimple_type): Likewise.
8176
1e83b5f1
RG
81772011-05-16 Richard Guenther <rguenther@suse.de>
8178
f6449011
UB
8179 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
8180 always visit pointer target and function result and argument types.
1e83b5f1 8181
62e36382
JM
81822011-05-16 Jason Merrill <jason@redhat.com>
8183
8184 PR c++/48999
8185 * tree-inline.c (copy_statement_list): Put back recursion.
8186
687027a4
GJL
81872011-05-16 Georg-Johann Lay <avr@gjlay.de>
8188
8189 PR target/27663
8190 PR target/41076
8191 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8192 * config/avr/avr.md ("*ior<mode>qi.byte0",
8193 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8194
f24a5190
GJL
81952011-05-16 Georg-Johann Lay <avr@gjlay.de>
8196
8197 PR target/45099
8198 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8199 register is needed for a function argument.
8200
3066f593
RG
82012011-05-16 Richard Guenther <rguenther@suse.de>
8202
8203 * gimple.c (struct type_hash_pair): New type.
8204 (type_hash_pair_compare): New function.
f6449011 8205 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 8206
b2ab2cf4
RE
82072011-05-16 Revital Eres <revital.eres@linaro.org>
8208
f6449011 8209 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 8210
dfb737fc
UB
82112011-05-15 Uros Bizjak <ubizjak@gmail.com>
8212
8213 * config/i386/i386.md (floating point move splitters): Fix
8214 usage of standard_80387_constant_p.
f6449011 8215 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 8216
8caa1de0
UB
82172011-05-15 Uros Bizjak <ubizjak@gmail.com>
8218
8219 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8220
8a519095
EB
82212011-05-14 Eric Botcazou <ebotcazou@adacore.com>
8222
8223 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8224 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8225 (tree_ssa_lim_finalize): Likewise.
8226
479fecd3
UB
82272011-05-14 Uros Bizjak <ubizjak@gmail.com>
8228
8229 * config/i386/constraint.md (Yd, Yx): New register constraints.
8230 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
8231 Yd conditional register constraint.
8232 (*movtf_internal): Use standard_sse_constant_opcode.
8233 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
8234 Yx conditional register constraint.
8235 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
8236 Yd conditional register constraint. Use standard_sse_constant_p to
8237 check for valid SSE constants and call standard_sse_constant_opcode to
8238 output SSE insn.
8239 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8240 constants and call standard_sse_constant_opcode to output SSE insn.
8241 * config/i386/i386.c (ix86_option_ovverride_internal): Set
8242 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
8243 optimize_size is set.
8244 (standard_sse_constant_opcode): Output conditional AVX insn templates.
8245
2d8c9ad5
TB
82462011-05-14 Tobias Burnus <burnus@net-b.de>
8247
8248 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8249
411a20d6
MJ
82502011-05-13 Martin Jambor <mjambor@suse.cz>
8251
8252 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8253 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8254 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8255 (evaluate_conditions_for_ipcp_clone): Removed.
8256 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8257 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8258 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8259
dc764d10
EB
82602011-05-13 Eric Botcazou <ebotcazou@adacore.com>
8261
8262 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8263 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8264 lieu of MAY_HAVE_DEBUG_STMTS.
8265 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8266 debug statements if !MAY_HAVE_DEBUG_STMTS.
8267
9f47a24e
MT
82682011-05-13 Martin Thuresson <martint@google.com>
8269
8270 PR gcov-profile/47793
8271 * libgcov.c (gcov_exit): Support relative profile paths.
8272 * doc/invoke.texi (-fprofile-dir): Update for above change.
8273
b8a71aed
RG
82742011-05-13 Richard Guenther <rguenther@suse.de>
8275
8276 * gimple.c (gimple_canonical_types_compatible_p): Do not use
8277 type-pair caching, do not compare hashes.
8278
eb9f9259
NF
82792011-05-13 Nathan Froyd <froydnj@codesourcery.com>
8280
8281 PR middle-end/48965
8282 * tree-cfg.c (edge_to_cases_cleanup): Return true.
8283 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8284
3c6cbf7a
KT
82852011-05-13 Kai Tietz <ktietz@redhat.com>
8286
8287 * gimplify.c (gimplify_expr): Make sure operand is boolified.
8288 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8289 compatible type for TRUTH_NOT_EXPR.
8290
2e7f5dc0
L
82912011-05-13 H.J. Lu <hongjiu.lu@intel.com>
8292
dc764d10 8293 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
8294 (ix86_hard_regno_mode_ok): Change return value to bool. Use
8295 can_create_pseudo_p ().
8296
e834e95c
RG
82972011-05-13 Richard Guenther <rguenther@suse.de>
8298
8299 PR lto/48978
8300 * gimple.c (iterative_hash_gimple_type): Revert change in
8301 pointer target and function result and argument hashing.
8302
34203483
UB
83032011-05-13 Uros Bizjak <ubizjak@gmail.com>
8304
8305 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8306 (*movxf_internal_nointeger): Ditto.
8307 (*movdf_internal_rex64): Ditto.
8308 (*movdf_internal): Ditto.
8309 (*movdf_internal_nointeger): Ditto.
8310 (*movsf_internal): Ditto.
8311 (sincos splitters): Use can_create_pseudo ().
8312
7eb68c06
JM
83132011-05-13 Joseph Myers <joseph@codesourcery.com>
8314
8315 * config/i386/i386-opts.h: New.
8316 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8317 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8318 ix86_section_threshold): Remove.
8319 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8320 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8321 OPT_mbranch_cost_.
8322 (ix86_option_override_internal): Don't decode strings for options
8323 other than -march=, -mtune= and -mfpmath=. Don't allow for
8324 __attribute__ uses in remaining diagnostics for options with
34203483 8325 string arguments. Don't check for integer arguments being negative.
7eb68c06 8326 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 8327 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
8328 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8329 ix86_branch_cost, ix86_section_threshold): Remove.
8330 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8331 HeaderInclude.
8332 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8333 but not Var.
8334 (masm=): Use Enum and Init.
8335 (asm_dialect): New Enum and EnumValue entries.
8336 (mbranch-cost=): Use UInteger.
8337 (mlarge-data-threshold=): Use UInteger and Init.
8338 (mcmodel=): Use Enum and Init.
8339 (cmodel): New Enum and EnumValue entries.
8340 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8341 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8342 mregparm=): Use UInteger.
8343 (mstringop-strategy=): Use Enum and Init.
8344 (stringop_alg): New Enum and EnumValue entries.
8345 (mtls-dialect=): Use Enum and Init.
8346 (tls_dialect): New Enum and EnumValue entries.
8347 (mabi=): Use Enum and Init.
8348 (calling_abi): New Enum and EnumValue entries.
8349 (mveclibabi=): Use Enum and Init.
8350 (ix86_veclibabi): New Enum and EnumValue entries.
8351
f67e203c
NC
83522011-05-13 Nick Clifton <nickc@redhat.com>
8353
34203483
UB
8354 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8355 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 8356
221df0b6
KT
83572011-05-13 Kai Tietz <ktietz@redhat.com>
8358
8359 PR middle-end/48984
8360 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8361 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8362 (gimple_boolify): Check for cast for boolean_type_node instead for
8363 BOOLEAN_TYPE.
8364
208cb8cb
RG
83652011-05-13 Richard Guenther <rguenther@suse.de>
8366
8367 PR tree-optimization/48172
8368 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8369 multiplying by number of iterations for equal step.
8370 (vect_create_cond_for_alias_checks): Likewise.
8371
b88ecf55
AS
83722011-05-13 Andreas Schwab <schwab@redhat.com>
8373
8374 * configure.ac: Use AS_HELP_STRING throughout.
8375 * configure: Regenerate.
8376
569b527e
L
83772011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8378
34203483 8379 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
8380 (ix86_emit_restore_regs_using_mov): Likewise.
8381 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8382
8b9a1428
AS
83832011-05-12 Anatoly Sokolov <aesok@post.ru>
8384
8385 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8386 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8387 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8388 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8389 RTX_OK_FOR_OLO10_P): ...here.
8390 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8391 SYMBOLIC_CONST.
8392
1d15f620
KT
83932011-05-12 Kai Tietz <ktietz@redhat.com>
8394
8395 * gimplify.c (gimple_boolify): Re-boolify expression
8396 arguments even if expression type is of kind BOOLEAN_TYPE.
8397 (gimplify_boolean_expr): Removed.
8398 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8399 and XOR. Additional take care that we keep expression's type.
8400 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8401 of TRUTH_AND|OR|XOR_EXPR.
8402
c2b5fc8d
JJ
84032011-05-12 Jakub Jelinek <jakub@redhat.com>
8404
8405 PR tree-optimization/48975
8406 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8407 on all bbs here and free and clear ifc_bbs at the end.
8408
61332f77
RG
84092011-05-12 Richard Guenther <rguenther@suse.de>
8410
8411 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8412 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8413 until after simple checks.
8414 (gimple_types_compatible_p): Likewise.
8415 (iterative_hash_gimple_type): Always hash pointer targets
8416 and function return and argument types.
8417 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8418 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8419 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8420 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8421 completely in the simple compare section.
8422 (gimple_register_canonical_type): Query the cache again after
8423 registering.
8424
e2a3a5f1
RG
84252011-05-12 Richard Guenther <rguenther@suse.de>
8426
8427 PR tree-optimization/48172
8428 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8429 the number of iterations from the segment size calculation.
8430 (vect_create_cond_for_alias_checks): Adjust.
8431
2c703f3a
JJ
84322011-05-12 Jakub Jelinek <jakub@redhat.com>
8433
8434 PR debug/48967
8435 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8436 if validate_subreg fails.
8437
84382011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
8439
8440 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8441 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8442 early.
8443
87e91fca
DD
84442011-05-12 DJ Delorie <dj@redhat.com>
8445
d53903d6 8446 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
8447 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8448 created builtin into rx_builtins array.
8449 (rx_builtin_decl): New function.
34203483 8450 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 8451
5f2f13fd
DD
84522011-05-12 DJ Delorie <dj@redhat.com>
8453 Nick Clifton <nickc@redhat.com>
8454
8455 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8456 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8457 (rx_is_legitimate_address): Add pre-decrement and post-increment
8458 addressing in HImode and QImode. Fix test for out of range
8459 REG+INT addressing.
87e91fca 8460 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 8461 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 8462 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 8463 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 8464
57421f45
JM
84652011-05-11 Jason Merrill <jason@redhat.com>
8466
8467 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8468
898c90c0
EB
84692011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8470
8471 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8472 reindent the subsequent block.
8473
79bec923
ST
84742011-05-11 Satoru Takabayashi <satorux@google.com>
8475 Paul Pluzhnikov <ppluzhnikov@google.com>
8476
34203483 8477 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
8478 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8479 * config.in: Add LINKER_HASH_STYLE.
8480 * configure.ac: Add --with-linker-hash-style.
8481 * configure: Regenerate.
79bec923 8482
d0340959
RG
84832011-05-11 Richard Guenther <rguenther@suse.de>
8484
8485 PR middle-end/48964
8486 * gimple.c (iterative_hash_canonical_type): Fix typo.
8487
cb032fee
UB
84882011-05-11 Uros Bizjak <ubizjak@gmail.com>
8489
8490 * config/i386/i386.c (legitimize_tls_address)
479fecd3 8491 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
8492 expanders directly for TARGET_GNU2_TLS. Determine pic and
8493 __tls_get_addr symbol reference here. Update call to
8494 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 8495 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
8496 expanders directly for TARGET_GNU2_TLS. Determine
8497 __tls_get_addr symbol reference here. Update call to
8498 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8499 unique UNSPEC REG_EQUIV to libcall block.
8500 (ix86_tls_get_addr): Declare static.
8501 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8502 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8503 Do not determine pic and __tls_get_addr symbol reference here. Do not
8504 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8505 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8506 (tls_global_dynamic_64): Add operand 2. Do not determine
8507 __tls_get_addr symbol reference here. Do not call
8508 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8509 (tls_local_dynamic_base64): Ditto for operand 1.
8510
6d3cc8f0
EB
85112011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8512
8513 * function.c (expand_function_start): Initialize stack_check_probe_note
8514 only if the generic stack checking mechanism is used.
8515
51e020fc
RG
85162011-05-11 Richard Guenther <rguenther@suse.de>
8517
8518 PR tree-optimization/15256
8519 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8520 (A & B) | C, combine (A op CST1) op CST2.
8521 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8522 visit assigns that have uses.
8523
51545682
NF
85242011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8525
cb032fee 8526 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
8527 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8528 (unpack_ts_type_common_value_fields): ...this. Update comment.
8529 (unpack_value_fields): Adjust for renaming.
8530 (lto_input_ts_type_tree_pointers): Split into...
8531 (lto_input_ts_type_common_tree_pointer): ...this and...
8532 (lto_input_ts_type_non_common_tree_pointers): ...this.
8533 (lto_input_tree_pointers): Adjust for above split.
8534 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8535 (pack_ts_type_common_value_fields): ...this. Update comment.
8536 (lto_output_ts_type_tree_pointers): Split into...
8537 (lto_output_ts_type_common_tree_pointers): ...this and...
8538 (lto_output_ts_type_non_common_tree_pointers): ...this.
8539 (lto_output_tree_pointers): Adjust for above split.
8540 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8541 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8542 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8543 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8544 Define.
8545 (struct tree_type): Split into...
8546 (struct tree_type_common: ...this and...
8547 (struct tree_type_with_lang_specific): ...this and...
8548 (struct tree_type_non_common): ...this. Adjust accessor macros
8549 accordingly.
8550 (TYPE_VALUES_RAW): Define.
8551 (union tree_node): Update for above changes.
8552 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8553 TS_TYPE_NON_COMMON.
8554 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8555 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8556 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8557 * treestructu.def (TS_TYPE): Remove.
8558 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8559 Define.
8560
b03c3082
JJ
85612011-05-11 Jakub Jelinek <jakub@redhat.com>
8562
8563 PR debug/48159
8564 * tree-ssa.c (reset_debug_uses): New function.
8565 * tree-flow.h (reset_debug_uses): New prototype.
8566 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8567 * tree-loop-distribution.c (generate_loops_for_partition): Call
8568 reset_debug_uses on the stmts that will be removed. Keep around
8569 all debug stmts, don't count them as bits in partition bitmap.
8570 (generate_builtin): Don't count debug stmts or labels as bits in
8571 partition bitmap.
8572
b5e04de5
RG
85732011-05-11 Richard Guenther <rguenther@suse.de>
8574
8575 * gimple.c (gimple_type_hash_1): Merge with ...
8576 (gimple_type_hash): ... this.
8577 (gtc_visit): Remove mode parameter and simplify accordingly.
8578 (gimple_types_compatible_p_1): Likewise.
8579 (gimple_types_compatible_p): Likewise.
8580 (iterative_hash_gimple_type): Likewise.
8581 (visit): Likewise.
8582 (gimple_type_eq): Adjust.
8583
fc6970e4
RE
85842011-05-11 Revital Eres <revital.eres@linaro.org>
8585
8586 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8587 enters the branch create an anti edge in the opposite direction
8588 to prevent the creation of reg-moves.
8589 * modulo-sched.c: Adjust comment to reflect the fact we are
8590 scheduling closing branch.
8591 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8592 (stage_count): New field in struct partial_schedule.
8593 (calculate_stage_count): New function.
8594 (normalize_sched_times): Rename to reset_sched_times and handle
8595 incrementing the sched time of the nodes by a constant value
8596 passed as parameter.
8597 (duplicate_insns_of_cycles): Skip closing branch.
8598 (sms_schedule_by_order): Schedule closing branch.
8599 (ps_insn_find_column): Handle closing branch.
8600 (sms_schedule): Call reset_sched_times and adjust the code to
8601 support scheduling of the closing branch.
8602 (ps_insert_empty_row): Update calls to normalize_sched_times
8603 and rotate_partial_schedule functions.
8604
41a58a92
RG
86052011-05-11 Richard Guenther <rguenther@suse.de>
8606
8607 PR middle-end/48953
8608 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8609
e9f8dcf9
JM
86102011-05-11 Joseph Myers <joseph@codesourcery.com>
8611
cb032fee
UB
8612 * opts.c (finish_options): Move warning settings from process_options.
8613 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 8614
10c224a9
RG
86152011-05-11 Richard Guenther <rguenther@suse.de>
8616
8617 PR tree-optimization/18041
8618 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8619 (simplify_bitwise_binary): ... this. Handle operand conversions
8620 by applying them to the result instead.
8621 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8622
825b27de
RG
86232011-05-11 Richard Guenther <rguenther@suse.de>
8624
8625 * gimple.c (gimple_canonical_types_compatible_p): Split out
8626 from gimple_types_compatible_p and friends. Do not recurse
8627 to pointed-to types.
8628 (gimple_canonical_type_eq): Use it.
8629 (iterative_hash_canonical_type): Split out from
8630 iterative_hash_gimple_type and friends. Do not recurse
8631 to pointed-to types.
8632 (gimple_canonical_type_hash): Use it, allocate the hash here.
8633
ca756625
RE
86342011-05-11 Revital Eres <revital.eres@linaro.org>
8635
8636 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8637 recognizing doloop.
8638
b8abece3
RE
86392011-05-11 Revital Eres <revital.eres@linaro.org>
8640
8641 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8642 instead of PREV_INSN.
8643
ce7b3761
RE
86442011-05-11 Revital Eres <revital.eres@linaro.org>
8645
8646 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8647 * loop-doloop.c (doloop_condition_get): Likewise.
8648 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8649 (doloop_end): New.
8650 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8651
a9dc9d37
NF
86522011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8653
8654 * tree.def (CASE_LABEL_EXPR): Add an operand.
8655 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8656
96703596
JM
86572011-05-10 Joseph Myers <joseph@codesourcery.com>
8658
8659 * c-decl.c (c_override_global_bindings_to_false): Remove.
8660 (global_bindings_p): Don't check
8661 c_override_global_bindings_to_false.
8662 * c-tree.h (c_override_global_bindings_to_false): Remove.
8663 * c-typeck.c (composite_type): Don't set
8664 c_override_global_bindings_to_false.
8665
dbcc9f08
MM
86662011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8667
8668 PR target/48857, 48495
8669 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8670 (VSX_MODE): Ditto.
8671 (VSX_MOVE_MODE): Ditto.
8672 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8673 VSX vector types. Add V2DImode.
8674 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8675 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8676 (MODES_TIEABLE_P): Ditto.
8677
8678 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8679 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8680 VSX_VECTOR_MODE.
8681 (init_cumulative_args): Ditto.
8682 (rs6000_function_arg_boundary): Ditto.
8683 (rs6000_function_arg_advance_1): Ditto.
8684 (rs6000_function_arg): Ditto.
8685 (rs6000_function_ok_for_sibcall): Ditto.
8686 (emit_frame_save): Ditto.
8687 (rs6000_function_value): Ditto.
8688 (rs6000_libcall_value): Ditto.
8689
4a68b4ca
JM
86902011-05-10 Joseph Myers <joseph@codesourcery.com>
8691
8692 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8693 i386/darwin-lib.h to $libgcc_tm_file.
8694 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8695
bcb521e9
JM
86962011-05-10 Joseph Myers <joseph@codesourcery.com>
8697
8698 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8699
f10d3ac9
JM
87002011-05-10 Joseph Myers <joseph@codesourcery.com>
8701
cb032fee 8702 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
8703 * config/rs6000/rs6000-tables.opt: New file (generated).
8704 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8705 rs6000/rs6000-tables.opt to extra_options.
8706 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8707 * config/rs6000/rs6000.c (rs6000_select): Remove.
8708 (processor_target_table): Move contents to rs6000-cpus.def.
8709 (darwin_rs6000_override_options): Check
8710 global_options_set.x_rs6000_cpu_index instead of
8711 rs6000_select[1].string.
8712 (rs6000_option_override_internal): Likewise.
8713 (rs6000_handle_option): Don't assert that global structures are in
8714 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8715 (rs6000_default_cpu): New variable.
8716 (rs6000_file_start): Set it instead of local default_cpu. Check
8717 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8718 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8719 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8720 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8721 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8722 rs6000_select): Remove.
8723 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8724 Remove.
8725 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8726 * config/rs6000/t-rs6000
8727 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8728 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8729 global_options_set.x_rs6000_cpu_index instead of
8730 rs6000_select[1].string.
8731 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8732 global_options_set.x_rs6000_cpu_index instead of
8733 rs6000_select[1].string.
8734
80cf2e08
JM
87352011-05-10 Joseph Myers <joseph@codesourcery.com>
8736
8737 * config.gcc (libgcc_tm_file): Define instead of including files
8738 from ../../libgcc/config/ in tm_file.
cb032fee 8739 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
8740 * configure: Regenerate.
8741 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8742 libgcc_tm.h, cs-libgcc_tm.h): New.
8743 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8744 (clean): Remove libgcc_tm.h.
8745 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8746 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8747 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8748
fd01a351
GJL
87492011-05-10 Georg-Johann Lay <avr@gjlay.de>
8750
8751 PR target/48896
8752 * config/avr/avr.c (avr_ret_register): Return unsigned int
8753 instead of int.
8754 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8755 it to avr_libcall_value.
8756 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8757 expand_expr.
8758 (avr_expand_binop_builtin): Ditto.
8759 (avr_expand_unop_builtin): Ditto.
8760
34cc3c86
DD
87612011-05-10 DJ Delorie <dj@redhat.com>
8762
8763 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8764 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8765 * config/rx/rx.c (rx_align_for_label): Add label and
8766 uses_threshold parameters. Do not align when the label is not
8767 used enough.
8768 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8769
be173289
RG
87702011-05-10 Richard Guenther <rguenther@suse.de>
8771
8772 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8773 a series of conversions and apply foldings similar to what
8774 fold-const does.
8775 (tree_ssa_forward_propagate_single_use_vars): Call it.
8776
e7f78021
JJ
87772011-05-10 Jakub Jelinek <jakub@redhat.com>
8778
6ae70ea2
JJ
8779 PR tree-optimization/48611
8780 PR tree-optimization/48794
8781 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8782 referenced from RESX or EH_DISPATCH arguments.
8783
e7f78021
JJ
8784 PR debug/48928
8785 * dfp.c (decimal_to_decnumber): Handle conversion from
8786 dconst{1,2,m1,half}.
8787
fca132b9
UB
87882011-05-09 Uros Bizjak <ubizjak@gmail.com>
8789
8790 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8791 for !flag_prefer_avx128.
8792 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8793
e4c03378
EB
87942011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8795
8796 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8797 (fold_ternary_loc): Use expr_location_or.
8798
805d6a75
L
87992011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8800
8801 PR debug/48853
8802 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8803 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8804 Pmode and mem_mode is not VOIDmode.
8805
e4c03378 88062011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 8807
e4c03378
EB
8808 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8809 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 8810
51e7f377
UB
88112011-05-09 Uros Bizjak <ubizjak@gmail.com>
8812
8813 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8814 (const_pow2_1_to_8_operand): Ditto.
8815 (const_pow2_1_to_128_operand): Ditto.
8816 (const_pow2_1_to_32768_operand): Ditto.
8817 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8818 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8819 in insn constraint to check integer value of operand 3.
8820 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8821
8822 (PINSR_MODE): New mode iterator.
8823 (sse2p4_1): New mode attribute.
8824 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8825 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8826 iterator. Use const_int_operand instead of
8827 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8828 exact_log2 in insn constraint to check integer value of operand 3.
8829
88302011-05-09 Uros Bizjak <ubizjak@gmail.com>
8831
8832 * config/i386/sse.md (blendbits): Remove mode attribute.
8833 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8834 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8835 Check integer value of operand 3 in insn constraint.
8836
0ca8de87
RG
88372011-05-09 Richard Guenther <rguenther@suse.de>
8838
8839 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8840 for diagnostics.
8841 (lto_symtab_merge): Likewise. Do not register types here.
8842 (lto_symtab_merge_decls_2): Likewise.
8843 (lto_symtab_merge_decls_1): Likewise.
8844 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8845 * gimple.c (enum gtc_mode): Declare.
8846 (gimple_types_compatible_p): Make static.
8847
a9e6994a
AK
88482011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8849
8850 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8851 temporary register to match Pmode.
8852
fb55d62e
UB
88532011-05-09 Uros Bizjak <ubizjak@gmail.com>
8854
8855 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8856 and *vec_concatv4si_1_avx.
8857
eb1485a6
UB
88582011-05-09 Uros Bizjak <ubizjak@gmail.com>
8859
8860 PR rtl-optimization/48927
8861 * ira-conflicts.c (commutative_constraint_p): Use
8862 recog_data.alternative_enabled_p to disable alternatives where
8863 "enabled" attribute is false.
8864 (get_dup_num): Ditto.
8865 * ira-lives.c (single_reg_class): Ditto.
8866 (ira_implicitly_set_insn_hard_regs): Ditto.
8867
c46d001a
EB
88682011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8869
8870 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8871 (dataflow_set_preserve_mem_locs): Likewise.
8872
88732011-05-09 Philipp Thomas <pth@suse.de>
8874
6d9e7c41
PT
8875 * config/mep/mep.c (mep_validate_vliw): Syntax description
8876 should not be translated.
8877
d371df6f
JM
88782011-05-09 Joseph Myers <joseph@codesourcery.com>
8879
8880 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8881 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 8882 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
8883 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8884 MIPS_ARCH_OPTION_NATIVE): Define.
8885 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8886 mips-cpus.def.
8887 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8888 mips_parse_cpu): Remove.
8889 (mips_cpu_info_from_opt, mips_default_arch): New.
8890 (mips_handle_option): Don't assert that global structures are in
8891 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8892 (mips_option_override): Use new variables and functions to set
eb1485a6 8893 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
8894 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8895 definition.
8896 * config/mips/mips.opt (march=): Use ToLower and Enum.
8897 (mips): Use ToLower, Enum and Var.
8898 (mtune=): Use ToLower and Enum.
8899 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8900
4fc07af9
JH
89012011-05-08 Jan Hubicka <jh@suse.cz>
8902
8903 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8904 Arrange type pairs to be UID ordered.
8905 (gimple_lookup_type_leader): Make inline.
8906
2cf320a8
NC
89072011-05-09 Nick Clifton <nickc@redhat.com>
8908
61d6def5
NC
8909 PR target/48899
8910 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8911 PROCESSOR_DEFAULT.
8912
2cf320a8
NC
8913 PR target/48897
8914 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8915 variable 's'.
8916
4f82319d
CLT
89172011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8918
8919 * combine.c (simplify_comparison): Abstract out parts into...
8920 (simplify_compare_const): ... new function.
8921 (try_combine): Generalize parallel arithmetic/compare combining
8922 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8923
74605a11
JH
89242011-05-08 Jan Hubicka <jh@suse.cz>
8925
8926 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
8927 (cgraph_create_virtual_clone): Call hooks once virtual clone
8928 is finished.
74605a11 8929 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
8930 * ipa-cp.c (ipcp_estimate_growth): Use
8931 estimate_ipcp_clone_size_and_time.
74605a11
JH
8932 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8933 * lto-cgraph.c (input_node): Update.
8934 * ipa-inline.c (recursive_inlining): Update.
8935 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8936 (evaluate_conditions_for_known_args): Break out from ...
8937 (evaluate_conditions_for_edge): ... here.
8938 (evaluate_conditions_for_ipcp_clone): New function.
8939 (inline_node_duplication_hook): Update clone summary based
8940 on parameter map.
8941 (estimate_callee_size_and_time): Rename to ...
8942 (estimate_node_size_and_time): take NODE instead of EDGE;
8943 take POSSIBLE_TRUTHS as argument.
8944 (estimate_callee_size_and_time): Update.
8945 (estimate_ipcp_clone_size_and_time): New function.
8946 (do_estimate_edge_time): Update.
8947
5c049507
RG
89482011-05-08 Richard Guenther <rguenther@suse.de>
8949
8950 PR middle-end/48908
8951 PR middle-end/48905
8952 * expmed.c (expand_shift_1): Compute adjusted constant shift
8953 amount manually.
8954
f64c36ba
EB
89552011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8956
8957 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8958
c461a957
EB
89592011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8960
8961 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8962
7c74e556
JW
89632011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8964
8965 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8966
b4c0a884
JH
89672011-05-07 Jan Hubicka <jh@suse.cz>
8968
a9bcb3f0
EB
8969 * ipa-inline-transform.c (inline_call): Account when program size
8970 decreases.
b4c0a884 8971 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
8972 (edge_badness): Reorganize to be power 2 based; fix thinko when
8973 computing badness for negative growth; update comments to match
8974 reality; better dumps.
b4c0a884 8975
c99c0026
EB
89762011-05-07 Eric Botcazou <ebotcazou@adacore.com>
8977
8978 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8979 type to bool and adjust comment.
8980 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8981 (fold_mathfn_compare): Remove calls to global_bindings_p.
8982 (fold_inf_compare): Likewise.
8983 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8984 * c-tree.h (global_bindings_p): Adjust prototype.
8985 * c-decl.c (global_bindings_p): Return bool and simplify.
8986
1400c8e5
ZD
89872011-05-07 Zdenek Dvorak <ook@ucw.cz>
8988
8989 PR tree-optimization/48837
8990 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8991 when accumulator transformation is performed.
8992
5d0878e7
JH
89932011-05-06 Jan Hubicka <jh@suse.cz>
8994
a9bcb3f0
EB
8995 * i386.h (ix86_tune_indices): Add
8996 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 8997 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
8998 * i386.c (initial_ix86_tune_features): Add
8999 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
9000 (software_prefetching_beneficial_p): Remove predicate.
9001 (ix86_option_override_internal): Use new macro.
9002
58696ce5
JH
90032011-05-06 Jan Hubicka <jh@suse.cz>
9004
9005 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
9006
c47d0034
JH
90072011-05-06 Jan Hubicka <jh@suse.cz>
9008
9009 * cgraph.c (cgraph_add_thunk): Create real function node instead
9010 of alias node; finalize it and mark needed/reachale; arrange visibility
9011 to be right and add it into the corresponding same comdat group list.
9012 (dump_cgraph_node): Dump thunks.
9013 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
9014 cgraph_function_with_gimple_body_p,
9015 cgraph_first_function_with_gimple_body,
c47d0034
JH
9016 cgraph_next_function_with_gimple_body): New functions.
9017 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
9018 New macros.
9019 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
9020 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9021 * cgraphunit.c (cgraph_finalize_function): Only look into possible
9022 devirtualization when optimizing.
9023 (verify_cgraph_node): Verify thunks.
9024 (cgraph_analyze_function): Analyze thunks.
9025 (cgraph_mark_functions_to_output): Output thunks only in combination
9026 with function they are assigned to.
9027 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
9028 alias into normal node.
9029 (assemble_thunks): New functoin.
9030 (cgraph_expand_function): Use it.
9031 * lto-cgraph.c (lto_output_node): Stream thunks.
9032 (input_overwrite_node): Stream in thunks.
9033 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
9034 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
9035 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
9036 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
9037 (inline_analyze_function): Do not care about thunk jump functions.
9038 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
9039 * ipa-prop.c (ipa_prop_write_jump_functions): Use
9040 cgraph_function_with_gimple_body_p.
9041 * passes.c (do_per_function_toporder): Use
9042 cgraph_function_with_gimple_body_p.
c47d0034
JH
9043 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
9044 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
9045 (function_called_by_processed_nodes_p): Likewise.
9046
d8f426ec
JM
90472011-05-06 Joseph Myers <joseph@codesourcery.com>
9048
9049 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
9050 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
9051 entries.
9052 (mabi=): Replace with separate entries for mabi=altivec,
9053 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
9054 mabi=ieeelongdouble and mabi=ibmlongdouble.
9055 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
9056 check for -mabi=spe without SPE ABI support here.
9057 (rs6000_handle_option): Replace OPT_mabi_ handling with
9058 OPT_mabi_altivec and OPT_mabi_spe handling.
9059
80bde45b
CC
90602011-05-06 Cary Coutant <ccoutant@google.com>
9061
9062 * dwarf2out.c (contains_subprogram_definition): New function.
9063 (should_move_die_to_comdat): Call it.
9064
a91926b9
JL
90652011-05-06 Jeff Law <law@redhat.com>
9066
9067 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
9068 remove_ctrl_stmt_and_useless_edges.
9069 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
9070 (fixup_template_block, thread_single_edge): Likewise.
9071 (mark_threaded_blocks): Use THREAD_TARGET.
9072
1fc1b66d
AM
90732011-05-06 Alan Modra <amodra@gmail.com>
9074
9075 PR target/48900
9076 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9077 const0_rtx as the arg to the dummy __tls_get_addr libcall.
9078
e194de64
UB
90792011-05-06 Uros Bizjak <ubizjak@gmail.com>
9080
9081 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
9082 constraint modifier to "r".
9083
d740dc9e
JM
90842011-05-06 Joseph Myers <joseph@codesourcery.com>
9085
9086 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9087 fall through for OPT_mcmodel_.
9088
cab78b15
AK
90892011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9090
9091 * config/s390/s390.c (s390_asm_trampoline_template): Comment
9092 instruction sizes.
e194de64 9093 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 9094
ee6824ae
RR
90952011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9096
eb1485a6
UB
9097 PR target/47930
9098 * config/arm/arm.opt (marm): Document it.
9099 (mthumb): Reject negative variant.
ee6824ae 9100
9ef58464
UB
91012011-05-06 Uros Bizjak <ubizjak@gmail.com>
9102
9103 PR target/48898
9104 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9105 Fix typo in "ccvt" variable name.
9106
155b6176
TG
91072011-05-06 Tristan Gingold <gingold@adacore.com>
9108
9109 PR target/48895
9110 * config/vms/vms-ar.c (main): Remove cwd variable.
9111
3becc47b
JJ
91122011-05-06 Jakub Jelinek <jakub@redhat.com>
9113
9114 PR debug/48902
9115 * var-tracking.c (prepare_call_arguments): Move else before #endif.
9116
3d528853
NF
91172011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9118
9119 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
9120 * gimplify.c (gimplify_switch_expr): Likewise.
9121 * omp-low.c (expand_omp_sections): Likewise.
9122 * tree-eh.c (lower_try_finally_switch): Likewise.
9123 (lower_eh_dispatch): Likewise.
9124 * tree.h (build_case_label): Declare.
9125 * tree.c (build_case_label): Define.
9126
deb5046b
JM
91272011-05-05 Jason Merrill <jason@redhat.com>
9128
9129 PR c++/40975
9130 * tree-inline.c (copy_tree_r): Use copy_statement_list.
9131 (copy_statement_list): Don't recurse.
9132 * stor-layout.c (copy_self_referential_tree_r): Don't allow
9133 STATEMENT_LIST.
9134
013c0411
JM
91352011-05-05 Joseph Myers <joseph@codesourcery.com>
9136
9137 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
9138 through from -mfpu= handling.
9139 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
9140
a0905f8b
BS
91412011-05-05 Bernd Schmidt <bernds@codesourcery.com>
9142
9143 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
9144 POST_MODIFY.
9145
fc4538e4
SE
91462011-05-05 Steve Ellcey <sje@cup.hp.com>
9147
9148 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
9149 for 11.31.
9150 (hppa[12]*-*-hpux11*): Ditto.
9151 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
9152 * config/ia64/hpux-unix2003.h: New.
9153 * config/pa/pa-hpux1131.opt: New.
9154 * config/pa/pa-hpux1131.h: New.
9155 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
9156 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 9157 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 9158
1e30c578
JJ
91592011-05-05 Jakub Jelinek <jakub@redhat.com>
9160
9161 PR debug/48853
9162 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
9163 instead of mode as 3rd argument to recursive call.
9164 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
9165 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
9166 VOIDmode.
9167 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
9168 don't give up if mode is Pmode and mem_mode is not VOIDmode.
9169 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
9170 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
9171
d19eb620
JB
91722011-05-05 Julian Brown <julian@codesourcery.com>
9173
9174 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
9175 parenthesis in D-register case.
9176
c860fe8c
JM
91772011-05-05 Joseph Myers <joseph@codesourcery.com>
9178
9179 * opt-functions.awk (var_type_struct): Handle Enum options.
9180 * optc-gen.awk: Don't check range of variables of character type.
9181 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9182 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9183 rs6000_sdata_name, rs6000_explicit_options): Remove.
9184 (rs6000_option_override_internal): Check for -malign-power here.
9185 Use global_options_set instead of rs6000_explicit_options.
9186 (rs6000_parse_fpu_option): Remove.
9187 (rs6000_handle_option): Access variables via opts and opts_set
9188 pointers. Use error_at and warning_at. Add fall-through
9189 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9190 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9191 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9192 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9193 here. Don't use rs6000_parse_fpu_option.
9194 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9195 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9196 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9197 (mrecip=): Use Var.
9198 (mspe): Use Var and Save.
9199 (mtraceback=): Use Enum and Var.
9200 (rs6000_traceback_type): New Enum and EnumValue entries.
9201 (mfloat-gprs=): Use Enum, Var and Save.
9202 (rs6000_float_gprs): New Enum and EnumValue entries.
9203 (mlong-double-): use Var and Save.
9204 (msched-costly-dep=, minsert-sched-nops=): Use Var.
9205 (malign-): Use Enum and Var.
9206 (rs6000_alignment_flags): New Enum and EnumValue entries.
9207 (mfpu=): Use Enum.
9208 (fpu_type_t): New Enum and EnumValue entries.
9209 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9210 global_options_set instead of rs6000_explicit_options.
9211 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9212 global_options_set instead of rs6000_explicit_options.
9213 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9214 global_options_set instead of rs6000_explicit_options.
9215 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9216 global_options_set instead of rs6000_explicit_options.
9217 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9218 global_options_set instead of rs6000_explicit_options.
9219 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9220 global_options_set instead of rs6000_explicit_options.
9221 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9222 definition.
9223 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9224 global_options_set instead of rs6000_explicit_options.
9225 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9226 (rs6000_cmodel): New Enum and EnumValue entries.
9227 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9228 global_options_set instead of rs6000_explicit_options.
9229 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9230 (mtls-size=): Use Enum and Var.
9231 (rs6000_tls_size): New Enum and EnumValue entries.
9232
0691dde9
MM
92332011-05-05 Michael Matz <matz@suse.de>
9234
9235 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9236 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9237 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9238 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9239 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9240 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9241 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9242 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9243 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9244 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9245 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9246 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9247 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9248 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9249 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9250 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9251
86529a49
RG
92522011-05-05 Richard Guenther <rguenther@suse.de>
9253
9254 * expmed.c (expand_variable_shift): Rename to ...
9255 (expand_shift_1): ... this. Take an expanded shift amount.
9256 For rotates recurse directly not building trees for the shift amount.
9257 (expand_variable_shift): Wrap around expand_shift_1.
9258 (expand_shift): Adjust.
9259
d0228c2e
JJ
92602011-05-05 Jakub Jelinek <jakub@redhat.com>
9261
9262 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9263
907a08d9
EB
92642011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9265
9266 * tree.h (get_pending_sizes): Remove prototype.
9267 (put_pending_size): Likewise.
9268 (put_pending_sizes): Likewise.
9269 * stor-layout.c (pending_sizes): Delete.
9270 (get_pending_sizes): Likewise.
9271 (put_pending_size): Likewise.
9272 (put_pending_sizes): Likewise.
9273 (variable_size): Do not call put_pending_size and tidy up.
9274 * function.h (struct function): Remove dont_save_pending_sizes_p.
9275 * lto-streamer-in.c (input_function): Do not stream it.
9276 * lto-streamer-out.c (output_function): Likewise.
9277 * tree-inline.c (initialize_cfun): Do not copy it.
9278 * c-decl.c (store_parm_decls): Do not set it.
9279 * omp-low.c (create_task_copyfn): Likewise.
9280 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9281
386d9c57
UB
92822011-05-05 Uros Bizjak <ubizjak@gmail.com>
9283
9284 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9285 conditions.
9286 (*movdf_internal): Ditto.
9287 (*movdf_internal_nointeger): Ditto.
9288 (*movsf_internal): Ditto.
9289
a04a722b
JM
92902011-05-05 Joseph Myers <joseph@codesourcery.com>
9291
9292 * c-decl.c (finish_decl): Don't call get_pending_sizes.
9293 (grokparm): Add parameter expr. Pass it to grokdeclarator.
9294 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
9295 (c_variable_size): Remove.
9296 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
9297 call put_pending_sizes.
9298 (get_parm_info): Add parameter expr. Use it to set
9299 arg_info->pending_sizes.
9300 (store_parm_decls): Use arg_info->pending_sizes instead or calling
9301 get_pending_sizes.
9302 * c-parser.c (c_parser_parms_declarator): Update call to
9303 c_parser_parms_list_declarator.
9304 (c_parser_parms_list_declarator): Take parameter expr. Update
9305 call to push_parm_decl. Update recursive call. Don't call
9306 get_pending_sizes. Update calls to get_parm_info.
9307 (c_parser_objc_method_definition): Update calls to
9308 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 9309 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
9310 (c_parser_objc_method_decl): Add parameter expr. Update call to
9311 grokparm.
386d9c57 9312 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
9313 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9314 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9315
c92a6f97
MH
93162011-05-05 Michael Hope <michael.hope@linaro.org>
9317
386d9c57
UB
9318 PR pch/45979
9319 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9320 __ARM_EABI__ hosts.
c92a6f97 9321
07ea0048
UW
93222011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9323
9324 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9325 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9326 (spu_output_mi_thunk): New function.
9327
d634bfa1
RO
93282011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9329
9330 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9331 targetm.asm_out.print_operand.
9332 * config/sol2.c: Include target.h.
9333
40fda55b
JH
93342011-05-04 Jan Hubicka <jh@suse.cz>
9335
9336 * ipa-inline.c (reset_edge_caches): New function.
9337 (update_caller_keys): Add check_inlinablity_for; do not
9338 reset edge caches; remove now unnecesary loop.
386d9c57 9339 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
9340 (update_all_callee_keys): Likewise.
9341 (inline_small_functions): Sanity check cache; update code
9342 recomputing it.
9343
0360f70d
BS
93442011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9345
9346 PR rtl-optimization/47612
9347 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9348 as the last insn of the sequence to be moved.
9349
7a994646
TB
93502011-05-04 Tobias Burnus <burnus@net-b.de>
9351
9352 PR fortran/48864
9353 * doc/invoke.texi (Ofast): Document that it
9354 enables Fortran's -fno-protect-parens.
9355
7a2f7208
UB
93562011-05-04 Uros Bizjak <ubizjak@gmail.com>
9357
9358 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9359
a2d42931
EB
93602011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9361
9362 * stor-layout.c (variable_size): Do not issue errors.
9363
f81b1a3d
RG
93642011-05-04 Richard Guenther <rguenther@suse.de>
9365
9366 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9367 for array-ref indices.
9368 (tree_coverage_counter_addr): Likewise.
9369 (build_fn_info_type): Use size_int for index types.
9370 (build_gcov_info): Likewise.
9371
c62c040f
RG
93722011-05-04 Richard Guenther <rguenther@suse.de>
9373
9374 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9375 to build_int_cst.
9376 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9377 for constructor indices.
9378 (push_init_level): Likewise.
9379
1e3287d0
RG
93802011-05-04 Richard Guenther <rguenther@suse.de>
9381
9382 * explow.c (promote_mode): Move variable declarations before code.
9383
6c32445b
NF
93842011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9385
9386 * tree.h (build_function_type_array): Declare.
9387 (build_varargs_function_type_array): Declare.
9388 (build_function_type_vec, build_varargs_function_type_vec): Define.
9389 * tree.c (build_function_type_array_1): New function.
9390 (build_function_type_array): New function.
9391 (build_varargs_function_type_array): New function.
9392
fdabf269
RS
93932011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9394
9395 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9396 before setting STMT_VINFO_TYPE.
9397
a207915a
UW
93982011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9399
9400 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9401 instead of spu_pass_by_reference.
9402
5e617be8
AK
94032011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9404
9405 * calls.c (emit_library_call_value_1): Invoke
9406 promote_function_mode hook on libcall arguments.
9407 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9408 argument being NULL.
9409 * targhooks.c (default_promote_function_mode): Lisewise.
9410 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9411 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9412
9413 * doc/tm.texi: Document that TYPE argument might be NULL.
9414
486d04be
SH
94152011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9416
9417 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9418
9b19b026
SH
94192011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9420
9421 From Bernd Schmidt
9422 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9423
502bc3df
RO
94242011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9425
9426 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9427 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9428 Move ...
9429 * mips-tfile.c: ... here.
9430 Don't include coretypes.h, tm.h, filenames.h.
9431 (saber_stop): Remove definition and all calls.
9432 [__SABER__]: Remove.
9433 (__LINE__): Remove default.
9434 (Size_t, Ptrdiff_t): Remove definitions.
9435 Replace by size_t, ptrdiff_t.
9436 [!MIPS_DEBUGGING_INFO]: Remove.
9437 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9438 (progname): Add const.
9439 (STATIC): Remove.
9440 Replace all uses by static.
9441 (ALIGN_SYMTABLE_OFFSET): Remove default.
9442 * mips-tdump.c: Don't include coretypes.h, tm.h.
9443 Remove !MIPS_IS_STAB guard.
9444 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9445 $(TM_H), filenames.h dependencies.
9446 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9447
991eb6ef
SH
94482011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9449
9450 From Jie Zhang
9451 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9452 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9453
420ccc84
SH
94542011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9455
9456 From Bernd Schmidt
9457 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9458 account and save/restore RETS.
9459 (PROFILE_BEFORE_PROLOGUE): Define.
9460 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9461 the push insn to use predecrement.
9462
9f8d69ee
SH
94632011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9464
9465 From Jie Zhang
9466 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9467
662c03f4
NC
94682011-05-04 Nick Clifton <nickc@redhat.com>
9469
9470 * config/mn10300/mn10300.c: Include cfgloop.h.
9471 (DUMP): New macro.
9472 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9473 Lcc or a FLcc insn into the instruction stream.
9474 (mn10300_block_contains_call): New function. Returns true if the
9475 given basic block contains a CALL insn.
9476 (mn10300_loop_contains_call_insn): New function. Returns true if
9477 the given loop contains a CALL insn.
9478 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9479 to use the SETLB and Lcc or FLcc insns.
9480 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9481 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9482 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9483 disable the SETLB optimization.
9484 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9485 __SETLB__ or __NO_SETLB__.
9486 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9487 (movsf_internal): Handle MDR register.
9488 (cmpsi): Make visible.
9489 (setlb): New pattern.
9490 (Lcc): New pattern.
9491 (FLcc): New pattern.
9492
843b6915
UB
94932011-05-04 Uros Bizjak <ubizjak@gmail.com>
9494
9495 PR target/48860
9496 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9497 for reg<->xmm moves.
9498 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9499 (vec_concatv2di_rex64_sse): Ditto.
9500 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9501 (*vec_extractv2di_1_rex64): Ditto.
9502
9503 Revert:
9504 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9505
9506 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9507 reg<->xmm moves.
9508 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9509
d35936ab
RG
95102011-05-04 Richard Guenther <rguenther@suse.de>
9511
9512 * tree.h (int_const_binop): Remove notrunc argument.
9513 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9514 create integer constants that are properly truncated.
9515 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9516 (const_binop): Remove zero notrunc argument to int_const_binop.
9517 (size_binop_loc): Likewise.
9518 (fold_div_compare): Likewise.
9519 (maybe_canonicalize_comparison_1): Likewise.
9520 (fold_comparison): Likewise.
9521 (fold_binary_loc): Likewise.
9522 (multiple_of_p): Likewise.
9523 * expr.c (store_constructor): Likewise.
9524 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9525 (maybe_fold_stmt_addition): Likewise.
9526 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9527 * stor-layout.c (layout_type): Likewise.
9528 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9529 * tree-sra.c (build_ref_for_offset): Likewise.
9530 (build_user_friendly_ref_for_offset): Likewise.
9531 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9532 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9533 * tree-ssa-loop-niter.c (inverse): Likewise.
9534 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9535 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9536 * tree-switch-conversion.c (check_range): Likewise.
9537 (build_constructors): Likewise.
9538 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9539 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9540 (extract_range_from_assert): Likewise.
9541 (vrp_int_const_binop): Likewise.
9542 (extract_range_from_binary_expr): Likewise.
9543 (extract_range_from_unary_expr): Likewise.
9544 (check_array_ref): Likewise.
9545 (find_case_label_range): Likewise.
9546 (simplify_div_or_mod_using_ranges): Likewise.
9547 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9548 comparing case labels for merging.
9549
8992c063
MW
95502011-05-03 Mark Wielaard <mjw@redhat.com>
9551
9552 * dwarf2out.c (debug_str_hash_forced): Removed.
9553 (gen_label_for_indirect_string): Removed.
9554 (get_debug_string_label): Removed.
9555 (AT_string_form): Generate label directly.
9556 (output_indirect_string): Test indirect_string_node for
9557 DW_FORM_strp instead of checking label and refcount.
9558 (prune_indirect_string): Removed.
9559 (prune_unused_types): Don't check debug_str_hash_forced or
9560 call prune_indirect_string.
9561
4868e6ea
AO
95622011-05-04 Alexandre Oliva <aoliva@redhat.com>
9563
9564 PR other/48093
9565 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9566
01a5c0ab
AO
95672011-05-04 Alexandre Oliva <aoliva@redhat.com>
9568
9569 PR debug/47994
9570 PR debug/47919
9571 * combine.c (try_combine): Skip debug insns at m_split tests.
9572
6ac00218
MW
95732011-04-26 Mark Wielaard <mjw@redhat.com>
9574
9575 PR42288
9576 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9577 when info_section_emitted.
9578
3af42a7b
JM
95792011-05-03 Joseph Myers <joseph@codesourcery.com>
9580
9581 * config/mips/mips-opts.h: New.
9582 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9583 to mips-opts.h.
9584 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9585 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9586 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9587 via opts pointer.
9588 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9589 mips-opts.h.
9590 (mips_abi, mips_code_readable): Don't declare.
843b6915 9591 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
9592 (mabi=): Use Enum and Var.
9593 (mips_abi): New Enum and EnumValue entries.
9594 (mcode-readable=): Use Enum and Var.
9595 (mips_code_readable_setting): New Enum and EnumValue entries.
9596 (mr10k-cache-barrier=): Use Enum and Var.
9597 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9598
1cb1a99f
JH
95992011-05-03 Jan Hubicka <jh@suse.cz>
9600
9601 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9602 replace hash by pointer map.
9603 (cgraph_node_set_element_def, cgraph_node_set_element,
9604 const_cgraph_node_set_element, varpool_node_set_element_def,
9605 varpool_node_set_element, const_varpool_node_set_element): Remove.
9606 (free_cgraph_node_set, free_varpool_node_set): New function.
9607 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9608 * tree-emutls.c: Free varpool node set.
9609 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9610 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9611 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9612 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9613 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9614 Move here from ipa.c; implement using pointer_map
9615 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9616 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9617 debug_cgraph_node_set, varpool_node_set_new,
9618 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9619 dump_varpool_node_set, debug_varpool_node_set):
9620 Move to ipa-uitls.c.
9621 * passes.c (ipa_write_summaries): Update.
9622
7f31f4db
SH
96232011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9624
7a2f7208
UB
9625 From Mike Frysinger:
9626 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9627 bf542/bf544/bf547/bf548/bf549.
7f31f4db 9628
b70fce6d
UB
96292011-05-03 Uros Bizjak <ubizjak@gmail.com>
9630
9631 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9632
265b1d82
SH
96332011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9634
9635 From Bernd Schmidt:
9636 * config/bfin/bfin.md (MOVCC): New mode_macro.
9637 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9638 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9639 comments from generated assembly.
9640
f0b568f3
SH
96412011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9642
9643 From Bernd Schmidt
9644 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9645 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9646 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9647 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9648 * config/bfin/lib1funcs.asm (___muldi3): New function.
9649
2c67cf6e
NF
96502011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9651
9652 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9653 build_function_type_list instead of build_function_type.
9654 Rearrange initialization of `args' to do so.
9655
f9ac28ad
NF
96562011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9657
9658 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9659 instead of build_function_type.
9660
22b8798c
NF
96612011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9662
9663 * config/rs6000/rs6000.c (spe_init_builtins): Call
9664 build_function_type_list instead of build_function_type.
9665 (paired_init_builtins, altivec_init_builtins): Likewise.
9666 (builtin_function_type): Likewise.
9667
4cb44528
NF
96682011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9669
9670 * config/sh/sh.c (sh_media_init_builtins): Call
9671 build_function_type_list instead of build_function_type.
9672
4c203a6a
NF
96732011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9674
9675 * config/sparc/sparc.c (sparc_file_end): Call
9676 build_function_type_list instead of build_function_type.
9677
d6a3d62b
NF
96782011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9679
9680 * config/alpha/alpha.c (alpha_init_builtins): Call
9681 build_function_type_list instead of build_function_type.
9682
de530b86
NF
96832011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9684
9685 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9686 build_function_type_list instead of build_function_type.
9687
baeec5f2
NF
96882011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9689
9690 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9691 build_function_type_list instead of build_function_type.
9692 Delete `endlink' variable.
9693
c19afe52
NF
96942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9695
9696 * config/avr/avr.c (avr_init_builtins): Call
9697 build_function_type_list instead of build_function_type.
9698
a341df0a
NF
96992011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9700
9701 * config/picochip/picochip.c (picochip_init_builtins): Call
9702 build_function_type_list instead of build_function_type.
9703 Delete `endlink' variable.
9704
2102b1e1
NF
97052011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9706
9707 * config/bfin/bfin.c (bfin_init_builtins): Call
9708 build_function_type_list instead of build_function_type.
9709
9f111209
SH
97102011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9711
9712 From Bernd Schmidt
9713 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9714 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9715
7071d064
SH
97162011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9717
9718 From Jie Zhang:
9719 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9720 libbffastfp overrides libgcc when -mfast-fp.
9721
748f7574 97222011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
9723
9724 Originally from Bernd Schmidt
9725 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9726 * config/bfin/bfin.c (override_options): Test it and error if
9727 TARGET_FDPIC.
9728
1a3a9152
SH
97292011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9730
9731 Originally From Bernd Schmidt
9732 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9733 FD-PIC.
9734
7134c090
JL
97352011-05-03 Jeff Law <law@redhat.com>
9736
9737 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9738 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9739 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
9740 than accessing AUX field directly. Free the AUX field before
9741 clearing it.
7134c090
JL
9742 (thread_block, thread_through_loop_header): Likewise.
9743 (thread_single_edge, mark_threaded_blocks): Likewise.
9744 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9745 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 9746
2c7eebae
BS
97472011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9748
9749 * function.c (init_function_start): Call decide_function_section.
9750 * varasm.c (decide_function_section): New function.
9751 (assemble_start_function): When not using
9752 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9753 or first_function_block_is_cold.
9754 * rtl.h (decide_function_section): Declare.
9755
17038fcf
JJ
97562011-05-03 Uros Bizjak <ubizjak@gmail.com>
9757 Jakub Jelinek <jakub@redhat.com>
9758
9759 PR target/48774
9760 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9761 only succeed if req_mode is the same as set_mode.
9762
3810076b
BS
97632011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9764
9765 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9766 * genemit.c (gen_exp): Handle RETURN.
9767 * emit-rtl.c (verify_rtx_sharing): Likewise.
9768 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9769 * rtl.c (copy_rtx): RETURN is shared.
9770 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9771 (ret_rtx): New.
9772 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9773 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9774 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9775 * config/cris/cris.c (cris_expand_return): Likewise.
9776 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9777 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9778 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9779 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9780 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9781 Likewise.
9782 * config/v850/v850.c (expand_epilogue): Likewise.
9783 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9784 * config/arm/arm.md (epilogue): Likewise.
9785 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9786 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9787 variable to ret_reg.
9788
9efdb4ad
RG
97892011-05-03 Richard Guenther <rguenther@suse.de>
9790
9791 PR lto/48846
9792 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9793 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9794 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9795
60a45536
RG
97962011-05-03 Richard Guenther <rguenther@suse.de>
9797
9798 * c-decl.c (grokdeclarator): Instead of looking at
9799 TREE_OVERFLOW check if the constant fits in the index type.
9800
3188ed59
RS
98012011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9802
9803 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9804 (vec_store_lanes<mode><mode>): Likewise.
9805
272c6793
RS
98062011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9807
9808 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9809 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9810 convert_optab_index values.
9811 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9812 * genopinit.c (optabs): Initialize the new optabs.
9813 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9814 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9815 (expand_STORE_LANES): New functions.
9816 * tree.h (build_array_type_nelts): Declare.
9817 * tree.c (build_array_type_nelts): New function.
9818 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9819 (vect_model_load_cost): Likewise.
9820 (vect_store_lanes_supported, vect_load_lanes_supported)
9821 (vect_record_strided_load_vectors): Declare.
9822 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9823 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9824 (vect_transform_strided_load): Split out statement recording into...
9825 (vect_record_strided_load_vectors): ...this new function.
9826 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9827 (write_vector_array, create_array_ref): New functions.
9828 (vect_model_store_cost): Add store_lanes_p argument.
9829 (vect_model_load_cost): Add load_lanes_p argument.
9830 (vectorizable_store): Try to use store-lanes functions for
9831 interleaved stores.
9832 (vectorizable_load): Likewise load-lanes and loads.
9833 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9834 to vect_model_store_cost.
9835 (vect_build_slp_tree): Likewise vect_model_load_cost.
9836
0f6d54f7
RS
98372011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9838
9839 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9840 * hooks.c (hook_bool_mode_uhwi_false): New function.
9841 * target.def (array_mode_supported_p): New hook.
9842 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9843 * doc/tm.texi: Regenerate.
9844 * stor-layout.c (mode_for_array): New function.
9845 (layout_type): Use it.
9846 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9847 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9848
b15eacc7
EB
98492011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9850
9851 PR target/48723
9852 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9853 for -fstack-check if the size to allocate is negative.
9854
575bfb00
LC
98552011-05-02 Lawrence Crowl <crowl@google.com>
9856
9857 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9858 (timevar_cond_start): New for starting a timer only when it is not
9859 already running.
9860 (timevar_cond_stop): New for stopping a timer when it was not already
9861 running.
9862
9863 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9864 (timevar_cond_start): New as above.
9865 (timevar_cond_stop): New as above.
9866
9867 * timevar.def: Add start/stop timers for compiler phases,
9868 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9869 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9870 and TV_PHASE_FINALIZE.
9871 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9872 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9873 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9874 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9875 Make unused TV_OVERLOAD into a start/stop timer.
9876
9877 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9878 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9879 to indicate that they are start/stop timers.
9880
9881 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9882 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9883 Move initialization to do_compile.
9884 (do_compile): Add initialization from above.
9885 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9886
9887 * c-decl.c (c_write_global_declarations): Add start/stop of
9888 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9889
9890 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9891 or TV_PARSE_INLINE, as appropriate.
9892 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9893 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9894
3533b943
JM
98952011-05-02 Jason Merrill <jason@redhat.com>
9896
9897 PR c++/40975
9898 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9899
2609a0ce
SM
99002011-05-02 Simon Martin <simartin@users.sourceforge.net>
9901
9902 PR c/35445
9903 * c-decl.c (finish_decl): Only create a composite if the types are
9904 compatible.
9905
6b0e4cbb
JM
99062011-05-02 Joseph Myers <joseph@codesourcery.com>
9907
9908 * config/fr30/fr30-protos.h (Mmode): Don't define.
9909 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9910 definition where used.
9911 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9912 define. Expand definitions where used.
9913 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9914 Expand definitions where used.
9915 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9916 rx_function_arg, rx_function_arg_advance,
9917 rx_function_arg_boundary): Expand definitions of those macros.
9918 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9919 definition where used.
9920
4e938ce6
UB
99212011-05-02 Uros Bizjak <ubizjak@gmail.com>
9922
9923 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9924 reg<->xmm moves.
9925 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9926 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9927 with *movv2sf_internal_rex64_avx.
9928 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9929 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9930 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9931 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9932 "vex" in "prefix" attribute calculation.
9933 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9934
36019c19
SH
99352011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9936
7a2f7208
UB
9937 PR target/47951
9938 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9939 inputs match the output.
36019c19 9940
f69ea688
AS
99412011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9942
9943 PR target/47955
9944 * config/m68k/m68k.c (m68k_expand_prologue): Set
9945 current_function_static_stack_size.
9946
c33406f5
JH
99472011-05-02 Jan Hubicka <jh@suse.cz>
9948
9949 * lto-streamer.c (lto_streamer_cache_insert_1,
9950 lto_streamer_cache_lookup, lto_streamer_cache_create,
9951 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9952 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9953
47c94d21
JM
99542011-05-02 Joseph Myers <joseph@codesourcery.com>
9955
9956 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9957 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9958 config/m68k/t-opts: New files.
9959 * config/m68k/m68k-tables.opt: New file (generated).
9960 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9961 extra_options and m68k/t-opts to tmake_file.
9962 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9963 (all_isas): Initialize using m68k-isas.def.
9964 (all_microarchs): Initialize using m68k-microarchs.def.
9965 (m68k_find_selection): Remove.
9966 (m68k_handle_option): Don't assert that global structures are in
9967 use. Use error_at. Access variables via opts pointer. Don't
9968 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9969 directly for -m68020-40 and -m68020-60.
9970 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9971 m68k_tune_entry here.
9972 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9973 to m68k-opts.h.
9974 (m68k_library_id_string): Remove declaration.
4e938ce6 9975 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
9976 (m68k_library_id_string): New Variable.
9977 (march=, mcpu=, mtune=): Use Enum and Var.
9978
e562bf36
RG
99792011-05-02 Richard Guenther <rguenther@suse.de>
9980
9981 * varasm.c (output_constructor_regular_field): Compute zero-based
9982 index with double-ints. Make sure to ICE instead of producing
9983 wrong code.
9984 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9985 in asserts. Properly use a signed type.
9986
6bec6c98
UB
99872011-05-02 Uros Bizjak <ubizjak@gmail.com>
9988
9989 * config/i386/sse.md (V): New mode iterator.
9990 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
9991 TARGET_SSE2.
9992 (V_256): Rename from AVX256MODE.
9993 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
9994 condition to all users.
9995 (VF1): Ditto.
9996 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
9997 condition to all users.
9998 (VF_128): Make V4SF mode unconditional.
9999 (VF_256): Rename from AVX256MODEF2P.
10000 (VI4F_128): Rename from SSEMODE4S.
10001 (VI8F_128): Rename from SSEMODE2D.
10002 (VI4F_256): Rename from AVX256MODE8P.
10003 (VI8F_256): Rename from AVX256MODE4P.
10004 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
10005 (ssescalarmodesuffix): Remove SF and DF modes.
10006 (SSEMODE124): Remove.
10007 (SSEMODE1248): Ditto.
10008 (SSEMODEF2P): Ditto.
10009 (AVXMODEF2P): Ditto.
10010 (AVXMODEFDP): Ditto.
10011 (AVXMODEFSP): Ditto.
10012 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
10013 unconditional.
10014 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
10015 unconditional.
10016 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
10017 xop_pcmov_<mode>256. Use V mode iterator.
10018
10019 Adjust RTX patterns globally for renamed mode attributes.
10020
2dfdcb4b
UW
100212011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10022
10023 * haifa-sched.c (sched_emit_insn): Emit insn before first
10024 non-scheduled insn. Inform back-end about new insn. Add
10025 new insn to scheduled_insns list.
10026
90bc4623
RG
100272011-05-02 Richard Guenther <rguenther@suse.de>
10028
10029 PR tree-optimization/48822
10030 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
10031 (process_scc): Indicate which iteration we start.
10032
bc0fe8cb
JH
100332011-05-02 Jan Hubicka <jh@suse.cz>
10034
10035 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
10036 (lto_section_overrun): New.
10037 * lto-section-out.c (append_block): Rename to ...
10038 (lto_append_block): ... this one; export.
10039 (lto_output_1_stream): Move lto lto-streamer.h
10040 (lto_output_data_stream): Update.
10041 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
10042 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
10043 functions.
10044
f070a9d1
RG
100452011-05-02 Richard Guenther <rguenther@suse.de>
10046
10047 * tree.c (tree_code_counts): New global array.
10048 (record_node_allocation_statistics): Count individual tree codes.
10049 (dump_tree_statistics): Dump individual code stats.
10050
09dfe187
JH
100512011-05-01 Jan Hubicka <jh@suse.cz>
10052
10053 * ipa-inline.c (caller_growth_limits): Fix thinko when
10054 looking for largest stack frame.
10055 * ipa-inline.h (dump_inline_summary): Declare.
10056 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
10057 on stack usage.
10058 (dump_inline_summary): Export.
10059 (debug_inline_summary): Declare as DEBUG_FUNCTION.
10060
6f76a878
AS
100612011-05-01 Anatoly Sokolov <aesok@post.ru>
10062
10063 * reginfo.c (memory_move_cost): Change rclass argument type form
10064 'enum reg_class' to reg_class_t.
10065 * reload.h (memory_move_cost): Update prototype.
10066 * postreload.c reload_cse_simplify_set): Change type dclass var to
10067 reg_class_t.
10068 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
10069 Update prototype.
10070 (ira_allocate_and_set_costs): Change aclass argument type form
10071 'enum reg_class' to reg_class_t.
6bec6c98 10072 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
10073 Change aclass argument type to reg_class_t.
10074 (update_conflict_hard_reg_costs): Change type aclass and pref vars
10075 to reg_class_t.
10076 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
10077 memory_move_cost call.
10078
10079 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
10080 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
10081 Change type tmp var to reg_class_t.
10082
9a4ac625
JH
100832011-04-30 Jan Hubicka <jh@suse.cz>
10084
10085 * ipa-inline.c (can_inline_edge_p): Disregard limits when
10086 inlining into function with flatten attribute.
10087 (want_inline_small_function_p): Be more realistic about inlining
10088 cold calls where callee size grows.
10089
dd8352ee
JH
100902011-04-30 Jan Hubicka <jh@suse.cz>
10091
10092 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
10093 flags.
10094
46e43d2b
AS
100952011-04-30 Anatoly Sokolov <aesok@post.ru>
10096
10097 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10098 PRINT_OPERAND_PUNCT_VALID_P): Remove.
10099 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
10100 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
10101 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10102 (print_operand): Rename to...
10103 (sparc_print_operand): ...this. Make static. Adjust
10104 sparc_print_operand function call.
10105 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
10106 functions.
10107
ecb62563
JH
101082011-04-30 Jan Hubicka <jh@suse.cz>
10109
6bec6c98 10110 PR middle-end/48752
ecb62563
JH
10111 * ipa-inline.c (early_inliner): Disable when doing late
10112 addition of function.
10113
edb9b69e
JJ
101142011-04-30 Jakub Jelinek <jakub@redhat.com>
10115
be80a87e
JJ
10116 * dwarf2out.c (get_address_mode): New inline.
10117 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
10118 if not dwarf_strict emit
10119 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
10120 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
10121 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
10122 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
10123 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
10124 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
10125 mem_loc_descriptor callers.
10126 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10127 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
10128 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
10129 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
10130 (base_types): New variable.
10131 (get_base_type_offset, calc_base_type_die_sizes,
10132 base_type_for_mode, mark_base_types, base_type_cmp,
10133 move_marked_base_types): New functions.
10134 (calc_die_sizes): Assert that die_offset is 0 or equal to
10135 next_die_offset.
10136 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
10137 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
10138 callers. If not dwarf_strict, call mem_loc_descriptor even for
10139 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
10140 (gen_subprogram_die): Don't give up on call site parameters
10141 with non-integral or large integral modes. Adjust
10142 mem_loc_descriptor callers.
10143 (prune_unused_types): Call prune_unused_types_mark on base_types
10144 vector entries.
10145 (resolve_addr): Call mark_base_types.
10146 (dwarf2out_finish): Call move_marked_base_types.
10147
edb9b69e
JJ
10148 PR tree-optimization/48809
10149 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
10150 type.
10151 (gen_inbound_check): Don't compute index_expr - range_min in utype
10152 again, instead reuse SSA_NAME initialized in build_arrays.
10153 Remove two useless gsi_for_stmt calls.
10154
a6545a3d
JL
101552011-04-29 Jeff Law <law@redhat.com>
10156
10157 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
10158
af8bca3c
MJ
101592011-04-29 Martin Jambor <mjambor@suse.cz>
10160
10161 * cgraph.h (cgraph_postorder): Remove declaration.
10162 * ipa-utils.h (ipa_free_postorder_info): Declare.
10163 (ipa_reverse_postorder): Likewise.
10164 * cgraphunit.c: Include ipa-utils.h.
10165 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
10166 * ipa-inline.c: Include ipa-utils.h.
10167 (ipa_inline): Update call to ipa_reverse_postorder.
10168 * ipa-pure-const.c (propagate_pure_const): Update call to
10169 ipa_reduced_postorder and ipa_print_order. Call
10170 ipa_free_postorder_info to clean up.
10171 (propagate_nothrow): Likewise.
10172 * ipa-reference.c (propagate): Removed a useless call to
10173 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
10174 and ipa_print_order. Call ipa_free_postorder_info to clean up.
10175 * ipa.c: Include ipa-utils.h.
10176 (ipa_profile): Update call to ipa_reverse_postorder.
10177 (cgraph_postorder): Moved to...
10178 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
10179 (ipa_utils_print_order): Renamed to ipa_print_order.
10180 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10181 comments.
10182 (ipa_free_postorder_info): New function.
10183 * passes.c: Include ipa-utils.h.
10184 (do_per_function_toporder): Update call to ipa_reverse_postorder.
10185 (ipa_write_summaries): Likewise.
10186 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10187 (cgraphunit.o): Likewise.
10188 (ipa.o): Likewise.
10189 (ipa-inline.o): Likewise.
10190
b15c64ee
JH
101912011-04-29 Jan Hubicka <jh@suse.cz>
10192
10193 * gcc.dg/tree-ssa/inline-10.c: New testcase.
10194 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10195 * ipa-inline.h (clause_t): Turn into unsigned int.
10196 * ipa-inline-analysis.c (add_clause): Do more simplification.
10197 (and_predicates): Shortcut more cases.
10198 (predicates_equal_p): Move forward; check that clauses are properly
10199 ordered.
10200 (or_predicates): Shortcut more cases.
10201 (edge_execution_predicate): Rewrite as...
10202 (set_cond_stmt_execution_predicate): ... this function; handle
10203 __builtin_constant_p.
10204 (set_switch_stmt_execution_predicate): New .
10205 (compute_bb_predicates): New.
10206 (will_be_nonconstant_predicate): Update TODO.
10207 (estimate_function_body_sizes): Use compute_bb_predicates
10208 and free them later, always try to estimate if stmt is constant.
10209 (estimate_time_after_inlining, estimate_size_after_inlining):
10210 Gracefully handle optimized out edges.
10211 (read_predicate): Fix off by one error.
10212
a88fdc2a
NP
102132011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
10214
10215 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10216
d984c8ef
XDL
102172011-04-27 Xinliang David Li <davidxl@google.com>
10218
10219 * tree-profile.c (init_ic_make_global_vars): Set
10220 tls attribute on ic vars.
10221 * coverage.c (coverage_end_function): Initialize
10222 function_list with zero.
10223
45a2c477
RG
102242011-04-29 Richard Guenther <rguenther@suse.de>
10225
10226 * builtins.c (fold_builtin_classify_type): Use integer_type_node
10227 for the type of the result.
10228 (fold_builtin_isascii): Likewise.
10229 (fold_builtin_toascii): Use integer_type_node where appropriate.
10230 (fold_builtin_logb): Likewise.
10231 (fold_builtin_frexp): Likewise.
10232 (fold_builtin_strstr): Likewise.
10233 (fold_builtin_strpbrk): Likewise.
10234 (fold_builtin_fputs): Likewise.
10235 (fold_builtin_sprintf): Likewise.
10236 (fold_builtin_snprintf): Likewise.
10237 (fold_builtin_printf): Likewise.
10238 (do_mpfr_remquo): Use a proper type for the assigned constant.
10239 (do_mpfr_lgamma_r): Likewise.
10240 * dwarf2out.c (resolve_one_addr): Use size_int.
10241 * except.c (init_eh): Likewise.
10242 (assign_filter_values): Use integer_type_node for filter values.
10243 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10244 indices.
10245 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10246 for EH region numbers.
10247 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10248 for the shift amount.
10249
eb6c3df1
RG
102502011-04-29 Richard Guenther <rguenther@suse.de>
10251
10252 * expr.h (expand_shift): Rename to ...
10253 (expand_variable_shift): ... this.
10254 (expand_shift): Take a constant shift amount.
10255 * expmed.c (expand_shift): Rename to ...
10256 (expand_variable_shift): ... this.
10257 (expand_shift): New wrapper around expand_variable_shift.
10258 * expr.c (convert_move, emit_group_load_1, emit_group_store,
10259 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10260 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10261 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10262 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10263 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10264 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10265 emit_store_flag_1, emit_store_flag): Likewise.
10266 * builtins.c (expand_builtin_signbit): Likewise.
10267 * calls.c (load_register_parameters): Likewise.
10268 * function.c (assign_parm_setup_block): Likewise.
10269 * lower-subreg.c (resolve_shift_zext): Likewise.
10270 * optabs.c (widen_bswap, expand_abs_nojump,
10271 expand_one_cmpl_abs_nojump, expand_float): Likewise.
10272 * spu/spu.c (spu_expand_extv): Likewise.
10273 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10274
9f616812
RG
102752011-04-29 Richard Guenther <rguenther@suse.de>
10276
10277 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10278 for the remapped region number.
10279 * predict.c (build_predict_expr): Use integer_type_node for the
10280 predict kind.
10281 * fold-const.c (fold_binary_loc): Use integer_type_node for
10282 the shift amount. Use a proper type for the PLUS_EXPR operand.
10283
b823cdfe
MM
102842011-04-29 Michael Matz <matz@suse.de>
10285
10286 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10287 other trees that just builtins.
10288 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10289
413581ba
RG
102902011-04-29 Richard Guenther <rguenther@suse.de>
10291
10292 * tree-nested.c (get_trampoline_type): Use size_int.
10293 (get_nl_goto_field): Likewise.
10294 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10295 for all indexes.
10296 (lower_eh_constructs_2): Likewise.
10297 (lower_resx): Likewise.
10298 (lower_eh_dispatch): Likewise.
10299 * tree-mudflap.c (mf_build_string): Use size_int.
10300 (mudflap_register_call): Use integer_type_node for the flag.
10301 (mudflap_enqueue_constant): Use size_int.
10302 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10303 instead of rebuilding it.
10304
5c04e9f4
RG
103052011-04-29 Richard Guenther <rguenther@suse.de>
10306
10307 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10308 Handle OBJ_TYPE_REF.
10309 (find_func_aliases_for_call): Use it more consistently.
10310
5c24671b
AO
103112011-04-29 Alexandre Oliva <aoliva@redhat.com>
10312
10313 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10314 (rank_for_schedule): Use it.
10315 (schedule_block): Set it.
10316
10adac51
XDL
103172011-04-28 David Li <davidxl@google.com>
10318
10319 * tree.c (crc32_string): Use crc32_byte.
10320 (crc32_byte): New function.
10321 * tree.h (crc32_byte): New function.
10322 * gcov.c (read_graph_file): Handle new cfg_cksum.
10323 (read_count_file): Ditto.
10324 * profile.c (instrument_values): Ditto.
10325 (get_exec_counts): Ditto.
10326 (read_profile_edge_counts): Ditto.
10327 (compute_branch_probabilities): Ditto.
10328 (compute_value_histograms): Ditto.
10329 (branch_prob): Ditto.
10330 (end_branch_prob): Ditto.
10331 * coverage.c (read_counts_file): Ditto.
10332 (get_coverage_counts): Ditto.
10333 (tree_coverage_counter_addr): Ditto.
10334 (coverage_checksum_string): Ditto.
10335 (coverage_begin_output): Ditto.
10336 (coverage_end_function): Ditto.
10337 (build_fn_info_type): Ditto.
10338 (build_fn_info_value): Ditto.
10339 * libgcov.c (gcov_exit): Ditto.
10340 * gcov-dump.c (tag_function): Ditto.
10341 (compute_checksum): Remove.
10342
5d6358a5
AM
103432011-04-29 Alan Modra <amodra@gmail.com>
10344
10345 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10346 unspec plus offset. Tidy macho code.
10347
85ad2ef5
MJ
103482011-04-29 Martin Jambor <mjambor@suse.cz>
10349
10350 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10351 node instead of a decl. Update all callers.
10352 * cgraph.h: Update declaration.
10353
437f4a00
IR
103542011-04-28 Ira Rosen <ira.rosen@linaro.org>
10355
10356 PR tree-optimization/48765
10357 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10358 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10359 to indicate if loop aware SLP is being used. Scan the statements
10360 and update the vectorization factor according to the type of
10361 vectorization before statement analysis.
10362 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10363 pass it to vect_analyze_loop_operations.
10364 (vectorizable_reduction): Set number of copies to 1 in case of pure
10365 SLP statement.
10366 * tree-vect-stmts.c (vectorizable_conversion,
10367 vectorizable_assignment, vectorizable_shift,
10368 vectorizable_operation, vectorizable_type_demotion,
10369 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10370 Likewise.
10371 (vectorizable_condition): Move the check that it is not SLP
10372 vectorization before the number of copies check.
10373 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10374 to vectorize the loop using SLP.
10375
c6fc44f3
JJ
103762011-04-28 Jakub Jelinek <jakub@redhat.com>
10377
10378 PR middle-end/48597
10379 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10380 inline asm.
10381
6c0170ea
JM
103822011-04-28 Joseph Myers <joseph@codesourcery.com>
10383
10384 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10385 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10386 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10387 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10388 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10389 linux*.h headers.
6bec6c98 10390 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
10391 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10392 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10393 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 10394 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
10395 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10396 REG_NAME.
10397 * config/i386/linux.h (REG_NAME): Don't define.
10398 * config/i386/linux64.h (REG_NAME): Don't define.
10399 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10400 Undefine before defining.
10401
970dabbd
JH
104022011-04-28 Jan Hubicka <jh@suse.cz>
10403
6bec6c98
UB
10404 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10405 nonconstant_names array.
970dabbd
JH
10406 (estimate_function_body_sizes): Build nonconstant_names array; handle
10407 BUILT_IN_CONSTANT_P.
10408
8d3e3924
RG
104092011-04-28 Richard Guenther <rguenther@suse.de>
10410
10411 PR bootstrap/48804
10412 Revert
10413 2011-04-28 Richard Guenther <rguenther@suse.de>
10414
10415 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10416 as late as possible.
6bec6c98 10417
8576f20a
RG
104182011-04-28 Richard Guenther <rguenther@suse.de>
10419
10420 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10421 (debug_constraint): Do it here.
10422 (dump_constraints): And here.
10423 (rewrite_constraints): And here.
10424 (dump_constraint_edge): Remove.
10425 (dump_constraint_graph): Rewrite to produce DOT output.
10426 (solve_constraints): Build succ graph as late as possible.
10427 Dump constraint graphs before and after solving.
10428
e38811ce
RG
104292011-04-28 Richard Guenther <rguenther@suse.de>
10430
10431 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10432 New function split out from ...
10433 (find_func_aliases): ... here. Call it.
10434 (find_func_aliases_for_call): Likewise.
10435
fbaf0d0c
GDR
104362011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10437
10438 * internal-fn.h (internal_fn_name_array): Declare.
10439 (internal_fn_flags_array): Likewise.
10440
cbb734aa
UB
104412011-04-27 Uros Bizjak <ubizjak@gmail.com>
10442
10443 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10444 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10445 Move from sse.md.
10446 (ssemodefsuffix): Remove.
10447 (ssevecmodesuffix): New mode attribute.
10448 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10449 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10450 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10451 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10452 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10453 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10454 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10455 ssemodesuffix mode attribute.
10456 (float splitters): Use ssevecmodesuffix mode attribute.
10457 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10458 (sseinsmode): Rename from avxvecmode.
10459 (avxsizesuffix): Rename from avxmodesuffix.
10460 (sseintvecmode): Rename from avxpermvecmode.
10461 (ssedoublevecmode): Rename from ssedoublesizemode.
10462 (ssehalfvecmode): Rename from avxhalfvecmode.
10463 (ssescalarmode): Rename from avxscalarmode.
10464 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10465 templates for ssemodesuffix mode attribute.
10466 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10467 mode attribute.
10468
10469 Adjust RTX patterns globally for renamed mode attributes.
10470
991278ab
JH
104712011-04-27 Jan Hubcika <jh@suse.cz>
10472
10473 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10474 * ipa-inline-analysis.c: Include alloc-pool.h.
10475 (edge_predicate_pool): New.
10476 (trye_predicate_p): New function
10477 (false_predicate_p): New function.
10478 (add_clause): Sanity check that false clauses are "optimized";
10479 never add clauses to predicate that is already known to be false.
10480 (and_predicate): Use flase_predicate_p.
10481 (evaulate_predicate): Rename to ...
10482 (evaluate_predicate): ... this one; update all callers; assert
10483 that false is not listed among possible truths.
10484 (dump_predicate): Use true_predicate_p.
10485 (account_size_time): Use false_predicate_p.
10486 (evaulate_conditions_for_edge): Rename to ...
10487 (evaluate_conditions_for_edge) ... this one.
10488 (edge_set_predicate): New function.
10489 (inline_edge_duplication_hook): Duplicate edge predicates.
10490 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 10491 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
10492 (dump_inline_summary): Update.
10493 (estimate_function_body_sizes): Set edge predicates.
10494 (estimate_calls_size_and_time): Handle predicates.
10495 (estimate_callee_size_and_time): Update.
10496 (remap_predicate): Add toplev_predicate; update comment.
10497 (remap_edge_predicates): New function.
10498 (inline_merge_summary): Compute toplev predicate; update.
10499 (read_predicate): New function.
10500 (read_inline_edge_summary): Use it.
10501 (inline_read_section): Likewise.
10502 (write_predicate): New function.
10503 (write_inline_edge_summary): Use it.
10504 (inline_write_summary): Likewise.
10505 (inline_free_summary): Free alloc pool and edge summary vec.
10506
648b5f85
RG
105072011-04-27 Richard Guenther <rguenther@suse.de>
10508
10509 * tree-ssa-structalias.c (changed_count): Remove.
10510 (changed): Use a bitmap.
10511 (unify_nodes): Adjust.
10512 (do_sd_constraint): Likewise.
10513 (do_ds_constraint): Likewise.
10514 (do_complex_constraint): Likewise.
10515 (solve_graph): Likewise.
10516
4d5dcfb2
JH
105172011-04-27 Jan Hubicka <jh@suse.cz>
10518
10519 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10520
200eb7d2
UB
105212011-04-27 Uros Bizjak <ubizjak@gmail.com>
10522
10523 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10524 (avx_vperm2f128_*_operand): Ditto.
10525 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10526 Use avx_vpermilp_parallel in insn condition.
10527 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10528 Use avx_vperm2f128_parallel in insn condition.
10529
7d6e2521
RG
105302011-04-27 Richard Guenther <rguenther@suse.de>
10531
10532 * Makefile.in (tree-ssa-structalias.o): Remove
10533 gt-tree-ssa-structalias.h dependency.
10534 (GTFILES): Remove tree-ssa-structalias.c.
10535 * tree.c (allocate_decl_uid): New function.
10536 (make_node_stat): Use it.
10537 (copy_node_stat): Likewise.
10538 * tree.h (allocate_decl_uid): Declare.
10539 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10540 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10541 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 10542 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
10543 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10544 (struct heapvar_map): Likewise.
10545 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10546 heapvar_insert): Likewise.
10547 (make_heapvar_for): Rename to ...
10548 (make_heapvar): ... this. Simplify.
10549 (fake_var_decl_obstack): New global var.
10550 (build_fake_var_decl): New function.
10551 (make_constraint_from_heapvar): Adjust.
10552 (handle_lhs_call): Likewise.
10553 (create_function_info_for): Likewise.
10554 (intra_create_variable_infos): Likewise.
10555 (init_alias_vars): Allocate fake_var_decl_obstack.
10556 (init_alias_heapvars, delete_alias_heapvars): Remove.
10557 (compute_points_to_sets): Do not call init_alias_heapvars.
10558 (ipa_pta_execute): Likewise.
10559 (delete_points_to_sets): Free fake_var_decl_obstack.
10560
526ed6c2
UW
105612011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10562
10563 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10564 (si_from_UTItype, si_to_UTItype): New functions.
10565 (__udivmodti4): Use them to implement type-punning.
10566 * config/spu/multi3.c (union qword_TItype): New data type.
10567 (si_from_TItype, si_to_TItype): New functions.
10568 (__multi3): Use them to implement type-punning.
10569
c187d33c
UW
105702011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10571
10572 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10573
40982661
JH
105742011-04-27 Jan Hubicka <jh@suse.cz>
10575
10576 * ipa-prop.c (function_insertion_hook_holder): New holder.
10577 (ipa_add_new_function): New function.
200eb7d2
UB
10578 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10579 Register/deregister holder.
40982661 10580
9aef53ee
RG
105812011-04-27 Richard Guenther <rguenther@suse.de>
10582
10583 PR tree-optimization/48772
200eb7d2 10584 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 10585
f63d806d
RG
105862011-04-27 Richard Guenther <rguenther@suse.de>
10587
10588 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10589 TARGET_MEM_REF handling.
10590
e1ea7451
NC
105912011-04-27 Nick Clifton <nickc@redhat.com>
10592
9b5db25d
NC
10593 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10594 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10595 (REG_CLASS_NAMES): Likewise.
10596 (REG_CLASS_CONTENTS): Likewise.
10597 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10598 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10599 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10600 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10601 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10602 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10603 duplicate register classes.
97d20907 10604 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
10605 (frv_register_move_cost): Likewise.
10606
e1ea7451
NC
10607 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10608 end of the regno_reg_class array.
10609
5c2f94b4
JJ
106102011-04-27 Jakub Jelinek <jakub@redhat.com>
10611
10612 PR c/48742
10613 * c-typeck.c (build_binary_op): Don't wrap arguments if
10614 int_operands is true.
10615
57a944d7
KK
106162011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10617
10618 PR target/48767
10619 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10620 targetm.calls.must_pass_in_stack for void type.
10621
898b8927
JH
106222011-04-26 Jan Hubicka <jh@suse.cz>
10623
10624 * cgraphbuild.c (build_cgraph_edges): Update call
10625 of cgraph_create_edge and cgraph_create_indirect_edge.
10626 * cgraph.c (cgraph_create_edge_including_clones,
10627 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10628 cgraph_update_edges_for_call_stmt_node): Do not take nest
10629 argument; do not initialize call_stmt_size/time.
10630 (dump_cgraph_node): Do not dump nest.
10631 (cgraph_clone_edge): Do not take loop_nest argument;
10632 do not propagate it; do not clone call_stmt_size/time.
10633 (cgraph_clone_node): Likewise.
10634 (cgraph_create_virtual_clone): Update.
10635 * cgraph.h (struct cgraph_edge): Remove
10636 call_stmt_size/call_stmt_time/loop_nest.
10637 (cgraph_create_edge, cgraph_create_indirect_edge,
10638 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10639 prototype.
10640 * tree-emutls.c (gen_emutls_addr): Update.
10641 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10642 loop_nest; handle indirect calls, too.
10643 (clone_inlined_nodes): Do not care about updating inline summaries.
10644 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10645 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10646 stream call_stmt_size/call_stmt_time/loop_nest.
10647 * ipa-inline.c (edge_badness): Update.
10648 (ipa_inline): dump summaries after inlining.
10649 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 10650 New.
898b8927
JH
10651 (inline_edge_summary): New function.
10652 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10653 (inline_edge_removal_hook): Handle edge summaries.
10654 (inline_edge_duplication_hook): New hook.
10655 (inline_summary_alloc): Alloc hooks.
10656 (initialize_growth_caches): Do not register removal hooks.
10657 (free_growth_caches); Do not free removal hook.
10658 (dump_inline_edge_summary): New function.
10659 (dump_inline_summary): Use it.
10660 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10661 (inline_update_callee_summaries): New function.
10662 (inline_merge_summary): Use it.
10663 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10664 (read_inline_edge_summary): New function.
10665 (inline_read_section): Use it.
10666 (write_inline_edge_summary): New function.
10667 (inline_write_summary): Use it.
10668 (inline_free_summary): Free edge new holders.
10669 * tree-inline.c (copy_bb): Update.
10670
ffa03772
JM
106712011-04-26 Jason Merrill <jason@redhat.com>
10672
10673 * tree-eh.c (lower_try_finally_switch): Create the label along with
10674 the CASE_LABEL_EXPR.
10675
6d7b45ad
DM
106762011-04-26 David S. Miller <davem@davemloft.net>
10677 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10678
10679 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10680 * configure: Regenerate.
10681
df10b6d4
MM
106822011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10683
10684 PR target/48258
10685 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10686 reduction.
10687 (VEC_reduc): New code iterator and splitters for vector reduction.
10688 (VEC_reduc_name): Ditto.
10689 (VEC_reduc_rtx): Ditto.
10690 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10691 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10692
10693 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10694 support for extracting SF on VSX.
10695
10696 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10697 generating xscvspdp.
10698 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10699 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10700 double add, minimum, maximum vector reduction.
10701 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10702 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10703 optimize double vector reduction.
10704 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10705
35a5db04
JM
107062011-04-26 Joseph Myers <joseph@codesourcery.com>
10707
10708 * config/fr30/fr30.h (inhibit_libc): Don't define.
10709 * config/m32r/m32r-protos.h: Correct comment.
10710 * config/v850/v850.h (GHS_default_section_names,
10711 GHS_current_section_names): Use tree, not union tree_node *.
10712
2f964ad6
XDL
107132011-04-26 Xinliang David Li <davidxl@google.com>
10714
200eb7d2 10715 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
10716 * c-family/c-opts.c (c_common_handle_option): Set
10717 warn_maybe_uninitialized.
10718 * opts.c (common_handle_option): Ditto.
10719 * common.opt: New option.
10720 * tree-ssa.c (warn_uninit): Add one more parameter.
10721 (warn_uninitialized_var): Pass warning code.
10722 * tree-flow.h: Interface change.
10723
9c7bd91a
RO
107242011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10725
200eb7d2 10726 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
10727 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10728 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10729
c2f36e21
RO
107302011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10731
10732 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10733 * config/mips/mips.opt (mmips-tfile): Remove.
10734
10735 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10736 mips-tdump reference to ...
200eb7d2 10737 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
10738 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10739 reference by Tru64 UNIX.
10740
2c9da85b
JJ
107412011-04-26 Jakub Jelinek <jakub@redhat.com>
10742
0c5f6539
JJ
10743 PR debug/48768
10744 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10745 is error_mark_node, set value to NULL.
10746
2c9da85b
JJ
10747 PR tree-optimization/48734
10748 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10749 if return value from maybe_fold_*_comparsions isn't something
10750 the code is prepared to handle.
10751
77fa1d54
UB
107522011-04-26 Uros Bizjak <ubizjak@gmail.com>
10753
10754 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10755 mode check.
10756 (ext_QIreg_nomode_operands): Remove.
10757 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10758 (*andsi_1): Ditto.
10759 (*andhi_1): Ditto.
10760
0e2a6c2b
AS
107612011-04-26 Andrew Stubbs <ams@codesourcery.com>
10762
10763 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10764
961562d8
RB
107652011-04-26 Richard Guenther <rguenther@suse.de>
10766
10767 * c-typeck.c (build_unary_op): Do not expand array-refs via
10768 pointer arithmetic. Only adjust qualifiers for function types.
10769
107702011-04-26 Richard Guenther <rguenther@suse.de>
10771
10772 PR middle-end/48694
10773 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10774 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
10775 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10776 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 10777
a0d260fc
PC
107782011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10779
6bec6c98 10780 * doc/extend.texi: Document __underlying_type.
a0d260fc 10781
4d583bb9
SB
107822011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10783
10784 * config/rs6000/titan.md (automata_option "progress"): Remove.
10785
1f3fcdc3
JL
107862011-04-25 Jeff Law <law@redhat.com>
10787
10788 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10789
e5b0dad8
JK
107902011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10791
10792 * system.h (ENUM_BITFIELD): Remove.
10793
5157a881 107942011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 10795 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
10796
10797 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10798 for STORE_FLAG_VALUE==-1 case.
10799
ed4c109e
RS
108002011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10801
10802 PR target/43804
10803 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10804 LEGITIMATE_PIC_OPERAND_P.
10805
f3181aa2
JH
108062011-04-24 Jan Hubicka <jh@suse.cz>
10807
10808 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10809 WPA hack.
77fa1d54
UB
10810 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10811 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10812 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
10813 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10814 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10815 Sanity check predicate length.
10816 (remap_predicate): Likewise; sanity check jump functions.
10817 (inline_read_section, inline_write_summary): Sanity check
10818 predicate length.
10819
5307cbaa
PC
108202011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10821
10822 PR other/48748
10823 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10824 __is_literal_type, and __is_trivial; update throughout about
10825 possibly cv-qualified void types.
10826
bebd5f99
GP
108272011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10828
10829 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10830 testsuite and make it version agnostic.
10831
7ee28a74
JH
108322011-04-22 Jan Hubicka <jh@suse.cz>
10833
10834 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10835
16997bc0
JJ
108362011-04-23 Jakub Jelinek <jakub@redhat.com>
10837
10838 PR c/48685
10839 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10840 to VOID_TYPE even around MODIFY_EXPR.
10841
f94d4ab1
MS
108422011-04-22 Mike Stump <mikestump@comcast.net>
10843
1a84c183 10844 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
10845 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10846 comment.
10847
632b4f8e
JH
108482011-04-22 Jan Hubicka <jh@suse.cz>
10849
10850 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
10851 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10852 ipa-prop.c; update all uses.
632b4f8e 10853 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
10854 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10855 merge summary of inlined function into former caller.
632b4f8e
JH
10856 * ipa-inline.c (max_benefit): Remove.
10857 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
10858 (update_caller_keys): Use
10859 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
10860 (update_callee_keys): Likewise.
10861 (update_all_callee_keys): Likewise.
77fa1d54
UB
10862 (inline_small_functions): Do not collect max_benefit; do not reset
10863 estimated_growth; call free_growth_caches and initialize_growth_caches.
10864 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10865 struct size_time_entry): New structures.
632b4f8e 10866 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
10867 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10868 and estimated_growth.
632b4f8e
JH
10869 (edge_growth_cache_entry): New structure.
10870 (node_growth_cache, edge_growth_cache): New global vars.
10871 (estimate_growth): Turn into inline.
10872 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10873 initialize_growth_caches, free_growth_caches): Declare.
10874 (estimate_edge_growth): Rewrite.
10875 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
10876 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10877 functions.
632b4f8e
JH
10878 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10879 (NUM_CONDITIONS): New constant.
10880 (predicate_conditions): New enum.
10881 (IS_NOT_CONSTANT): New constant.
10882 (edge_removal_hook_holder): New var.
10883 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
10884 (true_predicate, single_cond_predicate, false_predicate,
10885 not_inlined_predicate, add_condition, add_clause, and_predicates,
10886 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10887 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
10888 evaulate_conditions_for_edge): New functions.
10889 (inline_summary_alloc): Move to heap.
10890 (inline_node_removal_hook): Clear condition and entry vectors.
10891 (inline_edge_removal_hook): New function.
10892 (initialize_growth_caches, free_growth_caches): New function.
10893 (dump_inline_summary): Update.
10894 (edge_execution_predicate): New function.
10895 (will_be_nonconstant_predicate): New function.
10896 (estimate_function_body_sizes): Compute BB and constantness predicates.
10897 (compute_inline_parameters): Do not clear estimated_growth.
10898 (estimate_edge_size_and_time): New function.
10899 (estimate_calls_size_and_time): New function.
10900 (estimate_callee_size_and_time): New function.
10901 (remap_predicate): New function.
10902 (inline_merge_summary): New function.
10903 (do_estimate_edge_time): New function based on...
10904 (estimate_edge_time): ... this one.
10905 (do_estimate_edge_growth): New function.
10906 (do_estimate_growth): New function based on....
10907 (estimate_growth): ... this one.
10908 (inline_analyze_function): Analyze after deciding on jump functions.
10909 (inline_read_section): New function.
10910 (inline_read_summary): Use it.
10911 (inline_write_summary): Write all the new data.
10912 * ipa-prop.c (ipa_get_param_decl_index): Export.
10913 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
10914 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10915 Declare.
10916 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
10917 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10918 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10919 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10920 cgraph_edge_inlinable_p): Remove.
10921 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
10922 (cgraph_process_new_functions): Update call of
10923 compute_inline_parameters.
632b4f8e 10924
1df5b0db
RG
109252011-04-22 Richard Guenther <rguenther@suse.de>
10926
10927 * tree.c (build_int_cst): Properly create canonicalized integer
10928 constants.
10929 (build_int_cst_type): Remove scary comments.
10930
ae01169c
XDL
109312011-04-22 Xinliang David Li <davidxl@google.com>
10932
10933 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10934 by default when -Wno-error is not specified.
10935 * opts-global.c (decode_options): Remove call to
10936 control_warning_options.
10937
93dfac24
JJ
109382011-04-22 Jakub Jelinek <jakub@redhat.com>
10939
10940 PR tree-optimization/48717
10941 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10942 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10943
1b5f5069
JM
109442011-04-22 Joseph Myers <joseph@codesourcery.com>
10945
10946 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10947 definition where used.
10948
144f4153
JJ
109492011-04-22 Jakub Jelinek <jakub@redhat.com>
10950
10951 PR c/48716
10952 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10953 TREE_STATIC variables declared inside of some OpenMP construct.
10954
f9fd305b
MJ
109552011-04-22 Martin Jambor <mjambor@suse.cz>
10956
10957 PR middle-end/48585
1d284ec5 10958 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 10959
49819fef
AM
109602011-04-22 Alexander Monakov <amonakov@ispras.ru>
10961
10962 PR c/36750
10963 * c-typeck.c (pop_init_level): Do not warn about initializing
10964 with ` = {0}'.
10965
401f6699
AM
109662011-04-22 Alan Modra <amodra@gmail.com>
10967
10968 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10969 when returning call_cookie.
10970 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10971 pointers, to functions with no more vector args than the current
10972 function, and some non-local calls for ABI_V4.
10973 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10974 sibcall_nonlocal_aix64): Combine to ..
10975 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
10976 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10977 (sibcall_value_nonlocal_aix<mode>): ..likewise.
10978 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10979 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
10980 operand.
10981 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10982 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10983 sibcall_value_symbolic_64): Delete.
10984
903d1e67
XDL
109852011-04-21 Xinliang David Li <davidxl@google.com>
10986
10987 * cgraph.h: Remove pid.
10988 * cgraph.c: Remove pid.
10989 * value-prof.c (init_node_map): New function.
10990 (del_node_map): New function.
10991 (find_func_by_funcdef_no): New function.
10992 (gimple_ic_transform): Call new function.
10993 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10994 * function.c (get_last_funcdef_no): New function.
10995 * function.h (get_last_funcdef_no): New function.
10996 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10997 to libgcov function.
10998 (tree-profiling): Call node map init and delete function.
10999
7378e95f
ILT
110002011-04-21 Ian Lance Taylor <iant@google.com>
11001
11002 * godump.c (go_format_type): Use exported Go name for anonymous
11003 field name.
11004
e84a6fcf
NF
110052011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11006
11007 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
11008 Call builtin_function_type_list instead of builtin_function_type.
11009 (UNARY, BINARY, TRINARY, QUAD): Likewise.
11010
4fe058e2
NF
110112011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11012
11013 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
11014 build_function_type_list instead of build_function_type.
11015 Delete variable `endlink'.
11016
1ba0a2d2
NF
110172011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11018
11019 * config/s390/s390.c (s390_init_builtins): Call
11020 build_function_type_list instead of build_function_type.
11021
c0676219
NF
110222011-04-21 Nathan Froyd <froydnj@codesourcery.com>
11023
11024 * config/ia64/ia64.c (ia64_init_builtins): Call
11025 build_function_type_list instead of builtin_function_type.
11026
6ddfda8a
ER
110272011-04-21 Easwaran Raman <eraman@google.com>
11028
3a6448ea 11029 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
11030 (add_stack_var): ...and its reference here...
11031 (expand_stack_vars): ...and here.
11032 (stack_var_cmp): Sort by descending order of size.
11033 (partition_stack_vars): Change heuristic.
1d284ec5 11034 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
11035 (dump_stack_var_partition): Add newline after each partition.
11036
23756963
DA
110372011-04-21 Dimitrios Apostolou <jimis@gmx.net>
11038 Jeff Law <law@redhat.com>
11039
77fa1d54 11040 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
11041 * gengtype.c (matching_file_name_substitute): Likewise.
11042
aa2a43d2
RG
110432011-04-21 Richard Guenther <rguenther@suse.de>
11044
11045 PR lto/48703
1d284ec5 11046 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 11047
4d931f41
EB
110482011-04-21 Eric Botcazou <ebotcazou@adacore.com>
11049
11050 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
11051
f103fa7a
RG
110522011-04-21 Richard Guenther <rguenther@suse.de>
11053
11054 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
11055 file name.
11056
e19f6650
RG
110572011-04-21 Richard Guenther <rguenther@suse.de>
11058
11059 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11060 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
11061 Use DECL_P, not SSA_VAR_P.
11062 (ptr_derefs_may_alias_p): Likewise.
11063 (ptr_deref_may_alias_ref_p_1): Likewise.
11064 (decl_refs_may_alias_p): Likewise.
11065 (refs_may_alias_p_1): Likewise.
11066 (ref_maybe_used_by_call_p_1): Likewise.
11067 (call_may_clobber_ref_p_1): Likewise.
11068 (indirect_ref_may_alias_decl_p): Assume indirect refrences
11069 are either MEM_REF or TARGET_MEM_REF.
11070 (indirect_refs_may_alias_p): Likewise.
11071 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
11072 for MEM_EXPR of indirect calls.
11073
9d1831bb
TG
110742011-04-21 Tristan Gingold <gingold@adacore.com>
11075
11076 * vmsdbgout.c (write_srccorr): Compute file length from the string.
11077 (dst_file_info_struct): Remove flen field.
11078 (lookup_filename): Remove code that set flen field.
11079
f199c029
TG
110802011-04-21 Tristan Gingold <gingold@adacore.com>
11081
11082 * config/ia64/ia64.c (ia64_start_function): Add a guard.
11083
2894086e
UB
110842011-04-21 Uros Bizjak <ubizjak@gmail.com>
11085
11086 PR target/48708
11087 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
11088 vec_extract and vec_concat for non-SSE4_1 targets.
11089
53f94a5c
RG
110902011-04-21 Richard Guenther <rguenther@suse.de>
11091
11092 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
11093 return statements.
11094
f0dca5ba
JM
110952011-04-21 Joseph Myers <joseph@codesourcery.com>
11096
11097 * config/i386/cygming.h (union tree_node, TREE): Don't define or
11098 undefine.
11099 (FILE): Don't undefine.
11100
984514ac
JM
111012011-04-21 Joseph Myers <joseph@codesourcery.com>
11102
11103 * config/alpha/alpha.c (struct machine_function): Use rtx, not
11104 struct rtx_def *.
11105 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
11106 struct rtx_def *.
11107 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 11108 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
11109 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
11110 rtx_def *.
11111 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
11112 definitions where used.
11113 * config/microblaze/microblaze.h (struct microblaze_args): Use
11114 rtx, not struct rtx_def *.
11115 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
11116 rtx_def *.
2894086e
UB
11117 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
11118 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
11119 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
11120 not struct rtx_def *.
11121 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
11122 struct rtx_def *.
11123 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
11124 rtx_def *.
2894086e 11125 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 11126
0b5a2724
RS
111272011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11128
11129 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
11130 operand_equal_p to compare DR_BASE_ADDRESSes.
11131 (vect_check_interleaving): Likewise.
11132
4b18d683
RS
111332011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11134
11135 PR target/46329
11136 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
11137 for all Neon struct constants.
11138
1a627b35
RS
111392011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11140
11141 * target.def (legitimate_constant_p): New hook.
11142 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
11143 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
11144 * doc/tm.texi: Regenerate.
11145 * hooks.h (hook_bool_mode_rtx_true): Declare.
11146 * hooks.c (hook_bool_mode_rtx_true): Define.
11147 * system.h (LEGITIMATE_CONSTANT_P): Poison.
11148 * calls.c (precompute_register_parameters): Replace uses of
11149 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
11150 (emit_library_call_value_1): Likewise.
11151 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
11152 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
11153 * ira-costs.c (scan_one_insn): Likewise.
11154 * recog.c (general_operand, immediate_operand): Likewise.
11155 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
11156 * reload1.c (init_eliminable_invariants): Likewise.
11157
11158 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
11159 mode argument.
11160 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
11161 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
11162 argument.
11163 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11164 * config/alpha/predicates.md (input_operand): Update call to
11165 alpha_legitimate_constant_p.
11166
11167 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
11168 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
11169 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
11170 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11171 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
11172 (arm_legitimate_constant_p): New functions.
11173 (arm_cannot_force_const_mem): Make static.
11174
11175 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
11176
11177 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
11178 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
11179 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
11180 instead of bfin_legitimate_constant_p.
11181 (bfin_legitimate_constant_p): Make static. Add a mode argument.
11182 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11183
11184 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11185
11186 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11187
11188 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11189 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11190 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11191 (frv_legitimate_constant_p): Make static. Add a mode argument.
11192
11193 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11194 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11195 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11196
11197 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11198 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11199 * config/i386/i386.c (legitimate_constant_p): Rename to...
11200 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
11201 argument.
11202 (ix86_cannot_force_const_mem): Update accordingly.
11203 (ix86_legitimate_address_p): Likewise.
11204 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11205 * config/i386/i386.md: Update commentary.
11206
11207 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11208 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11209 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11210 (ia64_legitimate_constant_p): Make static. Add a mode argument.
11211
11212 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11213
11214 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11215 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11216 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11217 (lm32_legitimate_constant_p): Make static. Add a mode argument.
11218
11219 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11220 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11221 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11222
11223 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11224 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11225 (m32r_legitimate_constant_p): New function.
11226
11227 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11228 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11229 LEGITIMATE_CONSTANT_P.
11230 (LEGITIMATE_CONSTANT_P): Delete.
11231 * config/m68k/m68k.c (m68k_expand_prologue): Call
11232 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11233 (m68k_legitimate_constant_p): New function.
11234 * config/m68k/m68k.md: Update comments.
11235
11236 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11237 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11238 (mcore_legitimate_constant_p): New function.
11239
11240 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11241 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11242 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11243 Add a mode argument.
11244 (mep_legitimate_address): Update accordingly.
11245 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11246
11247 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11248 Delete.
11249 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11250 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11251 static. Check OP's mode for VOIDmode.
11252 (microblaze_legitimate_constant_p): New function.
11253 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11254
11255 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11256 * config/mips/mips.c (mips_legitimate_constant_p): New function.
11257 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11258 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11259 * config/mips/predicates.md: Update comments.
11260
11261 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11262 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11263 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11264 (mmix_legitimate_constant_p): Make static, return a bool, and take
11265 a mode argument.
11266 (mmix_print_operand_address): Update accordingly.
11267
11268 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11269 Delete.
11270 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
11271 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11272 static. Add a mode argument.
1a627b35
RS
11273 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11274
11275 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11276
11277 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11278 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11279 (pa_legitimate_constant_p): New function.
11280
11281 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11282
11283 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11284 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11285 (pdp11_legitimate_constant_p): New function.
11286
11287 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11288 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11289 (rs6000_legitimate_constant_p): New function.
11290
11291 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11292 (rx_legitimate_constant_p): ...this.
11293 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11294 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11295 (rx_legitimate_constant_p): ...this.
11296 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11297 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11298
11299 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11300 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11301 * config/s390/s390.c (legitimate_constant_p): Rename to...
11302 (s390_legitimate_constant_p): ...this. Make static, return a bool,
11303 and add a mode argument.
11304 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11305
11306 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11307
11308 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11309 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11310 (sh_legitimate_constant_p): New function.
11311
11312 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11313 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11314 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11315 (legitimate_constant_p): Rename to...
11316 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11317 argument.
11318 (constant_address_p): Update accordingly.
11319
11320 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11321 argument and return a bool.
11322 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11323 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11324 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11325 (spu_rtx_costs): Update accordingly.
11326 * config/spu/predicates.md (vec_imm_operand): Likewise.
11327
11328 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11329
11330 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11331 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11332 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11333
11334 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11335 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11336 * config/vax/vax.c (legitimate_constant_p): Likewise.
11337
11338 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11339 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11340 (xtensa_legitimate_constant_p): New function.
11341
fbbf66e7
RS
113422011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11343
11344 * target.def (cannot_force_const_mem): Add a mode argument.
11345 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11346 * doc/tm.texi: Regenerate.
11347 * hooks.h (hook_bool_mode_rtx_false): Declare.
11348 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11349 (hook_bool_mode_const_rtx_true): Likewise.
11350 (hook_bool_mode_rtx_false): New function.
11351 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11352 to be non-VOID. Update call to cannot_force_const_mem.
11353 (find_reloads): Update accordingly.
11354 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11355 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11356 argument.
11357 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11358 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11359 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11360 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11361 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11362 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11363 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11364 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11365 (m68k_cannot_force_const_mem): ...this new function.
11366 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11367 argument.
11368 (mips_const_insns, mips_legitimize_const_move): Update calls.
11369 (mips_secondary_reload_class): Likewise.
11370 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11371 (pa_cannot_force_const_mem): ...this new function.
2894086e 11372 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
11373 (rs6000_cannot_force_const_mem): ...this new function.
11374 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11375 argument.
11376 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11377 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11378 to...
11379 (xtensa_cannot_force_const_mem): ...this new function.
11380
b861891b
NF
113812011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11382
11383 * config/mips/mips.c (mips16_build_function_stub): Call
11384 build_function_type_list instead of build_function_type.
11385 (mips16_build_call_stub): Likewise.
11386
34149ed5
NF
113872011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11388
11389 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11390 instead of build_function_type.
11391
12526412
NF
113922011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11393
11394 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11395 instead of build_function_type.
11396
3b84d61f
UB
113972011-04-20 Uros Bizjak <ubizjak@gmail.com>
11398
11399 PR target/48678
11400 * config/i386/i386.md (insv): Change operand 0 constraint to
11401 "register_operand". Change operand 1 and 2 constraint to
11402 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11403 * config/i386/sse.md (sse4_1_pinsrb): Export.
11404 (sse2_pinsrw): Ditto.
11405 (sse4_1_pinsrd): Ditto.
11406 (sse4_1_pinsrq): Ditto.
11407 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11408 * config/i386/i386.c (ix86_expand_pinsr): New.
11409
4a25752b
ER
114102011-04-20 Easwaran Raman <eraman@google.com>
11411
11412 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11413 containing union type only with -fstrict-aliasing.
11414
04695783
JM
114152011-04-20 Jim Meyering <meyering@redhat.com>
11416
11417 Remove useless if-before-free tests.
11418 * calls.c (expand_call, save_area): Likewise.
11419 * cfgcleanup.c (try_forward_edges): Likewise.
11420 * collect2.c (collect_execute): Likewise.
11421 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11422 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11423 * coverage.c (coverage_checksum_string): Likewise.
11424 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11425 * cselib.c (cselib_init): Likewise.
11426 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11427 (df_set_clean_cfg): Likewise.
11428 * function.c (free_after_compilation): Likewise.
11429 * gcc.c (do_spec_1, main): Likewise.
11430 * gcov.c (create_file_names): Likewise.
11431 * gensupport.c (identify_predicable_attribute): Likewise.
11432 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11433 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11434 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11435 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11436 * ipa-pure-const.c (local_pure_const): Likewise.
11437 * ipa-reference.c (propagate): Likewise.
11438 * ira-costs.c (free_ira_costs): Likewise.
11439 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11440 * matrix-reorg.c (mat_free): Likewise.
11441 * prefix.c (get_key_value): Likewise.
11442 * profile.c (compute_value_histograms): Likewise.
11443 * reload1.c (free_reg_equiv): Likewise.
11444 * sched-deps.c (free_deps): Likewise.
11445 * sel-sched-ir.c (fence_clear): Likewise.
11446 * sese.c (set_rename, if_region_set_false_region): Likewise.
11447 * tree-data-ref.c (free_rdg): Likewise.
11448 * tree-eh.c (lower_try_finally): Likewise.
11449 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11450 * tree-ssa-live.c (delete_var_map): Likewise.
11451 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11452 * tree-ssa-pre.c (phi_trans_add): Likewise.
11453
6788475a
JJ
114542011-04-20 Jakub Jelinek <jakub@redhat.com>
11455
11456 PR tree-optimization/48611
11457 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11458 beyond ERT_MUST_NOT_THROW region.
11459
0eda4033
CM
114602011-04-20 Catherine Moore <clm@codesourcery.com>
11461
11462 * config/mips/mips.opt (mfix-24k): New.
11463 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11464 * config/mips/mips.md (length): Increase by 4 for stores if
11465 fixing 24K errata.
11466 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11467 all noreorder if fixing 24K errata.
11468 * doc/invoke.texi: Document mfix-24k.
11469
01475747
CLT
114702011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11471
11472 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 11473 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 11474
bc2c1a60
AS
114752011-04-20 Andrew Stubbs <ams@codesourcery.com>
11476
11477 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11478 (const_ok_for_op): ... to here.
11479
583722ee
KT
114802011-04-20 Kai Tietz <ktietz@redhat.com>
11481
2894086e
UB
11482 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11483 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 11484
422c0989
AS
114852011-04-20 Andrew Stubbs <ams@codesourcery.com>
11486
11487 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11488
d7978bff
RG
114892011-04-20 Richard Guenther <rguenther@suse.de>
11490
11491 PR tree-optimization/47892
11492 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11493 are if-convertible.
11494
818412ba
EB
114952011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11496
11497 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11498
b501ce4e
TG
114992011-04-20 Tristan Gingold <gingold@adacore.com>
11500
11501 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11502
516edfdd
GJL
115032011-04-20 Georg-Johann Lay <avr@gjlay.de>
11504
11505 PR target/18145
11506
11507 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11508 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11509 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11510 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11511 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11512
11513 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11514 New prototype.
11515
11516 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11517 (avr_asm_named_section, avr_asm_output_aligned_common,
11518 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11519 New functions to update...
11520 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11521 (avr_asm_init_sections): Overwrite section callbacks for
11522 data_section, bss_section.
11523 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11524 from here to...
11525 (avr_file_end): ...here.
11526
dafc9511
RG
115272011-04-20 Richard Guenther <rguenther@suse.de>
11528
11529 PR middle-end/48695
11530 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 11531 objects and types here. Adjust for their offset before comparing.
dafc9511 11532
1da0876c
RS
115332011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11534
11535 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11536 statement per copy.
11537
25583c4f
RS
115382011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11539
11540 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11541 (GIMPLE_H): Include $(INTERNAL_FN_H).
11542 (OBJS-common): Add internal-fn.o.
11543 (internal-fn.o): New rule.
11544 * internal-fn.def: New file.
11545 * internal-fn.h: Likewise.
11546 * internal-fn.c: Likewise.
11547 * gimple.h: Include internal-fn.h.
11548 (GF_CALL_INTERNAL): New gf_mask.
11549 (gimple_statement_call): Put fntype into a union with a new
11550 internal_fn field.
11551 (gimple_build_call_internal): Declare.
11552 (gimple_build_call_internal_vec): Likewise.
11553 (gimple_call_same_target_p): Likewise.
11554 (gimple_call_internal_p): New function.
11555 (gimple_call_internal_fn): Likewise.
11556 (gimple_call_fntype): Return null for internal calls.
11557 (gimple_call_set_fntype): Assert that the function is not internal.
11558 (gimple_call_set_fn): Likewise.
11559 (gimple_call_set_fndecl): Likewise.
11560 (gimple_call_set_internal_fn): New function.
11561 (gimple_call_addr_fndecl): Handle null functions.
11562 (gimple_call_return_type): Likewise null types.
11563 * gimple.c (gimple_build_call_internal_1): New function.
11564 (gimple_build_call_internal): Likewise.
11565 (gimple_build_call_internal_vec): Likewise.
11566 (gimple_call_same_target_p): Likewise.
11567 (gimple_call_flags): Handle calls to internal functions.
11568 (gimple_call_fnspec): New function.
11569 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11570 (gimple_has_side_effects): Handle null functions.
11571 (gimple_rhs_has_side_effects): Likewise.
11572 (gimple_call_copy_skip_args): Handle calls to internal functions.
11573 * cfgexpand.c (expand_call_stmt): Likewise.
11574 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11575 * gimple-fold.c (gimple_fold_call): Handle null functions.
11576 (gimple_fold_stmt_to_constant_1): Don't fold
11577 calls to internal functions.
11578 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11579 functions.
11580 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11581 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11582 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11583 (do_warn_unused_result): Likewise.
11584 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11585 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11586 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11587 the target of a call.
11588 (initialize_hash_element): Update accordingly.
11589 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11590 (iterative_hash_hashable_expr): Handle calls to internal functions.
11591 (print_expr_hash_elt): Likewise.
11592 * tree-ssa-pre.c (can_value_number_call): Likewise.
11593 (eliminate): Handle null functions.
11594 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11595 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11596 (find_func_aliases): Likewise.
11597 * value-prof.c (gimple_ic_transform): Likewise.
11598 (gimple_indirect_call_to_profile): Likewise.
11599 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11600 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11601
1a3118e9
JH
116022011-04-19 Jan Hubicka <jh@suse.cz>
11603
11604 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
11605 * ipa-inline.c (inline_small_functions): Compute summaries first,
11606 populate heap later.
1a3118e9 11607
fee8b6da
JH
116082011-04-19 Jan Hubicka <jh@suse.cz>
11609
11610 * cgraph.h (save_inline_function_body): Remove.
11611 * ipa-inline-transform.c: New file, broke out of...
11612 * ipa-inline.c: ... this one; Update toplevel comment.
11613 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11614 make global.
11615 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11616 (cgraph_mark_inline_edge): Rename to inline_call; move to
11617 ipa-inline-transform.c.
11618 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11619 move to ipa-inline-transform.c
11620 (recursive_inlining, inline_small_functions, flatten_function,
11621 ipa_inline, inline_always_inline_functions,
11622 early_inline_small_functions): Update.
11623 (inline_transform): Move to ipa-inline-transform.c.
11624 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11625 Declare.
11626 * Makefile.in (ipa-inline-transform.o): New file.
11627 * cgraphunit.c (save_inline_function_body): Move to
11628 ipa-inline-transform.c
11629
f0679612
DD
116302011-04-19 DJ Delorie <dj@redhat.com>
11631
11632 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11633 registers if we already know there aren't any.
11634 (m32c_emit_epilogue): Don't emit a barrier here.
11635 (m32c_emit_eh_epilogue): Likewise.
11636 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11637 operands at expand time.
11638 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11639 int" wchar type.
11640 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11641 duplicates. Provide aliases instead.
11642 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11643 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11644 the compiler.
11645
32257ddc
AS
116462011-04-19 Anatoly Sokolov <aesok@post.ru>
11647
11648 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11649 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11650 (general_or_i64_p, sparc_register_move_cost): New function.
11651
60bea929
RO
116522011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11653
11654 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 11655 Add lynx, mipssde. Sort table.
60bea929 11656
444b3995 116572011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 11658
9d12f71a
EB
11659 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11660 not negative.
444b3995 11661
d708ce50
JJ
116622011-04-19 Jakub Jelinek <jakub@redhat.com>
11663
11664 PR target/48678
11665 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11666 is a SUBREG with non-MODE_INT mode inside of it.
11667
49c471e3
MJ
116682011-04-19 Martin Jambor <mjambor@suse.cz>
11669
11670 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11671 also according to actual contants.
11672 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11673 (gimple_fold_call): Use it.
11674 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11675
0004f992
MJ
116762011-04-19 Martin Jambor <mjambor@suse.cz>
11677
11678 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11679 non-pointer assignments.
11680
40591473
MJ
116812011-04-19 Martin Jambor <mjambor@suse.cz>
11682
11683 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11684 account anc_offset and otr_type from the indirect edge info.
11685 * ipa-prop.c (get_ancestor_addr_info): New function.
11686 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11687 get_ancestor_addr_info, call it.
11688 (ipa_note_param_call): Do not initialize information about polymorphic
11689 calls, return the indirect call graph edge. Remove the last
11690 parameter, adjust all callers.
11691 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11692 parameters. Initialize polymorphic information in the indirect edge.
11693
abe36b81
EB
116942011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11695
11696 PR lto/48148
11697 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11698 the types if they have different enumeration identifiers.
11699
e6416b30
JH
117002011-04-19 Jan Hubicka <jh@suse.cz>
11701
11702 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11703 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11704 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11705 (optimize_function_for_size_p) ... here.
11706
d39132ea
RG
117072011-04-19 Richard Guenther <rguenther@suse.de>
11708
11709 PR lto/48207
11710 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11711 langhook.
11712
ff7037dc
EB
117132011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11714
11715 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11716 if DECL_NO_INLINE_WARNING_P is set on the function.
11717
c1ee2892
BS
117182011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11719
11720 PR fortran/47976
11721 * reload1.c (inc_for_reload): Return void. All callers changed.
11722 (emit_input_reload_insns): Don't try to delete previous output
11723 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
11724
117252011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11726
11727 * gengtype.h: Updated copyright year.
11728 (struct input_file_st): Add inpisplugin field.
11729 (type_fileloc): New function.
11730 * gengtype.c
11731 (write_typed_struct_alloc_def): Add gcc_assert.
11732 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11733 (write_typed_alloc_defns): Don't output for plugin files.
11734 (input_file_by_name): Clear inpisplugin field.
11735 (main): Set inpisplugin field for plugin files.
11736
897e0a89
NP
117372011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11738
11739 * gengtype-state.c (string_eq): New.
11740 (read_state): Use string_eq instead of strcmp when creating the
11741 state_ident_tab.
11742
363ee90e
WG
117432011-04-19 Wei Guozhi <carrot@google.com>
11744
11745 PR target/47855
11746 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11747 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11748 linkage.
11749 * config/arm/constraints.md (Uu): New constraint.
11750 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11751
18a24fed
TG
117522011-04-19 Tristan Gingold <gingold@adacore.com>
11753
11754 * config.gcc (-*-*-*vms): Added.
11755 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11756 definitions moved.
11757 * config/vms/vms-ld.c: New file.
11758 * config/vms/vms-ar.c: New file.
11759 * config/vms/t-vmsnative: New file.
11760
1c13f168
XDL
117612011-04-18 Xinliang David Li <davidxl@google.com>
11762
11763 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11764
84825707
JJ
117652011-04-18 Jakub Jelinek <jakub@redhat.com>
11766
11767 PR middle-end/48661
11768 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11769 if TREE_TYPE (v) is non-NULL.
11770
11771 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11772 gimple_get_virt_mehtod_for_binfo.
11773 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11774 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11775 callers.
11776 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11777
7d4f8d02 117782011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
11779 Steve Ellcey <sje@cup.hp.com>
11780
7d4f8d02
EB
11781 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11782 use its mode as source mode if it isn't VOIDmode.
7254cb57 11783
474e8e70
DCR
117842011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11785
11786 * doc/passes.texi: Fill crossref nodes.
11787
cff41484
JM
117882011-04-18 Jim Meyering <meyering@redhat.com>
11789
7d4f8d02 11790 Fix doubled-word typos in comments and strings
cff41484
JM
11791 * config/alpha/vms-unwind.h: s/for for/for/
11792 * config/arm/unwind-arm.h: Likewise.
11793 * config/microblaze/microblaze.c: Likewise.
11794 * config/sh/constraints.md: s/in in/in/
11795 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11796
f60c2554
UB
117972011-04-18 Uros Bizjak <ubizjak@gmail.com>
11798
11799 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11800 (AVX_FLOAT_MODE_P): Ditto.
11801 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11802 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11803 (AVX_VEC_FLOAT_MODE_P): Ditto.
11804 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11805 (UNSPEC_MASKSTORE): Ditto.
11806 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11807 Merge from <sse>_movmsk<ssemodesuffix> and
11808 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11809 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11810 iterator.
11811 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11812 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11813 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11814
09a2806f
JH
118152011-04-18 Jan Hubicka <jh@suse.cz>
11816
8a8dccb2
JH
11817 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11818
09a2806f
JH
11819 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11820 (want_inline_function_called_once_p): Break out the logic from
11821 ipa_inline.
11822 (edge_badness): Ensure that profile is not misupdated.
11823 (lookup_recursive_calls): Prioritize by call frequencies.
11824 (inline_small_functions): Move program size estimates here;
11825 actually process whole queue even when unit growth has been
11826 met. (to properly compute inline_failed reasons and for the
f60c2554 11827 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
11828 (ipa_inline): Remove unit summary code; first inline hot calls
11829 of functions called once, cold calls next.
11830 (order, nnodes): Remove unused variables.
11831 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11832 (GTFILES): Remove ipa-inline.c
11833 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11834
3eea52ef
EB
118352011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11836
11837 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11838
229a1c59 118392011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 11840 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
11841
11842 * arm.c (neon_builtin_type_bits): Remove.
11843 (typedef enum neon_builtin_mode): New.
11844 (T_MAX): Don't define.
11845 (typedef enum neon_builtin_datum): Remove bits, codes[],
11846 num_vars and base_fcode. Add mode, code and fcode.
11847 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11848 VAR10): Change accordingly.
11849 (neon_builtin_data[]): Change accordingly
11850 (arm_init_neon_builtins): Change accordingly.
11851 (neon_builtin_compare): Remove.
11852 (locate_neon_builtin_icode): Remove.
11853 (arm_expand_neon_builtin): Change accordingly.
11854
11855 * arm.h (enum arm_builtins): Move to ...
11856 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11857
11858 * arm.c (arm_builtin_decl): Declare.
11859 (TARGET_BUILTIN_DECL): Define.
11860 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11861 (arm_builtin_decls[]): New.
11862 (arm_init_neon_builtins): Store builtin declarations in
11863 arm_builtin_decls[].
11864 (arm_init_tls_builtins): Likewise.
11865 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11866 (arm_builtin_decl): New.
11867
75e802cc
RG
118682011-04-18 Richard Guenther <rguenther@suse.de>
11869
11870 * tree.c (upper_bound_in_type): Build properly canonicalized
11871 INTEGER_CSTs.
11872 (lower_bound_in_type): Likewise.
11873
3b45a007
RG
118742011-04-18 Richard Guenther <rguenther@suse.de>
11875
11876 * gimple.h (gimple_call_addr_fndecl): New function.
11877 (gimple_call_fndecl): Use it.
11878 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11879 for direct calls.
11880 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11881 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11882
d25a79ea
RG
118832011-04-18 Richard Guenther <rguenther@suse.de>
11884
11885 PR middle-end/48650
11886 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11887
7d5fc814
EB
118882011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11889
11890 PR lto/48492
11891 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11892 DECL_IN_CONSTANT_POOL without RTL.
11893
7e7cfcf6
UW
118942011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11895 Ira Rosen <ira.rosen@linaro.org>
11896
11897 PR target/48252
11898 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11899 to match neon_vzip/vuzp/vtrn_internal.
11900 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11901 outputs explicitly dependent on both inputs.
11902 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11903
49eab32e
JJ
119042011-04-18 Jakub Jelinek <jakub@redhat.com>
11905
11906 PR tree-optimization/48616
11907 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11908 whether the shift is by scalar or vector based on whether all SLP
11909 scalar stmts have the same rhs.
11910
e54170f4
CLT
119112011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11912
11913 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11914 memory operands.
11915
b14ee6c9
RS
119162011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11917
269e0e18 11918 PR target/43700
b14ee6c9
RS
11919 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11920 registers.
11921
10158cd3
JH
119222011-04-17 Jan Hubicka <jh@suse.cz>
11923
11924 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
11925 * cgrpahunit.c (cgraph_finalize_function): Do not set
11926 finalized_by_frontend.
10158cd3
JH
11927 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11928 finalized_by_frontend.
11929
2e9bb6ba
JH
119302011-04-17 Jan Hubicka <jh@suse.cz>
11931
11932 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11933 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11934 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
11935 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11936 method.
2e9bb6ba
JH
11937 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11938 gimple-fold.c
11939 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11940
beb628e1
EB
119412011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11942
11943 PR lto/48538
11944 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11945 is non-null before accessing it.
11946 (input_cgraph): Remove trailing spaces.
11947
3e2fdd24
RE
119482011-04-17 Revital Eres <revital.eres@linaro.org>
11949
11950 * params.def (sms-min-sc): New param flag.
11951 * modulo-sched.c (sms_schedule): Use it.
11952 * doc/invoke.texi (sms-min-sc): Document it.
11953
4c0f7679
JH
119542011-04-17 Jan Hubicka <jh@suse.cz>
11955
11956 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11957 present, also set gimple_call_set_cannot_inline.
11958 * ipa-inline.c: Update toplevel comment.
11959 (MAX_TIME): Remove.
11960 (cgraph_clone_inlined_nodes): Fix linebreaks.
11961 (cgraph_check_inline_limits): Restructure to ...
11962 (caller_growth_limits): ... this one; be more tolerant
11963 on growth in nested inline chains; add explanatory comment;
11964 fix stack accounting thinko introduced by previous patch.
11965 (cgraph_default_inline_p): Remove.
11966 (report_inline_failed_reason): New function.
11967 (can_inline_edge_p): New function.
11968 (can_early_inline_edge_p): New function.
11969 (leaf_node_p): Move upwards in file.
11970 (want_early_inline_function_p): New function.
11971 (want_inline_small_function_p): New function.
11972 (want_inline_self_recursive_call_p): New function.
11973 (cgraph_edge_badness): Rename to ...
11974 (edge_badness) ... this one; fix linebreaks.
11975 (update_edge_key): Update call of edge_baddness; add
11976 detailed dump about queue updates.
11977 (update_caller_keys): Use can_inline_edge_p and
11978 want_inline_small_function_p.
11979 (cgraph_decide_recursive_inlining): Rename to...
11980 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
11981 want_inline_self_recursive_call_p; simplify and remove no longer
11982 valid FIXME.
4c0f7679
JH
11983 (cgraph_set_inline_failed): Remove.
11984 (add_new_edges_to_heap): Use can_inline_edge_p and
11985 want_inline_small_function_p.
11986 (cgraph_decide_inlining_of_small_functions): Rename to ...
11987 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
11988 can/want predicates; cleanup debug ouput; work edges till fibheap
11989 is exhausted and do not stop once unit growth is reached; remove
11990 later loop processing remaining edges.
4c0f7679
JH
11991 (cgraph_flatten): Rename to ...
11992 (flatten_function): ... this one; use can_inline_edge_p
11993 and can_early_inline_edge_p predicates.
11994 (cgraph_decide_inlining): Rename to ...
11995 (ipa_inline): ... this one; remove unreachable nodes before
11996 inlining functions called once; simplify the pass.
11997 (cgraph_perform_always_inlining): Rename to ...
11998 (inline_always_inline_functions): ... this one; use
f60c2554 11999 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
12000 (cgraph_decide_inlining_incrementally): Rename to ...
12001 (early_inline_small_functions): ... this one; simplify
12002 using new predicates; cleanup; make dumps prettier.
12003 (cgraph_early_inlining): Rename to ...
12004 (early_inliner): newer inline regular functions into always-inlines;
12005 fix updating of call stmt summaries.
12006 (pass_early_inline): Update for new names.
12007 (inline_transform): Fix formating.
12008 (gate_cgraph_decide_inlining): Rename to ...
12009 (pass_ipa_inline): ... this one.
12010 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
12011 * ipa-inline-analysis.c (dump_inline_summary): Update.
12012 (compute_inline_parameters): Do not compute disregard_inline_limits;
12013 look for mismatching arguments.
12014 (estimate_growth): Fix handlig of non-trivial self recursion.
12015 (inline_read_summary): Do not read info->disregard_inline_limits.
12016 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
12017 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
12018 and move all checks into can_inline_edge_p predicate; re-enable code
12019 comparing optimization levels.
4c0f7679
JH
12020 (expand_call_inline): Do not test inline_forbidden_into_p.
12021 * Makefile.in (ipa-inline.o): Update arguments.
12022
54333b7c
RE
120232011-04-17 Revital Eres <revital.eres@linaro.org>
12024
12025 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
12026
42c2bf92
RE
120272011-04-17 Revital Eres <revital.eres@linaro.org>
12028
12029 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
12030
b183e9e0
MM
120312011-04-17 Michael Matz <matz@suse.de>
12032
12033 PR tree-optimization/48622
12034 PR lto/48645
12035 * ipa-inline-analysis.c (inline_read_summary): Read size/time
12036 in same order as they're written.
12037
b8a17fa2
JDA
120382011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12039
12040 * config/pa/predicates.md: Reorganize and simplify predicates.
12041 Eliminate duplicate code checks.
12042 (arith_operand): Rename to arith14_operand
12043 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
12044 * config/pa/pa.md: Use renamed operands.
12045 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
12046 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
12047 arith11_operand, adddi3_operand, indexed_memory_operand,
12048 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
12049 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
12050 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
12051 move_dest_operand, move_src_operand, prefetch_cc_operand,
12052 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
12053 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
12054 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
12055 div_operand, int5_operand, movb_comparison_operator,
12056 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
12057 arith_double_operand, ireg_operand, lhs_lshift_operand,
12058 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
12059 integer_store_memory_operand): Likewise.
12060 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
12061 (integer_store_memory_operand, read_only_operand,
12062 function_label_operand, borx_reg_operand,
12063 non_hard_reg_operand): Likewise.
12064 (eq_neq_comparison_operator): Delete unused operator.
12065 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
12066 function_label_operand.
12067 (emit_move_sequence): Likewise.
12068
8dfb9f16
UB
120692011-04-16 Uros Bizjak <ubizjak@gmail.com>
12070
12071 * config/i386/sse.md (sseunpackmode): New mode attribute.
12072 (ssepackmode): Ditto.
12073 (vec_pack_trunc_<mode>): Macroize expander from
12074 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
12075 (vec_unpacks_lo_<mode>): Macroize expander from
12076 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12077 (vec_unpacks_hi_<mode>): Macroize expander from
12078 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12079 (vec_unpacku_lo_<mode>): Macroize expander from
12080 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12081 (vec_unpacku_hi_<mode>): Macroize expander from
12082 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12083 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
12084 ix86_expand_sse4_unpack.
12085 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
12086
e7f23018
JH
120872011-04-16 Jan Hubicka <jh@suse.cz>
12088
12089 * cgraphbuild.c: Include ipa-inline.h.
12090 (reset_inline_failed): Use initialize_inline_failed.
12091 * cgraph.c: Include ipa-inline.h.
12092 (cgraph_create_node_1): Do not initialize estimated_growth.
12093 (initialize_inline_failed): More to ipa-inline-analysis.c
12094 (dump_cgraph_node): Do not dump inline flags.
12095 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
12096 and disregard_inline_limits flags.
12097 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
12098 time, size, estimated_growth.
8dfb9f16
UB
12099 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
12100 Update.
e7f23018
JH
12101 * cgraphunit.c (cgraph_decide_is_function_needed): Use
12102 DECL_DISREGARD_INLINE_LIMITS.
12103 (cgraph_analyze_function): Do not initialize
12104 node->local.disregard_inline_limits.
12105 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12106 inlinable, versionable and disregard_inline_limits.
12107 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
12108 cgraph_check_inline_limits, cgraph_default_inline_p,
12109 cgraph_edge_badness, update_caller_keys, update_callee_keys,
12110 add_new_edges_to_heap): Update.
12111 (cgraph_decide_inlining_of_small_function): Update; set
12112 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
12113 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
12114 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
12115 * ipa-inline.h (inline_summary): Add inlinable, versionable,
12116 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
12117 time, size and estimated_growth parameters.
e7f23018
JH
12118 (estimate_edge_growth): Update.
12119 (initialize_inline_failed): Declare.
12120 * ipa-split.c: Include ipa-inline.h
12121 (execute_split_functions): Update.
12122 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
12123 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
12124 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
12125 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
12126 estimated_growth to INT_MIN.
12127 (inline_node_duplication_hook): Likewise.
12128 (dump_inline_summary): Dump new fields.
12129 (compute_inline_parameters): Update.
12130 (estimate_edge_time, estimate_time_after_inlining,
12131 estimate_size_after_inlining, estimate_growth, inline_read_summary,
12132 inline_write_summary):
12133 (initialize_inline_failed): Move here from cgraph.c.
12134 * tree-sra.c: Include ipa-inline.h.
12135 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
12136 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
12137 ipa-inline.h.
e7f23018 12138
e81b8564
UB
121392011-04-16 Uros Bizjak <ubizjak@gmail.com>
12140
12141 * config/i386/sse.md (V16): New mode iterator.
12142 (VI1, VI8): Ditto.
12143 (AVXMODEQI, AVXMODEDI): Remove.
12144 (sse2, sse3): New mode attribute.
12145 (mov<mode>): Use V16 mode iterator.
12146 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
12147 (push<mode>1): Use V16 mode iterator.
12148 (movmisalign<mode>): Ditto.
12149 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12150 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
12151 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12152 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
12153 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
12154 avx_movdqu<avxmodesuffix>.
12155 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
12156 *avx_movdqu<avxmodesuffix>.
12157 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
12158 avx_lddqu<avxmodesuffix>.
12159 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
12160 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
12161 avx_movnt<AVXMODEDI:mode>.
12162 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
12163 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
12164
4743d438
BS
121652011-04-16 Bernd Schmidt <bernds@codesourcery.com>
12166
12167 PR target/48629
12168 * haifa-sched.c (prune_ready_list, schedule_block): Use
12169 sched_pressure_p rather than flag_sched_pressure.
12170
748f7574 121712011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
12172
12173 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12174 cgraph_get_node instead of cgraph_get_create_node.
12175
2ba172e0
JJ
121762011-04-15 Jakub Jelinek <jakub@redhat.com>
12177
12178 * cfgexpand.c (expand_debug_expr): Use
12179 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
12180
63d2a353
MM
121812011-04-15 Michael Matz <matz@suse.de>
12182
12183 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12184 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12185 * function.c (gimplify_parameters): Ditto.
12186 * gimplify.c (gimplify_vla_decl): Ditto.
12187
12188 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12189 (gimple_call_set_alloca_for_var): New inline function.
12190 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
12191 * gimple.c (gimple_build_call_from_tree): Remember
12192 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
12193 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12194
12195 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12196 calls if they were for VLA objects.
12197
dee74c34
MJ
121982011-04-15 Martin Jambor <mjambor@suse.cz>
12199
12200 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12201 of ADR_EXPRs.
12202
8e5837bc
MJ
122032011-04-15 Martin Jambor <mjambor@suse.cz>
12204
12205 PR middle-end/48601
12206 * tree-emutls.c (lower_emutls_function_body): Call
12207 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
12208 result is non-NULL.
12209
0dc33c3c
NP
122102011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
12211
12212 * c-decl.c (detect_field_duplicates): Call
12213 objc_detect_field_duplicates instead of objc_get_interface_ivars.
12214
edcdea5b
NF
122152011-04-15 Nathan Froyd <froydnj@codesourcery.com>
12216
12217 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12218 * gimple.c (gimple_asm_clobbers_memory_p): Define.
12219 * ipa-pure-const.c (check_stmt): Call it.
12220 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12221
8456558d
RG
122222011-04-15 Richard Guenther <rguenther@suse.de>
12223
12224 PR tree-optimization/48290
12225 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12226 Properly decide inhibiting propagation based on the valueized
12227 operand. Do loop-closed SSA form preserving here ...
12228 (init_copy_prop): ... not here.
12229
266446be
L
122302011-04-15 H.J. Lu <hongjiu.lu@intel.com>
12231
12232 PR target/48612
12233 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12234 (*ieee_smax<mode>3): Likewise.
12235
17465c6e
AK
122362011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12237
12238 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12239 Replace match_operand with match_dup for the third operand in
12240 these expanders.
12241
bce204e5
MK
122422011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12243
12244 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12245 to track processing of conditionals. Update all callers.
12246 (try_combine, simplify_if_then_else): Update.
12247
3162fdf4
MK
122482011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12249
12250 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12251 -fsched-pressure.
12252
79002a57 122532011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 12254
79002a57
GJL
12255 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12256 instead of match_operand for operand 3.
12257
4fd3a105
RS
122582011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
12259
12260 * recog.h (insn_operand_data): Add an "allows_mem" field.
12261 * genoutput.c (output_operand_data): Initialize it.
12262 * optabs.c (maybe_legitimize_operand_same_code): New function.
12263 (maybe_legitimize_operand): Use it when matching the original
12264 op->value.
12265
ad19c4be
EB
122662011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12267
12268 * gimplify.c: Fix issues in comments throughout.
12269 (voidify_wrapper_expr): Fix long line.
12270 (build_stack_save_restore): Likewise.
12271 (gimplify_loop_expr): Likewise.
12272 (gimplify_compound_lval): Likewise.
12273 (gimplify_init_ctor_eval): Likewise.
12274 (gimplify_modify_expr_rhs): Likewise.
12275 (omp_notice_threadprivate_variable): Likewise.
12276
b25aa0e8 122772011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 12278
b25aa0e8
EB
12279 * cfgexpand.c (expand_call_stmt): Convert the function type to the
12280 original one if this is not a builtin function.
e7925582 12281
09db7afe
JJ
122822011-04-14 Jakub Jelinek <jakub@redhat.com>
12283
12284 PR target/48605
12285 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12286 offset it as needed based on top 2 bits in operands[3], change
12287 MEM mode to SFmode and mask those 2 bits away from operands[3].
12288
c59633d9
NP
122892011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12290
12291 * c-parser.c (c_parser_objc_protocol_definition): Updated for
12292 change from objc_declare_protocols() to objc_declare_protocol().
12293
5e60198b
UB
122942011-04-14 Uros Bizjak <ubizjak@gmail.com>
12295
12296 * config/i386/sse.md (sse4_1): New mode attribute.
12297 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12298 avx_blend<ssemodesuffix><avxmodesuffix> and
12299 sse4_1_blend<ssemodesuffix> using VF mode iterator.
12300 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12301 avx_blendv<ssemodesuffix><avxmodesuffix> and
12302 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12303 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12304 avx_dp<ssemodesuffix><avxmodesuffix> and
12305 sse4_1_dp<ssemodesuffix> using VF mode iterator.
12306 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12307 (sse4_1_packusdw): Merge with *avx_packusdw.
12308 (sse4_1_pblendvb): Merge with *avx_pblendvb.
12309 (sse4_1_pblendw): Merge with *avx_pblendw.
12310 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12311 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12312 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12313 VF mode iterator.
12314 (sse4_1_round<ssescalarmodesuffix>): Merge with
12315 *avx_round<ssescalarmodesuffix>.
12316 (aesenc): Merge with *avx_aesenc.
12317 (aesenclast): Merge with *avx_aesenclast.
12318 (aesdec): Merge with *avx_aesdec.
12319 (aesdeclast): Merge with *avx_aesdeclast.
12320 (pclmulqdq): Merge with *pclmulqdq.
12321 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12322 New predicate.
12323 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12324
6f197850
L
123252011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12326
12327 PR middle-end/48608
12328 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12329 (align_local_variable): This. Update DECL_ALIGN.
12330 (add_stack_var): Updated.
12331 (expand_one_stack_var): Likewise.
12332
4a5ba3ed
RG
123332011-04-14 Richard Guenther <rguenther@suse.de>
12334
12335 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12336 Remove.
12337 (dse_initialize_block_local_data, dse_leave_block,
12338 record_voperand_set, get_stmt_uid): Likewise.
12339 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12340 (dse_optimize_stmt): Remove voperand set handling code.
12341 Simplify and improve to handle any kind of killing stmt.
12342 (dse_record_phi): Remove.
12343 (dse_enter_block): Simplify.
12344 (tree_ssa_dse): Likewise.
12345 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12346
10a5dd5d
JH
123472011-04-14 Jan Hubicka <jh@suse.cz>
12348
12349 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12350 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12351 (cgraph_local_info): Remove inline_summary.
12352 * ipa-cp.c: Include ipa-inline.h.
12353 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12354 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12355 accesor.
12356 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12357 (input_overwrite_node): Do not set inline summary.
12358 (input_node): Do not stream inline summary.
12359 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12360 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12361 growth; we do not have inline parameters computed for that anyway.
12362 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12363 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12364 (inline_summary_t): New type and VECtor.
12365 (debug_inline_summary, dump_inline_summaries): Declare.
12366 (inline_summary): Use VOCtor.
12367 (estimate_edge_growth): Kill hack computing call stmt size directly.
12368 * lto-section-in.c (lto_section_name): Add inline section.
12369 * ipa-inline-analysis.c: Include lto-streamer.h
12370 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12371 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12372 (inline_summary_vec): Define.
12373 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12374 dump_inline_summaries): New functions.
5e60198b
UB
12375 (estimate_function_body_sizes): Properly compute size/time of outgoing
12376 calls.
12377 (compute_inline_parameters): Alloc inline_summary; do not compute
12378 size/time of incomming calls.
10a5dd5d
JH
12379 (estimate_edge_time): Avoid missing time summary hack.
12380 (inline_read_summary): Read inline summary info.
12381 (inline_write_summary): Write inline summary info.
12382 (inline_free_summary): Free all hooks and inline summary vector.
12383 * lto-streamer.h: Add LTO_section_inline_summary section.
12384 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12385 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12386
b602d918
RS
123872011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12388
12389 * tree-vectorizer.h (vect_strided_store_supported): Add a
12390 HOST_WIDE_INT argument.
12391 (vect_strided_load_supported): Likewise.
12392 (vect_permute_store_chain): Return void.
12393 (vect_transform_strided_load): Likewise.
12394 (vect_permute_load_chain): Delete.
12395 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12396 count argument. Check that the count is a power of two.
12397 (vect_strided_load_supported): Likewise.
12398 (vect_permute_store_chain): Return void. Update after above changes.
12399 Assert that the access is supported.
12400 (vect_permute_load_chain): Likewise.
12401 (vect_transform_strided_load): Return void.
12402 * tree-vect-stmts.c (vectorizable_store): Update calls after
12403 above interface changes.
12404 (vectorizable_load): Likewise.
12405 (vect_analyze_stmt): Don't check for strided powers of two here.
12406
ab4472fa
RG
124072011-04-14 Richard Guenther <rguenther@suse.de>
12408
12409 PR tree-optimization/48590
12410 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12411 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12412 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12413 BUILT_IN_STACK_SAVE.
12414 * tree-ssa-dce.c (propagate_necessity): Handle
12415 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12416
32dabdaf
NP
124172011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12418
12419 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12420 objc_declare_class.
12421
daade206
RG
124222011-04-14 Richard Guenther <rguenther@suse.de>
12423
12424 * tree.h (get_object_alignment_1): Declare.
12425 * builtins.c (get_object_alignment_1): Split out worker from ...
12426 (get_object_alignment): ... here.
12427 * fold-const.c (get_pointer_modulus_and_residue): Use
12428 get_object_alignment_1.
12429
920e8172
RS
124302011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12431
12432 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12433 type parameter.
12434 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12435 parameter. Generalise code to handle arrays as well as vectors.
12436 (vect_setup_realignment): Update accordingly.
12437 * tree-vect-stmts.c (vectorizable_store): Likewise.
12438 (vectorizable_load): Likewise.
12439
5ce1ee7f
RS
124402011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12441
12442 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12443 within the per-copy loop.
12444
6438fe33 124452011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
12446
12447 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12448 in the dump file.
12449
6438fe33 124502011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
12451
12452 * doc/options.texi (Negative): Explicitly mention that the
12453 Negative chain must be circular.
12454
61e46a7d
NF
124552011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12456
12457 * function.h (block_chainon): Declare.
12458 * function.c (block_chainon): Define.
12459
43ea6502 124602011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 12461 Eric Weddington <eric.weddington@atmel.com>
748f7574 12462 Georg-Johann Lay <avr@gjlay.de>
5e60198b 12463
f60c2554 12464 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
12465 New Includes
12466 (avr_init_builtins, avr_expand_builtin,
12467 avr_expand_delay_cycles, avr_expand_unop_builtin,
12468 avr_expand_binop_builtin ): New functions.
12469 (avr_builtin_id): New enum
12470 (struct avr_builtin_description): New struct
12471 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12472 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 12473
43ea6502 12474 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 12475 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
12476 UNSPECV_DELAY_CYCLES): new enumeration values
12477 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12478 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12479 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12480 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12481 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12482 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12483 "fmulsu"): New insns
5e60198b 12484
43ea6502
AS
12485 * config/avr/avr-c.c: fix line endings
12486 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12487 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12488 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12489 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12490 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 12491
43ea6502
AS
12492 * doc/extend.texi (AVR Built-in Functions): New node
12493 (Target Builtins): Add documentation of AVR
12494 built-in functions.
12495
8a9b55f3
GJL
124962011-04-14 Georg-Johann Lay <avr@gjlay.de>
12497
12498 PR target/44643
12499 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12500 alone. Error if non-const data has attribute progmem.
12501
94bd1825
NF
125022011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12503
12504 * tree.h (struct tree_constructor): Include tree_typed instead of
12505 tree_common.
12506 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12507 TS_TYPED instead of TS_COMMON.
12508
5e60198b 125092011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
12510
12511 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12512 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12513 (sse2_psadbw): Merge with *avx_psadbw.
12514 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12515 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12516 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12517 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12518 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12519 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12520 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12521 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12522 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12523 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12524 (ssse3_palignrti): Merge with *avx_palignrti.
12525
4b1a4694
NF
125262011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12527
12528 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12529 * tree-ssanames.c (fini_ssanames): VEC_free it.
12530 (make_ssa_name_fn): Update for VECness of free_ssanames.
12531 (release_ssa_name, release_dead_ssa_names): Likewise.
12532 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12533 tree_common.
12534 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12535 TS_TYPED instead of TS_COMMON.
12536
4da3b811
NF
125372011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12538
12539 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12540 statistics_counter_event.
12541 * tree-ssa-copyrename.c (stats): Define.
12542 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12543 statistics_counter_event.
12544 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12545 (bswap_stats, widen_mul_stats): Define.
12546 (insert_reciprocals): Increment rdivs_inserted.
12547 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12548 rfuncs_inserted. Add calls to statistics_counter_event.
12549 (execute_cse_sincos_1): Increment inserted.
12550 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12551 statistics_counter_event.
12552 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12553 of bswap_stats. Add calls to statistics_counter_event.
12554 (convert_mult_to_widen): Increment widen_mults_inserted.
12555 (convert_plusminus_to_widen): Increment maccs_inserted.
12556 (convert_mult_to_fma): Increment fmas_inserted.
12557 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12558 calls to statistics_counter_event.
12559
89fa552a
VM
125602011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12561
12562 PR rtl-optimization/48455
12563 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12564 `temp_costs->mem_cost'.
12565
03dfc36d
JH
125662011-04-13 Jan Hubicka <jh@suse.cz>
12567
12568 * ipa-inline.h: New file.
12569 * ipa-inline-analysis.c: New file. Broken out of ...
12570 * ipa-inline.c: ... this file; update toplevel comment;
12571 include ipa-inline.h
12572 (inline_summary): Move to ipa-inline.h
12573 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12574 ipa-inline-analysis.c.
7d4f8d02
EB
12575 (cgraph_estimate_time_after_inlining): Rename to
12576 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
12577 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12578 to estimate_edge_growth.
12579 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12580 rename to estimate_size_after_inlining.
12581 (cgraph_mark_inline_edge): Update for new naming convention.
12582 (cgraph_check_inline_limits): Likewise.
12583 (cgraph_edge_badness): Likewise.
12584 (cgraph_decide_recursive_inlining): Likewise.
12585 (cgraph_decide_inlining_of_small_functions): Likewise.
12586 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
12587 (cgraph_estimate_growth): Rename to estimate_growth; move to
12588 ipa-inline-analysis.c.
03dfc36d
JH
12589 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12590 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12591 (compute_inline_parameters): Likewise.
12592 (compute_inline_parameters_for_current): Likewise.
12593 (pass_inline_parameters): Likewise.
12594 (inline_indirect_intraprocedural_analysis): Likewise.
12595 (analyze_function): Rename to inline_analyze_function; likewise.
12596 (add_new_function): Move to ipa-inline-analysis.c.
12597 (inline_generate_summary): Likewise.
12598 (inline_read_summary): Likewise.
12599 (inline_write_summary): Likewise.
12600 * Makefile.in (ipa-inline-analysis.c): New file.
12601
7673c962
RO
126022011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12603
12604 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12605 * configure: Regenerate.
12606
9698252f
NF
126072011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12608
12609 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12610 instead of tree_common.
12611 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12612 Likewise.
12613 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12614 TS_TYPED rather than TS_COMMON.
12615 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12616
3a7bfdd5
GJL
126172011-04-01 Georg-Johann Lay <avr@gjlay.de>
12618
12619 PR target/45263
86d83530
GJL
12620 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12621 r20 around calls of __tablejump_elpm__
3a7bfdd5 12622
20790697
JJ
126232011-04-13 Jakub Jelinek <jakub@redhat.com>
12624
12625 PR middle-end/48591
12626 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12627 NULL.
12628 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12629
094d7661
BS
126302011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12631
12632 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12633 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12634 (cfi_vec): New typedef.
12635 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12636 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12637 (cie_cfi_vec): New static variable.
12638 (cie_cfi_head): Delete.
12639 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12640 declaration changed. Use vector rather than list operations.
12641 (new_cfi): Don't initialize the dw_cfi_next field.
12642 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12643 rather than list operations.
12644 (lookup_cfa): Use vector rather than list operations.
12645 (output_cfis): New argument upto. Accept a cfi_vec rather than
12646 a dw_cfi_ref list head as argument. All callers changed.
12647 Iterate over the vector using upto as a maximum index.
12648 (output_all_cfis): New static function.
12649 (output_fde): Use vector rather than list operations. Use the
12650 new upto argument for output_cfis rather than manipulating a
12651 list.
12652 (dwarf2out_begin_prologue): Change initializations to match
12653 new struct members.
12654 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12655 from the vector length rather than searching for the end of a list.
12656 Use output_all_cfis.
12657 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12658
673a5740
NC
126592011-04-13 Nick Clifton <nickc@redhat.com>
12660
12661 * config/rx/rx.md (movmemsi): Do not use this pattern when
12662 volatile pointers are involved.
12663
1ee8b298
UB
126642011-04-13 Uros Bizjak <ubizjak@gmail.com>
12665
12666 * config/i386/sse.md (pinsrbits): Remove.
12667 (sse2_packsswb): Merge with *avx_packsswb.
12668 (sse2_packssdw): Merge with *avx_packssdw.
12669 (sse2_packuswb): Merge with *avx_packuswb.
12670 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12671 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12672 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12673 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12674 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12675 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12676 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12677 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12678 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12679 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12680 (sse2_loadld): Merge with *avx_loadld.
12681 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12682 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12683 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12684 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12685 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12686
81f653d6
NF
126872011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12688
12689 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12690 calling TREE_CHAIN.
12691 * print-tree.c (print_node): Likewise.
12692 * tree-inline.c (copy_tree_r): Likewise.
12693 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12694 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12695 instead of TS_COMMON.
12696 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12697 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12698 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12699 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12700 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12701 ...and these...
12702 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12703 * tree.h: ...here.
12704 (TREE_CHAIN): Check for a TS_COMMON structure.
12705 (TREE_TYPE): Check for a TS_TYPED structure.
12706
748f7574 127072011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
12708
12709 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12710 cgraph_get_create_node instead of cgraph_node.
12711
eb345401
NP
127122011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12713
12714 * c-parser.c (c_parser_initelt): Updated call to
12715 objc_build_message_expr.
12716 (c_parser_postfix_expression): Likewise.
12717
a6c46762
KT
127182011-04-12 Kai Tietz <ktietz@redhat.com>
12719
12720 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12721 MASK_MS_BITFIELD_LAYOUT bit.
12722
b4ccfed9
JJ
127232011-04-12 Jakub Jelinek <jakub@redhat.com>
12724
12725 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12726 assert it is always true.
12727 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12728 moves.
12729
0d8a2528
NP
127302011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12731
12732 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12733 compiling Objective-C to be more efficient.
12734
06bd234a
AF
127352011-04-12 Axel Freyn <axel-freyn@gmx.de>
12736
12737 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12738 argv_copied.
12739
28569ac3
RS
127402011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12741
12742 * recog.h, genoutput.c, optabs.c: Revert last patch.
12743
ae59e00d
RR
127442011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12745
81b1e7eb
UB
12746 PR target/48090
12747 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 12748
cff1b7e0
RS
127492011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12750
12751 * recog.h (insn_operand_data): Add an "allows_mem" field.
12752 * genoutput.c (output_operand_data): Initialize it.
12753 * optabs.c (maybe_legitimize_operand_same_code): New function.
12754 (maybe_legitimize_operand): Use it when matching the original
12755 op->value.
12756
77059241
RS
127572011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12758
12759 * genpreds.c (process_define_predicate): Move most processing
12760 to gensupport.c. Continue to validate the expression.
12761 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12762 (process_define_predicate): Move processing to gensupport.c.
12763 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12764 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12765 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12766 argument.
12767 (valid_predicate_name_p): New function, split out from old
12768 genpreds.c:process_define_predicate.
12769 (process_define_predicate): New function, combining code from
12770 old genpreds.c and genrecog.c functions.
12771 (process_rtx): Call it for DEFINE_PREDICATE and
12772 DEFINE_SPECIAL_PREDICATE.
12773
6308e208
RS
127742011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12775
12776 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12777 size of a '%A' memory reference.
12778 (T_DREG, T_QREG): New neon_builtin_type_bits.
12779 (arm_init_neon_builtins): Assert that the load and store operands
12780 are neon_struct_operands.
12781 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12782 (NEON_ARG_MEMORY): New builtin_arg.
12783 (neon_dereference_pointer): New function.
12784 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12785 Handle NEON_ARG_MEMORY.
12786 (arm_expand_neon_builtin): Update after above interface changes.
12787 Use NEON_ARG_MEMORY for loads and stores.
12788 * config/arm/predicates.md (neon_struct_operand): New predicate.
12789 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12790 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12791 (V_four_elem): Tweak formatting.
12792 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12793 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12794 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12795 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12796 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12797 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12798 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12799 Use %A in the output template.
12800 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12801 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12802 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12803 the width of the memory access. Remove post-increment.
12804 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12805
e5db8f2f
NC
128062011-04-12 Nick Clifton <nickc@redhat.com>
12807
12808 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12809 instruction for interrupt handlers if the target is the basic V850
12810 architecture.
12811 (expand_epilogue): Likewise.
12812
74f091d6
JJ
128132011-04-12 Jakub Jelinek <jakub@redhat.com>
12814
12815 PR rtl-optimization/48549
12816 * combine.c (propagate_for_debug): Also stop after BB_END of
12817 this_basic_block. Process LAST and just stop processing after it.
12818 (combine_instructions): If last_combined_insn has been deleted,
12819 set last_combined_insn to its PREV_INSN.
12820
f20ca725
RG
128212011-04-12 Richard Guenther <rguenther@suse.de>
12822
12823 PR tree-optimization/46076
12824 * gimple.h (struct gimple_statement_call): Add fntype field.
12825 (gimple_call_fntype): Adjust.
12826 (gimple_call_set_fntype): New function.
12827 * gimple.c (gimple_build_call_1): Set the call function type.
12828 * gimplify.c (gimplify_call_expr): Preserve the function
12829 type the frontend used for the call.
12830 (gimplify_modify_expr): Likewise.
12831 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12832 function type.
12833 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12834 function type.
12835 * tree-ssa.c (useless_type_conversion_p): Function pointer
12836 conversions are useless.
12837
a358e188
MJ
128382011-04-12 Martin Jambor <mjambor@suse.cz>
12839
12840 * cgraph.h (cgraph_node): Remove function declaration.
12841 (cgraph_create_node): Declare.
12842 (cgraph_get_create_node): Likewise.
12843 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12844 Updated all callers.
12845 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12846 the decl does not already exist. Call cgraph_get_create_node instead
12847 of cgraph_node.
12848 (cgraph_get_create_node): New function.
12849 (cgraph_same_body_alias): Update comment.
12850 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12851 assert it does not return NULL.
12852 (cgraph_update_edges_for_call_stmt): Likewise.
12853 (cgraph_clone_edge): Likewise.
12854 (cgraph_create_virtual_clone): Likewise.
12855 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12856 instead of cgraph_node.
12857 (cgraph_add_new_function): Call cgraph_create_node or
12858 cgraph_get_create_node instead of cgraph_node.
12859 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12860 instead of cgraph_node.
12861 (record_eh_tables): Likewise.
12862 (mark_address): Likewise.
12863 (mark_load): Likewise.
12864 (build_cgraph_edges): Call cgraph_get_create_node instead
12865 of cgraph_node.
12866 (rebuild_cgraph_edges): Likewise.
12867 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12868 instead of cgraph_node.
12869 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12870 cgraph_node.
12871 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12872 cgraph_create_node instead of cgraph_node.
12873 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12874 of cgraph_node.
12875 * lto-cgraph.c (input_node): Likewise.
12876 * lto-streamer-in.c (input_function): Likewise.
12877 * varasm.c (mark_decl_referenced): Likewise.
12878 (assemble_alias): Likewise.
12879
fe660d7b
MJ
128802011-04-12 Martin Jambor <mjambor@suse.cz>
12881
12882 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12883 instead of cgraph_node and assert it does not return NULL.
12884 * lto-streamer-in.c (lto_read_body): Likewise.
12885 * omp-low.c (new_omp_context): Likewise.
12886 (create_task_copyfn): Likewise.
12887 * tree-emutls.c (lower_emutls_function_body): Likewise.
12888 * matrix-reorg.c (transform_allocation_sites): Likewise.
12889
bae5cddf
JJ
128902011-04-12 Jakub Jelinek <jakub@redhat.com>
12891
12892 PR c/48552
12893 * c-typeck.c (build_asm_expr): Error out on attempts to use
12894 void type outputs or inputs for constraints that allow reg or
12895 don't allow memory.
12896
06eb52ca
CLT
128972011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12898 Richard Earnshaw <rearnsha@arm.com>
12899
12900 PR target/48250
12901 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12902 to use sign-magnitude offsets. Reject unsupported unaligned
12903 cases. Add detailed description in comments.
12904 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12905 condition from TARGET_32BIT to TARGET_ARM.
12906
648a616b
NF
129072011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12908
12909 * tree.h (struct typed_tree): New.
12910 (struct tree_common): Include it instead of tree_base.
12911 (TREE_TYPE): Update for new location of type field.
12912 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12913 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12914 (union tree_node): Add typed field.
12915 * treestruct.def (TS_TYPED): New.
12916 * lto-streamer.c (check_handled_ts_structures): Handle it.
12917 * tree.c (MARK_TS_TYPED): New macro.
12918 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12919
1e6d1da0
EB
129202011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12921
12922 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12923 (force_nonfallthru): Do not alter the loop nest if no basic block
12924 was created.
12925
129262011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
12927
12928 * config/i386/sse.md (VI): New mode iterator.
12929 (SSEMODEI): Remove.
12930 (AVX256MODEI): Ditto.
12931 (AVXMODEF4P): Ditto.
12932 (avxvecpsmode): Ditto.
12933 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12934 (sse2_andnot<mode>3): New expander.
12935 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12936 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12937 (<any_logic:code><mode>3): Use VI mode iterator.
12938 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12939 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12940 (*andnottf3): Handle AVX three-operand constraints.
12941 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12942
b1372d5d 129432011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 12944 Robert Millan <rmh@gnu.org>
b1372d5d
JM
12945
12946 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12947 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12948 GNU_USER_DYNAMIC_LINKER64): Define.
12949 (REG_NAME): Don't undefine.
12950 (MD_UNWIND_SUPPORT): Undefine.
12951 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12952 (REG_NAME): Don't undefine.
12953 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 12954 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 12955
761c0c6e
JM
129562011-04-11 Joseph Myers <joseph@codesourcery.com>
12957
12958 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12959 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12960
26e0228f
XDL
129612011-04-11 Xinliang David Li <davidxl@google.com>
12962
12963 * value-profile.c (check_ic_target): New function.
12964 (gimple_ic_transform): Sanity check indirect call target.
12965 * gimple-low.c (gimple_check_call_args): Interface change.
12966 (gimple_check_call_matching_types): New function.
12967 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
12968
129692011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12970
12971 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12972 tree-pretty-print.h & realmpfr.h.
12973
a58dfa49
VM
129742011-04-11 Vladimir Makarov <vmakarov@redhat.com>
12975
12976 PR middle-end/48464
12977 * ira.c (setup_pressure_classes): Fix typo in loop condition.
12978 (setup_allocno_and_important_classes): Ditto.
12979
107fd1c1
JM
129802011-04-11 Joseph Myers <joseph@codesourcery.com>
12981
12982 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12983 GNU_USER_DYNAMIC_LINKER.
12984 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12985 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12986 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12987 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12988 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12989 GNU_USER_TARGET_OS_CPP_BUILTINS.
12990 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12991 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12992 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12993 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12994 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12995 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12996 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12997 GNU_USER_TARGET_OS_CPP_BUILTINS.
12998 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12999 GNU_USER_DYNAMIC_LINKER.
13000 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13001 GNU_USER_TARGET_OS_CPP_BUILTINS.
13002 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
13003 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13004 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
13005 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13006 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
13007 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
13008 GNU_USER_DYNAMIC_LINKER64): Remove.
13009 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
13010 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13011 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13012 GNU_USER_DYNAMIC_LINKER.
13013 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13014 GNU_USER_TARGET_OS_CPP_BUILTINS.
13015 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13016 GNU_USER_TARGET_OS_CPP_BUILTINS.
13017 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
13018 to GNU_USER_TARGET_OS_CPP_BUILTINS.
13019 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
13020 GNU_USER_TARGET_OS_CPP_BUILTINS.
13021 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
13022 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
13023 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13024 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
13025 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13026 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13027 GNU_USER_DYNAMIC_LINKER.
13028 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
13029 GNU_USER_TARGET_OS_CPP_BUILTINS.
13030 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
13031 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13032 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13033 GNU_USER_DYNAMIC_LINKER.
13034 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13035 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13036 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
13037 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13038 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13039 GNU_USER_DYNAMIC_LINKER.
13040 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
13041 GNU_USER_DYNAMIC_LINKERN32.
13042 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
13043 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
13044 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
13045 GNU_USER_DYNAMIC_LINKER32.
13046 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
13047 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13048 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13049 GNU_USER_DYNAMIC_LINKER.
13050 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
13051 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13052 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
13053 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 13054 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
13055 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
13056 GNU_USER_DYNAMIC_LINKER32.
13057 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13058 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
13059 GNU_USER_DYNAMIC_LINKER.
13060 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
13061 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13062 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13063 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
13064 GNU_USER_DYNAMIC_LINKER64.
13065 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
13066 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13067 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13068 GNU_USER_DYNAMIC_LINKER.
13069 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
13070 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13071 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13072 GNU_USER_DYNAMIC_LINKER.
13073 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
13074 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13075 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13076 GNU_USER_DYNAMIC_LINKER32.
13077 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13078 GNU_USER_DYNAMIC_LINKER64.
13079 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13080 GNU_USER_DYNAMIC_LINKER64.
13081 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
13082 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13083 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
13084 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 13085 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 13086
e24609cf
JM
130872011-04-11 Joseph Myers <joseph@codesourcery.com>
13088
13089 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
13090 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
13091 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
13092 GNU_USER_DYNAMIC_LINKER.
13093 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13094 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
13095 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
13096 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
13097 GNU_USER_DYNAMIC_LINKER64.
13098 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13099 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
13100 GNU_USER_LINK_EMULATION.
13101 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
13102 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
13103 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
13104 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
13105 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
13106 CPP_SPEC, CC1_SPEC): Remove.
13107 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
13108 (GNU_USER_DYNAMIC_LINKER): Define.
13109 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
13110 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
13111 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
13112 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
13113 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
13114 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
13115 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13116 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
13117 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
13118 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
13119 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
13120 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
13121 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
13122 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
13123 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
13124 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13125 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13126 GNU_USER_DYNAMIC_LINKER.
13127 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13128 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13129 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13130 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13131 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13132 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13133 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
13134 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
13135 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 13136 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 13137
b8ce4e94
KT
131382011-04-11 Kai Tietz <ktietz@redhat.com>
13139
13140 PR target/9601
13141 PR target/11772
13142 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
13143 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
13144 comment.
13145 (ix86_is_msabi_thiscall): Removed.
13146 (ix86_is_type_thiscall): Likewise.
13147 (ix86_get_callcvt): New function.
13148 (ix86_comp_type_attributes): Simplify check.
13149 (ix86_function_regparm): Use ix86_get_callcvt for calling
13150 convention attribute checks.
13151 (ix86_return_pops_args): Likewise.
13152 (ix86_static_chain): Likewise.
13153 (x86_this_parameter): Likewise.
13154 (x86_output_mi_thunk): Likewise.
13155 (ix86_function_type_abi): Optimize check for types without attributes.
13156 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
13157 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
13158 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
13159 by flag-values.
13160 (IX86_BASE_CALLCVT): Helper macro.
13161 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13162 Use ix86_get_callcvt for calling convention attribute checks and avoid
13163 symbol-decoration for stdcall in TARGET_RTD case.
13164 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13165 Likewise.
13166 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
13167 for declaration.
13168
798dd0ba
UB
131692011-04-11 Uros Bizjak <ubizjak@gmail.com>
13170
13171 * config/i386/sse.md (VI_128): New mode iterator.
13172 (VI12_128): Rename from SSEMODE12.
13173 (VI14_128): Rename from SSEMODE14.
13174 (VI124_128): New mode iterator.
13175 (VI24_128): Rename from SSEMODE248.
13176 (VI248_128): Rename from SSEMODE248.
13177 (SSEMODE124C8): Remove.
13178 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13179 (*sse2_<plusminus_insn><mode>3): Merge with
13180 *avx_<plusminus_insn><mode>3.
13181 (*mulv8hi3): Merge with *avx_mulv8hi3.
13182 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13183 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13184 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13185 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13186 (ashr<mode>3): Merge with *avx_ashr<mode>3.
13187 (lshr<mode>3): Merge with *avx_lshr<mode>3.
13188 (ashl<mode>3): Merge with *avx_ashl<mode>3.
13189 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13190 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13191 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13192 (*<smaxmin:code>v8hi3): Ditto.
13193 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13194 (*<smaxmin:code>v16qi3): Ditto.
13195 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13196 (*sse2_eq<mode>3): Ditto.
13197 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13198 (*sse2_gt<mode>3): Ditto.
13199 (vcondv2di): Split out of vcond<mode>.
13200 (vconduv2di): Split out of vcondu<mode>.
13201
956011be
RG
132022011-04-11 Richard Guenther <rguenther@suse.de>
13203
13204 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13205 before calling tree_low_cst.
13206
e6313a78
RG
132072011-04-11 Richard Guenther <rguenther@suse.de>
13208
13209 * stor-layout.c (layout_type): Compute all array index size operations
13210 in the original type.
13211 (initialize_sizetypes): Add comment.
13212 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13213
e69d7376
JM
132142011-04-11 Joseph Myers <joseph@codesourcery.com>
13215
13216 * common.opt (Tbss=, Tdata=, Ttext=): New options.
13217
9f9ebcdf
MJ
132182011-04-11 Martin Jambor <mjambor@suse.cz>
13219
13220 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13221 of cgraph_node, handle NULL return value.
13222 (cgraph_global_info): Likewise.
13223 (cgraph_rtl_info): Likewise.
13224 * tree-inline.c (estimate_num_insns): Likewise.
13225 * gimplify.c (unshare_body): Likewise.
13226 (unvisit_body): Likewise.
13227 (gimplify_body): Likewise.
13228 * predict.c (optimize_function_for_size_p): Likewise.
13229 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13230 (call_may_clobber_ref_p_1): Likewise.
13231 * varasm.c (function_section_1): Likewise.
13232 (assemble_start_function): Likewise.
13233
581985d7
MJ
132342011-04-11 Martin Jambor <mjambor@suse.cz>
13235
13236 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13237 of cgraph_node.
13238 * final.c (rest_of_clean_state): Likewise.
13239 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13240 * passes.c (pass_init_dump_file): Likewise.
13241 (execute_all_ipa_transforms): Likewise.
13242 (function_called_by_processed_nodes_p): Likewise.
13243 * predict.c (maybe_hot_frequency_p): Likewise.
13244 (probably_never_executed_bb_p): Likewise.
13245 (compute_function_frequency): Likewise.
13246 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13247 (unnest_nesting_tree_1): Likewise.
13248 (lower_nested_functions): Likewise.
13249 * tree-optimize.c (execute_fixup_cfg): Likewise.
13250 (tree_rest_of_compilation): Likewise.
13251 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13252 * tree-sra.c (ipa_early_sra): Likewise.
13253 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13254 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13255 * ipa.c (record_cdtor_fn): Likewise.
13256 * ipa-inline.c (cgraph_early_inlining): Likewise.
13257 (compute_inline_parameters_for_current): Likewise.
13258 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13259 * ipa-pure-const.c (local_pure_const): Likewise.
13260 * ipa-split.c (split_function): Likewise.
13261 (execute_split_functions): Likewise.
13262 * cgraphbuild.c (build_cgraph_edges): Likewise.
13263 (rebuild_cgraph_edges): Likewise.
13264 (cgraph_rebuild_references): Likewise.
13265 (remove_cgraph_callee_edges): Likewise.
13266 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13267 (verify_cgraph_node): Likewise.
13268 (cgraph_analyze_functions): Likewise.
13269 (cgraph_preserve_function_body_p): Likewise.
13270 (save_inline_function_body): Likewise.
13271 (save_inline_function_body): Likewise.
13272 * tree-inline.c (copy_bb): Likewise.
13273 (optimize_inline_calls): Likewise.
13274
57dbdc5a
MJ
132752011-04-11 Martin Jambor <mjambor@suse.cz>
13276
13277 PR tree-optimization/48195
13278 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13279 ipa_check_create_edge_args.
13280 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13281 ipa_check_create_edge_args.
13282 * ipa-inline.c (inline_generate_summary): Do not call
13283 ipa_check_create_node_params and ipa_check_create_edge_args.
13284 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13285 ipa_check_create_edge_args.
13286
d108e679
AS
132872011-04-09 Anatoly Sokolov <aesok@post.ru>
13288
13289 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13290 instead of loop.
13291 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13292 * function.c (record_hard_reg_sets): Likewise.
13293 * ira.c (compute_regs_asm_clobbered): Likewise.
13294 * sched-deps.c (sched_analyze_1): Likewise.
13295 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13296
3411bc59
XDL
132972011-04-09 Xinliang David Li <davidxl@google.com>
13298
13299 PR tree-optimization/PR48484
13300 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13301 has_valid_pred lazily
13302
b365495a
DS
133032011-04-09 Duncan Sands <baldrick@free.fr>
13304
13305 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13306
68bc509a
EB
133072011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13308
13309 * combine.c (combine_validate_cost): Adjust comments. Set registered
13310 cost of I0 to zero at the end, if any.
13311
041e059f
XDL
133122011-04-08 Xinliang David Li <davidxl@google.com>
13313
68bc509a
EB
13314 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13315 to insane profile data.
041e059f 13316
444b3995
XDL
133172011-04-08 Xinliang David Li <davidxl@google.com>
13318
13319 * ipa-cp.c (ipcp_update_profiling): Correct
13320 negative scale factor due to insane profile data.
13321
6a801cf2
XDL
133222011-04-08 Xinliang David Li <davidxl@google.com>
13323
13324 * final.c (dump_basic_block_info): New function.
13325 (final): Dump basic block.
13326 (final_scan_insn): Remove old dump.
13327
d5f3624e
SK
133282011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13329
68bc509a
EB
13330 PR target/47829
13331 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13332 crtbegin/crtend.
d5f3624e 13333
42821aff
MM
133342011-04-08 Michael Matz <matz@suse.de>
13335
13336 PR middle-end/48389
13337 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13338 functions.
13339 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13340 * rtl.h (rebuild_jump_labels_chain): Declare.
13341 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13342 insns inserted on edges.
13343
ad7be009
JM
133442011-04-08 Joseph Myers <joseph@codesourcery.com>
13345
13346 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13347 * config/arm/arm-arches.def: New.
13348 * config/arm/arm-opts.h: New.
13349 * config/arm/genopt.sh: New.
13350 * config/arm/arm-tables.opt: New (generated).
13351 * config/arm/arm.c (arm_handle_option, arm_target_help,
13352 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13353 (all_architectures): Get most table contents from arm-arches.def.
13354 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13355 arm_selected_tune here.
13356 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13357 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13358 (march=, mcpu=, mtune=): Use Enum and Var.
13359 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13360 (arm.o): Update dependencies.
ecbb6fb7 13361
42821aff 133622011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
13363
13364 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13365 of header_file.
13366 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13367 (write_typed_alloc_defns): Likewise.
13368 (main): Calls write_typed_alloc_defns with output_header.
13369
8d189b3f
VM
133702011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13371
68bc509a 13372 PR inline-asm/48435
8d189b3f
VM
13373 * ira-color.c (setup_profitable_hard_regs): Add comments.
13374 Don't take prohibited hard regs into account.
13375 (setup_conflict_profitable_regs): Rename to
13376 get_conflict_profitable_regs.
13377 (check_hard_reg_p): Check prohibited hard regs.
13378
44f370bf
NF
133792011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13380
13381 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13382 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13383 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13384
483d7ad3
JDA
133852011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13386
13387 PR target/48366
13388 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 13389 move from floating point to shift amount register.
483d7ad3
JDA
13390 (emit_move_sequence): Remove secondary reload support for floating
13391 point to shift amount amount register copies.
13392 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13393 amount register copies.
13394 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13395 register, return false if mode isn't a scalar integer mode.
13396 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13397
97e03fa1
RG
133982011-04-08 Richard Guenther <rguenther@suse.de>
13399
13400 * gimple.c (gimple_call_flags): Remove kludge.
13401
9d40778b
AM
134022011-04-08 Alexander Monakov <amonakov@ispras.ru>
13403
13404 * sel-sched.c (sel_region_init): Move call to
13405 sel_setup_region_sched_flags after setup_current_loop_nest.
13406
19ac7892
AB
134072011-04-08 Andrey Belevantsev <abel@ispras.ru>
13408
13409 PR rtl-optimization/48272
19ac7892
AB
13410 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13411 init_insn_reg_pressure_info. Adjust a caller.
13412 * sched-int.h (init_insn_reg_pressure_info): Declare.
13413 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13414 when sched-pressure is enabled.
13415
0f8c63cc
RG
134162011-04-08 Richard Guenther <rguenther@suse.de>
13417
13418 * gimple.c (gimple_set_modified): Do not queue calls to
13419 MODIFIED_NORETURN_CALLS here ...
13420 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13421
5e5a425e
RG
134222011-04-08 Richard Guenther <rguenther@suse.de>
13423
13424 PR lto/48467
13425 * toplev.c (lang_dependent_init): Do not open asm_out_file
13426 in WPA mode, nor perform debug machinery initialization.
13427 (finalize): Do not unlink asm_out_file in WPA mode.
13428
9bfc434b
RG
134292011-04-08 Richard Guenther <rguenther@suse.de>
13430
13431 * gimple.h (gimple_call_fntype): New function.
13432 (gimple_call_return_type): Use it.
13433 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13434 * gimple-low.c (gimple_check_call_args): Likewise.
13435 * gimple.c (gimple_call_flags): Likewise.
13436 (gimple_call_arg_flags): Likewise.
13437 (gimple_call_return_flags): Likewise.
13438 * tree-cfg.c (verify_gimple_call): Likewise.
13439 (do_warn_unused_result): Likewise.
13440 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13441 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13442
7c1f0b40
DM
134432011-04-08 Dmitry Melnik <dm@ispras.ru>
13444
13445 PR rtl-optimization/48235
13446 * sel-sched.c (code_motion_process_successors): Recompute the last
13447 insn in basic block if control flow changed.
13448 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13449 Update condition for ilist_remove.
13450
ea4d630f
AM
134512011-04-08 Alexander Monakov <amonakov@ispras.ru>
13452
13453 PR rtl-optimization/48302
13454 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13455 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13456 it to record added preheader blocks.
13457 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13458 on to sel_add_loop_preheaders.
13459 (sel_region_init): Move call to setup_current_loop_nest after
13460 sel_init_bbs.
13461
07643d76
AM
134622011-04-08 Alexander Monakov <amonakov@ispras.ru>
13463
13464 PR target/48273
13465 * cfgloop.h (loop_has_exit_edges): New helper.
13466 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13467 non-clonable.
13468 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13469 that have no exit edges.
13470
1f3b2b4e
AM
134712011-04-08 Alexander Monakov <amonakov@ispras.ru>
13472
13473 PR rtl-optimization/48442
13474 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13475 all callers. Adjust assert.
13476
554f1948
JJ
134772011-04-08 Jakub Jelinek <jakub@redhat.com>
13478
13479 PR tree-optimization/48377
13480 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13481 is_packed to true even for types with smaller TYPE_ALIGN than
13482 TYPE_SIZE.
13483
ddf72388
RG
134842011-04-08 Richard Guenther <rguenther@suse.de>
13485
13486 PR bootstrap/48513
13487 * doc/tm.texi: Re-generate.
13488
0c27e2d8
WG
134892011-04-08 Wei Guozhi <carrot@google.com>
13490
13491 PR target/47855
13492 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13493 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13494 * config/arm/arm.md (*push_multi): Change the length computation to
13495 call a C function.
13496
07c5f94e
AS
134972011-04-08 Anatoly Sokolov <aesok@post.ru>
13498
13499 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13500 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13501 * doc/tm.texi: Regenerate.
13502 * system.h (ASM_OUTPUT_BSS): Poison.
13503 * varasm.c (asm_output_bss): Remove function.
13504 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 13505
07c5f94e
AS
13506 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13507 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13508 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13509 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13510 Likewise.
13511 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13512 Likewise.
13513 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13514 Likewise.
13515 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13516
5f2c36e1
JM
135172011-04-07 Joseph Myers <joseph@codesourcery.com>
13518
13519 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13520 EnumValue lines.
13521
39e7722b
JM
135222011-04-07 Joseph Myers <joseph@codesourcery.com>
13523
13524 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13525 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13526 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13527 OPT_mcpu32.
13528 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13529 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13530 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13531 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13532 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13533 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13534 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13535 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13536 options. Don't map other m68k options manually. Don't handle
13537 old-style options as canonical.
13538 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 13539 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 13540
cf103ca4
EB
135412011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13542
13543 * basic-block.h (force_nonfallthru): Move to...
13544 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13545 (force_nonfallthru): ...here.
13546 * cfghooks.c (force_nonfallthru): New function.
13547 * cfgrtl.c (force_nonfallthru): Rename into...
13548 (rtl_force_nonfallthru): ...this.
13549 (commit_one_edge_insertion): Do not set AUX field.
13550 (commit_edge_insertions): Do not discover new basic blocks.
13551 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13552 (cfg_layout_rtl_cfg_hooks): Likewise.
13553 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13554 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13555 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13556
14431f58
AS
135572011-04-07 Anatoly Sokolov <aesok@post.ru>
13558
13559 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13560 Remove macros.
13561
3729983c
UB
135622011-04-07 Uros Bizjak <ubizjak@gmail.com>
13563
13564 * config/i386/sse.md: Update copyright year.
13565 (avxcvtvecmode): Remove.
13566 (sse_movhlps): Merge with *avx_movhlps.
13567 (sse_movlhps): Merge with *avx_movlhps.
13568 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13569 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13570 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13571 (sse_loadhps): Merge with *avx_loadhps.
13572 (sse_storelps): Merge with *avx_storelps.
13573 (sse_loadlps): Merge with *avx_loadlps.
13574 (sse_movss): Merge with *avx_movss.
13575 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13576 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13577 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13578 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13579 (vec_set<mode>_0): Ditto.
13580 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13581 (sse4_1_insertps): Merge with *avx_insertps.
13582 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13583 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13584 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13585 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13586 (sse2_storehpd): Merge with *avx_storehpd.
13587 (sse2_loadhpd): Merge with *avx_loadhpd.
13588 (sse2_loadlpd): Merge with *avx_loadlpd.
13589 (sse2_movsd): Merge with *avx_movsd.
13590 (*vec_concatv2df): Merge with *vec_concatv2df.
13591
4e626909
JJ
135922011-04-07 Jakub Jelinek <jakub@redhat.com>
13593
13594 PR debug/48343
13595 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 13596 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
13597 (try_combine): Add last_combined_insn parameter, pass it instead of
13598 i3 to propagate_for_debug.
13599
3729983c 136002011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
13601
13602 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13603 to handle MDR <-> data register transfers.
13604 (movhi_internal): Likewise.
13605
20c03367
AM
136062011-04-07 Alan Modra <amodra@gmail.com>
13607
13608 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13609 previous stack info.
13610
bf22920b
TV
136112011-04-07 Tom de Vries <tom@codesourcery.com>
13612
13613 PR target/43920
13614 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13615 flow_find_cross_jump. Swap variables to implement backward replacement.
13616 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13617
823918ae
TV
136182011-04-07 Tom de Vries <tom@codesourcery.com>
13619
13620 PR target/43920
13621 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
13622 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13623 and bb2.
13624 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13625 src1 or src2. Redirect edges to the last basic block. Update
13626 frequency and count on multiple basic blocks in case of fallthru.
823918ae 13627
472c95f5
TV
136282011-04-07 Tom de Vries <tom@codesourcery.com>
13629
13630 PR target/43920
13631 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13632 function.
3729983c
UB
13633 (old_insns_match_p): Change return type. Replace return false/true
13634 with return dir_none/dir_both. Use can_replace_by.
13635 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13636 direction from dir_p. Register replacement direction in dir, last_dir
13637 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
13638 merge_dir. Return replacement direction in dir_p.
13639 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13640 return type of old_insns_match_p.
13641 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13642 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13643 flow_find_cross_jump.
13644 * basic-block.h (enum replace_direction): New type.
13645 (flow_find_cross_jump): Add parameter to declaration.
13646
a95d4000
UB
136472011-04-06 Uros Bizjak <ubizjak@gmail.com>
13648
13649 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13650 (AVXMODEDCVTPS2DQ): Ditto.
13651 (VEC_FLOAT_MODE): Ditto.
13652 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13653 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13654 (<any_logic:code><mode>3): Use VF mode iterator.
13655 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13656 Use VF mode iterator.
13657 (copysign<mode>3): Use VF mode iterator.
13658 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13659 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13660 (*<any_logic:code><MODEF:mode>3): Merge with
13661 *avx_<any_logic:code><MODEF:mode>3.
13662 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13663 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13664 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13665 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13666 (sse2_cvtdq2ps): Use %v modifier.
13667 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13668 (avx_cvtps2dq<avxmodesuffix>): Remove.
13669 (sse2_cvtps2dq): Use %v modifier.
13670 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13671 (avx_cvttps2dq<avxmodesuffix>): Remove.
13672 (sse2_cvttps2dq): Use %v modifier.
13673 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13674 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13675 (sse2_cvtsd2siq): Fix insn template.
13676 (sse2_cvtsd2siq_2): Ditto.
13677 (sse2_cvttsd2siq): Ditto.
13678 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13679 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13680
ad01c437
JM
136812011-04-06 Joseph Myers <joseph@codesourcery.com>
13682
13683 * gcov-io.c: Use GCC Runtime Library Exception.
13684
fe846284
JJ
136852011-04-06 Jakub Jelinek <jakub@redhat.com>
13686
13687 PR debug/48466
13688 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13689 as base_reg whatever register reg has been eliminated to, instead
13690 of hardcoding STACK_POINTER_REGNUM.
13691
acce4e77
JM
136922011-04-06 Joseph Myers <joseph@codesourcery.com>
13693
13694 * doc/tm.texi.in: Document C target hooks as separate from general
13695 target hooks.
13696 * doc/tm.texi: Regenerate.
13697 * genhooks.c (struct hook_desc): Add docname field.
13698 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13699 docname field.
13700 (hook_array): Include c-target.def.
13701 (emit_documentation): Use docname field in output.
13702 (emit_init_macros): Take docname argument. Only emit definitions
13703 for hooks matching docname.
13704 (main): Expect additional arguments in all cases. Pass argument
13705 to emit_init_macros.
13706 * target.def: Move initial macro definitions and comments to
13707 target-hooks-macros.h.
13708 (gcc_targetcm): Move to c-family/c-target.def.
13709 * target.h (targetcm): Move declaration to c-family/c-target.h.
13710 * targhooks.c (default_handle_c_option): Move to
13711 c-family/c-opts.c.
13712 * targhooks.h (default_handle_c_option): Move declaration to
13713 c-family/c-common.h.
13714 * target-hooks-macros.h: New file.
13715 * config.gcc (target_has_targetcm): Define and use to add to
13716 c_target_objs and cxx_target_objs.
13717 * config/default-c.c: New file.
13718 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13719 of target.h and target-def.h.
13720 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13721 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13722 darwin_check_cfstring_format_arg): Make static.
13723 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13724 TARGET_STRING_OBJECT_REF_TYPE_P,
13725 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13726 * config/darwin-protos.h (darwin_objc_construct_string,
13727 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13728 declare.
13729 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13730 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 13731 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
13732 * config/t-darwin (darwin-c.o): Update dependencies.
13733 * system.h (TARGET_HAS_TARGETCM): Poison.
13734 * Makefile.in (TARGET_H): Update.
13735 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13736 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13737 (default-c.o): New target.
13738 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 13739 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
13740 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13741 c-target.def.
13742 (build/genhooks.o): Update dependencies.
13743
275b4baa 137442011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 13745
275b4baa
RG
13746 * ipa-inline.c (enum inlining_mode): Remove.
13747 (cgraph_flatten): Use some other token.
13748 (cgraph_edge_early_inlinable_p): New function, split out from ...
13749 (cgraph_perform_always_inlining): New function, split out from ...
13750 (cgraph_decide_inlining_incrementally): ... here.
13751 (cgraph_mark_inline_edge): Adjust.
13752 (cgraph_early_inlining): Re-structure.
13753 (pass_early_inline): Require SSA form.
13754
f15b8bdf 137552011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
13756 Julian Brown <julian@codesourcery.com>
13757 Mark Shinwell <shinwell@codesourcery.com>
13758
13759 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13760 LO_REGS only for Thumb-1.
13761 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13762 be used in short instructions when optimising for size on Thumb-2.
13763
516426da
EB
137642011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13765
13766 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13767 associated with user returns to be preserved.
13768
96621ebf
TG
137692011-04-06 Tristan Gingold <gingold@adacore.com>
13770
f15b8bdf
EB
13771 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13772 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
13773 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13774 if XCOFF_DEBUGGING_INFO.
13775
07c0852e
UB
137762011-04-06 Uros Bizjak <ubizjak@gmail.com>
13777
13778 * config/i386/i386.md (attribute isa): New.
13779 (attribute enabled): New.
13780 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13781 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13782 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13783 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13784 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13785 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13786 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13787 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13788
13789 * config/i386/sse.md (VF): New mode iterator.
13790 (VF1): Ditto.
13791 (VF2): Ditto.
13792 (VF_128): Ditto.
13793 (SSEMODEF4): Remove.
13794 (attribute sse): Handle V8SF and V4DF modes.
13795 (<absneg:code><mode>2): Use VF mode iterator.
13796 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13797 mode iterator.
13798 (<plusminus_insn><mode>3): Use VF mode iterator.
13799 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13800 Use VF mode iterator.
13801 (<sse>_vm<plusminus_insn><mode>3): Merge with
13802 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13803 (mul<mode>3): Use VF mode iterator.
13804 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13805 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13806 mode iterator.
13807 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13808 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13809 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13810 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13811 mode iterator.
13812 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13813 Use VF1 mode iterator.
13814 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13815 (sqrt<VF2:mode>2): New expander.
13816 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13817 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13818 and sqrtv2df2. Use VF mode iterator.
13819 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13820 mode iterator.
13821 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13822 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13823 Use VF1 mode iterator.
13824 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13825 (<smaxmin:code><mode>3): Use VF mode iterator.
13826 (*<smaxmin:code><mode>3_finite): Merge with
13827 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13828 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13829 (<sse>_vm<smaxmin:code><mode>2): Merge with
13830 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13831 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13832 mode iterator.
13833 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13834 mode iterator.
13835 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13836 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13837 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13838 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13839 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13840 VF mode iterator.
13841 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13842 Use VF_128 mode iterator.
13843 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13844 mode iterator.
13845 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13846 VF_128 mode iterator.
13847 (vcond<mode>): Use VF mode iterator.
13848 * config/i386/predicates.md (sse_comparison_operator): Merge with
13849 avx_comparison_float_operator. Do not declare as special_predicate.
13850 * config/i386/i386.c (struct builtin_description): Update for renamed
13851 compare patterns.
13852 (ix86_expand_args_builtin): Ditto.
13853 (ix86_expand_sse_compare_mask): Ditto.
13854
ff5d142c
RG
138552011-04-06 Richard Guenther <rguenther@suse.de>
13856
13857 * tree-inline.c (estimate_num_insns): For calls simply account
13858 for all passed arguments and a used return value.
13859
d7d1d041 138602011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 13861
d7d1d041
RG
13862 PR tree-optimization/47663
13863 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13864 call_stmt_time fields.
13865 (cgraph_edge_inlinable_p): Declare.
13866 (cgraph_edge_recursive_p): New inline function.
13867 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13868 (cgraph_clone_edge): Copy it.
13869 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13870 Account for call stmt time.
13871 (cgraph_estimate_time_after_inlining): Take edge argument.
13872 (cgraph_estimate_edge_growth): Account call stmt size.
13873 (cgraph_estimate_size_after_inlining): Take edge argument.
13874 (cgraph_mark_inline_edge): Adjust.
13875 (cgraph_check_inline_limits): Likewise.
13876 (cgraph_recursive_inlining_p): Remove.
13877 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13878 (cgraph_decide_recursive_inlining): Take edge argument and
13879 adjust.
13880 (cgraph_decide_inlining_of_small_functions): Do not avoid
13881 diags for recursive inlining here.
13882 (cgraph_flatten): Adjust.
13883 (cgraph_decide_inlining_incrementally): Likewise.
13884 (estimate_function_body_sizes): Remove call cost handling.
13885 (compute_inline_parameters): Initialize caller edge call costs.
13886 (cgraph_estimate_edge_growth): New function.
13887 (cgraph_estimate_growth): Use it.
13888 (cgraph_edge_badness): Likewise.
13889 (cgraph_check_inline_limits): Take an edge argument.
13890 (cgraph_decide_inlining_of_small_functions): Adjust.
13891 (cgraph_decide_inlining): Likewise.
13892 * tree-inline.c (estimate_num_insns): Only account for call
13893 return value if it is used.
13894 (expand_call_inline): Avoid diagnostics on recursive inline
13895 functions here.
13896 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13897 (input_edge): Input edge call costs.
13898
2feb95f7
RO
138992011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13900
13901 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13902
26fbd9c2
JW
139032011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13904
13905 * doc/invoke.texi (Spec Files): Fix typo.
13906
694dc0ca
EB
139072011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13908
13909 * profile.c (branch_prob): Move declaration of local variable. Remove
13910 obsolete ??? comment. Expand the location explicitly instead of using
13911 the LOCATION_FILE and LOCATION_LINE macros.
13912
4925d0d5
WG
139132011-04-06 Wei Guozhi <carrot@google.com>
13914
13915 PR target/47855
13916 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13917 (arm_cond_branch): Likewise.
13918 (arm_cond_branch_reversed): Likewise.
13919 (arm_jump): Likewise.
13920 (push_multi): Likewise.
13921 * config/arm/constraints.md (Py): New constraint.
13922
f55dfa2f
NF
139232011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13924
13925 PR bootstrap/48471
13926 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13927 Move these...
13928 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13929 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13930 #ifdef DBX_DEBUGGING_INFO.
13931
fca96842
BS
139322011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13933
13934 PR bootstrap/48403
13935 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13936 if old and new states differ.
13937
30b83e38
JM
139382011-04-05 Joseph Myers <joseph@codesourcery.com>
13939
13940 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13941 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13942 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13943 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13944 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13945 mcfv4e): Use Alias.
13946 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13947 ColdFire options to -mcpu= options.
13948
277a9aa5
JL
139492011-04-05 Jeff Law <law@redhat.com>
13950
13951 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13952 check if BB is a successor of LOOP->header and return
13953 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13954
c1e2610e
SB
139552011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13956
13957 * cprop.c (struct reg_use): Remove.
13958 (reg_use_table): Make an array of RTX.
13959 (find_used_regs, constprop_register, local_cprop_pass,
13960 bypass_block): Simplify users of reg_use_table.
13961 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13962 on one of the uses found by find_used_regs.
13963
e532f586
NF
139642011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13965
13966 PR bootstrap/48469
13967 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13968 declaration.
13969
3fb7c055
NF
139702011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13971
13972 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13973 as an rtx.
13974 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13975
b71b43d9
SB
139762011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13977
13978 PR middle-end/48441
13979 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13980
b405b274
NF
139812011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13982
13983 * combine.c: Include obstack.h.
13984 (struct insn_link): Define.
13985 (uid_log_links): Adjust type.
13986 (FOR_EACH_LOG_LINK): New macro.
13987 (insn_link_obstack): Declare.
13988 (alloc_insn_link): Define.
13989 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
13990 type of link variables.
13991 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13992 (try_combine, record_promoted_values, distribute_notes): Likewise.
13993 (distribute_links): Likewise. Tweak prototype.
13994 (clear_log_links): Delete.
13995 (adjust_for_new_dest): Call alloc_insn_link.
13996 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13997
6409abe3
NF
139982011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13999
14000 * gcse.c (modify_mem_list): Convert to an array of VECs.
14001 (canon_modify_mem_list, compute_transp): Tweak formatting.
14002 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
14003 (load_killed_in_block_p): Likewise.
14004 (record_last_mem_set_info): Likewise.
14005 (clear_modify_mem_tables): Likewise.
14006
170d8157
TV
140072011-04-05 Tom de Vries <tom@codesourcery.com>
14008
14009 PR middle-end/48461
14010 * function.c (emit_use_return_register_into_block): Only define if
14011 HAVE_return.
14012
c5911a55
EB
140132011-04-05 Eric Botcazou <ebotcazou@adacore.com>
14014
14015 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
14016
abd016e6
JM
140172011-04-05 Joseph Myers <joseph@codesourcery.com>
14018
14019 * config/rx/rx-opts.h: New.
14020 * config/rx/rx.c (rx_cpu_type): Remove.
14021 (rx_handle_option): Don't assert that global structures are in
14022 use. Access variables via opts pointer. Defer most handling of
14023 OPT_mint_register_. Use error_at.
14024 (rx_option_override): Handle deferred OPT_mint_register_ here.
14025 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
14026 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
14027 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
14028 (rx_cpu_types): New Enum and EnumValue entries.
14029 (mint-register=): Use Defer and use Var accordingly.
14030
1ed13f83
NF
140312011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14032
14033 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
14034 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
14035 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
14036 Move these...
14037 (debug_free_queue, debug_nesting, symbol_queue_index):
14038 ...and these...
14039 * dbxout.c: ...to here. Make static.
14040
6ce1edcf
NF
140412011-04-05 Nathan Froyd <froydnj@codesourcery.com>
14042
14043 * gcse.c (modify_pair): Define. Define a VEC of it.
14044 (canon_modify_mem_list): Convert to an array of VECs.
14045 (free_insn_expr_list_list): Delete.
14046 (clear_modify_mem_tables): Call VEC_free instead.
14047 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
14048 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
14049 (canon_list_insert, compute_transp): Likewise.
14050
c201ac94
TV
140512011-04-05 Tom de Vries <tom@codesourcery.com>
14052
14053 PR target/43920
14054 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
14055 for size.
14056
4c029f40
TV
140572011-04-05 Tom de Vries <tom@codesourcery.com>
14058
14059 PR target/43920
14060 * function.c (emit_use_return_register_into_block): New function.
14061 (thread_prologue_and_epilogue_insns): Use
14062 emit_use_return_register_into_block.
14063
2a562b0a
TV
140642011-04-05 Tom de Vries <tom@codesourcery.com>
14065
14066 PR target/43920
14067 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
14068 insn.
14069
0248bceb
TV
140702011-04-05 Tom de Vries <tom@codesourcery.com>
14071
14072 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
14073
ffa94123
YZ
140742011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
14075
798dd0ba
UB
14076 * config/arm/arm.md (define_constants for unspec): Replace with
14077 define_c_enum.
14078 (define_constants for unspecv): Replace with define_c_enum.
14079 * config/arm/neon.md (define_constants for unspec): Replace with
14080 define_c_enum.
ffa94123 14081
3b8f9b46
RH
140822011-04-04 Richard Henderson <rth@redhat.com>
14083
720cf80f 14084 PR bootstrap/48400
3b8f9b46
RH
14085 * dwarf2out.c (output_line_info): Always emit line info from
14086 at least one section.
14087 (dwarf2out_init): Create text_section_line_info here ...
14088 (set_cur_line_info_table): ... not here.
14089
720cf80f 140902011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
14091
14092 PR target/48380
14093 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 14094 not called.
e5b0e1ca 14095
720cf80f 14096 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 14097
196565d4
SB
140982011-04-04 Steven Bosscher <steven@gcc.gnu.org>
14099
b77f9eab
SB
14100 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
14101 (expr_equiv_p): Remove.
14102 (insert_set_in_table): Look at <dest, src> pair instead of expr.
14103 (hash_scan_set): Update call to insert_set_in_table.
14104 (dump_hash_table): Dump <dest, src> pair.
14105 (lookup_set): Simplify. Lookup <dest, src> pair.
14106 (compute_transp): Remove, fold heavily simplified code into...
14107 (compute_local_properties): ...here. Expect COMP and TRANSP
14108 unconditionally.
14109 (find_avail_set): Take set directly from struct expr.
14110 (find_bypass-set): Likewise.
14111 (bypass_block): Likewise.
14112 (cprop_insn): Likewise. Remove redundant INSN_P test.
14113
384d7a55
SB
14114 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
14115 checks on form of COND from find_implicit_sets to here.
14116 (find_implicit_sets): Cleanup control flow. Split critical edges
14117 if it exposes implicit sets. Allocate/resize implicit_sets as
14118 necessary.
14119 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
14120 changed something. Run df_analyze after find_implicit_sets if any
14121 edges were split. Do not allocate implicit_sets here.
14122
3084ce69
SB
14123 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
14124 (gcse_obstack): Renamed to cprop_obstack.
14125 (GNEW, GNEWVEC, GNEWVAR): Remove.
14126 (gmalloc): Remove.
14127 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
14128 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
14129 (gcse_alloc): Likewise, and rename to cprop_alloc.
14130 (alloc_gcse_men, free_gcse_mem): Remove.
14131 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
14132 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
14133 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
14134
196565d4
SB
14135 * cprop.c (oprs_not_set_p): Remove.
14136 (mark_set, mark_clobber): Remove.
14137 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
14138 (reg_not_set_p): New function.
14139 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
14140 (cprop_insn): Likewise.
14141 (cprop_jump): Use FOR_EACH_EDGE.
14142
9b69cf83
BS
141432011-04-04 Bernd Schmidt <bernds@codesourcery.com>
14144
14145 PR bootstrap/48403
14146 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
14147 (rank_for_schedule): Use scheduled_insns vector instead of
14148 last_scheduled_insn.
14149 (ok_for_early_queue_removal): Likewise.
14150 (queue_to_ready): Search forward in nonscheduled_insns_begin if
14151 we have a dbg_cnt.
14152 (choose_ready): Likewise.
14153 (commit_schedule): Use VEC_iterate.
14154 (schedule_block): Initialize nonscheduled_insns_begin. If we have
14155 a dbg_cnt, use it and ensure the first insn is in the ready list.
14156 (haifa_sched_init): Allocate scheduled_insns.
14157 (sched_extend_ready_list): Don't allocate it; reserve space.
14158 (haifa_sched_finish): Free it.
14159
24f48c2f
JM
141602011-04-04 Joseph Myers <joseph@codesourcery.com>
14161
14162 * optc-gen.awk: Always remove type from Variable entry before
14163 recording in var_seen.
14164
8effe856
EB
141652011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14166
14167 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
14168 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
14169 call to tidy_fallthru_edges.
14170
413519ae
JM
141712011-04-04 Joseph Myers <joseph@codesourcery.com>
14172
14173 * doc/options.texi (ToLower): Document.
3729983c 14174 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
14175 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
14176 * opts.h (cl_option): Add cl_tolower field.
14177 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
14178 arguments with lowercase strings.
14179 * config/rx/rx.opt (mcpu=): Add ToLower.
14180 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14181 argument.
14182
7d34a1b0
RS
141832011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14184
14185 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14186
c30e7434
RS
141872011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14188
14189 * config/vax/vax.c: Include reload.h.
14190
112a861d
AS
141912011-04-04 Anatoly Sokolov <aesok@post.ru>
14192
14193 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14194 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14195 (sparc_preferred_reload_class): New function.
14196
e8c6bb74
JJ
141972011-04-04 Jakub Jelinek <jakub@redhat.com>
14198
2aeaa366 14199 PR debug/48401
e8c6bb74
JJ
14200 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14201 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14202
2c081caf
NF
142032011-04-03 Nathan Froyd <froydnj@codesourcery.com>
14204
14205 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14206 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14207
53802f27
AS
142082011-04-03 Anatoly Sokolov <aesok@post.ru>
14209
14210 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14211 (ASM_OUTPUT_ALIGNED_BSS): Define.
14212
e89964e3
MM
142132011-04-03 Michael Matz <matz@suse.de>
14214
14215 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14216 and next_slot members.
14217 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14218 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14219 (lto_streamer_cache_append): Declare.
14220 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14221 unsigned index, remove offset parameter, ensure that we append
14222 or update existing entries.
14223 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14224 parameter, update next_slot for append.
14225 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14226 parameter.
14227 (lto_streamer_cache_insert_at): Likewise.
14228 (lto_streamer_cache_append): New function.
14229 (lto_streamer_cache_lookup): Use unsigned index.
14230 (lto_streamer_cache_get): Likewise.
14231 (lto_record_common_node): Don't test tree_node_can_be_shared.
14232 (preload_common_node): Adjust call to lto_streamer_cache_insert.
14233 (lto_streamer_cache_delete): Don't free offsets member.
14234 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14235 (lto_output_string_with_length): Use lto_output_data_stream.
14236 (lto_output_tree_header): Remove ix parameter, don't write it.
14237 (lto_output_builtin_tree): Likewise.
14238 (lto_write_tree): Adjust callers to above, don't track and write
14239 offset, write unsigned index.
14240 (output_unreferenced_globals): Don't emit all global vars.
14241 (write_global_references): Use unsigned indices.
14242 (lto_output_decl_state_refs): Likewise.
14243 (write_symbol): Likewise.
14244 * lto-streamer-in.c (lto_input_chain): Move earlier.
14245 (input_function): Use unsigned index.
14246 (input_alias_pairs): Don't read and then ignore all global vars.
14247 (lto_materialize_tree): Remove ix_p parameter, don't read index,
14248 don't pass it back, use lto_streamer_cache_append.
14249 (lto_register_var_decl_in_symtab): Use unsigned index.
14250 (lto_register_function_decl_in_symtab): Likewise.
14251 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14252 index.
14253 (lto_get_builtin_tree): Don't read index, use
14254 lto_streamer_cache_append.
14255 (lto_read_tree): Adjust call to lto_materialize_tree.
14256
14257 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14258 don't use function calls in arguments to MIN.
14259
14260 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14261 twice.
14262
14263 * gimple.c (gimple_type_leader_entry): Mark deletable.
14264
b9a5b5b2
AM
142652011-04-03 Alan Modra <amodra@gmail.com>
14266
14267 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14268
ac6a641b
MM
142692011-04-03 Michael Matz <matz@suse.de>
14270
14271 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14272 an integer.
14273 * tree.h (tree_decl_non_common.vindex): Adjust comment.
14274
0038d4e0
MM
142752011-04-03 Michael Matz <matz@suse.de>
14276
e9c18386 14277 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
14278 * gimple-fold.c (canonicalize_constructor_val): Accept being called
14279 without function context.
14280 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14281 current_function_decl and cfun.
14282
91f2fae8
MM
142832011-04-03 Michael Matz <matz@suse.de>
14284
14285 * tree.c (decl_init_priority_insert): Don't create entry for
14286 default priority.
14287 (decl_fini_priority_insert): Ditto.
14288 (fields_compatible_p, find_compatible_field): Remove.
14289 * tree.h (fields_compatible_p, find_compatible_field): Remove.
14290 * gimple.c (gimple_compare_field_offset): Adjust block comment.
14291
da29e070
EB
142922011-04-03 Eric Botcazou <ebotcazou@adacore.com>
14293
14294 * combine.c (try_combine): Remove useless local variable.
14295
4979c28b 142962011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 14297 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
14298
14299 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14300 non-variable offsets and compare the remaining bases of the two
14301 accesses instead of looking for exact same data-ref.
14302
b4ddcaee
KT
143032011-04-02 Kai Tietz <ktietz@redhat.com>
14304
f90298e1
KT
14305 PR target/48416
14306 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14307
b4ddcaee
KT
14308 * i386.c (ix86_is_msabi_thiscall): New helper function.
14309 (ix86_is_type_thiscall): New helper function.
14310 (ix86_comp_type_attributes): Handle thiscall for method-functions
14311 special.
14312 (init_cumulative_args): Likewise.
14313 (find_drap_reg): Likewise.
14314 (ix86_static_chain): Likewise.
14315 (x86_this_parameter): Likewise.
14316 (x86_output_mi_thunk): Likewise.
14317
2a9d769a 143182011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
14319 Nicolas Setton <setton@adacore.com>
14320 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
14321
14322 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14323 (add_gnat_descriptive_type_attribute): New function.
14324 (gen_array_type_die): Call it.
14325 (gen_enumeration_type_die): Likewise.
14326 (gen_struct_or_union_type_die): Likewise.
14327 (modified_type_die): Likewise.
14328 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14329 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14330 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14331
15a03a11
JJ
143322011-04-01 Jakub Jelinek <jakub@redhat.com>
14333
14334 PR bootstrap/48148
14335 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14336 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14337
14338 Revert:
14339 2011-03-17 Richard Guenther <rguenther@suse.de>
14340
14341 PR bootstrap/48148
14342 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14343 origin for decls in other ltrans units.
14344 (input_varpool_node): Likewise.
14345
19228b93
JJ
143462011-04-01 Jakub Jelinek <jakub@redhat.com>
14347
14348 PR middle-end/48335
14349 * expr.c (expand_assignment): Handle all possibilities
14350 if TO_RTX is CONCAT.
e9c18386 14351 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
14352 (store_split_bit_field): If SUBREG_REG (op0) or
14353 op0 itself has smaller mode than word, return it
14354 for offset 0 and const0_rtx for out-of-bounds stores.
14355 If word is const0_rtx, skip it.
14356
88cb339e
N
143572011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14358
14359 * config/h8300/h8300.c (print_operand_address): Rename to...
14360 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14361 Call h8300_print_operand and h8300_print_operand_address instead of
14362 print_operand and print_operand_address. Declare.
14363 (print_operand): Renake to...
14364 (h8300_print_operand): ...this. Make static. Adjust comments.
14365 Call h8300_print_operand instead of print_operand. Declare.
14366 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14367 (h8300_register_move_cost): Likewise.
14368 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14369 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14370 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14371 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14372 * config/h8300/h8300-protos.h (print_operand): Delete.
14373 (print_operand_address): Delete.
14374
756d6ee9
RH
143752011-04-01 Richard Henderson <rth@redhat.com>
14376
14377 PR 48400
14378 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14379 in strict mode before dwarf4. Re-order tests to early out
14380 before switching sections.
14381
ceaaaeab
NF
143822011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14383
14384 * config/h8300/constraints.md: New file.
14385 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14386 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14387 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14388 * config/h8300/predicates.md (bit_operand): Likewise.
14389 (incdec_operand): Use satisfies_constraint_M and
14390 satisfies_constraint_O. Don't use C code block.
14391 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14392 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14393 (compute_mov_length): Use satisfies_constraint_G.
14394 (fix_bit_operand): Use satisfies_constraint_U.
14395 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14396 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14397 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14398 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14399 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14400 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14401 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14402 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14403 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14404 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14405 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14406 (EXTRA_MEMORY_CONSTRAINT): Delete.
14407
08ae38e0
AP
144082011-04-01 Andrew Pinski <pinskia@gmail.com>
14409 Michael Meissner <meissner@linux.vnet.ibm.com>
14410
14411 PR target/48262
14412 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14413 operands, as per the specifications.
14414
14415 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14416 (vec_extract_evenv4sf): Ditto.
14417 (vec_extract_evenv8hi): Ditto.
14418 (vec_extract_evenv16qi): Ditto.
14419 (vec_extract_oddv4si): Ditto.
14420
bdb0b0f6
MW
144212011-03-31 Mark Wielaard <mjw@redhat.com>
14422
14423 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14424 high_pc attribute if the CU has no associated code. Only output
14425 DW_AT_entry_pc for CU if not generating strict dwarf and
14426 dwarf_version < 4.
14427
722279e4
BS
144282011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14429
14430 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14431 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14432 out of ...
14433 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14434 * final.c (final_start_function): Call the new function rather
14435 than using a NULL argument for dwarf2out_frame_debug.
14436
c5dd277d
BS
14437 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14438 that contains the prologue.
14439
ec4efea9
BS
14440 * haifa-sched.c (queue_insn): New arg REASON. All callers
14441 changed. Print it in debugging output.
14442
2a6a0d80
BS
14443 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14444
86014d07
BS
14445 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14446 Split most of the code into...
14447 (begin_move_insn): ... here. New function.
14448 (ebb_sched_info): Add a pointer to it.
14449 * haifa-sched.c (scheduled_insns): New static variable.
14450 (sched_extend_ready_list): Allocate it.
14451 (schedule_block): Use it to record the order of scheduled insns.
14452 Perform RTL changes to move insns only after all scheduling
14453 decisions have been made.
14454 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14455 begin_move_insn field.
14456 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14457 * sched-int.h (struct haifa_sched_info): Remove second argument
14458 from begin_schedule_ready hook. Add new member begin_move_insn.
14459 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14460 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14461
9d701248
BS
14462 * haifa-sched.c (prune_ready_list): New function, broken out of
14463 schedule_block.
14464 (schedule_block): Use it.
14465
1ca1dad5
UW
144662011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14467
14468 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14469
49568e45
KT
144702011-04-01 Kai Tietz <ktietz@redhat.com>
14471
14472 * config.gcc (*-*-mingw*): Allow as option the
14473 posix threading model.
07c0852e 14474 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
14475 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14476 definition.
14477 (CPP_SPEC): Add pthread/no-pthread handling.
14478 (LIB_SPEC): Likewise.
14479 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14480 (LIB_SPEC): Likewise.
14481 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14482 flag to pass -pthread option for shared libgcc build.
14483 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14484 for shared libgcc build.
14485 * config/i386/t-mingw-pthread: New file.
14486 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14487 New define to enable use of library pthread by default.
14488 * config/i386/mingw.opt (pthread): New driver option.
14489 (no-pthread): New driver option.
e9c18386 14490 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
14491 * config/i386/mingw-w64.opt: Likewise.
14492
748f7574 144932011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
14494
14495 * c-decl.c (grokdeclarator): Fix formatting.
14496
f04713ee
RS
144972011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14498
14499 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14500 instead of n_operands.
14501 (set_storage_via_setmem): Likewise.
14502 * optabs.c (maybe_gen_insn): Likewise.
14503 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14504 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14505 (mips_expand_builtin_direct): Likewise.
14506 * config/spu/spu.c (expand_builtin_args): Likewise.
14507
b29387ee
RS
145082011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14509
14510 * recog.h (insn_data_d): Add n_generator_args.
14511 * genoutput.c (data): Likewise.
14512 (output_insn_data): Print it.
14513 (max_opno, num_dups): Delete.
14514 (scan_operands): Just fill in "d->operand[...]".
14515 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14516
e792559a
RS
145172011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14518
14519 * gensupport.h (pattern_stats): New structure.
14520 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14521 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14522 (max_operand_1, max_operand_vec): Delete.
14523 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14524
e8110d6f
NF
145252011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14526
14527 * emit-rtl.c (emit_pattern_after_setloc): New function.
14528 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14529 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14530 (emit_pattern_after): New function.
14531 (emit_insn_after, emit_jump_insn_after): Call it.
14532 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14533 (emit_pattern_before_setloc): New function.
14534 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14535 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14536 Likewise.
14537 (emit_pattern_before): New function.
14538 (emit_insn_before, emit_jump_insn_before): Call it.
14539 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14540
576f85f1
RH
145412011-03-31 Richard Henderson <rth@redhat.com>
14542
14543 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14544 (dw_separate_line_info_entry): Remove.
14545 (enum dw_line_info_opcode): New.
14546 (dw_line_info_entry): Use it.
14547 (dw_line_info_table, dw_line_info_table_p): New.
14548 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14549 (line_info_table, line_info_label_num): Remove.
14550 (line_info_table_in_use): Remove.
14551 (separate_line_info_table): Remove.
14552 (separate_line_info_table_allocated): Remove.
14553 (separate_line_info_table_in_use): Remove.
14554 (LINE_INFO_TABLE_INCREMENT): Remove.
14555 (line_info_label_num): New.
14556 (cur_line_info_table): New.
14557 (text_section_line_info, cold_text_section_line_info): New.
14558 (separate_line_info): New.
14559 (SEPARATE_LINE_CODE_LABEL): Remove.
14560 (print_dwarf_line_table): Remove.
14561 (debug_dwarf): Don't dump it.
14562 (output_one_line_info_table): New.
14563 (output_line_info): Use it.
14564 (new_line_info_table): New.
14565 (set_cur_line_info_table): New.
14566 (dwarf2out_switch_text_section): Use it.
14567 (dwarf2out_begin_function): Likewise.
14568 (push_dw_line_info_entry): New.
14569 (dwarf2out_source_line): Rewrite for new line info tables.
14570 (dwarf2out_init): Remove dead initailizations.
14571
300d83d9
JM
145722011-03-31 Joseph Myers <joseph@codesourcery.com>
14573
14574 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14575 various flags.
14576 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14577 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14578 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14579 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14580 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14581 * opt-functions.awk (flag_init, switch_bit_fields): New.
14582 (switch_flags): Don't handle flags moved to bit-fields. Don't
14583 generate CL_MISSING_OK or CL_SAVE.
14584 * optc-gen.awk: Update to generate bit-field output as well as
14585 flags field.
14586 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14587 bit-field instead of CL_REJECT_DRIVER flag.
14588 * opts-common.c (generate_canonical_option,
14589 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14590 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14591 instead of CL_REJECT_NEGATIVE flag.
14592 * toplev.c (print_switch_values): Use cl_report bit-field instead
14593 of CL_REPORT flag.
14594
d4d73ce2
EB
145952011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14596
14597 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14598 a zero minimum index only if it is redundant.
14599
b8faca75
VM
146002011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14601
14602 PR rtl-optimization/48381
14603 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14604 instead of ira_class_hard_reg_index for calculating conflicting
14605 hard registers.
14606
7d11cebe
SB
146072011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14608
14609 * cprop.c: Clean up hash table building.
14610 (reg_avail_info): Remove.
14611 (oprs_available_p): Remove.
14612 (record_last_reg_set_info): Remove.
14613 (record_last_set_info): Remove.
14614 (reg_available_p): New function.
14615 (gcse_constant_p): Do not treat unfolded conditions as constants.
14616 (make_set_regs_unavailable): New function.
14617 (hash_scan_set): Simplify with new reg_available_p.
14618 (compute_hash_table_work): Traverse insns stream only once.
14619 Do not compute reg_avail_info. Traverse insns in reverse order.
14620 Record implicit sets after recording explicit sets from the block.
14621
98faf84f
MM
146222011-03-31 Michael Matz <matz@suse.de>
14623
e9c18386 14624 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 14625
f52d97da
AS
146262011-03-31 Anatoly Sokolov <aesok@post.ru>
14627
14628 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14629 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14630 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14631 (h8300_mode_dependent_address_p): New function.
14632 (h8300_get_index): Make static.
14633
e16b6fd0
JL
146342011-03-31 Jeff Law <law@redhat.com>
14635
10c51983
JL
14636 * reload1.c (elimination_effects): Fix typo in recent change.
14637
e9c18386 14638 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
14639 typo potentially leading to null pointer dereference.
14640
14641 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14642 (setup_save_areas): Corresponding changes to avoid useless
14643 assignments.
14644
14645 * jump.c (reversed_comparison_code_parts): Avoid successive return
14646 statements when REVERSE_CONDITION is defined.
14647
14648 * expr.c (expand_assignment): Avoid useless assignments.
14649 (expand_expr_real_1): Likewise.
14650 (expand_expr_real_2): Avoid useless statements.
14651
14652 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14653
14654 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14655
14656 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14657 statements.
14658
14659 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14660
eb1eb914
JM
146612011-03-31 Joseph Myers <joseph@codesourcery.com>
14662
14663 PR target/47109
14664 * doc/tm.texi.in (TARGET_VERSION): Remove.
14665 * doc/tm.texi: Regenerate.
14666 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14667 * collect2.c (main): Don't use TARGET_VERSION.
14668 * mips-tdump.c (main): Don't use TARGET_VERSION.
14669 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 14670 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
14671 * config/rs6000/vxworksae.h: Remove.
14672 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14673 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14674 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14675 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14676 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14677 * config/arm/arm.h (TARGET_VERSION): Remove.
14678 * config/arm/coff.h (TARGET_VERSION): Remove.
14679 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14680 * config/arm/elf.h (TARGET_VERSION): Remove.
14681 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14682 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14683 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14684 * config/arm/pe.h (TARGET_VERSION): Remove.
14685 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14686 * config/arm/semi.h (TARGET_VERSION): Remove.
14687 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14688 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14689 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14690 * config/avr/avr.h (TARGET_VERSION): Remove.
14691 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14692 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14693 * config/frv/frv.h (TARGET_VERSION): Remove.
14694 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14695 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14696 * config/i386/darwin.h (TARGET_VERSION): Remove.
14697 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14698 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14699 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14700 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14701 * config/i386/gnu.h (TARGET_VERSION): Remove.
14702 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14703 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14704 * config/i386/linux.h (TARGET_VERSION): Remove.
14705 * config/i386/linux64.h (TARGET_VERSION): Remove.
14706 * config/i386/lynx.h (TARGET_VERSION): Remove.
14707 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14708 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14709 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14710 * config/i386/netware.h (TARGET_VERSION): Remove.
14711 * config/i386/nto.h (TARGET_VERSION): Remove.
14712 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14713 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14714 * config/ia64/elf.h (TARGET_VERSION): Remove.
14715 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14716 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14717 * config/ia64/linux.h (TARGET_VERSION): Remove.
14718 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14719 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14720 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14721 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14722 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14723 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14724 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14725 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14726 * config/m68k/linux.h (TARGET_VERSION): Remove.
14727 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14728 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14729 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14730 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14731 * config/mep/mep.h (TARGET_VERSION): Remove.
14732 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14733 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14734 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14735 * config/mips/linux.h (TARGET_VERSION): Remove.
14736 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14737 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14738 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14739 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14740 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14741 * config/pa/pa.h (TARGET_VERSION): Remove.
14742 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14743 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14744 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14745 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14746 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14747 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14748 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14749 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14750 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14751 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14752 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14753 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14754 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14755 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14756 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14757 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14758 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14759 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14760 * config/s390/linux.h (TARGET_VERSION): Remove.
14761 * config/s390/s390.h (TARGET_VERSION): Remove.
14762 * config/s390/tpf.h (TARGET_VERSION): Remove.
14763 * config/score/score.h (TARGET_VERSION): Remove.
14764 * config/sh/linux.h (TARGET_VERSION): Remove.
14765 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14766 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14767 * config/sh/sh.h (TARGET_VERSION): Remove.
14768 * config/sh/sh64.h (TARGET_VERSION): Remove.
14769 * config/sh/superh.h (TARGET_VERSION): Remove.
14770 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14771 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14772 * config/sparc/linux.h (TARGET_VERSION): Remove.
14773 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14774 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14775 TARGET_NAME32, TARGET_NAME): Remove.
14776 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14777 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14778 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14779 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14780 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14781 * config/spu/spu.h (TARGET_VERSION): Remove.
14782 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14783 * config/v850/v850.h (TARGET_VERSION): Remove.
14784 * config/vax/linux.h (TARGET_VERSION): Remove.
14785 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14786 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14787 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14788
ace31bca
EB
147892011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14790
14791 PR target/48142
14792 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14793 frame-related from frame-unrelated adjustments to the stack pointer.
14794
76f9db36
JJ
147952011-03-31 Jakub Jelinek <jakub@redhat.com>
14796
14797 * common.opt (fdebug-types-section): Move earlier.
14798 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14799
b7826465
AT
148002011-03-31 Andreas Tobler <andreast@fgznet.ch>
14801
14802 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14803 var.
14804
1290e54c
NF
148052011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14806
14807 * tree.h (CASE_CHAIN): Define.
14808 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14809 (gimple_redirect_edge_and_branch): Likewise.
14810
bddc98e1
VM
148112011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14812
14813 PR middle-end/48367
14814 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14815 calculation.
14816
c865e437
JL
148172011-03-30 Jeff Law <law@redhat.com>
14818
b3750213 14819 * PR bootstrap/48371
c865e437
JL
14820 * reload1.c (reload): Fix botch in last change.
14821
14822 * reload.h (struct reload): Fix typo introduced in last change.
14823
2cdf9574
JM
148242011-03-30 Joseph Myers <joseph@codesourcery.com>
14825
14826 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14827 Undocumented. Remove help text.
14828 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14829 -mhard-float.
14830
666a21a2
JM
148312011-03-30 Joseph Myers <joseph@codesourcery.com>
14832
14833 * doc/options.texi (NegativeAlias): Document.
14834 (Alias): Mention NegativeAlias.
14835 * opt-functions.awk: Handle NegativeAlias.
e9c18386 14836 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
14837 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14838 * opts.h (CL_NEGATIVE_ALIAS): Define.
14839 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14840 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14841 OPT_mspe_.
14842 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14843 Alias entries.
14844 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14845 mno-spe and mno-isel instead of mspe=no and -misel=no.
14846
0fa4e351
MW
148472011-03-29 Mark Wielaard <mjw@redhat.com>
14848
14849 * common.opt (fdebug-types-section): New flag.
14850 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14851 * dwarf2out.c (use_debug_types): New define.
14852 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14853 (print_die): Guard output of type unit signatures using
14854 use_debug_types.
14855 (build_abbrev_table): Replace assert of dwarf_version >= 4
14856 with assert on use_debug_types.
14857 (size_of_die): Likewise.
14858 (unmark_dies): Likewise.
14859 (value_format): Decide AT_ref_external form on use_debug_types.
14860 (output_die): Replace dwarf_version version check guard with
14861 use_debug_types where appropriate.
14862 (modified_type_die): Likewise.
14863 (gen_reference_type_die): Likewise.
14864 (dwarf2out_start_source_file): Likewise.
14865 (dwarf2out_end_source_file): Likewise.
14866 (prune_unused_types_walk_attribs): Likewise.
14867 (dwarf2out_finish): Likewise.
14868
4648deb4
VM
148692011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14870
14871 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14872
4f431835
RS
148732011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14874
14875 PR rtl-optimization/48332
14876 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14877 mode of input operand N and modeN to its actual mode.
14878
f2034d06
JL
148792011-03-30 Jeff Law <law@redhat.com>
14880
14881 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14882 define accessor macro.
14883 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14884 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14885 (reg_equiv_init): Likewise.
14886 (reg_equivs_size): New variable.
14887 (reg_equiv_init_size): Remove.
14888 (allocate_initial_values): Move prototype to here from....
14889 * integrate.h (allocate_initial_values): Remove prototype.
14890 * integrate.c: Include reload.h.
14891 (allocate_initial_values): Corresponding changes.
14892 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14893 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14894 (update_equiv_regs): Corresponding changes.
14895 (ira): Corresponding changes.
14896 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14897 (push_secondary_reload): Corresponding changes.
14898 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14899 (make_memloc, find_reloads_address): Corresponding changes.
14900 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14901 (find_reloads_address_1): Corresponding changes.
14902 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14903 (refers_to_regno_for_reload_p): Corresponding changes.
14904 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14905 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14906 * reload1.c: Include ggc.h.
14907 (grow_reg_equivs): New function.
14908 (replace_pseudos_in, reload): Corresponding changes.
14909 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14910 (eliminate_regs_1, elimination_effects): Corresponding changes.
14911 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14912 (delete_output_reload): Likewise.
14913 * caller-save.c (mark_referenced_regs): Corresponding changes.
14914 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14915 * frv/predicates.md (frv_load_operand): Corresponding changes.
14916 * microblaze/microblaze.c (double_memory_operand): Corresponding
14917 changes.
14918 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14919 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 14920 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
14921 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14922 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14923 changes.
14924 * pa/pa.c (emit_move_sequence): Corresponding changes.
14925 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14926
159b81b0
RS
149272011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14928
14929 PR target/47551
14930 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14931 structure modes. Don't check neon_vector_mem_operand for
14932 vector or structure modes.
14933
a6217191
RS
149342011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14935 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14936
14937 PR target/43590
14938 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14939 operand 1 and reshuffle the operands to match.
14940 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14941
bd837408
CS
149422011-03-30 Christian Schüler <cschueler@gmx.de>
14943
6955d771 14944 PR driver/48208
bd837408 14945 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 14946
6955d771 14947 PR driver/48260
bd837408
CS
14948 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14949 handler function.
14950 * config/darwin.opt: Added '-arch' option.
14951
e9c0470a
NC
149522011-03-30 Nick Clifton <nickc@redhat.com>
14953
14954 * config/rx/rx.md: Add peepholes and patterns to combine
14955 extending loads and simple arithmetic instructions.
14956 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
14957 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14958 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 14959 modes to use pre-decrement and post-increment addressing.
e9c18386 14960 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 14961 addresses.
e9c18386
UB
14962 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14963 (rx_memory_move_cost): Adjust cost of stores.
14964 (rx_adjust_insn_length): New function.
e9c0470a 14965
8a87e7ab
JJ
149662011-03-30 Jakub Jelinek <jakub@redhat.com>
14967
14968 PR c/48305
14969 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14970 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14971 matching arg00/arg01 types.
14972
12486e03
EB
149732011-03-30 Eric Botcazou <ebotcazou@adacore.com>
14974
14975 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14976 last_location to UNKNOWN_LOCATION.
14977
0b99eef6
L
149782011-03-30 H.J. Lu <hongjiu.lu@intel.com>
14979
14980 PR target/48349
14981 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14982 FLOAT_SSE_REGS.
14983
023592aa
JM
149842011-03-30 Joseph Myers <joseph@codesourcery.com>
14985 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14986
14987 PR bootstrap/48337
14988 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14989 Init(PROCESSOR_V7).
14990 (sparc_cpu): Likewise.
14991 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14992 PROCESSOR_V7.
14993
ad3b266b
VM
149942011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14995
14996 PR target/48336
14997 PR middle-end/48342
14998 PR rtl-optimization/48345
14999 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
15000 hard regs for given mode from profitable regs when doing secondary
15001 allocation.
15002
633c9126
JL
150032011-03-29 Jeff Law <law@redhat.com>
15004
15005 PR bootstrap/48327
15006 * tree-ssa-threadupdate.c (struct redirection_data): Remove
15007 do_not_duplicate field.
15008 (lookup_redirection_data): Corresponding changes.
15009 (create_duplicates): Always create a template block.
15010 (redirect_edges): Remove code which reused the original block
15011 when it was going to become unreachable code.
15012 (thread_block): Don't set do_not_duplicate field.
15013
eb50f63a
JM
150142011-03-29 Joseph Myers <joseph@codesourcery.com>
15015
15016 * lto-opts.c (register_user_option_p, lto_register_user_option):
15017 Make type argument unsigned.
15018 * lto-streamer.h (lto_register_user_option): Make type argument
15019 unsigned.
15020 * opth-gen.awk: Make CL_* macros unsigned.
15021 * opts-common.c (find_opt): Make lang_mask argument unsigned.
15022 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
15023 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
15024 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
15025 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
15026 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
15027 (find_opt): Make lang_mask argument unsigned.
15028
76763a6d
VM
150292011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15030
15031 PR rtl-optimization/48331
15032 PR rtl-optimization/48334
15033 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
15034 for any used algorithm.
15035
5c82436e
VM
150362011-03-29 Vladimir Makarov <vmakarov@redhat.com>
15037
15038 * ira-conflicts.c (build_object_conflicts): Add unused attribute
15039 to parent_max.
15040
7a81008b
UB
150412011-03-29 Uros Bizjak <ubizjak@gmail.com>
15042
15043 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
15044 (alpha_option_override): Don't set alpha_sr_alias_set.
15045 (emit_frame_store_1): Use gen_frame_mem rather than calling
15046 set_mem_alias_set.
15047 (alpha_expand_epilogue): Ditto.
15048
86c8d1f6
IR
150492011-03-29 Ira Rosen <ira.rosen@linaro.org>
15050
15051 PR tree-optimization/48290
15052 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
15053 vectorization, check that relevant phis in the basic block after
15054 the inner loop are really inner loop's exit phis.
15055
0d12220f
RS
150562011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
15057
e8cf17e7 15058 PR debug/48190
0d12220f
RS
15059 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
15060 (cached_dw_loc_list_def): New structure.
15061 (cached_dw_loc_list): New typedef.
15062 (cached_dw_loc_list_table): New variable.
15063 (cached_dw_loc_list_table_hash): New function.
15064 (cached_dw_loc_list_table_eq): Likewise.
15065 (add_location_or_const_value_attribute): Take a bool cache_p.
15066 Cache the list when the parameter is true.
15067 (gen_formal_parameter_die): Update caller.
15068 (gen_variable_die): Likewise.
15069 (dwarf2out_finish): Likewise.
15070 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
15071 while generating debug info for the decl.
15072 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
15073 (dwarf2out_init): Initialize cached_dw_loc_list_table.
15074 (resolve_addr): Cache the result of resolving a chain of
15075 location lists.
15076
1756cb66
VM
150772011-03-28 Vladimir Makarov <vmakarov@redhat.com>
15078
15079 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
15080 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 15081
1756cb66
VM
15082 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
15083 after regstat_init_n_sets_and_refs.
15084
15085 * ira.c: Add more comments at the top.
15086 (setup_stack_reg_pressure_class, setup_pressure_classes):
15087 Add comments how we compute the register pressure classes.
15088 (setup_allocno_and_important_classes): Add more comments.
15089 (setup_class_translate_array, reorder_important_classes)
15090 (setup_reg_class_relations): Add comments.
15091
15092 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
15093 start of the file.
15094
15095 * ira-color.c: Add 2011 to the Copyright line.
15096 (assign_hard_reg): Add more comments.
15097 (improve_allocation): Ditto.
15098
15099 * ira-costs.c: Add 2011 to the Copyright line.
15100 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
15101 comments.
15102 (setup_regno_cost_classes_by_mode): Ditto.
15103
15104 Initial patches from ira-improv branch:
15105
15106 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15107
f60c2554 15108 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
15109 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
15110 (ira_create_allocno): Remove initialization of
15111 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
15112 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
15113 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15114 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
15115 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
15116 Initialize ALLOCNO_ADD_DATA.
15117 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
15118 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
15119 ALLOCNO_REG.
15120 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
15121 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
15122
15123 * ira.c (ira_reallocate): Remove.
15124 (setup_pressure_classes): Call
15125 ira_init_register_move_cost_if_necessary. Use
15126 ira_register_move_cost instead of ira_get_register_move_cost.
15127 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
15128 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
15129
15130 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
15131 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15132 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
15133 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
15134 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
15135 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
15136 Fix formatting.
7a81008b 15137 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
15138 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15139 (struct allocno_color_data): New.
15140 (allocno_color_data_t): New typedef.
15141 (allocno_color_data): New definition.
15142 (ALLOCNO_COLOR_DATA): New macro.
15143 (struct object_color_data): New.
15144 (object_color_data_t): New typedef.
15145 (object_color_data): New definition.
15146 (OBJECT_COLOR_DATA): New macro.
15147 (update_copy_costs, calculate_allocno_spill_cost): Call
15148 ira_init_register_move_cost_if_necessary. Use
15149 ira_register_move_cost instead of ira_get_register_move_cost.
15150 (move_spill_restore, update_curr_costs): Ditto.
15151 (allocno_spill_priority): Make it inline.
7a81008b 15152 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
15153 (struct coalesce_data, coalesce_data_t): New.
15154 (allocno_coalesce_data): New definition.
15155 (ALLOCNO_COALESCE_DATA): New macro.
15156 (merge_allocnos, coalesced_allocno_conflict_p): Use
15157 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
15158 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
15159 (coalesce_allocnos): Ditto.
15160 (setup_coalesced_allocno_costs_and_nums): Ditto.
15161 (collect_spilled_coalesced_allocnos): Ditto.
15162 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
15163 (setup_slot_coalesced_allocno_live_ranges): Ditto.
15164 (coalesce_spill_slots): Ditto.
15165 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
15166 free allocno_coalesce_data.
15167
15168 * ira-conflicts.c: Fix formatting.
15169 (process_regs_for_copy): Call
15170 ira_init_register_move_cost_if_necessary. Use
15171 ira_register_move_cost instead of ira_get_register_move_cost.
15172 (build_object_conflicts): Optimize.
15173
15174 * ira-costs.c (record_reg_classes): Optimize. Call
15175 ira_init_register_move_cost_if_necessary. Use
15176 ira_register_move_cost, ira_may_move_in_cost, and
15177 ira_may_move_out_cost instead of ira_get_register_move_cost and
15178 ira_get_may_move_cost.
15179 (record_address_regs): Ditto.
15180 (scan_one_insn): Optimize.
15181 (find_costs_and_classes): Optimize.
15182 (process_bb_node_for_hard_reg_moves): Call
15183 ira_init_register_move_cost_if_necessary. Use
15184 ira_register_move_cost instead of ira_get_register_move_cost.
15185
15186 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15187 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15188 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15189 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15190 definitions.
15191 (ira_initiate_emit_data, ira_finish_emit_data)
15192 (create_new_allocno): New functions.
7a81008b 15193 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
15194 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15195 Use ira_register_move_cost instead of ira_get_register_move_cost.
15196
15197 * ira-int.h: Fix some comments.
7a81008b
UB
15198 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15199 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
15200 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15201 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
15202 add_data.
15203 (struct ira_allocno): Make mode and aclass a bitfield. Move other
15204 bitfield after mode. Make hard_regno a short int. Make
15205 hard_regno short. Remove first_coalesced_allocno and
15206 next_coalesced_allocno. Move mem_optimized_dest_p,
15207 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15208 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
15209 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15210 temp, colorable_p. Add new member add_data.
15211 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15212 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15213 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15214 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15215 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15216 (ALLOCNO_ADD_DATA): New macro.
15217 (ira_emit_data_t): New typedef.
15218 (struct ira_emit_data): New. Move mem_optimized_dest_p,
15219 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15220 from struct ira_allocno.
15221 (ALLOCNO_EMIT_DATA): New macro.
15222 (ira_allocno_emit_data, allocno_emit_reg): New.
15223 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 15224 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
15225 (OBJECT_ADD_DATA): New macro.
15226 (ira_reallocate): Remove.
15227 (ira_initiate_emit_data, ira_finish_emit_data): New.
15228 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15229 (ira_init_register_move_cost_if_necessary): New.
15230 (ira_object_conflict_iter_next): Merge into
15231 ira_object_conflict_iter_cond.
7a81008b 15232 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 15233
f60c2554 15234 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
15235 ira_init_register_move_cost_if_necessary. Use
15236 ira_register_move_cost instead of ira_get_register_move_cost.
15237
15238 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15239
15240 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15241
15242 * ira-costs.c: Fix formatting.
15243 (cost_classes, cost_classes_num): Remove.
15244 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15245 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15246 (cost_classes_del, cost_classes_htab): New.
15247 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15248 (initiate_regno_cost_classes, setup_cost_classes): New.
15249 (setup_regno_cost_classes_by_aclass): New.
7a81008b 15250 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
15251 (record_reg_classes): Use regno_cost_classes instead of
15252 cost_classes. Move checking opposite operand up.
15253 (record_address_regs): Use regno_cost_classes
15254 instead of cost_classes.
15255 (scan_one_insn): Ditto. Use always general register.
15256 (print_allocno_costs): Use regno_cost_classes instead of
15257 cost_classes.
15258 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
15259 (find_costs_and_classes): Set up cost classes for each registers.
15260 Use also their mode for this. Use regno_cost_classes instead of
15261 cost_classes.
15262 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15263 cost_classes.
15264 (free_ira_costs, ira_init_costs): Don't use cost_classes.
15265 (ira_costs, ira_set_pseudo_classes): Call
15266 initiate_regno_cost_classes and finish_regno_cost_classes.
15267
15268 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
15269
15270 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15271
15272 * target.def (ira_cover_classes): Remove.
15273
7a81008b 15274 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
15275
15276 * doc/tm.texi.in: Ditto.
15277
15278 * ira-conflicts.c: Remove mentioning cover classes from the file.
15279 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 15280 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
15281
15282 * targhooks.c (default_ira_cover_classes): Remove.
15283
15284 * targhooks.h (default_ira_cover_classes): Ditto.
15285
15286 * haifa-sched.c: Remove mentioning cover classes from the file.
15287 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15288 ira_pressure_classes and ira_pressure_classes_num instead of
15289 ira_reg_class_cover_size and ira_reg_class_cover. Use
15290 sched_regno_pressure_class instead of sched_regno_cover_class.
15291 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15292 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15293
15294 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
15295 classes from the file.
15296 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15297 (struct object_hard_regs, struct object_hard_regs_node): New.
15298 (struct ira_object): New members profitable_hard_regs,
15299 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15300 (struct ira_allocno): Rename cover_class to aclass. Rename
15301 cover_class_cost and updated_cover_class_cost to class_cost and
15302 updated_class_cost. Remove splay_removed_p and
15303 left_conflict_size. Add new members colorable_p.
15304 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15305 (ALLOCNO_COLORABLE_P): New macro.
15306 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15307 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15308 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15309 (OBJECT_...): Rename parameter C to O.
15310 (OBJECT_PROFITABLE_HARD_REGS): New macro.
15311 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15312 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15313 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15314 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15315 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15316 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15317 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15318 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15319 x_ira_reg_class_subunion.
15320 (ira_max_memory_move_cost, ira_max_register_move_cost)
15321 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15322 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15323 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 15324 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
15325 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15326 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15327 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15328 (ira_tune_allocno_costs_and_cover_classes): Rename to
15329 ira_tune_allocno_costs.
15330 (ira_debug_hard_regs_forest): New.
15331 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15332 (ira_object_conflict_iter_next): Fix comments.
7a81008b 15333 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
15334 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15335 cover_class to aclass.
15336 (ira_allocate_and_accumulate_costs): Ditto.
15337 (ira_allocate_and_set_or_copy_costs): Ditto.
15338
15339 * opts.c (decode_options): Remove ira_cover_class check.
15340
15341 * ira-color.c: Remove mentioning cover classes from the file. Use
15342 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15343 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15344 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15345 (splay-tree.h): Remove include.
15346 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15347 before copy_freq_compare_func.
15348 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15349 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15350 New definitions.
15351 (hard_regs_roots, hard_regs_node_vec): Ditto.
15352 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15353 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15354 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15355 (create_new_object_hard_regs_node): Ditto.
15356 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 15357 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
15358 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15359 Ditto.
15360 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15361 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15362 (remove_unused_object_hard_regs_nodes): Ditto.
15363 (enumerate_object_hard_regs_nodes): Ditto.
15364 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15365 (object_hard_regs_subnode_t): Ditto.
15366 (struct object_hard_regs_subnode): Ditto.
15367 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15368 (setup_object_hard_regs_subnode_index): Ditto.
15369 (get_object_hard_regs_subnodes_num): Ditto.
15370 (form_object_hard_regs_nodes_forest): Ditto.
15371 (finish_object_hard_regs_nodes_tree): Ditto.
15372 (finish_object_hard_regs_nodes_forest): Ditto.
15373 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 15374 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
15375 (pseudos_have_intersected_live_ranges_p): Rename to
15376 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15377 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15378 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15379 (update_copy_costs): Remove assert. Skip cost update if the hard
15380 reg does not belong the class.
15381 (assign_hard_reg): Process only profitable hard regs.
15382 (uncolorable_allocnos_num): Make it scalar.
15383 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15384 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15385 and ira_reg_class_max_nregs.
15386 (bucket_allocno_compare_func): Check frequency first.
15387 (sort_bucket): Add compare function as a parameter.
15388 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15389 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15390 (push_allocno_to_stack): Rewrite for checking new allocno
15391 colorability.
7a81008b 15392 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
15393 (push_only_colorable): Pass new parameter to sort_bucket.
15394 (push_allocno_to_spill): Remove.
15395 (allocno_spill_priority_compare): Make it inline and rewrite.
15396 (splay_tree_allocate, splay_tree_free): Remove.
15397 (allocno_spill_sort_compare): New function.
15398 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15399 build and use splay tree. Choose first allocno in uncolorable
15400 allocno bucket to spill. Remove setting spill cost.
15401 (all_conflicting_hard_regs): Remove.
15402 (setup_allocno_available_regs_num): Check only profitable hard
15403 regs. Print info about hard regs nodes.
15404 (setup_allocno_left_conflicts_size): Remove.
15405 (put_allocno_into_bucket): Don't call
7a81008b 15406 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
15407 (improve_allocation): New.
15408 (color_allocnos): Call setup_profitable_hard_regs,
15409 form_object_hard_regs_nodes_forest, improve_allocation,
15410 finish_object_hard_regs_nodes_forest. Setup spill cost.
15411 (print_loop_title): Use pressure classes.
15412 (color_allocnso): Ditto.
15413 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15414 and allocnos_for_spilling.
15415 (ira_sort_regnos_for_alter_reg): Don't setup members
15416 {first,next}_coalesced_allocno.
15417 (color): Remove allocating and freeing removed_splay_allocno_vec.
15418 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15419 prohibited_class_mode_regs.
15420
15421 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15422 formatting.
15423 (update_allocno_pressure_excess_length): Use pressure classes.
15424 (inc_register_pressure, dec_register_pressure): Check for pressure
15425 class.
15426 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15427 pressure class. Use ira_reg_class_nregs instead of
15428 ira_reg_class_max_nregs.
15429 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15430 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15431 (single_reg_class): Use ira_reg_class_nregs instead of
15432 ira_reg_class_max_nregs.
15433 (process_bb_node_lives): Use pressure classes.
15434
15435 * ira-emit.c: Remove mentioning cover classes from the file. Use
15436 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15437 (change_loop): Use pressure classes.
15438 (modify_move_list): Call ira_set_allocno_class instead of
15439 ira_set_allocno_cover_class.
15440
15441 * ira-build.c: Remove mentioning cover classes from the file. Use
15442 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15443 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15444 ALLOCNO_UPDATED_CLASS_COST instead of
15445 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15446 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15447 (ira_create_allocno): Remove initialization of
15448 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15449 ALLOCNO_COLORABLE_P.
15450 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15451 Update conflict regs for the objects.
15452 (create_cap_allocno): Remove assert. Don't propagate
15453 ALLOCNO_AVAILABLE_REGS_NUM.
15454 (ira_free_allocno_costs): New function.
15455 (finish_allocno): Change a part of code into call of
15456 ira_free_allocno_costs.
15457 (low_pressure_loop_node_p): Use pressure classes.
15458 (object_range_compare_func): Don't compare classes.
15459 (setup_min_max_conflict_allocno_ids): Ditto.
15460
15461 * loop-invariant.c: Remove mentioning cover classes from the file.
15462 Use ira_pressure_classes and ira_pressure_classes_num instead of
15463 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
15464 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15465 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15466 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
15467 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15468 STACK_REG_COVER_CLASS.
15469 (get_regno_cover_class): Rename to get_regno_pressure_class.
15470 (move_loop_invariants): Initialize and finalize regstat.
15471
15472 * ira.c: Remove mentioning cover classes from the file. Add
15473 comments about coloring without cover classes. Use ALLOCNO_CLASS
15474 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15475 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15476 setup_class_subset_and_memory_move_costs.
15477 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15478 (setup_cover_and_important_classes): Rename to
15479 setup_allocno_and_important_classes.
15480 (setup_class_translate_array): New.
15481 (setup_class_translate): Call it for allocno and pressure classes.
15482 (cover_class_order): Rename to allocno_class_order.
15483 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15484 of ira_class_translate.
15485 (reorder_important_classes): Set up ira_important_class_nums.
15486 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15487 (print_class_cover): Rename to print_classes. Add parameter.
15488 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15489 Print pressure classes too.
15490 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15491 setup_reg_subclasses.
7a81008b 15492 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
15493 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15494 (setup_prohibited_class_mode_regs): Use
7a81008b 15495 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
15496 (clarify_prohibited_class_mode_regs): New function.
15497 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15498 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15499 (ira_init_once): Initialize them.
15500 (free_register_move_costs): Process them.
15501 (ira_init): Move calls of find_reg_classes and
15502 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15503 Call clarify_prohibited_class_mode_regs.
15504 (ira_no_alloc_reg): Remove.
15505 (too_high_register_pressure_p): Use pressure classes.
15506
15507 * sched-deps.c: Remove mentioning cover classes from the file.
15508 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15509 ira_pressure_classes and ira_pressure_classes_num instead of
15510 ira_reg_class_cover_size and ira_reg_class_cover.
15511 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15512 sched_regno_pressure_class instead of sched_regno_cover_class.
15513 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15514 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15515
15516 * ira.h: Add 2010 to Copyright.
15517 (ira_no_alloc_reg): Remove external.
15518 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15519 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15520 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15521 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15522 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15523 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15524 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15525 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15526 x_ira_no_alloc_regs.
7a81008b 15527 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
15528 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15529 ira_allocno_classes_num and ira_allocno_classes.
15530 (ira_class_translate): Rename to ira_allocno_class_translate.
15531 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15532 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15533 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15534 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15535 (ira_no_alloc_regs): New.
15536
15537 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15538 classes from the file. Use ALLOCNO_CLASS instead of
15539 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15540 ALLOCNO_COVER_CLASS_COST.
15541 (regno_cover_class): Rename to regno_aclass.
15542 (record_reg_classes): Use ira_reg_class_subunion instead of
15543 ira_reg_class_union.
15544 (record_address_regs): Check overflow.
15545 (scan_one_insn): Ditto.
7a81008b 15546 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
15547 (print_pseudo_costs): Use REG_N_REFS.
15548 (find_costs_and_classes): Use classes intersected with them on the
15549 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15550 ira_reg_class_union. Use ira_allocno_class_translate and
15551 regno_aclass instead of ira_class_translate and regno_cover_class.
15552 Modify code for finding regno_aclass. Setup preferred classes for
15553 the next pass.
15554 (setup_allocno_cover_class_and_costs): Rename to
15555 setup_allocno_class_and_costs. Use regno_aclass instead of
15556 regno_cover_class. Use ira_set_allocno_class instead of
15557 ira_set_allocno_cover_class.
15558 (init_costs, finish_costs): Use regno_aclass instead of
15559 regno_cover_class.
15560 (ira_costs): Use setup_allocno_class_and_costs instead of
15561 setup_allocno_cover_class_and_costs.
15562 (ira_tune_allocno_costs_and_cover_classes): Rename to
15563 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15564 by processing objects. Use ira_reg_class_max_nregs instead of
15565 ira_reg_class_nregs.
15566
15567 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15568
15569 * sched-int.h: Remove mentioning cover classes from the file.
15570 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15571
15572 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15573 classes from the file.
15574 (struct reg_pref): Rename coverclass into allocnoclass.
15575 (reg_cover_class): Rename to reg_allocno_class.
15576
7a81008b 15577 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
15578
15579 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15580
15581 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15582
15583 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15584
15585 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15586
15587 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15588
15589 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15590
15591 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15592
15593 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15594
15595 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15596
15597 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15598 (i386_ira_cover_classes): Ditto.
15599
15600 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15601
15602 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15603
15604 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15605
15606 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15607
15608 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15609
15610 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15611
15612 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15613 (mips_ira_cover_classes): Ditto.
15614
15615 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15616
15617 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15618
15619 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15620
15621 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15622
15623 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15624
15625 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15626 (IRA_COVER_CLASSES_VSX): Ditto.
15627
15628 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15629 (rs6000_ira_cover_classes): Ditto.
15630
15631 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15632
15633 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15634
15635 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15636
15637 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15638
15639 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15640
15641 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15642
15643 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15644
15645 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15646
15647 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15648
15649 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15650
2b80199f
JJ
156512011-03-29 Jakub Jelinek <jakub@redhat.com>
15652
71dae1fe
JJ
15653 PR debug/48253
15654 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15655 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15656 dw_fde_unlikely_section_end_label, cold_in_std_section,
15657 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15658 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15659 fields.
15660 (output_fde): Use dw_fde_second_{begin,end} if second is
15661 true, otherwise dw_fde_{begin,end}.
15662 (output_call_frame_info): Test dw_fde_second_begin != NULL
15663 instead of dw_fde_switched_sections.
15664 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15665 fields, initialize new fields. Initialize in_std_section
15666 unconditionally from the first partition.
15667 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15668 dw_fde_second_begin is non-NULL.
15669 (dwarf2out_switch_text_section): Stop initializing removed
15670 dw_fde_struct fields, initialize new fields, initialize
15671 also dw_fde_end here. Set dw_fde_switch_cfi even when
15672 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15673 (struct var_loc_list_def): Add last_before_switch field.
15674 (arange_table, arange_table_allocated, arange_table_in_use,
15675 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15676 (size_of_aranges): Count !in_std_section and !second_in_std_section
15677 hunks in fdes, instead of looking at arange_table_in_use.
15678 (output_aranges): Add aranges_length argument, don't call
15679 size_of_aranges here. Instead of using aranges_table*
15680 emit ranges for fdes when !in_std_section resp.
15681 !second_in_std_section.
15682 (dw_loc_list): Break ranges crossing section switch.
15683 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 15684 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
15685 (gen_subprogram_die): Don't call add_arange. Use
15686 dw_fde_{begin,end} for first partition and if switched
15687 section dw_fde_second_{begin,end} for the second.
15688 (var_location_switch_text_section_1,
15689 var_location_switch_text_section): New functions.
15690 (dwarf2out_begin_function): Initialize cold_text_section even
15691 when function_section () isn't text_section.
15692 (prune_unused_types): Don't walk arange_table.
15693 (dwarf2out_finish): Don't needlessly test
15694 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15695 If info_section_emitted, call size_of_aranges and if it indicates
15696 non-empty .debug_aranges, call output_aranges with the computed
15697 size. Stop using removed dw_fde_struct fields, use
15698 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15699 for second.
15700
2b80199f
JJ
15701 PR debug/48203
15702 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15703 create ENTRY_VALUE if incoming or address of incoming's MEM
15704 is a hard REG.
15705 * dwarf2out.c (mem_loc_descriptor): Don't emit
15706 DW_OP_GNU_entry_value of DW_OP_fbreg.
15707 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15708 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15709 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15710 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15711 ENTRY_VALUE_EXPs.
15712 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15713 is a REG_P or MEM_P with REG_P address, compute hash directly
15714 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15715 (preserve_only_constants): Don't clear VALUES forwaring
15716 ENTRY_VALUE to some other VALUE.
15717
8a445129
RS
157182011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15719
15720 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15721 instead of GEN_INT.
15722
c82fee88
EB
157232011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15724
15725 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15726 block before expanding the statement.
15727 (expand_gimple_stmt_1): Likewise. Set them here...
15728 (expand_gimple_stmt): ...and not here. Tidy.
15729 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15730 unknown.
15731
e45425ec
SB
157322011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15733
15734 * Makefile.in: New rule for cprop.o.
15735 * gcse.c: Move constant/copy propagation to cprop.c.
15736 (compute_local_properties): Only handle expression tables.
15737 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15738 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15739 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15740 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 15741 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
15742 compute_cprop_data, find_used_regs, try_replace_reg,
15743 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15744 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15745 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15746 find_bypass_set, reg_killed_on_edge, bypass_block,
15747 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15748 execute_rtl_cprop, pass_rtl_cprop): Move to...
15749 * cprop.c: ...here. New file, constant/copy propagation for RTL
15750 moved from gcse.c to here with minor cleanups in duplicated code.
15751
c09d5426
L
157522011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15753
15754 * config/i386/i386.c (flag_opts): Fix a typo in
15755 -mavx256-split-unaligned-store.
15756
9eaa7740
AS
157572011-03-28 Anatoly Sokolov <aesok@post.ru>
15758
15759 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15760 LIBCALL_VALUE): Remove macros.
15761 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15762 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15763 (h8300_function_value, h8300_libcall_value,
15764 h8300_function_value_regno_p): New functions.
15765
dcec2be2
AS
157662011-03-28 Anatoly Sokolov <aesok@post.ru>
15767
15768 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15769
520af9ec
JL
157702011-03-28 Jeff Law <law@redhat.com>
15771
15772 * tree-ssa-threadupdate.c (redirect_edges): Call
15773 create_edge_and_update_destination_phis as needed.
15774 (create_edge_and_update_destination_phis): Accept new BB argument.
15775 All callers updated.
15776 (thread_block): Do not update the profile when threading around
15777 intermediate blocks.
15778 (thread_single_edge): Likewise.
15779 (determine_bb_domination_status): If BB is not a successor of the
15780 loop header, return NONDOMINATING.
15781 (register_jump_thread): Note when we register a jump thread around
15782 an intermediate block.
15783 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15784 (thread_across_edge): Use it.
15785
7450b54f
TG
157862011-03-28 Tristan Gingold <gingold@adacore.com>
15787
15788 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15789 when for_return is 2.
15790
649beb33
JL
157912011-03-28 Jeff Law <law@redhat.com>
15792
15793 * var-tracking.c (canonicalize_values_mark): Delete unused
15794 lhs assignment.
15795 (canonicalize_values_star, set_variable_part): Likewise.
15796 (clobber_variable_part, delete_variable_part): Likewise.
15797
d5b8da97
SB
157982011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15799
15800 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15801
322dd859
MJ
158022011-03-28 Martin Jambor <mjambor@suse.cz>
15803
15804 * tree-inline.c (expand_call_inline): Do not check that destination
15805 node is analyzed.
15806 (optimize_inline_calls): Assert that destination node is analyzed.
15807 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15808 not call tree_lowering_passes.
15809 * cgraph.h (cgraph_analyze_function): Declare.
15810 * cgraphunit.c (cgraph_analyze_function): Make public.
15811
aa53e58b
JM
158122011-03-28 Joseph Myers <joseph@codesourcery.com>
15813
15814 * config/sparc/sparc-opts.h: New.
15815 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15816 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15817 (sparc_option_override): Store processor_type enumeration rather
15818 than string in cpu_default. Remove name and enumeration from
15819 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15820 without using sparc_select. Use target_flags_explicit instead of
15821 fpu_option_set.
15822 * config/sparc/sparc.h (enum processor_type): Move to
15823 sparc-opts.h.
15824 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15825 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15826 HeaderInclude entry.
15827 (mcpu=, mtune=): Use Var and Enum.
15828 (sparc_processor_type): New Enum and EnumValue entries.
15829
dd350eba
RO
158302011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15831 Iain Sandoe <iains@gcc.gnu.org>
15832
15833 PR target/48245
15834 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15835
1b29f05e
EB
158362011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15837
15838 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15839 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15840 Insert new statements at it in lieu of STMT.
15841 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15842 * tree-vect-stmts.c (vectorizable_store): Likewise.
15843 (vectorizable_load): Likewise.
15844
506e6808
UB
158452011-03-28 Uros Bizjak <ubizjak@gmail.com>
15846
15847 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15848 (divtf3): Ditto.
15849 (multf3): Ditto.
15850 (subtf3): Ditto.
15851
2e939ee9
L
158522011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15853
15854 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15855 unaligned 256bit load/store.
15856 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15857 (*avx_movdqu<avxmodesuffix>): Likewise.
15858
5e85ab88
JDA
158592011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15860
15861 PR target/48288
15862 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15863 * config/pa/pa.md (iordi3): Use new predicate in expander.
15864 (iorsi3): Likewise.
15865
47be3d6d
AS
158662011-03-27 Anatoly Sokolov <aesok@post.ru>
15867
506e6808 15868 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 15869 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
15870 * config/mips/mips-protos.h (mips_function_value): Remove.
15871 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
15872 (mips_function_value_1): ... this. Make static. Handle receiving
15873 the function type in 'fn_decl_or_type' argument.
15874 (mips_function_value, mips_libcall_value,
15875 mips_function_value_regno_p): New function.
15876 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15877 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15878
d253656a
L
158792011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15880
15881 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15882 and -mavx256-split-unaligned-store.
15883 (ix86_option_override_internal): Split 32-byte AVX unaligned
15884 load/store by default.
15885 (ix86_avx256_split_vector_move_misalign): New.
15886 (ix86_expand_vector_move_misalign): Use it.
15887
15888 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15889 -mavx256-split-unaligned-store.
15890
15891 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15892 256bit load/store. Generate unaligned store on misaligned memory
15893 operand.
15894 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15895 256bit load/store.
15896 (*avx_movdqu<avxmodesuffix>): Likewise.
15897
15898 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15899 -mavx256-split-unaligned-store.
15900
1ea9206a
RS
159012011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15902
15903 PR target/38598
15904 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15905 Update commentary.
15906
b99ce2a8
RS
159072011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15908
15909 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15910 opno arguments with an expand_operand. Use create_input_operand.
15911 (mips_prepare_builtin_target): Delete.
15912 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15913 functions.
15914 (mips_expand_builtin_direct): Use create_output_operand and
15915 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15916 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15917 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15918
69d52339
IR
159192011-03-27 Ira Rosen <ira.rosen@linaro.org>
15920
15921 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15922 function.
15923 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15924
ba5e9aca
EB
159252011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15926
15927 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15928 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15929 basic blocks and call commit_edge_insertions directly.
15930 (fixup_abnormal_edges): Move from here to...
15931 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15932 on the edges and return whether some have actually been inserted.
15933 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15934 compensation code.
15935
5d369d58
AB
159362011-03-26 Andrey Belevantsev <abel@ispras.ru>
15937
15938 PR rtl-optimization/48144
15939 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15940 (merge_expr_data): ... here.
15941 (av_set_intersect): Rename to av_set_code_motion_filter.
15942 Update all callers. Call merge_history_vect when an expression
15943 is found in both sets.
15944 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15945
f082c000
AM
159462011-03-26 Alan Modra <amodra@gmail.com>
15947
15948 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15949 cmodel medium addresses.
15950 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15951 64-bit gpr loads and stores.
15952 (rs6000_secondary_reload_ppc64): New function.
15953 * config/rs6000/rs6000-protos.h: Declare it.
15954 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15955
8ac5e12e
AM
159562011-03-26 Alan Modra <amodra@gmail.com>
15957
15958 PR target/47487
15959 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15960 GNU Go in traceback table.
15961
c2654ded
RH
159622011-03-25 Richard Henderson <rth@redhat.com>
15963
15964 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15965 if there are exactly 6 operands.
15966 (set_storage_via_setmem): Similarly.
15967
ba78087b
KT
159682011-03-25 Kai Tietz <ktietz@redhat.com>
15969
15970 * collect2.c (write_c_file_stat): Handle backslash
15971 as right-hand directory separator.
15972 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15973 checking just for slash.
15974 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15975 instead of checking for trailing slash.
15976 * gcc.c (record_temp_file): Use filename_cmp instead
15977 of strcmp.
15978 (do_spec_1): Likewise.
15979 (replace_outfile_spec_function): Likewise.
15980 (is_directory): Use filename_ncmp instead of strncmp.
15981 (print_multilib_info): Likewise.
15982 * gcov.c (find_source): Use filename_cmp instead
15983 instead of strcmp.
15984 (make_gcov_file_name): Fix order of slash/backslash
15985 checks.
15986 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15987 (add_standard_paths): Likewise.
15988 * mips-tfile.c (saber_stop): Handle backslash.
15989 * prefix.c (update_path): Use filename_ncmp instead of
15990 strncmp.
15991 * profile.c (output_location): Use filename_cmp instead
15992 of strcmp.
15993 * read-md.c (handle_toplevel_file): Handle backslash.
15994 * tlink.c (frob_extension): Likewise.
15995 * tree-cfg.c (same_line_p): Use filename_cmp instead of
15996 strcmp.
15997 * tree-dump.c (dequeue_and_dump): Handle backslash.
15998 * tree.c (get_file_function_name): Likewise.
15999 * gengtype.c (read_input_list): Likewise.
16000 (get_file_realbasename): Likewise.
16001 (get_output_file_with_visibility): Use filename_cmp
16002 instead of strcmp.
16003
75f6ec9a
RS
160042011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
16005
16006 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
16007 case to VFPv1.
16008
6c4e2997
NF
160092011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16010
16011 * fold-const.c (expr_location_or): New function.
16012 (fold_truth_not_expr): Call it.
16013
0edf1bb2
JL
160142011-03-25 Jeff Law <law@redhat.com>
16015
16016 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
16017 va_end.
16018 * c-family/c-common.c (def_fn_type): Likewise.
16019 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
16020 * emit-rtl.c (gen_rtvec): Likewise.
16021 * lto/lto-lang.c (def_fn_type): Likewise.
16022
fdc2de95
RG
160232011-03-25 Richard Guenther <rguenther@suse.de>
16024
16025 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
16026 also generate copies.
16027 (fini_copy_prop): Handle constant values properly.
16028
21385db0
JJ
160292011-03-25 Jakub Jelinek <jakub@redhat.com>
16030
16031 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
16032 mode size instead of bitsize with DWARF2_ADDR_SIZE.
16033 (hash_loc_operands, compare_loc_operands): Handle
16034 DW_OP_GNU_entry_value.
16035
6510e8bb
KT
160362011-03-25 Kai Tietz <ktietz@redhat.com>
16037
16038 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
16039 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
16040 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
16041 comment and use macro TARGET_64BIT_MS_ABI instead.
16042 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
16043 and change default behavior for 32-bit MS_ABI.
16044 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
16045 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
16046 32-bit, too.
16047 (ix86_cfun_abi): Likewise.
16048 (ix86_maybe_switch_abi): Adjust comment.
16049 (init_cumulative_args): Check for bit-ness in MS_ABI case.
16050 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
16051 instead of checking for SYSV_ABI.
16052 (ix86_nsaved_sseregs): Likewise.
16053 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
16054 to 16 bytes.
16055 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
16056 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
16057 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
16058 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
16059 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
16060
34019e28
RG
160612011-03-25 Richard Guenther <rguenther@suse.de>
16062
16063 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
16064 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16065 (verify_gimple): Remove.
16066 * tree-cfg.c (verify_gimple_call): Merge verification
16067 from verify_stmts.
16068 (verify_gimple_phi): Merge verification from verify_stmts.
16069 (verify_gimple_label): New function.
16070 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
16071 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16072 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
16073 (verify_stmts): Rename to verify_gimple_in_cfg.
16074 (verify_gimple_in_cfg): New function.
16075 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
16076 * tree-ssa.c (verify_ssa): Likewise.
16077 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
16078
605896f5
RG
160792011-03-25 Richard Guenther <rguenther@suse.de>
16080
16081 * passes.c (init_optimization_passes): Add FRE pass after
16082 early SRA.
16083
7baa7c13
BS
160842011-03-25 Bernd Schmidt <bernds@codesourcery.com>
16085 Andrew Stubbs <ams@codesourcery.com>
16086
16087 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
16088 for Cortex-A8.
16089 (arm_movdi_vfp_cortexa8): New pattern.
16090 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
16091 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
16092 instructions when tuning for Cortex-A8. Set attribute "arch".
16093 * config/arm/arm.md: Move include arm-tune.md up a bit.
16094 (define_attr "arch"): Add "onlya8" and "nota8" values.
16095 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
16096
45dbce1b
NF
160972011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16098
4ff08abf 16099 PR bootstrap/48282
45dbce1b
NF
16100 Revert:
16101 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16102
16103 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16104 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16105 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16106 * passes.c (init_optimization_passes): Move
16107 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16108
ac9a30ae
KT
161092011-03-25 Kai Tietz <ktietz@redhat.com>
16110
16111 * c-typeck.c (comptypes_internal): Replace target
16112 hook call of comp_type_attributes by version in tree.c file.
16113 * gimple.c (gimple_types_compatible_p_1): Likewise.
16114 * tree-ssa.c (useless_type_conversion_p): Likewise.
16115 * tree.c (build_type_attribute_qual_variant): Likewise.
16116 (attribute_value_equal): New static helper function.
16117 (comp_type_attributes): New function.
16118 (merge_attributes): Use attribute_value_equal for comparison.
16119 (attribute_list_contained): Likewise.
16120 * tree.h (comp_type_attributes): New prototype.
16121
afdac116
RG
161222011-03-25 Richard Guenther <rguenther@suse.de>
16123
16124 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
16125 of complex types at -O0.
16126 (verify_gimple_assign_binary): Likewise.
16127 (verify_gimple_assign_ternary): Likewise.
16128
ec6165f8
MW
161292011-03-24 Mark Wielaard <mjw@redhat.com>
16130
16131 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
16132 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
16133
2a5ac39a
MW
161342011-03-24 Mark Wielaard <mjw@redhat.com>
16135
16136 PR debug/48041
16137 * dwarf2out.c (output_abbrev_section): Only write table when
16138 abbrev_die_table_in_use > 1.
16139
e533b2a4
RH
161402011-02-24 Richard Henderson <rth@redhat.com>
16141
16142 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
16143 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
16144 (alpha_expand_unaligned_load_words): Use extql.
16145 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
16146 (emit_insxl): Handle all modes for consistency.
16147
0b2a7367
RH
161482011-02-24 Richard Henderson <rth@redhat.com>
16149
16150 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
16151 (alpha_expand_unaligned_load): Likewise.
16152 (alpha_expand_unaligned_store): Likewise.
16153 (alpha_expand_unaligned_load_words): Likewise.
16154 (alpha_expand_unaligned_store_words): Likewise.
16155 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
16156 (alpha_split_lock_test_and_set_12): Likewise.
16157 (print_operand, alpha_fold_builtin_extxx): Likewise.
16158 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
16159 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
16160 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
16161 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
16162 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
16163 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
16164 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
16165 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
16166 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
16167 (extwl, extll, extql): Similarly.
16168 (inswh, inslh, insqh): Similarly.
16169 (mskbl, mskwl, mskll, mskql): Similarly.
16170 (mskwh, msklh, mskqh): Similarly.
16171
315b2bef
RH
161722011-02-24 Richard Henderson <rth@redhat.com>
16173
16174 * config/alpha/alpha.md (attribute isa): Add er, ner.
16175 (attribute enabled): Handle them.
16176 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
16177
67102517
RH
161782011-02-24 Richard Henderson <rth@redhat.com>
16179
16180 * config/alpha/alpha.md (attribute isa): Add vms.
16181 (attribute enabled): Handle it.
16182 (*movsf): Merge *movsf_{nofix,fix,nofp}.
16183 (*movdf): Merge *movdf_{nofix,fix,nofp}.
16184 (*movtf): Rename from *movtf_internal for consistency.
16185 (*movsi): Merge with *movsi_nt_vms.
16186 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16187 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16188 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16189 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16190
6aba5cb4
RH
161912011-02-24 Richard Henderson <rth@redhat.com>
16192
16193 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16194 (extendqisi2, extendhisi2): Likewise.
16195 (extendqidi2): Simplify BWX/non-BWX expansions.
16196 (extendhidi2): Similarly.
16197
bdfb351b
RH
161982011-02-24 Richard Henderson <rth@redhat.com>
16199
16200 * config/alpha/alpha.md (attribute isa): New.
16201 (attribute enabled): New.
16202 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16203 (zero_extendqisi2, zero_extendqidi2): Similarly.
16204 (zero_extendhisi2, zero_extendhidi2): Similarly.
16205 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16206
6abe71eb
RH
162072011-02-24 Richard Henderson <rth@redhat.com>
16208
16209 * config/alpha/predicates.md (input_operand): Revert last change;
16210 update comment to mention 32-bit VMS rather than Windows.
16211
7114321e
NF
162122011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16213
16214 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16215 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16216 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16217 * passes.c (init_optimization_passes): Move
16218 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16219
c8679567
EB
162202011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16221
16222 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16223
27173058
UB
162242011-03-24 Uros Bizjak <ubizjak@gmail.com>
16225
16226 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16227 correctly.
16228
6f0c9f06
JJ
162292011-03-24 Jakub Jelinek <jakub@redhat.com>
16230
16231 PR debug/48204
16232 * simplify-rtx.c (simplify_const_unary_operation): Call
16233 real_convert when changing mode class with FLOAT_EXTEND.
16234
662666e5
NC
162352011-03-24 Nick Clifton <nickc@redhat.com>
16236
16237 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16238 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16239 * config/rx/rx.c (rx_option_override): Set align_jumps,
16240 align_loops and align_labels if not set by the user.
16241 (rx_align_for_label): New function.
16242 (rx_max_skip_for_label): New function.
16243 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16244 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16245 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16246 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16247 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16248
2b99b2b8
RS
162492011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16250
16251 PR rtl-optimization/48263
16252 * optabs.c (expand_binop_directly): Reinstate convert_modes code
16253 and original commutative_p handling. Use maybe_gen_insn.
16254
ccecd6ea
AK
162552011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16256
16257 * reload.c (find_reloads_subreg_address): Add address_reloaded
16258 parameter and return true there if the full address has been
16259 reloaded.
16260 (find_reloads_toplev): Pass address_reloaded flag.
16261 (find_reloads_address_1): Don't use address_reloaded parameter.
16262
67295642
JL
162632011-03-24 Jeff Law <law@redhat.com>
16264
16265 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16266 unused variable "ann".
16267 (remove_unused_locals): Likewise.
16268
16269 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16270 statement.
16271
16272 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16273 after it is freed.
16274
212aa74f
AK
162752011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16276
16277 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16278 for invalid symbolic addresses.
16279 (s390_secondary_reload): Don't use s390_check_symref_alignment for
16280 larl operands.
16281
fe784e0d
EB
162822011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16283
16284 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16285 the argument in calls to fold_truth_not_expr.
16286
63ee8641
NF
162872011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16288
16289 * tree.c (record_node_allocation_statistics): New function.
16290 (make_node_stat, copy_node_stat, build_string): Call it.
16291 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16292 (build1_stat, build_omp_clause): Likewise.
16293
61be2a1c
RS
162942011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16295
16296 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16297 last commit.
16298
a881aaa7
RG
162992011-03-24 Richard Guenther <rguenther@suse.de>
16300
16301 PR tree-optimization/48271
16302 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16303 blocks that still exist.
16304
dbaa912c
RG
163052011-03-24 Richard Guenther <rguenther@suse.de>
16306
16307 PR tree-optimization/48270
16308 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16309 not free datarefs before ddrs.
16310
1d60cc55
EB
163112011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16312
16313 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16314 from the address built for a reference with variable offset.
16315
c78dd519
UB
163162011-03-24 Uros Bizjak <ubizjak@gmail.com>
16317
16318 PR target/48237
16319 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16320 alternatives that can be handled with movq or movabsq insn.
16321 (*movdf_internal): Disable for !TARGET_64BIT.
16322 (*movdf_internal_nointeger): Ditto.
16323 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16324
b25b9e8f
NF
163252011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16326
16327 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16328 (FUNCTION_ARG_ADVANCE): Likewise.
16329 * tm.texi.in: Change references to them to hook references.
16330 * tm.texi: Regenerate.
c78dd519 16331 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
16332 (default_function_incoming_arg): Likewise.
16333 (default_function_arg_advance): Likewise.
c78dd519 16334 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
16335 (function_arg_advance): Likewise.
16336 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16337
190b2187
RG
163382011-03-24 Richard Guenther <rguenther@suse.de>
16339
16340 PR middle-end/48269
16341 * tree-object-size.c (addr_object_size): Do not double-account
16342 for MEM_REF offsets.
16343
a183b5c7
DN
163442011-03-24 Diego Novillo <dnovillo@google.com>
16345
16346 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 16347 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
16348 (lto_input_data_block): Move from lto-opts.c. Make extern.
16349 Update all users.
16350 (lto_input_string): Rename from input_string. Make extern.
16351 Update all users.
16352 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16353 output_string_with_length.
16354 Output 0 to indicate a non-NULL string. Update all callers to
16355 not emit 0.
16356 (lto_output_string): Rename from output_string. Make extern.
16357 Update all users.
16358 (lto_output_decl_state_streams): Make extern.
16359 (lto_output_decl_state_refs): Make extern.
16360 * lto-streamer.h (lto_input_string): Declare.
16361 (lto_input_data_block): Declare.
16362 (lto_output_string): Declare.
16363 (lto_output_string_with_length): Declare.
16364 (lto_output_decl_state_streams): Declare.
16365 (lto_output_decl_state_refs): Declare.
16366
cfef45c8
RG
163672011-03-24 Richard Guenther <rguenther@suse.de>
16368
16369 PR tree-optimization/46562
16370 * tree.c (build_invariant_address): New function.
16371 * tree.h (build_invariant_address): Declare.
16372 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16373 a renamed function moved ...
16374 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16375 Take valueization callback parameter.
16376 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16377 * gimple-fold.h: New file.
16378 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16379 (ccp_fold, fold_const_aggregate_ref,
16380 fold_ctor_reference, fold_nonarray_ctor_reference,
16381 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16382 get_base_constructor): Move ...
16383 * gimple-fold.c: ... here.
16384 (gimple_fold_stmt_to_constant_1): New function
16385 split out from ccp_fold. Take a valueization callback parameter.
16386 Valueize all operands.
16387 (gimple_fold_stmt_to_constant): New wrapper function.
16388 (fold_const_aggregate_ref_1): New function split out from
16389 fold_const_aggregate_ref. Take a valueization callback parameter.
16390 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16391 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16392 invariant POINTER_PLUS_EXPRs to invariant form.
16393 (vn_valueize): New function.
16394 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16395 * tree-vrp.c (vrp_valueize): New function.
16396 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16397 to fold statements to constants.
16398 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16399 function declarations.
16400 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16401 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16402
5e0a7e40
RS
164032011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16404
16405 * config/h8300/predicates.md (jump_address_operand): Fix register
16406 mode check.
16407
bfe068c3
IR
164082011-03-24 Ira Rosen <ira.rosen@linaro.org>
16409
16410 * doc/invoke.texi (max-stores-to-sink): Document.
16411 * params.h (MAX_STORES_TO_SINK): Define.
16412 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16413 if either vectorization or if-conversion is disabled.
16414 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16415 tree-vect-data-refs.c vect_equal_offsets.
16416 (dr_equal_offsets_p): New function.
16417 (find_data_references_in_bb): Remove static.
16418 * tree-data-ref.h (find_data_references_in_bb): Declare.
16419 (dr_equal_offsets_p): Likewise.
16420 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16421 (vect_drs_dependent_in_basic_block): Update calls to
16422 vect_equal_offsets.
16423 (vect_check_interleaving): Likewise.
16424 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16425 (cond_if_else_store_replacement): Rename to...
16426 (cond_if_else_store_replacement_1): ... this. Change arguments and
16427 documentation.
16428 (cond_if_else_store_replacement): New function.
16429 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16430 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16431
4908b0bf
CLT
164322011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16433
16434 PR target/46934
16435 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16436 to subtract lower bound instead of GEN_INT().
16437
2be478a2
JW
164382011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16439
16440 PR other/48179
16441 PR other/48221
16442 PR other/48234
16443 * doc/extend.texi (Alignment): Move section to match order in TOC.
16444 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16445 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16446
0c617be4
JL
164472011-03-23 Jeff Law <law@redhat.com>
16448
16449 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16450 before removing the edge.
16451
16452 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16453 it may have been freed by redirect_branch_edge or
16454 redirect_edge_succ_nodup.
16455
58da96fe
RG
164562011-03-23 Richard Guenther <rguenther@suse.de>
16457
c78dd519 16458 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
16459 (check_va_list_escapes): Likewise.
16460 (check_all_va_list_escapes): Likewise.
16461
b8beb4d1
RG
164622011-03-23 Richard Guenther <rguenther@suse.de>
16463
16464 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16465 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16466 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16467 (alias.o): Likewise.
16468 (ipa-type-escape.o): Remove.
16469 (ipa-struct-reorg.o): Likewise.
16470 (GTFILES): Remove ipa-struct-reorg.c.
16471 * alias.c: Do not include ipa-type-escape.h.
16472 * tree-ssa-alias.c: Likewise.
16473 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16474 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16475 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16476 and ipa-type-escape passes.
16477 * tree-pass.h (pass_ipa_type_escape): Remove.
16478 (pass_ipa_struct_reorg): Likewise.
16479 * ipa-struct-reorg.h: Remove.
16480 * ipa-struct-reorg.c: Likewise.
16481 * ipa-type-escape.h: Likewise.
16482 * ipa-type-escape.c: Likewise.
16483 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16484 (--param struct-reorg-cold-struct-ratio): Likewise.
16485 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16486 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16487 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16488
f137aa63
AK
164892011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16490
16491 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16492 cpu attribute value.
16493 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16494 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16495 * config/s390/s390.c (processor_flags_table): New constant array.
16496 (s390_handle_arch_option): Remove.
16497 (s390_handle_option): Remove s390_handle_arch_option invocations
16498 and OPT_mwarn_framesize_ handling.
16499 (s390_option_override): Remove s390_handle_arch_option invocation.
16500 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16501 warnings.
16502 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16503 * config/s390/s390.opt (s390_tune, s390_arch)
16504 (march=): Replace s390_arch_option enum and values with
16505 processor_type. Set variable name to s390_arch. Set
16506 initialization value.
16507 (mtune=): Replace s390_arch_option with processor_type. Set
16508 variable name to s390_tune. Set initialization value.
16509
bf90208f
JB
165102011-03-23 Julian Brown <julian@codesourcery.com>
16511
16512 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16513 accesses which are not naturally aligned.
16514
3460fdf3
RS
165152011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16516
16517 PR target/47553
16518 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16519
a5c7d693
RS
165202011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16521
16522 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16523 parameter from "int" to "enum insn_code".
16524 (expand_operand_type): New enum.
16525 (expand_operand): New structure.
16526 (create_expand_operand): New function.
16527 (create_fixed_operand, create_output_operand): Likewise
16528 (create_input_operand, create_convert_operand_to): Likewise.
16529 (create_convert_operand_from, create_address_operand): Likewise.
16530 (create_integer_operand): Likewise.
16531 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16532 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16533 (expand_insn, expand_jump_insn): Likewise.
16534 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16535 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16536 (expand_movstr, expand_builtin___clear_cache): Likewise.
16537 (expand_builtin_lock_release): Likewise.
16538 * explow.c (allocate_dynamic_stack_space): Likewise.
16539 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16540 and use the default handling in that case.
16541 * expmed.c (check_predicate_volatile_ok): Delete.
16542 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16543 (emit_cstore): Likewise.
16544 * expr.c (emit_block_move_via_movmem): Likewise.
16545 (set_storage_via_setmem, expand_assignment): Likewise.
16546 (emit_storent_insn, try_casesi): Likewise.
16547 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16548 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16549 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16550 (expand_twoval_unop, expand_twoval_binop): Likewise.
16551 (expand_unop_direct, emit_indirect_jump): Likewise.
16552 (emit_conditional_move, vector_compare_rtx): Likewise.
16553 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16554 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16555 (expand_sync_lock_test_and_set): Likewise.
16556 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16557 (emit_unop_insn): Likewise.
16558 (expand_copysign_absneg): Change icode to an insn_code.
16559 (create_convert_operand_from_type): New function.
16560 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16561 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16562 (expand_insn, expand_jump_insn): Likewise.
16563 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16564 than const_int_operand for operand 2.
16565
78fadbab
AK
165662011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16567
16568 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16569 if possible.
16570
5f02387d
NF
165712011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16572
16573 * emit-rtl.c (emit_pattern_before_noloc): New function.
16574 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16575 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16576 (emit_pattern_after_noloc): New function.
16577 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16578 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16579
fdf3e18a
NF
165802011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16581
16582 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16583 (__ffsDI2): Likewise.
16584
42d085c1
RH
165852011-03-22 Richard Henderson <rth@redhat.com>
16586
16587 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16588 of !TARGET_ABI_OPEN_VMS.
16589 (alpha_trampoline_init, alpha_start_function): Likewise.
16590 (alpha_expand_epilogue, alpha_file_start): Likewise.
16591 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16592 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16593 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16594 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16595 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16596
cabbe12a
JM
165972011-03-22 Joseph Myers <joseph@codesourcery.com>
16598
16599 * config/s390/s390-opts.h: New.
16600 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16601 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16602 s390_stack_guard): Remove.
16603 (s390_handle_arch_option): Return void. Take enum
16604 s390_arch_option value instead of string and searching array.
16605 (s390_handle_option): Don't assert that global structures are in
16606 use. Access variables via opts pointer. Use error_at. Don't use
16607 sscanf for -mstack-guard= or -mstack-size=. Update call to
16608 s390_handle_arch_option.
16609 (s390_option_override): Update call to s390_handle_arch_option.
16610 (s390_emit_prologue): Use %d format for s390_stack_size in
16611 diagnostic. Use %wd for HOST_WIDE_INT.
16612 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16613 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16614 * config/s390/s390.opt (config/s390/s390-opts.h): New
16615 HeaderInclude entry.
16616 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16617 s390_arch_flags, s390_warn_framesize): New Variable entries.
16618 (s390_arch_option): New Enum and EnumValue entries.
16619 (march=): Use Enum instead of Var.
16620 (mstack-guard=, mstack-size=): Use UInteger and Var.
16621 (mtune=): Use Enum.
16622
05b12036
JM
166232011-03-22 Joseph Myers <joseph@codesourcery.com>
16624
16625 * config/score/score.c (score_handle_option): Don't assert that
16626 global structures are in use. Access target_flags via opts
16627 pointer. Use value of -march= option to determine target_flags
16628 settings.
16629 * config/score/score.opt (march=): Use Enum.
16630 (score_arch): New Enum and EnumValue entries.
16631
dd51e35a
JM
166322011-03-22 Joseph Myers <joseph@codesourcery.com>
16633
16634 * config/mep/mep.c (option_mtiny_specified): Remove.
16635 (mep_option_override): Move register handling for -mivc2 from
16636 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16637 instead of option_mtiny_specified.
16638 (mep_handle_option): Access target_flags via opts pointer. Don't
16639 assert that global structures are in use. Defer part of -mivc2
16640 handling and move it to mep_option_override.
16641 * config/mep/mep.opt (IVC2): New Mask entry.
16642 (mivc2): Use Var and Defer instead of Mask.
16643
4a8d3d91
JM
166442011-03-22 Joseph Myers <joseph@codesourcery.com>
16645
16646 * config/v850/v850-opts.h: New.
16647 * config/v850/v850.c (small_memory): Replace with
16648 small_memory_physical_max array. Make that array static const.
16649 (v850_handle_memory_option): Take integer value of argument. Take
16650 gcc_options pointer, option text and location. Return void.
16651 Update for changes to small memory structures.
16652 (v850_handle_option): Access target_flags via opts pointer. Don't
16653 assert that global structures are in use. Update calls to
16654 v850_handle_memory_option.
c78dd519
UB
16655 (v850_encode_data_area): Update references to small memory settings.
16656 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
16657 (enum small_memory_type): Move to v850-opts.h.
16658 * config/v850/v850.opt (config/v850/v850-opts.h): New
16659 HeaderInclude entry.
16660 (small_memory_max): New Variable entry.
16661 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16662 (mtda, mzda): Likewise.
16663
117fdbfa
JM
166642011-03-22 Joseph Myers <joseph@codesourcery.com>
16665
16666 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16667 pointer. Don't assert that global structures are in use.
16668
d715091c
JM
166692011-03-22 Joseph Myers <joseph@codesourcery.com>
16670
16671 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16672 via opts pointer. Don't assert that global structures are in use.
16673
1bb721dc
JM
166742011-03-22 Joseph Myers <joseph@codesourcery.com>
16675
16676 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16677 (munix=93): Use Var.
16678 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16679 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16680 * config/pa/pa-opts.h: New.
16681 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16682 (pa_handle_option): Don't assert that global structures are in
16683 use. Access target_flags via opts pointer. Don't handle
16684 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16685 OPT_munix_98 here.
16686 (pa_option_override): Handle deferred OPT_mfixed_range_.
16687
cd8d8754
JM
166882011-03-22 Joseph Myers <joseph@codesourcery.com>
16689
16690 * config/mn10300/mn10300-opts.h: New.
16691 * config/mn10300/mn10300.c (mn10300_processor,
16692 mn10300_tune_string): Remove.
16693 (mn10300_handle_option): Don't assert that global structures are
16694 in use. Access mn10300_processor via opts pointer. Don't handle
16695 OPT_mtune_ here.
16696 * config/mn10300/mn10300.h (enum processor_type): Move to
16697 mn10300-opts.h.
16698 (mn10300_processor): Remove.
16699 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16700 HeaderInclude entry.
16701 (mn10300_processor): New Variable entry.
16702 (mtune=): Use Var.
16703
24e6e6b1
JM
167042011-03-22 Joseph Myers <joseph@codesourcery.com>
16705
16706 * config/microblaze/microblaze.c: Don't include opts.h.
16707 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16708 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16709 (mno-clearbss): Use Var and Warn.
16710
8a784afb
JM
167112011-03-22 Joseph Myers <joseph@codesourcery.com>
16712
16713 * config/m32r/m32r-opts.h: New.
16714 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16715 (m32r_handle_option): Don't assert that global structures are in
16716 use. Access target_flags and m32r_cache_flush_func via opts
16717 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16718 OPT_mno_flush_trap here.
16719 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16720 include of m32r-opts.h.
16721 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16722 HeaderInclude entry.
16723 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16724 (mmodel=): Use Enum and Var.
16725 (m32r_model): New Enum and EnumValue entries.
16726 (mno-flush-trap): Use Var.
16727 (msdata=): Use Enum and Var.
16728 (m32r_sdata): New Enum and EnumValue entries.
16729
bbfc9a8c
JM
167302011-03-22 Joseph Myers <joseph@codesourcery.com>
16731
16732 * config/m32c/m32c.c: Don't include opts.h.
16733 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16734 m32c_handle_option): Remove.
16735 (m32c_option_override): Check global_options_set.x_target_memregs
16736 instead of target_memregs_set.
16737 * config/m32c/m32c.h (target_memregs): Remove.
16738 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16739 variable.
16740
e24b8335
JM
167412011-03-22 Joseph Myers <joseph@codesourcery.com>
16742
16743 * config/iq2000/iq2000-opts.h: New.
16744 * config/iq2000/iq2000.c: Don't include opts.h.
16745 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 16746 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
16747 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16748 HeaderInclude entry.
16749 (iq2000_tune): New Variable entry.
16750 (march=): Add comment. Use Enum.
16751 (iq2000_arch): New Enum and EnumValue entries.
16752 (mcpu=): Use Enum and Var.
16753 (iq2000_tune): New Enum and EnumValue entries.
16754
e6cc0c98
JM
167552011-03-22 Joseph Myers <joseph@codesourcery.com>
16756
16757 * config/ia64/ia64-opts.h: New.
16758 * config/ia64/ia64.c (ia64_tune): Remove.
16759 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16760 here. Use error_at.
16761 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16762 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16763 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16764 HeaderInclude entry.
16765 (ia64_tune): New Variable entry.
16766 (mfixed-range=): Use Defer and Var.
16767 (mtune=): Use Enum and Var.
16768 (ia64_tune): New Enum and EnumValue entries.
16769
db25893c
JM
167702011-03-22 Joseph Myers <joseph@codesourcery.com>
16771
16772 * config/frv/frv-opts.h: New.
16773 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16774 frv-opts.h.
16775 (frv_cpu_type): Remove.
16776 * config/frv/frv.c: Don't include opts.h.
16777 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 16778 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
16779 (frv_cpu_type): New Variable entry.
16780 (frv_cpu): New Enum and EnumValue entries.
16781
6c223f5d
JM
167822011-03-22 Joseph Myers <joseph@codesourcery.com>
16783
16784 * config/cris/cris.c (cris_handle_option): Access target_flags via
16785 opts pointer. Don't assert that global structures are in use.
16786 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16787 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16788
bbd399cf
JM
167892011-03-22 Joseph Myers <joseph@codesourcery.com>
16790
16791 * config/bfin/bfin-opts.h: New.
16792 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16793 bfin_si_revision, bfin_workarounds): Remove.
16794 (bfin_cpus): Make static const.
16795 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16796 not bfin_lib_id_given.
16797 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16798 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 16799 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
16800 * config/bfin/bfin.h: Include bfin-opts.h.
16801 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16802 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16803 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16804 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16805 entries.
16806
5e1b4d5a
JM
168072011-03-22 Joseph Myers <joseph@codesourcery.com>
16808
16809 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16810 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16811 or -msoft-float here.
16812 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16813 -msoft-float and -mhard-float.
c78dd519 16814 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
16815 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16816 msoft-float.
16817 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16818 -msoft-float.
16819 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16820 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16821 not mhard-float.
16822 (LIBGCC_SPEC): Don't handle -msoft-float.
16823 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16824 -mhard-float.
16825 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16826 msoft-float.
16827 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16828 -mfloat-abi=*, not -msoft-float and -mhard-float.
16829 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16830 -msoft-float.
16831 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16832 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16833 mhard-float and msoft-float.
16834 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16835 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16836 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16837 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16838 mhard-float.
16839 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16840 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16841 msoft-float.
16842 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16843 not mhard-float.
16844 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16845 not msoft-float.
16846
800d1de1
RH
168472011-03-22 Richard Henderson <rth@redhat.com>
16848
16849 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16850 TARGET_ABI_WINDOWS_NT.
16851 (alpha_output_function_end_prologue): Likewise.
16852 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16853 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16854 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16855 (trap, *movsi_nt_vms): Likewise.
16856 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16857 (*tablejump_osf_nt_internal): Remove.
16858 * config/alpha/predicates.md (input_operand): Only test Pmode.
16859
c59ddd2b
JM
168602011-03-22 Joseph Myers <joseph@codesourcery.com>
16861
16862 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16863 via opts pointer. Use error_at. Don't assert that global
16864 structures are in use.
16865
1333f97f
JM
168662011-03-22 Joseph Myers <joseph@codesourcery.com>
16867
16868 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16869 (ix86_handle_option): Access ix86_isa_flags and
16870 ix86_isa_flags_explicit via opts pointer. Don't assert that
16871 global structures are in use.
16872 (ix86_function_specific_save, ix86_function_specific_restore):
16873 Update ix86_isa_flags_explicit field name.
c78dd519 16874 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
16875 (ix86_isa_flags_explicit): Rename TargetSave entry to
16876 x_ix86_isa_flags_explicit.
16877
75db85d8
RH
168782011-03-22 Richard Henderson <rth@redhat.com>
16879
16880 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16881 (alpha_option_override, direct_return): Likewise.
16882 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16883 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16884 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16885 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16886 (alpha_expand_epilogue, alpha_end_function): Likewise.
16887 (alpha_init_libfuncs): Likewise.
16888 (struct machine_function): Remove unicosmk members.
16889 (print_operand) ['t']: Remove.
16890 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16891 unicosmk_output_module_name, unicosmk_output_common,
16892 current_section_align, unicosmk_output_text_section_asm_op,
16893 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16894 unicosmk_section_type_flags, unicosmk_unique_section,
16895 unicosmk_asm_named_section, unicosmk_insert_attributes,
16896 unicosmk_output_align, unicosmk_defer_case_vector,
16897 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16898 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16899 unicosmk_output_ssib, unicosmk_add_call_info_word,
16900 unicosmk_extern_head, unicosmk_output_default_externs,
16901 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16902 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16903 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16904 * config/alpha/alpha-protos.h: Update.
16905 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16906 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16907 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16908 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16909 (*mulsi_se, mulvsi3): Likewise.
16910 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16911 (*divmodsi_internal, call, call_value, realign): Likewise.
16912 (moddi3, umoddi3): Likewise; remove duplicate expander.
16913 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16914 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16915 (*movdi_nofix): Remove r/U alternative.
16916 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16917 * config/alpha/constraints.md ("U"): Remove.
16918 * config/alpha/predicates.md (call_operand"): Don't test
16919 TARGET_ABI_UNICOSMK.
16920
96e45421
JM
169212011-03-22 Joseph Myers <joseph@codesourcery.com>
16922
16923 * target.def (handle_option): Take gcc_options and
16924 cl_decoded_option pointers and location_t.
16925 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16926 * doc/tm.texi: Regenerate.
16927 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16928 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16929 * lto-opts.c (lto_reissue_options): Generate option structure for
16930 targetm.handle_option call.
16931 * opts.c (target_handle_option): Update call to
16932 targetm.handle_option. Remove assertions about values now passed
16933 down to hook.
16934 * targhooks.c (default_target_handle_option): New.
16935 * targhooks.h (default_target_handle_option): Declare.
16936 * config/alpha/alpha.c: Include opts.h.
16937 (alpha_handle_option): Update to new hook interface.
16938 * config/arm/arm.c: Include opts.h.
16939 (arm_handle_option): Update to new hook interface.
16940 * config/arm/t-arm (arm.o): Update dependencies.
16941 * config/bfin/bfin.c: Include opts.h.
16942 (bfin_handle_option): Update to new hook interface.
16943 * config/cris/cris.c: Include opts.h.
16944 (cris_handle_option): Update to new hook interface.
16945 * config/frv/frv.c: Include opts.h.
16946 (frv_handle_option): Update to new hook interface.
16947 * config/i386/i386.c: Include opts.h.
16948 (ix86_handle_option): Update to new hook interface.
16949 (ix86_valid_target_attribute_inner_p): Generate option structure
16950 for call to ix86_handle_option.
16951 * config/i386/t-i386 (i386.o): Update dependencies.
16952 * config/ia64/ia64.c: Include opts.h.
16953 (ia64_handle_option): Update to new hook interface.
16954 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16955 * config/iq2000/iq2000.c: Include opts.h.
16956 (iq2000_handle_option): Update to new hook interface.
16957 * config/m32c/m32c.c: Include opts.h.
16958 (m32c_handle_option): Update to new hook interface.
16959 * config/m32r/m32r.c: Include opts.h.
16960 (m32r_handle_option): Update to new hook interface.
16961 * config/m68k/m68k.c: Include opts.h.
16962 (m68k_handle_option): Update to new hook interface.
16963 * config/mep/mep.c: Include opts.h.
16964 (mep_handle_option): Update to new hook interface.
16965 * config/microblaze/microblaze.c: Include opts.h.
16966 (microblaze_handle_option): Update to new hook interface.
16967 * config/mips/mips.c: Include opts.h.
16968 (mips_handle_option): Update to new hook interface.
16969 * config/mn10300/mn10300.c: Include opts.h.
16970 (mn10300_handle_option): Update to new hook interface.
16971 * config/pa/pa.c: Include opts.h.
16972 (pa_handle_option): Update to new hook interface.
16973 * config/pdp11/pdp11.c: Include opts.h.
16974 (pdp11_handle_option): Update to new hook interface.
16975 * config/rs6000/rs6000.c: Include opts.h.
16976 (rs6000_handle_option): Update to new hook interface.
16977 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16978 * config/rx/rx.c: Include opts.h.
16979 (rx_handle_option): Update to new hook interface.
16980 * config/s390/s390.c: Include opts.h.
16981 (s390_handle_option): Update to new hook interface.
16982 * config/score/score.c: Include opts.h.
16983 (score_handle_option): Update to new hook interface.
16984 * config/sh/sh.c: Include opts.h.
16985 (sh_handle_option): Update to new hook interface.
16986 * config/sparc/sparc.c: Include opts.h.
16987 (sparc_handle_option): Update to new hook interface.
16988 * config/v850/v850.c: Include opts.h.
16989 (v850_handle_option): Update to new hook interface.
16990
66017846
JM
169912011-03-22 Joseph Myers <joseph@codesourcery.com>
16992
16993 * gcc.c (driver_unknown_option_callback): Only permit and save
16994 unknown -Wno- options.
16995 (driver_wrong_lang_callback): Save options directly instead of via
16996 driver_unknown_option_callback.
16997
e8b97ccd
EB
169982011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16999
17000 * combine.c (simplify_set): Try harder to find the best CC mode when
17001 simplifying a nested COMPARE on the RHS.
17002
ebb9f8b0
JM
170032011-03-22 Joseph Myers <joseph@codesourcery.com>
17004
17005 * config/alpha/gnu.h: Remove.
17006 * config/arc: Remove directory.
17007 * config/arm/netbsd.h: Remove.
17008 * config/arm/t-pe: Remove.
17009 * config/crx: Remove directory.
17010 * config/i386/netbsd.h: Remove.
17011 * config/m68hc11: Remove directory.
17012 * config/m68k/uclinux-oldabi.h: Remove.
17013 * config/mcore/mcore-pe.h: Remove.
17014 * config/mcore/t-mcore-pe: Remove.
17015 * config/netbsd-aout.h: Remove.
17016 * config/rs6000/gnu.h: Remove.
17017 * config/sh/sh-symbian.h: Remove.
17018 * config/sh/symbian-base.c: Remove.
17019 * config/sh/symbian-c.c: Remove.
17020 * config/sh/symbian-cxx.c: Remove.
17021 * config/sh/symbian-post.h: Remove.
17022 * config/sh/symbian-pre.h: Remove.
17023 * config/sh/t-symbian: Remove.
17024 * config/svr3.h: Remove.
17025 * config/vax/netbsd.h: Remove.
17026 * config.build: Don't handle i[34567]86-*-pe.
17027 * config.gcc: Remove handling of deprecations for most deprecated
17028 targets.
17029 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
17030 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
17031 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
17032 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
17033 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
17034 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
17035 Remove cases.
17036 * config.host: Don't handle i[34567]86-*-pe.
17037 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
17038 (ASM_SPEC32): Don't handle -mcall-gnu.
17039 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
17040 -mcall-gnu.
17041 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
17042 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
17043 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
17044 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
17045 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
17046 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
17047 conditional on SYMBIAN.
17048 * configure.ac: Don't handle powerpc*-*-gnu*.
17049 * configure: Regenerate.
17050 * doc/extend.texi (interrupt attribute): Don't mention CRX.
17051 * doc/install-old.texi (m6811, m6812): Don't mention.
17052 * doc/install.texi (arc-*-elf*): Don't document multilib option.
17053 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
17054 (m68k-uclinuxoldabi): Don't mention.
17055 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
17056 Remove.
17057 (-mcall-gnu): Remove.
17058 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
17059 families): Remove constraint documentation.
17060
999a7d80
MS
170612011-03-22 Marius Strobl <marius@FreeBSD.org>
17062
17063 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
17064 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
17065 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
17066
45540bcf
MM
170672011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17068
17069 PR target/48226
17070 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
17071 vector when peeking at the next token for vector, don't expand the
17072 keywords.
17073
980a0ff4
GJL
170742011-03-21 Georg-Johann Lay <avr@gjlay.de>
17075
17076 * config/avr/avr-protos.h (expand_epilogue): Change prototype
17077 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
17078 * config/avr/avr.c (init_cumulative_args)
17079 (avr_function_arg_advance): Use it.
17080 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
17081 sibcall epilogues.
17082 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
17083 (avr_function_ok_for_sibcall): ...this new function.
17084 (avr_lookup_function_attribute1): New static Function.
17085 (avr_naked_function_p, interrupt_function_p)
17086 (signal_function_p, avr_OS_task_function_p)
17087 (avr_OS_main_function_p): Use it.
17088 * config/avr/avr.md ("sibcall", "sibcall_value")
17089 ("sibcall_epilogue"): New expander.
17090 ("*call_insn", "*call_value_insn"): New insn.
17091 ("call_insn", "call_value_insn"): Remove
17092 ("call", "call_value", "epilogue"): Change expander to handle
17093 sibling calls.
17094
49168734
NC
170952011-03-21 Nick Clifton <nickc@redhat.com>
17096
17097 * doc/invoke.texi (Overall Options): Move closing brace to end of
17098 options list.
17099 (Optimization Options): Add missing @gol.
17100 (Directory Options): Likewise.
17101 (i386 and x86-64 Options): Likewise.
17102 (RS6000 and PowerPC Options): Likewise.
17103 (i386 and x86-64 Windows Options): Likewise.
17104 (V850 Options): Add text missing from descriptions.
17105
bdfe906f
RH
171062011-03-22 Richard Henderson <rth@redhat.com>
17107
17108 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
17109 (avr_incoming_return_addr_rtx): New.
17110 (emit_push_byte): New.
17111 (expand_prologue): Use it. Remove incorrect dwarf annotation for
17112 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
17113 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
17114 (emit_pop_byte): New.
17115 (expand_epilogue): Use it. Pop frame pointer by bytes.
17116 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
17117 (INCOMING_RETURN_ADDR_RTX): New.
17118 (INCOMING_FRAME_SP_OFFSET): New.
17119 (ARG_POINTER_CFA_OFFSET): New.
17120 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
17121 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
17122 (pophi): Remove.
17123
d090a5aa
RH
17124 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
17125
fdf3e18a
NF
171262011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17127
17128 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17129 (FUNCTION_ARG_ADVANCE): Likewise.
17130 * tm.texi.in: Change references to them to hook references.
17131 * tm.texi: Regenerate.
17132 * targhooks.c (default_function_arg): Eliminate check for target
17133 macro.
17134 (default_function_incoming_arg): Likewise.
17135 (default_function_arg_advance): Likewise.
c78dd519 17136 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
17137 (function_arg_advance): Likewise.
17138 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17139
009d3fcf
NF
171402011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17141
17142 * tree.c (build_call_1): New function.
17143 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
17144
7bec30e1
RG
171452011-03-22 Richard Guenther <rguenther@suse.de>
17146
17147 PR tree-optimization/48228
17148 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
17149 for single-arg PHIs.
17150
0b7e851b
AB
171512011-03-22 Andrey Belevantsev <abel@ispras.ru>
17152
17153 PR rtl-optimization/48143
17154 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
17155 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
17156 sse2_cvtps2pd): Likewise.
17157
d89afca5
AK
171582011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17159
17160 * recog.c (canonicalize_change_group): Use validate_unshare_change.
17161
f471fe72
RG
171622011-03-22 Richard Guenther <rguenther@suse.de>
17163
17164 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
17165 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
17166 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
17167 and REALIGN_LOAD_EXPR.
17168 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
17169 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
17170 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
17171 DOT_PROD_EXPR case ...
17172 (expand_expr_real_2): ... here.
17173 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
17174 and REALIGN_LOAD_EXPR.
17175 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
17176 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
17177 (vect_create_epilog_for_reduction): Likewise.
17178 (vectorizable_reduction): Likewise.
17179 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
17180 * tree-vect-stmts.c (vectorizable_load): Likewise.
17181
f2f81d57
EB
171822011-03-22 Eric Botcazou <ebotcazou@adacore.com>
17183
17184 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17185
ab081dd6
AK
171862011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17187
17188 * config/s390/s390.c (s390_delegitimize_address): Fix offset
17189 handling for PLTOFF/GOTOFF.
17190
6fd5332b
NC
171912011-03-22 Nick Clifton <nickc@redhat.com>
17192
17193 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17194 trailing backslash from the end of the macro definition.
17195
01841ac0
AK
171962011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17197
17198 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17199 and PLT unspecs.
17200
2ef6ce06
RS
172012011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
17202
17203 * expr.h (prepare_operand): Move to...
17204 * optabs.h (prepare_operand): ...here and change the insn code
17205 parameter from "int" to "enum insn_code".
17206 (insn_operand_matches): Declare.
17207 * expr.c (init_expr_target): Use insn_operand_matches.
17208 (compress_float_constant): Likewise.
17209 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17210 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17211 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
17212 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17213 Likewise.
2ef6ce06
RS
17214 (gen_cond_trap): Likewise.
17215 (prepare_operand): Likewise. Change icode to an insn_code.
17216 (insn_operand_matches): New function.
17217 * reload.c (find_reloads_address_1): Use insn_operand_matches.
17218 * reload1.c (gen_reload): Likewise.
17219 * targhooks.c (default_secondary_reload): Likewise.
17220
9e43ad68
UB
172212011-03-21 Uros Bizjak <ubizjak@gmail.com>
17222
9a96da32
UB
17223 * config/alpha/alpha.md (unspec): New define_c_enum.
17224 (unspecv): Ditto.
17225
172262011-03-21 Uros Bizjak <ubizjak@gmail.com>
17227
17228 PR debug/48214
9e43ad68
UB
17229 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17230 between a call and its CALL_ARG_LOCATION note.
17231
31408f60
EB
172322011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17233
17234 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17235
172362011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
17237
17238 PR c/42544
17239 PR c/48197
17240 * c-common.c (shorten_compare): If primopN is first sign-extended
17241 to opN and then zero-extended to result type, set primopN to opN.
17242
9dfd55f5
DJ
172432011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
17244
17245 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17246 for barrier handlers.
17247
f3c33d9d
MM
172482011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17249
17250 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17251 UNSPEC constants to be in the unspec enumeration, and redefine
17252 all UNSPECV constants to be in the unspecv enumeration, so that
17253 dumps print which unspec/unspec_volatile this is.
17254 * config/rs6000/vector.md (UNSPEC_*): Ditto.
17255 * config/rs6000/paired.md (UNSPEC_*): Ditto.
17256 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17257 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17258 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17259
17260 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17261 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17262 UNSPECV_LWSYNC, since these are used as unspec_volatile.
17263 * config/rs6000/sync.md (isync, lwsync): Ditto.
17264
ac43f774
RG
172652011-03-21 Richard Guenther <rguenther@suse.de>
17266
17267 * params.def (lto-min-partition): Fix typo.
17268
411cdbd8
RG
172692011-03-21 Richard Guenther <rguenther@suse.de>
17270
17271 PR c/47939
17272 * c-decl.c (grokdeclarator): Drop to the main variant only
17273 for array types. Drop flag_gen_aux_info check.
17274
1cd9e416
RG
172752011-03-21 Richard Guenther <rguenther@suse.de>
17276
17277 PR translation/47911
17278 * params.def (lto-partitions): Fix typo.
17279 (lto-min-partition): Fix wording.
17280
ada5ad67
AT
172812011-03-21 Andreas Tobler <andreast@fgznet.ch>
17282
17283 * config/rs6000/t-freebsd: Remove duplication from file.
17284
f9613c9a
RG
172852011-03-21 Richard Guenther <rguenther@suse.de>
17286
17287 PR middle-end/47661
17288 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17289
9bfbc1eb
RG
172902011-03-21 Richard Guenther <rguenther@suse.de>
17291
17292 PR lto/48210
17293 * params.def (lto-partitions): Require at least 1 partition.
17294
a2268084
RO
172952011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17296
17297 * gthr-solaris.h: Remove.
17298 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17299 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17300 (LIB_SPEC): Likewise.
17301 * config/sol2.opt (threads): Remove.
9e43ad68 17302 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
17303 (sparc*-*-solaris2*): Likewise.
17304 * configure.ac (enable_threads): Enable solaris support.
17305 * configure: Regenerate.
9e43ad68 17306 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
17307 * doc/install.texi (Configuration, --enable-threads=lib): Remove
17308 solaris.
17309
c43d9a1b
RO
173102011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17311
17312 * config.gcc: Obsolete *-*-solaris2.8*.
17313 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17314
084239f4
RO
173152011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17316
17317 PR bootstrap/48135
17318 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17319 reference. Solaris 8 perl works.
17320
64cadbe7
RO
173212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17322
17323 PR bootstrap/48135
17324 * doc/install.texi (Prerequisites): Move jar etc. up.
17325 Explain support library version requirements.
17326
eb975109
RO
173272011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17328
17329 PR bootstrap/48135
17330 * doc/install.texi (Prerequisites): Move Perl to build
17331 requirements. Always necessary on Solaris 2 with Sun ld.
17332
8a509ffd
RO
173332011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17334
17335 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17336 binutils 2.21.
17337 (Specific, i?86-*-solaris2.[89]): Likewise.
17338 (Specific, i?86-*-solaris2.10): Likewise.
17339 (Specific, mips-sgi-irix6): Likewise.
17340 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17341 Update for binutils 2.21.
17342
8fbc58a1
RO
173432011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17344
17345 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17346 Allow -fuse-linker-plugin for non-default plugin linker.
17347 * configure: Regenerate.
17348
7e84ad0b
NP
173492011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17350
17351 PR bootstrap/48167
17352 * gengtype.c (files_rules): Added rule for cp/parser.h.
17353
2f36e14b
JJ
173542011-03-21 Jakub Jelinek <jakub@redhat.com>
17355
17356 PR target/48213
17357 * config/s390/s390.c (s390_delegitimize_address): Don't call
17358 lowpart_subreg if orig_x has BLKmode.
17359
62d784f7
KT
173602011-03-21 Kai Tietz <ktietz@redhat.com>
17361
17362 PR target/12171
9e43ad68
UB
17363 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17364 * tree.h (attribute_spec): Add new member affects_type_identity.
17365 * attribs.c (empty_attribute_table): Adjust attribute_spec
17366 initializers.
62d784f7
KT
17367 * config/alpha/alpha.c: Likewise.
17368 * config/arc/arc.c: Likewise.
17369 * config/arm/arm.c: Likewise.
17370 * config/avr/avr.c: Likewise.
17371 * config/bfin/bfin.c: Likewise.
17372 * config/crx/crx.c: Likewise.
17373 * config/darwin.h: Likewise.
17374 * config/h8300/h8300.c: Likewise.
17375 * config/i386/cygming.h: Likewise.
17376 * config/i386/i386.c: Likewise.
17377 * config/ia64/ia64.c: Likewise.
17378 * config/m32c/m32c.c: Likewise.
17379 * config/m32r/m32r.c: Likewise.
17380 * config/m68hc11/m68hc11.c: Likewise.
17381 * config/m68k/m68k.c: Likewise.
17382 * config/mcore/mcore.c: Likewise.
17383 * config/mep/mep.c: Likewise.
17384 * config/microblaze/microblaze.c: Likewise.
17385 * config/mips/mips.c: Likewise.
17386 * config/rs6000/rs6000.c: Likewise.
17387 * config/rx/rx.c: Likewise.
17388 * config/sh/sh.c: Likewise.
17389 * config/sol2.h: Likewise.
17390 * config/sparc/sparc.c: Likewise.
17391 * config/spu/spu.c: Likewise.
17392 * config/stormy16/stormy16.c: Likewise.
17393 * config/v850/v850.c: Likewise.
17394
54833ec0
CLT
173952011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17396
17397 * simplify-rtx.c (simplify_binary_operation_1): Handle
17398 (xor (and A B) C) case when B and C are both constants.
17399
14a41392
MX
174002011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17401
17402 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17403
806c3492
EB
174042011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17405
17406 PR bootstrap/48168
17407 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17408
65e0a0f3
JJ
174092011-03-20 Jakub Jelinek <jakub@redhat.com>
17410
17411 PR rtl-optimization/48156
17412 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17413 assume df and df_lr are not NULL.
17414
b6a75dda
RR
174152011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17416
17417 PR debug/48023
17418 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17419 between a call and its CALL_ARG_LOCATION note.
17420
5969b52d
KK
174212011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17422
17423 PR debug/48178
17424 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17425 between a call and its corresponding CALL_ARG_LOCATION note.
17426
f773c2bd
AS
174272011-03-19 Anatoly Sokolov <aesok@post.ru>
17428
17429 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17430 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17431 * haifa-sched.c (setup_ref_regs): Ditto.
17432 * caller-save.c (add_used_regs_1): Ditto.
17433 * dse.c (look_for_hardregs): Ditto.
17434 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17435 * sched-rgn.c (check_live_1): Ditto.
17436
8bf872f9
JM
174372011-03-18 Joseph Myers <joseph@codesourcery.com>
17438
17439 * c-decl.c (diagnose_mismatched_decls): Give an error for
17440 redefining a typedef with variably modified type.
17441
ff8e2159
JM
174422011-03-18 Joseph Myers <joseph@codesourcery.com>
17443
17444 * c-decl.c (grokfield): Don't allow typedefs for structures or
17445 unions with no tag by default.
17446 * doc/extend.texi (Unnamed Fields): Update.
17447
16cc4440
UB
174482011-03-18 Uros Bizjak <ubizjak@gmail.com>
17449
17450 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17451 Rewrite using indirect functions.
17452 (lwp_slwpcb): Ditto.
17453 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17454 (avx_vinsertf128<mode>): Ditto.
17455
e101e12e
AK
174562011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17457
17458 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17459 unspecs.
17460
4627c7fb
AK
174612011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17462
17463 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 17464 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 17465
2d36b47f
MK
174662011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17467
17468 PR rtl-optimization/48170
17469 * gcse.c (hoist_code): Remove bogus asserts.
17470
2a3d7659
JL
174712011-03-18 Georg-Johann Lay <avr@gjlay.de>
17472
17473 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17474 computation for prologue/epilogue.
17475
34c3ef05
RO
174762011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17477
17478 * Makefile.in (check-consistency): Remove.
17479
81f2b976
JJ
174802011-03-18 Jakub Jelinek <jakub@redhat.com>
17481
17482 PR debug/48176
17483 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17484 arange_table_in_use is 0, but either text_section_used or
17485 cold_text_section_used is true. Don't call it if
17486 !info_section_emitted.
17487
68fd7765
AS
174882011-03-18 Anatoly Sokolov <aesok@post.ru>
17489
17490 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17491 FUNCTION_VALUE_REGNO_P): Remove.
17492 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17493 Remove.
17494 * config/avr/avr.c (avr_ret_register): Make static inline.
17495 (avr_function_value_regno_p): New function.
17496 (avr_libcall_value): Make static. Add 'func' argument.
17497 (avr_function_value): Make static. Rename 'func' argument to
17498 'fn_decl_or_type', forward it to avr_libcall_value. Call
17499 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 17500 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 17501
b4ef8aac
JM
175022011-03-18 Jason Merrill <jason@redhat.com>
17503
17504 PR c++/23372
17505 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17506
09a52fc3
RG
175072011-03-18 Richard Guenther <rguenther@suse.de>
17508
17509 * doc/install.texi (--enable-gold): Remove.
17510 (--with-plugin-ld): Document.
17511 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17512
2a3d7659 175132011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
17514
17515 PR middle-end/47790
17516 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17517 again after expansion changes.
17518
2abbb0fe
CLT
175192011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17520
17521 * combine.c (try_combine): Do simplification only call of
17522 subst() on i2 even when i1 is present. Update comments.
17523
2efd0aa6
KK
175242011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17525
17526 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17527 and UNSPEC_PCREL_SYMOFF.
17528
30a49b23
AK
175292011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17530
17531 * config/s390/s390.md: Use define_c_enum for the unspec constant
17532 definitions.
17533
419e1853
JJ
175342011-03-18 Richard Henderson <rth@redhat.com>
17535 Jakub Jelinek <jakub@redhat.com>
17536
17537 PR bootstrap/48161
17538 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17539 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17540
37875856
L
175412011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17542
17543 PR middle-end/47725
17544 * combine.c (cant_combine_insn_p): Don't check zero/sign
17545 extended hard registers.
17546
76069764
L
175472011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17548
17549 PR middle-end/47725
17550 * combine.c (cant_combine_insn_p): Check zero/sign extended
17551 hard registers.
17552
24da2019
AS
175532011-03-17 Anatoly Sokolov <aesok@post.ru>
17554
17555 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17556 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17557 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17558 Change return type to bool.
17559 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17560
a82ff31f
JJ
175612011-03-17 Jakub Jelinek <jakub@redhat.com>
17562
8b29c87a
JJ
17563 PR debug/48163
17564 * var-tracking.c (prepare_call_arguments): If CALL target
17565 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17566 pc instead of looking it up using cselib_lookup and use
17567 Pmode for it if x has VOIDmode.
17568 * dwarf2out.c (gen_subprogram_die): If also both first and
17569 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17570
a82ff31f
JJ
17571 PR debug/48163
17572 * function.c (assign_parms): For data.passed_pointer parms
17573 use MEM of data.entry_parm instead of data.entry_parm itself
17574 as DECL_INCOMING_RTL.
17575 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17576 also when passed and declared mode is the same, DECL_RTL
17577 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17578 a MEM too.
17579
82ce305c
JL
175802011-03-16 Jeff Law <law@redhat.com>
17581
17582 PR rtl-optimization/37273
17583 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17584 handle them like argument loads from stack slots. Do not double
17585 count memory for memory constants and argument loads from stack slots.
17586
fe58e02b
L
175872011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17588
17589 PR debug/48160
17590 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17591
6fc4dbc7
L
175922011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17593
17594 PR target/48171
17595 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17596
db3ed0b3
JJ
175972011-03-17 Jakub Jelinek <jakub@redhat.com>
17598
8054a389
JJ
17599 PR bootstrap/48153
17600 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17601 if dwarf_strict.
17602 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17603 Clear call_arg_locations and call_arg_loc_last always.
17604
db3ed0b3
JJ
17605 PR middle-end/48152
17606 * var-tracking.c (prepare_call_arguments): If argument needs to be
17607 passed by reference, adjust argtype and mode.
17608
1bce4ff3
RG
176092011-03-17 Richard Guenther <rguenther@suse.de>
17610
17611 PR middle-end/48134
17612 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17613 a value make sure to fold the statement.
17614
7c71147d
CLT
176152011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17616
17617 PR target/43872
17618 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17619 return condition with !cfun->calls_alloca.
17620
0e1ee172
RG
176212011-03-17 Richard Guenther <rguenther@suse.de>
17622
17623 PR bootstrap/48148
17624 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17625 origin for decls in other ltrans units.
17626 (input_varpool_node): Likewise.
17627
f8bce518
RG
176282011-03-17 Richard Guenther <rguenther@suse.de>
17629
17630 PR middle-end/48165
17631 * tree-object-size.c (compute_object_offset): Properly return
17632 the offset operand of MEM_REFs as sizetype.
17633
1b6fa860
JJ
176342011-03-17 Jakub Jelinek <jakub@redhat.com>
17635
dabd47e7
JJ
17636 PR rtl-optimization/48141
17637 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17638 * dse.c: Include params.h.
17639 (active_local_stores_len): New variable.
17640 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17641 to NULL.
17642 (record_store, check_mem_read_rtx): Decrease it when removing
17643 from the chain.
17644 (scan_insn): Likewise. Increase it when adding to chain, if it
17645 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17646 set active_local_stores to NULL before the addition.
17647 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17648
1b6fa860
JJ
17649 PR rtl-optimization/48141
17650 * dse.c (record_store): If no positions are needed in an insn
17651 that cannot be deleted, at least unchain it from active_local_stores.
17652
7b5cb7d6
DS
176532011-03-16 Dodji Seketeli <dodji@redhat.com>
17654
17655 PR debug/47510
17656 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17657 (lookup_type_die_strip_naming_typedef): ... here.
17658 (get_context_die): Use it.
17659 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17660 the anonymous struct named by the naming typedef.
17661
585e9d9d
L
176622011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17663
17664 PR target/48154
17665 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17666 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17667
6261ab0e
JL
176682011-03-16 Jeff Law <law@redhat.com>
17669
17670 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 17671 check for operands of conditional. Allow type to be a pointer.
6261ab0e 17672
0b0081ec
RG
176732011-03-16 Richard Guenther <rguenther@suse.de>
17674
17675 PR tree-optimization/48149
17676 * fold-const.c (fold_binary_loc): Fold
17677 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17678
64a3d647
RG
176792011-03-16 Richard Guenther <rguenther@suse.de>
17680
17681 PR tree-optimization/26134
17682 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17683 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17684 (non_rewritable_mem_ref_base): Handle complex type component
17685 accesses, constrain offsets for vector and complex extracts
17686 more properly.
17687
ef13324e
RG
176882011-03-16 Richard Guenther <rguenther@suse.de>
17689
17690 PR tree-optimization/48146
17691 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17692 operands avoiding the need for renaming.
17693
f0eddb90
RG
176942011-03-16 Richard Guenther <rguenther@suse.de>
17695
17696 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17697 constant folding. Move MEM_REF canonicalization first.
17698 Rely on fold_const_aggregate_ref for initializer folding.
17699 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17700
e42348b8
JJ
177012011-03-16 Jakub Jelinek <jakub@redhat.com>
17702
29f10e71
JJ
17703 PR middle-end/48136
17704 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17705 arg0/arg1 or their arguments are always fold converted to matching
17706 types.
17707
e42348b8
JJ
17708 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17709 to nargs.
17710
55b46574
RO
177112011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17712
17713 PR lto/46944
17714 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17715 Handle in-tree gold.
17716 (ld_vers): Extract binutils version for gold.
17717 (gcc_cv_ld_hidden): Handle gold here.
17718 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17719 * configure: Regenerate.
17720 * config.in: Regenerate.
17721 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17722 -fuse-linker-plugin otherwise.
17723 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17724 (LINK_COMMAND_SPEC): Use it.
17725 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17726
2b1c5433
JJ
177272011-03-16 Jakub Jelinek <jakub@redhat.com>
17728
c2969d8e
JJ
17729 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17730 * calls.c: Remove debug.h include.
17731 (emit_call_1): Don't call virtual_call_token debug hook.
17732 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17733 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17734 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17735 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17736 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17737 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17738 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17739 dwarf2out_virtual_call): Remove.
17740 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17741 copy_call_info and virtual_call hooks.
17742 (dwarf2out_init): Don't initialize vcall_insn_table,
17743 debug_dcall_section and debug_vcall_section.
17744 (prune_unused_types): Don't mark nodes from dcall_table.
17745 (dwarf2out_finish): Don't output dcall or vcall tables.
17746 * final.c (final_scan_insn): Don't call direct_call or
17747 virtual_call debug hooks.
17748 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17749 virtual_call_token, copy_call_info and virtual_call hooks.
17750 (debug_nothing_uid): Remove prototype.
17751 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17752 copy_call_info and virtual_call hooks.
17753 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17754 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17755 * debug.c (do_nothing_debug_hooks): Likewise.
17756 (debug_nothing_uid): Remove.
17757 * doc/invoke.texi (-fenable-icf-debug): Remove.
17758 * common.opt (-fenable-icf-debug): Likewise.
17759
325f5379
JJ
17760 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17761 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17762 call's MEM. Handle functions returning aggregate through a hidden
17763 first pointer. For virtual calls add clobbered pc to call arguments
17764 chain.
17765 * dwarf2out.c (gen_subprogram_die): Emit
17766 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17767 can't be emitted.
17768
a58a8e4b
JJ
17769 PR debug/45882
17770 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17771 * rtl.h (ENTRY_VALUE_EXP): Define.
17772 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17773 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17774 * print-rtl.c (print_rtx): Likewise.
17775 * gengtype.c (adjust_field_rtx_def): Likewise.
17776 * var-tracking.c (vt_add_function_parameter): Adjust
17777 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17778 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17779 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17780 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17781 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17782
2b1c5433
JJ
17783 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17784 Call var_location debug hook even on CALL_INSNs.
17785 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17786 * rtl.def (ENTRY_VALUE): New.
17787 * dwarf2out.c: Include cfglayout.h.
17788 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17789 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17790 (struct call_arg_loc_node): New type.
17791 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17792 tail_call_site_count): New variables.
17793 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17794 DW_TAG_GNU_call_site_parameter.
17795 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17796 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17797 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17798 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17799 and DW_AT_GNU_all_source_call_sites.
17800 (mem_loc_descriptor): Handle ENTRY_VALUE.
17801 (add_src_coords_attributes): Don't add enything if
17802 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17803 (dwarf2out_abstract_function): Save and clear call_arg_location,
17804 call_site_count and tail_call_site_count around dwarf2out_decl call.
17805 (gen_call_site_die): New function.
17806 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17807 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17808 (dwarf2out_function_decl): Clear call_arg_locations,
17809 call_arg_loc_last, set call_site_count and tail_call_site_count
17810 to -1 and free block_map.
17811 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17812 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17813 followed by any real instructions.
17814 (dwarf2out_begin_function): Set call_site_count and
17815 tail_call_site_count to 0.
17816 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17817 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17818 attempt to force a DIE for it and worst case remove the attribute.
17819 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17820 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17821 the decl itself.
17822 * var-tracking.c: Include tm_p.h.
17823 (vt_stack_adjustments): For calls call note_register_arguments.
17824 (argument_reg_set): New variable.
17825 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17826 ensure the VALUE is resolved.
17827 (call_arguments): New variable.
17828 (prepare_call_arguments): New function.
17829 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17830 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17831 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17832 always use the best expression.
17833 (vt_expand_loc): Add ignore_cur_loc argument.
17834 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17835 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17836 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17837 note for all calls.
17838 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17839 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17840 argument. Don't call cselib_preserve_only_values and
17841 cselib_reset_table.
17842 (note_register_arguments): New function.
17843 (vt_initialize): Compute argument_reg_set. Call
17844 vt_add_function_parameters before processing basic blocks instead of
17845 afterwards. For calls call prepare_call_arguments before calling
17846 cselib_process_insn.
17847 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17848 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17849 (var-tracking.o): Depend on $(TM_P_H).
17850 * cfglayout.h (insn_scope): New prototype.
17851 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17852 * cfglayout.c (insn_scope): No longer static.
17853 * insn-notes.def (CALL_ARG_LOCATION): New.
17854 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17855 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17856 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17857 nothing for DECL_EXTERNAL BLOCK_VARS.
17858
9ef13bd0
AM
178592011-03-16 Alan Modra <amodra@gmail.com>
17860
17861 PR target/45844
17862 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17863 create invalid offset address for vsx splat insn.
17864 * config/rs6000/predicates.md (splat_input_operand): New.
17865 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17866
56b67510
XDL
178672011-03-15 Xinliang David Li <davidxl@google.com>
17868
17869 PR c/47837
17870 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17871 (normalize_preds): New function.
17872 (is_use_properly_guarded): Normalize def predicates.
17873
80fffdef
RR
178742011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17875
732f37c6 17876 PR target/46788
80fffdef
RR
17877 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17878 in the output template.
17879
930672ad
RG
178802011-03-15 Richard Guenther <rguenther@suse.de>
17881
17882 PR middle-end/47650
17883 * tree-pretty-print.c (dump_function_declaration): Properly
17884 dump unprototyped and varargs function types.
17885
c7ee7b45
RG
178862011-03-15 Richard Guenther <rguenther@suse.de>
17887
17888 PR tree-optimization/13954
17889 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17890 and friends.
17891
b2ad5e37
RG
178922011-03-15 Richard Guenther <rguenther@suse.de>
17893
17894 PR tree-optimization/48037
17895 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17896 selects into BIT_FIELD_REFs.
17897 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17898 vector select.
17899
7ee93d4e
JJ
179002011-03-15 Jakub Jelinek <jakub@redhat.com>
17901
17902 PR tree-optimization/48129
17903 * builtins.c (fold_builtin_snprintf): Convert to type of
17904 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17905 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17906
e106efc7
RG
179072011-03-15 Richard Guenther <rguenther@suse.de>
17908
17909 PR tree-optimization/41490
17910 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17911 value but with VUSE.
17912 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17913 return statements.
17914 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17915 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17916 * tree-tailcall.c (find_tail_calls): Ignore returns.
17917
17dea42f
RG
179182011-03-15 Richard Guenther <rguenther@suse.de>
17919
17920 PR middle-end/48031
17921 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17922 or variable-indexed array accesses when in gimple form.
17923
01c77a60
RG
179242011-03-15 Richard Guenther <rguenther@suse.de>
17925
16cc4440 17926 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 17927
77b0791e
AM
179282011-03-15 Alan Modra <amodra@gmail.com>
17929
17930 PR target/48032
17931 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17932 presume symbol_refs without a symbol_ref_decl are suitably
17933 aligned, nor other trees we may see here. Handle anchor symbols.
17934 (legitimate_constant_pool_address_p): Comment. Add mode param.
17935 Check cmodel=medium addresses. Adjust all calls.
17936 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17937 creating cmodel=medium optimized access to locals.
17938 * config/rs6000/constraints.md (R): Pass QImode to
17939 legitimate_constant_pool_address_p.
17940 * config/rs6000/predicates.md (input_operand): Pass mode to
17941 legitimate_constant_pool_address_p.
17942 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17943 Update prototype.
17944
35f61ba4
MM
179452011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17946
17947 PR target/48053
17948 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17949 64-bit constants being loaded into registers other than GPRs such
17950 as loading 0 into a VSX register.
17951
07332e6d
RO
179522011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17953
16cc4440 17954 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 17955
de888d90
JJ
179562011-03-14 Jakub Jelinek <jakub@redhat.com>
17957
ba3ceb2d
JJ
17958 PR middle-end/47917
17959 * builtins.c (fold_builtin_snprintf): New function.
17960 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17961 (fold_builtin_4): Likewise.
17962
2e64f8b8
JJ
17963 PR middle-end/38878
17964 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17965 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17966 and C - X == X also strip nops from +/-/p+ operand.
17967 When optimizing -X == C, fold C to arg0's type.
17968
de888d90
JJ
17969 PR debug/47946
17970 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17971 emit it as add_AT_int instead of add_AT_unsigned.
17972
179732011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
17974
17975 * unwind-dw2.c: Include sys/sdt.h if it exists.
17976 (_Unwind_DebugHook): Use STAP_PROBE2.
17977 * config.in, configure: Rebuild.
17978 * configure.ac: Check for sys/sdt.h.
17979
d34abfd2
UB
179802011-03-14 Uros Bizjak <ubizjak@gmail.com>
17981
17982 * config/i386/i386.md (ROUND_FLOOR): New constant.
17983 (ROUND_CEIL): Ditto.
17984 (ROUND_TRUNC): Ditto.
17985 (ROUND_MXCSR): Ditto.
17986 (ROUND_NO_EXC): Ditto.
17987 (rint<mode>2): Use new defines instead of numerical constants.
17988 (floor<mode>2): Ditto.
17989 (ceil<mode>2): Ditto.
17990 (btrunc<mode>2): Ditto.
17991 * config/i386/i386-builtin-types.def: Define ROUND function type
17992 aliases.
17993 * config/i386/i386.c (enum ix86_builtins): Add
17994 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17995 (struct builtin_description): Add
17996 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17997 (ix86_expand_sse_round): New static function.
17998 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17999 function types.
18000 (ix86_builtin_vectorized_function): Handle
18001 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
18002
87f9e23d
TT
180032011-03-14 Tom Tromey <tromey@redhat.com>
18004
18005 * c-parser.c (c_parser_asm_string_literal): Clear
18006 warn_overlength_strings.
18007
b3ab9ea2
TT
180082011-03-14 Tom Tromey <tromey@redhat.com>
18009
18010 * c-parser.c (disable_extension_diagnostics): Save
18011 warn_overlength_strings.
18012 (restore_extension_diagnostics): Restore warn_overlength_strings.
18013
6bd73dd8
JJ
180142011-03-14 Jakub Jelinek <jakub@redhat.com>
18015
18016 * BASE-VER: Change to 4.7.0.
18017
7f4d6e1b
RG
180182011-03-14 Richard Guenther <rguenther@suse.de>
18019
18020 PR middle-end/48098
18021 * tree.c (build_vector_from_val): Adjust assert to requirements
18022 and reality.
18023
c6104ef1
JJ
180242011-03-14 Jakub Jelinek <jakub@redhat.com>
18025
18026 PR bootstrap/48102
d34abfd2 18027 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 18028
dfa95e19
AT
180292011-03-14 Andreas Tobler <andreast@fgznet.ch>
18030
f60c2554 18031 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
18032 terms of target_flags_explicit. Adjust copyright year.
18033
18034 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
18035 * config/rs6000/t-freebsd: New file. Add override for
18036 LIB2FUNCS_EXTRA.
18037
bb322018
CD
180382011-03-13 Chris Demetriou <cgd@google.com>
18039
18040 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
18041 (-fno-diagnostics-show-option): this, to reflect current default.
18042 (-Werror=): Update text about -fno-diagnostics-show-option.
18043
12b1c80b
PB
180442011-03-12 Peter Bergner <bergner@vnet.ibm.com>
18045
18046 PR target/48053
18047 * config/rs6000/predicates.md (easy_vector_constant_add_self,
18048 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
18049 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
18050 mode is not V2DImode or V2DFmode.
18051 (vspltis_constant): Do not handle V2DImode and V2DFmode.
18052 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
18053 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
18054 registers to 0.
18055 (movdi_internal64): Likewise.
18056
57d598f7
SP
180572011-03-12 Sebastian Pop <sebastian.pop@amd.com>
18058
18059 PR tree-optimization/47127
18060 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
18061 parameter.
18062 (set_cloog_options): Same.
18063 (scop_to_clast): Same.
18064 (print_clast_stmt): Do not call cloog_state_malloc and
18065 cloog_state_free.
18066 (print_generated_program): Same.
18067 (gloog): Same.
18068 * graphite-clast-to-gimple.h (cloog_state): Declared.
18069 (scop_to_clast): Adjust declaration.
18070 * graphite.c (cloog_state): Defined here.
18071 (graphite_initialize): Call cloog_state_malloc.
18072 (graphite_finalize): Call cloog_state_free.
18073
f231b5ff
JM
180742011-03-11 Jason Merrill <jason@redhat.com>
18075
18076 * attribs.c (lookup_attribute_spec): Take const_tree.
18077 * tree.h: Adjust.
18078
6a4e2bd5
JM
180792011-03-11 Joseph Myers <joseph@codesourcery.com>
18080
18081 * config/sparc/sparc.c (sparc_option_override): Use
18082 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
18083
a758fd67
RG
180842011-03-11 Richard Guenther <rguenther@suse.de>
18085
18086 PR tree-optimization/48067
18087 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
18088 multiplication result will be only used once on the target
18089 stmt.
18090
03dfda54
RG
180912011-03-11 Richard Guenther <rguenther@suse.de>
18092
18093 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
18094
5f11a50a
RG
180952011-03-11 Richard Guenther <rguenther@suse.de>
18096
18097 PR lto/48073
18098 * tree.c (find_decls_types_r): Do not walk types only reachable
18099 from IDENTIFIER_NODEs.
18100
4074f163
JJ
181012011-03-11 Jakub Jelinek <jakub@redhat.com>
18102
18103 PR middle-end/48044
18104 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
18105 all vnode->force_output nodes as needed.
18106
30f7cdcd
JM
181072011-03-11 Jason Merrill <jason@redhat.com>
18108
18109 PR c++/48069
18110 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
18111 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
18112
62ecfeb8
MJ
181132011-03-11 Martin Jambor <mjambor@suse.cz>
18114
18115 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
18116 cgraph_node.
18117
e89e03ab
JJ
181182011-03-11 Jakub Jelinek <jakub@redhat.com>
18119
18120 PR tree-optimization/48063
18121 * ipa-inline.c (cgraph_decide_inlining): Don't try to
18122 inline functions called once if !tree_can_inline_p (node->callers).
18123
efbe978b 181242011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 18125
efbe978b
EB
18126 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
18127 extra_objs.
9d6193a7
CL
18128 * config/score/score3.c: Delete.
18129 * config/score/score3.h: Delete.
18130 * config/score/mul-div.S: Delete.
18131 * config/score/sfp-machine.h: Add new file.
18132 * config/score/constraints.md: Add new file.
18133 * config/score/t-score-softfp: Add new file.
efbe978b 18134 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
18135 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
18136 (score7_extra_constraint): Delete.
efbe978b 18137 (score7_option_override): Remove unused code.
9d6193a7
CL
18138 * config/score/score.c: Remove score3 and score5 define and code.
18139 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 18140 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
18141 * config/score/score.opt: Remove score3 and score5 options.
18142
5de27cca
JDA
181432011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18144
18145 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
18146 when _HPUX_SOURCE is defined.
18147 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
18148
18d92053
JM
181492011-03-10 Jason Merrill <jason@redhat.com>
18150
18151 PR c++/48029
18152 * stor-layout.c (layout_type): Don't set structural equality
18153 on arrays of incomplete type.
18154 * tree.c (type_hash_eq): Handle comparing them properly.
18155
67a2f76d
JJ
181562011-03-10 Jakub Jelinek <jakub@redhat.com>
18157
18158 PR debug/48043
18d92053 18159 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
18160 result mode matches original rtl mode.
18161
d845b2f9
NC
181622011-03-10 Nick Clifton <nickc@redhat.com>
18163
18164 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 18165 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 18166
db7ec035
JJ
181672011-03-09 Jakub Jelinek <jakub@redhat.com>
18168
18169 PR rtl-optimization/47866
18170 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
18171 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
18172 if target wasn't scalar.
18173 * function.c (assign_stack_temp_for_type): Assert that neither
18174 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
18175 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
18176 macro.
18177 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
18178
5d304e47
AK
181792011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18180
18181 * config/s390/s390-protos.h (s390_label_align): New prototype.
18182 * config/s390/s390.c (s390_label_align): New function.
18183 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18184
93b826f0
MM
181852011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18186
18187 PR target/47755
18188 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18189 V2DI/V2DF constants. Only all 0's or all 1's are easy.
18190 (output_vec_const_move): Ditto.
18191
ef78aed6
AS
181922011-03-08 Anatoly Sokolov <aesok@post.ru>
18193
18194 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18195 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18196 * config/mips/mips.c (mips_preferred_reload_class): Make static.
18197 Change 'rclass' argument and result type to reg_class_t.
18198 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18199
5f892aa0
GJL
182002011-03-08 Georg-Johann Lay <avr@gjlay.de>
18201
9e43ad68
UB
18202 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18203 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18204 (TARGET_MEMORY_MOVE_COST): Define.
18205 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 18206
32bd2409
JJ
182072011-03-08 Jakub Jelinek <jakub@redhat.com>
18208
530a4800
JJ
18209 PR debug/47881
18210 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18211 removed anything.
18212
32bd2409
JJ
18213 PR tree-optimization/48022
18214 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18215 for EQ/NE_EXPR.
18216
c7148991
JJ
182172011-03-07 Jakub Jelinek <jakub@redhat.com>
18218
18219 PR debug/47991
18220 * var-tracking.c (find_use_val): Return NULL for
18221 cui->sets && cui->store_p BLKmode MEMs.
18222
43070a6e
AS
182232011-03-07 Anatoly Sokolov <aesok@post.ru>
18224
18225 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18226 Remove.
18227 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18228 xstormy16_print_operand_address): Remove.
18229 * config/stormy16/stormy16.c (xstormy16_print_operand,
18230 xstormy16_print_operand_address): Make static.
18231 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18232
efbe978b 182332011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
18234
18235 PR target/47862
18236 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18237 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18238 before definition.
18239
cec8ac0b
ZD
182402011-03-07 Zdenek Dvorak <ook@ucw.cz>
18241
18242 PR bootstrap/48000
18243 * cfgloopmanip.c (fix_bb_placements): Return immediately
18244 if FROM is BASE_LOOP's header.
18245
59527282
PW
182462011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
18247
18248 * gimplify.c (gimplify_function_tree): Fix building calls
18249 to __builtin_return_address.
18250
617718f7
AM
182512011-03-07 Alan Modra <amodra@gmail.com>
18252
18253 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18254 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18255 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18256 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18257 return_mode args.
18258 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18259 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18260 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18261 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18262 * config/rs6000/rs6000.c
18263 (rs6000_elf_end_indicate_exec_stack): Rename to..
18264 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
18265 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
18266 (rs6000_file_start): ..here.
18267 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18268 file scope variables.
18269 (call_ABI_of_interest): New function.
18270 (init_cumulative_args): Set above vars when function return value
18271 is a float, vector, or small struct.
18272 (rs6000_function_arg_advance_1): Likewise for function args.
18273 (rs6000_va_start): Set rs6000_passes_float if variable arg function
18274 references float args.
18275
38528d50
MX
182762011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
18277
18278 * doc/cfg.texi: Remove "See" before @ref.
18279 * doc/invoke.texi: Likewise.
18280
f42cf4f4
JM
182812011-03-05 Jason Merrill <jason@redhat.com>
18282
18283 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18284
804a304d
AG
182852011-03-05 Anthony Green <green@moxielogic.com>
18286
18287 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18288
634ee309
ZD
182892011-03-05 Zdenek Dvorak <ook@ucw.cz>
18290
18291 PR rtl-optimization/47899
18292 * cfgloopmanip.c (fix_bb_placements): Fix first argument
18293 to flow_loop_nested_p when moving the loop upward.
18294
6fe471c8
RE
182952011-03-05 Richard Earnshaw <rearnsha@arm.com>
18296
18297 PR target/47719
18298 * arm.md (movhi_insn_arch4): Accept any immediate constant.
18299
cc58ceee
JJ
183002011-03-05 Jakub Jelinek <jakub@redhat.com>
18301
18302 PR tree-optimization/47967
18303 * ipa-cp.c (build_const_val): Return NULL instead of creating
18304 VIEW_CONVERT_EXPR for mismatching sizes.
18305 (ipcp_create_replace_map): Return NULL if build_const_val failed.
18306 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18307 give up on versioning.
18308
ea868305
AM
183092011-03-05 Alan Modra <amodra@gmail.com>
18310
18311 PR target/47986
18312 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18313 full cmodel medium/large lo_sum + high addresses.
18314
bc6ce334
AK
183152011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18316
18317 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18318 pool references in UNSPEC_LTREL_OFFSET.
18319
87e7b310
JH
183202011-03-04 Jan Hubicka <jh@suse.cz>
18321
18322 PR lto/47497
18323 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18324 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
18325 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18326 Add node pointers.
87e7b310
JH
18327 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18328 cgraph_add_thunk): Add node pointers.
18329 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18330 associated to right node.
18331 (input_node): Update use of cgraph_same_body_alias
18332 and cgraph_add_thunk.
18333
d9c64246
CF
183342011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18335
18336 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
18337 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18338 modes when the flag -mprefer-avx128 is on.
d9c64246 18339
08707076
RS
183402011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18341
18342 * dwarf2out.c (compare_loc_operands): Fix address handling.
18343
52517c81
AM
183442011-03-04 Alan Modra <amodra@gmail.com>
18345
18346 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18347
b147c5b9
RG
183482011-03-04 Richard Guenther <rguenther@suse.de>
18349
18350 PR middle-end/47968
18351 * expmed.c (extract_bit_field_1): Prefer vector modes that
18352 vec_extract patterns can handle.
18353
8750672f
RG
183542011-03-04 Richard Guenther <rguenther@suse.de>
18355
18356 PR middle-end/47975
18357 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18358
9eac0f2a
RH
183592011-03-04 Richard Henderson <rth@redhat.com>
18360
18361 * explow.c (emit_stack_save): Remove 'after' parameter.
18362 (emit_stack_restore): Likewise.
18363 * expr.h: Update to match.
18364 * builtins.c, calls.c, stmt.c: Likewise.
18365 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18366 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18367 * function.c (expand_function_end): Insert the emit_stack_save
18368 sequence before parm_birth_insn instead of after.
18369
dfee1406
UB
183702011-03-03 Uros Bizjak <ubizjak@gmail.com>
18371
18372 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18373 (ssse3_pmaddubsw128): Ditto.
18374 (ssse3_pmaddubsw): Ditto.
18375
f1d4c3de
SE
183762011-03-03 Steve Ellcey <sje@cup.hp.com>
18377
18378 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18379
71f3a3f5
JJ
183802011-03-03 Jakub Jelinek <jakub@redhat.com>
18381
423ed416
JJ
18382 PR c/47963
18383 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18384 on TYPE_SIZE_UNIT if it is a DECL.
18385
71f3a3f5
JJ
18386 PR debug/47283
18387 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18388 first operand is not is_gimple_mem_ref_addr, try to fold it.
18389 If the operand still isn't is_gimple_mem_ref_addr, clear
18390 MEM_EXPR on op0.
18391
4b1a5c0d
RG
183922011-03-03 Richard Guenther <rguenther@suse.de>
18393
18394 PR middle-end/47283
18395 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18396 match comment.
18397 (refs_may_alias_p_1): For release branches return true if
18398 we are confused by our input.
18399
b46616fd
AK
184002011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18401
18402 * config/s390/s390.c (s390_function_value): Rename to ...
18403 (s390_function_and_libcall_value): ... this.
18404 (s390_function_value): New function.
18405 (s390_libcall_value): New function.
dfee1406 18406 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
18407 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18408 target macro definitions.
18409 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18410
46d8fabb
JM
184112011-03-02 Joseph Myers <joseph@codesourcery.com>
18412
18413 * config/i386/freebsd64.h (CC1_SPEC): Define.
18414 * config/i386/linux64.h (CC1_SPEC): Define.
18415 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18416
6b1ce545
AS
184172011-03-02 Anatoly Sokolov <aesok@post.ru>
18418
18419 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18420 Remove.
18421 * config/stormy16/stormy16.c: Include reload.h.
18422 (xstormy16_memory_move_cost): New function.
18423 (TARGET_MEMORY_MOVE_COST): Define.
18424
34161e98
RS
184252011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18426
18427 PR rtl-optimization/47925
18428 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18429 with side effects. Remove the more-specific check for volatile asms.
18430
f60a97cf
AM
184312011-03-02 Alan Modra <amodra@gmail.com>
18432
18433 PR target/47935
18434 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18435 toc relative addresses for valid offsets.
18436
f2ca11ca
RG
184372011-03-01 Richard Guenther <rguenther@suse.de>
18438
18439 PR tree-optimization/47890
18440 * tree-vect-loop.c (get_initial_def_for_induction): Set
18441 related stmt properly.
18442
7a00d9ea
RG
184432011-03-01 Richard Guenther <rguenther@suse.de>
18444
18445 PR lto/47924
18446 * lto-streamer.c (lto_record_common_node): Also register
18447 the canonical type.
18448
06c7edcc
RG
184492011-03-01 Richard Guenther <rguenther@suse.de>
18450
18451 PR lto/46911
18452 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18453 Do not stream DECL_ABSTRACT_ORIGIN.
18454 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18455 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18456 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18457 Do not stream DECL_ABSTRACT_ORIGIN.
18458 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18459 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18460
998871e9
AS
184612011-02-28 Anatoly Sokolov <aesok@post.ru>
18462
18463 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18464 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 18465 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
18466 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18467 Add 'outgoing' argument.
18468 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18469 function.
18470 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18471 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18472
94369251
KT
184732011-02-28 Kai Tietz <kai.tietz@onevision.com>
18474
18475 PR debug/28047
18476 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18477 (lookup_filename): Likewise.
b2e2ea67 18478 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 18479
80a832cd
JJ
184802011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18481 Jakub Jelinek <jakub@redhat.com>
18482
18483 PR middle-end/47893
18484 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18485 (assign_stack_local_1): Change last argument type to int.
18486 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18487 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 18488 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
18489 (assign_stack_local): Adjust caller.
18490 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18491 of assign_stack_local, pass 0 as last argument.
18492 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18493 callers.
18494
1b500976
JJ
184952011-02-28 Jakub Jelinek <jakub@redhat.com>
18496
f61c6f34
JJ
18497 PR debug/47283
18498 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18499 Use target address_mode and pointer_mode hooks instead of hardcoded
18500 Pmode and ptr_mode. Handle some simple cases of extending if
18501 POINTERS_EXTEND_UNSIGNED < 0.
18502 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18503 Call convert_debug_memory_address.
18504 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18505 convert_debug_memory_address.
18506
1b500976
JJ
18507 PR middle-end/46790
18508 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18509 * configure: Regenerated.
18510 * config.in: Regenerated.
18511 * varasm.c (default_function_section): Return NULL
b2e2ea67 18512 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 18513
2f2935b6
MJ
185142011-02-28 Martin Jambor <mjambor@suse.cz>
18515
18516 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18517 the description to match the printed values.
18518
474086eb
RG
185192011-02-28 Richard Guenther <rguenther@suse.de>
18520
18521 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18522 of the copied scope tree.
18523
15bf6f3a
RW
185242011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18525
18526 * doc/extend.texi (Function Attributes): Avoid deeply (and
18527 wrongly) nested tables.
18528
f6b439c9
JJ
185292011-02-27 Jakub Jelinek <jakub@redhat.com>
18530
18531 PR middle-end/47903
18532 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18533 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18534 r isn't op0 nor op1.
18535
1d8ca2c7
GJL
185362011-02-23 Georg-Johann Lay <avr@gjlay.de>
18537
18538 * config/avr/avr.md: Remove magic comment for emacs.
18539
593fca4b
GJL
185402011-02-23 Georg-Johann Lay <avr@gjlay.de>
18541
18542 PR target/45261
18543 * config/avr/avr.c (avr_option_override): Use error on bad options.
18544 (avr_help): New function.
18545 (TARGET_HELP): Define.
18546
6609216e
GJL
185472011-02-22 Georg-Johann Lay <avr@gjlay.de>
18548
18549 PR target/42240
18550 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18551 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18552
03d458af
GP
185532011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18554
18555 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18556 (ARM Options): Ditto.
18557 (i386 and x86-64 Options): Ditto.
18558 (RX Options): Ditto.
18559 (SPARC Options): Ditto.
18560
1c379b78
TC
185612011-02-26 Tijl Coosemans <tijl@coosemans.org>
18562
18563 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18564 FreeBSD 6 and later. Generally use cpu generic.
18565
d5ed058c 185662011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 18567
d5ed058c
GP
18568 * doc/cpp.texi: Update copyright years.
18569
509d65dd 185702011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 18571
509d65dd 18572 PR target/46898
308d39cd
SB
18573 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18574
509d65dd 185752011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 18576
509d65dd 18577 PR target/46898
308d39cd
SB
18578 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18579 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18580 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18581 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 18582 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
18583 (gen_int_relational): Move declarations to start of function.
18584
822ba6d7
EB
185852011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18586
18587 PR tree-optimization/45470
18588 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18589 can throw internally only.
18590 * tree-vect-stmts.c (vectorizable_call): Likewise.
18591
ef795fc2
AS
185922011-02-24 Anatoly Sokolov <aesok@post.ru>
18593
18594 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18595 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18596 * config/stormy16/stormy16-protos.h
18597 (xstormy16_preferred_reload_class): Remove.
18598 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18599 static. Change 'rclass' argument and return type to reg_class_t.
18600 (TARGET_PREFERRED_RELOAD_CLASS,
18601 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18602
1c3277ee
RG
186032011-02-24 Richard Guenther <rguenther@suse.de>
18604
18605 * lto-streamer-in.c (input_bb): Do not find referenced vars
18606 in debug statements.
18607
67e18edb
JM
186082011-02-23 Jason Merrill <jason@redhat.com>
18609
18610 * common.opt (fabi-version): Document v5 and v6.
18611
b14fad9d
RG
186122011-02-23 Richard Guenther <rguenther@suse.de>
18613
18614 PR tree-optimization/47849
18615 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18616
7fcf46f5
JZ
186172011-02-23 Jie Zhang <jie@codesourcery.com>
18618
18619 * opts-common.c (decode_cmdline_option): Print empty string
18620 argument as "" in decoded->orig_option_with_args_text.
18621 * gcc.c (execute): Print empty string argument as ""
18622 in the verbose output.
18623 (do_spec_1): Keep empty string argument.
18624
f85b70fd
NF
186252011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18626
18627 * config.gcc: Declare score-* and crx-* obsolete.
18628
b152a615
JZ
186292011-02-23 Jie Zhang <jie@codesourcery.com>
18630
18631 PR rtl-optimization/47763
18632 * web.c (web_main): Ignore naked clobber when replacing register.
18633
bb6e77bc
AS
186342011-02-22 Anatoly Sokolov <aesok@post.ru>
18635
18636 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18637 Remove.
18638
68bf6491
SP
186392011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18640
18641 PR doc/47848
18642 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18643
88ee1fc7
MS
186442011-02-22 Mike Stump <mikestump@comcast.net>
18645
18646 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18647 assembler.
18648 * configure: Regenerate.
18649
6042d1dd
CLT
186502011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18651
18652 PR rtl-optimization/46002
18653 * ira-color.c (update_copy_costs): Change class intersection
18654 test to reg_class_contents[] test of 'hard_regno'.
18655
7de97f9e
JM
186562011-02-21 Joseph Myers <joseph@codesourcery.com>
18657
18658 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18659 than Driver option.
18660 * config/hpux11.opt (mt): Likewise.
18661 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18662 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18663 * config/vax/elf.opt (mno-asm-pic): Likewise.
18664 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18665
d1d46f9f
MS
186662011-02-21 Mike Stump <mikestump@comcast.net>
18667
18668 PR target/47822
18669 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18670 tree so we can get save the type.
18671 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18672 for CFString instead of trying to use past the end of the builtins.
18673 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18674 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18675 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18676 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18677 Rename to darwin_builtin_cfstring.
18678 (darwin_init_cfstring_builtins): Return the built type.
18679
23e0d930
UB
186802011-02-21 Uros Bizjak <ubizjak@gmail.com>
18681
18682 PR target/47840
18683 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18684 (_mm256_insert_epi64): Use _mm_insert_epi64.
18685
192997cf
AS
186862011-02-21 Anatoly Sokolov <aesok@post.ru>
18687
18688 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18689 * config/stormy16/stormy16-protos.h
18690 (xstormy16_mode_dependent_address_p): Remove.
18691 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18692 Make static. Change return type to bool. Change argument type to
18693 const_rtx. Remove dead code.
18694 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18695
e292d003
RG
186962011-02-21 Richard Guenther <rguenther@suse.de>
18697
18698 PR lto/47820
18699 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18700 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18701 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18702 TUs context.
23e0d930 18703 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
18704 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18705
77f846e9
RG
187062011-02-20 Richard Guenther <rguenther@suse.de>
18707
18708 PR lto/47822
18709 * tree.c (free_lang_data_in_decl): Clean builtins from
18710 the TU decl BLOCK_VARS.
23e0d930 18711
b2cddfc8
AO
187122011-02-19 Alexandre Oliva <aoliva@redhat.com>
18713
18714 PR debug/47620
18715 PR debug/47630
18716 * haifa-sched.c (fix_tick_ready): Skip tick computation
18717 for debug insns.
18718
becf4c11
RG
187192011-02-19 Richard Guenther <rguenther@suse.de>
18720
18721 PR lto/47647
18722 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18723 Remove lazy BLOCK_VARS streaming.
18724 (lto_input_ts_block_tree_pointers): Likewise.
18725 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18726
27f98305
JM
187272011-02-19 Joseph Myers <joseph@codesourcery.com>
18728
18729 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18730
064bf3f4
JM
187312011-02-19 Joseph Myers <joseph@codesourcery.com>
18732
18733 * config/i386/biarch32.h, config/i386/mach.h,
18734 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18735
9215ddc3
JJ
187362011-02-19 Jakub Jelinek <jakub@redhat.com>
18737
18738 PR target/47800
18739 * config/i386/i386.md (peephole2 for shift and plus): Use
18740 operands[1] original mode in the first insn.
18741
8b021004
MS
187422011-02-18 Mike Stump <mikestump@comcast.net>
18743
65ded153 18744 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 18745
f84ae14c
JH
187462011-02-18 Jan Hubicka <jh@suse.cz>
18747
18748 PR middle-end/47788
65ded153
EB
18749 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18750 to zero when the function is not inlinable at all.
f84ae14c 18751
eddabc80
JDA
187522011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18753
18754 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18755 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18756 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18757 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18758 * config/pa/t-pa64: Likewise.
18759 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18760
ca3da783
JJ
187612011-02-18 Jakub Jelinek <jakub@redhat.com>
18762
18763 PR driver/47787
18764 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18765
430aa868
JDA
187662011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18767
18768 PR target/47792
18769 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18770
4bf7ff7e
AS
187712011-02-18 Anatoly Sokolov <aesok@post.ru>
18772
18773 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18774 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18775 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18776 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18777 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18778 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18779 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18780 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18781 m32r_legitimate_address_p): New functions.
18782 * config/m32r/constraints.md (constraint "S"): Don't use
18783 STORE_PREINC_PREDEC_P.
18784 (constraint "U"): Don't use LOAD_POSTINC_P.
18785
7efcf910
CLT
187862011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18787
18788 PR rtl-optimization/46178
18789 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18790 compute ira_hard_regno_cover_class[].
18791
237d6259
RG
187922011-02-18 Richard Guenther <rguenther@suse.de>
18793
18794 PR lto/47798
18795 * lto-streamer.h (lto_global_var_decls): Declare.
18796 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18797 statics for global var processing.
18798
12d80acc
RG
187992011-02-18 Richard Guenther <rguenther@suse.de>
18800
18801 PR tree-optimization/47737
18802 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18803 edge dominance check.
18804
abfea58d
JJ
188052011-02-18 Jakub Jelinek <jakub@redhat.com>
18806
18807 PR debug/47780
18808 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18809 avoid invalid rtx sharing.
18810
f73c8882
GP
188112011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18812
18813 * doc/cpp.texi (Obsolete Features): Add background on the
18814 origin of assertions.
18815
d764a8e6
IS
188162011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18817
18818 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 18819 objc_abi == 2.
d764a8e6
IS
18820 * config/darwin.c (output_objc_section_asm_op): Added support for
18821 ABI v1 and v2.
18822 (is_objc_metadata): New.
18823 (darwin_objc2_section): New.
18824 (darwin_objc1_section): New.
18825 (machopic_select_section): Added support for ABI v1 and v2.
18826 (darwin_emit_objc_zeroed): New.
18827 (darwin_output_aligned_bss): Detect objc metadata and treat it
18828 appropriately.
18829 (darwin_asm_output_aligned_decl_common): Same.
18830 (darwin_asm_output_aligned_decl_local): Same.
18831 * config/darwin-sections.def: Updated for ABI v1 and v2.
18832 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18833 compiling Objective-C code for the NeXT runtime, default to using
18834 ABI version 0 for 32-bit, and version 2 for 64-bit.
18835
0a8134ca
JM
188362011-02-17 Joseph Myers <joseph@codesourcery.com>
18837
18838 * common.opt (optimize_fast): New Variable.
18839 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18840 instead of local variable ofast.
18841
0a256240
NP
188422011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18843
18844 * doc/invoke.texi (fobjc-abi-version): Documented.
18845 (fobjc-nilcheck): Documented.
18846 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18847 version.
18848
fa381cb2
JM
188492011-02-17 Joseph Myers <joseph@codesourcery.com>
18850
18851 PR driver/47390
18852 * common.opt (export-dynamic): New Driver option.
18853 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18854
5437eaa6
JM
188552011-02-17 Joseph Myers <joseph@codesourcery.com>
18856
18857 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18858
bb7e6d55
AO
188592011-02-17 Alexandre Oliva <aoliva@redhat.com>
18860 Jan Hubicka <jh@suse.cz>
18861
18862 PR debug/47106
18863 PR debug/47402
18864 * cfgexpand.c (account_used_vars_for_block): Remove.
18865 (estimated_stack_frame_size): Use referenced vars.
18866 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18867 that were referenced in the original function. Test src_fn
18868 rather than cfun. Drop redundant get_var_ann.
18869 (setup_one_parameter): Drop redundant get_var_ann.
18870 (declare_return_variable): Likewise.
18871 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18872 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18873 * ipa-inline.c (compute_inline_parameters): Do not compute
18874 disregard_inline_limits here.
bb7e6d55
AO
18875 (compute_inlinable_for_current, pass_inlinable): New.
18876 (pass_inline_parameters): Require PROP_referenced_vars.
18877 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 18878 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
18879 (cgraph_analyze_function): Set .disregard_inline_limits.
18880 * tree-sra.c (convert_callers): Compute inliner parameters
18881 only for functions already in SSA form.
18882
f181a8a7
JM
188832011-02-17 Joseph Myers <joseph@codesourcery.com>
18884
18885 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18886 -mlittle-endian-data.
18887
c6869789
JM
188882011-02-17 Joseph Myers <joseph@codesourcery.com>
18889
18890 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18891 -mno-fpu, not -fpu and -no-fpu.
18892 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18893 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18894
fbf4bfd3
UB
188952011-02-17 Uros Bizjak <ubizjak@gmail.com>
18896
18897 PR target/43653
18898 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18899 input reload with PLUS RTX.
18900
70be5dc7
JM
189012011-02-16 Joseph Myers <joseph@codesourcery.com>
18902
18903 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18904 of InverseVar(MDMX).
18905
30b1646e
JM
189062011-02-16 Joseph Myers <joseph@codesourcery.com>
18907
18908 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18909 --m4-340.
18910
ab7b71e9
JM
189112011-02-16 Joseph Myers <joseph@codesourcery.com>
18912
18913 * config/mn10300/mn10300.opt (mno-crt0): New.
18914
466f3f08
JM
189152011-02-16 Joseph Myers <joseph@codesourcery.com>
18916
18917 * config/m68k/uclinux.opt (static-libc): New Driver option.
18918
8226cd7b
JM
189192011-02-16 Joseph Myers <joseph@codesourcery.com>
18920
18921 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18922
45cab1d7
JM
189232011-02-16 Joseph Myers <joseph@codesourcery.com>
18924
18925 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18926 %{muser-extend-enabled}.
18927
65aab64f
RG
189282011-02-16 Richard Guenther <rguenther@suse.de>
18929
18930 PR tree-optimization/47738
18931 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18932 the TODO from tree_predictive_commoning.
18933
fc2fa4fb
JL
189342011-02-15 Jeff Law <law@redhat.com>
18935
18936 Revert
18937 2011-01-25 Jeff Law <law@redhat.com>
18938
18939 PR rtl-optimization/37273
18940 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18941 handle them like argument loads from stack slots. Do not double
18942 count memory for memory constants and argument loads from stack slots.
18943
4e380b8e
L
189442011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18945
18946 PR middle-end/47725
18947 * combine.c (cant_combine_insn_p): Revert the last change.
18948
e3a69bb4
MM
189492011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18950
18951 PR target/47755
18952 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18953 mode for vector constants. Remove code that checks for TImode.
18954
de650422
AO
189552011-02-15 Alexandre Oliva <aoliva@redhat.com>
18956
18957 PR debug/47106
18958 PR debug/47402
18959 * cgraph.h (compute_inline_parameters): Return void.
18960 * ipa-inline.c (compute_inline_parameters): Adjust.
18961
30925d94
AO
189622011-02-15 Alexandre Oliva <aoliva@redhat.com>
18963
18964 PR debug/47106
18965 PR debug/47402
18966 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18967 rather than decl.
18968 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18969 * ipa-inline.c (compute_inline_parameters): Adjust.
18970
1b9a784a
AO
189712011-02-15 Alexandre Oliva <aoliva@redhat.com>
18972
18973 PR debug/47106
18974 PR debug/47402
18975 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18976 Adjust all users. Pass FN to...
18977 * tree-flow-inline.h (first_referenced_var): ... this. Add
18978 fn argument.
18979 * ipa-struct-reorg.c: Adjust.
18980 * tree-dfa.c: Adjust.
18981 * tree-into-ssa.c: Adjust.
18982 * tree-sra.c: Adjust.
18983 * tree-ssa-alias.c: Adjust.
18984 * tree-ssa-live.c: Adjust.
18985 * tree-ssa.c: Adjust.
18986 * tree-ssanames.c: Adjust.
18987 * tree-tailcall.c: Adjust.
18988
27c6b086
AO
189892011-02-15 Alexandre Oliva <aoliva@redhat.com>
18990
18991 PR debug/47106
18992 PR debug/47402
18993 * tree-flow.h (referenced_var_lookup): Add fn parameter.
18994 Adjust all callers.
18995 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18996 * tree-flow-inline.h: Adjust.
18997 * gimple-pretty-print.c: Adjust.
18998 * tree-into-ssa.c: Adjust.
18999 * tree-ssa.c: Adjust.
19000 * cfgexpand.c: Adjust.
19001
679e8183
NF
190022011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19003
fbf4bfd3
UB
19004 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
19005 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19006 (EXTRA_CONSTRAINT): Delete.
19007 * config/iq2000/constraints.md: New file.
19008 * config/iq2000/iq2000.md: Include it.
679e8183
NF
19009 (define_insn ""): Delete.
19010 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
19011 unsupported constraint letters from patterns.
19012 (call_value, call_value_internal1): Likewise.
19013 (call_value_multiple_internal1): Likewise.
19014
a45d420a
NC
190152011-02-15 Nick Clifton <nickc@redhat.com>
19016
19017 * config/mn10300/mn10300.c: Include tm-constrs.h.
19018 (struct liw_data): New data structure describing an LIW candidate
19019 instruction.
19020 (extract_bundle): Use struct liw_data. Allow small integer
19021 operands for some instructions.
19022 (check_liw_constraints): Use struct liw_data. Remove swapped
19023 parameter. Add comments describing the checks. Fix bug when
19024 assigning the source of liw1 to the source of liw2.
19025 (liw_candidate): Delete. Code moved into extract_bundle.
19026 (mn10300_bundle_liw): Use struct liw_data. Check constraints
19027 before swapping.
19028 * config/mn10300/predicates.md (liw_operand): New predicate.
19029 Allows registers and small integer constants.
19030 * config/mn10300/constraints.md (O): New constraint. Accetps
19031 integers in the range -8 to +7 inclusive.
19032 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
19033 for moving a small integer into a register. Give this alternative
19034 LIW attributes.
19035 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
19036 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
19037 using the J,K,L and M constraints,
19038 (liw): Remove SI mode on second operands to allow for HI and QI
19039 mode values.
19040 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
19041 instruction.
19042
8a73faf1
L
190432011-02-15 H.J. Lu <hongjiu.lu@intel.com>
19044
19045 PR middle-end/47725
19046 * combine.c (cant_combine_insn_p): Check zero/sign extended
19047 hard registers.
19048
48feba28
RG
190492011-02-15 Richard Guenther <rguenther@suse.de>
19050
19051 PR tree-optimization/47743
19052 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
19053 for a non-type-compatible VN lookup bail out.
19054
ad1c1eeb
NF
190552011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19056
19057 * config/fr30/constraints.md: New file.
19058 * config/fr30/fr30.md: Include it.
19059 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
19060 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19061 (EXTRA_CONSTRAINT): Delete.
19062
49ac143d
NF
190632011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19064
19065 * config/frv/constraints.md: New file.
19066 * config/frv/predicates.md: Include it.
19067 * config/frv/frv.c (reg_class_from_letter): Delete.
19068 (frv_option_override): Don't initialize it.
19069 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
19070 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
19071 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
19072 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19073 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
19074 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19075 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
19076 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
19077 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
19078 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
19079 (REG_CLASS_FROM_CONSTRAINT): Delete.
19080
c95f9494
JJ
190812011-02-15 Jakub Jelinek <jakub@redhat.com>
19082
19083 PR middle-end/47581
19084 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
19085 if frame size is 0 in a leaf function.
19086
13aed611
RO
190872011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19088
19089 PR pch/14940
19090 * config/alpha/host-osf.c: New file.
19091 * config/alpha/x-osf: New file.
19092 * config.host (alpha*-dec-osf*): Use it.
19093
b09c3081
AS
190942011-02-14 Anatoly Sokolov <aesok@post.ru>
19095
19096 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19097 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
19098 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
19099 (rx_mode_dependent_address_p): ...this. Make static. Change argument
19100 type to const_rtx.
19101 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19102
d634083b
NF
191032011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19104
19105 * config/stormy16/constraints.md: New file.
19106 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
19107 Use satisfies_constraint_Q and satisfies_constraint_R.
19108 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
19109 Delete.
19110 (xstormy16_legitiamte_address_p): Declare.
19111 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
19112 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19113 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 19114 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
19115 Un-staticize.
19116 (xstormy16_extra_constraint_p): Delete.
19117
c7dd803e
EB
191182011-02-14 Eric Botcazou <ebotcazou@adacore.com>
19119
19120 PR tree-optimization/46494
19121 * loop-unroll.c (split_edge_and_insert): Adjust comment.
19122 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
19123 (pass_rtl_loop_done): Add TODO_verify_flow.
19124 * fwprop.c (pass_rtl_fwprop): Likewise.
19125 * modulo-sched.c (pass_sms): Likewise.
19126 * tree-ssa-dom.c (pass_dominator): Likewise.
19127 * tree-ssa-loop-ch.c (pass_ch): Likewise.
19128 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
19129 (pass_tree_loop_done): Likewise.
19130 * tree-ssa-pre.c (execute_pre): Likewise.
19131 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19132 * tree-ssa-sink.c (pass_sink_code): Likewise.
19133 * tree-vrp.c (pass_vrp): Likewise.
19134
c6150df6
NF
191352011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19136
c7dd803e
EB
19137 * config/v850/constraints.md: New file.
19138 * config/v850/v850.md: Include it.
19139 * config/v850/predicates.md (reg_or_0_operand): Use
19140 satisfies_constraint_G.
19141 (special_symbolref_operand): Use satisfies_constraint_K.
19142 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
19143 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
19144 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
19145 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19146 (EXTRA_CONSTRAINT): Delete.
19147 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
19148 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
19149 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 19150
30dd1ea3
AS
191512011-02-14 Anatoly Sokolov <aesok@post.ru>
19152
19153 PR target/47696
19154 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
19155 description.
19156
944f4bb3
NF
191572011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19158
19159 * config/mcore/constraints.md: New file.
19160 * config/mcore/mcore.md: Include it.
19161 * config/mcore/mcore.c (reg_class_from_letter): Delete.
19162 * config/mcore/mcore.h (reg_class_from_letter): Delete.
19163 (REG_CLASS_FROM_LETTER): Delete.
19164 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
19165 insn_const_int_ok_for_constraint.
19166 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
19167 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
19168 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19169 (EXTRA_CONSTRAINT): Delete.
19170
ad56a54c
RO
191712011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19172
19173 PR ada/41929
19174 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
19175 (IS_SIGHANDLER): Define.
19176 (sparc64_is_sighandler): New function, split off from
19177 sparc64_fallback_frame_state.
19178 (sparc_is_sighandler): New function, split off from
19179 sparc_fallback_frame_state.
19180 (sparc64_fallback_frame_state): Merge with ...
19181 (sparc_fallback_frame_state): ... this into ...
19182 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
19183 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
19184 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
19185 stack instead of hardcoded offsets.
ad56a54c 19186
fbf4bfd3 191872011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
19188
19189 PR target/45808
19190 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19191
029c8f3e
RW
191922011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19193
19194 * configure: Regenerate.
19195
a016dc83
JM
191962011-02-12 Joseph Myers <joseph@codesourcery.com>
19197
19198 PR driver/45731
19199 * gcc.c (asm_options): Correct spec matching --target-help.
19200
8957a0ec
MJ
192012011-02-12 Martin Jambor <mjambor@suse.cz>
19202
19203 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19204 to gimple call error.
19205
6ef828bc
MS
192062011-02-12 Mike Stump <mikestump@comcast.net>
19207
19208 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19209 comments in backslash regions.
19210
a4015be5
MS
192112011-02-12 Mike Stump <mikestump@comcast.net>
19212 Jakub Jelinek <jakub@redhat.com>
19213 Iain Sandoe <iains@gcc.gnu.org>
19214
19215 PR target/47324
19216 * dwarf2out.c (output_cfa_loc): When required, apply the
19217 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19218 (output_loc_sequence): Likewise.
19219 (output_loc_operands_raw): Likewise.
19220 (output_loc_sequence_raw): Likewise.
19221 (output_cfa_loc): Likewise.
19222 (output_loc_list): Suppress register number adjustment when
19223 calling output_loc_sequence()
19224 (output_die): Likewise.
19225
5378dda2
AS
192262011-02-12 Anatoly Sokolov <aesok@post.ru>
19227
19228 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19229 Remove macros.
19230 * config/xtensa/xtensa.c (xtensa_register_move_cost,
19231 xtensa_memory_move_cost): New functions.
19232 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19233
f3d533d3
AO
192342011-02-12 Alexandre Oliva <aoliva@redhat.com>
19235
19236 PR lto/47225
19237 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19238 in the current directory.
19239 * configure: Rebuilt.
19240
9d53403c
IS
192412011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19242
19243 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 19244 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
19245 correct indents of the preceding block.
19246
a350a6c8
IS
192472011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19248
19249 * gcc.c (driver_handle_option): Concatenate the argument to -F with
19250 the switch.
19251
bab79a40
JM
192522011-02-11 Joseph Myers <joseph@codesourcery.com>
19253
19254 * common.opt (nostartfiles): New Driver option.
19255
1bbc6693
XDL
192562011-02-11 Xinliang David Li <davidxl@google.com>
19257
19258 PR tree-optimization/47707
19259 * tree-chrec.c (convert_affine_scev): Keep type precision.
19260
1da7d8c0
EB
192612011-02-11 Eric Botcazou <ebotcazou@adacore.com>
19262
19263 PR tree-optimization/47420
19264 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19265
192662011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
19267
19268 PR rtl-optimization/47614
19269 * rtl.h (check_for_inc_dec): Declare.
19270 * dse.c (check_for_inc_dec): Externalize...
19271 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19272 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19273
4df47bca
JM
192742011-02-11 Joseph Myers <joseph@codesourcery.com>
19275
19276 PR driver/47678
19277 * gcc.c (main): Do not compile inputs if there were errors in
19278 option handling.
19279 * opts-common.c (read_cmdline_option): Check for wrong language
19280 after other error checks.
19281
61502ca8
NF
192822011-02-11 Nathan Froyd <froydnj@codesourcery.com>
19283
19284 * cgraph.c: Fix comment typos.
19285 * cgraph.h: Likewise.
19286 * cgraphunit.c: Likewise.
19287 * ipa-cp.c: Likewise.
19288 * ipa-inline.c: Likewise.
19289 * ipa-prop.c: Likewise.
19290 * ipa-pure-const.c: Likewise.
19291 * ipa-ref.c: Likewise.
19292 * ipa-reference.c: Likewise.
19293
b63f974e
JJ
192942011-02-11 Jakub Jelinek <jakub@redhat.com>
19295
d50c5e0c
JJ
19296 PR debug/47684
19297 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 19298
6dd2a13c
RO
192992011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19300
19301 PR testsuite/47400
19302 * doc/sourcebuild.texi (Require Support): Document
19303 dg-require-ascii-locale.
19304
4a087ccf
MX
193052011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
19306
19307 * doc/lto.texi (Write summary): Fix missing parentheses.
19308
a4403164
DD
193092011-02-10 DJ Delorie <dj@redhat.com>
19310
19311 * config/m32c/m32c.c (m32c_option_override): Disable
19312 -fcombine-stack-adjustments until flag value tracking and compare
19313 optimization can be rewritten.
19314
4fac45bd
PB
193152011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19316
19317 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19318 PROCESSOR_POWER7.
19319 (PROCESSOR_DEFAULT64): Likewise.
19320
72602cd1
RH
193212011-02-10 Richard Henderson <rth@redhat.com>
19322
19323 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19324 change from 2011-02-03.
19325 * config/rx/rx.c (flags_from_code): Likewise.
19326 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19327 is valid, n/pz otherwise.
19328 (rx_select_cc_mode): Return CCmode if Y is not zero.
19329
ea57f573
RG
193302011-02-10 Richard Guenther <rguenther@suse.de>
19331
ea4c3e65 19332 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 19333
92b1d23b
RG
193342011-02-10 Richard Guenther <rguenther@suse.de>
19335
19336 PR tree-optimization/47677
19337 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19338
525a2d06
JJ
193392011-02-10 Jakub Jelinek <jakub@redhat.com>
19340
19341 PR target/47665
19342 * combine.c (make_compound_operation): Only change shifts into
19343 multiplication for SCALAR_INT_MODE_P.
19344
06c969bd
JZ
193452011-02-10 Jie Zhang <jie@codesourcery.com>
19346
19347 PR testsuite/47622
19348 Revert
19349 2011-02-05 Jie Zhang <jie@codesourcery.com>
19350 PR debug/42631
19351 * web.c (entry_register): Don't clobber the number of the
19352 first uninitialized reference in used[].
19353
282ec48e
RG
193542011-02-09 Richard Guenther <rguenther@suse.de>
19355
19356 PR tree-optimization/47664
19357 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19358 all edges again.
19359
df98c3e8
DE
193602011-02-09 David Edelsohn <dje.gcc@gmail.com>
19361
d0f21cd6
DE
19362 PR target/46481
19363 PR target/47032
df98c3e8
DE
19364 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19365 PROCESSOR_POWER7.
19366 (PROCESSOR_DEFAULT64): Same.
19367 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19368
67b6839f
RO
193692011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19370
19371 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19372
4fd73214
MJ
193732011-02-09 Martin Jambor <mjambor@suse.cz>
19374
19375 PR middle-end/45505
19376 * tree-sra.c (struct access): New flags grp_scalar_read and
19377 grp_scalar_write. Changed description of assignment read and write
19378 flags.
19379 (dump_access): Dump new flags, reorder all of them.
19380 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19381 to detect multiple scalar reads.
19382 (analyze_access_subtree): Use the new scalar read write flags instead
19383 of the old flags. Adjusted comments.
19384
91140cd3
DD
193852011-02-08 DJ Delorie <dj@redhat.com>
19386
19387 PR target/47548
19388 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19389 patterns.
19390
4254bbfe
JM
193912011-02-08 Joseph Myers <joseph@codesourcery.com>
19392
19393 * config/m68k/uclinux.opt: New.
19394 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19395
f1fda84e
JM
193962011-02-08 Joseph Myers <joseph@codesourcery.com>
19397
19398 * config/cris/elf.opt (sim): New Driver option.
19399
4933ae74
JM
194002011-02-08 Joseph Myers <joseph@codesourcery.com>
19401
19402 * config/xtensa/elf.opt: New.
19403 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19404
4ad70280
JM
194052011-02-08 Joseph Myers <joseph@codesourcery.com>
19406
19407 * config/vax/elf.opt: New.
19408 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19409
20893707
JM
194102011-02-08 Joseph Myers <joseph@codesourcery.com>
19411
19412 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19413
b8e7038e
JM
194142011-02-08 Joseph Myers <joseph@codesourcery.com>
19415
19416 * config/gnu-user.opt: New.
19417 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19418 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19419 *-*-uclinux*): Use gnu-user.opt.
19420
e1c5225a
TS
194212011-02-08 Thomas Schwinge <thomas@schwinge.name>
19422
19423 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19424 * config/i386/gnu.h (CPP_SPEC): Likewise.
19425
5e46b0c6
ILT
194262011-02-08 Ian Lance Taylor <iant@google.com>
19427
19428 * common.opt (fcx-limited-range): Add SetByCombined flag.
19429 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19430 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19431 (fassociative-math, freciprocal-math): Likewise.
19432 (funsafe-math-optimizations): Likewise.
19433 * opth-gen.awk: Handle SetByCombined.
19434 * optc-gen.awk: Likewise.
ea4c3e65 19435 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
19436 (set_unsafe_math_optimizations_flags): Likewise.
19437 * doc/options.texi (Option properties): Document SetByCombined.
19438
32243d46
JM
194392011-02-08 Joseph Myers <joseph@codesourcery.com>
19440
19441 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19442 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19443 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19444 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19445 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19446
479c1fb3
SP
194472011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19448
19449 PR tree-optimization/46834
19450 PR tree-optimization/46994
19451 PR tree-optimization/46995
19452 * graphite-sese-to-poly.c (used_outside_reduction): New.
19453 (detect_commutative_reduction): Call used_outside_reduction.
19454 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19455 translate_scalar_reduction_to_array only when at least one
19456 loop-phi/close-phi tuple has been detected.
19457
3865a06f
RG
194582011-02-08 Richard Guenther <rguenther@suse.de>
19459
19460 PR middle-end/47639
19461 * tree-vect-generic.c (expand_vector_operations_1): Update
19462 stmts here ...
19463 (expand_vector_operations): ... not here. Cleanup EH info
19464 and the CFG if required.
19465
62902f3f
RG
194662011-02-08 Richard Guenther <rguenther@suse.de>
19467
19468 PR tree-optimization/47641
19469 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19470 require type compatibility.
19471
0efb9d64
AK
194722011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19473
19474 * gimple-low.c (lower_function_body): Don't remove the location of
19475 the return statement here.
19476 (lower_gimple_return): Do it here instead but only if the return
19477 statement is actually used twice.
19478
034b8ae4
RG
194792011-02-08 Richard Guenther <rguenther@suse.de>
19480
19481 PR tree-optimization/47632
19482 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19483 unused up_to_stmt parameter, return whether cfg-cleanup is
19484 necessary, remove EH info properly.
19485 (forward_propagate_into_gimple_cond): Adjust caller.
19486 (forward_propagate_into_cond): Likewise.
19487 (forward_propagate_comparison): Likewise.
19488 (tree_ssa_forward_propagate_single_use_vars): Make
19489 forward_propagate_comparison case similar to the two others.
19490
298362c8
NC
194912011-02-08 Nick Clifton <nickc@redhat.com>
19492
19493 * config/mn10300/mn10300.opt (mliw): New command line option.
19494 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19495 (liw_bundling): New automaton.
19496 (liw): New attribute.
19497 (liw_op): New attribute.
19498 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19499 (movsi_internal): Add LIW attributes.
19500 (andsi3): Likewise.
19501 (iorsi3): Likewise.
19502 (xorsi3): Likewise.
19503 (addsi3): Separate register and immediate alternatives.
19504 Add LIW attributes.
19505 (subsi3): Likewise.
19506 (cmpsi): Likewise.
19507 (aslsi3): Likewise.
19508 (lshrsi3): Likewise.
19509 (ashrsi3): Likewise.
19510 (liw): New pattern.
19511 * config/mn10300/mn10300.c (liw_op_names): New
19512 (mn10300_print_operand): Handle 'W' operand descriptor.
19513 (extract_bundle): New function.
19514 (check_liw_constraints): New function.
19515 (liw_candidate): New function.
19516 (mn10300_bundle_liw): New function.
19517 (mn10300_reorg): New function.
19518 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19519 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19520 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19521 __LIW__ or __NO_LIW__.
19522 * doc/invoke.texi: Describe the -mliw command line option.
19523
90488014
JDA
195242011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19525
19526 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19527 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19528 pthread_mutex_unlock): Remove.
19529 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19530 * config/pa/t-pa64: Likewise.
19531 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19532 shared libc if not linking against libpthread.
19533 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19534
689ff841
IS
195352011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19536
19537 PR target/47558
19538 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19539 on 10.6 and later to ensure that we always use the unwinder from
19540 the system. Only add -no_compact_unwind when tarteting darwin
19541 10.6 or later.
19542
821014aa
SE
195432011-02-07 Steve Ellcey <sje@cup.hp.com>
19544
19545 PR target/46997
19546 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19547 (vec_interleave_lowv2sf): Ditto.
19548 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19549 (vec_extract_oddv2sf): Ditto.
19550
41cf94fb
MS
195512011-02-07 Mike Stump <mikestump@comcast.net>
19552
62dea57d 19553 PR target/42333
41cf94fb
MS
19554 Add __ieee_divdc3 entry point.
19555 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19556 entry point.
19557 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19558 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19559 * config/darwin.c (darwin_rename_builtins): Add.
19560 * config/darwin-protos.h (darwin_rename_builtins): Add.
19561
ee09a3dd
MM
195622011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19563
19564 PR target/47636
19565 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19566 for the condition.
19567
83296cd0
MS
195682011-02-07 Mike Stump <mikestump@comcast.net>
19569
ea4c3e65 19570 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 19571
0f4e946f
DC
195722011-02-07 Denis Chertykov <chertykov@gmail.com>
19573
19574 PR target/47534
19575 * config/avr/libgcc.S (exit): Move .endfunc
19576
1ec87690
RG
195772011-02-07 Richard Guenther <rguenther@suse.de>
19578
19579 PR tree-optimization/47615
19580 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19581 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19582 (run_scc_vn): Initialize it.
19583 (visit_reference_op_load): Use it.
19584 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19585
b46ae6da
UW
195862011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19587
19588 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19589 DImode trapping arithmetic libfuncs.
19590
c0aae19c
RG
195912011-02-07 Richard Guenther <rguenther@suse.de>
19592
19593 PR tree-optimization/47621
19594 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19595 two duplicates ...
19596 (execute_update_addresses_taken): ... here. Make it more
19597 conservative in what we accept.
19598
295d926b
JM
195992011-02-06 Joseph Myers <joseph@codesourcery.com>
19600
19601 * config/sparc/freebsd.h (ASM_SPEC): Define.
19602 * config/sparc/vxworks.h (ASM_SPEC): Define.
19603
bdeb2471
JM
196042011-02-06 Joseph Myers <joseph@codesourcery.com>
19605
19606 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19607
d5d3781a
SB
196082011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19609
19610 * doc/invoke.texi: Remove reference to compiler internals from
19611 user documentation.
19612
19613 * reg-notes.def: Remove REG_VALUE_PROFILE.
19614 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19615
c42c09fc
JJ
196162011-02-05 Jakub Jelinek <jakub@redhat.com>
19617
19618 PR middle-end/47610
19619 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 19620 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 19621
beea2755
JZ
196222011-02-05 Jie Zhang <jie@codesourcery.com>
19623
19624 PR debug/42631
19625 * web.c (entry_register): Don't clobber the number of the
19626 first uninitialized reference in used[].
19627
a130584a
SP
196282011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19629
19630 PR tree-optimization/46194
19631 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19632 (build_classic_dist_vector_1): Do not represent classic distance
19633 vectors when the access functions are variating in different loops.
19634
962101ac
JM
196352011-02-04 Joseph Myers <joseph@codesourcery.com>
19636
19637 * config/mips/iris6.opt: New.
19638 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19639
55eaaa5b
RH
196402011-02-04 Richard Henderson <rth@redhat.com>
19641 Steve Ellcey <sje@cup.hp.com>
19642
19643 PR target/46997
19644 * config/ia64/predicates.md (mux1_brcst_element): New.
19645 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19646 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19647 (ia64_unpack_sign): New.
19648 (ia64_expand_unpack): Rewrite using new routines.
19649 (ia64_expand_widen_sum): Ditto.
19650 (ia64_expand_dot_prod_v8qi): Ditto.
19651 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19652 routines, add endian check.
19653 (pmpy2_even): Rename from pmpy2_r, add endian check.
19654 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19655 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19656 (vec_widen_smult_hi_v4hi): Ditto.
19657 (vec_widen_umult_lo_v4hi): Ditto.
19658 (vec_widen_umult_hi_v4hi): Ditto.
19659 (mulv2si3): Change endian checks.
19660 (sdot_prodv4hi): Rewrite with new calls.
19661 (udot_prodv4hi): New.
19662 (vec_pack_ssat_v4hi): Add endian check.
19663 (vec_pack_usat_v4hi): Ditto.
19664 (vec_pack_ssat_v2si): Ditto.
19665 (max1_even): Rename from max1_r, add endian check.
19666 (max1_odd): Rename from max1_l, add endian check.
19667 (*mux1_rev): Format change.
19668 (*mux1_mix): Ditto.
19669 (*mux1_shuf): Ditto.
19670 (*mux1_alt): Ditto.
19671 (*mux1_brcst_v8qi): Use new predicate.
19672 (vec_extract_evenv8qi): Remove endian check.
19673 (vec_extract_oddv8qi): Ditto.
19674 (vec_interleave_lowv4hi): Format change.
19675 (vec_interleave_highv4hi): Ditto.
19676 (mix2_even): Rename from mix2_r, add endian check.
19677 (mix2_odd): Rename from mux2_l, add endian check.
19678 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19679 (vec_extract_evenodd_helper): Format change.
19680 (vec_extract_evenv4hi): Remove endian check.
19681 (vec_extract_oddv4hi): Remove endian check.
19682 (vec_interleave_lowv2si): Format change.
19683 (vec_interleave_highv2si): Format change.
19684 (vec_initv2si): Remove endian check.
19685 (vecinit_v2si): Add endian check.
19686 (reduc_splus_v2sf): Add endian check.
19687 (reduc_smax_v2sf): Ditto.
19688 (reduc_smin_v2sf): Ditto.
19689 (vec_initv2sf): Remove endian check.
19690 (fpack): Add endian check.
19691 (fswap): Add endian check.
19692 (vec_interleave_highv2sf): Add endian check.
19693 (vec_interleave_lowv2sf): Add endian check.
19694 (fmix_lr): Add endian check.
19695 (vec_setv2sf): Format change.
19696 (*vec_extractv2sf_0_be): Use shift to extract operand.
19697 (*vec_extractv2sf_1_be): New.
19698 (vec_pack_trunc_v4hi): Add endian check.
19699 (vec_pack_trunc_v2si): Format change.
19700
dcde5957
JJ
197012011-02-04 Jakub Jelinek <jakub@redhat.com>
19702
19703 PR inline-asm/23200
19704 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 19705 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
19706 (stmt_is_replaceable_p): New function.
19707 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19708 callers.
19709 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19710 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19711 SSA_NAME_DEF_STMT.
19712 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19713
a64a8e5a
JM
197142011-02-04 Joseph Myers <joseph@codesourcery.com>
19715
19716 * config/rs6000/xilinx.opt: New.
19717 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19718
4da2ed2f
JM
197192011-02-04 Joseph Myers <joseph@codesourcery.com>
19720
19721 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19722
a6e508f9
AS
197232011-02-03 Anatoly Sokolov <aesok@post.ru>
19724
19725 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19726 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19727 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19728 secondary_reload_info, xtensa_secondary_reload): Remove.
19729 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19730 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19731 (xtensa_preferred_reload_class): Make static. Change return and
19732 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19733 Use CONST_DOUBLE_P predicate.
19734 (xtensa_preferred_output_reload_class): New function.
19735 (xtensa_secondary_reload): Make static.
19736
82dc0de3
JM
197372011-02-03 Joseph Myers <joseph@codesourcery.com>
19738
19739 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19740 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19741 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19742
7fece979
JJ
197432011-02-03 Jakub Jelinek <jakub@redhat.com>
19744
19745 PR middle-end/31490
19746 * output.h (SECTION_RELRO): Define.
19747 (SECTION_MACH_DEP): Adjust.
19748 (get_variable_section): New prototype.
19749 * varpool.c (varpool_finalize_named_section_flags): New function.
19750 (varpool_assemble_pending_decls): Call it.
19751 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19752 * cgraphunit.c (cgraph_output_in_order): Call
19753 varpool_finalize_named_section_flags.
19754 * varasm.c (get_section): Allow section flags conflicts between
19755 relro and read-only sections if the section hasn't been declared yet.
19756 Set SECTION_OVERRIDE after diagnosing section type conflict.
19757 (get_variable_section): No longer static.
19758 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19759 readonly sections that need relocations.
19760 (decl_readonly_section_1): New function.
19761 (decl_readonly_section): Use it.
19762
19763 Revert:
509d65dd 19764 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
19765 Steve Ellcey <sje@cup.hp.com>
19766
19767 PR middle-end/31490
19768 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19769 if section attribute used.
19770
d18d5478
JJ
197712011-02-03 Jakub Jelinek <jakub@redhat.com>
19772
19773 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19774 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19775 (darwin_init_sections): Remove assertion.
19776
6479ed4b
NC
197772011-02-03 Nick Clifton <nickc@redhat.com>
19778
19779 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19780 lt and ge.
38be4072 19781 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
19782 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19783 instead of "n" and "pz".
19784 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19785 CC_FLAG_S.
19786
89843f5d
JJ
197872011-02-03 Jakub Jelinek <jakub@redhat.com>
19788
65450d64
JJ
19789 PR target/47312
19790 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19791 fma, expand FMA_EXPR as fma{,f,l} call.
19792
7d58701c
JJ
19793 PR lto/47274
19794 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19795 copy them into a unsigned char variable and pass address of it to
19796 lto_output_data_stream.
19797
89843f5d
JJ
19798 PR target/47564
19799 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19800 around backend_init_target and lang_dependent_init_target calls.
19801 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19802 (verify_cgraph_node): Don't call set_cfun here. Use
19803 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19804 Set error_found for incorrectly represented calls to thunks.
19805
4deef538
AO
198062011-02-03 Alexandre Oliva <aoliva@redhat.com>
19807
19808 PR debug/43092
19809 PR rtl-optimization/43494
19810 * rtl.h (for_each_inc_dec_fn): New type.
19811 (for_each_inc_dec): Declare.
19812 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19813 (for_each_inc_dec_find_inc_dec): New fn.
19814 (for_each_inc_dec_find_mem): New fn.
19815 (for_each_inc_dec): New fn.
19816 * dse.c (struct insn_size): Remove.
19817 (replace_inc_dec, replace_inc_dec_mem): Remove.
19818 (emit_inc_dec_insn_before): New fn.
19819 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19820 (canon_address): Pass mem modes to cselib_lookup.
19821 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19822 (cselib_lookup_from_insn): Likewise.
19823 (cselib_subst_to_values): Likewise.
19824 * cselib.c (find_slot_memmode): New var.
19825 (cselib_find_slot): New fn. Use it instead of
19826 htab_find_slot_with_hash everywhere.
19827 (entry_and_rtx_equal_p): Use find_slot_memmode.
19828 (autoinc_split): New fn.
19829 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19830 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19831 Deal with autoinc. Special-case recursion into MEMs.
19832 (cselib_hash_rtx): Likewise.
19833 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19834 address and MEM modes.
19835 (cselib_subst_to_values): Add memmode, pass it on.
19836 Deal with autoinc.
19837 (cselib_lookup): Add memmode argument, pass it on.
19838 (cselib_lookup_from_insn): Add memmode.
19839 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19840 (struct cselib_record_autoinc_data): New.
19841 (cselib_record_autoinc_cb): New fn.
19842 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19843 mode to cselib_lookup. Reset autoinced REGs here instead of...
19844 (cselib_process_insn): ... here.
19845 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19846 to cselib_lookup.
19847 (add_uses): Likewise, also to cselib_subst_to_values.
19848 (add_stores): Likewise.
19849 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19850 cselib_subst_to_values.
19851 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19852 * gcse.c (do_local_cprop): Adjusted.
19853 * postreload.c (reload_cse_simplify_set): Adjusted.
19854 (reload_cse_simplify_operands): Adjusted.
19855 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19856
1551d44a
AO
198572011-02-03 Alexandre Oliva <aoliva@redhat.com>
19858
19859 PR tree-optimization/45122
19860 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19861 unsafe assumptions when there's more than one loop exit.
19862
c9485473
MM
198632011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19864
19865 PR target/47272
19866 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19867 Document using vector double with the load/store builtins, and
19868 that the load/store builtins always use Altivec instructions.
19869
19870 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19871 to use altivec memory instructions, even on VSX.
19872 (vector_altivec_store_<mode>): Ditto.
19873
19874 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19875 function.
19876
19877 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19878 V2DF, V2DI support to load/store overloaded builtins.
19879
19880 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19881 altivec load/store builtins for V2DF/V2DI types.
19882
19883 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19884 set avoid indexed addresses on power6 if -maltivec.
19885 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19886 vector_altivec_load/vector_altivec_store builtins.
19887 (altivec_expand_st_builtin): Ditto.
19888 (altivec_expand_builtin): Add VSX memory builtins.
19889 (rs6000_init_builtins): Add V2DI types to internal types.
19890 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19891 load/store builtins.
19892 (rs6000_address_for_altivec): Insure memory address is appropriate
19893 for Altivec.
19894
19895 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19896 vec_vsx_ld and vec_vsx_st.
19897 (vsx_store_<mode>): Ditto.
19898
19899 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19900 variables to hold long long types for VSX vector memory builtins.
19901 (RS6000_BTI_unsigned_long_long): Ditto.
19902 (long_long_integer_type_internal_node): Ditti.
19903 (long_long_unsigned_type_internal_node): Ditti.
19904
19905 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19906 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19907 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19908
19909 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19910 short cuts.
19911 (vec_vsx_st): Ditto.
19912
b24d1acf
JM
199132011-02-02 Joseph Myers <joseph@codesourcery.com>
19914
19915 * config/pa/pa-hpux10.opt: New.
19916 * config/hpux11.opt (pthread): New Driver option.
19917 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19918 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19919
aa18dd0f
JM
199202011-02-02 Joseph Myers <joseph@codesourcery.com>
19921
19922 * config/ia64/vms.opt: New.
19923 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19924
28fc3eee
MM
199252011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19926
19927 PR target/47580
19928 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19929 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19930 generator functions.
19931 (vsx_floatuns<VSi><mode>2): Ditto.
19932 (vsx_fix_trunc<mode><VSi>2): Ditto.
19933 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19934
b5838b1f
JM
199352011-02-02 Joseph Myers <joseph@codesourcery.com>
19936
19937 * config/i386/djgpp.opt (posix): New Driver option.
19938
0db8fa89
GP
199392011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19940
19941 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19942 Move to the unsupported targets list.
19943
9cd4f22a
PB
199442011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19945
19946 PR rtl-optimization/47525
19947 * df-scan.c: Update copyright years.
19948 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19949 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19950
9ed8059c
RO
199512011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19952
19953 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19954 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19955 (ASM_OUTPUT_ASCII): Remove.
19956 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19957
2a737389
JL
199582011-02-02 Jeff Law <law@redhat.com>
19959
19960 PR middle-end/47543
19961 * reload.c (find_reloads_address): Handle reg+d address where both
19962 components are invalid by reloading the entire address.
19963
9dac82c4
SP
199642011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19965 Richard Guenther <rguenther@suse.de>
19966
19967 PR tree-optimization/40979
19968 PR bootstrap/47044
19969 * passes.c (init_optimization_passes): After LIM call copy_prop
19970 and DCE to clean up.
19971 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19972
14dd9aab
SP
199732011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19974
19975 PR tree-optimization/47576
19976 PR tree-optimization/47555
19977 * doc/invoke.texi (scev-max-expr-complexity): Documented.
19978 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19979 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19980 * tree-scalar-evolution.c (follow_ssa_edge): Use
19981 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19982
5cbf5c20
RG
199832011-02-02 Richard Guenther <rguenther@suse.de>
19984
19985 PR tree-optimization/47566
19986 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19987
83d70792
AO
199882011-02-02 Alexandre Oliva <aoliva@redhat.com>
19989
e829c321
AO
19990 PR debug/47106
19991 PR debug/47402
19992 * tree-inline.c (declare_return_variable): Remove unused caller
19993 variable.
19994
83d70792
AO
19995 PR debug/47106
19996 PR debug/47402
19997 * tree-flow-inline.h (clear_is_used, is_used_p): New.
19998 * cfgexpand.c (account_used_vars_for_block): Use them.
19999 * tree-nrv.c (tree_nrv): Likewise.
20000 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
20001 (dump_scope_block): Likewise.
20002 (remove_unused_locals): Likewise.
20003
aaa2ac93
AO
20004 PR debug/47106
20005 PR debug/47402
20006 * tree-inline.c (declare_return_variable): Add result decl to
20007 local decls only once.
20008 * gimple-low.c (record_vars_into): Mark newly-created variables
20009 as referenced.
20010
a59d15cf
AO
200112011-02-02 Alexandre Oliva <aoliva@redhat.com>
20012
20013 PR debug/47498
20014 PR debug/47501
20015 PR debug/45136
20016 PR debug/45130
20017 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20018 debug insns.
20019 (no_real_insns_p, schedule_block, set_priorities): Drop special
20020 treatment of boundary debug insns.
38be4072 20021 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
20022 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
20023 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20024 (BOUNDARY_DEBUG_INSN_P): Likewise.
20025 (SCHEDULE_DEBUG_INSN_P): Likewise.
20026 * sched-rgn.c (init_ready_list): Drop special treatment of
20027 boundary debug insns.
20028 * final.c (rest_of_clean_state): Clear notes' BB.
20029
6fc2f091
JM
200302011-02-01 Joseph Myers <joseph@codesourcery.com>
20031
20032 * config/openbsd.opt (assert=): New Driver option.
20033
fc523387
JM
200342011-02-01 Joseph Myers <joseph@codesourcery.com>
20035
20036 * config/i386/nto.opt: New.
20037 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
20038
6d9821e5
JM
200392011-02-01 Joseph Myers <joseph@codesourcery.com>
20040
20041 * config/i386/netware.opt: New.
20042 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
20043
cef932d4
JM
200442011-02-01 Joseph Myers <joseph@codesourcery.com>
20045
20046 * config/interix.opt (posix): New Driver option.
20047
22843acd
DD
200482011-02-01 DJ Delorie <dj@redhat.com>
20049
56490b74
DD
20050 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
20051
22843acd
DD
20052 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
20053 class for A0/A1.
20054
199c8f2f
SP
200552011-02-01 Sebastian Pop <sebastian.pop@amd.com>
20056
20057 PR tree-optimization/47561
20058 * toplev.c (process_options): Print the Graphite flags. Add
20059 flag_loop_flatten to the list of options requiring Graphite.
20060
926bcf22
JM
200612011-02-01 Joseph Myers <joseph@codesourcery.com>
20062
20063 * config/i386/cygming.opt (posix): New Driver option.
20064
59793c51
JM
200652011-02-01 Joseph Myers <joseph@codesourcery.com>
20066
20067 * config/arm/vxworks.opt: New.
20068 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
20069
183c38a4
JM
200702011-02-01 Joseph Myers <joseph@codesourcery.com>
20071
20072 * config/alpha/elf.opt: New.
20073 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
20074 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
20075
9939e416
RG
200762011-02-01 Richard Guenther <rguenther@suse.de>
20077
20078 PR tree-optimization/47559
20079 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
20080 store-motion on references that can throw.
20081
4a3c9687
BS
200822011-02-01 Bernd Schmidt <bernds@codesourcery.com>
20083
20084 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
20085 * tree-pass.h (TDF_CSELIB): New macro.
20086 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
20087 cselib_lookup): Check for it rather than for TDF_DETAILS.
20088
dd3b31fb
L
200892011-02-01 H.J. Lu <hongjiu.lu@intel.com>
20090
20091 PR driver/47547
20092 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
20093 is HOST_BIT_BUCKET.
20094
20095 * opts.c (finish_options): Don't add x_aux_base_name if it is
20096 HOST_BIT_BUCKET.
20097
34c1de79
RG
200982011-02-01 Richard Guenther <rguenther@suse.de>
20099
20100 PR tree-optimization/47555
20101 Revert
20102 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
20103
20104 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20105
dd2804d2
SB
201062011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
20107
20108 PR gcc/46692
20109 * config/lm32/t-lm32: Add multilib for all CPU options.
20110
3fd3b156
RG
201112011-02-01 Richard Guenther <rguenther@suse.de>
20112
20113 PR tree-optimization/47541
20114 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
20115 sure to have a field at offset zero.
20116
f16072b6
JM
201172011-01-31 Joseph Myers <joseph@codesourcery.com>
20118
20119 * config/arc/arc.opt (EB, EL): New Driver options.
20120
6456cf2e
JM
201212011-01-31 Joseph Myers <joseph@codesourcery.com>
20122
20123 * config/alpha/osf5.opt: New.
20124 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
20125
cdde6ab4
JM
201262011-01-31 Joseph Myers <joseph@codesourcery.com>
20127
20128 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
20129
7633415c
SP
201302011-01-31 Sebastian Pop <sebastian.pop@amd.com>
20131
20132 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
20133 -floop-interchange.
20134 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
20135 is an alias of -floop-interchange and that it requires the
20136 Graphite infrastructure.
20137 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
20138 flag_loop_interchange based on the value of flag_tree_loop_linear.
20139
0425d6f5
JJ
201402011-01-31 Jakub Jelinek <jakub@redhat.com>
20141 Richard Guenther <rguenther@suse.de>
20142
20143 PR tree-optimization/47538
20144 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
20145 type instead of r1type, except for comparisons. For right
20146 shifts and comparisons punt if there are mismatches in
20147 sizetype vs. non-sizetype types.
20148
500b16c3
RO
201492011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20150
20151 * doc/sourcebuild.texi (Effective-Target Keywords): Document
20152 avx_runtime.
20153
e279edb0
RO
201542011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20155
20156 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
20157 version number.
20158 * configure: Regenerate.
20159
c6092243
RO
201602011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20161
20162 * configure.ac (gcc_cv_ld_static_option): Define.
20163 (gcc_cv_ld_dynamic_option): Define.
20164 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
20165 instead.
20166 (HAVE_LD_STATIC_DYNAMIC): Update message.
20167 (LD_STATIC_OPTION): Define.
20168 (LD_DYNAMIC_OPTION): Define.
20169 * configure: Regenerate.
20170 * config.in: Regenerate.
20171 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
20172 HAVE_LD_STATIC_DYNAMIC]: Use them.
20173
d7862be3
NC
201742011-01-31 Nick Clifton <nickc@redhat.com>
20175
20176 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
20177 registers inside interrupt handlers if the handler is not a leaf
20178 function.
20179
ba4ec0e0
NC
201802011-01-31 Nick Clifton <nickc@redhat.com>
20181
20182 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20183 reg_renumber returning an INVALID_REGNUM.
20184
29a63921
AO
201852011-01-31 Alexandre Oliva <aoliva@redhat.com>
20186
20187 PR libgcj/44341
20188 * doc/install.texi: Document host options discarded when cross
20189 configuring target libraries.
20190
ef591d3f
AO
201912011-01-31 Alexandre Oliva <aoliva@redhat.com>
20192
20193 Reverted:
20194 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20195 PR debug/45136
20196 PR debug/45130
20197 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20198 debug insns.
20199 (no_real_insns_p, schedule_block, set_priorities): Drop special
20200 treatment of boundary debug insns.
38be4072 20201 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
20202 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20203 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20204 (BOUNDARY_DEBUG_INSN_P): Likewise.
20205 (SCHEDULE_DEBUG_INSN_P): Likewise.
20206 * sched-rgn.c (init_ready_list): Drop special treatment of
20207 boundary debug insns.
20208 * final.c (rest_of_clean-state): Clear notes' BB.
20209
61052244
AM
202102011-01-31 Alan Modra <amodra@gmail.com>
20211
20212 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20213 toc relative expressions as we do in print_operand_address.
20214
c4c8962b
KH
202152011-01-30 Kazu Hirata <kazu@codesourcery.com>
20216
20217 * doc/extend.texi: Follow spelling conventions.
20218 * doc/invoke.texi: Fix a typo.
20219
e543b94c
JM
202202011-01-30 Joseph Myers <joseph@codesourcery.com>
20221
20222 * config/hpux11.opt: New.
20223 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20224 ia64*-*-hpux*): Use hpux11.opt.
20225
509d65dd 202262011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
20227
20228 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20229 to tmake_file.
20230
7be03a0e
GP
202312011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20232
20233 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20234 support sites.
20235
419d1d37
GP
202362011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20237
b596ed64
GP
20238 * doc/install.texi (Binaries): Remove outdated reference for
20239 Motorola 68HC11/68HC12 downloads.
20240
202412011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 20242
419d1d37
GP
20243 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20244 Drepper's paper.
20245
4406d0e9
JW
202462011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
20247
20248 PR bootstrap/47147
20249 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20250 used by NetBSD.
20251
38be4072 202522011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
20253
20254 * value-prof.c (check_counter): Corrected error message.
20255
0cd98787
JZ
202562011-01-29 Jie Zhang <jie@codesourcery.com>
20257
20258 * config/arm/arm.c (arm_legitimize_reload_address): New.
20259 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20260 arm_legitimize_reload_address.
38be4072 20261 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 20262
9b798ac5
ILT
202632011-01-28 Ian Lance Taylor <iant@google.com>
20264
20265 * godump.c (go_define): Ignore macros whose definitions include
20266 two adjacent operands.
20267
591e29d9
JJ
202682011-01-28 Jakub Jelinek <jakub@redhat.com>
20269
20270 PR target/42894
20271 * varasm.c (force_const_mem): Store copy of x in desc->constant
20272 instead of x itself.
20273 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20274 itself into REG_EQUAL note.
20275
62dcc44a
JM
202762011-01-28 Joseph Myers <joseph@codesourcery.com>
20277
20278 * config/freebsd.opt (posix, rdynamic): New Driver options.
20279
c9f58b9a
RO
202802011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20281
20282 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20283 -Bstatic/-Bdynamic.
20284 * configure: Regenerate.
20285
5f02b9db
JM
202862011-01-27 Joseph Myers <joseph@codesourcery.com>
20287
20288 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20289 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20290
5df97412
AS
202912011-01-27 Anatoly Sokolov <aesok@post.ru>
20292
20293 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20294 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20295 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20296 (s390_preferred_reload_class): Make static. Change return and
20297 'rclass' argument type to reg_class_t.
20298
779d4b91
JH
202992011-01-27 Jan Hubicka <jh@suse.cz>
20300
20301 PR middle-end/46949
20302 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20303 (process_function_and_variable_attributes): Check defined weakrefs.
20304
e80b21ed
MJ
203052011-01-27 Martin Jambor <mjambor@suse.cz>
20306
20307 PR tree-optimization/47228
20308 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20309 build_ref_for_offset.
20310
6dcc4f31
UW
203112011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20312
20313 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20314
509d65dd 203152011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
20316
20317 PR rtl-optimization/46856
20318 * postreload.c (reload_combine_recognize_const_pattern): Do not
20319 separate cc0 setter and user on cc0 targets.
20320
04af8788
NP
203212011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20322
20323 PR c/43082
20324 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20325 passed a VOID_TYPE expression, immediately emit an error and
20326 return error_mark_node.
20327
f7a60085
JL
203282011-01-26 Jeff Law <law@redhat.com>
20329
20330 PR rtl-optimization/47464
20331 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20332 rather than may_trap_p as needed.
20333
5c2917ec
DD
203342011-01-26 DJ Delorie <dj@redhat.com>
20335
20336 PR rtl-optimization/46878
20337 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20338 setter/user dependency as well.
20339
bef16e87
EB
203402011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20341
20342 PR rtl-optimization/44469
20343 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20344 after removing trivially dead basic blocks.
20345
c75d884b
JM
203462011-01-26 Joseph Myers <joseph@codesourcery.com>
20347
20348 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20349 * config/frv/frv.h (LINK_SPEC): Likewise.
20350 * config/i386/netware.h (LINK_SPEC): Likewise.
20351 * config/m68k/linux.h (ASM_SPEC): Likewise.
20352 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20353 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20354 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20355 * config/sparc/linux.h (ASM_SPEC): Likewise.
20356 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20357 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20358
d3153553
JM
203592011-01-26 Joseph Myers <joseph@codesourcery.com>
20360
20361 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20362 * config/frv/frv.h (ASM_SPEC): Likewise.
20363 * config/m68k/linux.h (ASM_SPEC): Likewise.
20364 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20365 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20366 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20367 * config/sparc/linux.h (ASM_SPEC): Likewise.
20368 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20369 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20370
b89b1e9d
JM
203712011-01-26 Joseph Myers <joseph@codesourcery.com>
20372
20373 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20374 * config/frv/frv.h (LINK_SPEC): Likewise.
20375 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20376
12eb1a9c
JM
203772011-01-26 Joseph Myers <joseph@codesourcery.com>
20378
20379 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20380 * config/frv/frv.h (ASM_SPEC): Likewise.
20381 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20382 * config/m68k/linux.h (ASM_SPEC): Likewise.
20383 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20384 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20385 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20386 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20387 * config/sparc/linux.h (ASM_SPEC): Likewise.
20388 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20389 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20390 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20391
e435f098
SE
203922011-01-26 Steve Ellcey <sje@cup.hp.com>
20393
20394 PR target/46997
20395 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20396 (*mux2): Ditto.
20397 (vec_extract_evenodd_help): Ditto.
20398 (vec_extract_evenv4hi): Ditto.
20399 (vec_extract_oddv4hi): Ditto.
20400 (vec_interleave_lowv2si): Ditto.
20401 (vec_interleave_highv2si): Ditto.
20402 (vec_extract_evenv2si): Ditto.
20403 (vec_extract_oddv2si: Ditto.
20404 (vec_pack_trunc_v2si): Ditto.
20405
34f0eee0
JH
204062011-01-22 Jan Hubicka <jh@suse.cz>
20407
20408 PR target/47237
20409 * cgraph.h (cgraph_local_info): New field can_change_signature.
20410 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20411 signature can change.
20412 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20413 can change.
20414 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20415 (cgraph_function_versioning): We can not change signature of functions
20416 that don't allow that.
20417 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20418 (lto_input_node): Likewise.
38be4072
UB
20419 * ipa-inline.c (compute_inline_parameters): Compute
20420 local.can_change_signature.
34f0eee0 20421 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
20422 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20423 functions that can not change signature.
34f0eee0 20424 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
20425 init_cumulative_args): Do not use local calling conventions
20426 for functions that can not change signature.
34f0eee0 20427
980ca891
JH
204282011-01-22 Jan Hubicka <jh@suse.cz>
20429
20430 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20431
768e3c60
RG
204322011-01-26 Richard Guenther <rguenther@suse.de>
20433
20434 PR tree-optimization/47190
61052244
AM
20435 * cgraphunit.c (process_common_attributes): New function.
20436 (process_function_and_variable_attributes): Use it.
768e3c60 20437
21d6a1c7
RG
204382011-01-26 Richard Guenther <rguenther@suse.de>
20439
20440 PR lto/47423
20441 * cgraphbuild.c (record_eh_tables): Record reference to personality
20442 function.
20443
48bb58b1
AO
204442011-01-26 Alexandre Oliva <aoliva@redhat.com>
20445
20446 PR debug/45454
20447 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20448 non-debug insns from moving up.
20449
58c741a6
DK
204502011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20451
20452 PR target/40125
20453 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20454 t-dlldir{,-x} fragment for build and add it to tmake_file.
20455 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20456 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20457 * config/i386/t-dlldir: New file.
20458 (SHLIB_DLLDIR): Define.
20459 * config/i386/t-dlldir-x: New file.
20460 (SHLIB_DLLDIR): Define.
20461 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20462 (SHLIB_INSTALL): Use it.
20463
bff99262
CLT
204642011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20465
20466 PR target/47246
20467 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20468 lower bound of the allowed Thumb-2 coprocessor load/store
20469 index range to -256. Add explaining comment.
20470
82c03907
ILT
204712011-01-25 Ian Lance Taylor <iant@google.com>
20472
20473 * godump.c (go_define): Improve lexing of macro expansion to only
20474 accept expressions which match Go spec.
20475
47ea1edf
DK
204762011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20477
d4dba752 20478 PR c++/43601
47ea1edf
DK
20479 * tree.c (handle_dll_attribute): Handle it.
20480 * doc/extend.texi (@item dllexport): Mention it.
20481 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20482
744f0946
ILT
204832011-01-25 Ian Lance Taylor <iant@google.com>
20484
20485 PR tree-optimization/26854
20486 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20487 (decl_jump_unsafe): Move higher in file, with no other change.
20488 (bind): Set has_jump_unsafe_decl if appropriate.
20489 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20490 (check_earlier_gotos): Likewise.
20491 (c_check_switch_jump_warnings): Likewise.
20492
5734f2b3
JW
204932011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20494
20495 * doc/invoke.texi (Warning Options): Add missing hyphen.
20496 (-fprofile-dir): Minor grammatical fixes.
20497 (-fbranch-probabilities): Likewise.
20498
9bdbdcef
AO
204992011-01-25 Alexandre Oliva <aoliva@redhat.com>
20500
20501 PR debug/45136
20502 PR debug/45130
20503 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20504 debug insns.
20505 (no_real_insns_p, schedule_block, set_priorities): Drop special
20506 treatment of boundary debug insns.
38be4072 20507 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
20508 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20509 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20510 (BOUNDARY_DEBUG_INSN_P): Likewise.
20511 (SCHEDULE_DEBUG_INSN_P): Likewise.
20512 * sched-rgn.c (init_ready_list): Drop special treatment of
20513 boundary debug insns.
20514 * final.c (rest_of_clean-state): Clear notes' BB.
20515
b305e3da
SP
205162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20517
20518 * Makefile.in (LAMBDA_H): Removed.
20519 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20520 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20521 lambda-trans.o, and tree-loop-linear.o.
20522 (lto-symtab.o): Remove dependence on LAMBDA_H.
20523 (tree-loop-linear.o): Remove rule.
20524 (lambda-mat.o): Same.
20525 (lambda-trans.o): Same.
20526 (lambda-code.o): Same.
20527 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20528 (tree-vect-slp.o): Same.
20529 * hwint.h (gcd): Moved here.
20530 (least_common_multiple): Same.
20531 * lambda-code.c: Removed.
20532 * lambda-mat.c: Removed.
20533 * lambda-trans.c: Removed.
20534 * lambda.h: Removed.
20535 * tree-loop-linear.c: Removed.
20536 * lto-symtab.c: Do not include lambda.h.
20537 * omega.c (gcd): Removed.
20538 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20539 * tree-data-ref.c (print_lambda_vector): Moved here.
20540 (lambda_vector_copy): Same.
20541 (lambda_matrix_copy): Same.
20542 (lambda_matrix_id): Same.
20543 (lambda_vector_first_nz): Same.
20544 (lambda_matrix_row_add): Same.
20545 (lambda_matrix_row_exchange): Same.
20546 (lambda_vector_mult_const): Same.
20547 (lambda_vector_negate): Same.
20548 (lambda_matrix_row_negate): Same.
20549 (lambda_vector_equal): Same.
20550 (lambda_matrix_right_hermite): Same.
20551 * tree-data-ref.h: Do not include lambda.h.
20552 (lambda_vector): Moved here.
20553 (lambda_matrix): Same.
20554 (dependence_level): Same.
20555 (lambda_transform_legal_p): Removed declaration.
20556 (lambda_collect_parameters): Same.
20557 (lambda_compute_access_matrices): Same.
20558 (lambda_vector_gcd): Same.
20559 (lambda_vector_new): Same.
20560 (lambda_vector_clear): Same.
20561 (lambda_vector_lexico_pos): Same.
20562 (lambda_vector_zerop): Same.
20563 (lambda_matrix_new): Same.
20564 * tree-flow.h (least_common_multiple): Removed declaration.
20565 * tree-parloops.c (lambda_trans_matrix): Moved here.
20566 (LTM_MATRIX): Same.
20567 (LTM_ROWSIZE): Same.
20568 (LTM_COLSIZE): Same.
20569 (LTM_DENOMINATOR): Same.
20570 (lambda_trans_matrix_new): Same.
20571 (lambda_matrix_vector_mult): Same.
20572 (lambda_transform_legal_p): Same.
20573 * tree-pass.h (pass_linear_transform): Removed declaration.
20574 * tree-ssa-loop.c (tree_linear_transform): Removed.
20575 (gate_tree_linear_transform): Removed.
20576 (pass_linear_transform): Removed.
20577 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20578 flag_loop_interchange.
20579
6bdfdb96
JJ
205802011-01-25 Jakub Jelinek <jakub@redhat.com>
20581
20582 PR tree-optimization/47265
20583 PR tree-optimization/47443
20584 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20585 if name still has some uses.
20586
e4cba915
MJ
205872011-01-25 Martin Jambor <mjambor@suse.cz>
20588
20589 PR tree-optimization/47382
20590 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20591 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20592
509d65dd 205932011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
20594
20595 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20596 sjlj_except_unwind_info.
20597
194313e2
RG
205982011-01-25 Richard Guenther <rguenther@suse.de>
20599
20600 PR tree-optimization/47426
20601 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20602 visible functions results escape.
20603
147a0bcf
JJ
206042011-01-25 Jakub Jelinek <jakub@redhat.com>
20605
20606 PR target/45701
20607 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20608 (arm_get_frame_offsets): Use it.
20609
db963b52
SP
206102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20611 Jakub Jelinek <jakub@redhat.com>
20612
20613 PR tree-optimization/47271
20614 * tree-if-conv.c (bb_postdominates_preds): New.
20615 (if_convertible_bb_p): Call bb_postdominates_preds.
20616 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20617 (predicate_scalar_phi): Call bb_postdominates_preds.
20618
bcddd3b9
NC
206192011-01-25 Nick Clifton <nickc@redhat.com>
20620
20621 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20622 * config/rx/rx.c (rx_function_value): Likewise.
20623 (rx_promote_function_mode): Likewise.
20624 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20625 in order to make it legitimate.
38be4072
UB
20626 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20627 make sure that the first operand is the same as the result register.
bcddd3b9
NC
20628 (addsi3_unspec): Delete.
20629 (subdi3): Do not accept immediate operands.
20630 (subdi3_internal): Likewise.
20631
7e6cb022
JL
206322011-01-25 Jeff Law <law@redhat.com>
20633
20634 PR rtl-optimization/37273
20635 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20636 handle them like argument loads from stack slots. Do not double
20637 count memory for memory constants and argument loads from stack slots.
20638
9ffa621e
JJ
206392011-01-25 Jakub Jelinek <jakub@redhat.com>
20640
20641 PR tree-optimization/47427
20642 PR tree-optimization/47428
20643 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20644 coalesce if the new root var would be TREE_READONLY.
20645
5bd6e652
RG
206462011-01-25 Richard Guenther <rguenther@suse.de>
20647
20648 PR middle-end/47414
20649 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20650 correct type for TBAA.
20651
7c48ea69
SP
206522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20653
20654 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20655 (close_phi_written_to_memory): Call for_each_index with
20656 dr_indices_valid_in_loop.
20657
38013f25
SP
206582011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20659
20660 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20661 when it is initialized.
20662
5c640e29
SP
206632011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20664
20665 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20666 call to graphite_find_data_references_in_stmt.
20667 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20668 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20669 call to graphite_find_data_references_in_stmt.
20670 (analyze_drs_in_stmts): Same.
20671 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20672 in which the scalar analysis of indices is performed.
20673 (create_data_ref): Same. Update call to dr_analyze_indices.
20674 (find_data_references_in_stmt): Update call to create_data_ref.
20675 (graphite_find_data_references_in_stmt): Same.
20676 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20677 declaration.
20678 (create_data_ref): Same.
20679 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20680 call to create_data_ref.
20681
ac53c069
SP
206822011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20683
20684 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 20685 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 20686
3d17df15
SP
206872011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20688
20689 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20690 VAR_DECL, PARM_DECL, and RESULT_DECL.
20691
c513da01
SP
206922011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20693
20694 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20695 in a reduction PBB.
20696 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20697 that have already been marked as PBB_IS_REDUCTION.
20698
3a292d59
SP
206992011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20700
20701 * graphite-scop-detection.c (same_close_phi_node): New.
20702 (remove_duplicate_close_phi): New.
20703 (make_close_phi_nodes_unique): New.
20704 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20705
ba858447
SP
207062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20707
20708 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20709 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20710 of both data references to be the same.
20711
8d865c56
SP
207122011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20713
38be4072
UB
20714 * graphite-dependences.c (build_lexicographical_constraint): Remove
20715 the gdim parameter.
20716 (build_lexicographical_constraint): Adjust call to
20717 ppl_powerset_is_empty.
8d865c56
SP
20718 (dependence_polyhedron): Same.
20719 (graphite_legal_transform_dr): Same.
20720 (graphite_carried_dependence_level_k): Same.
38be4072
UB
20721 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20722 parameter.
8d865c56
SP
20723 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20724
50034a36
SP
207252011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20726
20727 * graphite-sese-to-poly.c
20728 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20729 (close_phi_written_to_memory): New.
20730 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20731 and unshare_expr.
20732
0deada9e
SP
207332011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20734
20735 * doc/install.texi: Update the expected version number of PPL to 0.11.
20736 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20737 #if PPL_VERSION_MINOR < 11.
20738
d7d3d6af
SP
207392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20740
20741 * graphite-dependences.c: Include graphite-cloog-util.h.
20742 (new_poly_ddr): Inlined into dependence_polyhedron.
20743 (free_poly_ddr): Moved close by new_poly_ddr.
20744 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20745 Early return NULL when ppl_powerset_is_empty returns true.
20746 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20747 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20748 (graphite_legal_transform_dr): Call new_poly_ddr.
20749 (graphite_carried_dependence_level_k): Same.
20750 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20751 (dot_transformed_deps_stmt_1): Removed.
20752 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20753 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20754 (dot_deps_1): Call dot_deps_2.
20755 * Makefile.in (graphite-dependences.o): Add missing dependence on
20756 graphite-cloog-util.h.
20757
28c5db57
SP
207582011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20759
20760 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20761 (build_lexicographical_constraint): Same.
20762 (dependence_polyhedron_1): Same.
20763 (graphite_legal_transform_dr): Same.
20764 (graphite_carried_dependence_level_k): Same.
20765 * graphite-ppl.c (ppl_powerset_is_empty): New.
20766 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20767 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20768
5168d98f
SP
207692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20770
20771 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20772 the "a followed by b" relation and document it.
20773
4a40293a
SP
207742011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20775
20776 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20777 iteration when the bag of constraints is empty.
20778
271fb6fa
SP
207792011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20780
20781 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20782
92d23680
SP
207832011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20784
20785 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20786 nest and two loop depths as parameters.
20787 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20788 lst_perfect_nestify.
20789
2f51deff
SP
207902011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20791
20792 * graphite-dependences.c (print_pddr): Call
20793 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20794
07f3593c
SP
207952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20796
20797 * graphite-ppl.c (debug_gmp_value): New.
20798 * graphite-ppl.h (debug_gmp_value): Declared.
20799
3fae6099
TG
208002011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20801
20802 * doc/install.texi: Document availability of cloog-0.16.
20803
1c3ba85b
SP
208042011-01-25 Vladimir Kargov <kargov@gmail.com>
20805
20806 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20807 invalid postdominance info.
20808
e8ba94fc
JH
208092011-01-24 Jan Hubicka <jh@suse.cz>
20810
20811 PR c/21659
20812 * doc/extend.texi (weak pragma): Drop claim that it must
20813 appear before definition.
20814 * varasm.c (merge_weak, declare_weak): Only sanity check
20815 that DECL is not output at a time it is declared weak.
20816
2b6e2d13
KZ
208172011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20818
20819 * machmode.def: Fixed comments.
1c3ba85b 20820
9841210f
KT
208212011-01-24 Kai Tietz <kai.tietz@onevision.com>
20822
20823 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20824
208252011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
20826
20827 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 20828 WORDS_BIG_ENDIAN.
e046112d 20829
a6c5070a
L
208302011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20831
20832 PR target/46519
20833 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20834 (block_info): Add scanned and prev.
20835 (move_or_delete_vzeroupper_2): Return if the basic block
20836 has been scanned and the upper 128bit state is unchanged
20837 from the last scan.
20838 (move_or_delete_vzeroupper_1): Return true if the exit
20839 state is changed.
20840 (move_or_delete_vzeroupper): Visit basic blocks using the
20841 work-list based algorithm based on vt_find_locations in
20842 var-tracking.c.
20843
20844 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20845
a40d79d7
NC
208462011-01-24 Nick Clifton <nickc@redhat.com>
20847
20848 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20849 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20850 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20851 then define __v850e1__.
20852 * doc/invoke.texi: Document -mv850es.
20853
440eb8de
RH
208542011-01-24 Richard Henderson <rth@redhat.com>
20855
20856 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20857 compound unordered comparisons.
20858 * config/rx/rx.c (rx_split_fp_compare): Remove.
20859 * config/rx/rx-protos.h: Update.
20860 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20861 (cbranchsf4): Don't call rx_split_fp_compare.
20862 (*cbranchsf4): Use rx_split_cbranch.
20863 (*cmpsf): Don't accept "i" constraint.
20864 (*conditional_branch): Only valid after reload.
20865 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20866
3ff79f99
MM
208672011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20868
20869 PR target/47385
20870 * config/rs6000/altivec.md (vector constant splitters): Add
20871 support for creating vector single precision constants if -mvsx is
20872 used and we would create the constant using Altivec primitives.
20873
ff3d9d08
BS
208742011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20875 Richard Sandiford <rdsandiford@googlemail.com>
20876
20877 PR rtl-optimization/47166
20878 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20879 mechanism for PRE_MODIFY and POST_MODIFY.
20880 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20881 reloadreg.
20882
7fcaf152
AS
208832011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20884
8788adb6 20885 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 20886
d09b58c4
JH
208872011-01-22 Jan Hubicka <jh@suse.cz>
20888
20889 PR lto/47333
20890 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20891
e8ff8c5a
JH
208922011-01-22 Jan Hubicka <jh@suse.cz>
20893
20894 PR tree-optimization/43884
20895 PR lto/44334
8788adb6 20896 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
20897 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20898
ccaed3ba
AS
208992011-01-22 Anatoly Sokolov <aesok@post.ru>
20900
20901 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20902 * config/s390/s390.c (s390_register_move_cost,
20903 s390_memory_move_cost): New.
20904 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20905
0cecee06
UW
209062011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20907
20908 PR middle-end/47401
20909 * except.c (sjlj_assign_call_site_values): Move setting the
20910 crtl->uses_eh_lsda flag to ...
20911 (sjlj_mark_call_sites): ... here.
20912 (sjlj_emit_function_enter): Support NULL dispatch label.
20913 (sjlj_build_landing_pads): In a function with no landing pads
20914 that still has must-not-throw regions, generate code to register
20915 a personality function with empty LSDA.
20916
e692f276
RH
209172011-01-21 Richard Henderson <rth@redhat.com>
20918
1b7ae0b7
RH
20919 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20920
3843787f
RH
20921 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20922
e692f276
RH
20923 * compare-elim.c: New file.
20924 * Makefile.in (OBJS-common): Add it.
20925 (compare-elim.o): New.
20926 * common.opt (fcompare-elim): New.
20927 * opts.c (default_options_table): Add OPT_fcompare_elim.
20928 * tree-pass.h (pass_compare_elim_after_reload): New.
20929 * passes.c (init_optimization_passes): Add it.
20930 * recog.h: Protect against re-inclusion.
20931 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20932 * doc/invoke.texi (-fcompare-elim): Document it.
20933 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20934 * doc/tm.texi: Rebuild.
20935
9a7c2050
NC
209362011-01-22 Nick Clifton <nickc@redhat.com>
20937
20938 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20939 rx_split_fp_compare.
20940
15ba5696
NC
209412011-01-22 Nick Clifton <nickc@redhat.com>
20942
20943 * config/rx/rx.md (UNSPEC_CONST): New.
20944 (deallocate_and_return): Wrap the amount popped off the stack in
20945 an UNSPEC_CONST in order to stop it being rejected by
20946 -mmax-constant-size.
20947 (pop_and_return): Add a "(return)" rtx.
20948 (call): Drop the immediate operand.
20949 (call_internal): Likewise.
20950 (call_value): Likewise.
20951 (call_value_internal): Likewise.
20952 (sibcall_internal): Likewise.
20953 (sibcall_value_internal): Likewise.
20954 (sibcall): Likewise. Generate an explicit call using
20955 sibcall_internal.
20956 (sibcall_value): Likewise.
20957 (mov<>): FAIL if a constant operand is not legitimate.
20958 (addsi3_unpsec): New pattern.
9a7c2050 20959
38be4072 20960 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
20961 (ok_for_max_constant): New function.
20962 (gen_safe_add): New function.
20963 (rx_expand_prologue): Use gen_safe_add.
20964 (rx_expand_epilogue): Likewise.
20965 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20966 UNSPEC CONSTs.
20967
caaf13d3
JL
209682011-01-21 Jeff Law <law@redhat.com>
20969
20970 PR tree-optimization/47053
20971 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20972 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20973 statements are deleted.
20974 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
20975 is nonempty, then purge dead edges and cleanup the CFG.
20976
12c30f2f
AO
209772011-01-21 Alexandre Oliva <aoliva@redhat.com>
20978
20979 PR debug/47402
20980 Temporarily revert:
20981 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20982 PR debug/47106
20983 * tree-dfa.c (create_var_ann): Mark variable as used.
20984
7360d2ac
JJ
209852011-01-21 Jakub Jelinek <jakub@redhat.com>
20986
aaa52a96
JJ
20987 PR middle-end/45566
20988 * except.c (convert_to_eh_region_ranges): Emit queued no-region
20989 notes from other section in hot/cold partitioning even if
20990 last_action is -3. Increment call_site_base.
20991
7360d2ac
JJ
20992 PR rtl-optimization/47366
20993 * fwprop.c (forward_propagate_into): Return bool. If
20994 any changes are made, -fnon-call-exceptions is used and
20995 REG_EH_REGION note is present, call purge_dead_edges
20996 and return true if it purged anything.
20997 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20998 any EH edges were purged.
20999
e90b336f
JL
210002011-01-21 Jeff Law <law@redhat.com>
21001
21002 PR rtl-optimization/41619
21003 * caller-save.c (setup_save_areas): Break out code to determine
21004 which hard regs are live across calls by examining the reload chains
21005 so that it is always used.
21006 Eliminate code which checked REG_N_CALLS_CROSSED.
21007
3ffe07e1
JJ
210082011-01-21 Jakub Jelinek <jakub@redhat.com>
21009
21010 PR tree-optimization/47355
21011 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
21012 NOP has non-debug uses beyond PHIs in new_bb.
21013
1c7d0b34
AO
210142011-01-21 Alexandre Oliva <aoliva@redhat.com>
21015
21016 PR debug/47106
21017 * cfgexpand.c (account_used_vars_for_block): Only account vars
21018 that are annotated as used.
21019 (estimated_stack_frame_size): Don't set TREE_USED.
21020 * tree-dfa.c (create_var_ann): Mark variable as used.
21021
f99cc488
RG
210222011-01-21 Richard Guenther <rguenther@suse.de>
21023
21024 PR middle-end/47395
21025 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
21026
3bc27de7
RG
210272011-01-21 Richard Guenther <rguenther@suse.de>
21028
21029 PR tree-optimization/47365
21030 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
21031 (vn_reference_lookup_pieces): Adjust.
21032 (vn_reference_lookup): Likewise.
21033 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
21034 (vn_reference_lookup_3): Only look through kills if in
21035 VN_WALKREWRITE mode.
21036 (vn_reference_lookup_pieces): Adjust.
21037 (vn_reference_lookup): Likewise.
21038 (visit_reference_op_load): Likewise.
21039 (visit_reference_op_store): Likewise.
21040 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
21041 (compute_avail): Likewise.
21042 (eliminate): Likewise.
21043
d8debb1d
JJ
210442011-01-21 Jakub Jelinek <jakub@redhat.com>
21045
21046 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
21047 DECL_IGNORED_P non-reg vars if they are used.
21048
3a2df831
JJ
21049 PR tree-optimization/47391
21050 * varpool.c (const_value_known_p): Return false if
21051 decl is volatile.
21052
1dd584a2
KT
210532011-01-21 Kai Tietz <kai.tietz@onevision.com>
21054
21055 PR bootstrap/47215
21056 * config/i386/i386.c (ix86_local_alignment): Handle
21057 case for va_list_type_node is nil.
21058 (ix86_canonical_va_list_type): Likewise.
21059
7f9f095e
AM
210602011-01-21 Alan Modra <amodra@gmail.com>
21061
21062 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
21063 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
21064
837b01f6
RR
210652011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21066
21067 * config/arm/arm.md (define_attr type): Rename f_load
21068 and f_store to f_fpa_load and f_fpa_store. Update.
21069 (write_conflict): Deal with rename fallout.
21070 (*push_fp_multi): Likewise.
21071 * config/arm/fpa.md (f_load): Use f_fpa_load.
21072 (f_store): Use f_fpa_store.
21073 (*movsf_fpa): Likewise.
21074 (*movdf_fpa): Likewise.
21075 (*movxf_fpa): Likewise.
21076 (*thumb2_movsf_fpa): Likewise.
21077 (*thumb2_movdf_fpa): Likewise.
21078 (*thumb2_movxf_fpa): Likewise.
21079 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
21080 f_loadd and f_stored.
21081 (*thumb2_movdi_vfp): Likewise.
21082 (*thumb2_movsf_vfp): Fix attribute to f_loads.
21083 (*thumb2_movsi_vfp): Likewise.
21084 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
21085 Use f_loads instead of f_load.
21086 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
21087
a1a79768
AS
210882011-01-20 Anatoly Sokolov <aesok@post.ru>
21089
21090 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21091 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
21092 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21093 (xtensa_mode_dependent_address_p): New function.
21094 (constantpool_address_p): Make static. Change return type to bool.
21095 Change argument type to const_rtx. Use CONST_INT_P predicate.
21096
427f6cec
AO
210972011-01-20 Alexandre Oliva <aoliva@redhat.com>
21098
21099 PR debug/46583
21100 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
21101
583ac69c
JJ
211022011-01-20 Jakub Jelinek <jakub@redhat.com>
21103
21104 PR debug/47283
21105 * cfgexpand.c (expand_debug_expr): Instead of generating
21106 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
21107 etc. handling.
21108
93e452ed
RG
211092011-01-20 Richard Guenther <rguenther@suse.de>
21110
21111 PR middle-end/47370
21112 * tree-inline.c (remap_gimple_op_r): Recurse manually for
21113 the pointer operand of MEM_REFs.
21114
28fc44f3
JJ
211152011-01-20 Jakub Jelinek <jakub@redhat.com>
21116
21117 PR tree-optimization/46130
21118 * ipa-split.c (consider_split): If return_bb contains non-virtual
21119 PHIs other than for retval or if split_function would not adjust it,
21120 refuse to split.
21121
ddd268f2
RG
211222011-01-20 Richard Guenther <rguenther@suse.de>
21123
21124 PR tree-optimization/47167
21125 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21126 Revert previous change, only avoid enumeral type changes.
21127
882020aa
MS
211282011-01-19 Mike Stump <mikestump@comcast.net>
21129
21130 * doc/tm.texi.in (BRANCH_COST): Englishify.
21131 * doc/tm.texi (BRANCH_COST): Likewise.
21132
7edb6247
DS
211332011-01-19 Dodji Seketeli <dodji@redhat.com>
21134
21135 PR c++/47291
21136 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
21137 (gen_scheduled_generic_parms_dies): New functions.
21138 (gen_struct_or_union_type_die): Schedule template parameters DIEs
21139 generation for the end of CU compilation.
21140 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 21141
23d5ed5d
AO
211422011-01-19 Alexandre Oliva <aoliva@redhat.com>
21143
21144 PR debug/46240
21145 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
21146 debug bind stmt on merge edges.
21147
37d6a488
AO
211482011-01-19 Alexandre Oliva <aoliva@redhat.com>
21149
21150 PR debug/47079
21151 PR debug/46724
21152 * function.c (instantiate_expr): Instantiate incoming rtl of
21153 implicit arguments, and recurse on VALUE_EXPRs.
21154 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
21155 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
21156
689f2c82
AO
211572011-01-19 Alexandre Oliva <aoliva@redhat.com>
21158
21159 * c-parser.c (c_parser_for_statement): Initialize
21160 collection_expression.
21161
03029de4
JM
211622011-01-19 Joseph Myers <joseph@codesourcery.com>
21163
21164 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
21165
3e03217e
JM
211662011-01-19 Joseph Myers <joseph@codesourcery.com>
21167
21168 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
21169 (LINK_SHLIB_SPEC): Don't use %(link_path).
21170 (SUBTARGET_EXTRA_SPECS): Remove link_path.
21171
5bbe9b3f
JM
211722011-01-19 Joseph Myers <joseph@codesourcery.com>
21173
21174 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
21175 (NO_SHARED_LIB_SUPPORT): Remove.
21176 (LINK_SHLIB_SPEC): Remove one conditional definition.
21177
368e0b39
JM
211782011-01-19 Joseph Myers <joseph@codesourcery.com>
21179
21180 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21181 %{call_shared}.
21182 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21183 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21184 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21185 %{call_shared} and conditionals on these options not being passed.
21186 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21187 %{call_shared}.
21188
ed7656f6
JJ
211892011-01-19 Jakub Jelinek <jakub@redhat.com>
21190
68457901
JJ
21191 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21192 simplify.
21193
ed7656f6
JJ
21194 * ipa-split.c: Spelling fixes.
21195
e0d1958f
RH
211962011-01-19 Richard Henderson <rth@redhat.com>
21197
21198 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21199 (*mulsi3): Likewise.
21200
27098b6b
RH
21201 * longlong.h [__mn10300__] (count_leading_zeros): New.
21202 [__mn10300__] (umul_ppmm, smul_ppmm): New.
21203 [__mn10300__] (add_ssaaaa, subddmmss): New.
21204 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21205 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21206
d6be7c36
UW
212072011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21208
21209 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21210
b1efde2a
RH
212112011-01-19 Richard Henderson <rth@redhat.com>
21212
44217823
RH
21213 * config/mn10300/mn10300.md (addsi3_flags): New.
21214 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21215 (subsi3_flags, subc_internal, subdi3): New.
21216 (subdi3_internal, *subdi3_degenerate): New.
21217 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21218
37a185d7
RH
21219 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21220 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21221 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
21222 * config/mn10300/mn10300-protos.h: Update.
21223 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21224 (return_ret): Likewise. Rename from return_internal_regs.
21225 (return_internal): Remove.
21226
040c5757
RH
21227 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21228 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21229 (mn10300_legitimate_constant_p): Likewise.
21230 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21231 (mn10300_frame_size): New.
21232 (mn10300_expand_prologue): Use it.
21233 (mn10300_expand_epilogue): Likewise.
21234 (mn10300_initial_offset): Likewise.
21235 * config/mn10300/mn10300-protos.h: Update.
21236 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21237 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21238 (prologue, epilogue, return_internal): Tidy output code.
21239 (mn10300_store_multiple_operation, return): Likewise.
21240 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21241 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21242 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21243 (load_pic, am33_load_pic): New.
21244 (mn10300_load_pic0, mn10300_load_pic1): New.
21245
bad41521
RH
21246 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21247 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21248 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21249 (cc_flags_for_mode, cc_flags_for_code): New.
21250 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21251 overflow flag is not valid. Validate that the flags we need
21252 for the comparison are valid.
21253 (mn10300_output_cmp): Remove.
21254 (mn10300_output_add): New.
21255 (mn10300_select_cc_mode): Use cc_flags_for_code.
21256 (mn10300_split_cbranch): New.
21257 (mn10300_match_ccmode): New.
21258 (mn10300_split_and_operand_count): New.
21259 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21260 to the function.
21261 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21262 (addsi3): ... here. Use mn10300_output_add.
21263 (*addsi3_flags): New.
21264 (*am33_subsi3, *mn10300_subsi3): Merge...
21265 (subsi3): ... here. Use attribute isa.
21266 (*subsi3_flags): New.
21267 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
21268 when possible.
21269 (*am33_andsi3, *mn10300_andsi3): Merge...
21270 (andsi3): ... here.
21271 (*andsi3_flags): New.
21272 (andsi3 splitters): New.
21273 (*am33_iorsi3, *mn10300_iorsi3): Merge...
21274 (iorsi3): ... here.
21275 (*iorsi3_flags): New.
21276 (*am33_xorsi3, *mn10300_xorsi3): Merge...
21277 (xorsi3): ... here.
21278 (*xorsi3_flags): New.
21279 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21280 (one_cmplsi2): ... here.
21281 (*one_cmplsi2_flags): New.
21282 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
21283 instead of "dax" in constraints. Use mn10300_split_cbranch.
21284 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
21285 use matching constraints to eliminate a self-comparison.
21286 (*integer_conditional_branch): Rename from integer_conditional_branch.
21287 Use int_mode_flags to match CC_REG.
21288 (*cbranchsi4_btst, *btstsi): New.
21289 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
21290 mn10300_split_cbranch.
21291 (*am33_cmpsf): Rename from am33_cmpsf.
21292 (*float_conditional_branch): Rename from float_conditional_branch.
21293 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21294 (zero_extendqisi2): ... here.
21295 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21296 (zero_extendhisi2): ... here.
21297 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21298 (extendqisi2): ... here.
21299 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21300 (extendhisi2): ... here.
21301 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21302 (ashlsi3): ... here.
21303 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21304 (lshrsi3): ... here.
21305 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21306 (ashrsi3): ... here.
21307 (consecutive add peephole): Remove.
21308 * config/mn10300/predicates.md (label_ref_operand): New.
21309 (int_mode_flags): New.
21310 (CCZN_comparison_operator): New.
21311
9efb4993
RH
21312 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21313 (throughput_42_latency_43): New reservation.
21314 (mulsidi3, umulsidi3): New expanders.
21315 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21316 the MDR register to allocation; separately allocate the low and
21317 high parts of the DImode result.
21318 (umulsidi3_internal): Similarly.
21319 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21320 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21321 (udivsi3, umodsi3): Remove.
21322 (udivmodsi4, divmodsi4): New expanders.
21323 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21324 (*divmodsi4): Simiarly.
21325 (ext_internal): New.
21326
c25a21f5
RH
21327 * config/mn10300/constraints.md ("z"): New constraint.
21328 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21329 (FIXED_REGISTERS): Don't fix MDR.
21330 (CALL_USED_REGSITERS): Reformat nicely.
21331 (REG_ALLOC_ORDER): Add MDR.
21332 (enum regclass): Add MDR_REGS.
21333 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21334 (IRA_COVER_CLASSES): Add MDR_REGS.
21335 (REGNO_REG_CLASS): Handle MDR_REG.
21336 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21337 (mn10300_register_move_cost): Likewise.
21338 * config/mn10300/mn10300.md (MDR_REG): New.
21339 (*movsi_internal): Handle moves to/from MDR_REGS.
21340
36846b26
RH
21341 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21342 POST_MODIFY.
21343 (mn10300_secondary_reload): Tidy combination reload classes.
21344 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21345 addresses for AM33. Allow symbolic offsets for reg+imm.
21346 (mn10300_regno_in_class_p): New.
21347 (mn10300_legitimize_reload_address): New.
21348 * config/mn10300/mn10300.h (enum reg_class): Remove
21349 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21350 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21351 SP_OR_GENERAL_REGS.
21352 (REG_CLASS_NAMES): Update to match.
21353 (REG_CLASS_CONTENTS): Likewise.
21354 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21355 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21356 (REGNO_IN_RANGE_P): Remove.
21357 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21358 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21359 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21360 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21361 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21362 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21363 (REGNO_GENERAL_P): New.
21364 (HAVE_POST_MODIFY_DISP): New.
21365 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21366 (LEGITIMIZE_RELOAD_ADDRESS): New.
21367 * config/mn10300/mn10300-protos.h: Update.
21368
8b119bb6
RH
21369 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21370 DATA_REGS for AM33 stack-pointer destination.
21371 (mn10300_preferred_output_reload_class): Likewise.
21372 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21373 into a form appropriate for ...
21374 (TARGET_SECONDARY_RELOAD): New.
21375 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21376 * config/mn10300/mn10300-protos.h: Update.
21377 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21378 reload_insi; use the "A" constraint for the scratch; handle AM33
21379 moves of sp to non-address registers.
21380
b1efde2a
RH
21381 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21382 (*movqi_internal): ... here.
21383 (*am33_movhi, *mn10300_movhi): Merge into...
21384 (*movhi_internal): ... here.
21385 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21386 as the source/destination of moves from/to SP.
21387 (movsf): Only allow for AM33-2.
1c3ba85b 21388 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
21389 any integer constant constraint. Only allow for AM33-2. Tidy
21390 all of the alternative outputs.
21391 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21392 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21393 for MN103.
21394 (udivsi3, umodsi3): New patterns for MN103 only.
21395
b899fd78
JR
213962011-01-19 Joern Rennecke <amylaar@spamcop.net>
21397
21398 * doc/tm.texi.in: Spell out that a lack of register class unions
21399 can lead to ICEs.
21400 * doc/tm.texi: Regenerate.
21401
afaaa67d
JJ
214022011-01-19 Jakub Jelinek <jakub@redhat.com>
21403
2e0642cd
JJ
21404 PR rtl-optimization/47337
21405 * dce.c (check_argument_store): New function.
21406 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21407
afaaa67d
JJ
21408 PR tree-optimization/47290
21409 * tree-eh.c (infinite_empty_loop_p): New function.
21410 (cleanup_empty_eh): Use it.
21411
d2cd871f
SE
214122011-01-18 Steve Ellcey <sje@cup.hp.com>
21413
21414 PR target/46997
21415 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21416 (a64_expand_widen_sum): Ditto.
21417 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21418 (vec_extract_evenodd_help): Ditto.
21419 (vec_extract_evenv4hi): Ditto.
21420 (vec_extract_oddv4hi): Ditto.
21421 (vec_extract_evenv2si): Ditto.
21422 (vec_extract_oddv2si): Ditto.
21423 (vec_extract_evenv2sf): Ditto.
21424 (vec_extract_oddv2sf): Ditto.
21425 (vec_pack_trunc_v4hi: Ditto.
21426 (vec_pack_trunc_v2si): Ditto.
21427 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21428 (vec_interleave_highv8qi): Ditto.
21429 (mix1_r): Ditto.
21430 (vec_extract_oddv8qi): Ditto.
21431 (vec_interleave_lowv4hi): Ditto.
21432 (vec_interleave_highv4hi): Ditto.
21433 (vec_interleave_lowv2si): Ditto.
21434 (vec_interleave_highv2si): Ditto.
21435
41a1208a
JDA
214362011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21437
21438 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21439 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21440 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21441 (pa_c_mode_for_suffix): New.
21442 (TARGET_EXPAND_BUILTIN): Define.
21443 (TARGET_C_MODE_FOR_SUFFIX): Define.
21444 (pa_builtins): Define.
21445 (pa_init_builtins): Register __float128 type and init new support
21446 builtins.
21447 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21448 * config/pa/quadlib.c (_U_Qfcopysign): New.
21449
1ecad98e
EB
214502011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21451
21452 PR middle-end/46894
21453 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21454 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21455 are defined.
21456
d4f2460a
UW
214572011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21458
21459 PR tree-optimization/47179
21460 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21461 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21462
4994da65
RG
214632011-01-18 Richard Guenther <rguenther@suse.de>
21464
21465 PR rtl-optimization/47216
21466 * emit-rtl.c: Include tree-flow.h.
21467 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21468 of replicating it with different semantics.
21469 * Makefile.in (emit-rtl.o): Adjust.
21470
1eb458d1
RR
214712011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21472
38be4072 21473 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 21474 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 21475
e7ef91dc
JJ
214762011-01-18 Jakub Jelinek <jakub@redhat.com>
21477
21478 PR rtl-optimization/47299
21479 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 21480 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
21481 * expmed.c (expand_widening_mult): Don't try to optimize constant
21482 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21483 before using it.
21484
535b7874
RW
214852011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21486
21487 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21488 spacing after 'e.g.', typos, comma, hyphenation.
21489
27bf36f3
RH
214902011-01-17 Richard Henderson <rth@redhat.com>
21491
8a5b5449
RH
21492 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21493 (rx_restricted_mem_operand): New.
21494 (rx_shift_operand): Use register_operand.
21495 (rx_source_operand, rx_compare_operand): Likewise.
21496 * config/rx/rx.md (addsi3_flags): New expander.
21497 (adddi3): Rewrite as expander.
21498 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21499 (subsi3_flags): New expander.
21500 (subdi3): Rewrite as expander.
21501 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21502
784f69be
RH
21503 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21504 (rx_init_builtins): Remove sat builtin.
21505 (rx_expand_builtin): Likewise.
21506 * config/rx/rx.md (ssaddsi3): New.
21507 (*sat): Rename from sat. Represent the CC_REG input.
21508
f033541c
RH
21509 * config/rx/predicates.md (rshift_operator): New.
21510 * config/rx/rx.c (rx_expand_insv): Remove.
21511 * config/rx/rx-protos.h: Update.
21512 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21513 operand to the canonical position.
21514 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21515 (*bitclr, *bitclr_in_memory): Similarly.
21516 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21517 (insv): Retain the zero_extract in the expansion.
21518
34fee389
RH
21519 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21520 (bswaphi2, bitinvert, revw): Likewise.
21521
265c835f
RH
21522 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21523 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21524 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21525 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21526 (bitset, bitset_in_memory): Likewise.
21527 (bitinvert, bitinvert_in_memory): Likewise.
21528 (bitclr, bitclr_in_memory): Likewise.
21529 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21530 (rx_strend, rx_cmpstrn): Likewise.
21531 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21532 (bitop peep2 patterns): Remove.
21533
b4d83be3
RH
21534 * config/rx/rx.c (rx_match_ccmode): New.
21535 * config/rx/rx-protos.h: Update.
21536 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21537 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21538 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21539 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21540 (fix_truncsfsi2, floatsisf2): Likewise.
21541 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21542 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21543 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21544 (*subsi3_flags, *xorsi3_flags): New.
21545
d0acb939
RH
21546 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21547
c06fc3d9
RH
21548 * config/rx/rx.c (rx_print_operand): Remove workaround for
21549 unsplit comparison operations.
21550
2882702b
RH
21551 * config/rx/rx.md (movsicc): Split after reload.
21552 (*movsicc): Merge *movsieq and *movsine via match_operator.
21553 (*stcc): New pattern.
21554
6f7310f2
RH
21555 * config/rx/rx.c (rx_float_compare_mode): Remove.
21556 * config/rx/rx.h (rx_float_compare_mode): Remove.
21557 * config/rx/rx.md (cstoresi4): Split after reload.
21558 (*sccc): New pattern.
21559
e963cb1a
RH
21560 * config/rx/predicates.md (label_ref_operand): New.
21561 (rx_z_comparison_operator): New.
21562 (rx_zs_comparison_operator): New.
21563 (rx_fp_comparison_operator): New.
21564 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21565 Validate that the flags are set properly for the comparison.
21566 (rx_gen_cond_branch_template): Remove.
21567 (rx_cc_modes_compatible): Remove.
21568 (mode_from_flags): New.
21569 (flags_from_code): Rename from flags_needed_for_conditional.
21570 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21571 (rx_select_cc_mode): Likewise.
21572 (rx_split_fp_compare): New.
21573 (rx_split_cbranch): New.
21574 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21575 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21576 (*cbranchsf4): Similarly.
21577 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21578 match_operator and rx_split_cbranch.
21579 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21580 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21581 (*cmpsi): Rename from cmpsi.
21582 (*tstsi): Rename from tstsi.
21583 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21584 (*conditional_branch): Rename from conditional_branch.
21585 (*reveresed_conditional_branch): Remove.
21586 (b<code>): Remove expander.
21587 * config/rx/rx-protos.h: Update.
21588
af530bb4
RH
21589 * config/rx/rx.c (rx_compare_redundant): Remove.
21590 * config/rx/rx.md (cmpsi): Don't use it.
21591 * config/rx/rx-protos.h: Update.
21592
27bf36f3
RH
21593 * config/rx/rx-modes.def (CC_F): New mode.
21594 * config/rx/rx.c (rx_select_cc_mode): New.
21595 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21596 * config/rx/rx-protos.h: Update.
21597
d7fde127
RH
215982011-01-17 Richard Henderson <rth@redhat.com>
21599
21600 * except.c (dump_eh_tree): Fix stray ; after for statement.
21601
6ff38230
RG
216022011-01-17 Richard Guenther <rguenther@suse.de>
21603
21604 PR tree-optimization/47313
21605 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21606 handling before copying the body. Properly deal with
21607 by-reference result in SSA form.
21608
114ce554
ILT
216092011-01-17 Ian Lance Taylor <iant@google.com>
21610
bf5cd92b 21611 PR target/47219
114ce554
ILT
21612 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21613 (struct_value_alias_set): Don't define.
21614 (sparc_option_override): Don't set sparc_sr_alias_set and
21615 struct_value_alias_set.
21616 (save_or_restore_regs): Use gen_frame_mem rather than calling
21617 set_mem_alias_set.
21618 (sparc_struct_value_rtx): Likewise.
21619
98c6d93c
L
216202011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21621
21622 PR target/47318
7a81008b 21623 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
21624 (_mm_maskstore_pd): Likewise.
21625 (_mm_maskload_ps): Likewise.
21626 (_mm_maskstore_ps): Likewise.
21627 (_mm256_maskload_pd): Change mask to __m256i.
21628 (_mm256_maskstore_pd): Likewise.
21629 (_mm256_maskload_ps): Likewise.
21630 (_mm256_maskstore_ps): Likewise.
21631
21632 * config/i386/i386-builtin-types.def: Updated.
21633 (ix86_expand_special_args_builtin): Likewise.
21634
21635 * config/i386/i386.c (bdesc_special_args): Update
21636 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21637 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21638 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21639 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21640
21641 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21642 Use <avxpermvecmode> on mask register.
21643 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21644
b9361af2 216452011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
21646 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21647 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
21648
21649 PR target/46655
21650 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21651 if <= USHRT_MAX in 32-bit mode.
21652
b7ae9eb5
RW
216532011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21654
21655 * doc/install.texi (Configuration, Specific): Wrap long
21656 lines in examples. Allow line wrapping in long options
21657 and URLs where beneficial for PDF output.
21658
4377fad9
RS
216592011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21660
21661 * config/mips/mips.c (mips_classify_symbol): Don't return
21662 SYMBOL_PC_RELATIVE for nonlocal labels.
21663
55959ffa 216642011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 21665
55959ffa
EB
21666 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21667
216682011-01-15 Jan Hubicka <jh@suse.cz>
21669
21670 PR tree-optimization/47276
be46831f
JH
21671 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21672 declarations as needed.
21673
05842ff5
MJ
216742011-01-15 Martin Jambor <mjambor@suse.cz>
21675
21676 * common.opt (fdevirtualize): New flag.
21677 * doc/invoke.texi (Option Summary): Document it.
21678 * opts.c (default_options_table): Add devirtualize flag.
21679 * ipa-prop.c (detect_type_change): Return immediately if
21680 devirtualize flag is not set.
21681 (detect_type_change_ssa): Likewise.
21682 (compute_known_type_jump_func): Likewise.
21683 (ipa_analyze_virtual_call_uses): Likewise.
21684
f65cf2b7
MJ
216852011-01-14 Martin Jambor <mjambor@suse.cz>
21686
21687 PR tree-optimization/45934
21688 PR tree-optimization/46302
21689 * ipa-prop.c (type_change_info): New type.
21690 (stmt_may_be_vtbl_ptr_store): New function.
21691 (check_stmt_for_type_change): Likewise.
21692 (detect_type_change): Likewise.
21693 (detect_type_change_ssa): Likewise.
21694 (compute_complex_assign_jump_func): Check for dynamic type change.
21695 (compute_complex_ancestor_jump_func): Likewise.
21696 (compute_known_type_jump_func): Likewise.
21697 (compute_scalar_jump_functions): Likewise.
21698 (ipa_analyze_virtual_call_uses): Likewise.
21699 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21700
eb5bb0fd
JM
217012011-01-14 Joseph Myers <joseph@codesourcery.com>
21702
21703 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21704 * config/i386/i386.opt (msse5): New Alias.
21705
f2060fbe
JM
217062011-01-14 Joseph Myers <joseph@codesourcery.com>
21707
21708 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21709 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21710 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21711 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21712
3a7b4385
JM
217132011-01-14 Joseph Myers <joseph@codesourcery.com>
21714
21715 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21716 -mcpu options.
21717 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21718 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21719 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21720 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21721 Likewise.
21722 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21723
a7b778f8
JM
217242011-01-14 Joseph Myers <joseph@codesourcery.com>
21725
38be4072 21726 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 21727
a7edae0a
MS
217282011-01-14 Mike Stump <mikestump@comcast.net>
21729
21730 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21731 * config/fr30/fr30.md: Likweise
21732 (movsi_push): Likewise.
21733 (movsi_pop): Likewise.
21734 (enter_func): Likewise.
21735 * config/moxie/moxie.md (movsi_push): Likewise.
21736 (movsi_pop): Likewise.
21737
cbabf03f
JM
217382011-01-14 Joseph Myers <joseph@codesourcery.com>
21739
21740 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21741 %{no_archive} %{exact_version}.
21742 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21743 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21744 %{no_archive} %{exact_version}.
21745 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21746 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21747 * config/mips/vxworks.h: Likewise.
21748
438da41a
JM
217492011-01-14 Joseph Myers <joseph@codesourcery.com>
21750
38be4072 21751 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 21752
da290a42
JM
217532011-01-14 Joseph Myers <joseph@codesourcery.com>
21754
21755 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21756 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21757
8989d00e
JM
217582011-01-14 Joseph Myers <joseph@codesourcery.com>
21759
21760 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21761 -nodefaultlib.
21762
a3010a69
JM
217632011-01-14 Joseph Myers <joseph@codesourcery.com>
21764
21765 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21766 for mcpu not cpu.
21767 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21768 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21769 not cpu.
21770 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21771 Don't handle -shlib.
21772
e7f2f537
JM
217732011-01-14 Joseph Myers <joseph@codesourcery.com>
21774
21775 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21776 (CC1_SPEC): Don't handle -profile.
21777
34830bfd
JM
217782011-01-14 Joseph Myers <joseph@codesourcery.com>
21779
21780 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21781 * config/mips/mips.h (CC1_SPEC): Likewise.
21782
b2d36e74
JM
217832011-01-14 Joseph Myers <joseph@codesourcery.com>
21784
21785 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21786 * config/mips/mips.h (CC1_SPEC): Likewise.
21787
dabadc52
JM
217882011-01-14 Joseph Myers <joseph@codesourcery.com>
21789
21790 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21791 * config/m32r/linux.h (LINK_SPEC): Likewise.
21792 * config/mips/linux.h (LINK_SPEC): Likewise.
21793 * config/mips/linux64.h (LINK_SPEC): Likewise.
21794 * config/sparc/linux.h (LINK_SPEC): Likewise.
21795 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21796 LINK_SPEC): Likewise.
21797 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21798
43ee6785
JM
217992011-01-14 Joseph Myers <joseph@codesourcery.com>
21800
21801 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21802 %{version:-v}.
21803 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21804
45e79dfd
JM
218052011-01-14 Joseph Myers <joseph@codesourcery.com>
21806
21807 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21808 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21809
37e9e71d
JM
218102011-01-14 Joseph Myers <joseph@codesourcery.com>
21811
21812 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21813
bb127cd8
RO
218142011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21815
21816 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21817 supports -Bstatic/-Bdynamic.
21818 * configure: Regenerate.
21819
89a012ea 218202011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 21821 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
21822
21823 PR target/46037
21824 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21825 when checking debug_info_level. Test write_symbols instead of
21826 debug_hooks->var_location when setting flag_var_tracking_uninit.
21827
7352c013
RG
218282011-01-14 Richard Guenther <rguenther@suse.de>
21829
21830 PR tree-optimization/47179
21831 * target.def (ref_may_alias_errno): New target hook.
21832 * targhooks.h (default_ref_may_alias_errno): Declare.
21833 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21834 (default_ref_may_alias_errno): New function.
21835 * target.h (struct ao_ref_s): Declare.
21836 * tree-ssa-alias.c: Include target.h.
21837 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21838 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21839 (targhooks.o): Likewise.
21840 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21841 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21842
9a6c9288
RG
218432011-01-14 Richard Guenther <rguenther@suse.de>
21844
21845 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21846
0fdb0d27
RG
218472011-01-14 Richard Guenther <rguenther@suse.de>
21848
21849 PR tree-optimization/47280
21850 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21851 return CFG changes.
21852 (tree_ssa_forward_propagate_single_use_vars): Deal with
21853 CFG changes from associate_plusminus.
21854
8f66db3b
RG
218552011-01-14 Richard Guenther <rguenther@suse.de>
21856
21857 PR middle-end/47281
21858 Revert
21859 2011-01-11 Richard Guenther <rguenther@suse.de>
21860
280d9630
EB
21861 PR tree-optimization/46076
21862 * tree-ssa.c (useless_type_conversion_p): Conversions from
21863 unprototyped to empty argument list function types are useless.
8f66db3b 21864
6c0c92e6
RG
218652011-01-14 Richard Guenther <rguenther@suse.de>
21866
21867 PR tree-optimization/47286
280d9630 21868 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 21869
db09f943
MJ
218702011-01-14 Martin Jambor <mjambor@suse.cz>
21871
21872 PR middle-end/46823
21873 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21874
dde8a3a4
AS
218752011-01-13 Anatoly Sokolov <aesok@post.ru>
21876
21877 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21878 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21879 * config/xtensa/xtensa.c (xtensa_libcall_value,
21880 xtensa_function_value_regno_p): New functions.
21881 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21882
a2b63a20
KT
218832011-01-13 Kai Tietz <kai.tietz@onevision.com>
21884
21885 PR c++/47213
21886 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21887 PE specific hook.
21888 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21889 New function prototype.
21890 * config/i386/winnt.c (i386_pe_assemble_visibility):
21891 Warn only if attribute was specified by user.
21892
b41f0b34
MM
218932011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21894
21895 PR target/47251
21896 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21897 floating point.
21898 (floatunsdidf2_fcfidu): Ditto.
21899
3f3c098d
AK
219002011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21901
21902 * config/s390/s390.c (print_operand_address): Replace 'error' with
21903 'output_operand_lossage'.
21904 (print_operand): Likewise.
21905
29fa95ed
JL
219062011-01-13 Jeff Law <law@redhat.com>
21907
280d9630 21908 PR rtl-optimization/39077
29fa95ed
JL
21909 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21910 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21911 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21912 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21913 * gcse.c (prune_insertions_deletions): New function.
21914 (compute_pre_data): Use it.
21915
71d12276
DS
219162011-01-13 Dodji Seketeli <dodji@redhat.com>
21917
21918 PR debug/PR46973
21919 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21920 static function.
61052244 21921 (prune_unused_types_mark): Use it.
71d12276 21922
9b0f04e7
AB
219232011-01-13 Andrey Belevantsev <abel@ispras.ru>
21924
21925 PR rtl-optimization/45352
1c3ba85b 21926 * sel-sched.c: Update copyright years.
9b0f04e7 21927 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 21928 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 21929
d6a3e264
RH
219302011-01-12 Richard Henderson <rth@redhat.com>
21931
a49b692a
RH
21932 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21933 (TARGET_MD_ASM_CLOBBERS): New.
21934
126b1483
RH
21935 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21936 (TARGET_DELEGITIMIZE_ADDRESS): New.
21937
f3d9d2e0
RH
21938 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21939 (clzsi2, *bsch): New patterns.
21940
d84760c9
RH
21941 * config/mn10300/mn10300.md (INT): New mode iterator.
21942 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21943
ec815d65
RH
21944 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21945 flag_split_wide_types.
21946
d6a3e264
RH
21947 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21948 (mn10300_trampoline_init): Rewrite without a template, an immediate
21949 load and a direct branch.
21950 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21951
0f8ab434
AS
219522011-01-12 Anatoly Sokolov <aesok@post.ru>
21953
21954 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21955 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21956 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21957 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21958
d8a24b65
KT
219592011-01-12 Kai Tietz <kai.tietz@onevision.com>
21960
21961 PR debug/47209
21962 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21963 of type.
21964
56e22cab
JH
219652011-01-12 Jan Hubicka <jh@suse.cz>
21966
21967 PR driver/47244
21968 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21969 (PLUGIN_COND_CLOSE): New macro.
21970 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21971
4b18b3c2
RG
219722011-01-12 Richard Guenther <rguenther@suse.de>
21973
21974 PR lto/47259
21975 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21976 register variables in a MEM_REF.
21977
8e38461c
JM
219782011-01-12 Joseph Myers <joseph@codesourcery.com>
21979
21980 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21981 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21982 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21983 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21984 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21985 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21986 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21987 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21988 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21989 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21990 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21991 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21992 * config/gnu-user.h: New. Copied from linux.h.
21993 (LINUX_TARGET_STARTFILE_SPEC): Rename to
21994 GNU_USER_TARGET_STARTFILE_SPEC.
21995 (LINUX_TARGET_ENDFILE_SPEC): Rename to
21996 GNU_USER_TARGET_ENDFILE_SPEC.
21997 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21998 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21999 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
22000 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
22001 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
22002 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
22003 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
22004 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
22005 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
22006 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
22007 * config/arm/linux-eabi.h (CC1_SPEC): Use
22008 GNU_USER_TARGET_CC1_SPEC.
22009 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
22010 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
22011 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
22012 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
22013 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
22014 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
22015 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
22016 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
22017
a570fc16
RG
220182011-01-12 Richard Guenther <rguenther@suse.de>
22019
22020 PR other/46946
22021 * doc/invoke.texi (ffast-math): Document it is turned on
22022 with -Ofast.
22023
b0223c3e
JH
220242011-01-12 Jan Hubicka <jh@suse.cz>
22025
22026 PR tree-optimization/47233
ca1e00b3
EB
22027 * opts.c (common_handle_option): Disable ipa-reference with profile
22028 feedback.
b0223c3e 22029
1c3ba85b 220302011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
22031
22032 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
22033 error message.
22034
d853ee42
NP
220352011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
22036
22037 * c-parser.c (c_lex_one_token): Updated and reindented some
22038 comments. No changes in code.
22039
4053a5a0
ILT
220402011-01-11 Ian Lance Taylor <iant@google.com>
22041
22042 * godump.c (go_output_var): Don't output the variable if there is
22043 already a type with the same name.
22044
fa3e04d2
ILT
220452011-01-11 Ian Lance Taylor <iant@google.com>
22046
22047 * godump.c (go_format_type): Don't generate float80.
22048
885fe07c
RH
220492011-01-11 Richard Henderson <rth@redhat.com>
22050
72d6e3c5
RH
22051 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
22052 declaration. Rewrite for both speed and size.
22053 (mn10300_address_cost_1): Remove.
22054 (mn10300_register_move_cost): New.
22055 (mn10300_memory_move_cost): New.
22056 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
22057 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
22058 extensions, shifts, BSWAP, CLZ.
22059 (mn10300_wide_const_load_uses_clr): Remove.
22060 (TARGET_REGISTER_MOVE_COST): New.
22061 (TARGET_MEMORY_MOVE_COST): New.
22062 * config/mn10300/mn10300-protos.h: Update.
22063 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
22064
df37c023
RH
22065 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
22066 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
22067 * config/mn10300/mn10300-protos.h: Update.
22068 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
22069 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
22070 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
22071 (*test_int_bitfield, *test_byte_bitfield): Remove.
22072 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 22073 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 22074
85a337b5
RH
22075 * config/mn10300/constraints.md ("c"): Rename from "A".
22076 ("A", "D"): New constraint letters.
22077 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
22078 (fmssf4, fnmasf4, fnmssf4): Likewise.
22079
a5c727e3
RH
22080 * config/mn10300/mn10300.md (isa): New attribute.
22081 (enabled): New attribute.
22082
0d9e23f4
RH
22083 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
22084 (abssf2, negsf2): Define only for hardware fp.
22085 (sqrtsf2): Reformat.
22086 (addsf3, subsf3, mulsf3): Merge expander and insn.
22087
c157b3f0
RH
22088 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
22089 (DEBUGGER_AUTO_OFFSET): Remove.
22090 (DEBUGGER_ARG_OFFSET): Remove.
22091
cc909bba
RH
22092 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
22093 Emit register stores with the same offsets as the hardware.
22094 (mn10300_store_multiple_operation): Don't check that the register
22095 save offsets are monotonic.
22096 * config/mn10300/mn10300-protos.h: Update.
22097
e3b5c2f3
RH
22098 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
22099
885fe07c
RH
22100 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
22101 in terms of the value on the stack, not the MDR register.
22102
6e701822
JH
221032011-01-11 Jan Hubicka <jh@suse.cz>
22104
22105 PR lto/45721
22106 PR lto/45375
22107 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
22108 (symbol_alias_set_destroy, symbol_alias_set_contains,
22109 propagate_aliases_backward): Declare.
22110 * lto-streamer-out.c (struct sets): New sturcture.
22111 (trivally_defined_alias): New function.
22112 (output_alias_pair_p): Rewrite.
22113 (output_unreferenced_globals): Fix output of alias pairs.
22114 (produce_symtab): Likewise.
22115 * ipa.c (function_and_variable_visibility): Set weak alias destination
22116 as needed in lto.
22117 * varasm.c (symbol_alias_set_t): Remove.
22118 (symbol_alias_set_destroy): Export.
22119 (propagate_aliases_forward, propagate_aliases_backward): New functions
22120 based on ...
22121 (compute_visible_aliases): ... this one; remove.
22122 (trivially_visible_alias): New
22123 (trivially_defined_alias): New.
22124 (remove_unreachable_alias_pairs): Rewrite.
22125 (finish_aliases_1): Reorganize code checking if alias is defined.
22126 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
22127 in LTO mode.
22128
1b248907
RG
221292011-01-11 Richard Guenther <rguenther@suse.de>
22130
22131 PR tree-optimization/46076
22132 * tree-ssa.c (useless_type_conversion_p): Conversions from
22133 unprototyped to empty argument list function types are useless.
22134
b1923f0a
RG
221352011-01-11 Richard Guenther <rguenther@suse.de>
22136
22137 PR middle-end/45235
22138 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
22139 volatile MEMs as MEM_READONLY_P.
22140
e98965af
RG
221412011-01-11 Richard Guenther <rguenther@suse.de>
22142
22143 PR tree-optimization/47239
22144 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
22145
9f9ca914
JL
221462011-01-11 Jeff Law <law@redhat.com>
22147
1ee3ea05 22148 PR tree-optimization/47086
9f9ca914
JL
22149 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
22150 IVs from statements that might throw.
22151
345fdcb7
JH
221522011-01-10 Jan Hubicka <jh@suse.cz>
22153
22154 PR lto/45375
22155 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
22156
c459c97b
JH
221572011-01-10 Jan Hubicka <jh@suse.cz>
22158
22159 PR lto/45375
22160 * profile.c (read_profile_edge_counts): Ignore profile inconistency
22161 when correcting profile.
22162
06c9eb51
JH
221632011-01-10 Jan Hubicka <jh@suse.cz>
22164
22165 PR lto/46083
22166 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
22167 DECL_FINI_PRIORITY.
22168 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
22169 Restore DECL_FINI_PRIORITY.
22170
ae9fd815
RW
221712011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22172
22173 * doc/gimple.texi: Fix quoting of multi-word return values in
22174 @deftypefn statements. Ensure presence of return value. Wrap
22175 overlong @deftypefn lines.
22176 (is_gimple_operand, is_gimple_min_invariant_address): Remove
22177 descriptions of removed functions.
22178 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
22179 of multi-word return value in @deftypefn statement.
22180
0ecb4a7c
RW
221812011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22182
22183 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22184 (Conditional Expressions, Logical Operators)
22185 (Statement and operand traversals): Do not indent smallexample
22186 code. Fix duplicate function argument in example.
22187
2e5e346d
JL
221882011-01-10 Jeff Law <law@redhat.com>
22189
1ee3ea05 22190 PR tree-optimization/47141
2e5e346d
JL
22191 * ipa-split.c (split_function): Handle case where we are
22192 returning a value and the return block has a virtual operand phi.
22193
cf9712cc
JH
221942011-01-10 Jan Hubicka <jh@suse.cz>
22195
1c3ba85b 22196 PR tree-optimization/47234
cf9712cc
JH
22197 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22198 (pass_feedback_split_functions): Declare.
22199 * passes.c (init_optimization_passes): Add ipa-split as subpass of
22200 tree-profile.
22201 * ipa-split.c (gate_split_functions): Update comments; disable
22202 split-functions for profile_arc_flag and branch_probabilities.
22203 (gate_feedback_split_functions): New function.
22204 (execute_feedback_split_functions): New function.
22205 (pass_feedback_split_functions): New global var.
22206
94cd932c
L
222072011-01-10 H.J. Lu <hongjiu.lu@intel.com>
22208
22209 PR lto/46760
22210 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22211 calling gimple_call_set_cannot_inline.
22212
fbbfcaf1
IS
222132011-01-10 Iain Sandoe <iains@gcc.gnu.org>
22214
22215 * config/darwin-sections.def: Remove unused section.
22216
d06865bf
DK
222172011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
22218
22219 PR c++/47218
22220 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22221
96bbfbac
NP
222222011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
22223
22224 PR objc/47232
22225 * c-parser.c (c_parser_declaration_or_fndef): Improved
22226 error message.
22227
1ba6516f
KT
222282011-01-09 Kai Tietz <kai.tietz@onevision.com>
22229
22230 * config/i386/winnt.c (i386_pe_start_function): Make sure
22231 to switch back to function's section.
22232
0c5d770e
IS
222332011-01-09 Iain Sandoe <iains@gcc.gnu.org>
22234
22235 PR gcc/46902
22236 PR testsuite/46912
22237 * plugin.c: Move include of dlfcn.h from here...
22238 * system.h: ... to here.
22239
222402011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
22241
22242 * doc/cpp.texi (C++ Named Operators): Fix markup for header
22243 file name.
22244 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22245 two extra empty pages in PDF output.
22246
046608a3
NP
222472011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
22248
22249 PR objc/47078
22250 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22251 for error recovery purposes behave as if it was not specified so
22252 that the default type is usd.
22253
8cb114b9
JH
222542011-01-07 Jan Hubicka <jh@suse.cz>
22255
22256 PR tree-optmization/46469
22257 * ipa.c (function_and_variable_visibility): Clear needed flags on
22258 nodes with external decls; handle weakrefs merging correctly.
22259
b294a75e
JM
222602011-01-07 Joseph Myers <joseph@codesourcery.com>
22261
22262 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22263 not false.
22264
96bdf9b4
JH
222652011-01-07 Jan Hubicka <jh@suse.cz>
22266
f60c2554 22267 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
22268 and no longer claim that gold is required for linker plugin.
22269 * configure: Regenerate.
22270 * gcc.c (PLUGIN_COND): New macro.
22271 (LINK_COMMAND_SPEC): Use it.
22272 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22273 * config.in (HAVE_LTO_PLUGIN): New.
22274 * configure.ac (--with-lto-plugin): New parameter; autodetect
22275 HAVE_LTO_PLUGIN.
22276
17afc0fe
JH
222772011-01-07 Jan Hubicka <jh@suse.cz>
22278
22279 PR tree-optimization/46367
22280 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22281 when we can update original.
22282 (cgraph_mark_inline_edge): Sanity check.
22283 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22284
d4c48c0f
UW
222852011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22286
22287 * config/spu/spu.h (ASM_COMMENT_START): Define.
22288
96f5b137
L
222892011-01-07 H.J. Lu <hongjiu.lu@intel.com>
22290
22291 PR driver/42445
22292 * gcc.c (%>S): New.
22293 (SWITCH_KEEP_FOR_GCC): Likewise.
22294 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22295 (do_spec_1): Handle "%>".
22296
22297 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22298
c6a8f6de
JJ
222992011-01-07 Jakub Jelinek <jakub@redhat.com>
22300
c21bbd7a
JJ
22301 PR target/47201
22302 * config/i386/i386.c (ix86_delegitimize_address): If
22303 simplify_gen_subreg fails, return orig_x.
22304
c6a8f6de
JJ
22305 PR bootstrap/47187
22306 * value-prof.c (gimple_stringop_fixed_value): Handle
22307 lhs of the call properly.
22308
fe95fbf9
JH
223092011-01-07 Jan Hubicka <jh@suse.cz>
22310
22311 PR lto/45375
22312 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22313
14d11d40
IS
223142011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22315
72e961c8
EB
22316 * target.def (function_switched_text_sections): New hook.
22317 * doc/tm.texi: Regenerated.
22318 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 22319 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
22320 (final_scan_insn): Call function_switched_text_sections when a
22321 mid-function section change occurs.
14d11d40 22322 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
22323 * config/darwin-protos.h (darwin_function_switched_text_sections):
22324 Likewise.
14d11d40 22325 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 22326 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 22327
0b764288
IS
223282011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22329
22330 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22331 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22332 the secondary code fragment when outputting for DWARF == 2.
22333
2ac6bb04
AS
223342011-01-07 Anatoly Sokolov <aesok@post.ru>
22335
22336 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22337 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22338 Remove.
22339 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22340 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22341
9f82de11
EB
223422011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22343
22344 PR debug/46704
280d9630
EB
22345 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22346 when it is not empty.
9f82de11
EB
22347
223482011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 22349
1ed72abf 22350 Bobcat Enablement
14b52538 22351 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 22352 (case ${target}): Add btver1.
14b52538 22353 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 22354 -march=native recognize btver1 processors.
14b52538 22355 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 22356 btver1 def_and_undef
14b52538 22357 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
22358 btver1 cost table.
22359 (m_BTVER1): New definition.
22360 (m_AMD_MULTIPLE): Includes m_BTVER1.
22361 (initial_ix86_tune_features): Add btver1 tune.
22362 (processor_target_table): Add btver1 entry.
22363 (static const char *const cpu_names): Add btver1 entry.
22364 (software_prefetching_beneficial_p): Add btver1.
22365 (ix86_option_override_internal): Add btver1 instruction sets.
22366 (ix86_issue_rate): Add btver1.
22367 (ix86_adjust_cost): Add btver1.
14b52538 22368 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
22369 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22370 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
22371 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22372
e1a973d8
RO
223732011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22374
22375 PR target/43309
22376 * config/i386/i386.c (legitimize_tls_address)
22377 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22378 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22379 (tls_initial_exec_64_sun): New pattern.
22380
c73f67c5
GP
223812011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22382
22383 * doc/invoke.texi (Overall Options): Improve wording and markup
22384 of the description of -wrapper.
22385
bc4c6f9c
JM
223862011-01-06 Joseph Myers <joseph@codesourcery.com>
22387
22388 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22389 rdynamic, threads): New Driver options.
22390
adb75db0
RO
223912011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22392
22393 PR target/38118
22394 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22395 if coming from .tdata.
22396 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22397
402c1cb4
JH
223982011-01-06 Jan Hubicka <jh@suse.cz>
22399
22400 PR lto/47188
22401 * collect2.c (main): Do not enable LTOmode when plugin is active.
22402
a4da6485
RO
224032011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22404
22405 PR other/45915
22406 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22407 --version output if supported.
22408 * configure: Regenerate.
22409
028dbdf4
JM
224102011-01-06 Joseph Myers <joseph@codesourcery.com>
22411
22412 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22413 Driver options.
22414
dfe776dd
JJ
224152011-01-06 Jakub Jelinek <jakub@redhat.com>
22416
22417 PR c/47150
22418 * c-convert.c (convert): When converting a complex expression
22419 other than COMPLEX_EXPR to a different complex type, ensure
22420 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22421 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22422 when converting COMPLEX_TYPE.
22423
210dedfe
IR
224242011-01-06 Ira Rosen <irar@il.ibm.com>
22425
22426 PR tree-optimization/47139
22427 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22428 only the last reduction value is used outside the loop. Update
22429 documentation.
22430
cd33a412
JM
224312011-01-05 Joseph Myers <joseph@codesourcery.com>
22432
22433 * config/rtems.opt: New.
22434 * config.gcc (*-*-rtems*): Use rtems.opt.
22435
819edd94
CF
224362011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22437
22438 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22439 processors do not support 3DNow instructions.
22440
dc242c4a
UW
224412011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22442
22443 * config/spu/spu.c (spu_option_override): Set parameter
22444 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22445
be286227
JH
224462011-01-05 Jan Hubicka <jh@suse.cz>
22447
22448 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22449 at the command line.
22450
644e637f
MJ
224512011-01-05 Martin Jambor <mjambor@suse.cz>
22452
22453 PR lto/47162
22454 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22455 deltas on streamed outgoing edges.
22456 (output_node_opt_summary): Output info for outgoing edges only when
22457 the node is in new parameter set.
22458 (output_cgraph_opt_summary): New parameter set, passed to the two
22459 aforementioned functions. Update its forward declaration and its
22460 callee too.
22461
7bd11157
TT
224622011-01-05 Tom Tromey <tromey@redhat.com>
22463
22464 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22465 operator to c_finish_omp_atomic.
22466 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22467 (build_unary_op): Update.
22468 (build_modify_expr): Update.
22469 (build_asm_expr): Update.
22470
f626b979
UW
224712011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22472
22473 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22474 newly inserted insns.
22475 (pad_bb): Likewise.
22476 (spu_emit_branch_hint): Likewise.
22477 (insert_hbrp_for_ilb_runout): Likewise.
22478 (spu_machine_dependent_reorg): Call df_finish_pass after
22479 schedule_insns returns.
22480
4c825c02
UW
224812011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22482
22483 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22484
5e9fba51
EB
224852011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22486
22487 PR tree-optimization/47005
22488 * tree-sra.c (struct access): Add 'non_addressable' bit.
22489 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22490 (decide_one_param_reduction): Return 0 if the parameter is passed by
22491 reference and one of the accesses in the group is non_addressable.
22492
3ebb5ca6
EB
224932011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22494
22495 PR tree-optimization/47056
22496 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22497 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22498 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22499
d5d4d14e
EB
225002011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22501
22502 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22503 initializer. Skip view conversions from aggregate types.
22504
d996ef70
KT
225052011-01-04 Kai Tietz <kai.tietz@onevision.com>
22506
22507 PR bootstrap/47055
22508 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22509
509d65dd 225102011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
22511
22512 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22513 obvious typo.
22514
55c623b5
UW
225152011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22516
22517 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22518 on empty epilogue sequences.
22519
b98d6b35
JM
225202011-01-04 Joseph Myers <joseph@codesourcery.com>
22521
22522 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22523 non-static): New Driver options.
22524
a0d43bac
JZ
225252011-01-04 Jie Zhang <jie@codesourcery.com>
22526
22527 PR driver/47137
22528 * gcc.c (default_compilers[]): Set combinable field to 0
22529 for all assembly languages.
22530
2b18eb32
MX
225312011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22532
22533 * config/mips/loongson3a.md: New file.
22534 * config/mips/mips.md: Include loongson3a.md.
22535 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22536 TUNE_LOONGSON_3A.
22537
42a48c4f
EB
225382011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22539
22540 PR middle-end/47017
22541 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22542 instead of convert_memory_address_addr_space on the base expression.
22543
9c1732c4
UW
225442011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22545
22546 * config/spu/spu.c (spu_option_override): Update error text
22547 for bad -march= / -mtune= values.
22548
aa474365
UW
225492011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22550
22551 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22552 if branch-hint optimization will be performed.
22553
9766135b
JJ
225542011-01-03 Jakub Jelinek <jakub@redhat.com>
22555
371556ee
JJ
22556 PR tree-optimization/47148
22557 * ipa-split.c (split_function): Convert arguments to
22558 DECL_ARG_TYPE if possible.
22559
1ac12fa2
JJ
22560 PR tree-optimization/47155
22561 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22562 when computing uns.
22563
9766135b
JJ
22564 PR rtl-optimization/47157
22565 * combine.c (try_combine): If undobuf.other_insn becomes
22566 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22567 and set *new_direct_jump_p too.
22568
f4a2e571
SP
225692011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22570
22571 PR tree-optimization/47021
22572 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22573
9f8e43c0
JJ
225742011-01-03 Jakub Jelinek <jakub@redhat.com>
22575
22576 * gcc.c (process_command): Update copyright notice dates.
22577 * gcov.c (print_version): Likewise.
22578 * gcov-dump.c (print_version): Likewise.
22579 * mips-tfile.c (main): Likewise.
22580 * mips-tdump.c (main): Likewise.
22581
1a2e38f3
MJ
225822011-01-03 Martin Jambor <mjambor@suse.cz>
22583
22584 PR tree-optimization/46801
22585 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22586 aggregate fields start at byte boundary instead of the bit-field flag.
22587
56b721c5
L
225882011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22589
22590 PR driver/47137
22591 * gcc.c (main): Revert revision 168407.
22592
839d549b
MJ
225932011-01-03 Martin Jambor <mjambor@suse.cz>
22594
22595 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22596
4ce99a20 225972011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
22598
22599 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22600 vector optab to expand vector/scalar shift, update gimple to vector.
22601
76df0ae6
MJ
226022011-01-03 Martin Jambor <mjambor@suse.cz>
22603
22604 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22605 a thunk.
22606
ce47fda3
MJ
226072011-01-03 Martin Jambor <mjambor@suse.cz>
22608
22609 PR tree-optimization/46984
22610 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22611 HOST_WIDE_INT.
22612 (cgraph_create_indirect_edge): Fixed line length.
22613 (cgraph_indirect_call_info): Declare.
22614 (cgraph_make_edge_direct) Update declaration.
22615 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22616 (cgraph_create_indirect_edge): Use it.
22617 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22618 callees.
22619 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22620 the new thunk_delta representation.
22621 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22622 HOST_WIDE_INT.
22623 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22624 (ipa_read_indirect_edge_info): Likewise.
22625 * lto-cgraph.c (output_edge_opt_summary): New function.
22626 (output_node_opt_summary): Call it on all outgoing edges.
22627 (input_edge_opt_summary): New function.
22628 (input_node_opt_summary): Call it on all outgoing edges.
22629
1e67fa1f
L
226302011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22631
22632 PR driver/47137
22633 * gcc.c (main): Don't check have_o when settting combine_inputs.
22634
6656b2ac
EB
226352011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22636
22637 * regrename.c: Add general comment describing the pass.
22638 (struct du_head): Remove 'length' field.
22639 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22640 (regrename_optimize): Do not sort chains. Rework comments, add others.
22641 Force renaming to the preferred class (if any) in the first pass and do
22642 not consider registers that belong to it in the second pass.
22643 (create_new_chain): Do not set 'length' field.
22644 (scan_rtx_reg): Likewise.
22645
bc470c24
JJ
226462011-01-02 Jakub Jelinek <jakub@redhat.com>
22647
4e996296
JJ
22648 PR tree-optimization/47140
22649 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22650 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22651 to bit_value_binop.
22652
bc470c24 22653 PR rtl-optimization/47028
6656b2ac
EB
22654 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22655 parm_birth_insn instead of at the beginning of first bb.
bc470c24 22656
5af62fcd 226572011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
22658
22659 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22660 Remove the word "see" before "@pxref".
22661 * doc/rtl.texi: Remove the word "see" before "@pxref".
22662
0e20c89f
JH
226632011-01-01 Jan Hubicka <jh@suse.cz>
22664
6656b2ac
EB
22665 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22666 memory.
0e20c89f 22667
220e83ca
KT
226682011-01-01 Kai Tietz <kai.tietz@onevision.com>
22669
22670 PR target/38662
6656b2ac 22671 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 22672
ad41bd84 22673\f
797103eb 22674Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
22675
22676Copying and distribution of this file, with or without modification,
22677are permitted in any medium without royalty provided the copyright
22678notice and this notice are preserved.