]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Remove max_signed_precision_type.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
12b30e6d
SP
12011-07-21 Sebastian Pop <sebastian.pop@amd.com>
2
3 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
4 (max_precision_type): Inline max_signed_precision_type.
5 (type_for_clast_red): Use max_precision_type.
6 (type_for_clast_bin): Same.
7 (type_for_clast_for): Same.
8
0cdd9dcf
SP
92011-07-21 Sebastian Pop <sebastian.pop@amd.com>
10
11 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
12 type_for_interval.
13 (gcc_type_for_value): Renamed type_for_value.
14 (gcc_type_for_clast_term): Renamed type_for_clast_term.
15 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
16 (gcc_type_for_clast_red): Renamed type_for_clast_red.
17 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
18 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
19 (graphite_translate_clast_equation): Update calls.
20 (compute_type_for_level): Renamed type_for_level.
21 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
22 (build_iv_mapping): Update calls.
23 (graphite_create_new_loop_guard): Same.
24
8aab43a0
SP
252011-07-21 Sebastian Pop <sebastian.pop@amd.com>
26
27 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
28 comment.
29
cf7eab7d
SP
302011-07-21 Sebastian Pop <sebastian.pop@amd.com>
31
32 * graphite-clast-to-gimple.c (struct ivs_params): New.
33 (clast_name_to_gcc): Use ivs_params to pass around parameters.
34 (clast_to_gcc_expression): Same.
35 (clast_to_gcc_expression_red): Same.
36 (gcc_type_for_clast_term): Same.
37 (gcc_type_for_clast_expr): Same.
38 (gcc_type_for_clast_red): Same.
39 (gcc_type_for_clast_bin): Same.
40 (gcc_type_for_clast_eq): Same.
41 (graphite_translate_clast_equation): Same.
42 (graphite_create_guard_cond_expr): Same.
43 (graphite_create_new_guard): Same.
44 (graphite_create_new_loop): Same.
45 (build_iv_mapping): Same.
46 (translate_clast_user): Same.
47 (graphite_create_new_loop_guard): Same.
48 (translate_clast): Same.
49 (translate_clast_for_loop): Same.
50 (translate_clast_for): Same.
51 (translate_clast_guard): Same.
52 (initialize_cloog_names): Fix typo.
53 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
54
7b1e9596
SP
552011-07-21 Sebastian Pop <sebastian.pop@amd.com>
56
57 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
58 (new_clast_name_index): Add level parameter.
59 (clast_name_to_level): New.
60 (save_clast_name_index): Add level parameter.
61 (newivs_to_depth_to_newiv): Removed.
62 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
63 (graphite_create_new_loop): Add level parameter. Pass level to
64 save_clast_name_index.
65 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
66 (create_params_index): Pass level to save_clast_name_index.
67
6e6568db
SP
682011-07-21 Sebastian Pop <sebastian.pop@amd.com>
69
70 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
71 recompute type, lb, and ub. Get them from...
72 (graphite_create_new_loop_guard): ...here. Pass in parameter
73 pointers to type, lb, and ub.
74 (translate_clast_for_loop): Update function calls.
75 (translate_clast_for): Same.
76
dff62090
SP
772011-07-21 Sebastian Pop <sebastian.pop@amd.com>
78
79 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
80 psct_dynamic_dim.
81 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
82 (gcc_type_for_iv_of_clast_loop): Update use of level.
83 (gloog): Start counting nesting level from 0.
84 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
85 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
86 psct_dynamic_dim on level.
87
628c1ac9
L
882011-07-21 H.J. Lu <hongjiu.lu@intel.com>
89
90 * config/i386/i386.c (ix86_legitimize_address): Convert to
91 Pmode if needed.
92
08a8923e
L
932011-07-21 H.J. Lu <hongjiu.lu@intel.com>
94
95 * config/i386/i386.c (function_value_64): Always return pointers
96 in Pmode.
97 (ix86_promote_function_mode): New.
98 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
99
777a4e9a
BS
1002011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
101
102 PR tree-optimization/49749
103 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
104 remove no-longer-used maxrank variable.
105
e9514725
GJL
1062011-07-21 Georg-Johann Lay <avr@gjlay.de>
107
108 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
109
9ca1483b
JM
1102011-07-21 Jason Merrill <jason@redhat.com>
111
112 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
113 * recog.h (struct insn_data_d): Check it instead of
114 HAVE_DESIGNATED_INITIALIZERS.
115 * genoutput.c (output_insn_data): Likewise.
116
3ceaf2f5
RG
1172011-07-21 Richard Guenther <rguenther@suse.de>
118
119 PR tree-optimization/49770
120 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
121 valueized any operand. Renamed from ...
122 (valueize_refs): ... this. New wrapper around valueize_refs_1.
123 (valueize_shared_reference_ops_from_ref): Return whether we
124 valueized any operand.
125 (vn_reference_lookup): Only when we valueized any operand
126 use the valueized reference for alias analysis. Do not preserve
127 the original reference tree in this case.
128
7c53a140
UB
1292011-07-21 Uros Bizjak <ubizjak@gmail.com>
130
131 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 132 register operands and subregs of DImode hard registers in index.
7c53a140 133
7f3ff782
KT
1342011-07-21 Kai Tietz <ktietz@redhat.com>
135
136 * fold-const.c (fold_unary_loc): Preserve indirect
137 comparison cast to none-boolean type.
138 * tree-ssa.c (useless_type_conversion_p): Preserve cast
139 from/to boolean-type.
7c53a140
UB
140 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
141 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
142 * tree-cfg.c (verify_gimple_comparison): Check result
143 type of comparison expression.
7c53a140
UB
144 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
145 of condition result and disallow type-cast sinking into comparison.
7f3ff782 146
91bc6112
RG
1472011-07-21 Richard Guenther <rguenther@suse.de>
148
149 * tree-ssa-forwprop.c (combine_conversions): Return whether
150 we have to run cfg-cleanup. Properly remove dead stmts.
151 (ssa_forward_propagate_and_combine): Adjust.
152
d6f23738
RS
1532011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
154
155 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
156
fec3cad3
KT
1572011-07-21 Kai Tietz <ktietz@redhat.com>
158
159 * tree-ssa-propagate.c (substitute_and_fold): Use
160 do_dce flag to deside, if BB's statements are scanned
161 in last to first, or first to last order.
162
21f3ae2f 1632011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 164
21f3ae2f
GJL
165 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
166
6025b127
L
1672011-07-20 H.J. Lu <hongjiu.lu@intel.com>
168 Uros Bizjak <ubizjak@gmail.com>
169 Richard Henderson <rth@redhat.com>
170
171 * config/i386/constraints.md (w): New.
172
173 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
174 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
175
176 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
177 instead of TARGET_64BIT.
178
179 * config/i386/i386.md (indirect_jump): Replace
180 nonimmediate_operand with indirect_branch_operand.
181 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
182 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
183 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
184 (*tablejump_1): Replace nonimmediate_operand with
185 indirect_branch_operand. Replace constraint "m" with "w".
186 (*call_vzeroupper): Replace constraint "m" with "w".
187 (*call): Likewise.
188 (*call_rex64_ms_sysv_vzeroupper): Likewise.
189 (*call_rex64_ms_sysv): Likewise.
190 (*call_value_vzeroupper): Likewise.
191 (*call_value): Likewise.
192 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
193 (*call_value_rex64_ms_sysv): Likewise.
a4235495 194 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
195
196 * config/i386/predicates.md (indirect_branch_operand): New.
197 (call_insn_operand): Support x32.
198
7f8925a1
ME
1992011-07-20 Michael Eager <eager@eagercon.com>
200
201 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
202
510a442a
RH
2032011-07-20 Richard Henderson <rth@redhat.com>
204
205 * cfg.c (dump_bb_info): Dump basic_block->flags.
206 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
207
00b40d0d
UB
2082011-07-20 Uros Bizjak <ubizjak@gmail.com>
209
210 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
211 of DImode hard registers in index.
212 (ix86_legitimate_address_p): Allow subregs of base and index to span
213 more than a word. Assert that subregs of base and index satisfy
214 register_no_elim_operand predicates. Reject addresses where
215 base and index have different modes.
216
87f53554
RM
2172011-07-20 Robert Millan <rmh@gnu.org>
218
219 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
220
742f29ab
UW
2212011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
222
223 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
224 removing now-unnecessary assignment.
225
d05f3564
UW
2262011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
227
228 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
229 memory address space to the type's address space.
230
8c352fa8 2312011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 232
8c352fa8
GJL
233 PR target/36467
234 PR target/49687
00b40d0d
UB
235 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
236 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
237 (usmulqihi3): New insn.
238 (*sumulqihi3): New insn.
239 (*osmulqihi3): New insn.
240 (*oumulqihi3): New insn.
241 (*muluqihi3.uconst): New insn_and_split.
242 (*muluqihi3.sconst): New insn_and_split.
243 (*mulsqihi3.sconst): New insn_and_split.
244 (*mulsqihi3.uconst): New insn_and_split.
245 (*mulsqihi3.oconst): New insn_and_split.
246 (*ashifthi3.signx.const): New insn_and_split.
247 (*ashifthi3.signx.const7): New insn_and_split.
248 (*ashifthi3.zerox.const): New insn_and_split.
249 (mulsqihi3): New insn.
250 (muluqihi3): New insn.
251 (muloqihi3): New insn.
252 * config/avr/predicates.md (const_2_to_7_operand): New.
253 (const_2_to_6_operand): New.
254 (u8_operand): New.
255 (s8_operand): New.
256 (o8_operand): New.
257 (s9_operand): New.
258 (register_or_s9_operand): New.
259
be31603a
KT
2602011-07-20 Kai Tietz <ktietz@redhat.com>
261
262 * builtins.c (fold_builtin_expect): See through the cast
263 from truthvalue_type_node to long.
264
c36193c6
MM
2652011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
266
267 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
268 where we can use them from the standard and altivec instruction
269 sets, instead of always using the 3 operand VSX forms that require
270 the destination to overlap one of the inputs.
271 (vsx_fms*): Ditto.
272 (vsx_fnma*): Ditto.
273 (vsx_fnms*): Ditto.
274
275 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
276 for DF types.
277 (fmsdf4_fpr): Ditto.
278 (nfmadf4_fpr): Ditto.
279 (nfmsdf4_fpr): Ditto.
280
02aec184
SL
2812011-07-20 Sandra Loosemore <sandra@codesourcery.com>
282
283 * genrecog.c (make_insn_sequence): Correct position numbering
284 when filtering out match_scratch and match_dup.
285
f8ecf734
RG
2862011-07-20 Richard Guenther <rguenther@suse.de>
287
288 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
289 against already removed statements.
290 (forward_propagate_into_comparison): Remove dead defining stmts.
291 (forward_propagate_into_gimple_cond): Likewise.
292 (forward_propagate_into_cond): Simplify.
293 (ssa_forward_propagate_and_combine): Handle changed cfg from
294 forward_propagate_into_comparison.
295 * tree-ssa-phiopt.c (conditional_replacement): Use proper
296 locations for newly built statements.
297
73451ae7
GJL
2982011-07-20 Georg-Johann Lay <avr@gjlay.de>
299
300 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
301
c4100a35
AK
3022011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
303
304 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
305 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
306
dca412a1
RG
3072011-07-20 Richard Guenther <rguenther@suse.de>
308
309 PR middle-end/18908
310 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
311 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
312 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
313
73d7e266
VM
3142011-07-20 Vladimir Makarov <vmakarov@redhat.com>
315
316 * config/frv/frv.c (frv_register_move_cost): Define explicitly
317 costs for subclasses of GR_REGS.
318
5e27a6d4
UB
3192011-07-20 Uros Bizjak <ubizjak@gmail.com>
320
321 PR target/49780
322 * config/i386/predicates.md (no_seg_addres_operand): No more special.
323 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
324 of DImode hard registers in base.
325 (ix86_legitimate_address_p): Allow SImode and DImode base and index
326 registers.
327
74d8fa44
RG
3282011-07-20 Richard Guenther <rguenther@suse.de>
329
5e27a6d4 330 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
331 (unify_nodes): Deal with that.
332 (solve_graph): Likewise.
333
b0e43da8
CLT
3342011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
335
336 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
337 canonicalize left operand from ZERO_EXTEND to AND.
338
a8c44c52
AS
3392011-07-20 Anatoly Sokolov <aesok@post.ru>
340
341 * target.def (class_max_nregs): New hook.
342 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
343 * doc/tm.texi: Regenerate.
344 * targhooks.c (default_class_max_nregs): New function.
345 * targhooks.h (default_class_max_nregs): Declare.
346 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
347 x_ira_reg_class_min_nregs arrays to unsigned char.
348 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
349 hook instead of CLASS_MAX_NREGS macro.
350 * reginfo.c (restore_register_info): Ditto.
351 * ira-conflicts.c (process_regs_for_copy): Use
352 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
353 Change type rclass and aclass vars to reg_class_t.
354 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
355 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
356 reg_class_t.
357 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
358 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
359
360 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
361 * config/i386/i386.c (ix86_class_max_nregs): New function.
362 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
363 instead of CLASS_MAX_NREGS macro.
364 (TARGET_CLASS_MAX_NREGS): Define.
365 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
366 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
367 * config/avr/avr.c (class_max_nregs): Remove function.
368 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
369 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
370 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
371 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
372 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
373 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
374 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
375 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
376 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
377 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
378 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
379 * config/score/score.h (CLASS_MAX_NREGS): Remove.
380 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
381 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
382 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
383
fd811f03
EB
3842011-07-19 Eric Botcazou <ebotcazou@adacore.com>
385
386 * cif-code.def (OVERWRITABLE): Fix typo and move around.
387 (TARGET_OPTIMIZATION_MISMATCH): Delete.
388 (EH_PERSONALITY): Fix typo.
389 (NON_CALL_EXCEPTIONS): Fix message.
390 (OPTIMIZATION_MISMATCH): Adjust message.
391 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
392
78767fd9
ILT
3932011-07-19 Ian Lance Taylor <iant@google.com>
394
395 * doc/install.texi (Configuration): Document
396 --enable-build-poststage1-with-cxx.
397
0baeec1b
RM
3982011-07-19 Robert Millan <rmh@gnu.org>
399
400 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
401 (GLIBC_DYNAMIC_LINKER): Remove.
402
403 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
404 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
405 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
406 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
407 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
408 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
409
410 * config/mips/linux.h: Remove everything except for ...
411 (GLIBC_DYNAMIC_LINKER): ... this macro.
412
413 * config/mips/linux64.h: Remove everything except for ...
414 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
415 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
416 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
417 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
418 (GNU_USER_LINK_EMULATIONN32): New macros.
419
5e27a6d4
UB
420 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
421 Use the new headers.
0baeec1b 422
754c3d5d
RS
4232011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
424
425 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
426 Add offset_known_p and size_known_p fields.
427 (MEM_OFFSET_KNOWN_P): Update accordingly.
428 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
429 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
430 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
431 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
432 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
433 (init_emit_regs): Likewise.
434
527210c4
RS
4352011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
436
437 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
438 (MEM_OFFSET): Change from returning an rtx to returning a
439 HOST_WIDE_INT.
440 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
441 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
442 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
443 (clear_mem_offset): Declare.
444 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
445 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
446 MEM_OFFSET to get a HOST_WIDE_INT offset.
447 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
448 (adjust_offset_for_component_ref): Take a bool "known_p"
449 parameter and a HOST_WIDE_INT "offset" parameter.
450 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
451 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
452 than an rtx. Use clear_mem_offset to clear the offset.
453 * cfgcleanup.c (merge_memattrs): Likewise.
454 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
455 * function.c (assign_parm_find_stack_rtl): Likewise.
456 (assign_parm_setup_stack): Likewise.
457 * print-rtl.c (print_rtx): Likewise.
458 * reload.c (find_reloads_subreg_address): Likewise.
459 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
460 * var-tracking.c (INT_MEM_OFFSET): Likewise.
461 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
462 (get_mem_align_offset): Likewise.
463 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
464 (clear_mem_offset): New function.
465 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
466 offset rather than an rtx. Assume both the expressio and offset
467 are available.
468 (r10k_needs_protection_p_1): Update accordingly, checking the
469 expression and offset availability here instead.
470
f5541398
RS
4712011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
472
473 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
474 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
475 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
476 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
477 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
478 (clear_mem_size): Declare.
479 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
480 (clear_mem_size): New function.
481 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
482 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
483 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
484 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
485 to clear the size.
486 (nonoverlapping_memrefs_p): Likewise.
487 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
488 (expand_builtin_init_trampoline): Likewise.
489 * calls.c (compute_argument_addresses): Likewise.
490 * cfgcleanup.c (merge_memattrs): Likewise.
491 * dce.c (find_call_stack_args): Likewise.
492 * dse.c (record_store, scan_insn): Likewise.
493 * dwarf2out.c (dw_sra_loc_expr): Likewise.
494 * expr.c (emit_block_move_hints): Likewise.
495 * function.c (assign_parm_find_stack_rtl): Likewise.
496 * print-rtl.c (print_rtx): Likewise.
497 * reload.c (find_reloads_subreg_address): Likewise.
498 * rtlanal.c (may_trap_p_1): Likewise.
499 * var-tracking.c (track_expr_p): Likewise.
500 * varasm.c (assemble_trampoline_template): Likewise.
501 * config/arm/arm.c (arm_print_operand): Likewise.
502 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
503 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
504 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
505 (expand_constant_setmem_prologue): Likewise.
506 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
507 * config/rs6000/rs6000.c (expand_block_move): Likewise.
508 (adjacent_mem_locations): Likewise.
509 * config/s390/s390.c (s390_expand_setmem): Likewise.
510 (s390_expand_insv): Likewise.
511 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
512 (*extendqi<mode>2_short_displ): Likewise.
513 * config/sh/sh.c (expand_block_move): Likewise.
514 * config/sh/sh.md (extv, extzv): Likewise.
515
f12144dd
RS
5162011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
517
518 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
519 (mem_attrs_htab_eq): ...here.
520 (find_mem_attrs): Replace with...
521 (set_mem_attrs): ...this function. Take a mem_attrs structure
522 rather than individual fields.
523 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
524 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
525 (set_mem_size, change_address, adjust_address_1, offset_address)
526 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
527 Update accordingly.
528
1c3f523e
RS
5292011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
530
531 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
532 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
533 Provide a dummy definition of MEM_ADDR_SPACE for generators.
534 (target_rtl): Add x_mode_mem_attrs.
535 (mode_mem_attrs): New macro.
536 (get_mem_attrs): New function.
537 * emit-rtl.c (get_mem_attrs): Rename to...
538 (find_mem_attrs): ...this.
539 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
540 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
541 (set_mem_size, change_address, adjust_address_1, offset_address)
542 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
543 Update accordingly.
544 (init_emit_regs): Initialize mode_mem_attrs.
545
3046b1a9
RG
5462011-07-19 Richard Guenther <rguenther@suse.de>
547
548 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
549 TRUTH_*_EXPR handling.
550 * tree-ssa-operands.c (get_expr_operands): Likewise.
551 * tree-ssa-pre.c (fully_constant_expression): Likewise.
552 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
553 Likewise.
554 (is_and_or_or): Likewise.
555 (is_norm_cond_subset_of): Likewise.
556
5d49b6a7
RG
5572011-07-19 Richard Guenther <rguenther@suse.de>
558
559 * tree.h (fold_build_pointer_plus_loc): New helper function.
560 (fold_build_pointer_plus_hwi_loc): Likewise.
561 (fold_build_pointer_plus): Define.
562 (fold_build_pointer_plus_hwi): Likewise.
563 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
564 (fold_builtin_memory_op): Likewise.
565 (fold_builtin_stpcpy): Likewise.
566 (fold_builtin_memchr): Likewise.
567 (fold_builtin_strstr): Likewise.
568 (fold_builtin_strchr): Likewise.
569 (fold_builtin_strrchr): Likewise.
570 (fold_builtin_strpbrk): Likewise.
571 (fold_builtin_strcat): Likewise.
572 (expand_builtin_memory_chk): Likewise.
573 (fold_builtin_memory_chk): Likewise.
574 * c-typeck.c (build_unary_op): Likewise.
575 * cgraphunit.c (thunk_adjust): Likewise.
576 * fold-const.c (build_range_check): Likewise.
577 (fold_binary_loc): Likewise.
578 * omp-low.c (extract_omp_for_data): Likewise.
579 (expand_omp_for_generic): Likewise.
580 (expand_omp_for_static_nochunk): Likewise.
581 (expand_omp_for_static_chunk): Likewise.
582 * tree-affine.c (add_elt_to_tree): Likewise.
583 * tree-data-ref.c (split_constant_offset_1): Likewise.
584 * tree-loop-distribution.c (generate_memset_zero): Likewise.
585 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
586 * tree-predcom.c (ref_at_iteration): Likewise.
587 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
588 (add_to_parts): Likewise.
589 (create_mem_ref): Likewise.
590 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
591 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
592 (number_of_iterations_le): Likewise.
593 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
594 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
595 (vect_create_addr_base_for_vector_ref): Likewise.
596 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
597 (vect_create_cond_for_alias_checks): Likewise.
598 * tree-vrp.c (extract_range_from_assert): Likewise.
599 * config/alpha/alpha.c (alpha_va_start): Likewise.
600 (alpha_gimplify_va_arg_1): Likewise.
601 * config/i386/i386.c (ix86_va_start): Likewise.
602 (ix86_gimplify_va_arg): Likewise.
603 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
604 * config/mep/mep.c (mep_expand_va_start): Likewise.
605 (mep_gimplify_va_arg_expr): Likewise.
606 * config/mips/mips.c (mips_va_start): Likewise.
607 (mips_gimplify_va_arg_expr): Likewise.
608 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
609 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
610 (rs6000_gimplify_va_arg): Likewise.
611 * config/s390/s390.c (s390_va_start): Likewise.
612 (s390_gimplify_va_arg): Likewise.
613 * config/sh/sh.c (sh_va_start): Likewise.
614 (sh_gimplify_va_arg_expr): Likewise.
615 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
616 * config/spu/spu.c (spu_va_start): Likewise.
617 (spu_gimplify_va_arg_expr): Likewise.
618 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
619 Likewise.
620 (xstormy16_gimplify_va_arg_expr): Likewise.
621 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
622 (xtensa_gimplify_va_arg_expr): Likewise.
623
d906fd7f
RG
6242011-07-19 Richard Guenther <rguenther@suse.de>
625
626 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
627 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
628 handling.
629
630 PR middle-end/18908
631 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
632 result of BIT_*_EXPR to bitfield precision.
633
1b14d815
RS
6342011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
635
636 PR tree-optimization/49742
637 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
638 as a potential write.
639
d906fd7f
RG
6402011-07-19 Richard Guenther <rguenther@suse.de>
641
642 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
643 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
644 (forward_propagate_comparison): Simplify, remove obsolete code.
645
53020648
RG
6462011-07-19 Richard Guenther <rguenther@suse.de>
647
648 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
649 BIT_XOR_EXPR, same as the RTL expander does.
650 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
651 (verify_gimple_assign_unary): Likewise.
652 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
653 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
654 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
655
b8b2b009
JJ
6562011-07-19 Jakub Jelinek <jakub@redhat.com>
657
658 PR tree-optimization/49768
659 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
660 if offset is smaller than bitoffset, but offset+size is bigger
661 than bitoffset.
662
338f655d
IR
6632011-07-19 Ira Rosen <ira.rosen@linaro.org>
664
665 PR tree-optimization/49771
666 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
667 zero step, set segment length to the size of the data-ref's type.
668
310bc633
MJ
6692011-07-18 Martin Jambor <mjambor@suse.cz>
670
671 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
672 comments.
673 (ipcp_values_pool): Declare.
674 (ipcp_sources_pool): Likewise.
675 (ipcp_lattice): Changed to forward declaration.
676 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
677 cannot_devirtualize.
678 (ipa_node_params): New fields descriptors, lattices, known_vals,
679 clone_for_all_contexts and node dead, removed fields params and
680 count_scale.
681 (ipa_set_param_count): Removed.
682 (ipa_get_param_count): Made to work with descriptors vector.
683 (ipa_get_param): Updated.
684 (ipa_param_cannot_devirtualize_p): Removed.
685 (ipa_param_types_vec_empty): Likewise.
686 (ipa_set_param_used): New function.
687 (ipa_get_param_used): Updated to use descriptors vector.
688 (ipa_func_list): Removed.
689 (ipa_init_func_list): Removed declaration.
690 (ipa_push_func_to_list_1): Likewise.
691 (ipa_pop_func_from_list): Likewise.
692 (ipa_push_func_to_list): Removed.
693 (ipa_lattice_from_jfunc): Remove declaration.
694 (ipa_get_jf_pass_through_result): Declare.
695 (ipa_get_jf_ancestor_result): Likewise.
696 (ipa_value_from_jfunc): Likewise.
697 (ipa_get_lattice): Update.
698 (ipa_lat_is_single_const): New function.
699 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
700 (ipa_init_func_list): Likewise.
701 (ipa_pop_func_from_list): Likewise.
702 (ipa_get_param_decl_index): Fix coding style.
703 (count_formal_params): Removed.
704 (count_formal_params_1): Renamed to count_formal_params.
705 (ipa_populate_param_decls): Update to use descriptors vector.
706 (ipa_initialize_node_params): Likewise.
707 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
708 (ipa_analyze_params_uses): Likewise.
709 (ipa_free_node_params_substructures): Likewise and free also lattices
710 and known values.
711 (duplicate_array): Removed.
712 (ipa_edge_duplication_hook): Add the new edge to the list of edge
713 clones.
714 (ipa_node_duplication_hook): Update to use new lattices.
715 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
716 (ipa_free_all_structures_after_iinln): Likewise.
717 (ipa_write_node_info): Update to use new lattices.
718 (ipa_read_node_info): Likewise.
719 (ipa_get_jf_pass_through_result): New function.
720 (ipa_get_jf_ancestor_result): Likewise.
721 (ipa_value_from_jfunc): Likewise.
722 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
723 * ipa-cp.c: Reimplemented.
724 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
725 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
726 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
727 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
728 * doc/invoke.texi (devirt-type-list-size): Removed description.
729 (ipa-cp-value-list-size): Added description.
730
6774a66f
RH
7312011-07-18 Richard Henderson <rth@redhat.com>
732
733 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
734 before calling create_basic_block.
735
8b316874
JJ
7362011-07-18 Jakub Jelinek <jakub@redhat.com>
737
738 PR middle-end/49675
739 * tree.c (build_common_builtin_nodes): Register
740 __builtin_return_address, __cyg_profile_func_enter
741 and __cyg_profile_func_exit.
742
9f68560b
RH
7432011-07-18 Richard Henderson <rth@redhat.com>
744
745 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
746 (add_labels_and_missing_jumps): ... here.
747 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
748
03126412
UB
7492011-07-18 Uros Bizjak <ubizjak@gmail.com>
750
751 PR target/47744
752 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
753 of DImode hard registers in PLUS address chains.
754
fbf80ef7
RO
7552011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
756
757 PR bootstrap/49769
758 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
759 (alpha*-*-freebsd*): Likewise.
760 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
761 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
762 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
763 crtprec80.o, crtfastmath.o to extra_parts for all targets.
764 (ia64*-*-elf*): Remove extra_parts.
765 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
766 (sparc64-*-linux*): Likewise.
767 (sparc64-*-freebsd*): Likewise.
768
769 Revert:
770 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
771 (ia64*-*-linux*): Likewise.
772 (mips64*-*-linux*): Likewise.
773 (mips*-*-linux*): Likewise.
774
daf633ba
DE
7752011-07-18 David Edelsohn <dje.gcc@gmail.com>
776
777 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
778
4b4455e5
RG
7792011-07-18 Richard Guenther <rguenther@suse.de>
780
781 * gimplify.c (gimplify_expr): Use input_location, not saved_location
782 when building new trees.
783
e002c7cb
RG
7842011-07-18 Richard Guenther <rguenther@suse.de>
785
786 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
787 expansion result to bitfield precision if required.
788
e44dbbe1
RO
7892011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
790
791 * config.gcc (i[3456x]86-*-netware*): Remove.
792
793 * gthr-nks.h: Remove.
794 * configure.ac (enable_threads): Remove nks.
795 * configure: Regenerate.
796
797 * config/i386/i386.c (ix86_encode_section_info): Remove netware
798 reference.
799 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
800 <netware.h> reference.
801
802 * config/i386/netware-libgcc.c,
803 gcc/config/i386/netware-libgcc.def,
804 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
805 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
806 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
807 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
808
809 * doc/extend.texi (Function Attributes,
810 callee_pop_aggregate_return): Remove i?86-netware reference.
811 * doc/install.texi (Configuration, --enable-threads): Remove nks.
812
fd862017
JDA
8132011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
814
815 PR target/49746
816 Revert:
817 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
818
819 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
820 patterns.
821
1ff24749
EB
8222011-07-17 Eric Botcazou <ebotcazou@adacore.com>
823
824 PR middle-end/49732
825 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
826
a4a2c37d
MK
8272011-07-16 Matthias Klose <doko@ubuntu.com>
828
829 * doc/install.texi: Document --enable-static-libjava.
830
ea6136a2
RH
8312011-07-15 Richard Henderson <rth@redhat.com>
832
833 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
834 Replace all three arguments by returning a VEC of edges.
835 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
836 pointers and counts.
837 (fix_edges_for_rarely_executed_code): Merge ...
838 (rest_of_handle_partition_blocks): ... into...
839 (partition_hot_cold_basic_blocks): ... here. Return todo items if
840 any work was performed.
841 (pass_partition_blocks): Clear todo_flags_finish.
842
6545e33e
PC
8432011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
844 Jakub Jelinek <jakub@redhat.com>
845 Jonathan Wakely <jwakely.gcc@gmail.com>
846
847 PR libstdc++/49745
848 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
849 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
850
6feeed06
JM
8512011-07-15 Jason Merrill <jason@redhat.com>
852
853 PR testsuite/49741
854 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
855 rather than --tool_opts.
856
44762055
BS
8572011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
858
859 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 860 corresponding gtype.state.
44762055 861
1be0310c
JDA
8622011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
863
864 PR target/49723
865 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
866
12c5ffe5
EB
8672011-07-15 Eric Botcazou <ebotcazou@adacore.com>
868
869 PR target/48220
870 * doc/md.texi (Standard Names): Document window_save.
871 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
872 expand_debug_expr and expand_debug_source_expr. If the target has
873 a window_save instruction, adjust the ENTRY_VALUE_EXP.
874 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
875 SSA_NAME_VAR is a parameter.
876 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
877 * var-tracking.c (parm_reg_t): New type and associated vector type.
878 (windowed_parm_regs): New variable.
879 (adjust_insn): If the target has a window_save instruction and this
880 is the instruction, make its effect on parameter registers explicit.
881 (next_non_note_insn_var_location): New function.
882 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
883 (vt_add_function_parameter): If the target has a window_save insn,
884 adjust the incoming RTL and record that in windowed_parm_regs.
885 (vt_finalize): Free windowed_parm_regs.
886
bcead286
BS
8872011-07-15 Bernd Schmidt <bernds@codesourcery.com>
888
889 * doc/invoke.texi (C6X Options): New section.
890 * doc/md.texi (TI C6X family): New section.
891 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
892 tic6x-*-uclinux.
893 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
894 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
895 Provide C6X definitions.
896 * config/c6x/c6x.md: New file.
897 * config/c6x/constraints.md: New file.
898 * config/c6x/predicates.md: New file.
899 * config/c6x/c6x-sched.md.in: New file.
900 * config/c6x/c6x-sched.md: New file.
901 * config/c6x/gensched.sh: New file.
902 * config/c6x/c6x-mult.md.in: New file.
903 * config/c6x/genmult.sh: New file.
904 * config/c6x/c6x-mult.md: New file.
905 * config/c6x/sync.md: New file.
906 * config/c6x/c6x-protos.h: New file.
907 * config/c6x/sfp-machine.h: New file.
908 * config/c6x/c6x.c: New file.
909 * config/c6x/c6x.h: New file.
910 * config/c6x/crti.s: New file.
911 * config/c6x/crtn.s: New file.
912 * config/c6x/lib1funcs.asm: New file.
913 * config/c6x/c6x-modes.def: New file.
914 * config/c6x/genopt.sh: New file.
915 * config/c6x/c6x.opt: New file.
916 * config/c6x/c6x-tables.opt: New file.
917 * config/c6x/c6x-opts.h: New file.
918 * config/c6x/c6x-isas.def: New file.
919 * config/c6x/elf.h: New file.
920 * config/c6x/elf-common.h: New file.
921 * config/c6x/uclinux-elf.h: New file.
922 * config/c6x/t-c6x: New file.
923 * config/c6x/t-c6x-elf: New file.
924 * config/c6x/t-c6x-uclinux: New file.
925 * config/c6x/t-c6x-softfp: New file.
926 * config/c6x/gtd.c: New file.
927 * config/c6x/gtf.c: New file.
928 * config/c6x/ltd.c: New file.
929 * config/c6x/ltf.c: New file.
930 * config/c6x/ged.c: New file.
931 * config/c6x/gef.c: New file.
932 * config/c6x/led.c: New file.
933 * config/c6x/lef.c: New file.
934 * config/c6x/eqd.c: New file.
935 * config/c6x/eqf.c: New file.
936 * config/c6x/libgcc-c6xeabi.ver: New file.
937
aef0e7a8
BS
938 Revert
939 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
940 PR rtl-optimization/11320
941 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
942 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
943 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
944 current_sched_info->compute_jump_reg_dependencies. Record which
945 registers are used and which registers are set by the jump.
946 Clear deps->reg_conditional_sets after a barrier.
947 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
948 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
949 (init_deps): Initialize reg_conditional_sets.
950 (free_deps): Clear reg_conditional_sets.
951 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
952 Mark registers live on entry of the fallthrough block and conditionally
953 set as set by the jump. Mark registers live on entry of non-fallthrough
954 blocks as used by the jump.
955 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
956 Mark new parameters as unused.
957
9bed2f0d
AP
9582011-07-14 Andrew Pinski <pinskia@gmail.com>
959
960 PR tree-opt/49309
961 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
962 Use fold_build2_loc instead of build2.
963 Use the correct type for the new tree.
964
1f88caaa
BS
9652011-07-14 Bernd Schmidt <bernds@codesourcery.com>
966
967 PR rtl-optimization/11320
968 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
969 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
970
d772f97c 9712011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 972
d772f97c
GJL
973 PR target/49487
974 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
975 of REG.
976 (*rotw<mode>): Use const_int_operand for operand2.
977 Use match_scatch for operand3.
978 (*rotb<mode>): Ditto
979 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
980
1a5d20a4
RG
9812011-07-14 Richard Guenther <rguenther@suse.de>
982
983 PR tree-optimization/49651
984 * tree-ssa-structalias.c (get_constraint_for_1): Properly
985 handle dereferences with subvariables.
986
5fbcc0ed
RG
9872011-07-14 Richard Guenther <rguenther@suse.de>
988
989 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
990 (fold_stmt_1): Do it here directly on gimple and as a first thing.
991
fbf3fee2
RG
9922011-07-14 Richard Guenther <rguenther@suse.de>
993
994 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
995 not bool_var when folding bool_var != 1 or bool_var == 0.
996
b953c2b8
BS
9972011-07-14 Bernd Schmidt <bernds@codesourcery.com>
998
999 * haifa-sched.c (schedule_insns): Remove outdated comment.
1000 (schedule_block): When computing a known value for TODO_SPEC,
1001 just set it rather than using logical operations.
1002 (try_ready): Likewise. Use a local variable rather than a
1003 pointer to TODO_SPEC. Reorder an if statement to move the
1004 easy case to the then block.
1005 * sched-deps.c (dep_spec_p): New static function.
1006 (update_dep): Use it to decide whether to call
1007 change_spec_dep_to_hard.
1008 (get_back_and_forw_lists): Use it.
1009 (sd_resolve_dep): Likewise.
1010 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
1011 (haifa_note_mem_dep): Likewise.
1012 (check_dep): Likewise.
1013 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
1014 (sched_free_deps): Free in two passes.
1015
1f098f07
RS
10162011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
1017
1018 PR middle-end/49736
1019 * expr.c (all_zeros_p): Undo bogus part of last change.
1020
73059910
MK
10212011-07-14 Matthias Klose <doko@ubuntu.com>
1022
1023 * doc/extend.texi (optimize attribute): Fix typo.
1024
bd5d002e
RG
10252011-07-14 Richard Guenther <rguenther@suse.de>
1026
1027 * gimplify.c (gimplify_expr): Only do required conversions.
1028
eb1dcdff
GJL
10292011-07-14 Georg-Johann Lay <avr@gjlay.de>
1030
1031 PR target/43746
1032 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
1033 i.e. use default_elf_select_section.
1034 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
1035 (READONLY_DATA_SECTION_ASM_OP): Remove.
1036 (TARGET_ASM_NAMED_SECTION): Move from here...
1037 * config/avr/avr.c: ...to here.
03126412 1038 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
1039 (avr_asm_named_section): Make static.
1040
d31fb329
RO
10412011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1042
1043 PR bootstrap/49739
03126412
UB
1044 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
1045 and crtfastmath.o for Linux/x86.
d31fb329 1046
26965010
BS
10472011-07-14 Bernd Schmidt <bernds@codesourcery.com>
1048
1049 * haifa-sched.c: Include "hashtab.h"
1050 (sched_no_dce): New global variable.
1051 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
1052 SHADOW_P): New macros.
1053 (last_clock_var, cycle_issued_insns): Move declarations.
1054 (must_backtrack): New static variable.
1055 (struct delay_pair): New structure.
1056 (delay_htab, delay_htab_i2): New static variables.
1057 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
1058 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
1059 functions.
1060 (dep_cost_1): If delay pairs exist, try to look up the insns and
1061 use the correct pair delay if we find them.
1062 (rank-for_schedule): Tweak priority for insns that must be scheduled
1063 soon to avoid backtracking.
1064 (queue_insn): Detect conditions which force backtracking.
1065 (ready_add): Likewise.
1066 (struct sched_block_state): Add member shadows_only_p.
1067 (struct haifa_save_data): New structure.
1068 (backtrack_queue): New static variable.
1069 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
1070 unschedule_insns_until, restore_last_backtrack_point,
1071 free_topmost_backtrack_point, free_backtrack_queue,
1072 estimate_insn_tick, estimate_shadow_tick): New functions.
1073 (prune_ready_list): New arg shadows_only_p. All callers changed.
1074 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 1075 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
1076 (verify_shadows): New function.
1077 (schedule_block): Add machinery to enable backtracking.
1078 (sched_init): Take sched_no_dce into account when setting
1079 DF_LR_RUN_DCE.
1080 (free_delay_pairs): New function.
1081 (init_h_i_d): Initialize INSN_EXACT_TICK.
1082 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
1083 * sched-deps.c (sd_unresolve_dep): New function.
1084 * sched-int. (struct haifa_sched_info): New fields save_state
1085 and restore_state.
1086 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
1087 feeds_backtrack_insn and shadow_p.
1088 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
1089 (sched_no_dce): Declare variable.
1090 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
1091 sd_unresolve_dep): Declare functions.
1092 * modulo-sched.c (sms_sched_info): Clear the two new fields.
1093 * sched-rgn.c (rgn_const_sched_info): Likewise.
1094 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1095 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
1096 (ebb_sched_info): Add them for the two new fields.
1097 (add_deps_for_risky_insns): Call add_delay_dependencies.
1098
1db75f6c
MM
10992011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1100
1101 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
1102 Rename -mr11.
1103 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
1104 (rs6000_call_indirect_aix): Ditto.
1105 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
1106 (call_indirect_aix<ptrsize>_internal): Ditto.
1107 (call_indirect_aix<ptrsize>_nor11): Ditto.
1108 (call_indirect_aix<ptrsize>_internal2): Ditto.
1109 (call_value_indirect_aix<ptrsize>): Ditto.
1110 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1111 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1112 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1113 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
1114
e2995714
JM
11152011-07-13 Jason Merrill <jason@redhat.com>
1116
1117 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
1118
4dfe3ad5
UW
11192011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1120
1121 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
1122 * config/spu/spu.md ("clrsb<mode>2"): New expander.
1123
dddc6762
TS
11242011-07-13 Thomas Schwinge <thomas@schwinge.name>
1125
1126 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
1127 * configure: Regenerate.
1128
b4d80e56
UW
11292011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1130
1131 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
1132 (asm_file_start): Remove.
1133 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
1134 free_bb_for_insn around code that modifies insns before
1135 restarting df analysis.
1136
9e34e53f
RO
11372011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1138
1139 PR target/49541
03126412 1140 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
1141 (LINK_SPEC): ... here.
1142
51564684
BS
11432011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1144
1145 * haifa-sched.c (struct sched_block_state): New.
1146 (schedule_block): Move some local variables into such a structure.
1147
b3fe1584
RO
11482011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1149
1150 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
1151 * config/i386/t-crtpc: Remove.
1152 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1153 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
1154 tmake_file.
1155 (x86_64-*-darwin*): Likewise.
1156 (i[34567]86-*-linux*): Likewise.
1157 (x86_64-*-linux*): Likewise.
1158
1159 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1160 Handle -mpc32, -mpc64, -mpc80.
1161
35d8090d
RO
11622011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1163
1164 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1165 * config/alpha/t-crtfm: Remove.
1166 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1167 * config/i386/t-crtfm: Remove.
1168 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1169 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1170 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1171 * config/sparc/t-crtfm: Remove.
1172
1173 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1174 (alpha*-*-freebsd*): Likewise.
1175 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1176 (x86_64-*-darwin*): Likewise.
1177 (i[34567]86-*-linux*): Likewise.
1178 (x86_64-*-linux*): Likewise.
1179 (x86_64-*-mingw*): Likewise.
1180 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1181 (ia64*-*-freebsd*): Likewise.
1182 (ia64*-*-linux*): Likewise.
1183 (mips64*-*-linux*): Likewise.
1184 (mips*-*-linux*): Likewise.
1185 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1186 (sparc64-*-linux*): Likewise.
1187 (sparc64-*-freebsd*): Likewise.
1188
e141542e
RO
11892011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1190
1191 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1192 * config/darwin-crt3.c: Move to ../libgcc/config.
1193 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1194 ($(T)crt3$(objext)): Remove.
1195 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1196 ($(T)crt2$(objext)): Remove.
1197 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1198 (powerpc64-*-darwin*): Likewise.
1199
72fbc381
L
12002011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1201
03126412 1202 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
1203
1204 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1205 (addsi_1_zext): This.
1206
727a65e6
BS
12072011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1208
1209 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1210 * doc/tm.texi: Regenerate.
73451ae7 1211 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
1212 * varasm.c (mergeable_string_section, mergeable_constant_section):
1213 Use it. Allocate name with alloca.
1214
cb77b6cf
L
12152011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1216
1217 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1218
36fc3799
RS
12192011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1220
1221 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1222 overlap check.
1223
953d0c90
RS
12242011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1225
1226 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
1227 (count_type_elements): Delete.
1228 (complete_ctor_at_level_p): Declare.
1229 * expr.c (flexible_array_member_p): New function, split out from...
1230 (count_type_elements): ...here. Make static. Replace allow_flexarr
1231 parameter with for_ctor_p. When for_ctor_p is true, return the
1232 number of elements that should appear in the top-level constructor,
1233 otherwise return an estimate of the number of scalars.
1234 (categorize_ctor_elements): Replace p_must_clear with p_complete.
1235 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
1236 (complete_ctor_at_level_p): New function, borrowing union logic
1237 from old categorize_ctor_elements_1.
1238 (mostly_zeros_p): Return true if the constructor is not complete.
1239 (all_zeros_p): Update call to categorize_ctor_elements.
1240 * gimplify.c (gimplify_init_constructor): Update call to
1241 categorize_ctor_elements. Don't call count_type_elements.
1242 Unconditionally prevent clearing for variable-sized types,
1243 otherwise rely on categorize_ctor_elements to detect
1244 incomplete initializers.
1245
9111c715
RG
12462011-07-13 Richard Guenther <rguenther@suse.de>
1247
1248 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1249 the final type is integral.
1250
a19af9c4
BS
12512011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1252
1253 * sched-int.h (struct _dep): Add member cost.
1254 (DEP_COST, UNKNOWN_DEP_COST): New macros.
1255 * sched-deps.c (init_dep_1): Initialize DEP_COST.
1256 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1257 (sched_change_pattern): Reset it for dependent insns.
1258
2d1efe2d
RO
12592011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1260
1261 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1262 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1263 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1264 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1265 (CRT0_S, MCRT0_S): Remove.
1266 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1267 Remove.
1268 (s-crt0): Remove.
1269 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1270
e84a58ff
EB
12712011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1272
1273 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1274 on the next line.
1275 * emit-rtl.c (push_to_sequence): Likewise.
1276 * haifa-sched.c (max_issue): Likewise.
1277 * matrix-reorg.c (add_allocation_site): Likewise.
1278 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1279 * reload.c (alternative_allows_const_pool_ref): Likewise.
1280 * sched-rgn.c (rgn_add_block): Likewise.
1281 (rgn_fix_recovery_cfg): Likewise.
1282 * tree.c (attribute_list_contained): Likewise.
1283
3a4ffde6
UB
12842011-07-12 Uros Bizjak <ubizjak@gmail.com>
1285
1286 * config/i386/i386.c: Tidy processor feature bitmasks.
1287 (m_P4_NOCONA): New.
1288
10b75750
AP
12892011-07-12 Andrew Pinski <pinskia@gmail.com>
1290
1291 PR rtl-opt/49474
1292 * cprop.c (find_implicit_sets): Correct the condition.
1293
4f42d714
RH
12942011-07-12 Richard Henderson <rth@redhat.com>
1295
1296 PR target/49713
1297 * dwarf2out.h (dwarf_frame_regnum): Remove.
1298 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1299 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1300 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1301 (execute_dwarf2_frame): Initialize them.
1302 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1303 users of the macros with the variables.
1304 (expand_builtin_dwarf_sp_column): Revert last change.
1305 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1306 result of DWARF_FRAME_REGNUM into a local variable.
1307
3a5e4ad6
RH
13082011-07-12 Richard Henderson <rth@redhat.com>
1309
1310 PR target/49714
1311 * config/i386/i386.c (x86_output_mi_thunk): Use
1312 machopic_indirect_call_target instead of machopic_indirection_name
1313 directly.
1314
9e9bd455
LG
13152011-07-12 Laurent GUERBY <laurent@guerby.net>
1316 Eric Botcazou <ebotcazou@adacore.com>
1317
1318 * prefix.h: Wrap up in extern "C" block.
1319
4d652a18
HJ
13202011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1321
1322 AMD bdver2 Enablement
1323 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1324 (case ${target}): Add bdver2.
1325 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1326 -march=native recognize bdver2 processors.
1327 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1328 bdver2 def_and_undef
1329 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1330 bdver2 cost table.
1331 (m_BDVER2): New definition.
1332 (m_AMD_MULTIPLE): Includes m_BDVER2.
1333 (initial_ix86_tune_features): Add bdver2 tuning.
1334 (processor_target_table): Add bdver2 entry.
1335 (static const char *const cpu_names): Add bdver2 entry.
1336 (ix86_option_override_internal): Add bdver2 instruction sets.
1337 (ix86_issue_rate): Add bdver2.
1338 (ix86_adjust_cost): Add bdver2.
1339 (has_dispatch): Add bdver2.
1340 * config/i386/i386.h (TARGET_BDVER2): New definition.
1341 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1342 (enum processor_type): Add PROCESSOR_BDVER2.
1343 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1344 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1345 description.
1346
5756d08c
RH
13472011-07-12 Richard Henderson <rth@redhat.com>
1348
1349 PR target/49714
1350 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1351 destination address in memory on some paths.
1352
123148b5
BS
13532011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1354
1355 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1356 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1357 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1358 * function.c (locate_and_pad_parm): Take it into account.
1359 * target.def (function_arg_round_boundary): New hook.
1360 * targhooks.c (default_function_arg_round_boundary): New function.
1361 * targhooks.h (default_function_arg_round_boundary): Declare.
1362 * doc/tm.texi: Regenerate.
1363
b7a83ad8
RG
13642011-07-12 Richard Guenther <rguenther@suse.de>
1365
1366 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1367 Do not perform no-op changes.
1368
12c4ecb1
RS
13692011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1370
1371 * config/arm/predicates.md (neon_struct_operand): Make a normal
1372 predicate.
1373 (neon_struct_or_register_operand): New predicate.
1374 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1375 with neon_struct_or_register_operand.
1376 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1377 neon_struct_operand instead of memory_operand.
1378
ab079773
MJ
13792011-07-12 Martin Jambor <mjambor@suse.cz>
1380
1381 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1382 * cgraph.c (cgraph_get_node_or_alias): Removed.
1383 (change_decl_assembler_name): Changed all calls to
1384 cgraph_get_node_or_alias to a call to cgraph_get_node.
1385 (cgraph_make_decl_local): Likewise.
1386 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1387 * varasm.c (default_binds_local_p_1): Likewise.
1388 (decl_binds_to_current_def_p): Likewise.
1389
d5fed62d
JJ
13902011-07-12 Jakub Jelinek <jakub@redhat.com>
1391
1392 PR tree-optimization/49712
1393 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1394
c0b6224a
BS
13952011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1396
1397 * genautomata.c (add_arc): Return void. All callers changed.
1398 (make_automaton): Remove dead code.
1399
7263c6d7
RH
14002011-07-11 Richard Henderson <rth@redhat.com>
1401
1402 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1403 (DW_FRAME_POINTER_REGNUM): New.
1404 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1405 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1406 (dwf_regno): New.
1407 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1408 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1409 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1410 Use it.
1411 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1412 * dwarf2out.h (dwarf_frame_regnum): New.
1413 (struct cfa_loc): Document the domain of the reg member.
1414
f9610d20
UB
14152011-07-11 Uros Bizjak <ubizjak@gmail.com>
1416
1417 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1418 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1419
96ae7458
JJ
14202011-07-11 Jakub Jelinek <jakub@redhat.com>
1421
1422 PR debug/49676
1423 * dwarf2out.c (int_shift_loc_descriptor): New function.
1424 (int_loc_descriptor): If shorter, emit i as
1425 (i >> shift), shift, DW_OP_shl for suitable shift value.
1426 Similarly, try to optimize large negative values using
1427 DW_OP_neg of a positive value if shorter.
1428 (size_of_int_shift_loc_descriptor): New function.
1429 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1430 changes.
1431 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1432 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1433 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1434 is shorter.
1435 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1436 addend as added DW_OP_plus if it is shorter.
1437
feffaec4
RO
14382011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1439
1440 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1441 (DTORS_SECTION_ASM_OP): Define.
1442
2d8d5935
RO
14432011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1444
1445 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1446 * config/t-dfprules: Move to ../libgcc/config.
1447 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1448 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1449 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1450 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1451 Likewise.
1452 (i[34567]86-*-cygwin*): Likewise.
1453 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1454 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1455 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1456 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1457 D64PBIT_FUNCS, D128PBIT_FUNCS.
1458
dcc95c20
RG
14592011-07-11 Richard Guenther <rguenther@suse.de>
1460
1461 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1462 translate the source value-range through the conversion chain.
1463
28164eed
RS
14642011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1465
1466 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1467
f3054223
AL
14682011-07-11 Arthur Loiret <aloiret@debian.org>
1469
1470 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1471 a bi-arch compiler defaulting to 31-bit. In this case:
1472 (tmake_file): Add s390/t-linux64.
1473 * doc/install.texi: Add s390-linux to the list of targets supporting
1474 --enable-targets=all.
1475
bd5ab709
AL
14762011-07-11 Arthur Loiret <aloiret@debian.org>
1477 Matthias Klose <doko@debian.org>
1478
1479 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1480 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1481 (tm_file): Add mips/linux64.h.
1482 (tmake_file): Add mips/t-linux64.
1483 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1484 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1485 instead of hardcoded mabi=n32.
1486 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1487 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1488 convention.
1489
d3b7e946
AK
14902011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1491
1492 * passes.c (init_optimization_passes): Add invariant motion pass
1493 after induction variable optimization.
1494
7e4ec472 14952011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1496
7e4ec472
GJL
1497 PR target/39633
1498 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1499 offsets 1..5 set cc0 in a usable way.
1500
0e65e631
RG
15012011-07-11 Romain Geissler <romain.geissler@gmail.com>
1502
1503 * tree.h (call_expr_arg): Remove.
1504 (call_expr_argp): Likewise.
1505
18970372
EB
15062011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1507
1508 * config/sparc/sparc.md (save_register_window_1): Rename to...
1509 (window_save): ...this.
1510 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1511 (emit_window_save): ...this.
1512 (sparc_expand_prologue): Adjust to above renaming.
1513
9e419e38
L
15142011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1515
1516 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1517 of movabs for x32.
1518
3db72de3
RH
15192011-07-10 Richard Henderson <rth@redhat.com>
1520
1521 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1522 run final, instead of emitting text directly.
1523
a1f91bca
L
15242011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1525
1526 * config/i386/i386.c (ix86_option_override_internal): Turn on
1527 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1528 small PIC models for TARGET_X32.
1529
a50023f9
HPN
15302011-07-10 Hans-Peter Nilsson <hp@axis.com>
1531
9a0b29f0
HPN
1532 PR target/49684
1533 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1534 $(LIBGCC2_CFLAGS).
1535
a50023f9
HPN
1536 PR bootstrap/49680
1537 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1538 stray notes and debug insns by using prev_nonnote_nondebug_insn
1539 instead of PREV_INSN.
1540
948d330e
RH
15412011-07-09 Richard Henderson <rth@redhat.com>
1542
1543 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1544 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1545 * dwarf2out.c: ... here.
1546 (output_all_cfis): Remove.
1547 (dwarf2out_switch_text_section): Use output_cfis directly.
1548 (size_of_locs): Export.
1549 (output_loc_sequence, output_loc_sequence_raw): Export.
1550 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1551 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1552 output_cfa_loc_raw): Move to ...
1553 * dwarfcfi.c: ... here.
1554 * dwarf2out.h: Update decls.
1555
db42e39d
RH
15562011-07-09 Richard Henderson <rth@redhat.com>
1557
1558 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1559 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1560 * dwarf2cfi.c: ... here.
1561 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1562 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1563 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1564 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1565 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1566
a8e5c0e7
RH
15672011-07-09 Richard Henderson <rth@redhat.com>
1568
1569 * dwarf2cfi.c (cie_return_save): New.
1570 (queue_reg_save): Use compare_reg_or_pc.
1571 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1572 (dwarf2out_frame_debug_expr): Likewise.
1573 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1574 (initial_return_save): Likewise.
1575 (execute_dwarf2_frame): Save and restore initial return save from
1576 the cie to the fde.
1577 * config/mips/mips.c (mips_frame_set): Remove special case for
1578 DWARF_FRAME_RETURN_COLUMN.
1579
4a8ee122
RH
15802011-07-09 Richard Henderson <rth@redhat.com>
1581
1582 * dwarf2cfi.c (lookup_cfa): Remove.
1583 (execute_dwarf2_frame): Assert queues are empty on entry.
1584 Setup initial cfa directly, not via lookup_cfa.
1585 Don't clear args_size state here.
1586
3edb53aa
RH
15872011-07-09 Richard Henderson <rth@redhat.com>
1588
1589 * dwarf2cfi.c (add_cfi_vec): New.
1590 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1591 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1592 (execute_dwarf2_frame): Set add_cfi_vec.
1593
ded49a7f
RH
15942011-07-09 Richard Henderson <rth@redhat.com>
1595
1596 * defaults.h (ASM_COMMENT_START): Move here...
1597 * dwarf2asm.c: ... from here.
1598 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1599 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1600 * varasm.c: Likewise.
1601
45fba6d1
RH
16022011-07-09 Richard Henderson <rth@redhat.com>
1603
1604 PR debug/49686
1605 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1606 (create_cfi_notes): ... do it here instead.
1607
5b696ba2
JJ
16082011-07-09 Jakub Jelinek <jakub@redhat.com>
1609
1610 PR debug/49676
1611 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1612 (address_of_int_loc_descriptor): Use it.
f9610d20 1613 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 1614
8662b2ba
RH
16152011-07-09 Richard Henderson <rth@redhat.com>
1616
1617 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1618 (prologue, epilogue): New.
1619 (return, *rts): New.
1620 (blockage, setd, seti): New.
1621 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1622 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1623 (pdp11_saved_regno): New.
1624 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1625 generate rtl instead of text.
1626 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1627 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1628 * config/pdp11/pdp11-protos.h: Update.
1629
28b21ebb
RH
16302011-07-09 Richard Henderson <rth@redhat.com>
1631
1632 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1633 try to insert an rtl prologue here.
1634 (rs6000_output_function_epilogue): Similarly.
1635 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1636 satisfy !TARGET_SCHED_PROLOG.
1637 (epilogue, sibcall_epilogue): Likewise.
1638
0a222ba7
EB
16392011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1640
1641 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1642 (FP_REG_P): Delete.
1643 (IN_OR_GLOBAL_P): Likewise.
1644
2fda8e14
JM
16452011-07-08 Jason Merrill <jason@redhat.com>
1646
4063e61b
JM
1647 PR c++/45437
1648 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1649 compound assignment.
1650
2fda8e14
JM
1651 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1652 * cgraph.h: Declare it.
1653 * ipa.c (function_and_variable_visibility): Make sure thunks
1654 have the right visibility.
1655
830f11fe
RH
16562011-07-08 Richard Henderson <rth@redhat.com>
1657
1658 PR bootstrap/49680
1659 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1660 any tablejump vector.
1661
965b2557
RH
1662 PR bootstrap/49680
1663 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1664 end of the prologue.
1665
70db9095
JJ
16662011-07-08 Jakub Jelinek <jakub@redhat.com>
1667
1668 PR target/49621
1669 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 1670 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
1671 * config/rs6000/vector.md (vector_select_<mode>,
1672 vector_select_<mode>_uns): Change second operand of NE to
1673 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1674 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1675 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1676 zero_constant of the corresponding vector mode.
1677 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1678 Likewise.
1679
e92c5020
SP
16802011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1681
1682 * graphite-dependences.c (build_alias_set_powerset): Remove
1683 continue from loop, add one more assert.
1684
3e4f8484 16852011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 1686
3e4f8484
GJL
1687 PR target/46779
1688 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1689 In particular, allow 8-bit values in r28 and r29.
1690 (avr_hard_regno_scratch_ok): Disallow any register that might be
1691 part of the frame pointer.
1692 (avr_hard_regno_rename_ok): Same.
1693 (avr_legitimate_address_p): Don't allow SUBREGs.
1694
0094f21b
JB
16952011-07-08 Julian Brown <julian@codesourcery.com>
1696
1697 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1698 big-endian mode.
1699 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1700 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1701 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1702 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1703 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1704 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1705 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1706 registers in big-endian mode.
1707
9ae60101
BS
17082011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1709
1710 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1711 in terms of another.
1712 (write_attr_value): Write a cast if necessary.
1713
c0a6a1ef
BS
1714 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1715 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1716 (REG_WORDS_BIG_ENDIAN): Document.
1717 * doc/tm.texi: Regenerate.
1718 * reload.c (operands_match_p): Take it into account.
1719 (reload_adjust_reg_for_mode): Likewise.
1720 * rtlanal.c (subreg_get_info): Likewise.
1721
b862187a
RG
17222011-07-08 Richard Guenther <rguenther@suse.de>
1723
1724 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1725 folding.
1726
e8e8c74b
KT
17272011-07-08 Kai Tietz <ktietz@redhat.com>
1728
1729 * fold-const.c (fold_truth_andor): Factored out truth_andor
1730 label from fold_binary as function.
1731 (fold_binary_loc): Replace truth_andor lable
1732 by function fold_truth_andor.
1733
6c3cb698
KY
17342011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1735
1736 PR middle-end/49519
1737 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1738 check if address is stored in register. If so - give up.
1739 (check_sibcall_argument_overlap_1): Do not perform check of
1740 overlapping when it is call to address.
1741
7d8d6d73 17422011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 1743
7d8d6d73
GJL
1744 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1745 of magic '31'.
1746
69660a70
BS
17472011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1748
1749 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1750 GET_MODE_BITSIZE where appropriate.
1751 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1752 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1753 expand_float, expand_fix): Likewise.
1754 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1755 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1756 * stor-layout.c (get_mode_bounds): Likewise.
1757 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1758 Likewise.
1759 * convert.c (convert_to_integer): Likewise.
1760 * expmed.c (expand_shift_1): Likewise.
1761
86cdf393
BS
1762 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1763 a bitsize.
1764
0d44736e
BS
1765 * optabs.c (expand_binop): Tighten conditions for doubleword
1766 expansions.
f9610d20 1767 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
1768 * stor-layout.c (get_best_mode): Skip modes that have lower
1769 precision than bitsize.
1770 * recog.c (simplify_while_replacing): Assert that bitsize and
1771 precision are the same.
1772
2c50b2c3
RO
17732011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1774
1775 * Makefile.in (LIBGCOV): Remove.
1776 (libgcc.mvars): Remove LIBGCOV.
1777 * libgov.c: Move to ../libgcc.
1778
a039d7c2
RO
17792011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1780
1781 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1782
e923ef41
MJ
17832011-07-08 Martin Jambor <mjambor@suse.cz>
1784
1785 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1786 is too big for total scalarization.
1787
b709e189
RH
17882011-07-07 Richard Henderson <rth@redhat.com>
1789
1790 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1791 (DBX_DEBUGGING_INFO): Undef.
1792
2867fa7c
RH
17932011-07-07 Richard Henderson <rth@redhat.com>
1794
1795 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1796 Handle some opcodes specially for debugging.
1797 * print-rtl.c: Include dwarf2out.h
1798 (print_rtx): Handle NOTE_INSN_CFI.
1799 * Makefile.in (print-rtl.o): Update.
1800
7644b3c7
RH
18012011-07-07 Richard Henderson <rth@redhat.com>
1802
1803 * tree-pass.h (pass_dwarf2_frame): Declare.
1804 * passes.c (init_optimization_passes): Add it.
1805 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1806 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1807 make static, do not call add_cfis_to_fde.
1808 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1809 dwarf2out_frame_init): Merge into...
1810 (execute_dwarf2_frame): ... here. New function.
1811 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1812 saved_do_cfi_asm to a tri-state variable.
1813 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1814 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1815 if it has yet to be done. Don't call dwarf2cfi_function_init.
1816 * dwarf2out.h, debug.h: Update decls.
1817 * final.c (final_start_function): Don't call
1818 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1819 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1820 * toplev.c (lang_dependent_init): Likewise.
1821
a518b996
RH
18222011-07-07 Richard Henderson <rth@redhat.com>
1823
1824 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1825 FDE_TABLE_INCREMENT): Replace with...
1826 (fde_vec): ... this, a new vector.
1827 (current_fde): Remove. Replace all users with cfun->fde.
1828 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1829 (size_of_aranges, dwarf2out_finish): Likewise.
1830 (dwarf2out_alloc_current_fde): Break out from ...
1831 (dwarf2out_begin_prologue): ... here.
1832 (dwarf2out_frame_init): Remove.
1833 * dwarf2cfi.c: Update all users of current_fde.
1834 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1835 * dwarf2out.h: Update decls.
1836 (dw_fde_node): Add fde_index member.
1837 * function.h (struct function): Add fde member.
1838
89e25f95
BS
18392011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1840 Richard Henderson <rth@redhat.com>
1841
1842 * dwarf2cfi.c (add_cfi): Remove.
1843 (dwarf2out_cfi_label): Remove force argument. Only generate the
1844 label name.
1845 (add_fde_cfi): Simplify the different code paths.
1846 (add_cie_cfi): New.
1847 (old_cfa, old_cfa_remember): New.
1848 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1849 (last_reg_save_label): Remove.
1850 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1851 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1852 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1853 dwarf2out_frame_debug_cfa_expression,
1854 dwarf2out_frame_debug_cfa_restore,
1855 dwarf2out_frame_debug_cfa_window_save,
1856 dwarf2out_frame_debug_expr): Remove label parameter.
1857 (cfi_label_required_p, add_cfis_to_fde): New.
1858 (dwarf2out_frame_debug_after_prologue): New.
1859 (dwarf2cfi_frame_init): Initialize old_cfa.
1860 (dwarf2out_frame_debug_restore_state): Likewise.
1861 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1862 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1863 * final.c (final_start_function): Call
1864 dwarf2out_frame_debug_after_prologue.
1865
bc5612ed
BS
18662011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1867 Richard Henderson <rth@redhat.com>
1868
1869 * dwarf2cfi.c (cfi_insn): New.
1870 (dwarf2out_cfi_label): Don't emit cfi label here.
1871 (add_fde_cfi): Create a NOTE_INSN_CFI.
1872 (dwarf2out_frame_debug): Setup cfi_insn.
1873 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1874 (dwarf2out_cfi_begin_epilogue): Make static.
1875 (dwarf2out_frame_debug_restore_state): Make static.
1876 * dwarf2out.c (output_cfi_directive): Make static.
1877 (dwarf2out_emit_cfi): New.
1878 * dwarf2out.h: Update.
1879 * final.c (final): Remove CFI notes.
1880 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1881 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1882 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1883 * insn-notes.def (NOTE_INSN_CFI): New.
1884 (NOTE_INSN_CFI_LABEL): New.
1885 * rtl.h (union rtunion_def): Add rt_cfi member.
1886 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1887
647a1567
RH
18882011-07-07 Richard Henderson <rth@redhat.com>
1889
1890 * dwarf2cfi.c: New file.
1891 * Makefile.in (OBJS): Add it.
1892 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1893 * gengtype.c (open_base_files): Include dwarf2out.h.
1894 * coretypes.h (enum var_init_status): Move from ...
1895 * rtl.h: ... here.
1896 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1897 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1898 expand_builtin_dwarf_sp_column, init_return_column_size,
1899 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1900 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1901 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1902 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1903 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1904 compute_barrier_args_size, dwarf2out_args_size,
1905 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1906 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1907 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1908 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1909 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1910 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1911 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1912 dwarf2out_frame_debug_cfa_expression,
1913 dwarf2out_frame_debug_cfa_restore,
1914 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1915 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1916 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1917 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1918 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1919 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1920 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1921 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1922 dw_loc_descr_node): Move to dwarf2out.h.
1923 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1924 mem_loc_descriptor): Export.
1925 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
1926 (dwarf2out_frame_init): Extract CIE generation code to
1927 dwarf2cfi_frame_init.
1928
b286d9ed
EB
19292011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1930
1931 PR target/49660
1932 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1933 MASK_V8PLUS, remove commented out flag and reorder.
1934
c4603e7c
JJ
19352011-07-07 Jakub Jelinek <jakub@redhat.com>
1936
1937 PR c/49644
1938 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1939 one non-complex and one complex argument, call c_save_expr on both
1940 operands.
1941
81361831
MJ
19422011-07-07 Martin Jambor <mjambor@suse.cz>
1943
1944 PR middle-end/49495
1945 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1946 (verify_cgraph_node): Some functinality moved to
1947 verify_edge_corresponds_to_fndecl, call it.
1948
1e4b2746
JM
19492011-07-07 Joseph Myers <joseph@codesourcery.com>
1950
1951 * config.gcc (*local*): Remove.
1952 * doc/install-old.texi: Don't mention local configurations.
1953
d7ff1e11
JJ
19542011-07-07 Jakub Jelinek <jakub@redhat.com>
1955
1956 PR debug/49522
1957 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1958 referencing debug insns that have been reset.
1959 (dead_debug_insert_before): Don't assert reg is non-NULL,
1960 instead return immediately if it is NULL.
1961
2492731a
JM
19622011-07-07 Joseph Myers <joseph@codesourcery.com>
1963
f9610d20 1964 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 1965
9d9c740d
BS
19662011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1967
1968 * hw-doloop.c: New file.
1969 * hw-doloop.h: New file.
1970 * Makefile.in (OBJS): Add hw-doloop.o.
1971 (hw-doloop.o): New rule.
1972 ($(obj_out_file)): Add hw-doloop.h dependency.
1973 * config/bfin/bfin.c: Include "hw-doloop.h".
1974 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1975 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1976 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
1977 type changed to hwloop_info. Return bool, true if the loop was
1978 successfully optimized. Remove code that was moved to
1979 hw-doloop.c, and adjust other parts.
1980 (hwloop_fail): New static function, containing parts that used
1981 to be in bfin_optimize_loop.
1982 (bfin_discover_loop, bfin_discover_loops, free_loops,
1983 bfin_reorder_loops): Remove.
1984 (hwloop_pattern_reg): New static function.
1985 (bfin_doloop_hooks): New variable.
1986 (bfin_reorg_loops): Remove most code, call reorg_loops.
1987 * config/bfin/bfin.md (doloop_end splitter): Also enable if
1988 loop counter is a memory_operand.
1989
f0ea7581
L
19902011-07-07 H.J. Lu <hongjiu.lu@intel.com>
1991
f9610d20 1992 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
1993
1994 * configure.ac: Mention x86-64 for --with-multilib-list.
1995 * configure: Regenerated.
1996
1997 * config/i386/gnu-user64.h (SPEC_64): Support x32.
1998 (SPEC_32): Likewise.
1999 (ASM_SPEC): Likewise.
2000 (LINK_SPEC): Likewise.
2001 (TARGET_THREAD_SSP_OFFSET): Likewise.
2002 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
2003 (SPEC_X32): New.
2004
2005 * config/i386/i386.h (TARGET_X32): New.
2006 (TARGET_LP64): New.
2007 (LONG_TYPE_SIZE): Likewise.
2008 (POINTER_SIZE): Likewise.
2009 (POINTERS_EXTEND_UNSIGNED): Likewise.
2010 (OPT_ARCH64): Support x32.
2011 (OPT_ARCH32): Likewise.
2012
2013 * config/i386/i386.opt (mx32): New.
2014
2015 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
2016 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2017 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
2018 (GLIBC_DYNAMIC_LINKERX32): Likewise.
2019
2020 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
2021 (BIONIC_DYNAMIC_LINKERX32): Likewise.
2022 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
2023
2024 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
2025
f9610d20 2026 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
2027
2028 * doc/invoke.texi: Document -mx32.
2029
38460025
RS
20302011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2031
2032 * doc/invoke.texi (mwords-little-endian): Deprecate.
2033 * config/arm/arm.opt (mwords-little-endian): Likewise.
2034 * config/arm/arm.c (arm_option_override): Warn about the deprecation
2035 of -mwords-little-endian.
2036
3f125532
RS
20372011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
2038
2039 * reload1.c (choose_reload_regs): Use mode sizes to check whether
2040 an old reload register completely defines the required value.
2041
bbc210ab
RG
20422011-07-07 Richard Guenther <rguenther@suse.de>
2043
2044 * fold-const.c (fold_unary_loc): Do not strip sign-changes
2045 for NEGATE_EXPR.
2046
29c5134a
RG
20472011-07-07 Richard Guenther <rguenther@suse.de>
2048
2049 * tree-vrp.c (simplify_conversion_using_ranges): New function.
2050 (simplify_stmt_using_ranges): Call it.
2051
0816a42a
KT
20522011-07-07 Kai Tietz <ktietz@redhat.com>
2053
2054 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
2055 (lookup_logical_inverted_value): Likewise.
2056 (simplify_bitwise_binary_1): Likewise.
2057 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
2058
3ce9f090
JM
20592011-07-07 Joseph Myers <joseph@codesourcery.com>
2060
2061 * gcc.c (%[Spec]): Don't document.
2062 (struct spec_list): Update comment.
2063 (do_spec_1): Don't handle %[Spec].
2064 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
2065
41dfca87
JM
20662011-07-07 Joseph Myers <joseph@codesourcery.com>
2067
2068 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
2069 default based on TARGET_ASM_NAMED_SECTION.
2070 * common/common-target.def (have_named_sections): Default to true.
2071 * common/config/default-common.c: Don't include tm.h.
2072 * common/config/picochip/picochip-common.c
2073 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
2074 * common/config/m32c/m32c-common.c: Remove.
2075 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
2076 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2077 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2078 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 2079 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
2080 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
2081 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 2082
19c44640
JJ
20832011-07-07 Jakub Jelinek <jakub@redhat.com>
2084
2085 PR middle-end/49640
f9610d20
UB
2086 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
2087 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 2088
891a2e42
RO
20892011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2090
2091 PR libmudflap/49550
2092 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
2093
fbdd5d87
RO
20942011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2095
2096 PR target/39150
2097 * configure.ac (gcc_cv_as_hidden): Also accept
2098 x86_64-*-solaris2.1[0-9]*.
2099 (gcc_cv_as_cfi_directive): Likewise.
2100 (gcc_cv_as_comdat_group_group): Likewise.
2101 (set_have_as_tls): Likewise.
2102 * configure: Regenerate.
2103 * config.gcc (i[34567]86-*-solaris2*): Also handle
2104 x86_64-*-solaris2.1[0-9]*.
2105 * config.host (i[34567]86-*-solaris2*): Likewise.
2106 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
2107 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
2108 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
2109 (TARGET_LD_EMULATION): Use it.
2110 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
2111 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
2112 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
2113 (ASM_CPU64_DEFAULT_SPEC): Define.
2114 (ASM_CPU_SPEC): Use %(asm_cpu_default).
2115 (ASM_SPEC): Redefine.
2116 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
2117 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 2118 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
2119 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
2120 configuration.
2121 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
2122
fcf7471a
RO
21232011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2124
2125 * config/sol2.h (ASM_SPEC): Split into ...
2126 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
2127 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
2128 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
2129 (ASM_SPEC): Use ASM_SPEC_BASE.
2130 * config/sparc/sol2.h (ASM_SPEC): Redefine.
2131
1e6a67d1 21322011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 2133
1e6a67d1
GJL
2134 * config/avr/avr.md (*reload_insi): Change predicate #1 to
2135 const_int_operand. Ditto for peep2 producing this insn.
2136 Add argument to output_reload_insisf call.
2137 (*movsi,*movsf): Add argument to output_movsisf call.
2138 (*reload_insf): New insn and new peep2 to produce it.
2139 * config/avr/avr-protos.h (output_movsisf): Change prototype.
2140 (output_reload_insisf): Change prototype.
2141 * config/avr/avr.c (avr_asm_len): New function.
2142 (output_reload_insisf): Rewrite.
2143 (output_movsisf): Change prototype. output_reload_insisf for
2144 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
2145 (adjust_insn_length): Add argument to output_movsisf and
2146 output_reload_insisf call.
2147
6a4bdc79
BS
21482011-07-07 Bernd Schmidt <bernds@codesourcery.com>
2149
2150 * emit-rtl.c (paradoxical_subreg_p): New function.
2151 * rtl.h (paradoxical_subreg_p): Declare.
2152 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
2153 apply_distributive_law, simplify_comparison, simplify_set): Use it.
2154 * cse.c (record_jump_cond, cse_insn): Likewise.
2155 * expr.c (force_operand): Likewise.
2156 * rtlanal.c (num_sign_bit_copies1): Likewise.
2157 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
2158 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
2159 (push_reload): Use precision to check for paradoxical subregs.
2160 * expmed.c (extract_bit_field_1): Likewise.
2161
46c9550f
BS
2162 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2163 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2164 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2165 simplify_set, simplify_logical, expand_compound_operation,
2166 make_extraction, force_to_mode, if_then_else_cond, extended_count,
2167 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2168 record_value_for_reg): Likewise.
2169 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2170 * simplify-rtx. c (simplify_unary_operation_1,
2171 simplify_binary_operation_1, simplify_const_relational_operation):
2172 Likewise.
2173
5511bc5a
BS
2174 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2175 instead of GET_MODE_BITSIZE where appropriate.
2176 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2177 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2178 init_num_sign_bit_copies_in_rep): Likewise.
2179 * cse.c (fold_rtx, cse_insn): Likewise.
2180 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2181 * simplify-rtx.c (simplify_unary_operation_1,
2182 simplify_const_unary_operation, simplify_binary_operation_1,
2183 simplify_const_binary_operation, simplify_ternary_operation,
2184 simplify_const_relational_operation, simplify_subreg): Likewise.
2185 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2186 simplify_if_then_else, simplify_set, expand_compound_operation,
2187 expand_field_assignment, make_extraction, if_then_else_cond,
2188 make_compound_operation, force_to_mode, make_field_assignment,
2189 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2190 extended_count, try_widen_shift_mode, simplify_shift_const_1,
2191 simplify_comparison, record_promoted_value, simplify_compare_const,
2192 record_dead_and_set_regs_1): Likewise.
2193
d58c1a38
BS
2194 Revert:
2195 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
2196 shift_truncation_mask hook instead of performing modulo by width.
2197 Compare against mode precision, not bitsize.
d58c1a38 2198 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 2199 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 2200
76594d53
MM
22012011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2202
2203 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2204 declaration.
2205 (rs6000_save_toc_in_prologue_p): Ditto.
2206
2207 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2208 up the static chain (r11) during indirect function calls.
2209 (-msave-toc-indirect): New undocumented debug switch.
2210
2211 * config/rs6000/rs6000.c (struct machine_function): Add
2212 save_toc_in_prologue field to note whether the prologue needs to
2213 save the TOC value in the reserved stack location.
2214 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
2215 to save the TOC in the prologue, do so.
2216 (rs6000_trampoline_init): Don't allow creating AIX style
2217 trampolines if -mno-r11 is in effect.
2218 (rs6000_call_indirect_aix): New function to create AIX style
2219 indirect calls, adding support for -mno-r11 to suppress loading
2220 the static chain, and saving the TOC in the prologue instead of
2221 the call body.
2222 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2223 TOC in the prologue.
2224
2225 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2226 register numbers.
2227 (TOC_REGNUM): Ditto.
2228 (STATIC_CHAIN_REGNUM): Ditto.
2229 (ARG_POINTER_REGNUM): Ditto.
2230 (SFP_REGNO): Delete, unused.
2231 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2232 function descriptor offsets.
2233 (TOC_SAVE_OFFSET_64BIT): Ditto.
2234 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2235 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2236 (AIX_FUNC_DESC_SC_32BIT): Ditto.
2237 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
2238 (ptrload): New mode attribute for the appropriate load of a pointer.
2239 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
2240 (call_indirect_aix64): Ditto.
2241 (call_value_indirect_aix32): Ditto.
2242 (call_value_indirect_aix64): Ditto.
2243 (call_indirect_nonlocal_aix32_internal): Ditto.
2244 (call_indirect_nonlocal_aix32): Ditto.
2245 (call_indirect_nonlocal_aix64_internal): Ditto.
2246 (call_indirect_nonlocal_aix64): Ditto.
2247 (call): Rewrite AIX indirect function calls. Add support for
2248 eliminating the static chain, and for moving the save of the TOC
2249 to the function prologue.
2250 (call_value): Ditto.
2251 (call_indirect_aix<ptrsize>): Ditto.
2252 (call_indirect_aix<ptrsize>_internal): Ditto.
2253 (call_indirect_aix<ptrsize>_internal2): Ditto.
2254 (call_indirect_aix<ptrsize>_nor11): Ditto.
2255 (call_value_indirect_aix<ptrsize>): Ditto.
2256 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2257 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2258 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2259 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2260 (call_nonlocal_aix64): Ditto.
2261
2262 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2263 -mno-r11 documentation.
2264
49d6830d
JW
22652011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2266
2267 PR other/49658
2268 * doc/extend.texi (Compound Literals): Fix typo.
2269
c884924f
JG
22702011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2271
f9610d20 2272 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 2273
bf588455
BS
22742011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2275
2276 * configure.ac (plugin-version.h): Generate
2277 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2278 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2279 macros.
2280
2281 * configure: Regenerate.
2282
2283 * doc/plugins.texi (Building GCC plugins): Mention
2284 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2285
d0edd768
BS
22862011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2287
2288 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2289 * combine.c (make_extraction, gen_lowpart_or_truncate,
2290 apply_distributive_law, simplify_comparison,
2291 reg_truncated_to_mode, record_truncated_value): Use it.
2292 * cse.c (notreg_cost): Likewise.
2293 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2294 * expr.c (convert_move, convert_modes): Likewise.
2295 * optabs.c (expand_binop, expand_unop): Likewise.
2296 * postreload.c (move2add_last_label): Likewise.
2297 * regmove.c (optimize_reg_copy_3): Likewise.
2298 * rtlhooks.c (gen_lowpart_general): Likewise.
2299 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2300
e5cabdfb
JM
23012011-07-06 Joseph Myers <joseph@codesourcery.com>
2302
2303 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2304
2d0c270f
BS
23052011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2306
2307 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2308 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2309 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2310 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
2311 simplify_const_binary_operation, simplify_const_relational_operation):
2312 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
2313 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2314 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2315 simplify_shift_const_1, simplify_comparison): Likewise.
2316 * expr.c (convert_modes): Likewise.
2317 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 2318 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
2319 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2320
f9c08345
BS
2321 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2322
6d6c9525
RG
23232011-07-06 Richard Guenther <rguenther@suse.de>
2324
2325 PR tree-optimization/49645
2326 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2327 register variables.
2328 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2329 in type qualification here ...
2330 (copy_reference_ops_from_ref): ... not here.
2331 (vn_reference_lookup_3): ... or here.
2332 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2333 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2334
d1a6ec10
ILT
23352011-07-06 Ian Lance Taylor <iant@google.com>
2336
2337 * doc/install.texi (Configuration): It's
2338 --enable-gnu-indirect-function, not --enable-indirect-function.
2339
ff3e08af
BS
23402011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2341
2342 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
2343 shift_truncation_mask hook instead of performing modulo by width.
2344 Compare against mode precision, not bitsize.
ff3e08af 2345 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 2346 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 2347
a369b639
L
23482011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2349
2350 PR middle-end/47383
2351 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2352 address computation and convert to address_mode if needed.
2353
1a072294
RG
23542011-07-06 Richard Guenther <rguenther@suse.de>
2355
2356 * tree.c (build_common_tree_nodes_2): Merge with
2357 build_common_tree_nodes.
2358 * tree.h (build_common_tree_nodes): Adjust prototype.
2359 (build_common_tree_nodes_2): Remove.
2360 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2361 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2362
f2c3a8ce
JJ
23632011-07-05 Jakub Jelinek <jakub@redhat.com>
2364
2365 PR tree-optimization/49618
2366 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2367 t recurse on the decl.
2368 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2369 return true if expr isn't known to be defined in current
2370 TU or some other LTO partition.
2371
3aa439ed
MM
23722011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2373
2374 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2375 override CASE_VALUES_THRESHOLD.
2376
2377 * stmt.c (toplevel): Include params.h.
2378 (case_values_threshold): Use the --param case-values-threshold
2379 value if non-zero, otherwise use machine dependent value.
2380 (expand_case): Use case_values_threshold.
2381
2382 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2383
2384 * doc/invoke.texi (--param case-values-threshold): Document.
2385
49956667
RH
23862011-07-05 Richard Henderson <rth@redhat.com>
2387
2388 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2389 (dwarf2out_flush_queued_reg_saves): Make static.
2390 (dwarf2out_reg_save): Remove.
2391 (dwarf2out_return_save): Remove.
2392 (dwarf2out_return_reg): Remove.
2393 (dwarf2out_reg_save_reg): Remove.
2394 (dwarf2out_def_cfa): Merge into ...
2395 (dwarf2out_frame_init): ... here.
2396 * dwarf2out.h, tree.h: Remove declarations as necessary.
2397
9f2ff8e5
RH
23982011-07-05 Richard Henderson <rth@redhat.com>
2399
c2b40eba
RH
2400 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2401 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2402 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2403 the alloc insn.
2404
7d3c6cd8
RH
2405 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2406 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2407 (process_epilogue): Don't call dwarf2out_def_cfa.
2408
5f740973
RH
2409 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2410 indicate the return address save.
2411 (process_cfa_register): Likewise.
2412
a1880147
RH
2413 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2414 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2415
9f2ff8e5
RH
2416 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2417 for ar.pfs save at alloc insn.
2418
ddc6e7d6
RH
24192011-07-05 Richard Henderson <rth@redhat.com>
2420
2421 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2422 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2423 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2424 stack pointer save.
2425 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2426 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2427 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2428 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2429
a3515605
RH
24302011-07-05 Richard Henderson <rth@redhat.com>
2431
2432 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2433 VUNSPEC_* constants here instead of via define_constants.
2434 (VUNSPEC_PEM): New constant.
2435 (procedure_entry_mask): New insn.
2436 (prologue): New expander.
2437 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2438 (vax_expand_prologue): Rename from vax_output_function_prologue;
2439 emit rtl instead of text.
2440 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2441 (print_operand): Add 'x' prefix.
2442
a7adbbcb
L
24432011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2444
2445 PR middle-end/47715
2446 * calls.c (precompute_register_parameters): Promote the function
2447 argument before checking non-legitimate constant.
2448
cec11ec4
SP
24492011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2450
2451 PR tree-optimization/47654
2452 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2453 (lst_do_strip_mine_loop): Return an int.
2454 (lst_do_strip_mine): Same.
2455 (scop_do_strip_mine): Same.
2456 (scop_do_block): Loop blocking should strip-mine at least two loops.
2457 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2458 (scop_do_interchange): Same.
2459 * graphite-poly.h (scop_do_interchange): Update declaration.
2460 (scop_do_strip_mine): Same.
2461
9b0d314a
SP
24622011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2463
2464 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2465 (precision_for_interval): Removed.
2466 (gcc_type_for_interval): Use mpz_sizeinbase.
2467
81d6d080
SP
24682011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2469
2470 * graphite-ppl.h (value_max): Correct computation of max.
2471
369e3430
SP
24722011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2473
2474 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2475
fce5dddd
RG
24762011-07-05 Richard Guenther <rguenther@suse.de>
2477
2478 * c-decl.c (c_init_decl_processing): Defer building common
2479 tree nodes to c_common_nodes_and_builtins.
2480
12037899
RL
24812011-07-05 Razya Ladelsky <razya@il.ibm.com>
2482
2483 PR tree-optimization/49580
f9610d20 2484 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 2485 the loop's number of iterations.
f9610d20
UB
2486 * tree-parloops.c (transform_to_exit_first_loop): Add the
2487 handling of the loop's number of iterations before the call
12037899 2488 to gimple_duplicate_sese_tail.
28b21ebb 2489 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
2490 condition stmt to the preheader instead of iters_bb.
2491
509a31f8
L
24922011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2493
2494 PR rtl-optimization/47449
2495 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2496 register nor zero/sign extended hard register.
2497
39becbac
RG
24982011-07-05 Richard Guenther <rguenther@suse.de>
2499
2500 PR tree-optimization/49518
2501 PR tree-optimization/49628
2502 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2503 irrelevant and invariant data-references.
2504 (vect_analyze_data_ref_access): For invariant loads clear the
2505 group association.
2506
15923c25
JJ
25072011-07-04 Jakub Jelinek <jakub@redhat.com>
2508
af421d9c
JJ
2509 PR rtl-optimization/49619
2510 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2511 pass VOIDmode as op0_mode to recursive call, and return temp even
2512 when different from tor, just if it is not IOR of the original
2513 PLUS arguments.
2514
707f9919
JJ
2515 PR rtl-optimization/49472
2516 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2517 negating MULT, negate the second operand instead of first.
2518 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
2519 a NEG and the other is MULT, don't attempt to optimize by negation
2520 of the MULT operand if it only moves the NEG operation around.
707f9919 2521
15923c25
JJ
2522 PR debug/49602
2523 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2524 get_current_def return value if it can't be trusted to be
2525 the current value of the variable in the current bb.
2526
0d5e0c1b
UB
25272011-07-04 Uros Bizjak <ubizjak@gmail.com>
2528
2529 PR target/49600
2530 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2531 general register to memory for !TARGET_INTER_UNIT_MOVES.
2532
db297e20
GJL
25332011-07-04 Georg-Johann Lay <avr@gjlay.de>
2534
2535 PR target/44643
2536 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2537 instead of TREE_READONLY.
2538
f451d14d
GJL
25392011-07-04 Georg-Johann Lay <avr@gjlay.de>
2540
2541 * doc/extend.texi (AVR Built-in Functions): Update documentation
2542 of __builtin_avr_fmul*.
0d5e0c1b 2543 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
2544 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2545 * config/avr/avr.md (fmul): Rename to fmul_insn.
2546 (fmuls): Rename to fmuls_insn.
2547 (fmulsu): Rename to fmulsu_insn.
2548 (fmul,fmuls,fmulsu): New expander.
2549 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2550 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2551 * config/avr/libgcc.S (__fmul): New function.
2552 (__fmuls): New function.
2553 (__fmulsu,__fmulsu_exit): New function.
2554
30f1e6de
RG
25552011-07-04 Richard Guenther <rguenther@suse.de>
2556
2557 PR tree-optimization/49615
2558 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2559 basic-block index check.
2560
6dab9931
GJL
25612011-07-04 Georg-Johann Lay <avr@gjlay.de>
2562
2563 * longlong.h (count_leading_zeros, count_trailing_zeros,
2564 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2565 resp. 64.
2566
b5066d8b
IR
25672011-07-03 Ira Rosen <ira.rosen@linaro.org>
2568
2569 PR tree-optimization/49610
2570 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2571 a basic block.
2572
bc712852
EB
25732011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2574 Olivier Hainque <hainque@adacore.com>
2575 Nicolas Setton <setton@adacore.com>
2576
2577 * tree.h (TYPE_ARTIFICIAL): New flag.
2578 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2579 the DIE of the type if it is artificial.
2580 (gen_array_type_die): Likewise.
2581 (gen_enumeration_type_die): Likewise.
2582 (gen_struct_or_union_type_die): Likewise.
2583 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2584 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2585
8b1bdcc5
JJ
25862011-07-01 Jakub Jelinek <jakub@redhat.com>
2587
2588 * tree-object-size.c (pass_through_call): Handle
2589 BUILT_IN_ASSUME_ALIGNED.
2590
06e88d73
MJ
25912011-07-01 Martin Jambor <mjambor@suse.cz>
2592
2593 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2594
6bbec3e1
L
25952011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2596
2597 PR middle-end/48016
2598 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2599 for stack save area.
2600 * function.c (expand_function_start): Likewise.
2601
e8fdf1cd
RG
26022011-07-01 Richard Guenther <rguenther@suse.de>
2603
2604 PR middle-end/49596
2605 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2606 may have unknown refs.
2607
80d3dd38
KT
26082011-07-01 Kai Tietz <ktietz@redhat.com>
2609
2610 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2611
179fc656
RO
26122011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2613
2614 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2615 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2616 (Specific, mips-sgi-irix6): Likewise.
2617
14a393a3
RO
26182011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2619
2620 PR libmudflap/49549
2621 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2622
3aecd443
JJ
26232011-07-01 Jakub Jelinek <jakub@redhat.com>
2624
2625 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2626 [idx]= and [idx1 ... idx2]= before initializers if needed for
2627 array initializers.
2628
7474f719
CL
26292011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2630
2631 * config.gcc (score-*-elf): Remove score7.o.
2632 * config/score/t-score-elf: Likewise.
2633 * config/score/score.c: Merge score7 to score.c and
2634 remove forwarding functions.
2635 * config/score/score7.c: Deleted.
2636 * config/score/score7.h: Deleted.
2637
ab70d825
RG
26382011-07-01 Richard Guenther <rguenther@suse.de>
2639
2640 PR tree-optimization/49603
0d5e0c1b 2641 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 2642
1ac93f10
MJ
26432011-06-30 Martin Jambor <mjambor@suse.cz>
2644
2645 * tree-sra.c (struct access): Rename total_scalarization to
2646 grp_total_scalarization
2647 (completely_scalarize_var): New function.
2648 (sort_and_splice_var_accesses): Set total_scalarization in the
2649 representative access.
2650 (analyze_access_subtree): Propagate total scalarization accross the
2651 tree, no holes in totally scalarized trees, simplify coverage
2652 computation.
2653 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2654 of completely_scalarize_record.
2655
97f309c3
RH
26562011-06-30 Richard Henderson <rth@redhat.com>
2657
2658 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2659 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2660 * config/i386/i386.c: Don't include dwarf2out.h.
2661 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2662 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2663 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2664 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2665 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2666
ef284364
RH
26672011-06-30 Richard Henderson <rth@redhat.com>
2668
2669 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2670 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2671 * final.c (final_scan_insn): Look for it, and invoke
2672 dwarf2out_frame_debug before the insn if found.
2673
c8412f97
RH
26742011-06-30 Richard Henderson <rth@redhat.com>
2675
2676 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2677 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2678
e3f903d8
RH
26792011-06-30 Richard Henderson <rth@redhat.com>
2680
2681 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2682 Define a vector of this type.
2683 (regs_saved_in_regs): Use a VEC.
2684 (num_regs_saved_in_regs): Remove.
2685 (compare_reg_or_pc): New.
2686 (record_reg_saved_in_reg): Split out from...
2687 (dwarf2out_flush_queued_reg_saves): ... here.
2688 (clobbers_queued_reg_save): Update for VEC.
2689 (reg_saved_in): Likewise.
2690 (dwarf2out_frame_debug_init): Likewise.
2691 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2692 (dwarf2out_frame_debug_cfa_register): Likewise.
2693
e2c9010a
EB
26942011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2695
2696 PR tree-optimization/49572
2697 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2698 type of the RHS instead of that of the LHS for the expression type.
2699
dbb07bbc
EB
27002011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2701
2702 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2703 unconditionally.
2704
1565af08
RG
27052011-06-30 Richard Guenther <rguenther@suse.de>
2706
2707 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2708 * tree-ssa-structalias.c (create_variable_info_for): Do not
2709 add initial constraints for non-var-decls. Properly handle
2710 globals in other ltrans partitions.
2711 (intra_create_variable_infos): Manually create constraints for
2712 the fake no-alias parameter.
2713 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2714 and assert there are no clones.
2715
42373e0b
RG
27162011-06-30 Richard Guenther <rguenther@suse.de>
2717
2718 PR tree-optimization/46787
2719 * tree-data-ref.c (dr_address_invariant_p): Remove.
2720 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 2721 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
2722 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2723 invariant loads.
2724
7aa62ea1
MJ
27252011-06-30 Martin Jambor <mjambor@suse.cz>
2726
2727 PR tree-optimization/49094
2728 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2729 (build_accesses_from_assign): Use it.
2730
f60f32b3
JJ
27312011-06-30 Jakub Jelinek <jakub@redhat.com>
2732
d9048d16
JJ
2733 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2734 handling of BUILT_IN_ASSUME_ALIGNED.
2735
f60f32b3
JJ
2736 PR debug/49364
2737 * dwarf2out.c (output_abbrev_section): Don't return early
2738 if abbrev_die_table_in_use is 1.
2739 (dwarf2out_finish): Instead don't call output_abbrev_section
2740 nor emit abbrev_section_label in that case.
2741
7cce15d4
NC
27422011-06-30 Nick Clifton <nickc@redhat.com>
2743
2744 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2745 for the V850E.
2746
ce7e54ff
JJ
27472011-06-30 Jakub Jelinek <jakub@redhat.com>
2748
2749 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2750 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2751
83197f37
IR
27522011-06-30 Ira Rosen <ira.rosen@linaro.org>
2753
2754 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2755 both pattern and original statements if necessary.
2756 (vect_transform_loop): Likewise.
2757 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2758 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2759 Mark the pattern statement only if the original statement doesn't
2760 have its own uses.
2761 (process_use): Call vect_mark_relevant with additional parameter.
2762 (vect_mark_stmts_to_be_vectorized): Likewise.
2763 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2764 (vect_analyze_stmt): Handle both pattern and original statements
2765 if necessary.
2766 (vect_transform_stmt): Don't store vectorized pattern statement
2767 in the original statement.
2768 (vect_is_simple_use_1): Use related pattern statement only if the
2769 original statement is irrelevant.
2770 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2771
dbb07bbc 27722011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 2773
dbb07bbc
EB
2774 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2775 option.
2776 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2777 entry.
5c0d88e6
CF
2778 (TARGET_AVX128_OPTIMAL): New definition.
2779 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2780 X86_TUNE_AVX128_OPTIMAL entry.
2781 (ix86_option_override_internal): Enable the generation
2782 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2783 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2784 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2785
931050d0
EB
27862011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2787
2788 PR tree-optimization/49539
2789 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2790 names by means of stmt_references_abnormal_ssa_name.
2791 (associate_plusminus): Call can_propagate_from before propagating
2792 from definition statements.
2793 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2794
dfedbe40
RG
27952011-06-29 Richard Guenther <rguenther@suse.de>
2796
2797 * doc/invoke.texi: Document -scev dump modifier.
2798 * tree-pass.h (TDF_SCEV): New dump flag.
2799 * tree-dump.c (dump_option_value_in): Add scev.
2800 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2801 * tree-scalar-evolution.c: Likewise.
2802
3a86cfeb
NS
28032011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2804
2805 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2806 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
2807 (__gnu_unwind_pr_common): Reconstruct additional indirection
2808 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 2809
f3678bfb
UW
28102011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2811
2812 PR rtl-optimization/49114
2813 * reload.c (struct replacement): Remove SUBREG_LOC member.
2814 (push_reload): Do not set it.
2815 (push_replacement): Likewise.
2816 (subst_reload): Remove dead code.
2817 (copy_replacements): Remove assertion.
2818 (copy_replacements_1): Do not handle SUBREG_LOC.
2819 (move_replacements): Likewise.
2820 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2821 Detect subregs via recursive descent instead of via SUBREG_LOC.
2822
433ba0a5 28232011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2824
433ba0a5
GJL
2825 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2826 default_encode_section_info.
2827
73f6eabc
RS
28282011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2829
2830 PR tree-optimization/49545
2831 * builtins.c (get_object_alignment_1): Update function comment.
2832 Do not use DECL_ALIGN for functions, but test
2833 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2834 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2835 for functions here.
2836 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2837
a0f33d3a
JJ
28382011-06-29 Jakub Jelinek <jakub@redhat.com>
2839
2840 PR debug/49567
0d5e0c1b
UB
2841 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2842 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 2843
946c8b23 28442011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2845
946c8b23 2846 PR target/34734
0d5e0c1b 2847 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
2848 about uninitialized data attributed 'progmem' from here...
2849 (avr_encode_section_info): ...to this new function.
2850 (TARGET_ENCODE_SECTION_INFO): New define.
2851 (avr_section_type_flags): For data in ".progmem.data", remove
2852 section flag SECTION_WRITE.
2853
9a63dee4 28542011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 2855
9a63dee4
GJL
2856 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2857 _xmulhisi3_exit.
2858 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2859 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2860 (__umulhisi3): Ditto.
2861 * config/avr/avr.md (mulhisi3): New insn expender.
2862 (umulhisi3): New insn expender.
2863 (*mulhisi3_call): New insn.
2864 (*umulhisi3_call): New insn.
2865
4374ce45
JM
28662011-06-28 Joseph Myers <joseph@codesourcery.com>
2867
2868 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2869
94759030
RH
28702011-06-28 Richard Henderson <rth@redhat.com>
2871
2872 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2873 all code and arguments that handled pushes. Update all callers.
2874
d018b46e
RH
28752011-06-28 Richard Henderson <rth@redhat.com>
2876
2877 * config/arm/arm.c (arm_output_function_prologue): Don't call
2878 thumb1_output_function_prologue.
2879 (arm_expand_prologue): Avoid dead store.
2880 (number_of_first_bit_set): Use ctz_hwi.
2881 (thumb1_emit_multi_reg_push): New.
2882 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2883 to emit the entire prologue as rtl.
2884 (thumb1_output_interwork): Split out from
2885 thumb1_output_function_prologue.
2886 (thumb1_output_function_prologue): Remove.
2887 (arm_attr_length_push_multi): Handle thumb1.
2888 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2889 (prologue_thumb1_interwork): New.
2890 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2891 * config/arm/predicates.md (push_mult_memory_operand): New.
2892
97269a23
EB
28932011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2894
2895 * config/sparc/sync.md (*stbar): Delete.
2896 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2897
4a9206ce
EB
28982011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2899
2900 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2901
6138f9bd
RO
29022011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2903
2904 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2905 (TARGET_64BIT_DEFAULT): Define.
2906 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2907 of tm_file.
2908 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2909
a7d0d30f
JM
29102011-06-28 Joseph Myers <joseph@codesourcery.com>
2911
2912 * common.opt (in_lto_p): New Variable entry.
2913 * flags.h (in_lto_p): Move to common.opt.
2914 * gcc.c: Include params.h.
2915 (set_option_handlers): Also use common_handle_option and
2916 target_handle_option.
0d5e0c1b 2917 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
2918 * opts.c (debug_type_names): Move from toplev.c.
2919 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
2920 (common_handle_option): Return early in the driver for some options.
2921 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2922 opts pointer.
a7d0d30f
JM
2923 * toplev.c (in_lto_p): Move to common.opt.
2924 (debug_type_names): Move to opts.c.
2925 * Makefile.in (OBJS): Remove opts.o.
2926 (OBJS-libcommon-target): Add opts.o.
2927 (gcc.o): Update dependencies.
2928
420863a9
KT
29292011-06-28 Kai Tietz <ktietz@redhat.com>
2930
0d5e0c1b 2931 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 2932
0498a2be
RR
29332011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2934
2935 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2936 with '=' constraint modifier.
2937 (*divdf3_vfp): Likewise.
2938 ("*mulsf3_vfp"): Likewise.
2939 ("*muldf3_vfp"): Likewise.
2940 ("*mulsf3negsf_vfp"): Likewise.
2941 ("*muldf3negdf_vfp"): Likewise.
2942
4a68b724
NC
29432011-06-28 Nick Clifton <nickc@redhat.com>
2944
2945 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2946 relaxation when performing an incremental link.
2947
72a32729
KT
29482011-06-28 Kai Tietz <ktietz@redhat.com>
2949
2950 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2951 within BB from last to first.
2952
88a00ef7
JM
29532011-06-28 Joseph Myers <joseph@codesourcery.com>
2954
2955 * genattr-common.c: New. Based on genattr.c.
2956 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2957 (MOSTLYCLEANFILES): Add insn-attr-common.h.
2958 (opts.o): Update dependencies.
2959 (.PRECIOUS): Add insn-attr-common.h.
2960 (simple_rtl_generated_h): Add insn-attr-common.h.
2961 (build/genattr-common.o): New.
2962 (genprogrtl): Add attr-common.
2963 * genattr.c (main): Include insn-attr-common.h. Don't generate
2964 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 2965 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 2966
880962ac
GJL
29672011-06-28 Georg-Johann Lay <avr@gjlay.de>
2968
4a68b724 2969 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 2970 avr-*-* and avr-*-rtems* targets.
4a68b724 2971
880962ac
GJL
2972 * config/avr/elf.h: New file.
2973 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2974 (TARGET_ASM_SELECT_SECTION): Define.
2975 (INIT_SECTION_ASM_OP): Undefine.
2976 (FINI_SECTION_ASM_OP): Undefine.
2977 (READONLY_DATA_SECTION_ASM_OP): Undefine.
2978 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2979 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2980 * config/avr/avr.h:
2981 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2982 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2983 (MAX_OFILE_ALIGNMENT): Move to elf.h.
2984 (STRING_LIMIT): Move to elf.h.
2985 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2986 (ASM_DECLARE_OBJECT_NAME): Remove.
2987 (ESCAPES): Remove.
2988 (ASM_OUTPUT_SKIP): Remove.
2989 (DWARF2_DEBUGGING_INFO): Remove.
2990 (OBJECT_FORMAT_ELF): Remove.
2991 (USER_LABEL_PREFIX): Remove.
2992 (ASM_OUTPUT_EXTERNAL): Remove.
2993 (ASM_OUTPUT_ASCII): Remove.
2994 (TYPE_ASM_OP): Remove.
2995 (SIZE_ASM_OP): Remove.
2996 (WEAK_ASM_OP): Remove.
2997 (STRING_ASM_OP): Remove.
2998 (SET_ASM_OP): Remove.
2999 (ASM_WEAKEN_LABEL): Remove.
3000 (TYPE_OPERAND_FMT): Remove.
3001 (ASM_DECLARE_FUNCTION_SIZE): Remove.
3002 (ASM_FINISH_DECLARE_OBJECT): Remove.
3003 (NO_DOLLAR_IN_LABEL): Remove.
3004 (ASM_GENERATE_INTERNAL_LABEL): Remove.
3005 (ASM_OUTPUT_CASE_LABEL): Remove.
3006 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
3007 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
3008 (gas_output_ascii): Remove.
3009 (gas_output_limited_string): Remove.
3010 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
3011 * config/avr/avr-protos.h
3012 (gas_output_ascii): Remove prototye.
3013 (gas_output_limited_string): Remove prototype.
3014
a1b5eb93
RE
30152011-06-27 Richard Earnshaw <rearnsha@arm.com>
3016
3017 PR target/48637
3018 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
3019 asm operands.
3020
310e71a8
JH
30212011-06-27 Jan Hubicka <jh@suse.cz>
3022
4a9206ce
EB
3023 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
3024 node instead of references in node.
310e71a8 3025
171da07a
RH
30262011-06-27 Richard Henderson <rth@redhat.com>
3027
3028 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
3029 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
3030 inside ifdef.
3031
dc2a58da
JJ
30322011-06-27 Jakub Jelinek <jakub@redhat.com>
3033
56300785
JJ
3034 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
3035
45d439ac
JJ
3036 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
3037 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
3038 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
3039 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
3040 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
3041 (evaluate_stmt, execute_fold_all_builtins): Handle
3042 BUILT_IN_ASSUME_ALIGNED.
3043 * tree-ssa-dce.c (propagate_necessity): Likewise.
3044 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3045 call_may_clobber_ref_p_1): Likewise.
3046 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
3047 (expand_builtin_assume_aligned): New function.
3048 * doc/extend.texi (__builtin_assume_aligned): Document.
3049
dc2a58da
JJ
3050 PR debug/49544
3051 * cselib.c (promote_debug_loc): If cselib_preserve_constants
3052 and l has two DEBUG_INSN owned locs instead of just one, adjust
3053 the second location's setting_insn too.
3054
0d72f628
RO
30552011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3056
3057 PR libmudflap/38738
3058 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
3059
bebd619e
NC
30602011-06-27 Nick Clifton <nickc@redhat.com>
3061
0d5e0c1b
UB
3062 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
3063 bit position of highest bit set into a count of the high zero bits.
bebd619e 3064
353b39fa
EB
30652011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3066
3067 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
3068
a7af037b
EB
30692011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3070
3071 PR lto/48492
3072 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
3073 to a NULL parent.
3074
1c86160a
RG
30752011-06-27 Richard Guenther <rguenther@suse.de>
3076
3077 PR tree-optimization/49394
3078 * passes.c (execute_one_pass): Restore current_pass after
3079 applying IPA transforms.
3080
5da49a9d
KT
30812011-06-27 Kai Tietz <ktietz@redhat.com>
3082
3083 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
3084 out of type precision after operation.
0d5e0c1b
UB
3085 (find_bswap): Take for limit value the integer auto-promotion
3086 into account.
5da49a9d 3087
9242213f
EB
30882011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3089
3090 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
3091 forward scan as well.
3092
db8b22ef
TG
30932011-06-27 Tristan Gingold <gingold@adacore.com>
3094
3095 PR target/44241
3096 * config/vms/vms-protos.h: New file.
3097 * config/vms/vms-crtlmap.map: New file.
3098 * config/vms/vms.c: New file.
3099 * config/vms/make-crtlmap.awk: New file.
3100 * config/vms/vms-crtl.h: File removed.
3101 * config/vms/vms-crtl-64.h: File removed.
3102 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
3103 * config/alpha/vms64.h: Do not include vms-crtl-64.h
3104 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
3105 clear some builtins on VMS. Calls vms_patch_builtins.
3106 (avms_asm_output_external): Remove.
3107 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
3108 (struct crtl_name_spec): Remove
3109 (DO_CTRL_NAMES): Remove.
3110 * config/ia64/vms.h (struct crtl_name_spec): Remove
3111 (DO_CTRL_NAMES): Remove.
3112 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
3113 clear some builtins on VMS. Calls vms_patch_builtins.
3114 (ia64_asm_output_external): Remove DO_CRTL_NAME.
3115 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 3116 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 3117
b213221d
TG
31182011-06-27 Tristan Gingold <gingold@adacore.com>
3119
3120 * config/alpha/alpha.c (alpha_end_function): Always generate .end
3121 directive on VMS.
3122
157b9300
EB
31232011-06-27 Eric Botcazou <ebotcazou@adacore.com>
3124
3125 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
3126 the function receives nonlocal gotos.
3127
ccbf5bb4
RG
31282011-06-27 Richard Guenther <rguenther@suse.de>
3129
3130 PR tree-optimization/49536
3131 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3132 For non-scalar inner types use a scalar type according to
3133 the scalar inner mode.
3134
fe4cd14b
RG
31352011-06-27 Richard Guenther <rguenther@suse.de>
3136
3137 PR tree-optimization/49365
3138 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
3139
afc3f22f
RS
31402011-06-27 Richard Guenther <rguenther@suse.de>
3141
3142 PR tree-optimization/49169
3143 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
3144 the alignment of function decls.
3145
92590751 31462011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
3147
3148 PR target/47997
3149 * config/darwin.c (darwin_mergeable_string_section): Place string
3150 constants in '.cstring' rather than '.const' when CF/NSStrings are
3151 active.
3152
605354f3
EB
31532011-06-26 Eric Botcazou <ebotcazou@adacore.com>
3154
3155 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
3156 (emit_save_register_window): Likewise.
3157 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
3158 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
3159 Swap back %o7/%i7 in register naming.
3160
0e9197f5
IS
31612011-06-25 Iain Sandoe <iains@gcc.gnu.org>
3162
3163 PR driver/49371
3164 * config/darwin.c (darwin_override_options): Improve warning when
3165 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3166 is given with fpie/fPIE.
3167 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3168 * config/darwin9.h (PIE_SPEC): New.
53461199 3169
605354f3 31702011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
3171
3172 * timevar.c (timevar_print): Increase width for display of timevar
3173 name.
3174
f796c438
JJ
31752011-06-24 Jakub Jelinek <jakub@redhat.com>
3176
3177 PR c++/46400
3178 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3179 instead of TYPE_CHAIN for chain_next for types.
3180
a7289eaf
RH
31812011-06-24 Richard Henderson <rth@redhat.com>
3182
3183 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3184 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3185 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3186 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3187 (sparc_flat_expand_prologue): Emit individual instructions
3188 instead of one of the above.
3189
c4b9a87e
ER
31902011-06-24 Easwaran Raman <eraman@google.com>
3191
3192 PR rtl-optimization/49429
3193 PR target/49454
3194 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
3195 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3196 used to copy y into x.
3197 * calls.c (initialize_argument_information): Mark
3198 an argument addressable if it is passed by invisible reference.
3199 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
3200 if it is passed by reference.
3201
5ac6c59e
L
32022011-06-24 H.J. Lu <hongjiu.lu@intel.com>
3203
3204 PR rtl-optimization/49504
3205 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
3206 subtraction of a pointer in Pmode if pointers extend unsigned.
3207 (num_sign_bit_copies1): Likewise.
5ac6c59e 3208
b807e627
MJ
32092011-06-24 Martin Jambor <mjambor@suse.cz>
3210
3211 PR tree-optimizations/49516
3212 * tree-sra.c (sra_modify_assign): Choose the safe path for
3213 aggregate copies if we also did scalar replacements.
3214
9a1ea4b9
RR
32152011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3216
3217 PR target/49335
3218 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 3219 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 3220
949cfd0a
AK
32212011-06-24 Andi Kleen <ak@linux.intel.com>
3222
3223 * tree-sra.c (type_internals_preclude_sra_p): Add msg
3224 parameter. Split up ifs and report reason in *msg.
3225 (reject): Add.
3226 (find_var_candiate): Add msg variable.
3227 Split up ifs and report reason to reject.
3228 (find_param_candidates): Add msg variable.
3229 Pass msg to type_internals_preclude_sra_p.
3230
49e9c661 32312011-06-23 Jeff Law <law@redhat.com>
ad3577df 3232
b0c11403
JL
3233 PR middle-end/48770
3234 * reload.h (reload): Change to return a bool.
3235 * ira.c (ira): If requested by reload, run a fast DCE pass after
3236 reload has completed. Fix comment typo.
3237 * reload1.c (need_dce): New file scoped static.
3238 (reload): Set reload_completed here. Return whether or not a DCE
3239 pass after reload is needed.
3240 (delete_dead_insn): Set need_dce as needed.
3241
ad3577df
JL
3242 PR middle-end/49465
3243 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3244 to detect threading through joiner block. If there was already
3245 an edge to the new target, then do not change the PHI nodes.
3246
7cf64710
JJ
32472011-06-23 Jakub Jelinek <jakub@redhat.com>
3248
3249 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3250 get_pointer_alignment to see if base isn't sufficiently aligned.
3251
febb1302
JH
32522011-06-23 Jan Hubicka <jh@suse.cz>
3253
3254 PR tree-optimize/49373
3255 * tree-pass.h (all_late_ipa_passes): Declare.
3256 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
3257 (cgraph_optimize): Execute late passes; remove unreachable funcions
3258 after materialization.
3259 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3260 LTOing.
febb1302
JH
3261 * passes.c (all_late_ipa_passes): Declare.
3262 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
3263 (init_optimization_passes): Move ipa_pta to late passes; schedule
3264 fixup_cfg at beggining of all_passes.
febb1302
JH
3265 (apply_ipa_transforms): New function.
3266 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3267
4c77620d
JM
32682011-06-23 Joseph Myers <joseph@codesourcery.com>
3269
3270 * params.c: Include common/common-target.h. Don't include tm.h.
3271 (lang_independent_params): Move from toplev.c.
3272 (global_init_params): New.
3273 * params.h (global_init_params): Declare.
3274 * target.def (default_params): Move to common-target.def.
3275 * toplev.c (lang_independent_options): Remove.
3276 (lang_independent_params): Move to params.c.
3277 (general_init): Use global_init_params.
3278 * common/common-target.def (option_default_params): Move from
3279 target.def.
3280 * common/config/ia64/ia64-common.c: Include params.h.
3281 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3282 from ia64.c.
3283 * common/config/rs6000/rs6000-common.c: Include params.h.
3284 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3285 from rs6000.c.
3286 * common/config/sh/sh-common.c: Include params.h.
3287 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3288 from sh.c.
3289 * common/config/spu/spu-common.c: Include params.h.
3290 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3291 from spu.c.
3292 * config/ia64/ia64.c (ia64_option_default_params,
3293 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3294 * config/rs6000/rs6000.c (rs6000_option_default_params,
3295 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3296 * config/sh/sh.c (sh_option_default_params,
3297 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3298 * config/spu/spu.c (spu_option_default_params,
3299 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3300 * Makefile.in (OBJS): Remove params.o.
3301 (OBJS-libcommon-target): Add params.o.
3302 (params.o, $(common_out_object_file)): Update dependencies.
3303 * doc/tm.texi: Regenerate.
3304
6aad1e38
AM
33052011-06-23 Alan Modra <amodra@gmail.com>
3306
3307 PR bootstrap/49383
3308 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3309 invocation for 2011-06-09 changes.
3310
4fb489e7
JJ
33112011-06-22 Jakub Jelinek <jakub@redhat.com>
3312
fb79f500
JJ
3313 PR libgomp/49490
3314 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
3315 use n ceil/ nthreads size for the first n % nthreads threads in the
3316 team instead of all threads except for the last few ones which
fb79f500
JJ
3317 get less work or none at all.
3318
4fb489e7
JJ
3319 PR debug/49496
3320 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3321 uses.
3322
9c7c9f10
RG
33232011-06-22 Richard Guenther <rguenther@suse.de>
3324
3325 PR tree-optimization/49493
3326 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3327 Refer to the alias target of variables.
3328 (associate_varinfo_to_alias_1): Remove.
3329 (ipa_pta_execute): Do not associate aliases with anything.
3330 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3331 (cgraph_function_node): Likewise.
3332 (cgraph_function_or_thunk_node): Likewise.
3333 (varpool_variable_node): Likewise.
3334
7cf13d1f
NS
33352011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3336
0d5e0c1b 3337 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
3338 * config.gcc (arm*-*-linux*): Default to gnu tls.
3339 (arm*-*-*): Add --with-tls option.
3340 (all_defaults): Add 'tls'.
3341
78a8eb4e
RH
33422011-06-22 Richard Henderson <rth@redhat.com>
3343
3344 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3345 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3346 (dwarf2out_frame_debug_cfa_window_save): Rename from
3347 dwarf2out_window_save; make static.
3348 * tree.h (dwarf2out_window_save): Don't declare.
3349
3350 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3351 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3352 (emit_save_register_window): Rename from gen_save_register_window;
3353 emit the insn and add REG_CFA_* notes.
3354 (sparc_expand_prologue): Update to match.
3355 * config/sparc/sparc.md (save_register_window_1): Simplify from
3356 save_register_window<P:mode>.
3357
3b4c46d7
L
33582011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3359
3360 PR target/49497
3361 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3362 (*lea_general_2_zext): Likewise.
3363 (imul to lea peepholes): Use const359_operand and check
3364 TARGET_PARTIAL_REG_STALL.
3365
3366 * config/i386/predicates.md (const359_operand): New.
3367
4399cf59
MM
33682011-06-22 Michael Matz <matz@suse.de>
3369
3370 * cgraphunit.c (assemble_thunk): Use correct return type.
3371
31a0c825 33722011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 3373 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
3374
3375 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3376 (neon_output_shift_immediate): Ditto.
3377 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3378 prototype.
3379 (neon_output_shift_immediate): Ditto.
3380 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3381 (vashr<mode>3_imm): New insn pattern.
3382 (vlshr<mode>3_imm): Ditto.
3383 (vashr<mode>3): Modified constraint.
3384 (vlshr<mode>3): Ditto.
3385 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3386 predicate.
3387 (imm_for_neon_rshift_operand): Ditto.
3388 (imm_lshift_or_reg_neon): Ditto.
3389 (imm_rshift_or_reg_neon): Ditto.
3390
3391 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3392
ddb555ed
JJ
33932011-06-22 Jakub Jelinek <jakub@redhat.com>
3394
36dc1a88
JJ
3395 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3396 builtin calls even if likelyvalue is not CONSTANT.
3397 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3398 Return get_value_for_expr of first operand
3399 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3400 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3401 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3402 their non-checking counterparts.
3403 (call_may_clobber_ref_p_1): Likewise.
3404 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3405 like their non-checking counterparts.
3406 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3407 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3408 like their non-checking counterparts.
3409 (find_func_clobbers): Likewise.
3410 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3411 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3412
41cd4957
JJ
3413 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3414 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3415 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3416 of base type reference as argument.
3417 (resolve_addr_in_expr): Likewise. Fix keep computation.
3418 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
3419 (convert_descriptor_to_mode): ... this. For wider types convert to
3420 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
3421 (typed_binop): New function.
3422 (scompare_loc_descriptor, ucompare_loc_descriptor,
3423 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3424 default to unsigned type instead of signed.
3425
ddb555ed
JJ
3426 PR debug/47858
3427 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3428 (gimple_build_debug_source_bind_stat): New prototype.
3429 (gimple_build_debug_source_bind): Define.
3430 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3431 gimple_debug_source_bind_get_value,
3432 gimple_debug_source_bind_get_value_ptr,
3433 gimple_debug_source_bind_set_var,
3434 gimple_debug_source_bind_set_value): New inlines.
3435 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3436 * gimple-pretty-print.c (dump_gimple_debug): Handle
3437 GIMPLE_DEBUG_SOURCE_BIND.
3438 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3439 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3440 * tree-parloops.c (eliminate_local_variables,
3441 separate_decls_in_region): Likewise.
3442 (separate_decls_in_region_debug): Renamed from
3443 separate_decls_in_region_debug_bind. Handle
3444 gimple_debug_source_bind_p.
3445 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3446 prototypes.
3447 (DECL_HAS_DEBUG_ARGS_P): Define.
3448 (struct tree_function_decl): Add has_debug_args_flag field.
3449 * tree.c (debug_args_for_decl): New variable.
3450 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3451 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3452 (rewrite_debug_stmt_uses): New function.
3453 (rewrite_stmt): Use it to rewrite debug stmt uses.
3454 * rtl.def (DEBUG_PARAMETER_REF): New.
3455 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3456 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3457 DEBUG_PARAMETER_REF.
3458 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3459 * print-rtl.c (print_rtx): Likewise.
3460 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3461 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3462 debug stmts in the first bb.
3463 * tree-inline.c (remap_ssa_name): If remapping default def
3464 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3465 a source bind debug stmt.
3466 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3467 (maybe_move_debug_stmts_to_successors): Likewise.
3468 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3469 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3470 debug args vector from old_decl to new_decl.
3471 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3472 or modified parameters, add debug bind stmts before call
0d5e0c1b 3473 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
3474 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3475 on DECL_DEBUG_EXPRs from debug args vector.
3476 (expand_debug_source_expr): New function.
3477 (expand_debug_locations): Use it for source bind insns.
3478 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3479 * var-tracking.c (prepare_call_arguments): Add debug args
3480 to call_arguments if any.
3481 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
3482 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3483 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
3484 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3485 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3486 (gen_subprogram_die): Handle parameters identified by
3487 DEBUG_PARAMETER_REF.
3488
ccdc2164
NS
34892011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3490
3491 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3492 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
3493 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3494 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3495 (arm_tls_descseq_addr): New.
3496 (legitimize_tls_address): Add tlsdesc support.
3497 (arm_cannot_copy_insn_p): Check for tlscall.
3498 (arm_emit_tls_decoration): Likewise.
3499 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3500 (OPTION_DEFAULT_SPECS): Add with-tls support.
3501 * config/arm/arm.md (R1_REGNUM): Define.
3502 (tlscall): New.
3503 * config/arm/arm.opt (tls_type): New enumeration type and values.
3504 (mtls-dialect): New switch.
3505 * config/arm/arm-opts.h (enum tls_type): New.
3506
70e41a6a
NP
35072011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3508
3509 * attribs.c (register_attribute): Added assert to check that all
3510 attribute specs are registered with a name that is not empty and
3511 does not start with '_'.
3512 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3513 if the function has no attributes.
3514 * tree.c (is_attribute_with_length_p): Removed.
3515 (is_attribute_p): Removed.
0d5e0c1b 3516 (private_is_attribute_p): New.
70e41a6a
NP
3517 (private_lookup_attribute): New.
3518 (lookup_attribute): Removed.
3519 (lookup_ident_attribute): New.
3520 (remove_attribute): Require the first argument to be in the form
3521 'text', not '__text__'. Updated asserts.
3522 (merge_attributes): Use lookup_ident_attributes instead of
3523 lookup_attribute.
3524 (merge_dllimport_decl_attributes): Use remove_attribute.
3525 (attribute_list_contained): Likewise.
3526 (attribute_list_equal): Immediately return 1 if the arguments are
3527 identical pointers.
3528 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3529 'int'. Require the first argument to be in the form 'text', not
3530 '__text__'. Require the second argument to be an identifier.
3531 (lookup_attribute): Made inline. Require the first argument to be
3532 in the form 'text', not '__text__'.
3533 (private_is_attribute_p, private_lookup_attribute): New.
3534 Updated comments.
0d5e0c1b 3535
e0a8ecf2
AM
35362011-06-21 Andrew MacLeod <amacleod@redhat.com>
3537
3538 * builtins.c: Add sync_ or SYNC__ to builtin names.
3539 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3540 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3541
663827d3 35422011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 3543
663827d3
GJL
3544 PR target/33049
3545 * config/avr/avr.md (extzv): New expander.
3546 (*extzv): New insn.
3547 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3548 * config/avr/constraints.md (C04): New constraint.
3549 * doc/md.texi (Machine Constraints): Document it.
3550
146aef0b
JJ
35512011-06-21 Jakub Jelinek <jakub@redhat.com>
3552
3553 PR middle-end/49489
3554 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3555 unsignedp argument instead of 1 for clrsb_optab.
3556 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3557 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3558 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3559 * optabs.c (widen_leading): Call widen_operand and expand_unop
3560 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 3561 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 3562
c0503294
GJL
35632011-06-21 Georg-Johann Lay <avr@gjlay.de>
3564
3565 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3566
3801c801
BS
35672011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3568
0bddee8e
BS
3569 * gensupport.c (add_define_attr): New static function.
3570 (is_predicable): Allow multi-alternative lists for the "predicable"
3571 attribute.
3572 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3573 (process_one_cond_exec): Call alter_attrs_for_insn.
3574 * doc/md.texi (Defining Attributes): Mention some standard names.
3575 (Conditional Execution): Update documentation for "predicable".
3576
3801c801
BS
3577 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3578 __builtin_clrsbll): Document.
3579 * doc/rtl.texi (clrsb): New entry.
3580 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3581 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3582 (expand_unop): Handle clrsb_optab.
3583 (init_optabs): Initialize it.
3584 * optabs.h (enum optab_index): New entry OTI_clrsb.
3585 (clrsb_optab): Define.
3586 * genopinit.c (optabs): Add an entry for it.
3587 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3588 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3589 BUILT_IN_CLRSBLL): New.
3590 * rtl.def (CLRSB): New code.
3591 * dwarf2out.c (mem_loc_descriptor): Handle it.
3592 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3593 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3594 and popcount.
3595 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3596 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3597 (__ctzDI2): Move declaration.
3598 * config/bfin/bfin.md (clrsbsi2): New expander.
3599 (signbitssi2): Use the CLRSB rtx.
3600 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3601 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3602
55f01229
RG
36032011-06-21 Richard Guenther <rguenther@suse.de>
3604
637c11bd 3605 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 3606
5181cd6a
IR
36072011-06-21 Ira Rosen <ira.rosen@linaro.org>
3608
3609 PR tree-optimization/49478
3610 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3611 with constant operand.
3612
e4ee3d70
RG
36132011-06-21 Richard Guenther <rguenther@suse.de>
3614
3615 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 3616
7b7ec6c5
RG
36172011-06-21 Richard Guenther <rguenther@suse.de>
3618
3619 PR tree-optimization/49483
3620 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3621 VIEW_CONVERT_EXPR conversions.
3622
1b916ca6
JM
36232011-06-21 Joseph Myers <joseph@codesourcery.com>
3624
3625 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3626 * config/avr/avr-tables.opt: New file (generated).
3627 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3628 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3629 avr-mcus.def.
3630 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3631 (avr_option_override): Don't process -mmcu= argument here. Set
3632 avr_current_device using avr_mcu_index.
637c11bd 3633 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
3634 * config/avr/avr.opt (mmcu=): Use Enum.
3635 * config/avr/t-avr (avr-devices.o): Update dependencies.
3636 ($(srcdir)/config/avr/avr-tables.opt): New.
3637 * target.def (help): Remove.
3638 * doc/tm.texi.in (TARGET_HELP): Remove.
3639 * doc/tm.texi: Regenerate.
3640 * opts.c: Don't include target.h.
3641 (common_handle_option): Don't call targetm.help.
3642 * system.h (TARGET_HELP): Poison.
3643 * Makefile.in (opts.o): Update dependencies.
3644
7ecfa34f
RO
36452011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3646
3647 * config/usegld.h: New file.
3648 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3649 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 3650 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
3651 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3652 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
3653 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3654 Define.
7ecfa34f
RO
3655 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3656 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3657 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3658 (STACK_CHECK_STATIC_BUILTIN): Define.
3659 * config/sol2.opt (compat-bsd): Remove.
3660 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3661 * config/sol2-bi.h: New file.
3662 * config/sol2-gld.h: Remove.
3663 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3664 (NO_DBX_BNSYM_ENSYM): Remove.
3665 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3666 (STACK_CHECK_STATIC_BUILTIN): Remove.
3667 Test USE_GLD instead of TARGET_GNU_LD.
3668 * config/i386/sol2-10.h: Rename to ...
3669 * config/i386/sol2-bi.h .. this.
3670 (SUBTARGET_EXTRA_SPECS): Redefine.
3671 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3672 (MULTILIB_DEFAULTS): Remove.
3673 (DEFAULT_ARCH32_P): Define.
3674 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3675 (ARCH64_SUBDIR): Define.
3676 Test USE_GLD instead of TARGET_GNU_LD.
3677 (I386_EMULATION): Rename to ...
3678 (ARCH32_EMULATION): ... this.
3679 (X86_64_EMULATION): Rename to ...
3680 (ARCH64_EMULATION): ... this.
3681 (TARGET_LD_EMULATION): Remove.
3682 (LINK_ARCH_SPEC): Remove.
3683 * config/i386/sol2-gas.h: Remove.
3684 * config/i386/t-sol2-10: Rename to ...
3685 * config/i386/t-sol2-64: ... this.
3686 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3687 (AS_SPARC64_FLAG): Define.
3688 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3689 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3690 depending on TARGET_CPU_DEFAULT.
3691 (CPP_CPU_SPEC): Redefine.
3692 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3693 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3694 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3695 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3696 ASM_ARCH_DEFAULT_SPEC): Redefine.
3697 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3698 LINK_ARCH_DEFAULT_SPEC.
3699 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3700 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3701 (ARCH64_SUBDIR): Define.
3702 (LINK_ARCH64_SPEC): Redefine.
3703 (CC1_SPEC): Redefine.
3704 (OPTION_DEFAULT_SPECS): Redefine.
3705 (MULTILIB_DEFAULTS): Define.
3706 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3707 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3708 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3709 (NO_DBX_BNSYM_ENSYM): Remove.
3710 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3711 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3712 (TARGET_ASM_NAMED_SECTION): Likewise.
3713 (STACK_CHECK_STATIC_BUILTIN): Remove.
3714 * config/sparc/sol2-bi.h: Remove.
3715 * config/sparc/sol2-gas-bi.h: Remove.
3716 * config/sparc/sol2-gas.h: Remove.
3717 * config/sparc/sol2-gld-bi.h: Remove.
3718 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3719 common parts ...
3720 (*-*-solaris2*): ... here.
3721
4b583c43 37222011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 3723
4b583c43 3724 PR other/43564
637c11bd
UB
3725 * ipa-inline.c (can_inline_edge_p): Check
3726 !DECL_DISREGARD_INLINE_LIMITS.
3727
3bb556ad 37282011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 3729
3bb556ad
CB
3730 PR middle-end/49139
3731 * cgraphunit.c (process_function_and_variable_attributes): warn when
3732 always_inline functions that are not inline.
637c11bd
UB
3733 * ipa-inline-transform.c (inline_transform): Always call
3734 optimize_inline.
3735 * tree-inline.c (tree_inlinable_function_p): Use error instead
3736 of sorry.
3bb556ad 3737 (expand_call_inline): Likewise.
637c11bd 3738
f1ee724c
JJ
37392011-06-21 Jakub Jelinek <jakub@redhat.com>
3740
3741 * Makefile.in (dg_target_exps): Set.
3742 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3743 instead of 7, try to divide it more evenly.
3744
37452011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 3746
931050d0 3747 PR target/49089
97ef5ae6
CF
3748 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3749 (avx256_split_unaligned_store): New definition.
3750 (ix86_option_override_internal): Enable avx256 unaligned load/store
3751 splitting only when avx256_split_unaligned_load/store is set.
3752
998c75b6
BS
37532011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3754
3755 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3756 open chain in a smaller mode without failing the entire block.
3757
83a8cbda
L
37582011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3759
3760 PR middle-end/47725
3761 * combine.c (cant_combine_insn_p): Don't check zero/sign
3762 extended hard registers.
3763
3a769784
AM
37642011-06-21 Alan Modra <amodra@gmail.com>
3765
3766 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3767 CONST high part large-toc address.
3768 (rs6000_tls_referenced_p): Make static.
3769 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3770
d1e32c4a
L
37712011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3772
3773 PR middle-end/47725
3774 * combine.c (cant_combine_insn_p): Check zero/sign extended
3775 hard registers.
3776
c2954af9
RR
37772011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3778
3779 PR target/49385
3780 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3781 one of the operands is a register.
3782
a95015b6
KT
37832011-06-20 Kai Tietz <ktietz@redhat.com>
3784
637c11bd
UB
3785 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3786 operations in combination with binary and.
a95015b6 3787
49a30d00
BS
37882011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3789
3790 * regrename.c (do_replace): Don't update notes.
3791
3bae1d98
AM
37922011-06-20 Alan Modra <amodra@gmail.com>
3793
3794 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3795 of toc-relative address in CONST.
3796 (rs6000_delegitimize_address): Recognize changed address.
3797 (rs6000_legitimize_reload_address): Likewise.
3798 (rs6000_emit_move): Don't force these constants to memory.
3799 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3800 toc-relative address in CONST.
3801 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3802 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3803
10937b0c
L
38042011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3805
637c11bd 3806 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
3807 (count_trailing_zeros): Likewise.
3808
0c587260
L
38092011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3810
3811 PR other/49325
3812 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3813 .init_array can be used with .ctors on targets.
3814 * configure: Regenerated.
3815
c020c92b
EB
38162011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3817
3818 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3819 if the element type is volatile.
3820
cd35bcf7
JH
38212011-06-18 Jan Hubicka <jh@suse.cz>
3822
3823 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3824 extra name aliases.
3825 (lto_symtab_resolve_can_prevail_p): Likewise.
3826 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3827 * cgraphbuild.c (record_reference): Remove extra body alias code.
3828 (mark_load): Likewise.
3829 (mark_store): Likewise.
3830 * cgraph.h (varpool_node): Remove extra_name filed;
3831 add alias_of and extraname_alias.
3832 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3833 (varpool_alias_aliased_node): New inline function.
3834 (varpool_variable_node): New function.
3835 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3836 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3837 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3838 (input_varpool_node): Likewise.
3839 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3840 (varpool_externally_visible_p): Remove extra body alias code.
3841 (function_and_variable_visibility): Likewise.
3842 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3843 (ipa_pta_execute): Use it.
3844 * varpool.c (varpool_remove_node): Remove extra name alias code.
3845 (varpool_mark_needed_node): Likewise.
3846 (varpool_analyze_pending_decls): Analyze aliases.
3847 (assemble_aliases): New functoin.
3848 (varpool_assemble_decl): Use it.
3849 (varpool_create_variable_alias): New function.
3850 (varpool_extra_name_alias): Rewrite.
3851 (varpool_for_node_and_aliases): New function.
3852
c96b4102
JJ
38532011-06-18 Jakub Jelinek <jakub@redhat.com>
3854
3855 PR target/49411
3856 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3857 last_arg_constant and last argument doesn't match its predicate,
3858 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3859 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3860 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3861 spelling of error message.
3862 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3863 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3864 const_0_to_255_operand instead of const_int_operand.
3865
3866 Revert:
3867 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3868
3869 * config/i386/sse.md (blendbits): Remove mode attribute.
3870 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3871 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3872 Check integer value of operand 3 in insn constraint.
3873
9a2091cd
HPN
38742011-06-17 Hans-Peter Nilsson <hp@axis.com>
3875
3876 PR rtl-optimization/48542
3877 * reload.c (find_equiv_reg): Stop looking when finding a
3878 setjmp-type call.
3879 * reload1.c (reload_as_needed): Invalidate all reload
3880 registers when crossing a setjmp-type call.
3881
361b51c0
JL
38822011-06-16 Jeff Law <law@redhat.com>
3883
3884 * tree-ssa-threadupdate.c (struct redirection_data): New field
3885 intermediate_edge.
3886 (THREAD_TARGET2): Define.
637c11bd 3887 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
3888 (lookup_redirection_data): Drop useless argument. Extract the
3889 outgoing_edge and intermediate edge from E. Callers updated.
3890 (copy_phi_args, update_destination_phis): New functions.
3891 (fix_duplicate_block_edges): Likewise.
3892 (create_edge_and_update_destination_phis): Duplicate all the edges
3893 hung off e->aux. Use copy_phi_args.
3894 (create_duplicates): Use fix_duplicate_block_edges.
3895 (fixup_template_block): Likewise.
3896 (redirect_edges): If necessary, redirect the joiner block's incoming
3897 edge to the duplicate of the joiner block.
3898 (thread_block): Don't muck up loops when threading through a joiner
3899 block.
637c11bd 3900 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
3901 (mark_threaded_blocks, register_jump_thread): Likewise.
3902 * tree-flow.h (register_jump_thread): Add new argument. Callers
3903 updated.
3904 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3905 (thread_across_edge): Handle threading through a joiner block.
637c11bd 3906
ee460e75
MJ
39072011-06-16 Martin Jambor <mjambor@suse.cz>
3908
3909 PR tree-optimization/49343
3910 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3911 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3912
a285ba2e
IS
39132011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3914
3915 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3916 inside RTX_CODE ifdef.
3917
0703f020
TV
39182011-06-16 Tom de Vries <tom@codesourcery.com>
3919
3920 PR target/45098
637c11bd
UB
3921 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3922 Disallow NULL pointer for pointer arithmetic.
0703f020 3923
900c07da
RR
39242011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3925
3926 PR target/49398
3927 Revert.
3928 2011-06-10 Wei Guozhi <carrot@google.com>
3929
3930 PR target/45335
3931 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3932 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3933 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3934 related peephole2.
3935 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3936 related peephole2.
3937 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3938 (arm_legitimate_ldrd_p): New prototype.
3939 (arm_output_ldrd): New prototype.
3940 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3941 (arm_legitimate_ldrd_p): New function.
3942 (arm_output_ldrd): New function.
3943
c020c92b 39442011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
3945
3946 PR middle-end/46500
3947 * doc/tm.texi.in: Update Copyright date.
3948 * doc/tm.texi: Regenerate.
3949 * targhooks.c (default_setup_incoming_varargs): Replace
3950 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3951 (default_pretend_outgoing_varargs_named): Likewise.
3952 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3953 (hook_callee_copies_named): Likewise.
3954 (default_function_arg_advance): Likewise.
3955 (default_function_arg): Likewise.
3956 (default_function_incoming_arg): Likewise.
3957 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3958 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3959 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3960 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3961 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3962 * targhooks.h (default_setup_incoming_varargs): Likewise.
3963 (default_pretend_outgoing_varargs_named): Likewise.
3964 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3965 (hook_callee_copies_named): Likewise.
3966 (default_function_arg_advance): Likewise.
3967 (default_function_arg): Likewise.
3968 (default_function_incoming_arg): Likewise.
3969 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3970 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3971 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3972 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3973 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3974 * target.def (pass_by_reference): Likewise.
3975 (setup_incoming_varargs, strict_argument_naming): Likewise.
3976 (pretend_outgoing_varargs_named, callee_copies): Likewise.
3977 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3978 (function_incoming_arg): Likewise.
3979 * target.h: Don't include "tm.h" .
3980 (cumulative_args_t): New typedef.
3981 [GCC_TM_H] (get_cumulative_args): New static inline function.
3982 [GCC_TM_H] (pack_cumulative_args): Likewise.
3983 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3984 argument type with cumulative_args_t.
3985 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3986 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3987 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3988 (frv_arg_partial_bytes, frv_function_arg): Likewise.
3989 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3990 (frv_function_arg_1): Likewise.
3991 * config/s390/s390.c (s390_pass_by_reference): Likewise.
3992 (s390_function_arg_advance, s390_function_arg): Likewise.
3993 * config/m32c/m32c.c (m32c_function_arg): Likewise.
3994 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3995 (m32c_strict_argument_naming): Likewise.
3996 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3997 (spu_function_arg_advance): Likewise.
3998 (spu_setup_incoming_varargs): Likewise. Make static.
3999 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
4000 Remove prototype.
4001 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
4002 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4003 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
4004 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
4005 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
4006 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
4007 (mep_pass_by_reference, mep_function_arg): Likewise.
4008 (mep_function_arg_advance): Likewise.
4009 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4010 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
4011 (m32r_function_arg, m32r_function_arg_advance): Likewise.
4012 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
4013 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4014 (ix86_function_arg, ix86_pass_by_reference): Likewise.
4015 (ix86_setup_incoming_varargs): Likewise.
4016 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4017 (sh_strict_argument_naming): Likewise.
4018 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
4019 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
4020 (sh_function_arg_advance, sh_function_arg): Likewise.
4021 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4022 (pdp11_function_arg_advance): Likewise.
4023 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4024 Likewise.
4025 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
4026 * config/avr/avr.c (avr_function_arg): Likewise.
4027 (avr_function_arg_advance): Likewise.
4028 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4029 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
4030 (xtensa_function_arg_1): Likewise.
637c11bd
UB
4031 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
4032 Likewise.
d5cc9181
JR
4033 (xstormy16_function_arg): Likewise.
4034 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4035 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4036 (fr30_function_arg_advance): Likewise.
4037 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4038 (lm32_function_arg, lm32_function_arg_advance): Likewise.
4039 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4040 (moxie_function_arg, moxie_function_arg_advance): Likewise.
4041 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
4042 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4043 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
4044 (cris_function_arg, cris_function_incoming_arg): Likewise.
4045 (cris_function_arg_advance, cris_function_arg_1): Likewise.
4046 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4047 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
4048 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
4049 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4050 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
4051 (mn10300_arg_partial_bytes): Likewise.
4052 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4053 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
4054 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
4055 (ia64_function_arg_1): Likewise.
4056 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4057 (m68k_function_arg): Likewise.
4058 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
4059 (rs6000_function_arg, setup_incoming_varargs): Likewise.
4060 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
4061 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
4062 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
4063 (picochip_arg_advance): Likewise.
4064 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4065 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
4066 (mcore_function_arg_advance): Likewise.
4067 * config/score/score.c (score_pass_by_reference): Likewise.
4068 (score_function_arg_advance): Likewise.
4069 (score_arg_partial_bytes): Likewise. Make static.
4070 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
4071 * config/arm/arm.c (arm_arg_partial_bytes): Replace
4072 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4073 (arm_function_arg, arm_function_arg_advance): Likewise.
4074 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
4075 * config/pa/pa.c (pa_pass_by_reference): Likewise.
4076 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
4077 (pa_function_arg): Likewise.
4078 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
4079 (mips_function_arg, mips_function_arg_advance): Likewise.
4080 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
4081 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
4082 * config/vax/vax.c (vax_function_arg): Likewise.
4083 (vax_function_arg_advance): Likewise.
4084 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4085 (h8300_function_arg_advance): Likewise.
4086 * config/v850/v850.c (v850_pass_by_reference): Likewise.
4087 (v850_strict_argument_naming, v850_function_arg): Likewise.
4088 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
4089 (v850_setup_incoming_varargs): Likewise.
4090 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4091 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
4092 (mmix_function_arg, mmix_pass_by_reference): Likewise.
4093 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
4094 with const void *.
4095 * config/bfin/bfin.c (setup_incoming_varargs): Replace
4096 CUMULATIVE_ARGS* argument type with cumulative_args_t.
4097 (bfin_function_arg_advance, bfin_function_arg): Likewise.
4098 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
4099 * calls.c (emit_call_1): Change type of args_so_far to
4100 cumulative_args_t. Changed all callers.
4101 (initialize_argument_information): Likewise.
4102 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
4103 * dse.c (get_call_args): Likewise.
4104 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4105 * function.c (pass_by_reference, reference_callee_copied): Likewise.
4106 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
4107 New member args_so_far_v. Changed all users.
4108 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
4109 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4110 * config/mips/mips.c (mips_output_args_xfer): Likewise.
4111 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4112 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
4113 * config/microblaze/microblaze.c (microblaze_expand_prologue):
4114 Likewise.
d5cc9181
JR
4115 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
4116 m32r_pass_by_reference.
4117
51312233
IR
41182011-06-16 Ira Rosen <ira.rosen@linaro.org>
4119
4120 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
4121 argument to be a VEC of statements.
637c11bd
UB
4122 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
4123 assert that pattern statements have to have their vector type set.
51312233
IR
4124 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
4125 Change the first argument to be a VEC of statements. Update
4126 documentation.
4127 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
4128 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
4129 (vect_recog_widen_mult_pattern): Change the first argument to be a
4130 VEC of statements. Update documentation. Check that the constant is
4131 INTEGER_CST. Support multiplication by a constant that fits an
4132 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
4133 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
4134 call. Handle additional pattern statements if necessary.
4135
fd4df33d
NC
41362011-06-16 Nick Clifton <nickc@redhat.com>
4137
4138 PR target/49427
4139 * config.gcc: Set cpu_type to v850 for any V850 architecture.
4140 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
4141 md_file, extra_modes, out_file and extra_options are these are all
4142 deduced from cpu_type.
4143
fbd05da0
GJL
41442011-06-16 Georg-Johann Lay <avr@gjlay.de>
4145
4146 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
4147 truncation mask to 63.
4148
0ad8bb3b
GJL
41492011-06-16 Georg-Johann Lay <avr@gjlay.de>
4150
4151 PR target/49313
4152 PR target/29524
4153 * longlong.h: Add AVR support:
4154 (count_leading_zeros): New macro.
4155 (count_trailing_zeros): New macro.
4156 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
4157 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
4158 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
4159 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4160 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
4161 (LIB2FUNCS_EXCLUDE): Add _clz.
4162 * config/avr/libgcc.S (XCALL): Move up in file.
4163 (XJMP): New C Macro.
4164 (DEFUN): New asm macro.
4165 (ENDF): New asm macro.
4166 (__ffssi2): New function.
4167 (__ffshi2): New function.
4168 (__loop_ffsqi2): New function.
4169 (__ctzsi2): New function.
4170 (__ctzhi2): New function.
4171 (__clzdi2): New function.
4172 (__clzsi2): New function.
4173 (__clzhi2): New function.
4174 (__paritydi2): New function.
4175 (__paritysi2): New function.
4176 (__parityhi2): New function.
59c1e10b 4177 (__parityqi2): New function.
0ad8bb3b
GJL
4178 (__popcounthi2): New function.
4179 (__popcountsi2): New function.
4180 (__popcountdi2): New function.
4181 (__popcountqi2): New function.
4182 (__bswapsi2): New function.
4183 (__bswapdi2): New function.
4184 (__ashldi3): New function.
4185 (__ashrdi3): New function.
4186 (__lshrdi3): New function.
4187 Fix suspicous lines.
4188
12430896
RG
41892011-06-16 Richard Guenther <rguenther@suse.de>
4190
4191 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4192 the same as x != 0.
637c11bd
UB
4193 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4194 to (bool) X & 1.
12430896
RG
4195 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4196 equality compares against zero for the lower bit.
4197
09302442
JJ
41982011-06-16 Jakub Jelinek <jakub@redhat.com>
4199
4200 PR tree-optimization/49419
4201 * tree-vrp.c (execute_vrp): Call init_range_assertions
4202 before estimate_numbers_of_iterations, call
4203 free_number_of_iterations_estimates before calling
4204 remove_range_assertions.
4205
81c41166
RE
42062011-06-16 Revital Eres <revital.eres@linaro.org>
4207
4208 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4209 (struct partial_schedule): Add rows_length field.
4210 (verify_partial_schedule): Check rows_length.
4211 (ps_insert_empty_row): Handle rows_length.
4212 (create_partial_schedule): Likewise.
4213 (free_partial_schedule): Likewise.
4214 (reset_partial_schedule): Likewise.
4215 (create_ps_insn): Remove rest_count argument.
4216 (remove_node_from_ps): Update rows_length.
4217 (add_node_to_ps): Update rows_length and call create_ps_insn
4218 without passing row_rest_count.
4219 (rotate_partial_schedule): Update rows_length.
4220
d24dc7b3
RE
42212011-06-16 Revital Eres <revital.eres@linaro.org>
4222
4223 * ddg.c (add_intra_loop_mem_dep): New function.
4224 (build_intra_loop_deps): Call it.
4225
361b51c0 42262011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
4227
4228 * df-problems.c (df_lr_local_compute): Manually CSE
4229 PIC_OFFSET_TABLE_REGNUM.
4230 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4231 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4232
85ce9375
JH
42332011-06-13 Jan Hubicka <jh@suse.cz>
4234
4235 * cgraphunit.c (handle_alias_pairs): New function.
4236 (cgraph_finalize_compilation_unit): Use it.
4237 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4238 as externally visible.
4239
a577c405
RG
42402011-06-15 Richard Guenther <rguenther@suse.de>
4241
4242 * expr.c (expand_expr_real_2): Reduce all integral types to
4243 bitfield precision.
4244 (expand_expr_real_1): Likewise.
4245
93536c97
MJ
42462011-06-15 Martin Jambor <mjambor@suse.cz>
4247
4248 PR tree-optimization/48613
4249 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4250 ipa_node_params_vector is NULL.
fd4df33d 4251
ba45cfc4
JJ
42522011-06-15 Jakub Jelinek <jakub@redhat.com>
4253
4254 PR debug/49382
4255 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
4256 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4257 location in the list, even if it is modified before first real insn.
ba45cfc4 4258 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 4259 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 4260
6fc5966f
AM
42612011-06-15 Alexander Monakov <amonakov@ispras.ru>
4262
4263 PR target/49349
4264 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4265 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4266 above a fence. Update comments.
4267 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4268 placed just above it. Do not allow NULL place_to_insert.
4269
9d5e7640
IR
42702011-06-15 Ira Rosen <ira.rosen@linaro.org>
4271
4272 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4273 (slpeel_tree_peel_loop_to_edge): Don't call
4274 remove_dead_stmts_from_loop.
4275 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4276 remove irrelevant pattern statements. For irrelevant statements
4277 check if it is the last statement of a detected pattern, use
4278 corresponding pattern statement instead.
4279 (destroy_loop_vec_info): No need to remove pattern statements,
4280 only free stmt_vec_info.
4281 (vect_transform_loop): For irrelevant statements check if it is
4282 the last statement of a detected pattern, use corresponding
4283 pattern statement instead.
4284 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4285 pattern statements. Set basic block for the new statement.
4286 (vect_pattern_recog): Update documentation.
4287 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4288 operands of pattern statements.
4289 (vectorizable_call): Fix printing. In case of a pattern statement
4290 use the lhs of the original statement when creating a dummy
4291 statement to replace the original call.
4292 (vect_analyze_stmt): For irrelevant statements check if it is
4293 the last statement of a detected pattern, use corresponding
4294 pattern statement instead.
4295 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4296 statements use gsi of the original statement.
4297
677f3fa8
JM
42982011-06-14 Joseph Myers <joseph@codesourcery.com>
4299
4300 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4301 common/common-target-def.h.
4302 * target.def (default_target_flags, handle_option,
4303 supports_split_stack, optimization_table, init_struct,
4304 except_unwind_info, unwind_tables_default, have_named_sections):
4305 Move to common/common-target.def.
4306 * target.h (enum opt_levels, struct default_options): Move to
4307 common/common-target.h.
4308 * targhooks.c (default_except_unwind_info,
4309 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4310 default_target_handle_option, empty_optimization_table): Move to
4311 common/common-targhooks.c.
4312 * targhooks.h (default_except_unwind_info,
4313 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4314 default_target_handle_option, empty_optimization_table): Move to
4315 common/common-targhooks.h.
4316 * common/common-target-def.h: Include common/common-targhooks.h.
4317 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4318 defined.
4319 * common/common-target.def (handle_option, option_init_struct,
4320 option_optimization_table, default_target_flags,
4321 except_unwind_info, supports_split_stack, unwind_tables_default,
4322 have_named_sections): Move from target.def.
4323 (HOOK_PREFIX): Undefine at end of file.
4324 * common/common-target.h: Include input.h.
4325 (enum opt_levels, struct default_options): Move from target.h.
4326 * common/common-targhooks.c, common/common-targhooks.h: New.
4327 * config.gcc (target_has_targetm_common): Default to yes.
4328 (moxie*): Set target_has_targetm_common=no.
4329 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4330 * doc/tm.texi: Regenerate.
4331 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4332 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4333 (GCC_OBJS): Remove vec.o.
4334 (OBJS): Remove hooks.o and vec.o.
4335 (OBJS-libcommon-target): Add vec.o, hooks.o and
4336 common/common-targhooks.o.
4337 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4338 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4339 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4340 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4341 Update dependencies.
4342 (common/common-targhooks.o): New.
637c11bd 4343 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
4344 * common/config/pa/pa-common.c: Include more headers. Take
4345 copyright dates from pa.c.
4346 (pa_option_optimization_table, pa_handle_option,
4347 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4348 TARGET_HANDLE_OPTION): Move from pa.c.
4349 * common/config/alpha/alpha-common.c,
4350 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4351 common/config/bfin/bfin-common.c,
4352 common/config/cris/cris-common.c,
4353 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4354 common/config/h8300/h8300-common.c,
4355 common/config/i386/i386-common.c,
4356 common/config/ia64/ia64-common.c,
4357 common/config/iq2000/iq2000-common.c,
4358 common/config/lm32/lm32-common.c,
4359 common/config/m32c/m32c-common.c,
4360 common/config/m32r/m32r-common.c,
4361 common/config/m68k/m68k-common.c,
4362 common/config/mcore/mcore-common.c,
4363 common/config/mep/mep-common.c,
4364 common/config/microblaze/microblaze-common.c,
4365 common/config/mips/mips-common.c,
4366 common/config/mmix/mmix-common.c,
4367 common/config/mn10300/mn10300-common.c,
4368 common/config/pdp11/pdp11-common.c,
4369 common/config/picochip/picochip-common.c,
4370 common/config/rs6000/rs6000-common.c,
4371 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4372 common/config/score/score-common.c, common/config/sh/sh-common.c,
4373 common/config/sparc/sparc-common.c,
4374 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4375 common/config/vax/vax-common.c,
4376 common/config/xstormy16/xstormy16-common.c,
4377 common/config/xtensa/xtensa-common.c: New.
4378 * config/alpha/alpha.c: Include common/common-target.h.
4379 (alpha_option_optimization_table, alpha_handle_option,
4380 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4381 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4382 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4383 * config/arm/arm.c (arm_option_optimization_table,
4384 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4385 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4386 arm-common.c.
4387 * config/avr/avr.c (avr_option_optimization_table,
4388 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4389 to avr-common.c.
4390 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4391 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4392 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4393 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4394 * config/cris/cris.c (cris_option_optimization_table,
4395 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4396 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4397 cris-common.c.
4398 * config/fr30/fr30.c (fr30_option_optimization_table,
4399 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4400 to fr30-common.c.
4401 * config/frv/frv.c (frv_option_optimization_table,
4402 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4403 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4404 * config/h8300/h8300.c (h8300_option_optimization_table,
4405 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4406 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4407 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4408 * config/i386/i386.c: Include common/common-target.h.
4409 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4410 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4411 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4412 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4413 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4414 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4415 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4416 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4417 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4418 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4419 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4420 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4421 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4422 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4423 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4424 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4425 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4426 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4427 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4428 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4429 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4430 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4431 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4432 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4433 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4434 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4435 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4436 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4437 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4438 ix86_option_optimization_table, ix86_option_init_struct,
4439 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4440 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4441 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4442 i386-common.c.
4443 * config/i386/t-i386 (i386.o): Update dependencies.
4444 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4445 * config/ia64/ia64.c (ia64_option_optimization_table,
4446 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4447 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4448 ia64_handle_option): Move to ia64-common.c.
4449 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4450 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4451 * config/lm32/lm32.c (lm32_option_optimization_table,
4452 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4453 to lm32-common.c.
4454 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4455 m32c-common.c.
4456 * config/m32r/m32r.c (m32r_option_optimization_table,
4457 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4458 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4459 m32r_handle_option): Move to m32r-common.c.
4460 (m32r_memory_move_cost): Remove comment referring to
4461 TARGET_HANDLE_OPTION.
4462 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4463 Move to m68k-common.c.
4464 * config/mcore/mcore.c (mcore_option_optimization_table,
4465 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4466 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4467 * config/mep/mep.c (mep_option_optimization_table,
4468 mep_handle_option, TARGET_HANDLE_OPTION,
4469 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4470 Move to mep-common.c.
4471 * config/microblaze/microblaze.c
4472 (microblaze_option_optimization_table,
4473 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4474 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4475 * config/mips/mips.c (mips_handle_option,
4476 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4477 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4478 mips-common.c.
4479 * config/mmix/mmix.c (mmix_option_optimization_table,
4480 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4481 Move to mmix-common.c.
4482 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4483 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4484 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4485 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4486 * config/pa/pa.c: Include common/common-target.h.
4487 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4488 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4489 pa_handle_option): Move to pa-common.c.
4490 (pa_option_override): Use targetm_common.except_unwind_info.
4491 (pa_asm_output_mi_thunk, pa_function_section): Use
4492 targetm_common.have_named_sections.
4493 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4494 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4495 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4496 pdp11_handle_option, pdp11_option_init_struct): Move to
4497 pdp11-common.c.
4498 * config/picochip/picochip.c (picochip_option_optimization_table,
4499 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4500 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4501 * config/rs6000/rs6000.c: Include common/common-target.h.
4502 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4503 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4504 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4505 rs6000_handle_option): Move to rs6000-common.c.
4506 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4507 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4508 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4509 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4510 * config/s390/s390.c (processor_flags_table,
4511 s390_option_optimization_table, s390_option_init_struct,
4512 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4513 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4514 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4515 * config/s390/s390.h (processor_flags_table): Declare.
4516 * config/score/score.c (score_option_optimization_table,
4517 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4518 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4519 score_handle_option): Move to score-common.c.
4520 * config/sh/sh.c (sh_option_optimization_table,
4521 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4522 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4523 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4524 * config/sparc/sparc.c: Include common/common-target.h.
4525 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4526 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4527 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4528 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4529 spu_option_init_struct): Move to spu-common.c.
4530 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4531 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4532 * config/v850/v850.c (small_memory_physical_max,
4533 v850_handle_memory_optionn v850_handle_option,
4534 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4535 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4536 v850-common.c.
637c11bd 4537 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
4538 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4539 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4540 Move to xtensa-common.c.
4541 * cfglayout.c: Include common/common-target.h.
4542 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4543 * cfgrtl.c: Include common/common-target.h.
4544 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4545 targetm_common.have_named_sections.
4546 * dbxout.c: Include common/common-target.h.
4547 (dbxout_function_end): Use targetm_common.have_named_sections.
4548 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4549 targetm_common.except_unwind_info.
4550 * dwarf2out.c: Include common/common-target.h.
4551 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4552 dwarf2out_begin_prologue, dwarf2out_frame_init,
4553 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4554 targetm_common.except_unwind_info.
4555 * except.c: Include common/common-target.h.
4556 (init_eh, finish_eh_generation,
4557 output_one_function_exception_table): Use
4558 targetm_common.except_unwind_info.
637c11bd 4559 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
4560 * explow.c: Include common/common-target.h.
4561 * expr.c: Include common/common-target.h.
637c11bd 4562 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
4563 * function.c: Include common/common-target.h.
4564 (expand_function_end): Use targetm_common.except_unwind_info.
4565 * haifa-sched.c: Include common/common-target.h.
637c11bd 4566 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
4567 * lto-opts.c: Include common/common-target.h instead of target.h.
4568 (lto_reissue_options): Use targetm_common.handle_option.
4569 * opts.c: Include common/common-target.h.
4570 (target_handle_option): Use targetm_common.handle_option.
4571 (init_options_struct): Update comment referring to
4572 targetm.target_option.optimization. Use
4573 targetm_common.default_target_flags,
4574 targetm_common.unwind_tables_default and
4575 targetm_common.option_init_struct.
4576 (default_options_optimization): Use
4577 targetm_common.option_optimization_table.
4578 (finish_options): Use targetm_common.except_unwind_info,
4579 targetm_common.unwind_tables_default,
4580 targetm_common.have_named_sections and
4581 targetm_common.supports_split_stack.
4582 * toplev.c: Include common/common-target.h.
4583 (process_options): Use targetm_common.have_named_sections.
4584 * tree-tailcall.c: Include common/common-target.h.
637c11bd 4585 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 4586 * tree.c: Include common/common-target.h.
637c11bd 4587 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
4588 * varasm.c: Include common/common-target.h.
4589 (resolve_unique_section, hot_function_section,
4590 default_function_section): Use targetm_common.have_named_sections.
4591
d26c7090
ER
45922011-06-14 Easwaran Raman <eraman@google.com>
4593
4594 PR rtl-optimization/44194
4595 * dse.c: Include tree-flow.h
4596 (insn_info): Add new field non_frame_wild_read.
4597 (group_info): Add new fields escaped_n and escaped_p.
4598 (kill_on_calls): New variable.
4599 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4600 (dse_step0): Initialize kill_on_calls.
4601 (can_escape): New function.
4602 (set_usage_bits): Add additional parameter; record information
4603 about escaped locations.
637c11bd 4604 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
4605 (dse_step2_nospill): Set kill_on_calls based on
4606 group->escaped_n and group->escaped_n.
4607 (add_wild_read): Refactor into...
4608 (reset_active_stores): ... New function, and
4609 (free_read_records): ... New function.
4610 (add_non_frame_wild_read): New function.
4611 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 4612 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
4613 (dse_step5_nospill): Call scan_reads_nospill for instructions
4614 marked as non_frame_wild_read.
637c11bd 4615 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 4616
c49a6962
JM
46172011-06-14 Joseph Myers <joseph@codesourcery.com>
4618
4619 * common/common-target-def.h, common/common-target.def,
4620 common/common-target.h, common/config/default-common.c,
4621 common/config/pa/pa-common.c: New files.
4622 * Makefile.in (common_out_file, common_out_object_file,
4623 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4624 (OBJS-libcommon-target): Include $(common_out_object_file).
4625 (prefix.o): Update dependencies.
4626 ($(common_out_object_file), common/common-target-hooks-def.h,
4627 s-common-target-hooks-def-h): New.
4628 (s-tm-texi): Also check timestamp on common-target.def.
4629 (build/genhooks.o): Update dependencies.
4630 * config.gcc (common_out_file, target_has_targetm_common): Define.
4631 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4632 TARGET_ALWAYS_STRIP_DOTDOT.
4633 * configure.ac (common_out_object_file): Define.
4634 (common_out_file, common_out_object_file): Substitute.
4635 (common): Create directory.
4636 * configure: Regenerate.
4637 * doc/tm.texi.in (targetm_common): Document.
4638 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4639 * doc/tm.texi: Regenerate.
4640 * genhooks.c (hook_array): Also include common/common-target.def.
4641 * prefix.c (tm.h): Don't include.
4642 (common/common-target.h): Include.
4643 (ALWAYS_STRIP_DOTDOT): Don't define.
4644 (update_path): Use targetm_common.always_strip_dotdot instead of
4645 ALWAYS_STRIP_DOTDOT.
4646 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4647
22c5fa5f
DL
46482011-06-14 David Li <davidxl@google.com>
4649
4650 * passes.c (execute_function_todo): Remove TODO_dump_func.
4651 (execute_one_pass): Remove TODO_dump_func.
4652 (execute_function_dump): New function.
4653 * tree-vrp.c: Remove TODO_dump_func.
4654 * regrename.c: Remove TODO_dump_func.
4655 * fwprop.c: Remove TODO_dump_func.
4656 * tree-into-ssa.c: Remove TODO_dump_func.
4657 * tree-complex.c: Remove TODO_dump_func.
4658 * tracer.c: Remove TODO_dump_func.
4659 * tree-loop-distribution.c: Remove TODO_dump_func.
4660 * postreload-gcse.c: Remove TODO_dump_func.
4661 * postreload.c: Remove TODO_dump_func.
4662 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4663 * tree-tailcall.c: Remove TODO_dump_func.
4664 * ipa-cp.c: Remove TODO_dump_func.
4665 * final.c: Remove TODO_dump_func.
4666 * tree-emutls.c: Remove TODO_dump_func.
4667 * omp-low.c: Remove TODO_dump_func.
4668 * tree-ssa-dse.c: Remove TODO_dump_func.
4669 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4670 * auto-inc-dec.c: Remove TODO_dump_func.
4671 * reorg.c: Remove TODO_dump_func.
4672 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4673 * tree-ssa-ccp.c: Remove TODO_dump_func.
4674 * compare-elim.c: Remove TODO_dump_func.
4675 * mode-switching.c: Remove TODO_dump_func.
4676 * modulo-sched.c: Remove TODO_dump_func.
4677 * tree-call-cdce.c: Remove TODO_dump_func.
4678 * cse.c: Remove TODO_dump_func.
4679 * web.c: Remove TODO_dump_func.
4680 * tree-stdarg.c: Remove TODO_dump_func.
4681 * lto-streamer-out.c: Remove TODO_dump_func.
4682 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4683 * tree-ssa-dom.c: Remove TODO_dump_func.
4684 * tree-nrv.c: Remove TODO_dump_func.
4685 * loop-init.c: Remove TODO_dump_func.
4686 * gimple-low.c: Remove TODO_dump_func.
4687 * ipa-inline.c: Remove TODO_dump_func.
4688 * tree-ssa-sink.c: Remove TODO_dump_func.
4689 * jump.c: Remove TODO_dump_func.
4690 * ifcvt.c: Remove TODO_dump_func.
4691 * tree-ssa-loop.c: Remove TODO_dump_func.
4692 * recog.c: Remove TODO_dump_func.
4693 * dse.c: Remove TODO_dump_func.
4694 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4695 * matrix-reorg.c: Remove TODO_dump_func.
4696 * tree-eh.c: Remove TODO_dump_func.
4697 * regmove.c: Remove TODO_dump_func.
4698 * function.c: Remove TODO_dump_func.
4699 * tree-vectorizer.c: Remove TODO_dump_func.
4700 * ipa-split.c: Remove TODO_dump_func.
4701 * gcse.c: Remove TODO_dump_func.
4702 * tree-if-conv.c: Remove TODO_dump_func.
4703 * init-regs.c: Remove TODO_dump_func.
4704 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4705 * implicit-zee.c: Remove TODO_dump_func.
4706 * lower-subreg.c: Remove TODO_dump_func.
4707 * bt-load.c: Remove TODO_dump_func.
4708 * tree-dfa.c: Remove TODO_dump_func.
4709 * except.c: Remove TODO_dump_func.
4710 * emit-rtl.c: Remove TODO_dump_func.
4711 * store-motion.c: Remove TODO_dump_func.
4712 * cfgexpand.c: Remove TODO_dump_func.
4713 * tree-cfgcleanup.c: Remove TODO_dump_func.
4714 * cfgcleanup.c: Remove TODO_dump_func.
4715 * tree-ssa-pre.c: Remove TODO_dump_func.
4716 * tree-sra.c: Remove TODO_dump_func.
4717 * tree-mudflap.c: Remove TODO_dump_func.
4718 * tree-ssa-copy.c: Remove TODO_dump_func.
4719 * cfglayout.c: Remove TODO_dump_func.
4720 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4721 * tree-ssa-dce.c: Remove TODO_dump_func.
4722 * ira.c: Remove TODO_dump_func.
4723 * tree-ssa.c: Remove TODO_dump_func.
4724 * integrate.c: Remove TODO_dump_func.
4725 * tree-optimize.c: Remove TODO_dump_func.
4726 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4727 * tree-object-size.c: Remove TODO_dump_func.
4728 * combine.c: Remove TODO_dump_func.
4729 * bb-reorder.c: Remove TODO_dump_func.
4730 * cprop.c: Remove TODO_dump_func.
4731 * var-tracking.c: Remove TODO_dump_func.
4732 * tree-profile.c: Remove TODO_dump_func.
4733 * tree-vect-generic.c: Remove TODO_dump_func.
4734 * reg-stack.c: Remove TODO_dump_func.
4735 * sched-rgn.c: Remove TODO_dump_func.
4736 * tree-ssa-structalias.c: Remove TODO_dump_func.
4737 * tree-switch-conversion.c: Remove TODO_dump_func.
4738 * tree-cfg.c: Remove TODO_dump_func.
4739 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4740 * combine-stack-adj.c: Remove TODO_dump_func.
4741 * dce.c: Remove TODO_dump_func.
4742 * tree-ssanames.c: Remove TODO_dump_func.
4743 * regcprop.c: Remove TODO_dump_func.
4744
fa465762
L
47452011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4746
4747 PR middle-end/47364
4748 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4749 and properly handle result not in Pmode.
4750
7d8d16c3
RM
47512011-06-14 Robert Millan <rmh@gnu.org>
4752
4753 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4754 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4755 `config/linux.h'.
4756
4757 * config/i386/kfreebsd-gnu64.h: New file.
4758 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4759 with `i386/kfreebsd-gnu64.h'.
4760
4761 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4762 (GNU_USER_LINK_EMULATION64): New macros.
4763 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4764 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4765 of hardcoding `elf_i386' and `elf_x86_64'.
4766
0ccef3d2
NC
47672011-06-14 Nick Clifton <nickc@redhat.com>
4768
4769 PR target/49403
4770 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4771
4772 PR target/49402
4773 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4774
8a76c4a0
JJ
47752011-06-14 Jakub Jelinek <jakub@redhat.com>
4776
1ace6185
JJ
4777 PR fortran/49103
4778 * tree.h (DECL_NONSHAREABLE): Define.
4779 (struct tree_decl_common): Change decl_common_unused to
4780 decl_nonshareable_flag.
4781 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4782 Ignore vars with DECL_NONSHAREABLE bit set.
4783 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4784 on stores to automatic aggregate vars.
4785
8a76c4a0
JJ
4786 PR rtl-optimization/49390
4787 Revert:
4788 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4789
4790 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4791 MEM_ALIAS_SET.
4792
b4a9343c
ZD
47932011-06-14 Zdenek Dvorak <ook@ucw.cz>
4794 Tom de Vries <tom@codesourcery.com>
4795
4796 PR target/45098
4797 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4798 Document changed semantics.
4799 (max_stmt_executions, max_stmt_executions_int): Declare.
4800 * tree-data-ref.c (estimated_loop_iterations)
4801 (estimated_loop_iterations_int): Move functions...
4802 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4803 (estimated_loop_iterations_int): here.
4804 (record_estimate): Change nb_iterations_upper_bound and
4805 nb_iterations_estimate semantics.
4806 (max_stmt_executions, max_stmt_executions_int): New function.
4807 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4808 (max_stmt_executions_tree): this.
4809 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4810 estimated_loop_iterations_tree.
4811 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4812 max_stmt_executions_int instead of estimated_loop_iterations_int.
4813 * predict.c (predict_loops): Idem.
4814 * tree-parloops.c (parallelize_loops): Idem.
4815 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4816 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4817 (init_omega_for_ddr_1): Idem.
4818 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4819 (loop_prefetch_arrays): Idem
4820 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4821 max_stmt_executions instead of estimated_loop_iterations.
4822 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4823 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4824 instead of nb_iterations_upper_bound.
4825
d2640c43
JH
48262011-06-13 Jan Hubicka <jh@suse.cz>
4827
4828 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4829
40873cdd
RH
48302011-06-14 Richard Henderson <rth@redhat.com>
4831
4832 PR debug/48459
4833 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4834 (based_loc_descr): Assert it's true.
4835 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4836 aborting immediately.
4837
73e8cb24
SL
48382011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4839 Mingfeng Wu <mingfeng@faraday-tech.com>
4840
4841 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4842
f835f0a7
JH
48432011-06-13 Jan Hubicka <jh@suse.cz>
4844
4845 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4846
ee6f1177
JH
48472011-06-13 Jan Hubicka <jh@suse.cz>
4848
4849 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4850 similarly to DECL_COMDAT.
4851 * cgraphunit.c (cgraph_analyze_function): Likewise.
4852 * ipa.c (function_and_variable_visibility): Likewise.
4853
618abf9a
JH
48542011-06-13 Jan Hubicka <jh@suse.cz>
4855
4856 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4857 BINFO_VIRTUALS when streaming for ltrans unit.
4858
a45fe02f
DE
48592011-06-13 David Edelsohn <dje.gcc@gmail.com>
4860
4861 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4862 (movdi_internal64): Same.
4863
48642011-06-13 Edmar Wienskoski <edmar@freescale.com>
4865
e641e495 4866 PR target/44618
7d8d16c3
RM
4867 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4868 a set of similar patterns, where the MATCH_OPERAND for the function
4869 argument is replaced with individual references to hardware registers.
a45fe02f
DE
4870 (save_fpregs_<mode>): Ditto
4871 (restore_gpregs_<mode>): Ditto
4872 (return_and_restore_gpregs_<mode>): Ditto
4873 (return_and_restore_fpregs_<mode>): Ditto
4874 (return_and_restore_fpregs_aix_<mode>): Ditto
4875
8775a18b
JH
48762011-06-13 Jan Hubicka <jh@suse.cz>
4877
4878 * ipa-utils.c (postorder_stack): New structure.
4879 (ipa_reverse_postorder): Handle aliases.
4880
48812011-06-13 Jan Hubicka <jh@suse.cz>
4882
4883 * ipa-inline.c (reset_edge_caches): Walk aliases.
4884 (update_caller_keys): Do not test inlinability of aliases.
4885 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4886 (do_estimate_growth): Fix typo.
4887
6c69a029
JH
48882011-06-13 Jan Hubicka <jh@suse.cz>
4889
4890 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4891 (can_remove_node_now_p): ... here; handle same comdat groups.
4892 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4893 (inline_call): Update use of can_remove_node_now_p.
4894
10c63ba4 48952011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 4896
10c63ba4 4897 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
4898 condition to disallow non-identical memory locations.
4899 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4900 preference to bit manipulation instructions.
495f8c14 4901
9aa3f5c5
JH
49022011-06-13 Jan Hubicka <jh@suse.cz>
4903
4904 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4905 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4906 (nonremovable_p): New function.
4907 (cgraph_can_remove_if_no_direct_calls_p): New function.
4908 (used_from_object_file_p): New functoin.
10c63ba4
EB
4909 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4910 references from aliases.
9aa3f5c5
JH
4911 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4912 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
4913 (want_inline_function_called_once_p): Use it; accept aliases called
4914 once, too.
9aa3f5c5
JH
4915 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4916
30cecf17
RR
49172011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4918
4919 PR target/48454
4920 * config/arm/neon.md (vec_pack_trunc): Set the lengths
4921 correctly for the case with Quad vectors.
4922
29f85237
JJ
49232011-06-13 Jakub Jelinek <jakub@redhat.com>
4924 Ira Rosen <ira.rosen@linaro.org>
4925
4926 PR tree-optimization/49352
4927 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4928 all, make sure loop_use_stmt after the loop is a def stmt of a used
4929 SSA_NAME that is the only one defined inside of the loop. Don't
4930 check for COND_EXPR and GIMPLE_BINARY_RHS.
4931 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4932 check_reduction is true.
4933
c3e3f090
JH
49342011-06-11 Jan Hubicka <jh@suse.cz>
4935
4936 PR middle-end/49373
4937 * ipa.c (cgraph_externally_visible_p): Check resolution info.
4938
516e0768
JH
49392011-06-11 Jan Hubicka <jh@suse.cz>
4940
4941 PR middle-end/48836
4942 * ipa-inline-transform.c: Include tree-pass.h
4943 (inline_transform): Set TODO_update_ssa_only_virtuals.
4944 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4945
903b0a8b
JH
49462011-06-11 Jan Hubicka <jh@suse.cz>
4947
4948 PR middle-end/49378
4949 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4950 aliases and thunks.
4951
44542f8e
IR
49522011-06-12 Ira Rosen <ira.rosen@linaro.org>
4953
4954 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4955 Take number of iterations to peel into account for equally frequent
4956 misalignment values.
4957
ea89702b
JH
49582011-06-11 Jan Hubicka <jh@suse.cz>
4959
637c11bd
UB
4960 * lto-streamer-out.c (produce_symtab): Stream out the newly
4961 represented aliases.
ea89702b 4962
380ed5ed
JH
49632011-06-11 Jan Hubicka <jh@suse.cz>
4964
637c11bd
UB
4965 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4966 varying args.
380ed5ed
JH
4967 (ipa_update_after_lto_read): Likewise.
4968 (ipa_write_node_info): Do not sream call_with_var_arguments.
4969 (ipa_read_node_info): Likewise.
4970
00cfc363
JH
49712011-06-11 Jan Hubicka <jh@suse.cz>
4972
4973 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4974
39e2db00
JH
49752011-06-11 Jan Hubicka <jh@suse.cz>
4976
4977 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4978 (lto_symtab_resolve_can_prevail_p): Likewise.
4979 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4980 * cgraph.c (same_body_aliases_done): New global var.
4981 (cgraph_same_body_alias_1): Rename to ...
4982 (cgraph_create_function_alias): ... this one; reorg to new
4983 representation.
4984 (cgraph_same_body_alias): Use cgraph_create_function_alias;
4985 record references when asked to.
4986 (cgraph_add_thunk): Fix formating.
4987 (cgraph_get_node): Kill same body alias code.
4988 (cgraph_node_for_asm): Likewise.
4989 (cgraph_remove_same_body_alias): Remove.
4990 (cgraph_remove_node): Kill same body alias code.
4991 (cgraph_mark_address_taken_node): Mark also the aliased function
4992 as having address taken.
4993 (dump_cgraph_node): Dump same body aliases.
4994 (cgraph_for_node_thunks_and_aliases): Update for new alias
4995 representation.
4996 (cgraph_for_node_and_aliases): Likewise.
4997 * cgraph.h (same_body): Kll pointer.
4998 (same_body_alias): Update comment.
4999 (same_body_aliases_done): Declare.
5000 (cgraph_remove_same_body_alias): Remove declaration.
5001 (cgraph_create_function_alias): Declare.
5002 (cgraph_process_same_body_aliases): Declare.
5003 (cgraph_function_with_gimple_body_p): Check for alias.
5004 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
5005 (cgraph_alias_aliased_node): New function.
5006 (cgraph_function_node): Update for new aliases.
5007 (cgraph_function_or_thunk_node): Likewise.
5008 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
5009 (inline_call): Remove dead aliases.
10c63ba4
EB
5010 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
5011 name hack for same body aliases.
39e2db00
JH
5012 (clone_of_p): Look through aliases.
5013 (verify_cgraph_node): Verify aliases.
5014 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
5015 (cgraph_process_same_body_aliases): New function.
5016 (process_function_and_variable_attributes): Disable weakref warning on
5017 alias.
5018 (cgraph_analyze_functions): Handle aliases.
5019 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
5020 (assemble_thunks): Rename to ...
5021 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
5022 (cgraph_expand_function): Remove alias output code.
5023 (cgraph_output_in_order): Skip aliases.
5024 (cgraph_preserve_function_body_p): Aliases don't need preserving.
5025 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
5026 (ipa_record_reference): Do not assert on alias references.
5027 (ipa_ref_has_aliases_p): New function.
5028 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
5029 (ipa_ref_has_aliases_p): Declare.
5030 * lto-cgraph.c (lto_output_node): Handle aliases.
5031 (input_node): Likewise.
5032 * lto-streamer-out.c (lto_output): Skip aliases.
5033 (produce_symtab): Kill same_body_alias code.
5034 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
5035 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
5036 * ipa-inline.c (update_caller_keys): Walk aliases.
5037 (inline_small_functions): Fix thinko in previous patch.
5038 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
5039 (function_and_variable_visibility): Do not walk same body aliases.
5040 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
5041 (ipa_pta_execute): Use it.
5042
9ee65b55
UB
50432011-06-11 Uros Bizjak <ubizjak@gmail.com>
5044
5045 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
5046 (*vec_dupv2df): Rename from vec_dupv2df.
5047 (vec_dupv2df): New expander.
5048
50492011-06-11 Uros Bizjak <ubizjak@gmail.com>
5050
5051 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
5052
50532011-06-11 Uros Bizjak <ubizjak@gmail.com>
5054
5055 * config/i386/i386.md: Use default value in "isa" attribute.
5056 * config/i386/sse.md: Ditto.
5057 * config/i386/mmx.md: Ditto.
5058
ba68a139
WG
50592011-06-10 Wei Guozhi <carrot@google.com>
5060
5061 PR target/45335
5062 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
5063 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
5064 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
5065 related peephole2.
5066 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
5067 related peephole2.
5068 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
5069 (arm_legitimate_ldrd_p): New prototype.
5070 (arm_output_ldrd): New prototype.
5071 * config/arm/arm.c (arm_check_ldrd_operands): New function.
5072 (arm_legitimate_ldrd_p): New function.
5073 (arm_output_ldrd): New function.
5074
deced1e2
XDL
50752011-06-10 David Li <davidxl@google.com>
5076
5077 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5078 * passes.c (passr_eq): New function.
5079 (create_pass_tab): New function.
5080 (pass_traverse): New function.
5081 (dump_one_pass): New function.
5082 (dump_pass_list): New function.
5083 (dump_passes): New function.
5084
71fb4f92
JH
50852011-06-10 Jan Hubicka <jh@suse.cz>
5086
5087 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
5088 setting the nothrow flag.
5089 * ipa-reference.c (propagate): Skip aliases.
5090 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
5091 (propagate_nothrow): Skip aliases; do not update cgraph.
5092 (local_pure_const): Do not update cgraph.
5093 * tree-profile.c (tree_profiling): Do fixup_cfg.
5094
41817394
JH
50952011-06-10 Jan Hubicka <jh@suse.cz>
5096
5097 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
5098 (cgraph_local_node_p): ... here; handle aliases.
5099 (has_addr_references_p): Break out from ...;
5100 (cgraph_remove_unreachable_nodes) ... here.
5101
fb37c1de
JH
51022011-06-10 Jan Hubicka <jh@suse.cz>
5103
5104 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
5105 * common.opt (flag_inline_functions_called_once): Do not
5106 initialize to 1.
fb37c1de 5107
0818c24c
JH
51082011-06-10 Jan Hubicka <jh@suse.cz>
5109
5110 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
5111 (ipcp_initialize_node_lattices): Do not deal with aliases;
5112 Do not try to propagate through thunks.
0818c24c
JH
5113 (ipcp_change_tops_to_bottom): Do not deal with aliases.
5114
c8246dbe
JH
51152011-06-10 Jan Hubicka <jh@suse.cz>
5116
9ee65b55
UB
5117 * ipa-prop.c (ipa_write_node_info): Stream jump functions
5118 for indirect calls.
c8246dbe
JH
5119 (ipa_read_node_info): Likewise.
5120
d7e2a1c1
BS
51212011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5122
5123 PR lto/49302
5124 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
5125 (build_and_insert_call): Likewise.
5126 (build_and_insert_ref): New.
5127 (gimple_expand_builtin_pow): Minor cleanup.
5128 (gimple_expand_builtin_cabs): New.
5129 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 5130
749f25d8
JH
51312011-06-10 Jan Hubicka <jh@suse.cz>
5132
5133 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
5134 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
5135 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
5136 (ipcp_propagate_stage): Skip aliases when propagating.
5137 (ipcp_need_redirect_p): Skip aliases.
5138 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
5139 collect_callers_of_node.
5140 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
5141 for aliases.
5142 (ipa_compute_jump_functions): Look through aliases.
5143
8340fbd7
RO
51442011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5145
5146 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
5147
9aaa7e47
HPN
51482011-06-10 Hans-Peter Nilsson <hp@axis.com>
5149
5150 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
5151 Adjust comments.
5152 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
5153
f1724940
JH
51542011-06-10 Jan Hubicka <jh@suse.cz>
5155
5156 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
5157 Update call of gimple_get_virt_method_for_binfo.
5158 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
5159 refuse_thunks parameter.
5160 (gimple_fold_call): Update.
5161 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5162
a6f834c5
JH
51632011-06-10 Jan Hubicka <jh@suse.cz>
5164
5165 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5166 (not_all_callers_have_enough_arguments_p): ... this one; turn into
5167 worker for cgraph_for_node_and_aliases.
5168 (convert_callers_for_node): Break out from ...
5169 (convert_callers): ... here.
5170 (modify_function): Use collect_callers_of_node.
5171 (ipa_early_sra): Use cgraph_for_node_and_aliases.
5172
7871eee3
RG
51732011-06-10 Richard Guenther <rguenther@suse.de>
5174
5175 PR tree-optimization/49361
5176 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5177 when not already in gimple form.
5178
dae957ae
RG
51792011-06-10 Richard Guenther <rguenther@suse.de>
5180
5181 PR bootstrap/49344
5182 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5183 FOR_EACH_PHI_OR_STMT_USE.
5184
a5b1779f
JH
51852011-06-10 Jan Hubicka <jh@suse.cz>
5186
5187 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5188 (clone_inlined_nodes): ... here.
5189 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5190 to real destination prior inlining.
5191 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5192 can_early_inline_edge_p, want_early_inline_function_p,
5193 want_early_inline_function_p, want_inline_small_function_p,
5194 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5195 edge_badness, update_all_callee_keys, lookup_recursive_calls,
5196 add_new_edges_to_heap, inline_small_functions, flatten_function,
5197 inline_always_inline_functions, early_inline_small_functions): Use
5198 cgraph_function_or_thunk_node.
5199 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5200 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5201 (do_estimate_edge_growth_1): Break out from ...
5202 (do_estimate_growth) ... here; walk aliases.
5203 (inline_generate_summary): Skip aliases.
5204
c1ae3ca5
RG
52052011-06-10 Richard Guenther <rguenther@suse.de>
5206
9ee65b55
UB
5207 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5208 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 5209
b504a918
PC
52102011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
5211
5212 * tree.h (error_operand_p): Add.
5213 * dbxout.c (dbxout_type_fields): Use the latter.
5214 * c-decl.c (add_stmt): Likewise.
5215 * gimplify.c (omp_add_variable, omp_notice_variable,
5216 gimplify_scan_omp_clauses): Likewise.
5217
3f5ea9dc 52182011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 5219
3f5ea9dc
GJL
5220 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5221 when a value is actually passed in regs.
5222
b11b0904 52232011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 5224 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
5225
5226 * doc/invoke.texi (SPARC options): Add -mflat.
5227 * config/sparc/sparc.opt: Likewise.
5228 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5229 (sparc_flat_expand_prologue): Declare.
5230 (sparc_flat_expand_epilogue): Likewise.
5231 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5232 (CPP_ENDIAN_SPEC): Replace with...
5233 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
5234 (CPP_SPEC): Adjust to above change.
5235 (EXTRA_SPECS): Likewise.
5236 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5237 (INCOMING_REGNO): Likewise.
5238 (OUTGOING_REGNO): Likewise.
5239 (LOCAL_REGNO): Likewise.
5240 (SETUP_FRAME_ADDRESSES): Likewise.
5241 (FIXED_REGISTERS): Set 0 for %fp.
5242 (CALL_USED_REGISTERS): Likewise.
5243 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5244 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5245 (RETURN_ADDR_REGNUM): Define.
5246 (RETURN_ADDR_RTX): Use it.
5247 (INCOMING_RETURN_ADDR_REGNUM): Define.
5248 (INCOMING_RETURN_ADDR_RTX): Use it.
5249 (DWARF_FRAME_RETURN_COLUMN): Likewise.
5250 (EH_RETURN_REGNUM): Define.
5251 (EH_RETURN_STACKADJ_RTX): Use it.
5252 (EH_RETURN_HANDLER_RTX): Delete.
5253 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5254 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5255 Delete.
5256 (struct machine_function): Add frame_size, apparent_frame_size,
5257 frame_base_reg, frame_base_offset, n_global_fp_regs and
5258 save_local_in_regs_p fields.
5259 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5260 sparc_frame_base_offset, sparc_n_global_fp_regs,
5261 sparc_save_local_in_regs_p): New macros.
5262 (sparc_option_override): Error out if -fcall-saved-REG is specified
5263 for Out registers.
5264 (eligible_for_restore_insn): Fix formatting.
5265 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5266 (eligible_for_sibcall_delay): Likewise.
5267 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5268 (sparc_legitimate_address_p): Adjust to above change.
5269 (save_global_or_fp_reg_p): New predicate.
5270 (return_addr_reg_needed_p): Likewise.
5271 (save_local_or_in_reg_p): Likewise.
5272 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5273 (SORR_SAVE, SORR_RESTORE): Delete.
5274 (sorr_pred_t): New typedef.
5275 (sorr_act_t): New enum.
5276 (save_or_restore_regs): Rename to...
5277 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5278 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5279 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5280 mechanism. Add CFI information for double-word saves in 32-bit mode.
5281 (emit_adjust_base_to_offset): New function extracted from...
5282 (emit_save_or_restore_regs): ...this. Rename the rest to...
5283 (emit_save_or_restore_regs_global_fp_regs): ...this.
5284 (emit_save_or_restore_regs_local_in_regs): New function.
5285 (gen_create_flat_frame_[123]): New functions.
5286 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5287 (sparc_flat_expand_prologue): New function.
5288 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5289 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5290 (sparc_flat_expand_epilogue): New function.
5291 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5292 (output_return): Likewise.
5293 (output_sibcall): Likewise.
5294 (sparc_output_mi_thunk): Likewise.
5295 (sparc_frame_pointer_required): Likewise.
5296 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5297 function optimization.
5298 * config/sparc/sparc.md (flat): New attribute.
5299 (prologue): Add TARGET_FLAT handling.
5300 (save_register_window): Disable if TARGET_FLAT.
5301 (create_flat_frame_[123]): New patterns.
5302 (epilogue): Add TARGET_FLAT handling.
5303 (sibcall_epilogue): Likewise.
5304 (eh_return): New expander.
5305 (eh_return_internal): New insn and splitter.
5306 (return_internal): Add TARGET_FLAT handling.
5307 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5308 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5309 (nonlocal_goto): Add TARGET_FLAT handling.
5310 * config/sparc/t-elf: Add -mflat multilib.
5311 * config/sparc/t-leon: Likewise.
5312
fede8efa
JH
53132011-06-10 Jan Hubicka <jh@suse.cz>
5314
5315 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5316 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5317 (self_recursive_p): Use cgraph_function_node.
5318 (propagate_pure_const): Likewise.
5319 (propagate_nothrow): Likewise.
5320 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5321 cgraph_function_node.
5322 (propagate_bits): Likewise.
5323 (propagate): Likewise.
5324
0127c76f
RR
53252011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5326 Richard Earnshaw <rearnsha@arm.com>
5327
9ee65b55 5328 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
5329 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5330 (*thumb2_movdi_vfp): Delete.
5331 (*arm_movdi_vfp_cortexa8): Delete.
5332 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5333 (*movdi_vfp_cortexa8): Likewise.
5334
f93fe5a0
RG
53352011-06-10 Richard Guenther <rguenther@suse.de>
5336
5337 * stor-layout.c (initialize_sizetypes): Give names to all
5338 sizetype kinds.
5339
f2164f87
IR
53402011-06-10 Ira Rosen <ira.rosen@linaro.org>
5341
5342 PR tree-optimization/49318
5343 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5344 irrelevant pattern statements.
5345
3f91c962
HPN
53462011-06-10 Hans-Peter Nilsson <hp@axis.com>
5347
3d223145
HPN
5348 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5349
3f91c962
HPN
5350 PR bootstrap/49354
5351 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5352 to last assignment.
5353
b125ad45
JH
53542011-06-09 Jan Hubicka <jh@suse.cz>
5355
5356 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5357 do not recompute reachable flag.
5358 (cgraph_finalize_function, cgraph_analyze_functions): Set
5359 redefined_extern_inline here.
5360
be330ed4
JH
53612011-06-09 Jan Hubicka <jh@suse.cz>
5362
5363 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5364 (cgraph_only_called_directly_p): ... this one; bring offline.
5365 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5366 varpool_used_from_object_file_p): Drop names from the declaratoin.
5367 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5368 collect_callers_of_node): New.
5369 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5370 (cgraph_edge_recursive_p): Use cgraph_function_node.
5371 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5372 (cgraph_node_cannot_be_local_p_1): Break out from ...
5373 (cgraph_node_can_be_local_p): ... here; walk aliases.
5374 (cgraph_for_node_thunks_and_aliases): New function.
5375 (cgraph_for_node_and_aliases): New function.
5376 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
5377 (cgraph_make_node_local) ... here; use
5378 cgraph_for_node_thunks_and_aliases.
be330ed4 5379 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
5380 (cgraph_set_nothrow_flag) ... here;
5381 use cgraph_for_node_thunks_and_aliases.
be330ed4 5382 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
5383 (cgraph_set_const_flag) ... here;
5384 use cgraph_for_node_thunks_and_aliases.
be330ed4 5385 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
5386 (cgraph_set_pure_flag) ... here;
5387 use cgraph_for_node_thunks_and_aliases.
be330ed4 5388 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
5389 (cgraph_propagate_frequency) ... here; use
5390 cgraph_for_node_thunks_and_aliases.
be330ed4 5391 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
5392 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5393 New functions.
be330ed4
JH
5394 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5395
2ea91d6b
HPN
53962011-06-10 Hans-Peter Nilsson <hp@axis.com>
5397
5398 PR rtl-optimization/49154
5399 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5400 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5401 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5402 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5403 * config/cris/cris.h (cris_register_move_cost): Remove
5404 !TARGET_V32 code. Tweak comments.
5405
9cf4fb5a
JH
54062011-06-09 Jan Hubicka <jh@suse.cz>
5407
5408 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5409 address taken.
5410
6049a4c8
HPN
54112011-06-10 Hans-Peter Nilsson <hp@axis.com>
5412
c577822e 5413 PR rtl-optimization/49154
9ee65b55
UB
5414 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5415 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 5416
54e1e4f7 5417 PR rtl-optimization/49154
6049a4c8
HPN
5418 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5419 register classes.
5420 * doc/tm.texi: Regenerate.
5421
3be68b64
KK
54222011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5423
5424 PR target/49307
5425 * config/sh/sh.md (UNSPEC_CHKADD): New.
5426 (chk_guard_add): New define_insn_and_split.
5427 (symGOT_load): Use chk_guard_add instead of blockage.
5428
bf806a90
KT
54292011-06-09 Kai Tietz <ktietz@redhat.com>
5430
5431 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5432
d5a9738b
EB
54332011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5434
5435 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5436
527e82c2
WG
54372011-06-09 Wei Guozhi <carrot@google.com>
5438
5439 PR target/46975
5440 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5441 (peephole2 for conditional move): Generate 16 bit instructions.
5442
b8bc3a43
UB
54432011-06-09 Uros Bizjak <ubizjak@gmail.com>
5444
5445 * config/i386/i386.md (*movdi_internal_rex64): Merge
5446 alternatives 6 and 8.
5447
4745da6e
DL
54482011-06-09 David Li <davidxl@google.com>
5449
5450 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5451 * passes.c (passr_eq): New function.
5452 (create_pass_tab): New function.
5453 (pass_traverse): New function.
5454 (dump_one_pass): New function.
5455 (dump_pass_list): New function.
5456 (dump_passes): New function.
5457
bdf67bcb
DL
54582011-06-09 David Li <davidxl@google.com>
5459
5460 * tree-complex.c (tree_lower_complex): Gate cleanup.
5461 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5462 (execute_optimize_stdarg): Ditto.
5463 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5464 (execute_cleanup_eh_1): Ditto.
5465 (execute_cleanup_eh): Ditto.
5466 * gcse.c (gate_rtl_pre): Ditto.
5467 (execute_rtl_pre): Ditto.
5468 * except.c (finish_eh_generation): Ditto.
5469 (convert_to_eh_region_ranges): Ditto.
5470 * cprop.c (one_cprop_pass): Ditto.
5471
547fdef8
BS
54722011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5473
5474 PR target/48673
5475 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5476 in all basic blocks.
5477
10e48e39
RO
54782011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5479
5480 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5481 (HAVE_ENABLE_EXECUTE_STACK): Define.
5482 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5483 (HAVE_ENABLE_EXECUTE_STACK): Define.
5484 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5485 (HAVE_ENABLE_EXECUTE_STACK): Define.
5486 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5487 (ENABLE_EXECUTE_STACK): Remove.
5488 (HAVE_ENABLE_EXECUTE_STACK): Define.
5489 [IN_LIBGCC2]: Don't include <windows.h>.
5490 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5491 (HAVE_ENABLE_EXECUTE_STACK): Define.
5492 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5493 (HAVE_ENABLE_EXECUTE_STACK): Define.
5494 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5495 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5496 (HAVE_ENABLE_EXECUTE_STACK): Define.
5497 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5498 (HAVE_ENABLE_EXECUTE_STACK): Define.
5499 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5500 (HAVE_ENABLE_EXECUTE_STACK): Define.
5501 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5502 (HAVE_ENABLE_EXECUTE_STACK): Define.
5503 * config/alpha/alpha.c (alpha_trampoline_init): Test
5504 HAVE_ENABLE_EXECUTE_STACK.
5505 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5506 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5507 (sparc64_initialize_trampoline): Likewise.
5508 * libgcc2.c [L_enable_execute_stack]: Remove.
5509 * system.h (ENABLE_EXECUTE_STACK): Poison.
5510 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5511 * doc/tm.texi: Regenerate.
5512 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5513
8ced31fe
JJ
55142011-06-09 Jakub Jelinek <jakub@redhat.com>
5515
5516 PR middle-end/49308
5517 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5518 variable. After resetting and rescanning insn continue with previous
5519 statement.
5520
ee610fcd
RO
55212011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5522
5523 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5524 (gcc_cv_ld_hidden): Likewise.
5525 * configure: Regenerate.
5526 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5527 (ix86_stack_protect_fail): Mark unused.
5528 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5529 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5530 [TARGET_MACHO]: Don't define.
5531 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5532 (TARGET_STACK_PROTECT_FAIL): Likewise.
5533 (rs6000_stack_protect_fail): Mark unused.
5534 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 5535 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 5536
8f2e22ff
AK
55372011-06-08 Andi Kleen <ak@linux.intel.com>
5538
5539 * varasm.c (get_section): Print location of other conflict
5540 for section conflicts.
5541
815cecbe
AK
55422011-06-08 Andi Kleen <ak@linux.intel.com>
5543
5544 * config/i386/driver-i386.c (host_detect_local_cpu):
5545 Add model 0x2d Intel CPU.
5546
1460ec5c
AK
55472011-06-08 Andi Kleen <ak@linux.intel.com>
5548
5549 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
5550 (globalize_reg): Add decl parameter. Compute location. Pass location
5551 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
5552 * rtl.h (globalize_reg): Update prototype.
5553 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5554
df17530a
MX
55552011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5556
5557 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5558
409fed48
KK
55592011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5560
5561 PR target/49305
5562 * config/sh/predicates.md (general_movsrc_operand): Check
5563 mode for memory with indexed address for QI and HImode.
5564 (general_movdst_operand): Likewise.
5565
87c16a45
NP
55662011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5567
b8bc3a43 5568 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 5569
49931fcb
AO
55702011-06-08 Alexandre Oliva <aoliva@redhat.com>
5571
5572 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5573 (num_ssa_operands): Likewise.
5574 (op_iter_init_phiuse): Forward-declare.
5575 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5576
29494d1f
NC
55772011-06-08 Nick Clifton <nickc@redhat.com>
5578
5579 * doc/invoke.texi (ARM Options): Update description of
5580 -mthumb-interwork.
5581
4ffae7ff
L
55822011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5583
5584 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5585 unknown Intel family 0x6 CPUs.
5586
d9c77712
MJ
55872011-06-08 Martin Jambor <mjambor@suse.cz>
5588
5589 * tree-sra.c (mark_rw_status): Removed.
5590 (analyze_access_subtree): New parameter parent instead of
5591 mark_read and mark_write, propagate from that.
5592
b1def36c
JB
55932011-06-08 Julian Brown <julian@codesourcery.com>
5594
5595 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5596 for double-precision helper functions in hard-float mode if only
5597 single-precision arithmetic is supported in hardware.
5598
6c8e9fc9
AM
55992011-06-08 Alexander Monakov <amonakov@ispras.ru>
5600
5601 PR rtl-optimization/49303
5602 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5603 code_motion_path_driver returned 0 or 1.
5604 (sel_region_finish): Clear h_d_i_d.
5605
c2bbcb0d
KK
56062011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5607
5608 * config/sh/sh.c (prepare_move_operands): Set pic register
5609 appropriately for global and local dynamic tls models even
5610 if flag_pic is unset.
5611
6976ae51
JM
56122011-06-07 Jason Merrill <jason@redhat.com>
5613
5614 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5615
bb5b1f5e
XDL
56162011-06-07 Xinliang David Li <davidxl@google.com>
5617 * passes.c (enable_disable_pass): Handle assembler name.
5618 (is_pass_explicitly_enabled_or_disabled): Ditto.
5619
91ffe356
RO
56202011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5621
5622 PR tree-optimization/48497
5623 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5624
06bc3ec7
BS
56252011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5626
5627 PR tree-optimization/46728
5628 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5629 to use gimple_val_nonnegative_real_p.
5630 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5631 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 5632
c074d740
L
56332011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5634
5635 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5636
8973b112
SG
56372011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5638
5639 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5640 constant vectors.
5641
67b88453
RG
56422011-06-07 Richard Guenther <rguenther@suse.de>
5643
5644 * stor-layout.c (initialize_sizetypes): Initialize all
5645 sizetypes based on target definitions.
5646 (set_sizetype): Remove.
5647 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5648 * tree.h (set_sizetype): Remove.
5649
1dcad079
NC
56502011-06-07 Nick Clifton <nickc@redhat.com>
5651
5652 * config.gcc: Unify V850 architecture options and add support for
5653 newer V850 architectures.
5654 * config/v850/t-v850e: Delete.
5655
009db074
RG
56562011-06-07 Richard Guenther <rguenther@suse.de>
5657
5658 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5659 Call set_sizetype from here.
5660
f373314f
AS
56612011-06-07 Andrew Stubbs <ams@codesourcery.com>
5662
5663 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5664 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5665
c536876e
AS
56662011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5667 Andrew Stubbs <ams@codesourcery.com>
5668
5669 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5670 multiplies.
5671 * doc/md.texi (Canonicalization of Instructions): Document widening
5672 multiply canonicalization.
5673
308dc890
JJ
56742011-06-07 Jakub Jelinek <jakub@redhat.com>
5675
5676 PR gcov-profile/49299
b8bc3a43 5677 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 5678
383d9c83
IR
56792011-06-07 Ira Rosen <ira.rosen@linaro.org>
5680
5681 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5682 a pointer.
5683 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5684 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5685 vect_recog_pow_pattern): Likewise.
5686 (vect_pattern_recog_1): Remove declaration.
5687 (widened_name_p): Remove declaration. Add new argument to specify
5688 whether to check that both types are either signed or unsigned.
5689 (vect_recog_widen_mult_pattern): Update documentation. Handle
5690 unsigned patterns and multiplication by constants.
5691 (vect_pattern_recog_1): Update vect_recog_func references. Use
5692 statement information from the statement returned from pattern
5693 detection functions.
5694 (vect_pattern_recog): Update vect_recog_func reference.
5695 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5696 multiplication by a constant use the type of the other operand.
5697
4de4b0f2
RS
56982011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5699
5700 PR rtl-optimization/49145
5701 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5702
a9d24544
JJ
57032011-06-06 Jakub Jelinek <jakub@redhat.com>
5704
99a5e049
JJ
5705 PR debug/49262
5706 * dwarf2out.c (native_encode_initializer): Decrement count in each
5707 iteration.
5708
04902d4c
JJ
5709 PR debug/49294
5710 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5711 non-MODE_INT modes.
5712
a9d24544
JJ
5713 PR c++/49264
5714 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5715 if stmt folded into nothing.
b8bc3a43
UB
5716 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5717 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
5718 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5719 to be NULL. Don't compute count and frequency if new_call is NULL.
5720
47c79d56
DN
57212011-06-04 Diego Novillo <dnovillo@google.com>
5722
5723 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5724 (cgraph.o): Likewise.
5725 (cgraphunit.o): Likewise.
5726 * cgraphunit.c: Include lto-streamer.h
5727 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5728 if LTO is enabled.
5729 * lto-streamer-in.c (unpack_value_fields): Call
5730 streamer_hooks.unpack_value_fields if set.
5731 (lto_materialize_tree): For unhandled nodes, first try to
5732 call lto_streamer_hooks.alloc_tree, if it exists.
5733 (lto_input_ts_decl_common_tree_pointers): Move reading of
5734 DECL_INITIAL to lto_streamer_read_tree.
5735 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5736 (lto_streamer_read_tree): New.
5737 (lto_reader_init): Rename from lto_init_reader.
5738 Move initialization code to lto/lto.c.
5739 * lto-streamer-out.c (pack_value_fields): Call
5740 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
5741 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5742 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 5743 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
5744 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5745 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5746 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5747 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
5748 (lto_streamer_write_tree): New.
5749 (lto_output): Call lto_streamer_init directly.
5750 (lto_writer_init): Remove.
5751 * lto-streamer.c (streamer_hooks): New.
5752 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5753 instead of lto_preload_common_nodes.
5754 (lto_is_streamable): Move from lto-streamer.h
5755 (lto_streamer_hooks_init): New.
5756 (streamer_hooks): New.
5757 (streamer_hooks_init): New.
5758 * lto-streamer.h (struct output_block): Forward declare.
5759 (struct lto_input_block): Likewise.
5760 (struct data_in): Likewise.
5761 (struct bitpack_d): Likewise.
5762 (struct streamer_hooks): Declare.
5763 (streamer_hooks): Declare.
5764 (lto_streamer_hooks_init): Declare.
5765 (lto_streamer_write_tree): Declare.
5766 (lto_streamer_read_tree): Declare.
5767 (streamer_hooks_init): Declare.
5768 (lto_is_streamable): Move to lto-streamer.c
5769
22afe143
AK
57702011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5771
5772 * longlong.h (smul_ppmm): The resulting register pair contains the
5773 higher order word first.
5774
3906ea1b
BS
57752011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5776
5777 PR tree-optimization/46728
5778 * builtins.c (powi_table): Remove.
5779 (powi_lookup_cost): Remove.
5780 (powi_cost): Remove.
5781 (expand_powi_1): Remove.
5782 (expand_powi): Remove.
5783 (expand_builtin_pow_root): Remove.
5784 (expand_builtin_pow): Remove.
5785 (expand_builtin_powi): Eliminate handling of constant exponent.
5786 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 5787
3598cabd
AO
57882011-06-06 Alexandre Oliva <aoliva@redhat.com>
5789
5790 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5791
a7a110bb
AO
57922011-06-06 Alexandre Oliva <aoliva@redhat.com>
5793
5794 * dce.c (reset_unmarked_insns_debug_uses): New.
5795 (delete_unmarked_insns): Skip debug insns.
5796 (prescan_insns_for_dce): Likewise.
5797 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5798 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5799 active reg can be found.
5800 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5801 (convert_regs_1): Use it.
5802
6d8402ac
AO
58032011-06-06 Alexandre Oliva <aoliva@redhat.com>
5804
5805 * tree-pretty-print.c (dump_function_header): Add flags.
5806 Don't dump decl_uid with nouid.
5807 * tree-pretty-print.h (dump_function_header): Adjust.
5808 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5809 * passes.c (pass_init_dump_file): Pass dump_flags on.
5810 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5811
f75e1f1e
AO
58122011-06-06 Alexandre Oliva <aoliva@redhat.com>
5813
5814 PR bootstrap/49270
5815 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5816
275311c4
MP
58172011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5818
5819 PR tree-optimization/49243
5820 * calls.c (setjmp_call_p): Also check if fndecl has the
5821 returns_twice attribute.
5822
aa4203e7
RO
58232011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5824
5825 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5826 -ffast-math etc.
5827
48f9d59a
RH
58282011-06-06 Richard Henderson <rth@redhat.com>
5829 Georg-Johann Lay <avr@gjlay.de>
5830
5831 PR target/42210
5832 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5833 New predicates.
5834 * config/avr/avr.md ("insv"): New insn expander.
5835 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5836 "*insv.not.io", "*insv.reg"): New insns.
5837
11494830
HPN
58382011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5839
5840 PR target/49285
b8bc3a43
UB
5841 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5842 to nonimmediate_operand from memory_operand for the operand that is to
5843 be forced to memory by the expander. Lose the constraints.
11494830 5844
679e70df
EB
58452011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5846
5847 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5848 EH return when delayed branches are disabled.
5849
4d3d7f15
UB
58502011-06-05 Uros Bizjak <ubizjak@gmail.com>
5851
5852 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5853 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5854 calculation.
5855 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5856 Simplify MODE_V1DF and MODE_V2SF handling.
5857 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5858 Simplify MODE_SF handling.
5859
a45c0557
JH
58602011-06-04 Jan Hubicka <jh@suse.cz>
5861
5862 PR tree-optimization/48893
5863 PR tree-optimization/49091
5864 PR tree-optimization/49179
5865 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5866 Bounds check.
5867
26740835
JH
58682011-06-04 Jan Hubicka <jh@suse.cz>
5869
5870 PR lto/48954
b8bc3a43
UB
5871 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5872 bitmaps.
26740835 5873
014ab419
JW
58742011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5875
5876 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5877
407bcba7
JJ
58782011-06-04 Jakub Jelinek <jakub@redhat.com>
5879
5880 PR target/49281
5881 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5882 to be strictly smaller than 1 << shiftcount.
5883
e3195c52
JH
58842011-06-04 Jan Hubicka <jh@suse.cz>
5885
5886 PR tree-optimize/48929
5887 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5888 of empty predicate.
5889
047d33a0
AO
58902011-06-04 Alexandre Oliva <aoliva@redhat.com>
5891
5892 PR debug/48333
5893 * calls.c (emit_call_1): Prefer the __builtin declaration of
5894 builtin functions.
5895
dc587809
DN
58962011-06-03 Diego Novillo <dnovillo@google.com>
5897
5898 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5899 (lto_input_tree_pointers): Likewise.
5900 * lto-streamer-out.c (pack_value_fields): Likewise.
5901 (lto_output_tree_pointers): Likewise.
5902 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5903 and OPTIMIZATION_NODE.
5904
58cd1d70
RO
59052011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5906
5907 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5908 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5909 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5910 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5911 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5912 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5913 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5914 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5915 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5916 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5917 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5918 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5919 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5920 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5921 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5922 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5923 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5924 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5925 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5926 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5927 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5928 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5929 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5930 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5931 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5932 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5933 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5934 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5935 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5936 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5937 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5938 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5939 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5940 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5941 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5942 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5943 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5944 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5945 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5946 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5947 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5948 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5949 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5950 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5951 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5952 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5953 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5954 * system.h (MD_UNWIND_SUPPORT): Poison.
5955 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5956 * doc/tm.texi: Regenerate.
5957 * unwind-dw2.c: Include md-unwind-support.h instead of
5958 MD_UNWIND_SUPPORT.
5959 * config/ia64/unwind-ia64.c: Likewise.
5960 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5961
10c63ba4 59622011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
5963
5964 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5965
1b7a0148
RH
59662011-06-03 Richard Henderson <rth@redhat.com>
5967 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5968
5969 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5970 (sigill_hdlr): Correct insn, insn size.
5971 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5972
737346fa
RO
59732011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5974
5975 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5976 t-slibgcc-dummy.
5977 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5978 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5979 * config/mips/t-iris: Remove.
5980 * config/mips/t-irix6: New file.
5981 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5982
c192cee6
RO
59832011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5984
5985 * Makefile.in (LIB2ADDEHDEP): Remove.
5986 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5987 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5988 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5989 * config/t-darwin (LIB2ADDEHDEP): Remove.
5990 * config/t-freebsd (LIB2ADDEHDEP): Remove.
5991 * config/t-linux (LIB2ADDEHDEP): Remove.
5992
d5828cc7
DN
59932011-06-03 Diego Novillo <dnovillo@google.com>
5994
5995 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5996 (lto_register_var_decl_in_symtab): Likewise.
5997 (lto_register_function_decl_in_symtab): Likewise.
5998 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 5999 logic to uniquify_nodes.
d5828cc7 6000
ee33b5f0
RO
60012011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6002
6003 * config/alpha/t-osf5: Remove.
6004 * config/alpha/t-osf-pthread: Remove.
6005 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
6006 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
6007
16868d84
JB
60082011-06-03 Julian Brown <julian@codesourcery.com>
6009
6010 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
6011 (strongarm1110): Use strongarm tuning.
4d3d7f15 6012 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
6013 * config/arm/arm.c (arm_strongarm_tune): New.
6014 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6015 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
6016 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
6017 setting, using previous defaults or 1 for Cortex-A5.
6018 (arm_option_override): Set max_insns_skipped from current tuning.
6019
1cec1285
NS
60202011-06-03 Nathan Sidwell <nathan@codesourcery.com>
6021
6022 * doc/install.texi (Options specification): Document --with-specs.
6023
eed55426
RR
60242011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6025
6026 * config/arm/neon.md (orndi3_neon): Actually split it.
6027
d5b6cc25
AO
60282011-06-02 Alexandre Oliva <aoliva@redhat.com>
6029
6030 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
6031 * var-tracking.c (reverse_op): Limite recurse depth to 5.
6032
2ba42841
AO
60332011-06-02 Alexandre Oliva <aoliva@redhat.com>
6034
6035 PR debug/47590
6036 * target.def (delay_sched2, delay_vartrack): New.
6037 * doc/tm.texi.in: Update.
6038 * doc/tm.texi: Rebuild.
6039 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
6040 * var-tracking.c (gate_handle_var_tracking): Likewise.
6041 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
6042 (bfin_flag_var_tracking): Drop.
6043 (output_file_start): Don't save and override flag_var_tracking.
6044 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
6045 (bfin_reorg): Test original variables.
6046 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6047 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
6048 (ia64_flag_var_tracking): Drop.
6049 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6050 (ia64_file_start): Don't save and override flag_var_tracking.
6051 (ia64_override_options_after_change): Ditto
6052 flag_schedule_insns_after_reload.
6053 (ia64_reorg): Test original variables.
6054 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
6055 (picochip_flag_var_tracking): Drop.
6056 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
6057 (picochip_option_override): Don't save and override
6058 flag_schedule_insns_after_reload.
6059 (picochip_asm_file_start): Ditto flag_var_tracking.
6060 (picochip_reorg): Test original variables.
6061 * config/spu/spu.c (spu_flag_var_tracking): Drop.
6062 (TARGET_DELAY_VARTRACK): Define.
6063 (spu_var_tracking): New.
6064 (spu_machine_dependent_reorg): Call it.
6065 (asm_file_start): Don't save and override flag_var_tracking.
6066
a700b5f0
KK
60672011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
6068
6069 PR target/49163
6070 * config/sh/predicates.md (general_movsrc_operand): Return 0
6071 for memory and memory subreg of which address is an invalid
6072 indexed address for QI and HImode.
6073 (general_movdst_operand): Likewise.
6074
76015c34
EB
60752011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6076
6077 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
6078 edges only, when there is a non-local label in the function.
6079 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
6080
4e76acd2
UB
60812011-06-02 Uros Bizjak <ubizjak@gmail.com>
6082
6083 * config/i386/constraints.md (Y3): New register constraint.
6084 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
6085 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
6086 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
6087 *sse2_interleave_lowv2df.
6088
288f605f
JB
60892011-06-02 Julian Brown <julian@codesourcery.com>
6090
6091 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
6092 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
6093 (arm_cortex_a5_tune): New.
6094
7ec70105
JB
60952011-06-02 Julian Brown <julian@codesourcery.com>
6096
153668ec
JB
6097 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
6098 * config/arm/arm.c (arm_default_branch_cost): New.
6099 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
6100 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
6101 (arm_fa726_tune): Set branch_cost field using
6102 arm_default_branch_cost.
6103 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
6104 current_tune structure.
6105 * dojump.c (tm_p.h): Include file.
6106
61072011-06-02 Julian Brown <julian@codesourcery.com>
6108
6109 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
6110 tuning.
7ec70105
JB
6111 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
6112 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
6113 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
6114 field.
6115 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
6116 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
6117 (arm_fa726te_tune): Add prefer_constant_pool setting.
6118 (arm_v6t2_tune, arm_cortex_tune): New.
6119 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
6120 prefer_constant_pool setting.
6121
aad61732
UB
61222011-06-02 Uros Bizjak <ubizjak@gmail.com>
6123
4e76acd2
UB
6124 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
6125 switch statement.
aad61732
UB
6126 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
6127 (*movdf_internal) <case 6,7,8>: Ditto.
6128
4e76acd2 6129 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
6130 * config/i386/sse.md (vec_set<mode>_0): Merge with
6131 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
6132 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
6133 *vec_extractv2di_1_sse.
6134 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
6135 and *vec_concatv2di_rex64_sse.
6136
6e588138
SH
61372011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
6138
6139 PR target/48807
6140 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
6141 of cgraph_local_info for null before attempting to use it.
6142
bc6d3f91
EB
61432011-06-02 Eric Botcazou <ebotcazou@adacore.com>
6144
6145 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
6146 (current_function_dynamic_alloc_count): Delete.
6147 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
6148 (expand_builtin_nonlocal_goto): Remove obsolete comment.
6149 (expand_builtin_update_setjmp_buf): Remove dead code.
6150 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
6151 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
6152 support.
6153 * function.c (instantiate_virtual_regs): Likewise.
6154 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
6155 for a block with a single abnormal incoming edge.
6156 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 6157 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
6158 * config/sparc/sparc-protos.h (load_got_register): Declare.
6159 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6160 (load_got_register): Make global.
6161 (sparc_frame_pointer_required): Add 'static'.
6162 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
6163 (sparc_builtin_setjmp_frame_value): New function.
6164 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6165 (save_stack_nonlocal): New expander.
6166 (restore_stack_nonlocal): Likewise.
6167 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6168 (nonlocal_goto_internal): New insn.
6169 (goto_handler_and_restore): Delete.
6170 (builtin_setjmp_setup): Likewise.
6171 (do_builtin_setjmp_setup): Likewise.
6172 (setjmp): Likewise.
6173 (builtin_setjmp_receiver): New expander.
6174
69282fee
DL
61752011-06-01 David Li <davidxl@google.com>
6176
6177 PR middle-end/49261
6178 * tree-pretty-print.c (dump_function_header): Format cleanup.
6179
e95873dd
KK
61802011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
6181
6182 PR target/49238
6183 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6184 needed when original operands are used for msw_skip comparison.
6185
88c15821
JJ
61862011-06-01 Jakub Jelinek <jakub@redhat.com>
6187
6188 PR debug/49250
6189 * var-tracking.c (add_uses, add_stores): Don't call
6190 cselib_subst_to_values on ENTRY_VALUE.
6191
07233947
DN
61922011-06-01 Diego Novillo <dnovillo@google.com>
6193
6194 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6195 output_record_start with LTO_null instead of output_zero.
6196 (lto_output_ts_binfo_tree_pointers): Likewise.
6197 (lto_output_tree): Likewise.
6198 (output_eh_try_list): Likewise.
6199 (output_eh_region): Likewise.
6200 (output_eh_lp): Likewise.
6201 (output_eh_regions): Likewise.
6202 (output_bb): Likewise.
6203 (output_function): Likewise.
6204 (output_unreferenced_globals): Likewise.
6205 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6206 instead of NUM_TREE_CODES.
6207 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6208 (lto_output_int_in_range): Change << to >> when shifting VAL.
6209
4ee3537a
DN
62102011-06-01 Diego Novillo <dnovillo@google.com>
6211
6212 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6213 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6214
02972eaf
RS
62152011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6216
6217 PR target/45074
6218 * optabs.h (valid_multiword_target_p): Declare.
6219 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6220 doing multi-word operations.
6221 * optabs.c (expand_binop): Likewise.
6222 (expand_doubleword_bswap): Likewise.
6223 (expand_absneg_bit): Likewise.
6224 (expand_unop): Likewise.
6225 (expand_copysign_bit): Likewise.
6226 (multiword_target_p): New function.
6227
4d41c2d1
RS
62282011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6229
6230 PR rtl-optimization/48830
6231 PR rtl-optimization/48808
6232 PR rtl-optimization/48792
6233 * reload.c (push_reload): Check contains_reg_of_mode.
6234 * reload1.c (strip_paradoxical_subreg): New function.
6235 (gen_reload_chain_without_interm_reg_p): Use it to handle
6236 paradoxical subregs.
6237 (emit_output_reload_insns, gen_reload): Likewise.
6238
5f57dccb
DL
62392011-06-01 David Li <davidxl@google.com>
6240
6241 * predict.c : Change pass name
6242 * ipa.c: Ditto.
6243 * dce.c: Ditto.
6244 * tree-profile.c: Ditto.
6245 * except.c: Ditto.
6246
ea6cf778
DL
62472011-06-01 David Li <davidxl@google.com>
6248
6249 * tree-pretty-print.c (dump_function_header): New function.
6250 * final.c (rest_of_clean_state): Use header dumper.
6251 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6252 * passes.c (pass_init_dump_file): Use header dumper.
6253
ebdc0d4b
JJ
62542011-06-01 Jakub Jelinek <jakub@redhat.com>
6255
eeeb9b49
JJ
6256 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6257 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6258 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6259 New functions.
6260 (mem_loc_descriptor): Use them.
6261
ebdc0d4b
JJ
6262 * var-tracking.c (create_entry_value): New function.
6263 (vt_add_function_parameter): Use it.
6264
0699e415
RO
62652011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6266
6267 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6268 Include <signal.h>, <ucontext.h>.
6269 (sigill_caught): Define.
6270 (sigill_hdlr): New function.
6271 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6272 insns can be executed.
aad61732 6273 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
6274 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6275
ca24c5ad
RO
62762011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6277
6278 * config/t-slibgcc-darwin: Move to ...
aad61732 6279 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
6280 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6281 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6282 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 6283 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
6284 Remove i386/t-crtstuff from tmake_file.
6285 (i[34567]86-*-solaris2*): Remove t-svr4,
6286 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6287 t-slibgcc-dummy.
6288 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6289 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6290 sparc/t-crtfm from tmake_file.
6291 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6292 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6293 Remove extra_parts.
6294 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6295 * config/i386/t-nwld (SHLIB_LINK): Remove.
6296 * config/i386/t-rtems-i386: Rename to ...
6297 * config/i386/t-rtems: ... this.
6298 ($(T)crti.o, $(T)crtn.o): Remove.
6299 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6300 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6301 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6302 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6303 EXTRA_MULTILIB_PARTS): Remove.
6304 * config/sparc/t-sol2-64: Likewise.
6305 * config/sparc/t-sol2: Remove.
6306 * config/sparc/t-crtin: Remove.
6307 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6308 * config/i386/gmon-sol2.c: Remove.
6309 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6310 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6311 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6312 * config/i386/sol2-gc1.asm: Remove.
6313 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6314 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6315 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6316 * config/t-slibgcc-sld: Remove.
6317
a78d13c3
JJ
63182011-06-01 Jakub Jelinek <jakub@redhat.com>
6319
6320 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6321 base_type_for_mode with op_mode instead of mode.
6322
572070ef
PB
63232011-06-01 Paul Brook <paul@cpodesourcery.com>
6324
6325 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6326 Cortex-A15.
6327 * config/arm/arm-tune.md: Regenerate.
6328 * config/arm/arm-tables.opt: Regenerate.
6329 * config/arm/arm.c (FL_DIV): Rename...
6330 (FL_THUMB_DIV): ... to this.
6331 (FL_ARM_DIV): Define.
6332 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6333 (arm_arch_hwdiv): Remove.
6334 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6335 (arm_issue_rate): Add cortexr5.
6336 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6337 __ARM_ARCH_EXT_IDIV__.
6338 (TARGET_IDIV): Define.
6339 (arm_arch_hwdiv): Remove.
6340 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6341 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6342 (divsi3, udivsi3): New patterns.
6343 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6344 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6345
11026b51
MJ
63462011-06-01 Martin Jambor <mjambor@suse.cz>
6347
6348 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6349 * ipa-utils.c (searchc): Set scc_no.
6350
b6156cf2
MJ
63512011-06-01 Martin Jambor <mjambor@suse.cz>
6352
6353 * ipa-utils.c (searchc_env): New field allow_overwritable.
6354 (searchc): do not ignore edges to overwritable nodes if indicated
6355 by env->allow_overwritable.
6356 (ipa_reduced_postorder): Set env.allow_overwritable.
6357
6807da97
RG
63582011-06-01 Richard Guenther <rguenther@suse.de>
6359
6360 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6361 char_type_node.
6362 * lto-streamer.c (lto_record_common_node): Take node pointer,
6363 do not register types.
6364 (lto_preload_common_nodes): Explicitly skip preloading nodes
6365 that differ between frontends.
6366
66bd20e7 63672011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
6368
6369 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6370 NON_FLOAT_REGS.
6371
66bd20e7 63722011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
6373
6374 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6375 parameter value for dump. Dump cost on outermost call only.
6376 (rs6000_memory_move_cost): Dump cost on outermost call only.
6377
7351d8da
JJ
63782011-05-31 Jakub Jelinek <jakub@redhat.com>
6379
ead7c399
JJ
6380 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6381 DW_OP_GNU_convert ops.
6382
509f4495
JJ
6383 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6384 cselib_preserve_constants.
6385 (cselib_lookup_1): If cselib_preserve_constants,
6386 a new VALUE is being created for REG and there is a VALUE for the
6387 same register in wider mode, add another loc with lowpart SUBREG of
6388 the wider VALUE.
6389 (cselib_subst_to_values): Handle ENTRY_VALUE.
6390 * var-tracking.c (replace_expr_with_values): Return NULL for
6391 ENTRY_VALUE too.
6392 * dwarf2out.c (convert_descriptor_to_signed): New function.
6393 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6394 instead of two shifts.
6395 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6396 the right mode if needed.
6397 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6398 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6399 convert_descriptor_to_signed.
6400 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6401 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6402
7351d8da
JJ
6403 PR target/48688
6404 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6405
5cc93ee0
UB
64062011-05-31 Uros Bizjak <ubizjak@gmail.com>
6407
6408 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6409 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6410 (SWI248x): New mode iterator, rename from X87MODEI.
6411 (X87MODEI): Remove mode iterator.
6412 (X87MODEI12): Ditto.
6413 (SSEMODEI24): Ditto.
6414
f0686e78
AO
64152011-05-31 Alexandre Oliva <aoliva@redhat.com>
6416
6417 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6418 * doc/invoke.texi: Document max-vartrack-expr-depth.
6419 * var-tracking.c (EXPR_DEPTH): New.
6420 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6421
f3308413
AO
64222011-05-31 Alexandre Oliva <aoliva@redhat.com>
6423
6424 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6425 * config/i386/sse.md: Add n to negated FMA pattern names.
6426
28c14a04
AO
64272011-05-31 Alexandre Oliva <aoliva@redhat.com>
6428
6429 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6430
70efc82d
AO
64312011-05-31 Alexandre Oliva <aoliva@redhat.com>
6432
5cc93ee0 6433 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 6434
6ba5d856
UB
64352011-05-31 Uros Bizjak <ubizjak@gmail.com>
6436
6437 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6438 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6439
64402011-05-31 Uros Bizjak <ubizjak@gmail.com>
6441
6442 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6443 registers. Penalize F*r->o alternative to prevent partial memory
6444 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6445 CONST_DOUBLE immediates when optimizing function for size. Do not move
6446 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6447 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6448 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6449 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6450 alternatives.
6451 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6452
6453 (fp_register_operand splitters): Use fp_register_operand
6454 constraint. Do not use FP_REG_P in insn condition.
6455 (any_fp_register_operand splitters): Use any_fp_register_operand
6456 constraint. Do not use ANY_FP_REG_P in insn condition.
6457
533c07c5
JH
64582011-05-31 Jan Hubicka <jh@suse.cz>
6459
6460 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6461 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6462 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6463 (lto_output_edge): Use output_enum and var_len_unsigned.
6464 (lto_output_varpool_node): Likewise.
6465 (input_overwrite_node): Do not take resolution parameter;
6466 extract it from a bitpack.
6467 (input_node): Do not read resolution; use input_enum and
6468 var_len_unsigned.
6469 (input_varpool_node): Likewise.
6470 (input_edge): Likewise.
6471 (input_cgraph_1): Likewise.
6472
2611db71
RG
64732011-05-31 Richard Guenther <rguenther@suse.de>
6474
6475 * gimple.c (gimple_register_canonical_type): Do not register
6476 any types via gimple_register_type.
6477
b9e57365
JH
64782011-05-31 Jan Hubicka <jh@suse.cz>
6479
6480 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6481 of thunks.
6482
35979cc2
JJ
64832011-05-31 Jakub Jelinek <jakub@redhat.com>
6484
6485 PR rtl-optimization/49235
6486 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6487 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6488
8f7de592
IR
64892011-05-31 Ira Rosen <ira.rosen@linaro.org>
6490
6491 PR tree-optimization/49093
6492 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6493 data references.
6494
8d8a3bda
DS
64952011-05-31 Dodji Seketeli <dodji@redhat.com>
6496
6497 PR debug/49047
6498 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 6499 for concrete functions containing the code of cloned functions.
8d8a3bda 6500
2e87621c
RG
65012011-05-31 Richard Guenther <rguenther@suse.de>
6502
6503 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6504 to ...
6505 (forward_propagate_into_comparison_1): ... this.
6506 (forward_propagate_comparison): Rename to ...
6507 (forward_propagate_into_comparison): ... this. Split out
6508 real forward propagation code to ...
6509 (forward_propagate_comparison): ... this.
6510 (forward_propagate_into_gimple_cond): Remove looping.
6511 (forward_propagate_into_cond): Likewise.
6512 (simplify_not_neg_expr): Return whether we have done something.
6513 (simplify_gimple_switch): Likewise.
6514 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6515 (ssa_forward_propagate_and_combine): ... this. Re-structure
6516 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 6517 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
6518 (pass_forwprop): Adjust.
6519
5a880d5d
ILT
65202011-05-30 Ian Lance Taylor <iant@google.com>
6521
6522 * godump.c (go_format_type): Correct length of name added to
6523 obstack for anonymous field.
6524
5f133038
KK
65252011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6526
6527 PR target/49186
6528 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6529 part of the second operand is 0.
6530
b17d5426
UB
65312011-05-30 Uros Bizjak <ubizjak@gmail.com>
6532
6533 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6534 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6535 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6536 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 6537 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
6538 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6539 when optimizing function for size. Do not move CONST_DOUBLEs
6540 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
6541 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6542 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
6543 check for ANY_FP_REGNO_P instead.
6544 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6545 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6546 function for speed.
6547 * config/i386/i386.c (ix86_option_override_internal): Do not
6548 set TARGET_INTEGER_DFMODE_MOVES here.
6549
a0cd843f
L
65502011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6551
6552 PR target/49168
aad61732 6553 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 6554
006a5f38
JJ
65552011-05-30 Jakub Jelinek <jakub@redhat.com>
6556
6557 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6558 DW_TAG_rvalue_reference_type even for
6559 -gdwarf-4 -fno-debug-types-section.
6560
6e96f98a
BS
65612011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6562
6563 PR tree-optimization/46728
6564 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6565 (build_and_insert_binop): New.
6566 (gimple_expand_builtin_pow): Reorder args for
6567 build_and_insert_call; use build_and_insert_binop; add more
6568 optimizations for fractional exponents.
b17d5426 6569
4f60111f
NF
65702011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6571
6572 PR bootstrap/49190
6573
6574 Revert:
6575 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6576
6577 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6578 tree_common.
6579 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6580 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6581 TS_BASE instead of TS_COMMON.
6582 * varasm.c (assemble_name): Remove assert.
6583
3fd7879d
RS
65842011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6585
6586 * config.gcc: Keep obselete list sorted.
6587
80060f7a
JJ
65882011-05-30 Jakub Jelinek <jakub@redhat.com>
6589 Eric Botcazou <ebotcazou@adacore.com>
6590
6591 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6592 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6593 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6594 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6595 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6596
17e99cdb
RG
65972011-05-30 Richard Guenther <rguenther@suse.de>
6598
6599 * gimple.c (gimple_types_compatible_p_1): Compare record
6600 and union type members properly.
6601
42b05b6e
RG
66022011-05-30 Richard Guenther <rguenther@suse.de>
6603
6604 PR tree-optimization/49210
6ba5d856
UB
6605 * ipa-split.c (split_function): Care for the case where the call
6606 result is not trivially convertible to the result holding variable.
42b05b6e 6607
f3321158
RG
66082011-05-30 Richard Guenther <rguenther@suse.de>
6609
6610 PR tree-optimization/49218
6611 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6612 overflow occured.
6613
d12d8efe
RG
66142011-05-30 Richard Guenther <rguenther@suse.de>
6615
6616 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6617 New function split out from ...
6618 (forward_propagate_into_gimple_cond): ... here. Adjust.
6619 (forward_propagate_into_cond): Likewise.
6620 (forward_propagate_comparison): Also propagate into
6621 comparisons on assignment RHS. Change return value to
6622 behave similar to forward_propagate_into_cond.
6623 (tree_ssa_forward_propagate_single_use_vars): Handle
6624 strict-overflow warnings properly for forward_propagate_comparison.
6625
df33b41f
RO
66262011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6627
6628 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6629 from plugin linker.
6630 * configure: Regenerate.
6631
69940d4d
IR
66322011-05-30 Ira Rosen <ira.rosen@linaro.org>
6633
6634 PR tree-optimization/49199
6635 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 6636 non-reduction operands are either defined in the loop or by induction.
69940d4d 6637
226c52aa
XDL
66382011-05-29 Xinliang David Li <davidxl@google.com>
6639
6640 * opts-global.c (handle_common_deferred_options): Handle new options.
6641 * passes.c (register_one_dump_file): Call register_pass_name.
6642 (execute_one_pass): Check explicit enable/disable flag.
6643 (passr_hash): New function.
6644 (passr_eq): Ditto.
6645 (register_pass_name): Ditto.
6646 (get_pass_by_name): Ditto.
6647 (pass_hash): Ditto.
6648 (pass_eq): Ditto.
6649 (enable_pass): Ditto.
6650 (disable_pass): Ditto.
6651 (is_pass_explicitly_enabled_or_disabled): Ditto.
6652
491d8eed
UB
66532011-05-29 Uros Bizjak <ubizjak@gmail.com>
6654
6655 * config/i386/i386.md (*movoi_internal_avx): Use
6656 standard_sse_constant_opcode for alternative 0.
6657 (*movti_internal_sse): Ditto.
6658 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6659 alternative 2.
6660 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6661 sselog1 type moves.
6662 (*movsi_internal): Ditto.
6663 (*movdi_internal): Ditto. Add ssecvt type moves.
6664
eb93b31f
EB
66652011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6666
6667 PR target/48830
6668 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6669
3f831b7d
JJ
66702011-05-29 Jakub Jelinek <jakub@redhat.com>
6671
6672 PR rtl-optimization/49095
6673 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6674 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6675
ee3ee488
RS
66762011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6677
6678 PR target/43995
6679 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6680 recurse_p argument. Only follow register copies if it is set,
6681 and prevent mips_find_pic_call_symbol from recursing.
6682 (mips_find_pic_call_symbol): Add a recurse_p argument.
6683 Pass it to mips_pic_call_symbol_from_set.
6684 (mips_annotate_pic_calls): Update accordingly.
6685
65f3dedb
RS
66862011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6687
6688 * emit-rtl.c (try_split): Use a loop to search for
6689 NOTE_INSN_CALL_ARG_LOCATIONs.
6690
61e374ab
RG
66912011-05-29 Richard Guenther <rguenther@suse.de>
6692
6693 PR tree-optimization/49217
6694 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6695
fac009a8
JH
66962011-05-28 Jan Hubicka <jh@suse.cz>
6697
6698 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6699 length.
6700 (string_slot_free): Remove
6701 (create_output_block): Initialize obstack.
6702 (destroy_output_block): Free obstack.
6703 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6704 the string unless it needs to be added into the hash.
6705 (lto_output_string_with_length): Add persistent attribute;
6706 handle NULL strings.
6707 (lto_output_string): Add PERSISTENT parameter.
6708 (output_string_cst, output_identifier): Simplify.
6709 (lto_output_location_bitpack): Update.
6710 (lto_output_builtin_tree): Update.
6711 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
6712 (lto_output_string, lto_output_string_with_length): Remove
6713 declarations; functions are static now.
fac009a8 6714
fa766006
JH
67152011-05-28 Jan Hubicka <jh@suse.cz>
6716
6717 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6718 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6719 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6720 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6721 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6722 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6723 unpack_ts_decl_with_vis_value_fields,
6724 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6725 lto_get_builtin_tree): Use enum and variable length i/o.
6726 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6727 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6728 New functions.
6729 (bp_pack_enum, bp_unpack_enum): New macros.
6730
e092158b
RS
67312011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6732
6733 * genrecog.c: Remove redundant forward declarations.
6734
7ca2afa0
RS
67352011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6736
6737 * config.gcc: Deprecate mips*-*-openbsd*.
6738
a601a53a
RS
67392011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6740
6741 PR bootstrap/49195
6742 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6743 for match_op_dup.
6744
fc64b448
AP
67452011-05-27 Andrew Pinski <pinskia@gmail.com>
6746
6747 PR middle-end/48981
6748 * gengtype.c (vec_prefix_type): New function.
6749 (note_def_vec): Use vec_prefix_type and change the length
6750 attribute to be based on the prefix.
6751 * vec.c: Include coretypes.h before vec.h.
6752 (struct vec_prefix): Remove.
6753 (vec_gc_p_reserve): Change the offsetof to sizeof.
6754 (vec_gc_p_reserve_exact): Likewise.
6755 (vec_heap_p_reserve): Likewise.
6756 (vec_heap_p_reserve_exact): Likewise.
6757 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6758 (vec_stack_p_reserve): Change the offsetof to sizeof.
6759 (vec_stack_p_reserve_exact): Likewise.
6760 * vec.h (struct vec_prefix): New struct definition.
6761 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6762 (VEC_T_GTY(T,B)): Likewise.
6763 (DEF_VEC_FUNC_P(T)): Use prefix field.
6764 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6765 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6766
ba869341
BS
67672011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6768
6769 PR tree-optimization/46728
6770 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6771 (powi_as_mults): Add gimple_set_location.
6772 (build_and_insert_call): New.
6773 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6774 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 6775
d296760d
AM
67762011-05-27 Alexander Monakov <amonakov@ispras.ru>
6777
6778 * doc/contrib.texi: Update copyright years.
6779 (Contributors): Add Zdenek Sojka.
6780
38e01f9e
NF
67812011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6782
6783 * c-decl.c (c_push_function_context): Copy the current statement
6784 list stack.
6785 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6786 (finish_struct): Call building_stmt_list_p instead of checking
6787 cur_stmt_list.
6788 * c-parser.c (c_parser_postfix_expression): Likewise.
6789 * c-typeck.c (c_end_compound_stmt): Likewise.
6790 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6791 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6792 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6793 (free_stmt_list): Likewise.
6794 * tree.h (struct tree_statement_list): Include typed_tree instead
6795 of tree_common.
6796 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6797 as TS_TYPED instead of TS_COMMON.
6798
8950516e 67992011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 6800 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
6801
6802 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6803 (HAVE_AS_IX86_TLSGDPTL): Define.
6804 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6805 (HAVE_AS_IX86_TLSLDMPLT): Define.
6806 * configure: Regenerate.
6807 * config.in: Regenerate.
6808 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6809 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6810 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6811 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6812 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6813 @tlsldmplt or @plt.
6814 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6815
b0bd15f7
BS
68162011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6817
6818 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6819 and reverse_cond.
6820 (INSN_COND, INSN_REVERSE_COND): New macros.
6821 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6822 once.
6823 (sched_get_condition_with_rev): Cache the results, and look them up
6824 if possible.
6825 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6826 are clobbered by the current insn.
6827 * target.def (exposed_pipline): New sched data hook.
6828 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6829 * doc/tm.texi: Regenerate.
6830
fa65a9cf
BS
68312011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6832
6833 PR tree-optimization/49170
6834 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6835 sincos or cexp.
b0bd15f7 6836
c2299dfe
RG
68372011-05-27 Richard Guenther <rguenther@suse.de>
6838
6839 PR middle-end/49189
6840 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6841 of comparisons.
6842
a95b23b4
BS
68432011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6844
6845 * haifa-sched.c (sched_scan_info): Remove.
6846 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6847 with NULL args.
6848 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6849 Remove functions.
6850 (sched_scan): Remove.
6851 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6852 static. All callers changed.
6853 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6854 static. All callers changed.
6855 (sched_init_luids): Remove all arguments except the first. All
6856 callers changed. Don't use sched_scan.
6857 (haifa_init_h_i_d): Likewise.
6858 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6859 manually rather than using sched_init_luids. Likewise with
6860 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6861 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6862 rather than sched_init_luids with NULL args.
6863 * sel-sched-ir.c (new_insns): Remove variable.
6864 (sched_scan): New static function, previously in haifa-sched.c. Remove
6865 all arguments but the first two; all callers changed.
6866 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6867 rather than sched_init_luids.
6868 (sel_init_bbs): Remove second argument. All callers changed.
6869 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6870 with NULL arguments.
6871 (create_insn_rtx_from_pattern): Likewise.
6872 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6873 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6874 (sched_init_insn_luid, sched_extend_luids): Declare.
6875 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6876 declarations.
6877
f8f972fc
RB
68782011-05-27 Richard Guenther <rguenther@suse.de>
6879
6880 PR middle-end/49177
6881 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6882 A CMP B ? (T) true : (T) false for non-integral types T again.
6883
51a9ed47
JH
68842011-05-27 Jan Hubicka <jh@suse.cz>
6885
6886 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6887 so 0 means NULL string.
6888 (lto_output_string_with_length): ... here.
f8f972fc
RB
6889 (lto_output_string, output_string_cst, output_identifier): Update
6890 handling of NULL strings.
51a9ed47
JH
6891 (lto_output_location_bitpack): New function.
6892 (lto_output_location): Use it.
6893 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
6894 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6895 len values.
6896 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6897 values by 1.
491d8eed 6898 (input_string_internal): ... here;
f8f972fc
RB
6899 (input_string_cst, input_identifier, lto_input_string): Update handling
6900 of NULL strings.
51a9ed47
JH
6901 (lto_input_location_bitpack): New function
6902 (lto_input_location): Use it.
f8f972fc
RB
6903 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6904 values.
51a9ed47
JH
6905 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6906 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6907 (bp_pack_value): Sanity check the value range.
6908 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6909 New functions.
6910 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6911 New functions.
6912
66bd20e7 69132011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
6914
6915 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6916 call_arg_location instructions down the floor.
6917
574e418a
VM
69182011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6919
6920 PR rtl-optimization/49154
6921 * ira.c (setup_pressure_classes): Process class without sublcasses
6922 as a candidate for pressure classes.
6923
6a1a787e
RS
69242011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
6925
6926 PR rtl-optimization/48575
6927 * genrecog.c (position_type): New enum.
6928 (position): New structure.
6929 (decision): Use position structure instead of a string.
6930 (root_pos, peep2_insn_pos_list): New variables.
6931 (next_position, compare_positions): New functions.
6932 (new_decision): Use position structures instead of strings.
6933 (maybe_both_true): Likewise.
6934 (change_state): Likewise.
6935 (write_tree): Likewise.
6936 (make_insn_sequence): Likewise.
6937
92e948a8
NF
69382011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6939
6940 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6941 TS_BASE instead of TS_COMMON.
6942 (find_decls_types_r): Check for TS_TYPED structure before looking at
6943 TREE_TYPE.
6944 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6945 Add chain field.
6946 (BLOCK_CHAIN): Use new chain field.
6947
66bd20e7 69482011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
6949
6950 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6951 moves expensive on Power7 also.
6952
1f498652
RG
69532011-05-26 Richard Guenther <rguenther@suse.de>
6954
6955 * fold-const.c (fold_unary_loc): Remove bogus code.
6956
a2fc3e63
NF
69572011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6958
6959 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6960 tree_common.
6961 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6962 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6963 TS_BASE instead of TS_COMMON.
6964 * varasm.c (assemble_name): Remove assert.
6965
d11bf18f
BS
69662011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6967
6968 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6969 substituted first.
6970 * libgcc-std.ver: Delete file.
6971
ac8e1875
RG
69722011-05-26 Richard Guenther <rguenther@suse.de>
6973
6974 PR tree-optimization/48702
6975 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6976 only when we know the base address is within bounds.
6977 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6978 assume the base address of TARGET_MEM_REFs is in bounds.
6979
7e32e652
RO
69802011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6981
6982 PR target/49099
6983 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6984 declaration in TARGET_SOLARIS.
6985
66bd20e7 69862011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
6987
6988 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 6989 The instruction is then expanded explicitly.
43660e0b
HS
6990 (supported_compare): Callable instruction.
6991 (compare): Likewise.
6992
1537737f
JJ
69932011-05-26 Jakub Jelinek <jakub@redhat.com>
6994
6995 PR c++/49165
6996 * gimplify.c (shortcut_cond_r): Don't special case
6997 COND_EXPRs if they have void type on one of their arms.
6998
7b1ac803
BS
69992011-05-26 Bernd Schmidt <bernds@codesourcery.com>
7000
7001 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
7002 to reduce duplication, and to achieve a slightly more logical order
7003 of operations.
7004
1aa9438f
JJ
70052011-05-26 Jakub Jelinek <jakub@redhat.com>
7006
7007 PR tree-optimization/49161
7008 * tree-vrp.c (struct case_info): New type.
7009 (compare_case_labels): Sort case_info structs instead of
7010 trees, and not primarily by CASE_LABEL uids but by
7011 label_for_block indexes.
7012 (find_switch_asserts): Put case labels into struct case_info
7013 array instead of TREE_VEC, adjust sorting, compare label_for_block
7014 values instead of CASE_LABELs.
7015
50fed7bf
RR
70162011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7017
7018 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
7019 ("orndi3_neon"): Likewise.
7020 ("bic<mode>3_neon"): Likewise.
7021
48df3fa6
IR
70222011-05-26 Ira Rosen <ira.rosen@linaro.org>
7023
7024 PR tree-optimization/49038
7025 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
7026 Ensure at least one epilogue iteration if required by data
7027 accesses with gaps.
7028 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7029 to mark loops that require peeling for gaps.
7030 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
7031 (vect_get_known_peeling_cost): Take peeling for gaps into
7032 account.
7033 (vect_transform_loop): Generate epilogue if required by data
7034 access with gaps.
7035 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
7036 loop as requiring an epilogue if there are gaps in the end of
7037 the strided group.
7038
53febcba
ILT
70392011-05-25 Ian Lance Taylor <iant@google.com>
7040
7041 * godump.c (go_format_type): Output the first field with a usable
7042 Go type, if any.
7043
dbbc4d4c
ILT
70442011-05-25 Ian Lance Taylor <iant@google.com>
7045
7046 * godump.c (go_format_type): Check for invalid type names, pointer
7047 target types, and struct field types.
7048
f03a5402
JM
70492011-05-25 Jason Merrill <jason@redhat.com>
7050
7051 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
7052
c497c412
UB
70532011-05-25 Uros Bizjak <ubizjak@gmail.com>
7054
7055 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
7056
e470affe
L
70572011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7058
7059 * config/i386/i386.md (*movqi_extv_1)): Put back
7060 "register_operand" check in "type" calculation.
7061 (*movqi_extzv_2): Likewise.
7062
6c81b2bc
L
70632011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7064
c497c412 7065 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 7066
0c007eb2
BS
70672011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7068
7069 PR bootstrap/49160
7070 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
7071 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
7072 __divxc3, __divtc3): Wrap definitions in #ifndef.
7073
521ca78e
L
70742011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7075
7076 PR target/49142
7077 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
7078 "register_operand" check and replace q_regs_operand with
7079 QIreg_operand in "type" calculation.
7080 (*movqi_extv_1): Likewise.
7081 (*movqi_extzv_2_rex64): Likewise.
7082 (*movqi_extzv_2): Likewise.
7083
7084 * config/i386/predicates.md (QIreg_operand): New.
7085
29f8b844
RG
70862011-05-25 Richard Guenther <rguenther@suse.de>
7087
7088 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
7089 type-based offset disambiguation, streamline MEM_REF and
7090 TARGET_MEM_REF handling.
7091
74838de3
L
70922011-05-25 H.J. Lu <hongjiu.lu@intel.com>
7093
7094 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
7095 (bdesc_special_args): Add pause intrinsic.
7096
7097 * config/i386/i386.md (UNSPEC_PAUSE): New.
7098 (pause): Likewise.
7099 (*pause): Likewise.
7100 * config/i386/ia32intrin.h (__pause): Likewise.
7101
7102 * doc/extend.texi (X86 Built-in Functions): Add documentation for
7103 pause intrinsic.
7104
d24ad7d6
BS
71052011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7106
7107 PR tree-optimization/46728
7108 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
7109 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 7110
d9f8303f
NF
71112011-05-25 Nathan Froyd <froydnj@codesourcery.com>
7112
7113 * tree.h (struct tree_exp): Inherit from struct tree_typed.
7114 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
7115 instead of TS_COMMON.
7116
cdbf4541
BS
71172011-05-25 Bernd Schmidt <bernds@codesourcery.com>
7118
7119 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
7120 LIBGCC2_GNU_PREFIX is defined.
7121 (__N): New macro.
7122 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
7123 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
7124 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
7125 __clz_tab): Define using __N.
7126 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
7127 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
7128 * target.def (libfunc_gnu_prefix): New hook.
7129 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
7130 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
7131 * doc/tm.texi: Regenerate.
7132 * system.h (LIBGCC2_GNU_PREFIX): Poison.
7133 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
7134 account.
7135 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
7136 (init_optabs): Likewise for the bswap libfuncs.
7137 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
7138 and divide.
7139 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
7140 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
7141 * libgcc-std.ver: Remove.
7142 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
7143 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
7144 libgcc-std.ver.
7145 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7146 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
7147 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
7148 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
7149 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
7150 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7151 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
7152 * config/fixed-bit.h (FIXED_OP): Define differently depending on
7153 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
7154 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
7155
f242c0a5
JH
71562011-05-25 Jan Hubicka <jh@suse.cz>
7157
7158 * lto-streamer-out.c (output_record_start): Use lto_output_enum
7159 (lto_output_tree): Use output_record_start.
7160 * lto-streamer-in.c (input_record_start): Use lto_input_enum
7161 (lto_get_pickled_tree): Use input_record_start.
7162 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7163 (lto_value_range_error): New function.
7164 * lto-streamer.h (lto_value_range_error): Declare.
7165 (lto_output_int_in_range, lto_input_int_in_range): New functions.
7166 (lto_output_enum, lto_input_enum): New macros.
7167
a11e0df4
EB
71682011-05-25 Eric Botcazou <ebotcazou@adacore.com>
7169
7170 * common.opt (flag_stack_usage_info): New variable.
7171 (-Wstack-usage): New option.
7172 * doc/invoke.texi (Warning options): Document -Wstack-usage.
7173 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7174 <OPT_fstack_usage>: Likewise.
7175 * toplev.c (output_stack_usage): Handle -Wstack-usage.
7176 * calls.c (expand_call): Test flag_stack_usage_info variable instead
7177 of flag_stack_usage.
7178 (emit_library_call_value_1): Likewise.
7179 * explow.c (allocate_dynamic_stack_space): Likewise.
7180 * function.c (instantiate_virtual_regs ): Likewise.
7181 (prepare_function_start): Likewise.
7182 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7183 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7184 * config/arm/arm.c (arm_expand_prologue): Likewise.
7185 (thumb1_expand_prologue): Likewise.
7186 * config/avr/avr.c (expand_prologue): Likewise.
7187 * config/i386/i386.c (ix86_expand_prologue): Likewise.
7188 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7189 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7190 * config/mips/mips.c (mips_expand_prologue): Likewise.
7191 * config/pa/pa.c (hppa_expand_prologue): Likewise.
7192 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7193 * config/s390/s390.c (s390_emit_prologue): Likewise.
7194 * config/sh/sh.c (sh_expand_prologue): Likewise.
7195 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7196 * config/spu/spu.c (spu_expand_prologue): Likewise.
7197
e7cfe241
RG
71982011-05-25 Richard Guenther <rguenther@suse.de>
7199
7200 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7201 (gimple_canonical_types_compatible_p): Likewise.
7202
c5235f4c
JH
72032011-05-25 Jan Hubicka <jh@suse.cz>
7204
7205 PR middle-end/49062
7206 * ipa.c (function_and_variable_visibility): Only add to same
7207 comdat group list if DECL_ONE_ONLY.
7208
8242a0f6
AB
72092011-05-25 Andrey Belevantsev <abel@ispras.ru>
7210
7211 PR rtl-optimization/49014
7212 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7213
642a011d
JJ
72142011-05-25 Jakub Jelinek <jakub@redhat.com>
7215
7216 PR target/49128
7217 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7218
30a435d8
VM
72192011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7220
7221 PR rtl-optimization/48757
7222 * ira-build.c (loop_with_eh_edge_p): Rename to
7223 loop_with_complex_edge_p, check edges on complexity, make function
7224 conditional.
7225 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7226 conditional.
7227
24d1bbc7
EB
72282011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7229
7230 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7231 force flag_ira_share_save_slots to 0.
7232
65773087
EB
72332011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7234
7235 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7236 (vt_initialize): Set PROLOGUE_BB unconditionally.
7237 Add block comment about CFA_BASE_RTX machinery.
7238 Reset FP_CFA_OFFSET to -1 on all invalid paths.
7239 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7240
4e26ba90
NP
72412011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
7242
7243 PR objc/48187
7244 * c-parser.c (c_parser_objc_class_instance_variables): More robust
7245 parsing of syntax error in ObjC instance variable lists. In
7246 particular, avoid an infinite loop if there is a stray ']'.
7247 Updated error message.
7248
936fd13c
ILT
72492011-05-24 Ian Lance Taylor <iant@google.com>
7250
7251 * godump.c (go_define): Don't accept a string immediately after
7252 another operand.
7253
f17333e3
ILT
72542011-05-24 Ian Lance Taylor <iant@google.com>
7255
7256 * godump.c (struct godump_container): Add invalid_hash field.
7257 (go_format_type): Return false if type is found in invalid_hash.
7258 (go_output_typedef): Add invalid type to invalid_hash.
7259 (go_finish): Create and delete invalid_hash.
7260
d24ad7d6 72612011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 7262
78be79d5
BS
7263 PR tree-optimization/46728
7264 * tree-ssa-math-opts.c (powi_table): New.
7265 (powi_lookup_cost): New.
7266 (powi_cost): New.
7267 (powi_as_mults_1): New.
7268 (powi_as_mults): New.
7269 (gimple_expand_builtin_powi): New.
7270 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7271 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 7272
caee412b
RO
72732011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7274
7275 PR target/3746
7276 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7277 mips-tdump native.
7278 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7279 * mips-tdump.c: Likewise.
7280
5eed4f27
L
72812011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7282
7283 PR target/49128
7284 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7285 add -mno-XXX. Handle FMA.
7286
8c5fdaae
VM
72872011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7288
7289 PR rtl-optimization/48633
7290 * ira-build.c (loop_with_eh_edge_p): New function.
7291 (mark_loops_for_removal): Use it.
7292
72932011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
7294
7295 PR rtl-optimization/48971
7296 * ira.c (setup_pressure_classes): Don't check register move cost
7297 for classes with one registers. Don't add pressure class if there
7298 is a pressure class with the same available hard registers.
7299 Check contains_reg_of_mode. Fix a typo in collecting
7300 temp_hard_regset. Ignore hard registers not belonging to a class.
7301
df1f7315
UB
73022011-05-24 Uros Bizjak <ubizjak@gmail.com>
7303
7304 PR target/49133
7305 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7306
ee0cb37c
EB
73072011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7308 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7309
7310 PR gcov-profile/48845
7311 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7312
6a20ce76
RG
73132011-05-24 Richard Guenther <rguenther@suse.de>
7314
7315 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7316 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7317 (gimple_types_compatible_p_1): Adjust.
7318 (iterative_hash_canonical_type): Do not bother about complete vs.
7319 incomplete types.
7320 (gimple_canonical_types_compatible_p): Likewise.
7321
2fcb858c
RO
73222011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7323
7324 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7325
96d91dcf
RG
73262011-05-24 Richard Guenther <rguenther@suse.de>
7327
7328 PR bootstrap/49078
7329 * gimple.c (gimple_register_canonical_type): Revert
7330 previous change.
7331 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7332 does not for a tree for the case where it matters. Cache
7333 pointer-type alias-sets.
7334
1ed1641d
JM
73352011-05-24 Joseph Myers <joseph@codesourcery.com>
7336
7337 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7338 (OBJS): Remove options.o, opts-common.o and prefix.o.
7339 (OBJS-libcommon-target): New.
7340 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7341 (BACKEND): Include libcommon-target.a.
7342 (MOSTLYCLEANFILES): Include libcommon-target.a.
7343 (libcommon-target.a): New.
7344 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7345 prefix.o.
7346
57dfdff0
JM
73472011-05-23 Joseph Myers <joseph@codesourcery.com>
7348
7349 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7350 parts of output shared with the driver.
7351 * optc-gen.awk: Don't generate parts of output not shared with the
7352 driver.
7353 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7354 * doc/options.texi (SourcerInclude): Mention options-save.c.
7355 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7356 (OBJS): Add options-save.o.
7357 (options-save.c, options-save.o): New.
7358 (options.o): Update dependencies.
7359 (gcc-options.o): Remove.
7360 (mostlyclean): Remove options-save.c.
7361
0e0d82a7
JJ
73622011-05-23 Jakub Jelinek <jakub@redhat.com>
7363
9166988f
JJ
7364 PR debug/49032
7365 * dbxout.c: Include cgraph.h.
7366 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7367 and without value expr, return NULL if no varpool node exists for
7368 it or if it is not needed.
7369 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7370
0e0d82a7
JJ
7371 PR c/49120
7372 * c-decl.c (start_decl): Convert expr to void_type_node.
7373
65712d5c
RS
73742011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7375
7376 PR rtl-optimization/48826
7377 * emit-rtl.c (try_split): When splitting a call that is followed
7378 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7379
9025085e
JJ
73802011-05-23 Jakub Jelinek <jakub@redhat.com>
7381
7382 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7383 parameters passed in memory prefer using DECL_INCOMING_RTL over
7384 the pseudos it will be copied into.
7385
34a061be
L
73862011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7387
7388 PR target/47315
7389 * config/i386/i386.c (ix86_option_override_internal): Save the
7390 initial options after checking vzeroupper.
7391
c375a3a4
DL
73922011-05-23 David Li <davidxl@google.com>
7393
7394 PR tree-optimization/48988
7395 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7396 Initialize has_valid_pred for each pred chain.
7397
e1caba18
RG
73982011-05-23 Richard Guenther <rguenther@suse.de>
7399
7400 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7401 (iterative_hash_gimple_type): Always hash type names.
7402
dde05067
NF
74032011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7404
7405 * c-typeck.c (build_function_call_vec): Tweak call to
7406 check_function_arguments.
7407
094f6ab3
RG
74082011-05-23 Richard Guenther <rguenther@suse.de>
7409
7410 PR tree-optimization/49115
7411 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7412 is not necessarily carried out, do not claim it kills the ref.
7413 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7414
9a9822e1
RG
74152011-05-23 Richard Guenther <rguenther@suse.de>
7416
7417 PR middle-end/15419
7418 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7419 what pointer types we accept for folding.
7420
c8028650
RO
74212011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7422
7423 * gthr-gnat.c: Remove.
7424 * gthr-gnat.h: Remove.
7425 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7426 * config/t-freebsd (LIB2ADDEH): Likewise.
7427 * config/t-linux (LIB2ADDEH): Likewise.
7428 * config/t-sol2 (LIB2ADDEH): Likewise.
7429 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7430 * configure.ac (target_thread_file): Remove gnat handling.
7431 * configure: Regenerate.
7432 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7433
15882fe9
TG
74342011-05-23 Tristan Gingold <gingold@adacore.com>
7435 Eric Botcazou <ebotcazou@adacore.com>
7436
7437 * gcov.c (create_file_names): If no object directory is specified,
7438 keep the directory of the file.
7439
da90c957
RO
74402011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7441
7442 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7443 * configure: Regenerate.
7444
7bba408b
JJ
74452011-05-23 Jakub Jelinek <jakub@redhat.com>
7446
7447 PR middle-end/48973
7448 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7449 failed and the comparison has a single bit signed type, use
7450 constm1_rtx instead of const1_rtx for true value.
7451 (do_store_flag): If ops->type is single bit signed type, disable
7452 signel bit test optimization and pass -1 instead of 1 as last
7453 parameter to emit_store_flag_force.
7454
bc69f7ff
TV
74552011-05-23 Tom de Vries <tom@codesourcery.com>
7456
7457 PR target/45098
7458 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7459 function.
7460 (infer_loop_bounds_from_undefined): Use new function.
7461
29cedf8e
RS
74622011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7463
7464 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7465 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7466 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7467 and -O0 otherwise.
7468 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7469
afe8b6ec
EB
74702011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7471
7472 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7473 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7474 returns true.
7475
872dab53
RS
74762011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7477
7478 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7479
145f6c5b
EB
74802011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7481
7482 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7483 UNSPEC_MOVE_PIC pattern.
7484
8ac79835
EB
74852011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7486
7487 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7488 (sparc-*-rtems*): Likewise.
7489 (sparc64-*-elf*): Likewise.
7490 (sparc64-*-rtems*): Likewise.
7491 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7492 * config/sparc/t-crtin: New file.
7493 * config/sparc/t-sol2 (crti.o): Delete rule.
7494 (crtn.o): Likewise.
7495 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7496 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7497 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7498 (ENDFILE_SPEC): Add crtn.o.
7499
5fb43dd8
TV
75002011-05-22 Tom de Vries <tom@codesourcery.com>
7501
7502 PR middle-end/48689
7503 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7504 CODE_CONTAINS_STRUCT (TS_COMMON).
7505
ccb1b17b
JJ
75062011-05-22 Jakub Jelinek <jakub@redhat.com>
7507
7508 PR middle-end/49029
7509 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7510 only after deciding which mode to use.
7511
50ad7db2
TV
75122011-05-22 Tom de Vries <tom@codesourcery.com>
7513
7514 PR target/45098
dc0a3366 7515 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
7516 for call to get_shiftadd_cost.
7517
ef230b38
UB
75182011-05-22 Uros Bizjak <ubizjak@gmail.com>
7519
7520 PR target/49104
7521 * config/i386/cpuid.h (bit_MMXEXT): New define.
7522
15f072f9
NC
75232011-05-22 Nick Clifton <nickc@redhat.com>
7524
7525 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7526 initialisation of non-existant args[2] element. Use args[] array
7527 not arg[] array to pass arguments to build_function_type_list.
7528
e38fdc94
IR
75292011-05-22 Ira Rosen <ira.rosen@linaro.org>
7530
7531 PR tree-optimization/49087
ef230b38 7532 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 7533
5b018c65
JM
75342011-05-21 Jason Merrill <jason@redhat.com>
7535
7536 PR c++/49092
7537 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7538 static storage duration.
7539
abd9a770
EB
75402011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7541
7542 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7543 frame pointer.
7544
bd9a3248
EB
75452011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7546
7547 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7548 false if there are call-saved registers here...
7549 (sparc_can_use_return_insn_p): ...but here instead.
7550 (save_or_restore_regs): Fix thinko.
7551 (sparc_expand_prologue): Use current_function_is_leaf.
7552 (sparc_frame_pointer_required): Likewise.
7553
a5dfec9a
NC
75542011-05-21 Nick Clifton <nickc@redhat.com>
7555
7556 PR target/49098
7557 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7558
555c3771
NP
75592011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7560
7561 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7562 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7563
86fa5de4
JM
75642011-05-21 Joseph Myers <joseph@codesourcery.com>
7565
7566 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7567 * optc-gen.awk: Move common code to opt-read.awk.
7568 * opth-gen.awk: Likewise.
ef230b38 7569 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 7570
bce33ab2
NF
75712011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7572
7573 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7574
e6450c11
TV
75752011-05-20 Tom de Vries <tom@codesourcery.com>
7576
7577 PR target/45098
7578 * tree-ssa-loop-ivopts.c: Include expmed.h.
7579 (get_shiftadd_cost): New function.
7580 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7581
0e8b84ec
JJ
75822011-05-20 Jakub Jelinek <jakub@redhat.com>
7583
7584 PR bootstrap/49086
7585 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7586 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7587
946bdf67
JM
75882011-05-20 Joseph Myers <joseph@codesourcery.com>
7589
7590 * Makefile.in: Update comment referring to $(OBJS-common).
7591
c53aafdf
ILT
75922011-05-20 Ian Lance Taylor <iant@google.com>
7593
7594 * godump.c (go_output_typedef): Put enum constants in the macro
7595 hash table to avoid duplicate Go const definitions.
7596
2691e6d7
JM
75972011-05-20 Joseph Myers <joseph@codesourcery.com>
7598
7599 * Makefile.in (LIBDEPS): Add libcommon.a.
7600 (LIBS): Likewise.
7601 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7602 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7603 pretty-print.o and version.o.
7604 (OBJS-libcommon): New.
7605 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7606 (BACKEND): Add libcommon.a.
7607 (MOSTLYCLEANFILES): Likewise.
7608 (libcommon.a): New.
7609 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7610 (cpp$(exeext)): Likewise.
7611 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7612 pretty-print.o and input.o.
7613 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7614 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7615 (errors.o): Remove.
7616 (mips-tfile): Don't explicitly use version.o.
7617 (mips-tdump): Likewise.
7618 (gcov.o): Depend on $(DIAGNOSTIC_H).
7619 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7620 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7621 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7622 * gcov-dump.c: Include intl.h and diagnostic.h.
7623 (main): Initialize diagnostics.
7624 * gcov.c: Include diagnostic.h.
7625 (fnotice): Remove.
7626 (main): Initialize diagnostics.
7627 * lto-wrapper.c: Include diagnostic.h.
7628 (main): Initialize diagnostics.
7629
252b3e8c
MM
76302011-05-20 Michael Matz <matz@suse.de>
7631
7632 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7633
2ee36ba6
MM
76342011-05-20 Michael Matz <matz@suse.de>
7635 Richard Guenther <rguenther@suse.de>
7636
7637 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7638 use lto_streamer_cache_append directly instead of returning a VEC.
7639 (preload_common_node): Remove.
7640 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7641 track seen nodes.
7642 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7643
90ff582f
RG
76442011-05-20 Richard Guenther <rguenther@suse.de>
7645
7646 PR tree-optimization/49079
7647 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7648 MEM_REFs correctly for the trailing array access detection.
7649 Special case constants the same way as decls for overall size
7650 constraining.
7651
3cda91d8
UB
76522011-05-20 Uros Bizjak <ubizjak@gmail.com>
7653
7654 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7655 argument expansion.
7656
6c66f733
JJ
76572011-05-20 Jakub Jelinek <jakub@redhat.com>
7658
7659 PR tree-optimization/49073
3cda91d8
UB
7660 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7661 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
7662 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7663
0ea80a16
RG
76642011-05-20 Richard Guenther <rguenther@suse.de>
7665
7666 PR middle-end/48849
7667 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7668 of pointer types the same way the middle-end does.
7669
fb291a1e
RG
76702011-05-20 Richard Guenther <rguenther@suse.de>
7671
3cda91d8
UB
7672 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7673 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 7674
37cb25ed
QN
76752011-05-19 Quentin Neill <quentin.neill@amd.com>
7676
7677 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7678 (fma4_fmaddsub): Likewise
7679
a30726a4
JH
76802011-05-19 Jan Hubicka <jh@suse.cz>
7681
7682 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7683 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7684 (type_pair_cache): New static var.
7685 (lookup_type_pair): Use fixed sized custom hash; make inline.
7686 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7687 calls of lookup_type_pair.
7688 (print_gimple_types_stats): Remove cache stats.
7689 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7690 and gtc_ob.
7691
0955cf61
UB
76922011-05-19 Uros Bizjak <ubizjak@gmail.com>
7693
7694 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7695 when TARGET_RDRND is active.
7696 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7697 Generate dummy SImode target register when target is NULL.
7698
12d844c8
JM
76992011-05-19 Joseph Myers <joseph@codesourcery.com>
7700
7701 * config/arm/arm-fpus.def: New.
7702 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7703 arm-fpus.def.
7704 * config/arm/arm-tables.opt: Regenerate.
7705 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7706 (arm_option_override): Don't decode FPU name to string here.
7707 * config/arm/arm.opt (mfpu=): Use Enum.
7708 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7709 Update dependencies.
7710
9e350e99
JM
77112011-05-19 Joseph Myers <joseph@codesourcery.com>
7712
7713 * collect2.c: Include diagnostic.h.
7714 (fatal_perror, fatal, error, fancy_abort): Remove.
7715 (main): Set progname. Call xmalloc_set_program_name and
7716 diagnostic_initialize.
7717 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7718 scan_libraries, resolve_lib_name): Call fatal_error instead of
7719 fatal and fatal_perror.
7720 * collect2.h (error, fatal, fatal_perror): Don't declare.
7721 * tlink.c: Include diagnostic-core.h.
7722 (recompile_files): Call fatal_error instead of fatal_perror.
7723 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7724 pretty-print.o and input.o.
7725 (collect2.o, tlink.o): Update dependencies.
7726
86ff4081
RO
77272011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7728
7729 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7730
2ca48caa
RO
77312011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7732
7733 PR target/40483
7734 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7735 COMDAT group syntax, both SPARC and x86 variants.
7736 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7737 * configure: Regenerate.
7738 * config/sol2.h (TARGET_SOLARIS): Define.
7739 (PUSHSECTION_FORMAT): Remove.
7740 (SECTION_NAME_FORMAT): Define.
7741 * config/sol2.c: Include hashtab.h.
7742 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7743 expansion, using SECTION_NAME_FORMAT.
7744 (solaris_comdat_htab): New variable.
7745 (struct comdat_entry): Define.
7746 (comdat_hash): New function.
7747 (comdat_eq): New function.
7748 (solaris_elf_asm_comdat_section): New function.
7749 (solaris_define_comdat_signature): New function.
7750 (solaris_code_end): New function.
7751 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7752 (solaris_code_end): Declare.
7753 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7754 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7755 solaris_code_end.
7756 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7757 Remove ATTRIBUTE_UNUSED.
7758 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7759 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 7760 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
7761 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7762 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7763 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7764 (PUSHSECTION_FORMAT): Remove.
7765 (SECTION_NAME_FORMAT): Redefine.
7766
da5fb469
KT
77672011-05-19 Kai Tietz <ktietz@redhat.com>
7768
7769 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7770 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7771 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7772
1651e703 77732011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
7774 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7775
7776 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7777
e497b9bd
RG
77782011-05-19 Richard Guenther <rguenther@suse.de>
7779
7780 PR middle-end/48985
7781 * tree-object-size.c (addr_object_size): If the pointed-to
7782 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7783
31b3ca64
RG
77842011-05-19 Richard Guenther <rguenther@suse.de>
7785
7786 * gimple.c (gimple_types_compatible_p_1): Compare names of
7787 the types themselves.
7788 (iterative_hash_gimple_type): And hash them that way.
7789 (gimple_register_type_1): If we register a main variant properly
7790 initialize the leader to ourselves.
7791
bb8d292d
TV
77922011-05-19 Tom de Vries <tom@codesourcery.com>
7793
7794 PR target/45098
7795 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7796 get_loop_invariant_expr_id.
7797 (get_loop_invariant_expr_id): Use get_expr_id.
7798 (parm_decl_cost): New function.
7799 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7800 Improve bound cost estimation. Use different inv_expr_id for elim and
7801 express cases.
7802
a53c5024
TV
78032011-05-19 Tom de Vries <tom@codesourcery.com>
7804
7805 PR target/45098
7806 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7807 cost_base.cost == 0.
7808
31f9eb59
L
78092011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7810
7811 PR target/49002
66bd20e7
EB
7812 * config/i386/sse.md
7813 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7814 load cast.
31f9eb59 7815
681056ae
JJ
78162011-05-18 Jakub Jelinek <jakub@redhat.com>
7817
7818 PR tree-optimization/49039
7819 * tree-vrp.c (extract_range_from_binary_expr): For
7820 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7821 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7822
b5ee6752
TV
78232011-05-18 Tom de Vries <tom@codesourcery.com>
7824
7825 PR target/45098
7826 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7827
0bda47a3
UB
78282011-05-18 Uros Bizjak <ubizjak@gmail.com>
7829
7830 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7831 (*tls_global_dynamic_64): Ditto.
7832 (*tls_local_dynamic_base_32_gnu): Ditto.
7833 (*tls_local_dynamic_base_64): Ditto.
7834 (tls_initial_exec_64_sun): Ditto.
7835
033b0805
SH
78362011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7837
7838 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7839 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7840 bf592-none.
7841 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7842 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7843 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7844 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 7845 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
7846 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7847 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7848
ba163417
JM
78492011-05-18 Joseph Myers <joseph@codesourcery.com>
7850
7851 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 7852 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
7853 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7854 target_thread_pointer, arm_structure_size_boundary, struct
7855 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7856 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
7857 (arm_option_override) Don't process most enumerated option values here.
7858 Don't process target_fpe_name here. Work with integer not string for
7859 structure size boundary; use separate diagnostics for each case.
ba163417
JM
7860 * config/arm/arm.h (enum float_abi_type, enum
7861 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7862 to arm-opts.h.
7863 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7864 arm_structure_size_boundary): Remove.
7865 * config/arm/arm.opt (mabi=): Use Enum and Init.
7866 (arm_abi_type): New Enum and EnumValue entries.
7867 (mfloat-abi=): Use Enum and Init.
7868 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 7869 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
7870 (mfp16-format=): Use Enum and Init.
7871 (arm_fp16_format_type): New Enum and EnumValue entries.
7872 (mstructure-size-boundary=): Use UInteger and Init.
7873 (mtp=): Use Enum and Init.
7874 (arm_tp_type): New Enum and EnumValue entries.
7875
179184e3
RG
78762011-05-18 Richard Guenther <rguenther@suse.de>
7877
7878 PR tree-optimization/49018
7879 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7880 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7881 gimple_has_side_effects.
7882
93b2a207
RG
78832011-05-18 Richard Guenther <rguenther@suse.de>
7884
7885 * gimple.c (gimple_register_type_1): New function, split out from ...
7886 (gimple_register_type): ... here. Avoid infinite recursion.
7887
b010117a
IR
78882011-05-18 Ira Rosen <ira.rosen@linaro.org>
7889
7890 PR tree-optimization/41881
7891 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7892 reduction_chains along with a macro for its access.
7893 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7894 (destroy_loop_vec_info): Free reduction chains.
7895 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7896 (vect_is_slp_reduction): New function.
7897 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7898 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7899 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7900 definition types for reduction chains.
7901 (vect_supported_load_permutation_p): Don't allow permutations for
7902 reduction chains.
7903 (vect_analyze_slp_instance): Support reduction chains.
7904 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7905 (vect_get_constant_vectors): Handle reduction chains.
7906 (vect_schedule_slp_instance): Mark the first statement of the
7907 reduction chain as reduction.
7908
e14c1050
IR
79092011-05-18 Ira Rosen <ira.rosen@linaro.org>
7910
7911 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7912 names for group elements access.
7913 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7914 reduction chains as well. Remove data reference and interleaving
7915 related words from the fields names.
7916 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7917 elements access.
7918 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7919 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7920 vect_update_interleaving_chain, vect_same_range_drs,
7921 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7922 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7923 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7924 vect_analyze_group_access, vect_analyze_data_ref_access,
7925 vect_create_data_ref_ptr, vect_transform_strided_load,
7926 vect_record_strided_load_vectors): Likewise.
7927 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7928 vect_model_load_cost, vectorizable_store, vectorizable_load,
7929 vect_remove_stores, new_stmt_vec_info): Likewise.
7930 * tree-vect-slp.c (vect_build_slp_tree,
7931 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7932
51c213f7
RG
79332011-05-18 Richard Guenther <rguenther@suse.de>
7934
7935 PR middle-end/48989
7936 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7937 operand verification.
7938 (verify_gimple_assign_binary): Likewise.
7939 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7940 to non-1-precision BOOLEAN_TYPEs.
7941
8f5e5434
TV
79422011-05-18 Tom de Vries <tom@codesourcery.com>
7943
7944 PR target/45098
7945 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7946
116bc3a4
JJ
79472011-05-18 Jakub Jelinek <jakub@redhat.com>
7948
7949 PR tree-optimization/49000
7950 * tree-ssa.c (execute_update_addresses_taken): Call
7951 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
7952 be rewritten and decl has been marked for renaming, reset
7953 the debug stmt.
7954
26a8964c
JM
79552011-05-17 Joseph Myers <joseph@codesourcery.com>
7956
7957 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7958 enum_opts_set when testing if attributes have set -mfpmath=.
7959
82bd45d7
RS
79602011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
7961
7962 * config/mips/mips.c (mips_handle_option): Remove unused variable.
7963
267ffce3
UB
79642011-05-17 Uros Bizjak <ubizjak@gmail.com>
7965
7966 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7967 info->entry with 0
7968 * tree-inline.c (maybe_inline_call_in_expr): Initialize
7969 id.transform_lang_insert_block with NULL.
7970
79712011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
7972
7973 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7974 (output_fp_compare): Change args 3 and 4 to bool.
7975 (ix86_expand_call): Change arg 6 to bool.
7976 (ix86_attr_length_immediate_default): Change arg 2 to bool.
7977 (ix86_attr_length_vex_default): Change arg 3 to bool.
7978 * config/i386/i386.md: Update all uses.
7979 * config/i386/i386.c: Ditto.
7980 (ix86_flags_dependent): Change return type to bool.
7981
5beaf664
RG
79822011-05-17 Richard Guenther <rguenther@suse.de>
7983
7984 * gimple.c (type_hash_pair_compare): Fix comparison.
7985
008bad7a
RG
79862011-05-17 Richard Guenther <rguenther@suse.de>
7987
7988 * gimple.c (iterative_hash_gimple_type): Simplify singleton
7989 case some more, fix final hash value of the non-singleton case.
7990
36461340
RG
79912011-05-17 Richard Guenther <rguenther@suse.de>
7992
7993 PR bootstrap/49013
7994 Revert
7995 2011-05-16 Richard Guenther <rguenther@suse.de>
7996
7997 * gimple.c (gimple_types_compatible_p_1): Use names of the
7998 type itself, not its main variant.
7999 (iterative_hash_gimple_type): Likewise.
8000
6b6a59f3
RG
80012011-05-17 Richard Guenther <rguenther@suse.de>
8002
8003 * gimple.c (gimple_register_canonical_type): Use the main-variant
8004 leader for computing the canonical type.
8005
4ffc4134
NC
80062011-05-17 Nick Clifton <nickc@redhat.com>
8007
a1d8754e
NC
8008 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
8009 moves.
8010
4ffc4134
NC
8011 * config/rx/rx.md: Add peephole to remove redundant extensions
8012 after loads.
39960f7a
NC
8013 (bitset_in_memory): Use rx_restricted_mem_operand.
8014 (bitinvert_in_memory): Likewise.
8015 (bitclr_in_memory): Likewise.
4ffc4134 8016
b3db92ac
KI
80172011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
8018 Nick Clifton <nickc@redhat.com>
8019
8020 * config/rx/rx.md: Add peepholes to match a register move followed
8021 by a comparison of the moved register. Replace these with an
8022 addition of zero that does both actions in one instruction.
8023
8637e32a
JJ
80242011-05-17 Jakub Jelinek <jakub@redhat.com>
8025
8026 PR target/48986
8027 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
8028 predicate to allow CONST_INT.
8029 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
8030
8023568e
JM
80312011-05-16 Joseph Myers <joseph@codesourcery.com>
8032
8033 * opts-common.c (opt_enum_arg_to_value): New.
8034 * opts.h (opt_enum_arg_to_value): Declare.
8035 * config/i386/i386.opt (fpmath): Remove.
8036 (mfpmath=): Use Enum, Init and Save.
8037 (fpmath_unit): New Enum and EnumValue entries.
8038 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
8039 name for function fpmath state.
8040 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
8041 * config/i386/i386.c: Include diagnostic.h.
8042 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 8043 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 8044 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 8045 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
8046 (x86_function_specific_save, ix86_function_specific_restore):
8047 Don't handle fpmath state specially.
8048 (ix86_function_specific_print): Pass fpmath state to
8049 ix86_target_string instead of printing in this function.
8050 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
8051 Handle enum attributes.
8052 (IX86_ATTR_ENUM, ix86_opt_enum): New.
8053 (ix86_valid_target_attribute_tree): Update option_strings
8054 handling. Handle fpmath as enum option.
8055 (ix86_can_inline_p): Update field names for function fpmath state.
8056 (ix86_expand_builtin): Update call to ix86_target_string.
8057 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
8058 (ix86_fpmath): Remove.
8059 * config/i386/t-i386 (i386.o): Update dependencies.
8060
9e8d926e
JM
80612011-05-16 Joseph Myers <joseph@codesourcery.com>
8062
8063 PR preprocessor/48677
8064 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
8065 from decoded_options[0], not from itself.
8066
f6449011
UB
80672011-05-16 Uros Bizjak <ubizjak@gmail.com>
8068
8069 * config/i386/constraints.md (z): New constraint.
8070 * config/i386/i386.c (c): New mode attribute.
8071 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
8072 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
8073 constraint for operand 0.
8074 (*call_vzeroupper): Ditto.
8075 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
8076 (*call_rex64_ms_sysv_vzeroupper): Ditto.
8077 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
8078 Use "lzm" constraint for operand 0.
8079 (*call_pop_vzeroupper): Ditto.
8080 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
8081 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
8082 constraint for operand 0.
8083 (*sibcall_vzeroupper): Ditto.
8084 (*sibcall_rex64_ms_sysv): Ditto.
8085 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
8086 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
8087 *sibcall_pop_1. Use "Uz" constraint for operand 0.
8088 (*sibcall_pop_vzeroupper): Ditto.
8089 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
8090 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
8091 mode iterator. Use "<c>zm" constraint for operand 1.
8092 (*call_value_vzeroupper): Ditto.
8093 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 8094 for operand 1.
f6449011
UB
8095 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
8096 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
8097 *call_value_pop_1. Use "lzm" constraint for operand 1.
8098 (*call_value_pop_vzeroupper): Ditto.
8099 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
8100 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
8101 mode iterator. Use "Uz" constraint for operand 1.
8102 (*sibcall_value_vzeroupper): Ditto.
8103 (*sibcall_value_rex64_ms_sysv): Ditto.
8104 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
8105 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
8106 constraint for operand 1.
8107 (*sibcall_value_pop_vzeroupper): Ditto.
8108 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
8109 and "z" constraint for operand 2.
8110 (*tls_global_dynamic_32_gnu): Ditto.
8111 (*tls_local_dynamic_base_32_gnu): Ditto.
8112 (*tls_local_dynamic_base_64): Ditto.
8113 (*tls_local_dynamic_32_once): Ditto.
8114 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
8115 Update all callers.
8116 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
8117
c11b6902
RG
81182011-05-16 Richard Guenther <rguenther@suse.de>
8119
8120 * gimple.c (gimple_types_compatible_p_1): Use names of the
8121 type itself, not its main variant.
8122 (iterative_hash_gimple_type): Likewise.
8123
1e83b5f1
RG
81242011-05-16 Richard Guenther <rguenther@suse.de>
8125
f6449011
UB
8126 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
8127 always visit pointer target and function result and argument types.
1e83b5f1 8128
62e36382
JM
81292011-05-16 Jason Merrill <jason@redhat.com>
8130
8131 PR c++/48999
8132 * tree-inline.c (copy_statement_list): Put back recursion.
8133
687027a4
GJL
81342011-05-16 Georg-Johann Lay <avr@gjlay.de>
8135
8136 PR target/27663
8137 PR target/41076
8138 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
8139 * config/avr/avr.md ("*ior<mode>qi.byte0",
8140 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
8141
f24a5190
GJL
81422011-05-16 Georg-Johann Lay <avr@gjlay.de>
8143
8144 PR target/45099
8145 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
8146 register is needed for a function argument.
8147
3066f593
RG
81482011-05-16 Richard Guenther <rguenther@suse.de>
8149
8150 * gimple.c (struct type_hash_pair): New type.
8151 (type_hash_pair_compare): New function.
f6449011 8152 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 8153
b2ab2cf4
RE
81542011-05-16 Revital Eres <revital.eres@linaro.org>
8155
f6449011 8156 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 8157
dfb737fc
UB
81582011-05-15 Uros Bizjak <ubizjak@gmail.com>
8159
8160 * config/i386/i386.md (floating point move splitters): Fix
8161 usage of standard_80387_constant_p.
f6449011 8162 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 8163
8caa1de0
UB
81642011-05-15 Uros Bizjak <ubizjak@gmail.com>
8165
8166 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8167
8a519095
EB
81682011-05-14 Eric Botcazou <ebotcazou@adacore.com>
8169
8170 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8171 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8172 (tree_ssa_lim_finalize): Likewise.
8173
479fecd3
UB
81742011-05-14 Uros Bizjak <ubizjak@gmail.com>
8175
8176 * config/i386/constraint.md (Yd, Yx): New register constraints.
8177 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
8178 Yd conditional register constraint.
8179 (*movtf_internal): Use standard_sse_constant_opcode.
8180 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
8181 Yx conditional register constraint.
8182 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
8183 Yd conditional register constraint. Use standard_sse_constant_p to
8184 check for valid SSE constants and call standard_sse_constant_opcode to
8185 output SSE insn.
8186 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8187 constants and call standard_sse_constant_opcode to output SSE insn.
8188 * config/i386/i386.c (ix86_option_ovverride_internal): Set
8189 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
8190 optimize_size is set.
8191 (standard_sse_constant_opcode): Output conditional AVX insn templates.
8192
2d8c9ad5
TB
81932011-05-14 Tobias Burnus <burnus@net-b.de>
8194
8195 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8196
411a20d6
MJ
81972011-05-13 Martin Jambor <mjambor@suse.cz>
8198
8199 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8200 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8201 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8202 (evaluate_conditions_for_ipcp_clone): Removed.
8203 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8204 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8205 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8206
dc764d10
EB
82072011-05-13 Eric Botcazou <ebotcazou@adacore.com>
8208
8209 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8210 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8211 lieu of MAY_HAVE_DEBUG_STMTS.
8212 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8213 debug statements if !MAY_HAVE_DEBUG_STMTS.
8214
9f47a24e
MT
82152011-05-13 Martin Thuresson <martint@google.com>
8216
8217 PR gcov-profile/47793
8218 * libgcov.c (gcov_exit): Support relative profile paths.
8219 * doc/invoke.texi (-fprofile-dir): Update for above change.
8220
b8a71aed
RG
82212011-05-13 Richard Guenther <rguenther@suse.de>
8222
8223 * gimple.c (gimple_canonical_types_compatible_p): Do not use
8224 type-pair caching, do not compare hashes.
8225
eb9f9259
NF
82262011-05-13 Nathan Froyd <froydnj@codesourcery.com>
8227
8228 PR middle-end/48965
8229 * tree-cfg.c (edge_to_cases_cleanup): Return true.
8230 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8231
3c6cbf7a
KT
82322011-05-13 Kai Tietz <ktietz@redhat.com>
8233
8234 * gimplify.c (gimplify_expr): Make sure operand is boolified.
8235 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8236 compatible type for TRUTH_NOT_EXPR.
8237
2e7f5dc0
L
82382011-05-13 H.J. Lu <hongjiu.lu@intel.com>
8239
dc764d10 8240 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
8241 (ix86_hard_regno_mode_ok): Change return value to bool. Use
8242 can_create_pseudo_p ().
8243
e834e95c
RG
82442011-05-13 Richard Guenther <rguenther@suse.de>
8245
8246 PR lto/48978
8247 * gimple.c (iterative_hash_gimple_type): Revert change in
8248 pointer target and function result and argument hashing.
8249
34203483
UB
82502011-05-13 Uros Bizjak <ubizjak@gmail.com>
8251
8252 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8253 (*movxf_internal_nointeger): Ditto.
8254 (*movdf_internal_rex64): Ditto.
8255 (*movdf_internal): Ditto.
8256 (*movdf_internal_nointeger): Ditto.
8257 (*movsf_internal): Ditto.
8258 (sincos splitters): Use can_create_pseudo ().
8259
7eb68c06
JM
82602011-05-13 Joseph Myers <joseph@codesourcery.com>
8261
8262 * config/i386/i386-opts.h: New.
8263 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8264 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8265 ix86_section_threshold): Remove.
8266 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8267 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8268 OPT_mbranch_cost_.
8269 (ix86_option_override_internal): Don't decode strings for options
8270 other than -march=, -mtune= and -mfpmath=. Don't allow for
8271 __attribute__ uses in remaining diagnostics for options with
34203483 8272 string arguments. Don't check for integer arguments being negative.
7eb68c06 8273 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 8274 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
8275 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8276 ix86_branch_cost, ix86_section_threshold): Remove.
8277 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8278 HeaderInclude.
8279 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8280 but not Var.
8281 (masm=): Use Enum and Init.
8282 (asm_dialect): New Enum and EnumValue entries.
8283 (mbranch-cost=): Use UInteger.
8284 (mlarge-data-threshold=): Use UInteger and Init.
8285 (mcmodel=): Use Enum and Init.
8286 (cmodel): New Enum and EnumValue entries.
8287 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8288 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8289 mregparm=): Use UInteger.
8290 (mstringop-strategy=): Use Enum and Init.
8291 (stringop_alg): New Enum and EnumValue entries.
8292 (mtls-dialect=): Use Enum and Init.
8293 (tls_dialect): New Enum and EnumValue entries.
8294 (mabi=): Use Enum and Init.
8295 (calling_abi): New Enum and EnumValue entries.
8296 (mveclibabi=): Use Enum and Init.
8297 (ix86_veclibabi): New Enum and EnumValue entries.
8298
f67e203c
NC
82992011-05-13 Nick Clifton <nickc@redhat.com>
8300
34203483
UB
8301 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8302 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 8303
221df0b6
KT
83042011-05-13 Kai Tietz <ktietz@redhat.com>
8305
8306 PR middle-end/48984
8307 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8308 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8309 (gimple_boolify): Check for cast for boolean_type_node instead for
8310 BOOLEAN_TYPE.
8311
208cb8cb
RG
83122011-05-13 Richard Guenther <rguenther@suse.de>
8313
8314 PR tree-optimization/48172
8315 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8316 multiplying by number of iterations for equal step.
8317 (vect_create_cond_for_alias_checks): Likewise.
8318
b88ecf55
AS
83192011-05-13 Andreas Schwab <schwab@redhat.com>
8320
8321 * configure.ac: Use AS_HELP_STRING throughout.
8322 * configure: Regenerate.
8323
569b527e
L
83242011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8325
34203483 8326 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
8327 (ix86_emit_restore_regs_using_mov): Likewise.
8328 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8329
8b9a1428
AS
83302011-05-12 Anatoly Sokolov <aesok@post.ru>
8331
8332 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8333 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8334 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8335 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8336 RTX_OK_FOR_OLO10_P): ...here.
8337 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8338 SYMBOLIC_CONST.
8339
1d15f620
KT
83402011-05-12 Kai Tietz <ktietz@redhat.com>
8341
8342 * gimplify.c (gimple_boolify): Re-boolify expression
8343 arguments even if expression type is of kind BOOLEAN_TYPE.
8344 (gimplify_boolean_expr): Removed.
8345 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8346 and XOR. Additional take care that we keep expression's type.
8347 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8348 of TRUTH_AND|OR|XOR_EXPR.
8349
c2b5fc8d
JJ
83502011-05-12 Jakub Jelinek <jakub@redhat.com>
8351
8352 PR tree-optimization/48975
8353 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8354 on all bbs here and free and clear ifc_bbs at the end.
8355
61332f77
RG
83562011-05-12 Richard Guenther <rguenther@suse.de>
8357
8358 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8359 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8360 until after simple checks.
8361 (gimple_types_compatible_p): Likewise.
8362 (iterative_hash_gimple_type): Always hash pointer targets
8363 and function return and argument types.
8364 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8365 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8366 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8367 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8368 completely in the simple compare section.
8369 (gimple_register_canonical_type): Query the cache again after
8370 registering.
8371
e2a3a5f1
RG
83722011-05-12 Richard Guenther <rguenther@suse.de>
8373
8374 PR tree-optimization/48172
8375 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8376 the number of iterations from the segment size calculation.
8377 (vect_create_cond_for_alias_checks): Adjust.
8378
2c703f3a
JJ
83792011-05-12 Jakub Jelinek <jakub@redhat.com>
8380
8381 PR debug/48967
8382 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8383 if validate_subreg fails.
8384
83852011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
8386
8387 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8388 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8389 early.
8390
87e91fca
DD
83912011-05-12 DJ Delorie <dj@redhat.com>
8392
d53903d6 8393 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
8394 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8395 created builtin into rx_builtins array.
8396 (rx_builtin_decl): New function.
34203483 8397 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 8398
5f2f13fd
DD
83992011-05-12 DJ Delorie <dj@redhat.com>
8400 Nick Clifton <nickc@redhat.com>
8401
8402 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8403 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8404 (rx_is_legitimate_address): Add pre-decrement and post-increment
8405 addressing in HImode and QImode. Fix test for out of range
8406 REG+INT addressing.
87e91fca 8407 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 8408 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 8409 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 8410 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 8411
57421f45
JM
84122011-05-11 Jason Merrill <jason@redhat.com>
8413
8414 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8415
898c90c0
EB
84162011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8417
8418 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8419 reindent the subsequent block.
8420
79bec923
ST
84212011-05-11 Satoru Takabayashi <satorux@google.com>
8422 Paul Pluzhnikov <ppluzhnikov@google.com>
8423
34203483 8424 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
8425 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8426 * config.in: Add LINKER_HASH_STYLE.
8427 * configure.ac: Add --with-linker-hash-style.
8428 * configure: Regenerate.
79bec923 8429
d0340959
RG
84302011-05-11 Richard Guenther <rguenther@suse.de>
8431
8432 PR middle-end/48964
8433 * gimple.c (iterative_hash_canonical_type): Fix typo.
8434
cb032fee
UB
84352011-05-11 Uros Bizjak <ubizjak@gmail.com>
8436
8437 * config/i386/i386.c (legitimize_tls_address)
479fecd3 8438 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
8439 expanders directly for TARGET_GNU2_TLS. Determine pic and
8440 __tls_get_addr symbol reference here. Update call to
8441 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 8442 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
8443 expanders directly for TARGET_GNU2_TLS. Determine
8444 __tls_get_addr symbol reference here. Update call to
8445 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8446 unique UNSPEC REG_EQUIV to libcall block.
8447 (ix86_tls_get_addr): Declare static.
8448 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8449 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8450 Do not determine pic and __tls_get_addr symbol reference here. Do not
8451 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8452 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8453 (tls_global_dynamic_64): Add operand 2. Do not determine
8454 __tls_get_addr symbol reference here. Do not call
8455 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8456 (tls_local_dynamic_base64): Ditto for operand 1.
8457
6d3cc8f0
EB
84582011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8459
8460 * function.c (expand_function_start): Initialize stack_check_probe_note
8461 only if the generic stack checking mechanism is used.
8462
51e020fc
RG
84632011-05-11 Richard Guenther <rguenther@suse.de>
8464
8465 PR tree-optimization/15256
8466 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8467 (A & B) | C, combine (A op CST1) op CST2.
8468 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8469 visit assigns that have uses.
8470
51545682
NF
84712011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8472
cb032fee 8473 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
8474 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8475 (unpack_ts_type_common_value_fields): ...this. Update comment.
8476 (unpack_value_fields): Adjust for renaming.
8477 (lto_input_ts_type_tree_pointers): Split into...
8478 (lto_input_ts_type_common_tree_pointer): ...this and...
8479 (lto_input_ts_type_non_common_tree_pointers): ...this.
8480 (lto_input_tree_pointers): Adjust for above split.
8481 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8482 (pack_ts_type_common_value_fields): ...this. Update comment.
8483 (lto_output_ts_type_tree_pointers): Split into...
8484 (lto_output_ts_type_common_tree_pointers): ...this and...
8485 (lto_output_ts_type_non_common_tree_pointers): ...this.
8486 (lto_output_tree_pointers): Adjust for above split.
8487 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8488 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8489 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8490 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8491 Define.
8492 (struct tree_type): Split into...
8493 (struct tree_type_common: ...this and...
8494 (struct tree_type_with_lang_specific): ...this and...
8495 (struct tree_type_non_common): ...this. Adjust accessor macros
8496 accordingly.
8497 (TYPE_VALUES_RAW): Define.
8498 (union tree_node): Update for above changes.
8499 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8500 TS_TYPE_NON_COMMON.
8501 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8502 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8503 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8504 * treestructu.def (TS_TYPE): Remove.
8505 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8506 Define.
8507
b03c3082
JJ
85082011-05-11 Jakub Jelinek <jakub@redhat.com>
8509
8510 PR debug/48159
8511 * tree-ssa.c (reset_debug_uses): New function.
8512 * tree-flow.h (reset_debug_uses): New prototype.
8513 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8514 * tree-loop-distribution.c (generate_loops_for_partition): Call
8515 reset_debug_uses on the stmts that will be removed. Keep around
8516 all debug stmts, don't count them as bits in partition bitmap.
8517 (generate_builtin): Don't count debug stmts or labels as bits in
8518 partition bitmap.
8519
b5e04de5
RG
85202011-05-11 Richard Guenther <rguenther@suse.de>
8521
8522 * gimple.c (gimple_type_hash_1): Merge with ...
8523 (gimple_type_hash): ... this.
8524 (gtc_visit): Remove mode parameter and simplify accordingly.
8525 (gimple_types_compatible_p_1): Likewise.
8526 (gimple_types_compatible_p): Likewise.
8527 (iterative_hash_gimple_type): Likewise.
8528 (visit): Likewise.
8529 (gimple_type_eq): Adjust.
8530
fc6970e4
RE
85312011-05-11 Revital Eres <revital.eres@linaro.org>
8532
8533 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8534 enters the branch create an anti edge in the opposite direction
8535 to prevent the creation of reg-moves.
8536 * modulo-sched.c: Adjust comment to reflect the fact we are
8537 scheduling closing branch.
8538 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8539 (stage_count): New field in struct partial_schedule.
8540 (calculate_stage_count): New function.
8541 (normalize_sched_times): Rename to reset_sched_times and handle
8542 incrementing the sched time of the nodes by a constant value
8543 passed as parameter.
8544 (duplicate_insns_of_cycles): Skip closing branch.
8545 (sms_schedule_by_order): Schedule closing branch.
8546 (ps_insn_find_column): Handle closing branch.
8547 (sms_schedule): Call reset_sched_times and adjust the code to
8548 support scheduling of the closing branch.
8549 (ps_insert_empty_row): Update calls to normalize_sched_times
8550 and rotate_partial_schedule functions.
8551
41a58a92
RG
85522011-05-11 Richard Guenther <rguenther@suse.de>
8553
8554 PR middle-end/48953
8555 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8556
e9f8dcf9
JM
85572011-05-11 Joseph Myers <joseph@codesourcery.com>
8558
cb032fee
UB
8559 * opts.c (finish_options): Move warning settings from process_options.
8560 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 8561
10c224a9
RG
85622011-05-11 Richard Guenther <rguenther@suse.de>
8563
8564 PR tree-optimization/18041
8565 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8566 (simplify_bitwise_binary): ... this. Handle operand conversions
8567 by applying them to the result instead.
8568 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8569
825b27de
RG
85702011-05-11 Richard Guenther <rguenther@suse.de>
8571
8572 * gimple.c (gimple_canonical_types_compatible_p): Split out
8573 from gimple_types_compatible_p and friends. Do not recurse
8574 to pointed-to types.
8575 (gimple_canonical_type_eq): Use it.
8576 (iterative_hash_canonical_type): Split out from
8577 iterative_hash_gimple_type and friends. Do not recurse
8578 to pointed-to types.
8579 (gimple_canonical_type_hash): Use it, allocate the hash here.
8580
ca756625
RE
85812011-05-11 Revital Eres <revital.eres@linaro.org>
8582
8583 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8584 recognizing doloop.
8585
b8abece3
RE
85862011-05-11 Revital Eres <revital.eres@linaro.org>
8587
8588 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8589 instead of PREV_INSN.
8590
ce7b3761
RE
85912011-05-11 Revital Eres <revital.eres@linaro.org>
8592
8593 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8594 * loop-doloop.c (doloop_condition_get): Likewise.
8595 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8596 (doloop_end): New.
8597 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8598
a9dc9d37
NF
85992011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8600
8601 * tree.def (CASE_LABEL_EXPR): Add an operand.
8602 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8603
96703596
JM
86042011-05-10 Joseph Myers <joseph@codesourcery.com>
8605
8606 * c-decl.c (c_override_global_bindings_to_false): Remove.
8607 (global_bindings_p): Don't check
8608 c_override_global_bindings_to_false.
8609 * c-tree.h (c_override_global_bindings_to_false): Remove.
8610 * c-typeck.c (composite_type): Don't set
8611 c_override_global_bindings_to_false.
8612
dbcc9f08
MM
86132011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8614
8615 PR target/48857, 48495
8616 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8617 (VSX_MODE): Ditto.
8618 (VSX_MOVE_MODE): Ditto.
8619 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8620 VSX vector types. Add V2DImode.
8621 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8622 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8623 (MODES_TIEABLE_P): Ditto.
8624
8625 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8626 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8627 VSX_VECTOR_MODE.
8628 (init_cumulative_args): Ditto.
8629 (rs6000_function_arg_boundary): Ditto.
8630 (rs6000_function_arg_advance_1): Ditto.
8631 (rs6000_function_arg): Ditto.
8632 (rs6000_function_ok_for_sibcall): Ditto.
8633 (emit_frame_save): Ditto.
8634 (rs6000_function_value): Ditto.
8635 (rs6000_libcall_value): Ditto.
8636
4a68b4ca
JM
86372011-05-10 Joseph Myers <joseph@codesourcery.com>
8638
8639 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8640 i386/darwin-lib.h to $libgcc_tm_file.
8641 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8642
bcb521e9
JM
86432011-05-10 Joseph Myers <joseph@codesourcery.com>
8644
8645 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8646
f10d3ac9
JM
86472011-05-10 Joseph Myers <joseph@codesourcery.com>
8648
cb032fee 8649 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
8650 * config/rs6000/rs6000-tables.opt: New file (generated).
8651 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8652 rs6000/rs6000-tables.opt to extra_options.
8653 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8654 * config/rs6000/rs6000.c (rs6000_select): Remove.
8655 (processor_target_table): Move contents to rs6000-cpus.def.
8656 (darwin_rs6000_override_options): Check
8657 global_options_set.x_rs6000_cpu_index instead of
8658 rs6000_select[1].string.
8659 (rs6000_option_override_internal): Likewise.
8660 (rs6000_handle_option): Don't assert that global structures are in
8661 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8662 (rs6000_default_cpu): New variable.
8663 (rs6000_file_start): Set it instead of local default_cpu. Check
8664 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8665 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8666 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8667 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8668 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8669 rs6000_select): Remove.
8670 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8671 Remove.
8672 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8673 * config/rs6000/t-rs6000
8674 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8675 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8676 global_options_set.x_rs6000_cpu_index instead of
8677 rs6000_select[1].string.
8678 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8679 global_options_set.x_rs6000_cpu_index instead of
8680 rs6000_select[1].string.
8681
80cf2e08
JM
86822011-05-10 Joseph Myers <joseph@codesourcery.com>
8683
8684 * config.gcc (libgcc_tm_file): Define instead of including files
8685 from ../../libgcc/config/ in tm_file.
cb032fee 8686 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
8687 * configure: Regenerate.
8688 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8689 libgcc_tm.h, cs-libgcc_tm.h): New.
8690 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8691 (clean): Remove libgcc_tm.h.
8692 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8693 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8694 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8695
fd01a351
GJL
86962011-05-10 Georg-Johann Lay <avr@gjlay.de>
8697
8698 PR target/48896
8699 * config/avr/avr.c (avr_ret_register): Return unsigned int
8700 instead of int.
8701 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8702 it to avr_libcall_value.
8703 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8704 expand_expr.
8705 (avr_expand_binop_builtin): Ditto.
8706 (avr_expand_unop_builtin): Ditto.
8707
34cc3c86
DD
87082011-05-10 DJ Delorie <dj@redhat.com>
8709
8710 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8711 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8712 * config/rx/rx.c (rx_align_for_label): Add label and
8713 uses_threshold parameters. Do not align when the label is not
8714 used enough.
8715 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8716
be173289
RG
87172011-05-10 Richard Guenther <rguenther@suse.de>
8718
8719 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8720 a series of conversions and apply foldings similar to what
8721 fold-const does.
8722 (tree_ssa_forward_propagate_single_use_vars): Call it.
8723
e7f78021
JJ
87242011-05-10 Jakub Jelinek <jakub@redhat.com>
8725
6ae70ea2
JJ
8726 PR tree-optimization/48611
8727 PR tree-optimization/48794
8728 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8729 referenced from RESX or EH_DISPATCH arguments.
8730
e7f78021
JJ
8731 PR debug/48928
8732 * dfp.c (decimal_to_decnumber): Handle conversion from
8733 dconst{1,2,m1,half}.
8734
fca132b9
UB
87352011-05-09 Uros Bizjak <ubizjak@gmail.com>
8736
8737 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8738 for !flag_prefer_avx128.
8739 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8740
e4c03378
EB
87412011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8742
8743 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8744 (fold_ternary_loc): Use expr_location_or.
8745
805d6a75
L
87462011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8747
8748 PR debug/48853
8749 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8750 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8751 Pmode and mem_mode is not VOIDmode.
8752
e4c03378 87532011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 8754
e4c03378
EB
8755 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8756 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 8757
51e7f377
UB
87582011-05-09 Uros Bizjak <ubizjak@gmail.com>
8759
8760 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8761 (const_pow2_1_to_8_operand): Ditto.
8762 (const_pow2_1_to_128_operand): Ditto.
8763 (const_pow2_1_to_32768_operand): Ditto.
8764 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8765 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8766 in insn constraint to check integer value of operand 3.
8767 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8768
8769 (PINSR_MODE): New mode iterator.
8770 (sse2p4_1): New mode attribute.
8771 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8772 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8773 iterator. Use const_int_operand instead of
8774 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8775 exact_log2 in insn constraint to check integer value of operand 3.
8776
87772011-05-09 Uros Bizjak <ubizjak@gmail.com>
8778
8779 * config/i386/sse.md (blendbits): Remove mode attribute.
8780 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8781 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8782 Check integer value of operand 3 in insn constraint.
8783
0ca8de87
RG
87842011-05-09 Richard Guenther <rguenther@suse.de>
8785
8786 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8787 for diagnostics.
8788 (lto_symtab_merge): Likewise. Do not register types here.
8789 (lto_symtab_merge_decls_2): Likewise.
8790 (lto_symtab_merge_decls_1): Likewise.
8791 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8792 * gimple.c (enum gtc_mode): Declare.
8793 (gimple_types_compatible_p): Make static.
8794
a9e6994a
AK
87952011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8796
8797 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8798 temporary register to match Pmode.
8799
fb55d62e
UB
88002011-05-09 Uros Bizjak <ubizjak@gmail.com>
8801
8802 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8803 and *vec_concatv4si_1_avx.
8804
eb1485a6
UB
88052011-05-09 Uros Bizjak <ubizjak@gmail.com>
8806
8807 PR rtl-optimization/48927
8808 * ira-conflicts.c (commutative_constraint_p): Use
8809 recog_data.alternative_enabled_p to disable alternatives where
8810 "enabled" attribute is false.
8811 (get_dup_num): Ditto.
8812 * ira-lives.c (single_reg_class): Ditto.
8813 (ira_implicitly_set_insn_hard_regs): Ditto.
8814
c46d001a
EB
88152011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8816
8817 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8818 (dataflow_set_preserve_mem_locs): Likewise.
8819
88202011-05-09 Philipp Thomas <pth@suse.de>
8821
6d9e7c41
PT
8822 * config/mep/mep.c (mep_validate_vliw): Syntax description
8823 should not be translated.
8824
d371df6f
JM
88252011-05-09 Joseph Myers <joseph@codesourcery.com>
8826
8827 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8828 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 8829 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
8830 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8831 MIPS_ARCH_OPTION_NATIVE): Define.
8832 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8833 mips-cpus.def.
8834 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8835 mips_parse_cpu): Remove.
8836 (mips_cpu_info_from_opt, mips_default_arch): New.
8837 (mips_handle_option): Don't assert that global structures are in
8838 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8839 (mips_option_override): Use new variables and functions to set
eb1485a6 8840 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
8841 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8842 definition.
8843 * config/mips/mips.opt (march=): Use ToLower and Enum.
8844 (mips): Use ToLower, Enum and Var.
8845 (mtune=): Use ToLower and Enum.
8846 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8847
4fc07af9
JH
88482011-05-08 Jan Hubicka <jh@suse.cz>
8849
8850 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8851 Arrange type pairs to be UID ordered.
8852 (gimple_lookup_type_leader): Make inline.
8853
2cf320a8
NC
88542011-05-09 Nick Clifton <nickc@redhat.com>
8855
61d6def5
NC
8856 PR target/48899
8857 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8858 PROCESSOR_DEFAULT.
8859
2cf320a8
NC
8860 PR target/48897
8861 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8862 variable 's'.
8863
4f82319d
CLT
88642011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8865
8866 * combine.c (simplify_comparison): Abstract out parts into...
8867 (simplify_compare_const): ... new function.
8868 (try_combine): Generalize parallel arithmetic/compare combining
8869 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8870
74605a11
JH
88712011-05-08 Jan Hubicka <jh@suse.cz>
8872
8873 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
8874 (cgraph_create_virtual_clone): Call hooks once virtual clone
8875 is finished.
74605a11 8876 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
8877 * ipa-cp.c (ipcp_estimate_growth): Use
8878 estimate_ipcp_clone_size_and_time.
74605a11
JH
8879 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8880 * lto-cgraph.c (input_node): Update.
8881 * ipa-inline.c (recursive_inlining): Update.
8882 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8883 (evaluate_conditions_for_known_args): Break out from ...
8884 (evaluate_conditions_for_edge): ... here.
8885 (evaluate_conditions_for_ipcp_clone): New function.
8886 (inline_node_duplication_hook): Update clone summary based
8887 on parameter map.
8888 (estimate_callee_size_and_time): Rename to ...
8889 (estimate_node_size_and_time): take NODE instead of EDGE;
8890 take POSSIBLE_TRUTHS as argument.
8891 (estimate_callee_size_and_time): Update.
8892 (estimate_ipcp_clone_size_and_time): New function.
8893 (do_estimate_edge_time): Update.
8894
5c049507
RG
88952011-05-08 Richard Guenther <rguenther@suse.de>
8896
8897 PR middle-end/48908
8898 PR middle-end/48905
8899 * expmed.c (expand_shift_1): Compute adjusted constant shift
8900 amount manually.
8901
f64c36ba
EB
89022011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8903
8904 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8905
c461a957
EB
89062011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8907
8908 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8909
7c74e556
JW
89102011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8911
8912 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8913
b4c0a884
JH
89142011-05-07 Jan Hubicka <jh@suse.cz>
8915
a9bcb3f0
EB
8916 * ipa-inline-transform.c (inline_call): Account when program size
8917 decreases.
b4c0a884 8918 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
8919 (edge_badness): Reorganize to be power 2 based; fix thinko when
8920 computing badness for negative growth; update comments to match
8921 reality; better dumps.
b4c0a884 8922
c99c0026
EB
89232011-05-07 Eric Botcazou <ebotcazou@adacore.com>
8924
8925 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8926 type to bool and adjust comment.
8927 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8928 (fold_mathfn_compare): Remove calls to global_bindings_p.
8929 (fold_inf_compare): Likewise.
8930 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8931 * c-tree.h (global_bindings_p): Adjust prototype.
8932 * c-decl.c (global_bindings_p): Return bool and simplify.
8933
1400c8e5
ZD
89342011-05-07 Zdenek Dvorak <ook@ucw.cz>
8935
8936 PR tree-optimization/48837
8937 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8938 when accumulator transformation is performed.
8939
5d0878e7
JH
89402011-05-06 Jan Hubicka <jh@suse.cz>
8941
a9bcb3f0
EB
8942 * i386.h (ix86_tune_indices): Add
8943 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 8944 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
8945 * i386.c (initial_ix86_tune_features): Add
8946 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
8947 (software_prefetching_beneficial_p): Remove predicate.
8948 (ix86_option_override_internal): Use new macro.
8949
58696ce5
JH
89502011-05-06 Jan Hubicka <jh@suse.cz>
8951
8952 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8953
c47d0034
JH
89542011-05-06 Jan Hubicka <jh@suse.cz>
8955
8956 * cgraph.c (cgraph_add_thunk): Create real function node instead
8957 of alias node; finalize it and mark needed/reachale; arrange visibility
8958 to be right and add it into the corresponding same comdat group list.
8959 (dump_cgraph_node): Dump thunks.
8960 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
8961 cgraph_function_with_gimple_body_p,
8962 cgraph_first_function_with_gimple_body,
c47d0034
JH
8963 cgraph_next_function_with_gimple_body): New functions.
8964 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8965 New macros.
8966 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8967 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8968 * cgraphunit.c (cgraph_finalize_function): Only look into possible
8969 devirtualization when optimizing.
8970 (verify_cgraph_node): Verify thunks.
8971 (cgraph_analyze_function): Analyze thunks.
8972 (cgraph_mark_functions_to_output): Output thunks only in combination
8973 with function they are assigned to.
8974 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8975 alias into normal node.
8976 (assemble_thunks): New functoin.
8977 (cgraph_expand_function): Use it.
8978 * lto-cgraph.c (lto_output_node): Stream thunks.
8979 (input_overwrite_node): Stream in thunks.
8980 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8981 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8982 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8983 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8984 (inline_analyze_function): Do not care about thunk jump functions.
8985 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
8986 * ipa-prop.c (ipa_prop_write_jump_functions): Use
8987 cgraph_function_with_gimple_body_p.
8988 * passes.c (do_per_function_toporder): Use
8989 cgraph_function_with_gimple_body_p.
c47d0034
JH
8990 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8991 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8992 (function_called_by_processed_nodes_p): Likewise.
8993
d8f426ec
JM
89942011-05-06 Joseph Myers <joseph@codesourcery.com>
8995
8996 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8997 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8998 entries.
8999 (mabi=): Replace with separate entries for mabi=altivec,
9000 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
9001 mabi=ieeelongdouble and mabi=ibmlongdouble.
9002 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
9003 check for -mabi=spe without SPE ABI support here.
9004 (rs6000_handle_option): Replace OPT_mabi_ handling with
9005 OPT_mabi_altivec and OPT_mabi_spe handling.
9006
80bde45b
CC
90072011-05-06 Cary Coutant <ccoutant@google.com>
9008
9009 * dwarf2out.c (contains_subprogram_definition): New function.
9010 (should_move_die_to_comdat): Call it.
9011
a91926b9
JL
90122011-05-06 Jeff Law <law@redhat.com>
9013
9014 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
9015 remove_ctrl_stmt_and_useless_edges.
9016 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
9017 (fixup_template_block, thread_single_edge): Likewise.
9018 (mark_threaded_blocks): Use THREAD_TARGET.
9019
1fc1b66d
AM
90202011-05-06 Alan Modra <amodra@gmail.com>
9021
9022 PR target/48900
9023 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
9024 const0_rtx as the arg to the dummy __tls_get_addr libcall.
9025
e194de64
UB
90262011-05-06 Uros Bizjak <ubizjak@gmail.com>
9027
9028 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
9029 constraint modifier to "r".
9030
d740dc9e
JM
90312011-05-06 Joseph Myers <joseph@codesourcery.com>
9032
9033 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
9034 fall through for OPT_mcmodel_.
9035
cab78b15
AK
90362011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9037
9038 * config/s390/s390.c (s390_asm_trampoline_template): Comment
9039 instruction sizes.
e194de64 9040 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 9041
ee6824ae
RR
90422011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9043
eb1485a6
UB
9044 PR target/47930
9045 * config/arm/arm.opt (marm): Document it.
9046 (mthumb): Reject negative variant.
ee6824ae 9047
9ef58464
UB
90482011-05-06 Uros Bizjak <ubizjak@gmail.com>
9049
9050 PR target/48898
9051 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
9052 Fix typo in "ccvt" variable name.
9053
155b6176
TG
90542011-05-06 Tristan Gingold <gingold@adacore.com>
9055
9056 PR target/48895
9057 * config/vms/vms-ar.c (main): Remove cwd variable.
9058
3becc47b
JJ
90592011-05-06 Jakub Jelinek <jakub@redhat.com>
9060
9061 PR debug/48902
9062 * var-tracking.c (prepare_call_arguments): Move else before #endif.
9063
3d528853
NF
90642011-05-05 Nathan Froyd <froydnj@codesourcery.com>
9065
9066 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
9067 * gimplify.c (gimplify_switch_expr): Likewise.
9068 * omp-low.c (expand_omp_sections): Likewise.
9069 * tree-eh.c (lower_try_finally_switch): Likewise.
9070 (lower_eh_dispatch): Likewise.
9071 * tree.h (build_case_label): Declare.
9072 * tree.c (build_case_label): Define.
9073
deb5046b
JM
90742011-05-05 Jason Merrill <jason@redhat.com>
9075
9076 PR c++/40975
9077 * tree-inline.c (copy_tree_r): Use copy_statement_list.
9078 (copy_statement_list): Don't recurse.
9079 * stor-layout.c (copy_self_referential_tree_r): Don't allow
9080 STATEMENT_LIST.
9081
013c0411
JM
90822011-05-05 Joseph Myers <joseph@codesourcery.com>
9083
9084 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
9085 through from -mfpu= handling.
9086 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
9087
a0905f8b
BS
90882011-05-05 Bernd Schmidt <bernds@codesourcery.com>
9089
9090 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
9091 POST_MODIFY.
9092
fc4538e4
SE
90932011-05-05 Steve Ellcey <sje@cup.hp.com>
9094
9095 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
9096 for 11.31.
9097 (hppa[12]*-*-hpux11*): Ditto.
9098 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
9099 * config/ia64/hpux-unix2003.h: New.
9100 * config/pa/pa-hpux1131.opt: New.
9101 * config/pa/pa-hpux1131.h: New.
9102 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
9103 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 9104 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 9105
1e30c578
JJ
91062011-05-05 Jakub Jelinek <jakub@redhat.com>
9107
9108 PR debug/48853
9109 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
9110 instead of mode as 3rd argument to recursive call.
9111 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
9112 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
9113 VOIDmode.
9114 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
9115 don't give up if mode is Pmode and mem_mode is not VOIDmode.
9116 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
9117 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
9118
d19eb620
JB
91192011-05-05 Julian Brown <julian@codesourcery.com>
9120
9121 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
9122 parenthesis in D-register case.
9123
c860fe8c
JM
91242011-05-05 Joseph Myers <joseph@codesourcery.com>
9125
9126 * opt-functions.awk (var_type_struct): Handle Enum options.
9127 * optc-gen.awk: Don't check range of variables of character type.
9128 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
9129 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
9130 rs6000_sdata_name, rs6000_explicit_options): Remove.
9131 (rs6000_option_override_internal): Check for -malign-power here.
9132 Use global_options_set instead of rs6000_explicit_options.
9133 (rs6000_parse_fpu_option): Remove.
9134 (rs6000_handle_option): Access variables via opts and opts_set
9135 pointers. Use error_at and warning_at. Add fall-through
9136 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
9137 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
9138 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
9139 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
9140 here. Don't use rs6000_parse_fpu_option.
9141 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
9142 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
9143 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
9144 (mrecip=): Use Var.
9145 (mspe): Use Var and Save.
9146 (mtraceback=): Use Enum and Var.
9147 (rs6000_traceback_type): New Enum and EnumValue entries.
9148 (mfloat-gprs=): Use Enum, Var and Save.
9149 (rs6000_float_gprs): New Enum and EnumValue entries.
9150 (mlong-double-): use Var and Save.
9151 (msched-costly-dep=, minsert-sched-nops=): Use Var.
9152 (malign-): Use Enum and Var.
9153 (rs6000_alignment_flags): New Enum and EnumValue entries.
9154 (mfpu=): Use Enum.
9155 (fpu_type_t): New Enum and EnumValue entries.
9156 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9157 global_options_set instead of rs6000_explicit_options.
9158 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9159 global_options_set instead of rs6000_explicit_options.
9160 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9161 global_options_set instead of rs6000_explicit_options.
9162 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9163 global_options_set instead of rs6000_explicit_options.
9164 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9165 global_options_set instead of rs6000_explicit_options.
9166 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9167 global_options_set instead of rs6000_explicit_options.
9168 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9169 definition.
9170 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9171 global_options_set instead of rs6000_explicit_options.
9172 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9173 (rs6000_cmodel): New Enum and EnumValue entries.
9174 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9175 global_options_set instead of rs6000_explicit_options.
9176 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9177 (mtls-size=): Use Enum and Var.
9178 (rs6000_tls_size): New Enum and EnumValue entries.
9179
0691dde9
MM
91802011-05-05 Michael Matz <matz@suse.de>
9181
9182 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9183 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9184 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9185 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9186 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9187 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9188 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9189 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9190 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9191 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9192 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9193 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9194 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9195 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9196 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9197 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9198
86529a49
RG
91992011-05-05 Richard Guenther <rguenther@suse.de>
9200
9201 * expmed.c (expand_variable_shift): Rename to ...
9202 (expand_shift_1): ... this. Take an expanded shift amount.
9203 For rotates recurse directly not building trees for the shift amount.
9204 (expand_variable_shift): Wrap around expand_shift_1.
9205 (expand_shift): Adjust.
9206
d0228c2e
JJ
92072011-05-05 Jakub Jelinek <jakub@redhat.com>
9208
9209 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9210
907a08d9
EB
92112011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9212
9213 * tree.h (get_pending_sizes): Remove prototype.
9214 (put_pending_size): Likewise.
9215 (put_pending_sizes): Likewise.
9216 * stor-layout.c (pending_sizes): Delete.
9217 (get_pending_sizes): Likewise.
9218 (put_pending_size): Likewise.
9219 (put_pending_sizes): Likewise.
9220 (variable_size): Do not call put_pending_size and tidy up.
9221 * function.h (struct function): Remove dont_save_pending_sizes_p.
9222 * lto-streamer-in.c (input_function): Do not stream it.
9223 * lto-streamer-out.c (output_function): Likewise.
9224 * tree-inline.c (initialize_cfun): Do not copy it.
9225 * c-decl.c (store_parm_decls): Do not set it.
9226 * omp-low.c (create_task_copyfn): Likewise.
9227 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9228
386d9c57
UB
92292011-05-05 Uros Bizjak <ubizjak@gmail.com>
9230
9231 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9232 conditions.
9233 (*movdf_internal): Ditto.
9234 (*movdf_internal_nointeger): Ditto.
9235 (*movsf_internal): Ditto.
9236
a04a722b
JM
92372011-05-05 Joseph Myers <joseph@codesourcery.com>
9238
9239 * c-decl.c (finish_decl): Don't call get_pending_sizes.
9240 (grokparm): Add parameter expr. Pass it to grokdeclarator.
9241 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
9242 (c_variable_size): Remove.
9243 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
9244 call put_pending_sizes.
9245 (get_parm_info): Add parameter expr. Use it to set
9246 arg_info->pending_sizes.
9247 (store_parm_decls): Use arg_info->pending_sizes instead or calling
9248 get_pending_sizes.
9249 * c-parser.c (c_parser_parms_declarator): Update call to
9250 c_parser_parms_list_declarator.
9251 (c_parser_parms_list_declarator): Take parameter expr. Update
9252 call to push_parm_decl. Update recursive call. Don't call
9253 get_pending_sizes. Update calls to get_parm_info.
9254 (c_parser_objc_method_definition): Update calls to
9255 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 9256 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
9257 (c_parser_objc_method_decl): Add parameter expr. Update call to
9258 grokparm.
386d9c57 9259 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
9260 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9261 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9262
c92a6f97
MH
92632011-05-05 Michael Hope <michael.hope@linaro.org>
9264
386d9c57
UB
9265 PR pch/45979
9266 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9267 __ARM_EABI__ hosts.
c92a6f97 9268
07ea0048
UW
92692011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9270
9271 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9272 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9273 (spu_output_mi_thunk): New function.
9274
d634bfa1
RO
92752011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9276
9277 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9278 targetm.asm_out.print_operand.
9279 * config/sol2.c: Include target.h.
9280
40fda55b
JH
92812011-05-04 Jan Hubicka <jh@suse.cz>
9282
9283 * ipa-inline.c (reset_edge_caches): New function.
9284 (update_caller_keys): Add check_inlinablity_for; do not
9285 reset edge caches; remove now unnecesary loop.
386d9c57 9286 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
9287 (update_all_callee_keys): Likewise.
9288 (inline_small_functions): Sanity check cache; update code
9289 recomputing it.
9290
0360f70d
BS
92912011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9292
9293 PR rtl-optimization/47612
9294 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9295 as the last insn of the sequence to be moved.
9296
7a994646
TB
92972011-05-04 Tobias Burnus <burnus@net-b.de>
9298
9299 PR fortran/48864
9300 * doc/invoke.texi (Ofast): Document that it
9301 enables Fortran's -fno-protect-parens.
9302
7a2f7208
UB
93032011-05-04 Uros Bizjak <ubizjak@gmail.com>
9304
9305 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9306
a2d42931
EB
93072011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9308
9309 * stor-layout.c (variable_size): Do not issue errors.
9310
f81b1a3d
RG
93112011-05-04 Richard Guenther <rguenther@suse.de>
9312
9313 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9314 for array-ref indices.
9315 (tree_coverage_counter_addr): Likewise.
9316 (build_fn_info_type): Use size_int for index types.
9317 (build_gcov_info): Likewise.
9318
c62c040f
RG
93192011-05-04 Richard Guenther <rguenther@suse.de>
9320
9321 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9322 to build_int_cst.
9323 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9324 for constructor indices.
9325 (push_init_level): Likewise.
9326
1e3287d0
RG
93272011-05-04 Richard Guenther <rguenther@suse.de>
9328
9329 * explow.c (promote_mode): Move variable declarations before code.
9330
6c32445b
NF
93312011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9332
9333 * tree.h (build_function_type_array): Declare.
9334 (build_varargs_function_type_array): Declare.
9335 (build_function_type_vec, build_varargs_function_type_vec): Define.
9336 * tree.c (build_function_type_array_1): New function.
9337 (build_function_type_array): New function.
9338 (build_varargs_function_type_array): New function.
9339
fdabf269
RS
93402011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9341
9342 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9343 before setting STMT_VINFO_TYPE.
9344
a207915a
UW
93452011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9346
9347 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9348 instead of spu_pass_by_reference.
9349
5e617be8
AK
93502011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9351
9352 * calls.c (emit_library_call_value_1): Invoke
9353 promote_function_mode hook on libcall arguments.
9354 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9355 argument being NULL.
9356 * targhooks.c (default_promote_function_mode): Lisewise.
9357 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9358 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9359
9360 * doc/tm.texi: Document that TYPE argument might be NULL.
9361
486d04be
SH
93622011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9363
9364 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9365
9b19b026
SH
93662011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9367
9368 From Bernd Schmidt
9369 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9370
502bc3df
RO
93712011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9372
9373 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9374 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9375 Move ...
9376 * mips-tfile.c: ... here.
9377 Don't include coretypes.h, tm.h, filenames.h.
9378 (saber_stop): Remove definition and all calls.
9379 [__SABER__]: Remove.
9380 (__LINE__): Remove default.
9381 (Size_t, Ptrdiff_t): Remove definitions.
9382 Replace by size_t, ptrdiff_t.
9383 [!MIPS_DEBUGGING_INFO]: Remove.
9384 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9385 (progname): Add const.
9386 (STATIC): Remove.
9387 Replace all uses by static.
9388 (ALIGN_SYMTABLE_OFFSET): Remove default.
9389 * mips-tdump.c: Don't include coretypes.h, tm.h.
9390 Remove !MIPS_IS_STAB guard.
9391 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9392 $(TM_H), filenames.h dependencies.
9393 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9394
991eb6ef
SH
93952011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9396
9397 From Jie Zhang
9398 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9399 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9400
420ccc84
SH
94012011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9402
9403 From Bernd Schmidt
9404 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9405 account and save/restore RETS.
9406 (PROFILE_BEFORE_PROLOGUE): Define.
9407 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9408 the push insn to use predecrement.
9409
9f8d69ee
SH
94102011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9411
9412 From Jie Zhang
9413 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9414
662c03f4
NC
94152011-05-04 Nick Clifton <nickc@redhat.com>
9416
9417 * config/mn10300/mn10300.c: Include cfgloop.h.
9418 (DUMP): New macro.
9419 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9420 Lcc or a FLcc insn into the instruction stream.
9421 (mn10300_block_contains_call): New function. Returns true if the
9422 given basic block contains a CALL insn.
9423 (mn10300_loop_contains_call_insn): New function. Returns true if
9424 the given loop contains a CALL insn.
9425 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9426 to use the SETLB and Lcc or FLcc insns.
9427 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9428 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9429 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9430 disable the SETLB optimization.
9431 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9432 __SETLB__ or __NO_SETLB__.
9433 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9434 (movsf_internal): Handle MDR register.
9435 (cmpsi): Make visible.
9436 (setlb): New pattern.
9437 (Lcc): New pattern.
9438 (FLcc): New pattern.
9439
843b6915
UB
94402011-05-04 Uros Bizjak <ubizjak@gmail.com>
9441
9442 PR target/48860
9443 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9444 for reg<->xmm moves.
9445 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9446 (vec_concatv2di_rex64_sse): Ditto.
9447 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9448 (*vec_extractv2di_1_rex64): Ditto.
9449
9450 Revert:
9451 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9452
9453 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9454 reg<->xmm moves.
9455 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9456
d35936ab
RG
94572011-05-04 Richard Guenther <rguenther@suse.de>
9458
9459 * tree.h (int_const_binop): Remove notrunc argument.
9460 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9461 create integer constants that are properly truncated.
9462 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9463 (const_binop): Remove zero notrunc argument to int_const_binop.
9464 (size_binop_loc): Likewise.
9465 (fold_div_compare): Likewise.
9466 (maybe_canonicalize_comparison_1): Likewise.
9467 (fold_comparison): Likewise.
9468 (fold_binary_loc): Likewise.
9469 (multiple_of_p): Likewise.
9470 * expr.c (store_constructor): Likewise.
9471 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9472 (maybe_fold_stmt_addition): Likewise.
9473 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9474 * stor-layout.c (layout_type): Likewise.
9475 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9476 * tree-sra.c (build_ref_for_offset): Likewise.
9477 (build_user_friendly_ref_for_offset): Likewise.
9478 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9479 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9480 * tree-ssa-loop-niter.c (inverse): Likewise.
9481 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9482 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9483 * tree-switch-conversion.c (check_range): Likewise.
9484 (build_constructors): Likewise.
9485 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9486 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9487 (extract_range_from_assert): Likewise.
9488 (vrp_int_const_binop): Likewise.
9489 (extract_range_from_binary_expr): Likewise.
9490 (extract_range_from_unary_expr): Likewise.
9491 (check_array_ref): Likewise.
9492 (find_case_label_range): Likewise.
9493 (simplify_div_or_mod_using_ranges): Likewise.
9494 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9495 comparing case labels for merging.
9496
8992c063
MW
94972011-05-03 Mark Wielaard <mjw@redhat.com>
9498
9499 * dwarf2out.c (debug_str_hash_forced): Removed.
9500 (gen_label_for_indirect_string): Removed.
9501 (get_debug_string_label): Removed.
9502 (AT_string_form): Generate label directly.
9503 (output_indirect_string): Test indirect_string_node for
9504 DW_FORM_strp instead of checking label and refcount.
9505 (prune_indirect_string): Removed.
9506 (prune_unused_types): Don't check debug_str_hash_forced or
9507 call prune_indirect_string.
9508
4868e6ea
AO
95092011-05-04 Alexandre Oliva <aoliva@redhat.com>
9510
9511 PR other/48093
9512 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9513
01a5c0ab
AO
95142011-05-04 Alexandre Oliva <aoliva@redhat.com>
9515
9516 PR debug/47994
9517 PR debug/47919
9518 * combine.c (try_combine): Skip debug insns at m_split tests.
9519
6ac00218
MW
95202011-04-26 Mark Wielaard <mjw@redhat.com>
9521
9522 PR42288
9523 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9524 when info_section_emitted.
9525
3af42a7b
JM
95262011-05-03 Joseph Myers <joseph@codesourcery.com>
9527
9528 * config/mips/mips-opts.h: New.
9529 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9530 to mips-opts.h.
9531 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9532 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9533 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9534 via opts pointer.
9535 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9536 mips-opts.h.
9537 (mips_abi, mips_code_readable): Don't declare.
843b6915 9538 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
9539 (mabi=): Use Enum and Var.
9540 (mips_abi): New Enum and EnumValue entries.
9541 (mcode-readable=): Use Enum and Var.
9542 (mips_code_readable_setting): New Enum and EnumValue entries.
9543 (mr10k-cache-barrier=): Use Enum and Var.
9544 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9545
1cb1a99f
JH
95462011-05-03 Jan Hubicka <jh@suse.cz>
9547
9548 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9549 replace hash by pointer map.
9550 (cgraph_node_set_element_def, cgraph_node_set_element,
9551 const_cgraph_node_set_element, varpool_node_set_element_def,
9552 varpool_node_set_element, const_varpool_node_set_element): Remove.
9553 (free_cgraph_node_set, free_varpool_node_set): New function.
9554 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9555 * tree-emutls.c: Free varpool node set.
9556 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9557 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9558 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9559 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9560 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9561 Move here from ipa.c; implement using pointer_map
9562 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9563 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9564 debug_cgraph_node_set, varpool_node_set_new,
9565 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9566 dump_varpool_node_set, debug_varpool_node_set):
9567 Move to ipa-uitls.c.
9568 * passes.c (ipa_write_summaries): Update.
9569
7f31f4db
SH
95702011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9571
7a2f7208
UB
9572 From Mike Frysinger:
9573 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9574 bf542/bf544/bf547/bf548/bf549.
7f31f4db 9575
b70fce6d
UB
95762011-05-03 Uros Bizjak <ubizjak@gmail.com>
9577
9578 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9579
265b1d82
SH
95802011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9581
9582 From Bernd Schmidt:
9583 * config/bfin/bfin.md (MOVCC): New mode_macro.
9584 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9585 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9586 comments from generated assembly.
9587
f0b568f3
SH
95882011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9589
9590 From Bernd Schmidt
9591 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9592 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9593 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9594 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9595 * config/bfin/lib1funcs.asm (___muldi3): New function.
9596
2c67cf6e
NF
95972011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9598
9599 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9600 build_function_type_list instead of build_function_type.
9601 Rearrange initialization of `args' to do so.
9602
f9ac28ad
NF
96032011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9604
9605 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9606 instead of build_function_type.
9607
22b8798c
NF
96082011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9609
9610 * config/rs6000/rs6000.c (spe_init_builtins): Call
9611 build_function_type_list instead of build_function_type.
9612 (paired_init_builtins, altivec_init_builtins): Likewise.
9613 (builtin_function_type): Likewise.
9614
4cb44528
NF
96152011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9616
9617 * config/sh/sh.c (sh_media_init_builtins): Call
9618 build_function_type_list instead of build_function_type.
9619
4c203a6a
NF
96202011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9621
9622 * config/sparc/sparc.c (sparc_file_end): Call
9623 build_function_type_list instead of build_function_type.
9624
d6a3d62b
NF
96252011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9626
9627 * config/alpha/alpha.c (alpha_init_builtins): Call
9628 build_function_type_list instead of build_function_type.
9629
de530b86
NF
96302011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9631
9632 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9633 build_function_type_list instead of build_function_type.
9634
baeec5f2
NF
96352011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9636
9637 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9638 build_function_type_list instead of build_function_type.
9639 Delete `endlink' variable.
9640
c19afe52
NF
96412011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9642
9643 * config/avr/avr.c (avr_init_builtins): Call
9644 build_function_type_list instead of build_function_type.
9645
a341df0a
NF
96462011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9647
9648 * config/picochip/picochip.c (picochip_init_builtins): Call
9649 build_function_type_list instead of build_function_type.
9650 Delete `endlink' variable.
9651
2102b1e1
NF
96522011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9653
9654 * config/bfin/bfin.c (bfin_init_builtins): Call
9655 build_function_type_list instead of build_function_type.
9656
9f111209
SH
96572011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9658
9659 From Bernd Schmidt
9660 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9661 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9662
7071d064
SH
96632011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9664
9665 From Jie Zhang:
9666 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9667 libbffastfp overrides libgcc when -mfast-fp.
9668
748f7574 96692011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
9670
9671 Originally from Bernd Schmidt
9672 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9673 * config/bfin/bfin.c (override_options): Test it and error if
9674 TARGET_FDPIC.
9675
1a3a9152
SH
96762011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9677
9678 Originally From Bernd Schmidt
9679 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9680 FD-PIC.
9681
7134c090
JL
96822011-05-03 Jeff Law <law@redhat.com>
9683
9684 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9685 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9686 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
9687 than accessing AUX field directly. Free the AUX field before
9688 clearing it.
7134c090
JL
9689 (thread_block, thread_through_loop_header): Likewise.
9690 (thread_single_edge, mark_threaded_blocks): Likewise.
9691 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9692 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 9693
2c7eebae
BS
96942011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9695
9696 * function.c (init_function_start): Call decide_function_section.
9697 * varasm.c (decide_function_section): New function.
9698 (assemble_start_function): When not using
9699 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9700 or first_function_block_is_cold.
9701 * rtl.h (decide_function_section): Declare.
9702
17038fcf
JJ
97032011-05-03 Uros Bizjak <ubizjak@gmail.com>
9704 Jakub Jelinek <jakub@redhat.com>
9705
9706 PR target/48774
9707 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9708 only succeed if req_mode is the same as set_mode.
9709
3810076b
BS
97102011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9711
9712 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9713 * genemit.c (gen_exp): Handle RETURN.
9714 * emit-rtl.c (verify_rtx_sharing): Likewise.
9715 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9716 * rtl.c (copy_rtx): RETURN is shared.
9717 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9718 (ret_rtx): New.
9719 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9720 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9721 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9722 * config/cris/cris.c (cris_expand_return): Likewise.
9723 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9724 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9725 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9726 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9727 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9728 Likewise.
9729 * config/v850/v850.c (expand_epilogue): Likewise.
9730 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9731 * config/arm/arm.md (epilogue): Likewise.
9732 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9733 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9734 variable to ret_reg.
9735
9efdb4ad
RG
97362011-05-03 Richard Guenther <rguenther@suse.de>
9737
9738 PR lto/48846
9739 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9740 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9741 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9742
60a45536
RG
97432011-05-03 Richard Guenther <rguenther@suse.de>
9744
9745 * c-decl.c (grokdeclarator): Instead of looking at
9746 TREE_OVERFLOW check if the constant fits in the index type.
9747
3188ed59
RS
97482011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9749
9750 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9751 (vec_store_lanes<mode><mode>): Likewise.
9752
272c6793
RS
97532011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9754
9755 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9756 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9757 convert_optab_index values.
9758 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9759 * genopinit.c (optabs): Initialize the new optabs.
9760 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9761 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9762 (expand_STORE_LANES): New functions.
9763 * tree.h (build_array_type_nelts): Declare.
9764 * tree.c (build_array_type_nelts): New function.
9765 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9766 (vect_model_load_cost): Likewise.
9767 (vect_store_lanes_supported, vect_load_lanes_supported)
9768 (vect_record_strided_load_vectors): Declare.
9769 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9770 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9771 (vect_transform_strided_load): Split out statement recording into...
9772 (vect_record_strided_load_vectors): ...this new function.
9773 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9774 (write_vector_array, create_array_ref): New functions.
9775 (vect_model_store_cost): Add store_lanes_p argument.
9776 (vect_model_load_cost): Add load_lanes_p argument.
9777 (vectorizable_store): Try to use store-lanes functions for
9778 interleaved stores.
9779 (vectorizable_load): Likewise load-lanes and loads.
9780 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9781 to vect_model_store_cost.
9782 (vect_build_slp_tree): Likewise vect_model_load_cost.
9783
0f6d54f7
RS
97842011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9785
9786 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9787 * hooks.c (hook_bool_mode_uhwi_false): New function.
9788 * target.def (array_mode_supported_p): New hook.
9789 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9790 * doc/tm.texi: Regenerate.
9791 * stor-layout.c (mode_for_array): New function.
9792 (layout_type): Use it.
9793 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9794 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9795
b15eacc7
EB
97962011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9797
9798 PR target/48723
9799 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9800 for -fstack-check if the size to allocate is negative.
9801
575bfb00
LC
98022011-05-02 Lawrence Crowl <crowl@google.com>
9803
9804 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9805 (timevar_cond_start): New for starting a timer only when it is not
9806 already running.
9807 (timevar_cond_stop): New for stopping a timer when it was not already
9808 running.
9809
9810 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9811 (timevar_cond_start): New as above.
9812 (timevar_cond_stop): New as above.
9813
9814 * timevar.def: Add start/stop timers for compiler phases,
9815 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9816 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9817 and TV_PHASE_FINALIZE.
9818 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9819 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9820 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9821 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9822 Make unused TV_OVERLOAD into a start/stop timer.
9823
9824 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9825 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9826 to indicate that they are start/stop timers.
9827
9828 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9829 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9830 Move initialization to do_compile.
9831 (do_compile): Add initialization from above.
9832 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9833
9834 * c-decl.c (c_write_global_declarations): Add start/stop of
9835 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9836
9837 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9838 or TV_PARSE_INLINE, as appropriate.
9839 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9840 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9841
3533b943
JM
98422011-05-02 Jason Merrill <jason@redhat.com>
9843
9844 PR c++/40975
9845 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9846
2609a0ce
SM
98472011-05-02 Simon Martin <simartin@users.sourceforge.net>
9848
9849 PR c/35445
9850 * c-decl.c (finish_decl): Only create a composite if the types are
9851 compatible.
9852
6b0e4cbb
JM
98532011-05-02 Joseph Myers <joseph@codesourcery.com>
9854
9855 * config/fr30/fr30-protos.h (Mmode): Don't define.
9856 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9857 definition where used.
9858 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9859 define. Expand definitions where used.
9860 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9861 Expand definitions where used.
9862 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9863 rx_function_arg, rx_function_arg_advance,
9864 rx_function_arg_boundary): Expand definitions of those macros.
9865 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9866 definition where used.
9867
4e938ce6
UB
98682011-05-02 Uros Bizjak <ubizjak@gmail.com>
9869
9870 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9871 reg<->xmm moves.
9872 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9873 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9874 with *movv2sf_internal_rex64_avx.
9875 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9876 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9877 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9878 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9879 "vex" in "prefix" attribute calculation.
9880 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9881
36019c19
SH
98822011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9883
7a2f7208
UB
9884 PR target/47951
9885 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9886 inputs match the output.
36019c19 9887
f69ea688
AS
98882011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9889
9890 PR target/47955
9891 * config/m68k/m68k.c (m68k_expand_prologue): Set
9892 current_function_static_stack_size.
9893
c33406f5
JH
98942011-05-02 Jan Hubicka <jh@suse.cz>
9895
9896 * lto-streamer.c (lto_streamer_cache_insert_1,
9897 lto_streamer_cache_lookup, lto_streamer_cache_create,
9898 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9899 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9900
47c94d21
JM
99012011-05-02 Joseph Myers <joseph@codesourcery.com>
9902
9903 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9904 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9905 config/m68k/t-opts: New files.
9906 * config/m68k/m68k-tables.opt: New file (generated).
9907 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9908 extra_options and m68k/t-opts to tmake_file.
9909 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9910 (all_isas): Initialize using m68k-isas.def.
9911 (all_microarchs): Initialize using m68k-microarchs.def.
9912 (m68k_find_selection): Remove.
9913 (m68k_handle_option): Don't assert that global structures are in
9914 use. Use error_at. Access variables via opts pointer. Don't
9915 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9916 directly for -m68020-40 and -m68020-60.
9917 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9918 m68k_tune_entry here.
9919 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9920 to m68k-opts.h.
9921 (m68k_library_id_string): Remove declaration.
4e938ce6 9922 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
9923 (m68k_library_id_string): New Variable.
9924 (march=, mcpu=, mtune=): Use Enum and Var.
9925
e562bf36
RG
99262011-05-02 Richard Guenther <rguenther@suse.de>
9927
9928 * varasm.c (output_constructor_regular_field): Compute zero-based
9929 index with double-ints. Make sure to ICE instead of producing
9930 wrong code.
9931 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9932 in asserts. Properly use a signed type.
9933
6bec6c98
UB
99342011-05-02 Uros Bizjak <ubizjak@gmail.com>
9935
9936 * config/i386/sse.md (V): New mode iterator.
9937 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
9938 TARGET_SSE2.
9939 (V_256): Rename from AVX256MODE.
9940 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
9941 condition to all users.
9942 (VF1): Ditto.
9943 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
9944 condition to all users.
9945 (VF_128): Make V4SF mode unconditional.
9946 (VF_256): Rename from AVX256MODEF2P.
9947 (VI4F_128): Rename from SSEMODE4S.
9948 (VI8F_128): Rename from SSEMODE2D.
9949 (VI4F_256): Rename from AVX256MODE8P.
9950 (VI8F_256): Rename from AVX256MODE4P.
9951 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9952 (ssescalarmodesuffix): Remove SF and DF modes.
9953 (SSEMODE124): Remove.
9954 (SSEMODE1248): Ditto.
9955 (SSEMODEF2P): Ditto.
9956 (AVXMODEF2P): Ditto.
9957 (AVXMODEFDP): Ditto.
9958 (AVXMODEFSP): Ditto.
9959 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9960 unconditional.
9961 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
9962 unconditional.
9963 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9964 xop_pcmov_<mode>256. Use V mode iterator.
9965
9966 Adjust RTX patterns globally for renamed mode attributes.
9967
2dfdcb4b
UW
99682011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9969
9970 * haifa-sched.c (sched_emit_insn): Emit insn before first
9971 non-scheduled insn. Inform back-end about new insn. Add
9972 new insn to scheduled_insns list.
9973
90bc4623
RG
99742011-05-02 Richard Guenther <rguenther@suse.de>
9975
9976 PR tree-optimization/48822
9977 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9978 (process_scc): Indicate which iteration we start.
9979
bc0fe8cb
JH
99802011-05-02 Jan Hubicka <jh@suse.cz>
9981
9982 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9983 (lto_section_overrun): New.
9984 * lto-section-out.c (append_block): Rename to ...
9985 (lto_append_block): ... this one; export.
9986 (lto_output_1_stream): Move lto lto-streamer.h
9987 (lto_output_data_stream): Update.
9988 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9989 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9990 functions.
9991
f070a9d1
RG
99922011-05-02 Richard Guenther <rguenther@suse.de>
9993
9994 * tree.c (tree_code_counts): New global array.
9995 (record_node_allocation_statistics): Count individual tree codes.
9996 (dump_tree_statistics): Dump individual code stats.
9997
09dfe187
JH
99982011-05-01 Jan Hubicka <jh@suse.cz>
9999
10000 * ipa-inline.c (caller_growth_limits): Fix thinko when
10001 looking for largest stack frame.
10002 * ipa-inline.h (dump_inline_summary): Declare.
10003 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
10004 on stack usage.
10005 (dump_inline_summary): Export.
10006 (debug_inline_summary): Declare as DEBUG_FUNCTION.
10007
6f76a878
AS
100082011-05-01 Anatoly Sokolov <aesok@post.ru>
10009
10010 * reginfo.c (memory_move_cost): Change rclass argument type form
10011 'enum reg_class' to reg_class_t.
10012 * reload.h (memory_move_cost): Update prototype.
10013 * postreload.c reload_cse_simplify_set): Change type dclass var to
10014 reg_class_t.
10015 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
10016 Update prototype.
10017 (ira_allocate_and_set_costs): Change aclass argument type form
10018 'enum reg_class' to reg_class_t.
6bec6c98 10019 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
10020 Change aclass argument type to reg_class_t.
10021 (update_conflict_hard_reg_costs): Change type aclass and pref vars
10022 to reg_class_t.
10023 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
10024 memory_move_cost call.
10025
10026 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
10027 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
10028 Change type tmp var to reg_class_t.
10029
9a4ac625
JH
100302011-04-30 Jan Hubicka <jh@suse.cz>
10031
10032 * ipa-inline.c (can_inline_edge_p): Disregard limits when
10033 inlining into function with flatten attribute.
10034 (want_inline_small_function_p): Be more realistic about inlining
10035 cold calls where callee size grows.
10036
dd8352ee
JH
100372011-04-30 Jan Hubicka <jh@suse.cz>
10038
10039 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
10040 flags.
10041
46e43d2b
AS
100422011-04-30 Anatoly Sokolov <aesok@post.ru>
10043
10044 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
10045 PRINT_OPERAND_PUNCT_VALID_P): Remove.
10046 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
10047 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
10048 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10049 (print_operand): Rename to...
10050 (sparc_print_operand): ...this. Make static. Adjust
10051 sparc_print_operand function call.
10052 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
10053 functions.
10054
ecb62563
JH
100552011-04-30 Jan Hubicka <jh@suse.cz>
10056
6bec6c98 10057 PR middle-end/48752
ecb62563
JH
10058 * ipa-inline.c (early_inliner): Disable when doing late
10059 addition of function.
10060
edb9b69e
JJ
100612011-04-30 Jakub Jelinek <jakub@redhat.com>
10062
be80a87e
JJ
10063 * dwarf2out.c (get_address_mode): New inline.
10064 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
10065 if not dwarf_strict emit
10066 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
10067 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
10068 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
10069 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
10070 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
10071 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
10072 mem_loc_descriptor callers.
10073 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10074 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
10075 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
10076 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
10077 (base_types): New variable.
10078 (get_base_type_offset, calc_base_type_die_sizes,
10079 base_type_for_mode, mark_base_types, base_type_cmp,
10080 move_marked_base_types): New functions.
10081 (calc_die_sizes): Assert that die_offset is 0 or equal to
10082 next_die_offset.
10083 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
10084 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
10085 callers. If not dwarf_strict, call mem_loc_descriptor even for
10086 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
10087 (gen_subprogram_die): Don't give up on call site parameters
10088 with non-integral or large integral modes. Adjust
10089 mem_loc_descriptor callers.
10090 (prune_unused_types): Call prune_unused_types_mark on base_types
10091 vector entries.
10092 (resolve_addr): Call mark_base_types.
10093 (dwarf2out_finish): Call move_marked_base_types.
10094
edb9b69e
JJ
10095 PR tree-optimization/48809
10096 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
10097 type.
10098 (gen_inbound_check): Don't compute index_expr - range_min in utype
10099 again, instead reuse SSA_NAME initialized in build_arrays.
10100 Remove two useless gsi_for_stmt calls.
10101
a6545a3d
JL
101022011-04-29 Jeff Law <law@redhat.com>
10103
10104 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
10105
af8bca3c
MJ
101062011-04-29 Martin Jambor <mjambor@suse.cz>
10107
10108 * cgraph.h (cgraph_postorder): Remove declaration.
10109 * ipa-utils.h (ipa_free_postorder_info): Declare.
10110 (ipa_reverse_postorder): Likewise.
10111 * cgraphunit.c: Include ipa-utils.h.
10112 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
10113 * ipa-inline.c: Include ipa-utils.h.
10114 (ipa_inline): Update call to ipa_reverse_postorder.
10115 * ipa-pure-const.c (propagate_pure_const): Update call to
10116 ipa_reduced_postorder and ipa_print_order. Call
10117 ipa_free_postorder_info to clean up.
10118 (propagate_nothrow): Likewise.
10119 * ipa-reference.c (propagate): Removed a useless call to
10120 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
10121 and ipa_print_order. Call ipa_free_postorder_info to clean up.
10122 * ipa.c: Include ipa-utils.h.
10123 (ipa_profile): Update call to ipa_reverse_postorder.
10124 (cgraph_postorder): Moved to...
10125 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
10126 (ipa_utils_print_order): Renamed to ipa_print_order.
10127 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
10128 comments.
10129 (ipa_free_postorder_info): New function.
10130 * passes.c: Include ipa-utils.h.
10131 (do_per_function_toporder): Update call to ipa_reverse_postorder.
10132 (ipa_write_summaries): Likewise.
10133 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
10134 (cgraphunit.o): Likewise.
10135 (ipa.o): Likewise.
10136 (ipa-inline.o): Likewise.
10137
b15c64ee
JH
101382011-04-29 Jan Hubicka <jh@suse.cz>
10139
10140 * gcc.dg/tree-ssa/inline-10.c: New testcase.
10141 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
10142 * ipa-inline.h (clause_t): Turn into unsigned int.
10143 * ipa-inline-analysis.c (add_clause): Do more simplification.
10144 (and_predicates): Shortcut more cases.
10145 (predicates_equal_p): Move forward; check that clauses are properly
10146 ordered.
10147 (or_predicates): Shortcut more cases.
10148 (edge_execution_predicate): Rewrite as...
10149 (set_cond_stmt_execution_predicate): ... this function; handle
10150 __builtin_constant_p.
10151 (set_switch_stmt_execution_predicate): New .
10152 (compute_bb_predicates): New.
10153 (will_be_nonconstant_predicate): Update TODO.
10154 (estimate_function_body_sizes): Use compute_bb_predicates
10155 and free them later, always try to estimate if stmt is constant.
10156 (estimate_time_after_inlining, estimate_size_after_inlining):
10157 Gracefully handle optimized out edges.
10158 (read_predicate): Fix off by one error.
10159
a88fdc2a
NP
101602011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
10161
10162 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10163
d984c8ef
XDL
101642011-04-27 Xinliang David Li <davidxl@google.com>
10165
10166 * tree-profile.c (init_ic_make_global_vars): Set
10167 tls attribute on ic vars.
10168 * coverage.c (coverage_end_function): Initialize
10169 function_list with zero.
10170
45a2c477
RG
101712011-04-29 Richard Guenther <rguenther@suse.de>
10172
10173 * builtins.c (fold_builtin_classify_type): Use integer_type_node
10174 for the type of the result.
10175 (fold_builtin_isascii): Likewise.
10176 (fold_builtin_toascii): Use integer_type_node where appropriate.
10177 (fold_builtin_logb): Likewise.
10178 (fold_builtin_frexp): Likewise.
10179 (fold_builtin_strstr): Likewise.
10180 (fold_builtin_strpbrk): Likewise.
10181 (fold_builtin_fputs): Likewise.
10182 (fold_builtin_sprintf): Likewise.
10183 (fold_builtin_snprintf): Likewise.
10184 (fold_builtin_printf): Likewise.
10185 (do_mpfr_remquo): Use a proper type for the assigned constant.
10186 (do_mpfr_lgamma_r): Likewise.
10187 * dwarf2out.c (resolve_one_addr): Use size_int.
10188 * except.c (init_eh): Likewise.
10189 (assign_filter_values): Use integer_type_node for filter values.
10190 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10191 indices.
10192 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10193 for EH region numbers.
10194 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10195 for the shift amount.
10196
eb6c3df1
RG
101972011-04-29 Richard Guenther <rguenther@suse.de>
10198
10199 * expr.h (expand_shift): Rename to ...
10200 (expand_variable_shift): ... this.
10201 (expand_shift): Take a constant shift amount.
10202 * expmed.c (expand_shift): Rename to ...
10203 (expand_variable_shift): ... this.
10204 (expand_shift): New wrapper around expand_variable_shift.
10205 * expr.c (convert_move, emit_group_load_1, emit_group_store,
10206 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10207 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10208 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10209 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10210 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10211 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10212 emit_store_flag_1, emit_store_flag): Likewise.
10213 * builtins.c (expand_builtin_signbit): Likewise.
10214 * calls.c (load_register_parameters): Likewise.
10215 * function.c (assign_parm_setup_block): Likewise.
10216 * lower-subreg.c (resolve_shift_zext): Likewise.
10217 * optabs.c (widen_bswap, expand_abs_nojump,
10218 expand_one_cmpl_abs_nojump, expand_float): Likewise.
10219 * spu/spu.c (spu_expand_extv): Likewise.
10220 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10221
9f616812
RG
102222011-04-29 Richard Guenther <rguenther@suse.de>
10223
10224 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10225 for the remapped region number.
10226 * predict.c (build_predict_expr): Use integer_type_node for the
10227 predict kind.
10228 * fold-const.c (fold_binary_loc): Use integer_type_node for
10229 the shift amount. Use a proper type for the PLUS_EXPR operand.
10230
b823cdfe
MM
102312011-04-29 Michael Matz <matz@suse.de>
10232
10233 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10234 other trees that just builtins.
10235 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10236
413581ba
RG
102372011-04-29 Richard Guenther <rguenther@suse.de>
10238
10239 * tree-nested.c (get_trampoline_type): Use size_int.
10240 (get_nl_goto_field): Likewise.
10241 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10242 for all indexes.
10243 (lower_eh_constructs_2): Likewise.
10244 (lower_resx): Likewise.
10245 (lower_eh_dispatch): Likewise.
10246 * tree-mudflap.c (mf_build_string): Use size_int.
10247 (mudflap_register_call): Use integer_type_node for the flag.
10248 (mudflap_enqueue_constant): Use size_int.
10249 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10250 instead of rebuilding it.
10251
5c04e9f4
RG
102522011-04-29 Richard Guenther <rguenther@suse.de>
10253
10254 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10255 Handle OBJ_TYPE_REF.
10256 (find_func_aliases_for_call): Use it more consistently.
10257
5c24671b
AO
102582011-04-29 Alexandre Oliva <aoliva@redhat.com>
10259
10260 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10261 (rank_for_schedule): Use it.
10262 (schedule_block): Set it.
10263
10adac51
XDL
102642011-04-28 David Li <davidxl@google.com>
10265
10266 * tree.c (crc32_string): Use crc32_byte.
10267 (crc32_byte): New function.
10268 * tree.h (crc32_byte): New function.
10269 * gcov.c (read_graph_file): Handle new cfg_cksum.
10270 (read_count_file): Ditto.
10271 * profile.c (instrument_values): Ditto.
10272 (get_exec_counts): Ditto.
10273 (read_profile_edge_counts): Ditto.
10274 (compute_branch_probabilities): Ditto.
10275 (compute_value_histograms): Ditto.
10276 (branch_prob): Ditto.
10277 (end_branch_prob): Ditto.
10278 * coverage.c (read_counts_file): Ditto.
10279 (get_coverage_counts): Ditto.
10280 (tree_coverage_counter_addr): Ditto.
10281 (coverage_checksum_string): Ditto.
10282 (coverage_begin_output): Ditto.
10283 (coverage_end_function): Ditto.
10284 (build_fn_info_type): Ditto.
10285 (build_fn_info_value): Ditto.
10286 * libgcov.c (gcov_exit): Ditto.
10287 * gcov-dump.c (tag_function): Ditto.
10288 (compute_checksum): Remove.
10289
5d6358a5
AM
102902011-04-29 Alan Modra <amodra@gmail.com>
10291
10292 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10293 unspec plus offset. Tidy macho code.
10294
85ad2ef5
MJ
102952011-04-29 Martin Jambor <mjambor@suse.cz>
10296
10297 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10298 node instead of a decl. Update all callers.
10299 * cgraph.h: Update declaration.
10300
437f4a00
IR
103012011-04-28 Ira Rosen <ira.rosen@linaro.org>
10302
10303 PR tree-optimization/48765
10304 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10305 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10306 to indicate if loop aware SLP is being used. Scan the statements
10307 and update the vectorization factor according to the type of
10308 vectorization before statement analysis.
10309 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10310 pass it to vect_analyze_loop_operations.
10311 (vectorizable_reduction): Set number of copies to 1 in case of pure
10312 SLP statement.
10313 * tree-vect-stmts.c (vectorizable_conversion,
10314 vectorizable_assignment, vectorizable_shift,
10315 vectorizable_operation, vectorizable_type_demotion,
10316 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10317 Likewise.
10318 (vectorizable_condition): Move the check that it is not SLP
10319 vectorization before the number of copies check.
10320 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10321 to vectorize the loop using SLP.
10322
c6fc44f3
JJ
103232011-04-28 Jakub Jelinek <jakub@redhat.com>
10324
10325 PR middle-end/48597
10326 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10327 inline asm.
10328
6c0170ea
JM
103292011-04-28 Joseph Myers <joseph@codesourcery.com>
10330
10331 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10332 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10333 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10334 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10335 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10336 linux*.h headers.
6bec6c98 10337 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
10338 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10339 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10340 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 10341 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
10342 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10343 REG_NAME.
10344 * config/i386/linux.h (REG_NAME): Don't define.
10345 * config/i386/linux64.h (REG_NAME): Don't define.
10346 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10347 Undefine before defining.
10348
970dabbd
JH
103492011-04-28 Jan Hubicka <jh@suse.cz>
10350
6bec6c98
UB
10351 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10352 nonconstant_names array.
970dabbd
JH
10353 (estimate_function_body_sizes): Build nonconstant_names array; handle
10354 BUILT_IN_CONSTANT_P.
10355
8d3e3924
RG
103562011-04-28 Richard Guenther <rguenther@suse.de>
10357
10358 PR bootstrap/48804
10359 Revert
10360 2011-04-28 Richard Guenther <rguenther@suse.de>
10361
10362 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10363 as late as possible.
6bec6c98 10364
8576f20a
RG
103652011-04-28 Richard Guenther <rguenther@suse.de>
10366
10367 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10368 (debug_constraint): Do it here.
10369 (dump_constraints): And here.
10370 (rewrite_constraints): And here.
10371 (dump_constraint_edge): Remove.
10372 (dump_constraint_graph): Rewrite to produce DOT output.
10373 (solve_constraints): Build succ graph as late as possible.
10374 Dump constraint graphs before and after solving.
10375
e38811ce
RG
103762011-04-28 Richard Guenther <rguenther@suse.de>
10377
10378 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10379 New function split out from ...
10380 (find_func_aliases): ... here. Call it.
10381 (find_func_aliases_for_call): Likewise.
10382
fbaf0d0c
GDR
103832011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10384
10385 * internal-fn.h (internal_fn_name_array): Declare.
10386 (internal_fn_flags_array): Likewise.
10387
cbb734aa
UB
103882011-04-27 Uros Bizjak <ubizjak@gmail.com>
10389
10390 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10391 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10392 Move from sse.md.
10393 (ssemodefsuffix): Remove.
10394 (ssevecmodesuffix): New mode attribute.
10395 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10396 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10397 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10398 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10399 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10400 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10401 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10402 ssemodesuffix mode attribute.
10403 (float splitters): Use ssevecmodesuffix mode attribute.
10404 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10405 (sseinsmode): Rename from avxvecmode.
10406 (avxsizesuffix): Rename from avxmodesuffix.
10407 (sseintvecmode): Rename from avxpermvecmode.
10408 (ssedoublevecmode): Rename from ssedoublesizemode.
10409 (ssehalfvecmode): Rename from avxhalfvecmode.
10410 (ssescalarmode): Rename from avxscalarmode.
10411 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10412 templates for ssemodesuffix mode attribute.
10413 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10414 mode attribute.
10415
10416 Adjust RTX patterns globally for renamed mode attributes.
10417
991278ab
JH
104182011-04-27 Jan Hubcika <jh@suse.cz>
10419
10420 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10421 * ipa-inline-analysis.c: Include alloc-pool.h.
10422 (edge_predicate_pool): New.
10423 (trye_predicate_p): New function
10424 (false_predicate_p): New function.
10425 (add_clause): Sanity check that false clauses are "optimized";
10426 never add clauses to predicate that is already known to be false.
10427 (and_predicate): Use flase_predicate_p.
10428 (evaulate_predicate): Rename to ...
10429 (evaluate_predicate): ... this one; update all callers; assert
10430 that false is not listed among possible truths.
10431 (dump_predicate): Use true_predicate_p.
10432 (account_size_time): Use false_predicate_p.
10433 (evaulate_conditions_for_edge): Rename to ...
10434 (evaluate_conditions_for_edge) ... this one.
10435 (edge_set_predicate): New function.
10436 (inline_edge_duplication_hook): Duplicate edge predicates.
10437 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 10438 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
10439 (dump_inline_summary): Update.
10440 (estimate_function_body_sizes): Set edge predicates.
10441 (estimate_calls_size_and_time): Handle predicates.
10442 (estimate_callee_size_and_time): Update.
10443 (remap_predicate): Add toplev_predicate; update comment.
10444 (remap_edge_predicates): New function.
10445 (inline_merge_summary): Compute toplev predicate; update.
10446 (read_predicate): New function.
10447 (read_inline_edge_summary): Use it.
10448 (inline_read_section): Likewise.
10449 (write_predicate): New function.
10450 (write_inline_edge_summary): Use it.
10451 (inline_write_summary): Likewise.
10452 (inline_free_summary): Free alloc pool and edge summary vec.
10453
648b5f85
RG
104542011-04-27 Richard Guenther <rguenther@suse.de>
10455
10456 * tree-ssa-structalias.c (changed_count): Remove.
10457 (changed): Use a bitmap.
10458 (unify_nodes): Adjust.
10459 (do_sd_constraint): Likewise.
10460 (do_ds_constraint): Likewise.
10461 (do_complex_constraint): Likewise.
10462 (solve_graph): Likewise.
10463
4d5dcfb2
JH
104642011-04-27 Jan Hubicka <jh@suse.cz>
10465
10466 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10467
200eb7d2
UB
104682011-04-27 Uros Bizjak <ubizjak@gmail.com>
10469
10470 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10471 (avx_vperm2f128_*_operand): Ditto.
10472 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10473 Use avx_vpermilp_parallel in insn condition.
10474 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10475 Use avx_vperm2f128_parallel in insn condition.
10476
7d6e2521
RG
104772011-04-27 Richard Guenther <rguenther@suse.de>
10478
10479 * Makefile.in (tree-ssa-structalias.o): Remove
10480 gt-tree-ssa-structalias.h dependency.
10481 (GTFILES): Remove tree-ssa-structalias.c.
10482 * tree.c (allocate_decl_uid): New function.
10483 (make_node_stat): Use it.
10484 (copy_node_stat): Likewise.
10485 * tree.h (allocate_decl_uid): Declare.
10486 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10487 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10488 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 10489 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
10490 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10491 (struct heapvar_map): Likewise.
10492 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10493 heapvar_insert): Likewise.
10494 (make_heapvar_for): Rename to ...
10495 (make_heapvar): ... this. Simplify.
10496 (fake_var_decl_obstack): New global var.
10497 (build_fake_var_decl): New function.
10498 (make_constraint_from_heapvar): Adjust.
10499 (handle_lhs_call): Likewise.
10500 (create_function_info_for): Likewise.
10501 (intra_create_variable_infos): Likewise.
10502 (init_alias_vars): Allocate fake_var_decl_obstack.
10503 (init_alias_heapvars, delete_alias_heapvars): Remove.
10504 (compute_points_to_sets): Do not call init_alias_heapvars.
10505 (ipa_pta_execute): Likewise.
10506 (delete_points_to_sets): Free fake_var_decl_obstack.
10507
526ed6c2
UW
105082011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10509
10510 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10511 (si_from_UTItype, si_to_UTItype): New functions.
10512 (__udivmodti4): Use them to implement type-punning.
10513 * config/spu/multi3.c (union qword_TItype): New data type.
10514 (si_from_TItype, si_to_TItype): New functions.
10515 (__multi3): Use them to implement type-punning.
10516
c187d33c
UW
105172011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10518
10519 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10520
40982661
JH
105212011-04-27 Jan Hubicka <jh@suse.cz>
10522
10523 * ipa-prop.c (function_insertion_hook_holder): New holder.
10524 (ipa_add_new_function): New function.
200eb7d2
UB
10525 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10526 Register/deregister holder.
40982661 10527
9aef53ee
RG
105282011-04-27 Richard Guenther <rguenther@suse.de>
10529
10530 PR tree-optimization/48772
200eb7d2 10531 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 10532
f63d806d
RG
105332011-04-27 Richard Guenther <rguenther@suse.de>
10534
10535 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10536 TARGET_MEM_REF handling.
10537
e1ea7451
NC
105382011-04-27 Nick Clifton <nickc@redhat.com>
10539
9b5db25d
NC
10540 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10541 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10542 (REG_CLASS_NAMES): Likewise.
10543 (REG_CLASS_CONTENTS): Likewise.
10544 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10545 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10546 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10547 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10548 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10549 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10550 duplicate register classes.
97d20907 10551 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
10552 (frv_register_move_cost): Likewise.
10553
e1ea7451
NC
10554 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10555 end of the regno_reg_class array.
10556
5c2f94b4
JJ
105572011-04-27 Jakub Jelinek <jakub@redhat.com>
10558
10559 PR c/48742
10560 * c-typeck.c (build_binary_op): Don't wrap arguments if
10561 int_operands is true.
10562
57a944d7
KK
105632011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10564
10565 PR target/48767
10566 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10567 targetm.calls.must_pass_in_stack for void type.
10568
898b8927
JH
105692011-04-26 Jan Hubicka <jh@suse.cz>
10570
10571 * cgraphbuild.c (build_cgraph_edges): Update call
10572 of cgraph_create_edge and cgraph_create_indirect_edge.
10573 * cgraph.c (cgraph_create_edge_including_clones,
10574 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10575 cgraph_update_edges_for_call_stmt_node): Do not take nest
10576 argument; do not initialize call_stmt_size/time.
10577 (dump_cgraph_node): Do not dump nest.
10578 (cgraph_clone_edge): Do not take loop_nest argument;
10579 do not propagate it; do not clone call_stmt_size/time.
10580 (cgraph_clone_node): Likewise.
10581 (cgraph_create_virtual_clone): Update.
10582 * cgraph.h (struct cgraph_edge): Remove
10583 call_stmt_size/call_stmt_time/loop_nest.
10584 (cgraph_create_edge, cgraph_create_indirect_edge,
10585 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10586 prototype.
10587 * tree-emutls.c (gen_emutls_addr): Update.
10588 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10589 loop_nest; handle indirect calls, too.
10590 (clone_inlined_nodes): Do not care about updating inline summaries.
10591 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10592 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10593 stream call_stmt_size/call_stmt_time/loop_nest.
10594 * ipa-inline.c (edge_badness): Update.
10595 (ipa_inline): dump summaries after inlining.
10596 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 10597 New.
898b8927
JH
10598 (inline_edge_summary): New function.
10599 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10600 (inline_edge_removal_hook): Handle edge summaries.
10601 (inline_edge_duplication_hook): New hook.
10602 (inline_summary_alloc): Alloc hooks.
10603 (initialize_growth_caches): Do not register removal hooks.
10604 (free_growth_caches); Do not free removal hook.
10605 (dump_inline_edge_summary): New function.
10606 (dump_inline_summary): Use it.
10607 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10608 (inline_update_callee_summaries): New function.
10609 (inline_merge_summary): Use it.
10610 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10611 (read_inline_edge_summary): New function.
10612 (inline_read_section): Use it.
10613 (write_inline_edge_summary): New function.
10614 (inline_write_summary): Use it.
10615 (inline_free_summary): Free edge new holders.
10616 * tree-inline.c (copy_bb): Update.
10617
ffa03772
JM
106182011-04-26 Jason Merrill <jason@redhat.com>
10619
10620 * tree-eh.c (lower_try_finally_switch): Create the label along with
10621 the CASE_LABEL_EXPR.
10622
6d7b45ad
DM
106232011-04-26 David S. Miller <davem@davemloft.net>
10624 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10625
10626 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10627 * configure: Regenerate.
10628
df10b6d4
MM
106292011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10630
10631 PR target/48258
10632 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10633 reduction.
10634 (VEC_reduc): New code iterator and splitters for vector reduction.
10635 (VEC_reduc_name): Ditto.
10636 (VEC_reduc_rtx): Ditto.
10637 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10638 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10639
10640 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10641 support for extracting SF on VSX.
10642
10643 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10644 generating xscvspdp.
10645 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10646 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10647 double add, minimum, maximum vector reduction.
10648 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10649 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10650 optimize double vector reduction.
10651 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10652
35a5db04
JM
106532011-04-26 Joseph Myers <joseph@codesourcery.com>
10654
10655 * config/fr30/fr30.h (inhibit_libc): Don't define.
10656 * config/m32r/m32r-protos.h: Correct comment.
10657 * config/v850/v850.h (GHS_default_section_names,
10658 GHS_current_section_names): Use tree, not union tree_node *.
10659
2f964ad6
XDL
106602011-04-26 Xinliang David Li <davidxl@google.com>
10661
200eb7d2 10662 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
10663 * c-family/c-opts.c (c_common_handle_option): Set
10664 warn_maybe_uninitialized.
10665 * opts.c (common_handle_option): Ditto.
10666 * common.opt: New option.
10667 * tree-ssa.c (warn_uninit): Add one more parameter.
10668 (warn_uninitialized_var): Pass warning code.
10669 * tree-flow.h: Interface change.
10670
9c7bd91a
RO
106712011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10672
200eb7d2 10673 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
10674 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10675 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10676
c2f36e21
RO
106772011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10678
10679 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10680 * config/mips/mips.opt (mmips-tfile): Remove.
10681
10682 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10683 mips-tdump reference to ...
200eb7d2 10684 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
10685 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10686 reference by Tru64 UNIX.
10687
2c9da85b
JJ
106882011-04-26 Jakub Jelinek <jakub@redhat.com>
10689
0c5f6539
JJ
10690 PR debug/48768
10691 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10692 is error_mark_node, set value to NULL.
10693
2c9da85b
JJ
10694 PR tree-optimization/48734
10695 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10696 if return value from maybe_fold_*_comparsions isn't something
10697 the code is prepared to handle.
10698
77fa1d54
UB
106992011-04-26 Uros Bizjak <ubizjak@gmail.com>
10700
10701 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10702 mode check.
10703 (ext_QIreg_nomode_operands): Remove.
10704 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10705 (*andsi_1): Ditto.
10706 (*andhi_1): Ditto.
10707
0e2a6c2b
AS
107082011-04-26 Andrew Stubbs <ams@codesourcery.com>
10709
10710 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10711
961562d8
RB
107122011-04-26 Richard Guenther <rguenther@suse.de>
10713
10714 * c-typeck.c (build_unary_op): Do not expand array-refs via
10715 pointer arithmetic. Only adjust qualifiers for function types.
10716
107172011-04-26 Richard Guenther <rguenther@suse.de>
10718
10719 PR middle-end/48694
10720 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10721 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
10722 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10723 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 10724
a0d260fc
PC
107252011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10726
6bec6c98 10727 * doc/extend.texi: Document __underlying_type.
a0d260fc 10728
4d583bb9
SB
107292011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10730
10731 * config/rs6000/titan.md (automata_option "progress"): Remove.
10732
1f3fcdc3
JL
107332011-04-25 Jeff Law <law@redhat.com>
10734
10735 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10736
e5b0dad8
JK
107372011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10738
10739 * system.h (ENUM_BITFIELD): Remove.
10740
5157a881 107412011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 10742 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
10743
10744 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10745 for STORE_FLAG_VALUE==-1 case.
10746
ed4c109e
RS
107472011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10748
10749 PR target/43804
10750 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10751 LEGITIMATE_PIC_OPERAND_P.
10752
f3181aa2
JH
107532011-04-24 Jan Hubicka <jh@suse.cz>
10754
10755 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10756 WPA hack.
77fa1d54
UB
10757 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10758 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10759 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
10760 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10761 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10762 Sanity check predicate length.
10763 (remap_predicate): Likewise; sanity check jump functions.
10764 (inline_read_section, inline_write_summary): Sanity check
10765 predicate length.
10766
5307cbaa
PC
107672011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10768
10769 PR other/48748
10770 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10771 __is_literal_type, and __is_trivial; update throughout about
10772 possibly cv-qualified void types.
10773
bebd5f99
GP
107742011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10775
10776 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10777 testsuite and make it version agnostic.
10778
7ee28a74
JH
107792011-04-22 Jan Hubicka <jh@suse.cz>
10780
10781 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10782
16997bc0
JJ
107832011-04-23 Jakub Jelinek <jakub@redhat.com>
10784
10785 PR c/48685
10786 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10787 to VOID_TYPE even around MODIFY_EXPR.
10788
f94d4ab1
MS
107892011-04-22 Mike Stump <mikestump@comcast.net>
10790
1a84c183 10791 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
10792 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10793 comment.
10794
632b4f8e
JH
107952011-04-22 Jan Hubicka <jh@suse.cz>
10796
10797 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
10798 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10799 ipa-prop.c; update all uses.
632b4f8e 10800 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
10801 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10802 merge summary of inlined function into former caller.
632b4f8e
JH
10803 * ipa-inline.c (max_benefit): Remove.
10804 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
10805 (update_caller_keys): Use
10806 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
10807 (update_callee_keys): Likewise.
10808 (update_all_callee_keys): Likewise.
77fa1d54
UB
10809 (inline_small_functions): Do not collect max_benefit; do not reset
10810 estimated_growth; call free_growth_caches and initialize_growth_caches.
10811 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10812 struct size_time_entry): New structures.
632b4f8e 10813 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
10814 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10815 and estimated_growth.
632b4f8e
JH
10816 (edge_growth_cache_entry): New structure.
10817 (node_growth_cache, edge_growth_cache): New global vars.
10818 (estimate_growth): Turn into inline.
10819 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10820 initialize_growth_caches, free_growth_caches): Declare.
10821 (estimate_edge_growth): Rewrite.
10822 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
10823 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10824 functions.
632b4f8e
JH
10825 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10826 (NUM_CONDITIONS): New constant.
10827 (predicate_conditions): New enum.
10828 (IS_NOT_CONSTANT): New constant.
10829 (edge_removal_hook_holder): New var.
10830 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
10831 (true_predicate, single_cond_predicate, false_predicate,
10832 not_inlined_predicate, add_condition, add_clause, and_predicates,
10833 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10834 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
10835 evaulate_conditions_for_edge): New functions.
10836 (inline_summary_alloc): Move to heap.
10837 (inline_node_removal_hook): Clear condition and entry vectors.
10838 (inline_edge_removal_hook): New function.
10839 (initialize_growth_caches, free_growth_caches): New function.
10840 (dump_inline_summary): Update.
10841 (edge_execution_predicate): New function.
10842 (will_be_nonconstant_predicate): New function.
10843 (estimate_function_body_sizes): Compute BB and constantness predicates.
10844 (compute_inline_parameters): Do not clear estimated_growth.
10845 (estimate_edge_size_and_time): New function.
10846 (estimate_calls_size_and_time): New function.
10847 (estimate_callee_size_and_time): New function.
10848 (remap_predicate): New function.
10849 (inline_merge_summary): New function.
10850 (do_estimate_edge_time): New function based on...
10851 (estimate_edge_time): ... this one.
10852 (do_estimate_edge_growth): New function.
10853 (do_estimate_growth): New function based on....
10854 (estimate_growth): ... this one.
10855 (inline_analyze_function): Analyze after deciding on jump functions.
10856 (inline_read_section): New function.
10857 (inline_read_summary): Use it.
10858 (inline_write_summary): Write all the new data.
10859 * ipa-prop.c (ipa_get_param_decl_index): Export.
10860 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
10861 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10862 Declare.
10863 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
10864 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10865 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10866 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10867 cgraph_edge_inlinable_p): Remove.
10868 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
10869 (cgraph_process_new_functions): Update call of
10870 compute_inline_parameters.
632b4f8e 10871
1df5b0db
RG
108722011-04-22 Richard Guenther <rguenther@suse.de>
10873
10874 * tree.c (build_int_cst): Properly create canonicalized integer
10875 constants.
10876 (build_int_cst_type): Remove scary comments.
10877
ae01169c
XDL
108782011-04-22 Xinliang David Li <davidxl@google.com>
10879
10880 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10881 by default when -Wno-error is not specified.
10882 * opts-global.c (decode_options): Remove call to
10883 control_warning_options.
10884
93dfac24
JJ
108852011-04-22 Jakub Jelinek <jakub@redhat.com>
10886
10887 PR tree-optimization/48717
10888 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10889 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10890
1b5f5069
JM
108912011-04-22 Joseph Myers <joseph@codesourcery.com>
10892
10893 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10894 definition where used.
10895
144f4153
JJ
108962011-04-22 Jakub Jelinek <jakub@redhat.com>
10897
10898 PR c/48716
10899 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10900 TREE_STATIC variables declared inside of some OpenMP construct.
10901
f9fd305b
MJ
109022011-04-22 Martin Jambor <mjambor@suse.cz>
10903
10904 PR middle-end/48585
1d284ec5 10905 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 10906
49819fef
AM
109072011-04-22 Alexander Monakov <amonakov@ispras.ru>
10908
10909 PR c/36750
10910 * c-typeck.c (pop_init_level): Do not warn about initializing
10911 with ` = {0}'.
10912
401f6699
AM
109132011-04-22 Alan Modra <amodra@gmail.com>
10914
10915 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10916 when returning call_cookie.
10917 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10918 pointers, to functions with no more vector args than the current
10919 function, and some non-local calls for ABI_V4.
10920 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10921 sibcall_nonlocal_aix64): Combine to ..
10922 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
10923 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10924 (sibcall_value_nonlocal_aix<mode>): ..likewise.
10925 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10926 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
10927 operand.
10928 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10929 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10930 sibcall_value_symbolic_64): Delete.
10931
903d1e67
XDL
109322011-04-21 Xinliang David Li <davidxl@google.com>
10933
10934 * cgraph.h: Remove pid.
10935 * cgraph.c: Remove pid.
10936 * value-prof.c (init_node_map): New function.
10937 (del_node_map): New function.
10938 (find_func_by_funcdef_no): New function.
10939 (gimple_ic_transform): Call new function.
10940 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10941 * function.c (get_last_funcdef_no): New function.
10942 * function.h (get_last_funcdef_no): New function.
10943 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10944 to libgcov function.
10945 (tree-profiling): Call node map init and delete function.
10946
7378e95f
ILT
109472011-04-21 Ian Lance Taylor <iant@google.com>
10948
10949 * godump.c (go_format_type): Use exported Go name for anonymous
10950 field name.
10951
e84a6fcf
NF
109522011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10953
10954 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10955 Call builtin_function_type_list instead of builtin_function_type.
10956 (UNARY, BINARY, TRINARY, QUAD): Likewise.
10957
4fe058e2
NF
109582011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10959
10960 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10961 build_function_type_list instead of build_function_type.
10962 Delete variable `endlink'.
10963
1ba0a2d2
NF
109642011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10965
10966 * config/s390/s390.c (s390_init_builtins): Call
10967 build_function_type_list instead of build_function_type.
10968
c0676219
NF
109692011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10970
10971 * config/ia64/ia64.c (ia64_init_builtins): Call
10972 build_function_type_list instead of builtin_function_type.
10973
6ddfda8a
ER
109742011-04-21 Easwaran Raman <eraman@google.com>
10975
3a6448ea 10976 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
10977 (add_stack_var): ...and its reference here...
10978 (expand_stack_vars): ...and here.
10979 (stack_var_cmp): Sort by descending order of size.
10980 (partition_stack_vars): Change heuristic.
1d284ec5 10981 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
10982 (dump_stack_var_partition): Add newline after each partition.
10983
23756963
DA
109842011-04-21 Dimitrios Apostolou <jimis@gmx.net>
10985 Jeff Law <law@redhat.com>
10986
77fa1d54 10987 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
10988 * gengtype.c (matching_file_name_substitute): Likewise.
10989
aa2a43d2
RG
109902011-04-21 Richard Guenther <rguenther@suse.de>
10991
10992 PR lto/48703
1d284ec5 10993 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 10994
4d931f41
EB
109952011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10996
10997 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10998
f103fa7a
RG
109992011-04-21 Richard Guenther <rguenther@suse.de>
11000
11001 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
11002 file name.
11003
e19f6650
RG
110042011-04-21 Richard Guenther <rguenther@suse.de>
11005
11006 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
11007 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
11008 Use DECL_P, not SSA_VAR_P.
11009 (ptr_derefs_may_alias_p): Likewise.
11010 (ptr_deref_may_alias_ref_p_1): Likewise.
11011 (decl_refs_may_alias_p): Likewise.
11012 (refs_may_alias_p_1): Likewise.
11013 (ref_maybe_used_by_call_p_1): Likewise.
11014 (call_may_clobber_ref_p_1): Likewise.
11015 (indirect_ref_may_alias_decl_p): Assume indirect refrences
11016 are either MEM_REF or TARGET_MEM_REF.
11017 (indirect_refs_may_alias_p): Likewise.
11018 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
11019 for MEM_EXPR of indirect calls.
11020
9d1831bb
TG
110212011-04-21 Tristan Gingold <gingold@adacore.com>
11022
11023 * vmsdbgout.c (write_srccorr): Compute file length from the string.
11024 (dst_file_info_struct): Remove flen field.
11025 (lookup_filename): Remove code that set flen field.
11026
f199c029
TG
110272011-04-21 Tristan Gingold <gingold@adacore.com>
11028
11029 * config/ia64/ia64.c (ia64_start_function): Add a guard.
11030
2894086e
UB
110312011-04-21 Uros Bizjak <ubizjak@gmail.com>
11032
11033 PR target/48708
11034 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
11035 vec_extract and vec_concat for non-SSE4_1 targets.
11036
53f94a5c
RG
110372011-04-21 Richard Guenther <rguenther@suse.de>
11038
11039 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
11040 return statements.
11041
f0dca5ba
JM
110422011-04-21 Joseph Myers <joseph@codesourcery.com>
11043
11044 * config/i386/cygming.h (union tree_node, TREE): Don't define or
11045 undefine.
11046 (FILE): Don't undefine.
11047
984514ac
JM
110482011-04-21 Joseph Myers <joseph@codesourcery.com>
11049
11050 * config/alpha/alpha.c (struct machine_function): Use rtx, not
11051 struct rtx_def *.
11052 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
11053 struct rtx_def *.
11054 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 11055 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
11056 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
11057 rtx_def *.
11058 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
11059 definitions where used.
11060 * config/microblaze/microblaze.h (struct microblaze_args): Use
11061 rtx, not struct rtx_def *.
11062 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
11063 rtx_def *.
2894086e
UB
11064 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
11065 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
11066 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
11067 not struct rtx_def *.
11068 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
11069 struct rtx_def *.
11070 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
11071 rtx_def *.
2894086e 11072 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 11073
0b5a2724
RS
110742011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11075
11076 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
11077 operand_equal_p to compare DR_BASE_ADDRESSes.
11078 (vect_check_interleaving): Likewise.
11079
4b18d683
RS
110802011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11081
11082 PR target/46329
11083 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
11084 for all Neon struct constants.
11085
1a627b35
RS
110862011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11087
11088 * target.def (legitimate_constant_p): New hook.
11089 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
11090 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
11091 * doc/tm.texi: Regenerate.
11092 * hooks.h (hook_bool_mode_rtx_true): Declare.
11093 * hooks.c (hook_bool_mode_rtx_true): Define.
11094 * system.h (LEGITIMATE_CONSTANT_P): Poison.
11095 * calls.c (precompute_register_parameters): Replace uses of
11096 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
11097 (emit_library_call_value_1): Likewise.
11098 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
11099 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
11100 * ira-costs.c (scan_one_insn): Likewise.
11101 * recog.c (general_operand, immediate_operand): Likewise.
11102 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
11103 * reload1.c (init_eliminable_invariants): Likewise.
11104
11105 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
11106 mode argument.
11107 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
11108 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
11109 argument.
11110 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11111 * config/alpha/predicates.md (input_operand): Update call to
11112 alpha_legitimate_constant_p.
11113
11114 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
11115 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
11116 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
11117 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11118 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
11119 (arm_legitimate_constant_p): New functions.
11120 (arm_cannot_force_const_mem): Make static.
11121
11122 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
11123
11124 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
11125 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
11126 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
11127 instead of bfin_legitimate_constant_p.
11128 (bfin_legitimate_constant_p): Make static. Add a mode argument.
11129 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11130
11131 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
11132
11133 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
11134
11135 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
11136 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
11137 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11138 (frv_legitimate_constant_p): Make static. Add a mode argument.
11139
11140 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
11141 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
11142 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
11143
11144 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
11145 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
11146 * config/i386/i386.c (legitimate_constant_p): Rename to...
11147 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
11148 argument.
11149 (ix86_cannot_force_const_mem): Update accordingly.
11150 (ix86_legitimate_address_p): Likewise.
11151 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11152 * config/i386/i386.md: Update commentary.
11153
11154 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
11155 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
11156 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11157 (ia64_legitimate_constant_p): Make static. Add a mode argument.
11158
11159 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11160
11161 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11162 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11163 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11164 (lm32_legitimate_constant_p): Make static. Add a mode argument.
11165
11166 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11167 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11168 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11169
11170 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11171 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11172 (m32r_legitimate_constant_p): New function.
11173
11174 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11175 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11176 LEGITIMATE_CONSTANT_P.
11177 (LEGITIMATE_CONSTANT_P): Delete.
11178 * config/m68k/m68k.c (m68k_expand_prologue): Call
11179 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11180 (m68k_legitimate_constant_p): New function.
11181 * config/m68k/m68k.md: Update comments.
11182
11183 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11184 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11185 (mcore_legitimate_constant_p): New function.
11186
11187 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11188 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11189 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11190 Add a mode argument.
11191 (mep_legitimate_address): Update accordingly.
11192 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11193
11194 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11195 Delete.
11196 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11197 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11198 static. Check OP's mode for VOIDmode.
11199 (microblaze_legitimate_constant_p): New function.
11200 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11201
11202 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11203 * config/mips/mips.c (mips_legitimate_constant_p): New function.
11204 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11205 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11206 * config/mips/predicates.md: Update comments.
11207
11208 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11209 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11210 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11211 (mmix_legitimate_constant_p): Make static, return a bool, and take
11212 a mode argument.
11213 (mmix_print_operand_address): Update accordingly.
11214
11215 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11216 Delete.
11217 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
11218 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11219 static. Add a mode argument.
1a627b35
RS
11220 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11221
11222 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11223
11224 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11225 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11226 (pa_legitimate_constant_p): New function.
11227
11228 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11229
11230 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11231 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11232 (pdp11_legitimate_constant_p): New function.
11233
11234 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11235 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11236 (rs6000_legitimate_constant_p): New function.
11237
11238 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11239 (rx_legitimate_constant_p): ...this.
11240 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11241 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11242 (rx_legitimate_constant_p): ...this.
11243 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11244 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11245
11246 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11247 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11248 * config/s390/s390.c (legitimate_constant_p): Rename to...
11249 (s390_legitimate_constant_p): ...this. Make static, return a bool,
11250 and add a mode argument.
11251 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11252
11253 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11254
11255 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11256 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11257 (sh_legitimate_constant_p): New function.
11258
11259 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11260 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11261 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11262 (legitimate_constant_p): Rename to...
11263 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11264 argument.
11265 (constant_address_p): Update accordingly.
11266
11267 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11268 argument and return a bool.
11269 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11270 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11271 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11272 (spu_rtx_costs): Update accordingly.
11273 * config/spu/predicates.md (vec_imm_operand): Likewise.
11274
11275 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11276
11277 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11278 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11279 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11280
11281 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11282 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11283 * config/vax/vax.c (legitimate_constant_p): Likewise.
11284
11285 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11286 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11287 (xtensa_legitimate_constant_p): New function.
11288
fbbf66e7
RS
112892011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11290
11291 * target.def (cannot_force_const_mem): Add a mode argument.
11292 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11293 * doc/tm.texi: Regenerate.
11294 * hooks.h (hook_bool_mode_rtx_false): Declare.
11295 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11296 (hook_bool_mode_const_rtx_true): Likewise.
11297 (hook_bool_mode_rtx_false): New function.
11298 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11299 to be non-VOID. Update call to cannot_force_const_mem.
11300 (find_reloads): Update accordingly.
11301 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11302 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11303 argument.
11304 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11305 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11306 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11307 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11308 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11309 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11310 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11311 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11312 (m68k_cannot_force_const_mem): ...this new function.
11313 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11314 argument.
11315 (mips_const_insns, mips_legitimize_const_move): Update calls.
11316 (mips_secondary_reload_class): Likewise.
11317 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11318 (pa_cannot_force_const_mem): ...this new function.
2894086e 11319 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
11320 (rs6000_cannot_force_const_mem): ...this new function.
11321 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11322 argument.
11323 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11324 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11325 to...
11326 (xtensa_cannot_force_const_mem): ...this new function.
11327
b861891b
NF
113282011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11329
11330 * config/mips/mips.c (mips16_build_function_stub): Call
11331 build_function_type_list instead of build_function_type.
11332 (mips16_build_call_stub): Likewise.
11333
34149ed5
NF
113342011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11335
11336 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11337 instead of build_function_type.
11338
12526412
NF
113392011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11340
11341 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11342 instead of build_function_type.
11343
3b84d61f
UB
113442011-04-20 Uros Bizjak <ubizjak@gmail.com>
11345
11346 PR target/48678
11347 * config/i386/i386.md (insv): Change operand 0 constraint to
11348 "register_operand". Change operand 1 and 2 constraint to
11349 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11350 * config/i386/sse.md (sse4_1_pinsrb): Export.
11351 (sse2_pinsrw): Ditto.
11352 (sse4_1_pinsrd): Ditto.
11353 (sse4_1_pinsrq): Ditto.
11354 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11355 * config/i386/i386.c (ix86_expand_pinsr): New.
11356
4a25752b
ER
113572011-04-20 Easwaran Raman <eraman@google.com>
11358
11359 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11360 containing union type only with -fstrict-aliasing.
11361
04695783
JM
113622011-04-20 Jim Meyering <meyering@redhat.com>
11363
11364 Remove useless if-before-free tests.
11365 * calls.c (expand_call, save_area): Likewise.
11366 * cfgcleanup.c (try_forward_edges): Likewise.
11367 * collect2.c (collect_execute): Likewise.
11368 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11369 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11370 * coverage.c (coverage_checksum_string): Likewise.
11371 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11372 * cselib.c (cselib_init): Likewise.
11373 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11374 (df_set_clean_cfg): Likewise.
11375 * function.c (free_after_compilation): Likewise.
11376 * gcc.c (do_spec_1, main): Likewise.
11377 * gcov.c (create_file_names): Likewise.
11378 * gensupport.c (identify_predicable_attribute): Likewise.
11379 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11380 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11381 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11382 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11383 * ipa-pure-const.c (local_pure_const): Likewise.
11384 * ipa-reference.c (propagate): Likewise.
11385 * ira-costs.c (free_ira_costs): Likewise.
11386 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11387 * matrix-reorg.c (mat_free): Likewise.
11388 * prefix.c (get_key_value): Likewise.
11389 * profile.c (compute_value_histograms): Likewise.
11390 * reload1.c (free_reg_equiv): Likewise.
11391 * sched-deps.c (free_deps): Likewise.
11392 * sel-sched-ir.c (fence_clear): Likewise.
11393 * sese.c (set_rename, if_region_set_false_region): Likewise.
11394 * tree-data-ref.c (free_rdg): Likewise.
11395 * tree-eh.c (lower_try_finally): Likewise.
11396 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11397 * tree-ssa-live.c (delete_var_map): Likewise.
11398 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11399 * tree-ssa-pre.c (phi_trans_add): Likewise.
11400
6788475a
JJ
114012011-04-20 Jakub Jelinek <jakub@redhat.com>
11402
11403 PR tree-optimization/48611
11404 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11405 beyond ERT_MUST_NOT_THROW region.
11406
0eda4033
CM
114072011-04-20 Catherine Moore <clm@codesourcery.com>
11408
11409 * config/mips/mips.opt (mfix-24k): New.
11410 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11411 * config/mips/mips.md (length): Increase by 4 for stores if
11412 fixing 24K errata.
11413 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11414 all noreorder if fixing 24K errata.
11415 * doc/invoke.texi: Document mfix-24k.
11416
01475747
CLT
114172011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11418
11419 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 11420 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 11421
bc2c1a60
AS
114222011-04-20 Andrew Stubbs <ams@codesourcery.com>
11423
11424 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11425 (const_ok_for_op): ... to here.
11426
583722ee
KT
114272011-04-20 Kai Tietz <ktietz@redhat.com>
11428
2894086e
UB
11429 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11430 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 11431
422c0989
AS
114322011-04-20 Andrew Stubbs <ams@codesourcery.com>
11433
11434 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11435
d7978bff
RG
114362011-04-20 Richard Guenther <rguenther@suse.de>
11437
11438 PR tree-optimization/47892
11439 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11440 are if-convertible.
11441
818412ba
EB
114422011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11443
11444 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11445
b501ce4e
TG
114462011-04-20 Tristan Gingold <gingold@adacore.com>
11447
11448 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11449
516edfdd
GJL
114502011-04-20 Georg-Johann Lay <avr@gjlay.de>
11451
11452 PR target/18145
11453
11454 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11455 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11456 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11457 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11458 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11459
11460 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11461 New prototype.
11462
11463 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11464 (avr_asm_named_section, avr_asm_output_aligned_common,
11465 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11466 New functions to update...
11467 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11468 (avr_asm_init_sections): Overwrite section callbacks for
11469 data_section, bss_section.
11470 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11471 from here to...
11472 (avr_file_end): ...here.
11473
dafc9511
RG
114742011-04-20 Richard Guenther <rguenther@suse.de>
11475
11476 PR middle-end/48695
11477 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 11478 objects and types here. Adjust for their offset before comparing.
dafc9511 11479
1da0876c
RS
114802011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11481
11482 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11483 statement per copy.
11484
25583c4f
RS
114852011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11486
11487 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11488 (GIMPLE_H): Include $(INTERNAL_FN_H).
11489 (OBJS-common): Add internal-fn.o.
11490 (internal-fn.o): New rule.
11491 * internal-fn.def: New file.
11492 * internal-fn.h: Likewise.
11493 * internal-fn.c: Likewise.
11494 * gimple.h: Include internal-fn.h.
11495 (GF_CALL_INTERNAL): New gf_mask.
11496 (gimple_statement_call): Put fntype into a union with a new
11497 internal_fn field.
11498 (gimple_build_call_internal): Declare.
11499 (gimple_build_call_internal_vec): Likewise.
11500 (gimple_call_same_target_p): Likewise.
11501 (gimple_call_internal_p): New function.
11502 (gimple_call_internal_fn): Likewise.
11503 (gimple_call_fntype): Return null for internal calls.
11504 (gimple_call_set_fntype): Assert that the function is not internal.
11505 (gimple_call_set_fn): Likewise.
11506 (gimple_call_set_fndecl): Likewise.
11507 (gimple_call_set_internal_fn): New function.
11508 (gimple_call_addr_fndecl): Handle null functions.
11509 (gimple_call_return_type): Likewise null types.
11510 * gimple.c (gimple_build_call_internal_1): New function.
11511 (gimple_build_call_internal): Likewise.
11512 (gimple_build_call_internal_vec): Likewise.
11513 (gimple_call_same_target_p): Likewise.
11514 (gimple_call_flags): Handle calls to internal functions.
11515 (gimple_call_fnspec): New function.
11516 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11517 (gimple_has_side_effects): Handle null functions.
11518 (gimple_rhs_has_side_effects): Likewise.
11519 (gimple_call_copy_skip_args): Handle calls to internal functions.
11520 * cfgexpand.c (expand_call_stmt): Likewise.
11521 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11522 * gimple-fold.c (gimple_fold_call): Handle null functions.
11523 (gimple_fold_stmt_to_constant_1): Don't fold
11524 calls to internal functions.
11525 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11526 functions.
11527 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11528 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11529 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11530 (do_warn_unused_result): Likewise.
11531 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11532 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11533 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11534 the target of a call.
11535 (initialize_hash_element): Update accordingly.
11536 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11537 (iterative_hash_hashable_expr): Handle calls to internal functions.
11538 (print_expr_hash_elt): Likewise.
11539 * tree-ssa-pre.c (can_value_number_call): Likewise.
11540 (eliminate): Handle null functions.
11541 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11542 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11543 (find_func_aliases): Likewise.
11544 * value-prof.c (gimple_ic_transform): Likewise.
11545 (gimple_indirect_call_to_profile): Likewise.
11546 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11547 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11548
1a3118e9
JH
115492011-04-19 Jan Hubicka <jh@suse.cz>
11550
11551 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
11552 * ipa-inline.c (inline_small_functions): Compute summaries first,
11553 populate heap later.
1a3118e9 11554
fee8b6da
JH
115552011-04-19 Jan Hubicka <jh@suse.cz>
11556
11557 * cgraph.h (save_inline_function_body): Remove.
11558 * ipa-inline-transform.c: New file, broke out of...
11559 * ipa-inline.c: ... this one; Update toplevel comment.
11560 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11561 make global.
11562 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11563 (cgraph_mark_inline_edge): Rename to inline_call; move to
11564 ipa-inline-transform.c.
11565 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11566 move to ipa-inline-transform.c
11567 (recursive_inlining, inline_small_functions, flatten_function,
11568 ipa_inline, inline_always_inline_functions,
11569 early_inline_small_functions): Update.
11570 (inline_transform): Move to ipa-inline-transform.c.
11571 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11572 Declare.
11573 * Makefile.in (ipa-inline-transform.o): New file.
11574 * cgraphunit.c (save_inline_function_body): Move to
11575 ipa-inline-transform.c
11576
f0679612
DD
115772011-04-19 DJ Delorie <dj@redhat.com>
11578
11579 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11580 registers if we already know there aren't any.
11581 (m32c_emit_epilogue): Don't emit a barrier here.
11582 (m32c_emit_eh_epilogue): Likewise.
11583 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11584 operands at expand time.
11585 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11586 int" wchar type.
11587 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11588 duplicates. Provide aliases instead.
11589 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11590 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11591 the compiler.
11592
32257ddc
AS
115932011-04-19 Anatoly Sokolov <aesok@post.ru>
11594
11595 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11596 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11597 (general_or_i64_p, sparc_register_move_cost): New function.
11598
60bea929
RO
115992011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11600
11601 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 11602 Add lynx, mipssde. Sort table.
60bea929 11603
444b3995 116042011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 11605
9d12f71a
EB
11606 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11607 not negative.
444b3995 11608
d708ce50
JJ
116092011-04-19 Jakub Jelinek <jakub@redhat.com>
11610
11611 PR target/48678
11612 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11613 is a SUBREG with non-MODE_INT mode inside of it.
11614
49c471e3
MJ
116152011-04-19 Martin Jambor <mjambor@suse.cz>
11616
11617 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11618 also according to actual contants.
11619 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11620 (gimple_fold_call): Use it.
11621 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11622
0004f992
MJ
116232011-04-19 Martin Jambor <mjambor@suse.cz>
11624
11625 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11626 non-pointer assignments.
11627
40591473
MJ
116282011-04-19 Martin Jambor <mjambor@suse.cz>
11629
11630 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11631 account anc_offset and otr_type from the indirect edge info.
11632 * ipa-prop.c (get_ancestor_addr_info): New function.
11633 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11634 get_ancestor_addr_info, call it.
11635 (ipa_note_param_call): Do not initialize information about polymorphic
11636 calls, return the indirect call graph edge. Remove the last
11637 parameter, adjust all callers.
11638 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11639 parameters. Initialize polymorphic information in the indirect edge.
11640
abe36b81
EB
116412011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11642
11643 PR lto/48148
11644 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11645 the types if they have different enumeration identifiers.
11646
e6416b30
JH
116472011-04-19 Jan Hubicka <jh@suse.cz>
11648
11649 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11650 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11651 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11652 (optimize_function_for_size_p) ... here.
11653
d39132ea
RG
116542011-04-19 Richard Guenther <rguenther@suse.de>
11655
11656 PR lto/48207
11657 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11658 langhook.
11659
ff7037dc
EB
116602011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11661
11662 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11663 if DECL_NO_INLINE_WARNING_P is set on the function.
11664
c1ee2892
BS
116652011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11666
11667 PR fortran/47976
11668 * reload1.c (inc_for_reload): Return void. All callers changed.
11669 (emit_input_reload_insns): Don't try to delete previous output
11670 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
11671
116722011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11673
11674 * gengtype.h: Updated copyright year.
11675 (struct input_file_st): Add inpisplugin field.
11676 (type_fileloc): New function.
11677 * gengtype.c
11678 (write_typed_struct_alloc_def): Add gcc_assert.
11679 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11680 (write_typed_alloc_defns): Don't output for plugin files.
11681 (input_file_by_name): Clear inpisplugin field.
11682 (main): Set inpisplugin field for plugin files.
11683
897e0a89
NP
116842011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11685
11686 * gengtype-state.c (string_eq): New.
11687 (read_state): Use string_eq instead of strcmp when creating the
11688 state_ident_tab.
11689
363ee90e
WG
116902011-04-19 Wei Guozhi <carrot@google.com>
11691
11692 PR target/47855
11693 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11694 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11695 linkage.
11696 * config/arm/constraints.md (Uu): New constraint.
11697 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11698
18a24fed
TG
116992011-04-19 Tristan Gingold <gingold@adacore.com>
11700
11701 * config.gcc (-*-*-*vms): Added.
11702 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11703 definitions moved.
11704 * config/vms/vms-ld.c: New file.
11705 * config/vms/vms-ar.c: New file.
11706 * config/vms/t-vmsnative: New file.
11707
1c13f168
XDL
117082011-04-18 Xinliang David Li <davidxl@google.com>
11709
11710 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11711
84825707
JJ
117122011-04-18 Jakub Jelinek <jakub@redhat.com>
11713
11714 PR middle-end/48661
11715 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11716 if TREE_TYPE (v) is non-NULL.
11717
11718 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11719 gimple_get_virt_mehtod_for_binfo.
11720 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11721 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11722 callers.
11723 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11724
7d4f8d02 117252011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
11726 Steve Ellcey <sje@cup.hp.com>
11727
7d4f8d02
EB
11728 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11729 use its mode as source mode if it isn't VOIDmode.
7254cb57 11730
474e8e70
DCR
117312011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11732
11733 * doc/passes.texi: Fill crossref nodes.
11734
cff41484
JM
117352011-04-18 Jim Meyering <meyering@redhat.com>
11736
7d4f8d02 11737 Fix doubled-word typos in comments and strings
cff41484
JM
11738 * config/alpha/vms-unwind.h: s/for for/for/
11739 * config/arm/unwind-arm.h: Likewise.
11740 * config/microblaze/microblaze.c: Likewise.
11741 * config/sh/constraints.md: s/in in/in/
11742 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11743
f60c2554
UB
117442011-04-18 Uros Bizjak <ubizjak@gmail.com>
11745
11746 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11747 (AVX_FLOAT_MODE_P): Ditto.
11748 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11749 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11750 (AVX_VEC_FLOAT_MODE_P): Ditto.
11751 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11752 (UNSPEC_MASKSTORE): Ditto.
11753 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11754 Merge from <sse>_movmsk<ssemodesuffix> and
11755 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11756 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11757 iterator.
11758 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11759 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11760 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11761
09a2806f
JH
117622011-04-18 Jan Hubicka <jh@suse.cz>
11763
8a8dccb2
JH
11764 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11765
09a2806f
JH
11766 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11767 (want_inline_function_called_once_p): Break out the logic from
11768 ipa_inline.
11769 (edge_badness): Ensure that profile is not misupdated.
11770 (lookup_recursive_calls): Prioritize by call frequencies.
11771 (inline_small_functions): Move program size estimates here;
11772 actually process whole queue even when unit growth has been
11773 met. (to properly compute inline_failed reasons and for the
f60c2554 11774 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
11775 (ipa_inline): Remove unit summary code; first inline hot calls
11776 of functions called once, cold calls next.
11777 (order, nnodes): Remove unused variables.
11778 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11779 (GTFILES): Remove ipa-inline.c
11780 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11781
3eea52ef
EB
117822011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11783
11784 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11785
229a1c59 117862011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 11787 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
11788
11789 * arm.c (neon_builtin_type_bits): Remove.
11790 (typedef enum neon_builtin_mode): New.
11791 (T_MAX): Don't define.
11792 (typedef enum neon_builtin_datum): Remove bits, codes[],
11793 num_vars and base_fcode. Add mode, code and fcode.
11794 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11795 VAR10): Change accordingly.
11796 (neon_builtin_data[]): Change accordingly
11797 (arm_init_neon_builtins): Change accordingly.
11798 (neon_builtin_compare): Remove.
11799 (locate_neon_builtin_icode): Remove.
11800 (arm_expand_neon_builtin): Change accordingly.
11801
11802 * arm.h (enum arm_builtins): Move to ...
11803 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11804
11805 * arm.c (arm_builtin_decl): Declare.
11806 (TARGET_BUILTIN_DECL): Define.
11807 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11808 (arm_builtin_decls[]): New.
11809 (arm_init_neon_builtins): Store builtin declarations in
11810 arm_builtin_decls[].
11811 (arm_init_tls_builtins): Likewise.
11812 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11813 (arm_builtin_decl): New.
11814
75e802cc
RG
118152011-04-18 Richard Guenther <rguenther@suse.de>
11816
11817 * tree.c (upper_bound_in_type): Build properly canonicalized
11818 INTEGER_CSTs.
11819 (lower_bound_in_type): Likewise.
11820
3b45a007
RG
118212011-04-18 Richard Guenther <rguenther@suse.de>
11822
11823 * gimple.h (gimple_call_addr_fndecl): New function.
11824 (gimple_call_fndecl): Use it.
11825 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11826 for direct calls.
11827 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11828 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11829
d25a79ea
RG
118302011-04-18 Richard Guenther <rguenther@suse.de>
11831
11832 PR middle-end/48650
11833 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11834
7d5fc814
EB
118352011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11836
11837 PR lto/48492
11838 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11839 DECL_IN_CONSTANT_POOL without RTL.
11840
7e7cfcf6
UW
118412011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11842 Ira Rosen <ira.rosen@linaro.org>
11843
11844 PR target/48252
11845 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11846 to match neon_vzip/vuzp/vtrn_internal.
11847 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11848 outputs explicitly dependent on both inputs.
11849 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11850
49eab32e
JJ
118512011-04-18 Jakub Jelinek <jakub@redhat.com>
11852
11853 PR tree-optimization/48616
11854 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11855 whether the shift is by scalar or vector based on whether all SLP
11856 scalar stmts have the same rhs.
11857
e54170f4
CLT
118582011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11859
11860 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11861 memory operands.
11862
b14ee6c9
RS
118632011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11864
269e0e18 11865 PR target/43700
b14ee6c9
RS
11866 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11867 registers.
11868
10158cd3
JH
118692011-04-17 Jan Hubicka <jh@suse.cz>
11870
11871 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
11872 * cgrpahunit.c (cgraph_finalize_function): Do not set
11873 finalized_by_frontend.
10158cd3
JH
11874 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11875 finalized_by_frontend.
11876
2e9bb6ba
JH
118772011-04-17 Jan Hubicka <jh@suse.cz>
11878
11879 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11880 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11881 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
11882 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11883 method.
2e9bb6ba
JH
11884 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11885 gimple-fold.c
11886 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11887
beb628e1
EB
118882011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11889
11890 PR lto/48538
11891 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11892 is non-null before accessing it.
11893 (input_cgraph): Remove trailing spaces.
11894
3e2fdd24
RE
118952011-04-17 Revital Eres <revital.eres@linaro.org>
11896
11897 * params.def (sms-min-sc): New param flag.
11898 * modulo-sched.c (sms_schedule): Use it.
11899 * doc/invoke.texi (sms-min-sc): Document it.
11900
4c0f7679
JH
119012011-04-17 Jan Hubicka <jh@suse.cz>
11902
11903 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11904 present, also set gimple_call_set_cannot_inline.
11905 * ipa-inline.c: Update toplevel comment.
11906 (MAX_TIME): Remove.
11907 (cgraph_clone_inlined_nodes): Fix linebreaks.
11908 (cgraph_check_inline_limits): Restructure to ...
11909 (caller_growth_limits): ... this one; be more tolerant
11910 on growth in nested inline chains; add explanatory comment;
11911 fix stack accounting thinko introduced by previous patch.
11912 (cgraph_default_inline_p): Remove.
11913 (report_inline_failed_reason): New function.
11914 (can_inline_edge_p): New function.
11915 (can_early_inline_edge_p): New function.
11916 (leaf_node_p): Move upwards in file.
11917 (want_early_inline_function_p): New function.
11918 (want_inline_small_function_p): New function.
11919 (want_inline_self_recursive_call_p): New function.
11920 (cgraph_edge_badness): Rename to ...
11921 (edge_badness) ... this one; fix linebreaks.
11922 (update_edge_key): Update call of edge_baddness; add
11923 detailed dump about queue updates.
11924 (update_caller_keys): Use can_inline_edge_p and
11925 want_inline_small_function_p.
11926 (cgraph_decide_recursive_inlining): Rename to...
11927 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
11928 want_inline_self_recursive_call_p; simplify and remove no longer
11929 valid FIXME.
4c0f7679
JH
11930 (cgraph_set_inline_failed): Remove.
11931 (add_new_edges_to_heap): Use can_inline_edge_p and
11932 want_inline_small_function_p.
11933 (cgraph_decide_inlining_of_small_functions): Rename to ...
11934 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
11935 can/want predicates; cleanup debug ouput; work edges till fibheap
11936 is exhausted and do not stop once unit growth is reached; remove
11937 later loop processing remaining edges.
4c0f7679
JH
11938 (cgraph_flatten): Rename to ...
11939 (flatten_function): ... this one; use can_inline_edge_p
11940 and can_early_inline_edge_p predicates.
11941 (cgraph_decide_inlining): Rename to ...
11942 (ipa_inline): ... this one; remove unreachable nodes before
11943 inlining functions called once; simplify the pass.
11944 (cgraph_perform_always_inlining): Rename to ...
11945 (inline_always_inline_functions): ... this one; use
f60c2554 11946 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
11947 (cgraph_decide_inlining_incrementally): Rename to ...
11948 (early_inline_small_functions): ... this one; simplify
11949 using new predicates; cleanup; make dumps prettier.
11950 (cgraph_early_inlining): Rename to ...
11951 (early_inliner): newer inline regular functions into always-inlines;
11952 fix updating of call stmt summaries.
11953 (pass_early_inline): Update for new names.
11954 (inline_transform): Fix formating.
11955 (gate_cgraph_decide_inlining): Rename to ...
11956 (pass_ipa_inline): ... this one.
11957 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11958 * ipa-inline-analysis.c (dump_inline_summary): Update.
11959 (compute_inline_parameters): Do not compute disregard_inline_limits;
11960 look for mismatching arguments.
11961 (estimate_growth): Fix handlig of non-trivial self recursion.
11962 (inline_read_summary): Do not read info->disregard_inline_limits.
11963 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
11964 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11965 and move all checks into can_inline_edge_p predicate; re-enable code
11966 comparing optimization levels.
4c0f7679
JH
11967 (expand_call_inline): Do not test inline_forbidden_into_p.
11968 * Makefile.in (ipa-inline.o): Update arguments.
11969
54333b7c
RE
119702011-04-17 Revital Eres <revital.eres@linaro.org>
11971
11972 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11973
42c2bf92
RE
119742011-04-17 Revital Eres <revital.eres@linaro.org>
11975
11976 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11977
b183e9e0
MM
119782011-04-17 Michael Matz <matz@suse.de>
11979
11980 PR tree-optimization/48622
11981 PR lto/48645
11982 * ipa-inline-analysis.c (inline_read_summary): Read size/time
11983 in same order as they're written.
11984
b8a17fa2
JDA
119852011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11986
11987 * config/pa/predicates.md: Reorganize and simplify predicates.
11988 Eliminate duplicate code checks.
11989 (arith_operand): Rename to arith14_operand
11990 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11991 * config/pa/pa.md: Use renamed operands.
11992 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11993 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11994 arith11_operand, adddi3_operand, indexed_memory_operand,
11995 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11996 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11997 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11998 move_dest_operand, move_src_operand, prefetch_cc_operand,
11999 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
12000 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
12001 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
12002 div_operand, int5_operand, movb_comparison_operator,
12003 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
12004 arith_double_operand, ireg_operand, lhs_lshift_operand,
12005 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
12006 integer_store_memory_operand): Likewise.
12007 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
12008 (integer_store_memory_operand, read_only_operand,
12009 function_label_operand, borx_reg_operand,
12010 non_hard_reg_operand): Likewise.
12011 (eq_neq_comparison_operator): Delete unused operator.
12012 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
12013 function_label_operand.
12014 (emit_move_sequence): Likewise.
12015
8dfb9f16
UB
120162011-04-16 Uros Bizjak <ubizjak@gmail.com>
12017
12018 * config/i386/sse.md (sseunpackmode): New mode attribute.
12019 (ssepackmode): Ditto.
12020 (vec_pack_trunc_<mode>): Macroize expander from
12021 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
12022 (vec_unpacks_lo_<mode>): Macroize expander from
12023 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12024 (vec_unpacks_hi_<mode>): Macroize expander from
12025 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12026 (vec_unpacku_lo_<mode>): Macroize expander from
12027 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12028 (vec_unpacku_hi_<mode>): Macroize expander from
12029 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
12030 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
12031 ix86_expand_sse4_unpack.
12032 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
12033
e7f23018
JH
120342011-04-16 Jan Hubicka <jh@suse.cz>
12035
12036 * cgraphbuild.c: Include ipa-inline.h.
12037 (reset_inline_failed): Use initialize_inline_failed.
12038 * cgraph.c: Include ipa-inline.h.
12039 (cgraph_create_node_1): Do not initialize estimated_growth.
12040 (initialize_inline_failed): More to ipa-inline-analysis.c
12041 (dump_cgraph_node): Do not dump inline flags.
12042 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
12043 and disregard_inline_limits flags.
12044 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
12045 time, size, estimated_growth.
8dfb9f16
UB
12046 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
12047 Update.
e7f23018
JH
12048 * cgraphunit.c (cgraph_decide_is_function_needed): Use
12049 DECL_DISREGARD_INLINE_LIMITS.
12050 (cgraph_analyze_function): Do not initialize
12051 node->local.disregard_inline_limits.
12052 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
12053 inlinable, versionable and disregard_inline_limits.
12054 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
12055 cgraph_check_inline_limits, cgraph_default_inline_p,
12056 cgraph_edge_badness, update_caller_keys, update_callee_keys,
12057 add_new_edges_to_heap): Update.
12058 (cgraph_decide_inlining_of_small_function): Update; set
12059 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
12060 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
12061 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
12062 * ipa-inline.h (inline_summary): Add inlinable, versionable,
12063 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
12064 time, size and estimated_growth parameters.
e7f23018
JH
12065 (estimate_edge_growth): Update.
12066 (initialize_inline_failed): Declare.
12067 * ipa-split.c: Include ipa-inline.h
12068 (execute_split_functions): Update.
12069 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
12070 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
12071 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
12072 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
12073 estimated_growth to INT_MIN.
12074 (inline_node_duplication_hook): Likewise.
12075 (dump_inline_summary): Dump new fields.
12076 (compute_inline_parameters): Update.
12077 (estimate_edge_time, estimate_time_after_inlining,
12078 estimate_size_after_inlining, estimate_growth, inline_read_summary,
12079 inline_write_summary):
12080 (initialize_inline_failed): Move here from cgraph.c.
12081 * tree-sra.c: Include ipa-inline.h.
12082 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
12083 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
12084 ipa-inline.h.
e7f23018 12085
e81b8564
UB
120862011-04-16 Uros Bizjak <ubizjak@gmail.com>
12087
12088 * config/i386/sse.md (V16): New mode iterator.
12089 (VI1, VI8): Ditto.
12090 (AVXMODEQI, AVXMODEDI): Remove.
12091 (sse2, sse3): New mode attribute.
12092 (mov<mode>): Use V16 mode iterator.
12093 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
12094 (push<mode>1): Use V16 mode iterator.
12095 (movmisalign<mode>): Ditto.
12096 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12097 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
12098 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
12099 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
12100 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
12101 avx_movdqu<avxmodesuffix>.
12102 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
12103 *avx_movdqu<avxmodesuffix>.
12104 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
12105 avx_lddqu<avxmodesuffix>.
12106 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
12107 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
12108 avx_movnt<AVXMODEDI:mode>.
12109 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
12110 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
12111
4743d438
BS
121122011-04-16 Bernd Schmidt <bernds@codesourcery.com>
12113
12114 PR target/48629
12115 * haifa-sched.c (prune_ready_list, schedule_block): Use
12116 sched_pressure_p rather than flag_sched_pressure.
12117
748f7574 121182011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
12119
12120 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12121 cgraph_get_node instead of cgraph_get_create_node.
12122
2ba172e0
JJ
121232011-04-15 Jakub Jelinek <jakub@redhat.com>
12124
12125 * cfgexpand.c (expand_debug_expr): Use
12126 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
12127
63d2a353
MM
121282011-04-15 Michael Matz <matz@suse.de>
12129
12130 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
12131 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
12132 * function.c (gimplify_parameters): Ditto.
12133 * gimplify.c (gimplify_vla_decl): Ditto.
12134
12135 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
12136 (gimple_call_set_alloca_for_var): New inline function.
12137 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
12138 * gimple.c (gimple_build_call_from_tree): Remember
12139 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
12140 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
12141
12142 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
12143 calls if they were for VLA objects.
12144
dee74c34
MJ
121452011-04-15 Martin Jambor <mjambor@suse.cz>
12146
12147 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
12148 of ADR_EXPRs.
12149
8e5837bc
MJ
121502011-04-15 Martin Jambor <mjambor@suse.cz>
12151
12152 PR middle-end/48601
12153 * tree-emutls.c (lower_emutls_function_body): Call
12154 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
12155 result is non-NULL.
12156
0dc33c3c
NP
121572011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
12158
12159 * c-decl.c (detect_field_duplicates): Call
12160 objc_detect_field_duplicates instead of objc_get_interface_ivars.
12161
edcdea5b
NF
121622011-04-15 Nathan Froyd <froydnj@codesourcery.com>
12163
12164 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12165 * gimple.c (gimple_asm_clobbers_memory_p): Define.
12166 * ipa-pure-const.c (check_stmt): Call it.
12167 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12168
8456558d
RG
121692011-04-15 Richard Guenther <rguenther@suse.de>
12170
12171 PR tree-optimization/48290
12172 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12173 Properly decide inhibiting propagation based on the valueized
12174 operand. Do loop-closed SSA form preserving here ...
12175 (init_copy_prop): ... not here.
12176
266446be
L
121772011-04-15 H.J. Lu <hongjiu.lu@intel.com>
12178
12179 PR target/48612
12180 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12181 (*ieee_smax<mode>3): Likewise.
12182
17465c6e
AK
121832011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12184
12185 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12186 Replace match_operand with match_dup for the third operand in
12187 these expanders.
12188
bce204e5
MK
121892011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12190
12191 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12192 to track processing of conditionals. Update all callers.
12193 (try_combine, simplify_if_then_else): Update.
12194
3162fdf4
MK
121952011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12196
12197 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12198 -fsched-pressure.
12199
79002a57 122002011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 12201
79002a57
GJL
12202 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12203 instead of match_operand for operand 3.
12204
4fd3a105
RS
122052011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
12206
12207 * recog.h (insn_operand_data): Add an "allows_mem" field.
12208 * genoutput.c (output_operand_data): Initialize it.
12209 * optabs.c (maybe_legitimize_operand_same_code): New function.
12210 (maybe_legitimize_operand): Use it when matching the original
12211 op->value.
12212
ad19c4be
EB
122132011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12214
12215 * gimplify.c: Fix issues in comments throughout.
12216 (voidify_wrapper_expr): Fix long line.
12217 (build_stack_save_restore): Likewise.
12218 (gimplify_loop_expr): Likewise.
12219 (gimplify_compound_lval): Likewise.
12220 (gimplify_init_ctor_eval): Likewise.
12221 (gimplify_modify_expr_rhs): Likewise.
12222 (omp_notice_threadprivate_variable): Likewise.
12223
b25aa0e8 122242011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 12225
b25aa0e8
EB
12226 * cfgexpand.c (expand_call_stmt): Convert the function type to the
12227 original one if this is not a builtin function.
e7925582 12228
09db7afe
JJ
122292011-04-14 Jakub Jelinek <jakub@redhat.com>
12230
12231 PR target/48605
12232 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12233 offset it as needed based on top 2 bits in operands[3], change
12234 MEM mode to SFmode and mask those 2 bits away from operands[3].
12235
c59633d9
NP
122362011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12237
12238 * c-parser.c (c_parser_objc_protocol_definition): Updated for
12239 change from objc_declare_protocols() to objc_declare_protocol().
12240
5e60198b
UB
122412011-04-14 Uros Bizjak <ubizjak@gmail.com>
12242
12243 * config/i386/sse.md (sse4_1): New mode attribute.
12244 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12245 avx_blend<ssemodesuffix><avxmodesuffix> and
12246 sse4_1_blend<ssemodesuffix> using VF mode iterator.
12247 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12248 avx_blendv<ssemodesuffix><avxmodesuffix> and
12249 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12250 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12251 avx_dp<ssemodesuffix><avxmodesuffix> and
12252 sse4_1_dp<ssemodesuffix> using VF mode iterator.
12253 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12254 (sse4_1_packusdw): Merge with *avx_packusdw.
12255 (sse4_1_pblendvb): Merge with *avx_pblendvb.
12256 (sse4_1_pblendw): Merge with *avx_pblendw.
12257 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12258 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12259 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12260 VF mode iterator.
12261 (sse4_1_round<ssescalarmodesuffix>): Merge with
12262 *avx_round<ssescalarmodesuffix>.
12263 (aesenc): Merge with *avx_aesenc.
12264 (aesenclast): Merge with *avx_aesenclast.
12265 (aesdec): Merge with *avx_aesdec.
12266 (aesdeclast): Merge with *avx_aesdeclast.
12267 (pclmulqdq): Merge with *pclmulqdq.
12268 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12269 New predicate.
12270 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12271
6f197850
L
122722011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12273
12274 PR middle-end/48608
12275 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12276 (align_local_variable): This. Update DECL_ALIGN.
12277 (add_stack_var): Updated.
12278 (expand_one_stack_var): Likewise.
12279
4a5ba3ed
RG
122802011-04-14 Richard Guenther <rguenther@suse.de>
12281
12282 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12283 Remove.
12284 (dse_initialize_block_local_data, dse_leave_block,
12285 record_voperand_set, get_stmt_uid): Likewise.
12286 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12287 (dse_optimize_stmt): Remove voperand set handling code.
12288 Simplify and improve to handle any kind of killing stmt.
12289 (dse_record_phi): Remove.
12290 (dse_enter_block): Simplify.
12291 (tree_ssa_dse): Likewise.
12292 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12293
10a5dd5d
JH
122942011-04-14 Jan Hubicka <jh@suse.cz>
12295
12296 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12297 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12298 (cgraph_local_info): Remove inline_summary.
12299 * ipa-cp.c: Include ipa-inline.h.
12300 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12301 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12302 accesor.
12303 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12304 (input_overwrite_node): Do not set inline summary.
12305 (input_node): Do not stream inline summary.
12306 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12307 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12308 growth; we do not have inline parameters computed for that anyway.
12309 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12310 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12311 (inline_summary_t): New type and VECtor.
12312 (debug_inline_summary, dump_inline_summaries): Declare.
12313 (inline_summary): Use VOCtor.
12314 (estimate_edge_growth): Kill hack computing call stmt size directly.
12315 * lto-section-in.c (lto_section_name): Add inline section.
12316 * ipa-inline-analysis.c: Include lto-streamer.h
12317 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12318 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12319 (inline_summary_vec): Define.
12320 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12321 dump_inline_summaries): New functions.
5e60198b
UB
12322 (estimate_function_body_sizes): Properly compute size/time of outgoing
12323 calls.
12324 (compute_inline_parameters): Alloc inline_summary; do not compute
12325 size/time of incomming calls.
10a5dd5d
JH
12326 (estimate_edge_time): Avoid missing time summary hack.
12327 (inline_read_summary): Read inline summary info.
12328 (inline_write_summary): Write inline summary info.
12329 (inline_free_summary): Free all hooks and inline summary vector.
12330 * lto-streamer.h: Add LTO_section_inline_summary section.
12331 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12332 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12333
b602d918
RS
123342011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12335
12336 * tree-vectorizer.h (vect_strided_store_supported): Add a
12337 HOST_WIDE_INT argument.
12338 (vect_strided_load_supported): Likewise.
12339 (vect_permute_store_chain): Return void.
12340 (vect_transform_strided_load): Likewise.
12341 (vect_permute_load_chain): Delete.
12342 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12343 count argument. Check that the count is a power of two.
12344 (vect_strided_load_supported): Likewise.
12345 (vect_permute_store_chain): Return void. Update after above changes.
12346 Assert that the access is supported.
12347 (vect_permute_load_chain): Likewise.
12348 (vect_transform_strided_load): Return void.
12349 * tree-vect-stmts.c (vectorizable_store): Update calls after
12350 above interface changes.
12351 (vectorizable_load): Likewise.
12352 (vect_analyze_stmt): Don't check for strided powers of two here.
12353
ab4472fa
RG
123542011-04-14 Richard Guenther <rguenther@suse.de>
12355
12356 PR tree-optimization/48590
12357 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12358 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12359 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12360 BUILT_IN_STACK_SAVE.
12361 * tree-ssa-dce.c (propagate_necessity): Handle
12362 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12363
32dabdaf
NP
123642011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12365
12366 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12367 objc_declare_class.
12368
daade206
RG
123692011-04-14 Richard Guenther <rguenther@suse.de>
12370
12371 * tree.h (get_object_alignment_1): Declare.
12372 * builtins.c (get_object_alignment_1): Split out worker from ...
12373 (get_object_alignment): ... here.
12374 * fold-const.c (get_pointer_modulus_and_residue): Use
12375 get_object_alignment_1.
12376
920e8172
RS
123772011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12378
12379 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12380 type parameter.
12381 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12382 parameter. Generalise code to handle arrays as well as vectors.
12383 (vect_setup_realignment): Update accordingly.
12384 * tree-vect-stmts.c (vectorizable_store): Likewise.
12385 (vectorizable_load): Likewise.
12386
5ce1ee7f
RS
123872011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12388
12389 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12390 within the per-copy loop.
12391
6438fe33 123922011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
12393
12394 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12395 in the dump file.
12396
6438fe33 123972011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
12398
12399 * doc/options.texi (Negative): Explicitly mention that the
12400 Negative chain must be circular.
12401
61e46a7d
NF
124022011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12403
12404 * function.h (block_chainon): Declare.
12405 * function.c (block_chainon): Define.
12406
43ea6502 124072011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 12408 Eric Weddington <eric.weddington@atmel.com>
748f7574 12409 Georg-Johann Lay <avr@gjlay.de>
5e60198b 12410
f60c2554 12411 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
12412 New Includes
12413 (avr_init_builtins, avr_expand_builtin,
12414 avr_expand_delay_cycles, avr_expand_unop_builtin,
12415 avr_expand_binop_builtin ): New functions.
12416 (avr_builtin_id): New enum
12417 (struct avr_builtin_description): New struct
12418 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12419 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 12420
43ea6502 12421 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 12422 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
12423 UNSPECV_DELAY_CYCLES): new enumeration values
12424 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12425 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12426 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12427 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12428 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12429 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12430 "fmulsu"): New insns
5e60198b 12431
43ea6502
AS
12432 * config/avr/avr-c.c: fix line endings
12433 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12434 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12435 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12436 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12437 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 12438
43ea6502
AS
12439 * doc/extend.texi (AVR Built-in Functions): New node
12440 (Target Builtins): Add documentation of AVR
12441 built-in functions.
12442
8a9b55f3
GJL
124432011-04-14 Georg-Johann Lay <avr@gjlay.de>
12444
12445 PR target/44643
12446 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12447 alone. Error if non-const data has attribute progmem.
12448
94bd1825
NF
124492011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12450
12451 * tree.h (struct tree_constructor): Include tree_typed instead of
12452 tree_common.
12453 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12454 TS_TYPED instead of TS_COMMON.
12455
5e60198b 124562011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
12457
12458 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12459 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12460 (sse2_psadbw): Merge with *avx_psadbw.
12461 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12462 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12463 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12464 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12465 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12466 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12467 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12468 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12469 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12470 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12471 (ssse3_palignrti): Merge with *avx_palignrti.
12472
4b1a4694
NF
124732011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12474
12475 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12476 * tree-ssanames.c (fini_ssanames): VEC_free it.
12477 (make_ssa_name_fn): Update for VECness of free_ssanames.
12478 (release_ssa_name, release_dead_ssa_names): Likewise.
12479 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12480 tree_common.
12481 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12482 TS_TYPED instead of TS_COMMON.
12483
4da3b811
NF
124842011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12485
12486 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12487 statistics_counter_event.
12488 * tree-ssa-copyrename.c (stats): Define.
12489 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12490 statistics_counter_event.
12491 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12492 (bswap_stats, widen_mul_stats): Define.
12493 (insert_reciprocals): Increment rdivs_inserted.
12494 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12495 rfuncs_inserted. Add calls to statistics_counter_event.
12496 (execute_cse_sincos_1): Increment inserted.
12497 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12498 statistics_counter_event.
12499 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12500 of bswap_stats. Add calls to statistics_counter_event.
12501 (convert_mult_to_widen): Increment widen_mults_inserted.
12502 (convert_plusminus_to_widen): Increment maccs_inserted.
12503 (convert_mult_to_fma): Increment fmas_inserted.
12504 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12505 calls to statistics_counter_event.
12506
89fa552a
VM
125072011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12508
12509 PR rtl-optimization/48455
12510 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12511 `temp_costs->mem_cost'.
12512
03dfc36d
JH
125132011-04-13 Jan Hubicka <jh@suse.cz>
12514
12515 * ipa-inline.h: New file.
12516 * ipa-inline-analysis.c: New file. Broken out of ...
12517 * ipa-inline.c: ... this file; update toplevel comment;
12518 include ipa-inline.h
12519 (inline_summary): Move to ipa-inline.h
12520 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12521 ipa-inline-analysis.c.
7d4f8d02
EB
12522 (cgraph_estimate_time_after_inlining): Rename to
12523 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
12524 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12525 to estimate_edge_growth.
12526 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12527 rename to estimate_size_after_inlining.
12528 (cgraph_mark_inline_edge): Update for new naming convention.
12529 (cgraph_check_inline_limits): Likewise.
12530 (cgraph_edge_badness): Likewise.
12531 (cgraph_decide_recursive_inlining): Likewise.
12532 (cgraph_decide_inlining_of_small_functions): Likewise.
12533 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
12534 (cgraph_estimate_growth): Rename to estimate_growth; move to
12535 ipa-inline-analysis.c.
03dfc36d
JH
12536 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12537 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12538 (compute_inline_parameters): Likewise.
12539 (compute_inline_parameters_for_current): Likewise.
12540 (pass_inline_parameters): Likewise.
12541 (inline_indirect_intraprocedural_analysis): Likewise.
12542 (analyze_function): Rename to inline_analyze_function; likewise.
12543 (add_new_function): Move to ipa-inline-analysis.c.
12544 (inline_generate_summary): Likewise.
12545 (inline_read_summary): Likewise.
12546 (inline_write_summary): Likewise.
12547 * Makefile.in (ipa-inline-analysis.c): New file.
12548
7673c962
RO
125492011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12550
12551 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12552 * configure: Regenerate.
12553
9698252f
NF
125542011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12555
12556 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12557 instead of tree_common.
12558 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12559 Likewise.
12560 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12561 TS_TYPED rather than TS_COMMON.
12562 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12563
3a7bfdd5
GJL
125642011-04-01 Georg-Johann Lay <avr@gjlay.de>
12565
12566 PR target/45263
86d83530
GJL
12567 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12568 r20 around calls of __tablejump_elpm__
3a7bfdd5 12569
20790697
JJ
125702011-04-13 Jakub Jelinek <jakub@redhat.com>
12571
12572 PR middle-end/48591
12573 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12574 NULL.
12575 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12576
094d7661
BS
125772011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12578
12579 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12580 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12581 (cfi_vec): New typedef.
12582 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12583 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12584 (cie_cfi_vec): New static variable.
12585 (cie_cfi_head): Delete.
12586 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12587 declaration changed. Use vector rather than list operations.
12588 (new_cfi): Don't initialize the dw_cfi_next field.
12589 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12590 rather than list operations.
12591 (lookup_cfa): Use vector rather than list operations.
12592 (output_cfis): New argument upto. Accept a cfi_vec rather than
12593 a dw_cfi_ref list head as argument. All callers changed.
12594 Iterate over the vector using upto as a maximum index.
12595 (output_all_cfis): New static function.
12596 (output_fde): Use vector rather than list operations. Use the
12597 new upto argument for output_cfis rather than manipulating a
12598 list.
12599 (dwarf2out_begin_prologue): Change initializations to match
12600 new struct members.
12601 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12602 from the vector length rather than searching for the end of a list.
12603 Use output_all_cfis.
12604 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12605
673a5740
NC
126062011-04-13 Nick Clifton <nickc@redhat.com>
12607
12608 * config/rx/rx.md (movmemsi): Do not use this pattern when
12609 volatile pointers are involved.
12610
1ee8b298
UB
126112011-04-13 Uros Bizjak <ubizjak@gmail.com>
12612
12613 * config/i386/sse.md (pinsrbits): Remove.
12614 (sse2_packsswb): Merge with *avx_packsswb.
12615 (sse2_packssdw): Merge with *avx_packssdw.
12616 (sse2_packuswb): Merge with *avx_packuswb.
12617 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12618 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12619 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12620 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12621 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12622 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12623 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12624 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12625 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12626 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12627 (sse2_loadld): Merge with *avx_loadld.
12628 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12629 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12630 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12631 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12632 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12633
81f653d6
NF
126342011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12635
12636 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12637 calling TREE_CHAIN.
12638 * print-tree.c (print_node): Likewise.
12639 * tree-inline.c (copy_tree_r): Likewise.
12640 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12641 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12642 instead of TS_COMMON.
12643 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12644 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12645 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12646 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12647 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12648 ...and these...
12649 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12650 * tree.h: ...here.
12651 (TREE_CHAIN): Check for a TS_COMMON structure.
12652 (TREE_TYPE): Check for a TS_TYPED structure.
12653
748f7574 126542011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
12655
12656 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12657 cgraph_get_create_node instead of cgraph_node.
12658
eb345401
NP
126592011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12660
12661 * c-parser.c (c_parser_initelt): Updated call to
12662 objc_build_message_expr.
12663 (c_parser_postfix_expression): Likewise.
12664
a6c46762
KT
126652011-04-12 Kai Tietz <ktietz@redhat.com>
12666
12667 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12668 MASK_MS_BITFIELD_LAYOUT bit.
12669
b4ccfed9
JJ
126702011-04-12 Jakub Jelinek <jakub@redhat.com>
12671
12672 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12673 assert it is always true.
12674 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12675 moves.
12676
0d8a2528
NP
126772011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12678
12679 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12680 compiling Objective-C to be more efficient.
12681
06bd234a
AF
126822011-04-12 Axel Freyn <axel-freyn@gmx.de>
12683
12684 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12685 argv_copied.
12686
28569ac3
RS
126872011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12688
12689 * recog.h, genoutput.c, optabs.c: Revert last patch.
12690
ae59e00d
RR
126912011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12692
81b1e7eb
UB
12693 PR target/48090
12694 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 12695
cff1b7e0
RS
126962011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12697
12698 * recog.h (insn_operand_data): Add an "allows_mem" field.
12699 * genoutput.c (output_operand_data): Initialize it.
12700 * optabs.c (maybe_legitimize_operand_same_code): New function.
12701 (maybe_legitimize_operand): Use it when matching the original
12702 op->value.
12703
77059241
RS
127042011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12705
12706 * genpreds.c (process_define_predicate): Move most processing
12707 to gensupport.c. Continue to validate the expression.
12708 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12709 (process_define_predicate): Move processing to gensupport.c.
12710 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12711 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12712 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12713 argument.
12714 (valid_predicate_name_p): New function, split out from old
12715 genpreds.c:process_define_predicate.
12716 (process_define_predicate): New function, combining code from
12717 old genpreds.c and genrecog.c functions.
12718 (process_rtx): Call it for DEFINE_PREDICATE and
12719 DEFINE_SPECIAL_PREDICATE.
12720
6308e208
RS
127212011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12722
12723 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12724 size of a '%A' memory reference.
12725 (T_DREG, T_QREG): New neon_builtin_type_bits.
12726 (arm_init_neon_builtins): Assert that the load and store operands
12727 are neon_struct_operands.
12728 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12729 (NEON_ARG_MEMORY): New builtin_arg.
12730 (neon_dereference_pointer): New function.
12731 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12732 Handle NEON_ARG_MEMORY.
12733 (arm_expand_neon_builtin): Update after above interface changes.
12734 Use NEON_ARG_MEMORY for loads and stores.
12735 * config/arm/predicates.md (neon_struct_operand): New predicate.
12736 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12737 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12738 (V_four_elem): Tweak formatting.
12739 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12740 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12741 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12742 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12743 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12744 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12745 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12746 Use %A in the output template.
12747 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12748 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12749 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12750 the width of the memory access. Remove post-increment.
12751 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12752
e5db8f2f
NC
127532011-04-12 Nick Clifton <nickc@redhat.com>
12754
12755 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12756 instruction for interrupt handlers if the target is the basic V850
12757 architecture.
12758 (expand_epilogue): Likewise.
12759
74f091d6
JJ
127602011-04-12 Jakub Jelinek <jakub@redhat.com>
12761
12762 PR rtl-optimization/48549
12763 * combine.c (propagate_for_debug): Also stop after BB_END of
12764 this_basic_block. Process LAST and just stop processing after it.
12765 (combine_instructions): If last_combined_insn has been deleted,
12766 set last_combined_insn to its PREV_INSN.
12767
f20ca725
RG
127682011-04-12 Richard Guenther <rguenther@suse.de>
12769
12770 PR tree-optimization/46076
12771 * gimple.h (struct gimple_statement_call): Add fntype field.
12772 (gimple_call_fntype): Adjust.
12773 (gimple_call_set_fntype): New function.
12774 * gimple.c (gimple_build_call_1): Set the call function type.
12775 * gimplify.c (gimplify_call_expr): Preserve the function
12776 type the frontend used for the call.
12777 (gimplify_modify_expr): Likewise.
12778 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12779 function type.
12780 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12781 function type.
12782 * tree-ssa.c (useless_type_conversion_p): Function pointer
12783 conversions are useless.
12784
a358e188
MJ
127852011-04-12 Martin Jambor <mjambor@suse.cz>
12786
12787 * cgraph.h (cgraph_node): Remove function declaration.
12788 (cgraph_create_node): Declare.
12789 (cgraph_get_create_node): Likewise.
12790 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12791 Updated all callers.
12792 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12793 the decl does not already exist. Call cgraph_get_create_node instead
12794 of cgraph_node.
12795 (cgraph_get_create_node): New function.
12796 (cgraph_same_body_alias): Update comment.
12797 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12798 assert it does not return NULL.
12799 (cgraph_update_edges_for_call_stmt): Likewise.
12800 (cgraph_clone_edge): Likewise.
12801 (cgraph_create_virtual_clone): Likewise.
12802 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12803 instead of cgraph_node.
12804 (cgraph_add_new_function): Call cgraph_create_node or
12805 cgraph_get_create_node instead of cgraph_node.
12806 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12807 instead of cgraph_node.
12808 (record_eh_tables): Likewise.
12809 (mark_address): Likewise.
12810 (mark_load): Likewise.
12811 (build_cgraph_edges): Call cgraph_get_create_node instead
12812 of cgraph_node.
12813 (rebuild_cgraph_edges): Likewise.
12814 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12815 instead of cgraph_node.
12816 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12817 cgraph_node.
12818 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12819 cgraph_create_node instead of cgraph_node.
12820 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12821 of cgraph_node.
12822 * lto-cgraph.c (input_node): Likewise.
12823 * lto-streamer-in.c (input_function): Likewise.
12824 * varasm.c (mark_decl_referenced): Likewise.
12825 (assemble_alias): Likewise.
12826
fe660d7b
MJ
128272011-04-12 Martin Jambor <mjambor@suse.cz>
12828
12829 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12830 instead of cgraph_node and assert it does not return NULL.
12831 * lto-streamer-in.c (lto_read_body): Likewise.
12832 * omp-low.c (new_omp_context): Likewise.
12833 (create_task_copyfn): Likewise.
12834 * tree-emutls.c (lower_emutls_function_body): Likewise.
12835 * matrix-reorg.c (transform_allocation_sites): Likewise.
12836
bae5cddf
JJ
128372011-04-12 Jakub Jelinek <jakub@redhat.com>
12838
12839 PR c/48552
12840 * c-typeck.c (build_asm_expr): Error out on attempts to use
12841 void type outputs or inputs for constraints that allow reg or
12842 don't allow memory.
12843
06eb52ca
CLT
128442011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12845 Richard Earnshaw <rearnsha@arm.com>
12846
12847 PR target/48250
12848 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12849 to use sign-magnitude offsets. Reject unsupported unaligned
12850 cases. Add detailed description in comments.
12851 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12852 condition from TARGET_32BIT to TARGET_ARM.
12853
648a616b
NF
128542011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12855
12856 * tree.h (struct typed_tree): New.
12857 (struct tree_common): Include it instead of tree_base.
12858 (TREE_TYPE): Update for new location of type field.
12859 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12860 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12861 (union tree_node): Add typed field.
12862 * treestruct.def (TS_TYPED): New.
12863 * lto-streamer.c (check_handled_ts_structures): Handle it.
12864 * tree.c (MARK_TS_TYPED): New macro.
12865 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12866
1e6d1da0
EB
128672011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12868
12869 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12870 (force_nonfallthru): Do not alter the loop nest if no basic block
12871 was created.
12872
128732011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
12874
12875 * config/i386/sse.md (VI): New mode iterator.
12876 (SSEMODEI): Remove.
12877 (AVX256MODEI): Ditto.
12878 (AVXMODEF4P): Ditto.
12879 (avxvecpsmode): Ditto.
12880 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12881 (sse2_andnot<mode>3): New expander.
12882 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12883 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12884 (<any_logic:code><mode>3): Use VI mode iterator.
12885 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12886 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12887 (*andnottf3): Handle AVX three-operand constraints.
12888 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12889
b1372d5d 128902011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 12891 Robert Millan <rmh@gnu.org>
b1372d5d
JM
12892
12893 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12894 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12895 GNU_USER_DYNAMIC_LINKER64): Define.
12896 (REG_NAME): Don't undefine.
12897 (MD_UNWIND_SUPPORT): Undefine.
12898 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12899 (REG_NAME): Don't undefine.
12900 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 12901 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 12902
761c0c6e
JM
129032011-04-11 Joseph Myers <joseph@codesourcery.com>
12904
12905 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12906 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12907
26e0228f
XDL
129082011-04-11 Xinliang David Li <davidxl@google.com>
12909
12910 * value-profile.c (check_ic_target): New function.
12911 (gimple_ic_transform): Sanity check indirect call target.
12912 * gimple-low.c (gimple_check_call_args): Interface change.
12913 (gimple_check_call_matching_types): New function.
12914 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
12915
129162011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12917
12918 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12919 tree-pretty-print.h & realmpfr.h.
12920
a58dfa49
VM
129212011-04-11 Vladimir Makarov <vmakarov@redhat.com>
12922
12923 PR middle-end/48464
12924 * ira.c (setup_pressure_classes): Fix typo in loop condition.
12925 (setup_allocno_and_important_classes): Ditto.
12926
107fd1c1
JM
129272011-04-11 Joseph Myers <joseph@codesourcery.com>
12928
12929 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12930 GNU_USER_DYNAMIC_LINKER.
12931 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12932 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12933 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12934 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12935 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12936 GNU_USER_TARGET_OS_CPP_BUILTINS.
12937 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12938 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12939 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12940 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12941 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12942 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12943 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12944 GNU_USER_TARGET_OS_CPP_BUILTINS.
12945 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12946 GNU_USER_DYNAMIC_LINKER.
12947 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12948 GNU_USER_TARGET_OS_CPP_BUILTINS.
12949 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12950 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12951 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12952 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12953 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12954 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12955 GNU_USER_DYNAMIC_LINKER64): Remove.
12956 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12957 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12958 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12959 GNU_USER_DYNAMIC_LINKER.
12960 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12961 GNU_USER_TARGET_OS_CPP_BUILTINS.
12962 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12963 GNU_USER_TARGET_OS_CPP_BUILTINS.
12964 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12965 to GNU_USER_TARGET_OS_CPP_BUILTINS.
12966 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12967 GNU_USER_TARGET_OS_CPP_BUILTINS.
12968 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12969 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12970 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12971 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12972 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12973 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12974 GNU_USER_DYNAMIC_LINKER.
12975 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12976 GNU_USER_TARGET_OS_CPP_BUILTINS.
12977 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12978 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12979 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12980 GNU_USER_DYNAMIC_LINKER.
12981 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12982 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12983 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12984 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12985 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12986 GNU_USER_DYNAMIC_LINKER.
12987 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12988 GNU_USER_DYNAMIC_LINKERN32.
12989 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12990 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
12991 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
12992 GNU_USER_DYNAMIC_LINKER32.
12993 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12994 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12995 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12996 GNU_USER_DYNAMIC_LINKER.
12997 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12998 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12999 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
13000 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 13001 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
13002 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
13003 GNU_USER_DYNAMIC_LINKER32.
13004 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
13005 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
13006 GNU_USER_DYNAMIC_LINKER.
13007 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
13008 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13009 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13010 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
13011 GNU_USER_DYNAMIC_LINKER64.
13012 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
13013 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13014 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13015 GNU_USER_DYNAMIC_LINKER.
13016 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
13017 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13018 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
13019 GNU_USER_DYNAMIC_LINKER.
13020 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
13021 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13022 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
13023 GNU_USER_DYNAMIC_LINKER32.
13024 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13025 GNU_USER_DYNAMIC_LINKER64.
13026 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
13027 GNU_USER_DYNAMIC_LINKER64.
13028 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
13029 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
13030 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
13031 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 13032 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 13033
e24609cf
JM
130342011-04-11 Joseph Myers <joseph@codesourcery.com>
13035
13036 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
13037 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
13038 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
13039 GNU_USER_DYNAMIC_LINKER.
13040 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13041 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
13042 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
13043 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
13044 GNU_USER_DYNAMIC_LINKER64.
13045 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
13046 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
13047 GNU_USER_LINK_EMULATION.
13048 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
13049 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
13050 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
13051 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
13052 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
13053 CPP_SPEC, CC1_SPEC): Remove.
13054 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
13055 (GNU_USER_DYNAMIC_LINKER): Define.
13056 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
13057 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
13058 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
13059 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
13060 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
13061 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
13062 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13063 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
13064 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
13065 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
13066 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
13067 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
13068 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
13069 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
13070 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
13071 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
13072 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13073 GNU_USER_DYNAMIC_LINKER.
13074 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13075 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13076 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13077 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13078 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
13079 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
13080 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
13081 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
13082 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 13083 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 13084
b8ce4e94
KT
130852011-04-11 Kai Tietz <ktietz@redhat.com>
13086
13087 PR target/9601
13088 PR target/11772
13089 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
13090 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
13091 comment.
13092 (ix86_is_msabi_thiscall): Removed.
13093 (ix86_is_type_thiscall): Likewise.
13094 (ix86_get_callcvt): New function.
13095 (ix86_comp_type_attributes): Simplify check.
13096 (ix86_function_regparm): Use ix86_get_callcvt for calling
13097 convention attribute checks.
13098 (ix86_return_pops_args): Likewise.
13099 (ix86_static_chain): Likewise.
13100 (x86_this_parameter): Likewise.
13101 (x86_output_mi_thunk): Likewise.
13102 (ix86_function_type_abi): Optimize check for types without attributes.
13103 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
13104 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
13105 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
13106 by flag-values.
13107 (IX86_BASE_CALLCVT): Helper macro.
13108 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
13109 Use ix86_get_callcvt for calling convention attribute checks and avoid
13110 symbol-decoration for stdcall in TARGET_RTD case.
13111 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
13112 Likewise.
13113 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
13114 for declaration.
13115
798dd0ba
UB
131162011-04-11 Uros Bizjak <ubizjak@gmail.com>
13117
13118 * config/i386/sse.md (VI_128): New mode iterator.
13119 (VI12_128): Rename from SSEMODE12.
13120 (VI14_128): Rename from SSEMODE14.
13121 (VI124_128): New mode iterator.
13122 (VI24_128): Rename from SSEMODE248.
13123 (VI248_128): Rename from SSEMODE248.
13124 (SSEMODE124C8): Remove.
13125 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13126 (*sse2_<plusminus_insn><mode>3): Merge with
13127 *avx_<plusminus_insn><mode>3.
13128 (*mulv8hi3): Merge with *avx_mulv8hi3.
13129 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
13130 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
13131 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
13132 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
13133 (ashr<mode>3): Merge with *avx_ashr<mode>3.
13134 (lshr<mode>3): Merge with *avx_lshr<mode>3.
13135 (ashl<mode>3): Merge with *avx_ashl<mode>3.
13136 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
13137 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
13138 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13139 (*<smaxmin:code>v8hi3): Ditto.
13140 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
13141 (*<smaxmin:code>v16qi3): Ditto.
13142 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
13143 (*sse2_eq<mode>3): Ditto.
13144 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
13145 (*sse2_gt<mode>3): Ditto.
13146 (vcondv2di): Split out of vcond<mode>.
13147 (vconduv2di): Split out of vcondu<mode>.
13148
956011be
RG
131492011-04-11 Richard Guenther <rguenther@suse.de>
13150
13151 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
13152 before calling tree_low_cst.
13153
e6313a78
RG
131542011-04-11 Richard Guenther <rguenther@suse.de>
13155
13156 * stor-layout.c (layout_type): Compute all array index size operations
13157 in the original type.
13158 (initialize_sizetypes): Add comment.
13159 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13160
e69d7376
JM
131612011-04-11 Joseph Myers <joseph@codesourcery.com>
13162
13163 * common.opt (Tbss=, Tdata=, Ttext=): New options.
13164
9f9ebcdf
MJ
131652011-04-11 Martin Jambor <mjambor@suse.cz>
13166
13167 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13168 of cgraph_node, handle NULL return value.
13169 (cgraph_global_info): Likewise.
13170 (cgraph_rtl_info): Likewise.
13171 * tree-inline.c (estimate_num_insns): Likewise.
13172 * gimplify.c (unshare_body): Likewise.
13173 (unvisit_body): Likewise.
13174 (gimplify_body): Likewise.
13175 * predict.c (optimize_function_for_size_p): Likewise.
13176 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13177 (call_may_clobber_ref_p_1): Likewise.
13178 * varasm.c (function_section_1): Likewise.
13179 (assemble_start_function): Likewise.
13180
581985d7
MJ
131812011-04-11 Martin Jambor <mjambor@suse.cz>
13182
13183 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13184 of cgraph_node.
13185 * final.c (rest_of_clean_state): Likewise.
13186 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13187 * passes.c (pass_init_dump_file): Likewise.
13188 (execute_all_ipa_transforms): Likewise.
13189 (function_called_by_processed_nodes_p): Likewise.
13190 * predict.c (maybe_hot_frequency_p): Likewise.
13191 (probably_never_executed_bb_p): Likewise.
13192 (compute_function_frequency): Likewise.
13193 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13194 (unnest_nesting_tree_1): Likewise.
13195 (lower_nested_functions): Likewise.
13196 * tree-optimize.c (execute_fixup_cfg): Likewise.
13197 (tree_rest_of_compilation): Likewise.
13198 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13199 * tree-sra.c (ipa_early_sra): Likewise.
13200 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13201 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13202 * ipa.c (record_cdtor_fn): Likewise.
13203 * ipa-inline.c (cgraph_early_inlining): Likewise.
13204 (compute_inline_parameters_for_current): Likewise.
13205 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13206 * ipa-pure-const.c (local_pure_const): Likewise.
13207 * ipa-split.c (split_function): Likewise.
13208 (execute_split_functions): Likewise.
13209 * cgraphbuild.c (build_cgraph_edges): Likewise.
13210 (rebuild_cgraph_edges): Likewise.
13211 (cgraph_rebuild_references): Likewise.
13212 (remove_cgraph_callee_edges): Likewise.
13213 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13214 (verify_cgraph_node): Likewise.
13215 (cgraph_analyze_functions): Likewise.
13216 (cgraph_preserve_function_body_p): Likewise.
13217 (save_inline_function_body): Likewise.
13218 (save_inline_function_body): Likewise.
13219 * tree-inline.c (copy_bb): Likewise.
13220 (optimize_inline_calls): Likewise.
13221
57dbdc5a
MJ
132222011-04-11 Martin Jambor <mjambor@suse.cz>
13223
13224 PR tree-optimization/48195
13225 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13226 ipa_check_create_edge_args.
13227 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13228 ipa_check_create_edge_args.
13229 * ipa-inline.c (inline_generate_summary): Do not call
13230 ipa_check_create_node_params and ipa_check_create_edge_args.
13231 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13232 ipa_check_create_edge_args.
13233
d108e679
AS
132342011-04-09 Anatoly Sokolov <aesok@post.ru>
13235
13236 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13237 instead of loop.
13238 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13239 * function.c (record_hard_reg_sets): Likewise.
13240 * ira.c (compute_regs_asm_clobbered): Likewise.
13241 * sched-deps.c (sched_analyze_1): Likewise.
13242 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13243
3411bc59
XDL
132442011-04-09 Xinliang David Li <davidxl@google.com>
13245
13246 PR tree-optimization/PR48484
13247 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13248 has_valid_pred lazily
13249
b365495a
DS
132502011-04-09 Duncan Sands <baldrick@free.fr>
13251
13252 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13253
68bc509a
EB
132542011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13255
13256 * combine.c (combine_validate_cost): Adjust comments. Set registered
13257 cost of I0 to zero at the end, if any.
13258
041e059f
XDL
132592011-04-08 Xinliang David Li <davidxl@google.com>
13260
68bc509a
EB
13261 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13262 to insane profile data.
041e059f 13263
444b3995
XDL
132642011-04-08 Xinliang David Li <davidxl@google.com>
13265
13266 * ipa-cp.c (ipcp_update_profiling): Correct
13267 negative scale factor due to insane profile data.
13268
6a801cf2
XDL
132692011-04-08 Xinliang David Li <davidxl@google.com>
13270
13271 * final.c (dump_basic_block_info): New function.
13272 (final): Dump basic block.
13273 (final_scan_insn): Remove old dump.
13274
d5f3624e
SK
132752011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13276
68bc509a
EB
13277 PR target/47829
13278 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13279 crtbegin/crtend.
d5f3624e 13280
42821aff
MM
132812011-04-08 Michael Matz <matz@suse.de>
13282
13283 PR middle-end/48389
13284 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13285 functions.
13286 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13287 * rtl.h (rebuild_jump_labels_chain): Declare.
13288 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13289 insns inserted on edges.
13290
ad7be009
JM
132912011-04-08 Joseph Myers <joseph@codesourcery.com>
13292
13293 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13294 * config/arm/arm-arches.def: New.
13295 * config/arm/arm-opts.h: New.
13296 * config/arm/genopt.sh: New.
13297 * config/arm/arm-tables.opt: New (generated).
13298 * config/arm/arm.c (arm_handle_option, arm_target_help,
13299 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13300 (all_architectures): Get most table contents from arm-arches.def.
13301 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13302 arm_selected_tune here.
13303 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13304 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13305 (march=, mcpu=, mtune=): Use Enum and Var.
13306 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13307 (arm.o): Update dependencies.
ecbb6fb7 13308
42821aff 133092011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
13310
13311 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13312 of header_file.
13313 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13314 (write_typed_alloc_defns): Likewise.
13315 (main): Calls write_typed_alloc_defns with output_header.
13316
8d189b3f
VM
133172011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13318
68bc509a 13319 PR inline-asm/48435
8d189b3f
VM
13320 * ira-color.c (setup_profitable_hard_regs): Add comments.
13321 Don't take prohibited hard regs into account.
13322 (setup_conflict_profitable_regs): Rename to
13323 get_conflict_profitable_regs.
13324 (check_hard_reg_p): Check prohibited hard regs.
13325
44f370bf
NF
133262011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13327
13328 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13329 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13330 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13331
483d7ad3
JDA
133322011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13333
13334 PR target/48366
13335 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 13336 move from floating point to shift amount register.
483d7ad3
JDA
13337 (emit_move_sequence): Remove secondary reload support for floating
13338 point to shift amount amount register copies.
13339 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13340 amount register copies.
13341 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13342 register, return false if mode isn't a scalar integer mode.
13343 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13344
97e03fa1
RG
133452011-04-08 Richard Guenther <rguenther@suse.de>
13346
13347 * gimple.c (gimple_call_flags): Remove kludge.
13348
9d40778b
AM
133492011-04-08 Alexander Monakov <amonakov@ispras.ru>
13350
13351 * sel-sched.c (sel_region_init): Move call to
13352 sel_setup_region_sched_flags after setup_current_loop_nest.
13353
19ac7892
AB
133542011-04-08 Andrey Belevantsev <abel@ispras.ru>
13355
13356 PR rtl-optimization/48272
19ac7892
AB
13357 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13358 init_insn_reg_pressure_info. Adjust a caller.
13359 * sched-int.h (init_insn_reg_pressure_info): Declare.
13360 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13361 when sched-pressure is enabled.
13362
0f8c63cc
RG
133632011-04-08 Richard Guenther <rguenther@suse.de>
13364
13365 * gimple.c (gimple_set_modified): Do not queue calls to
13366 MODIFIED_NORETURN_CALLS here ...
13367 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13368
5e5a425e
RG
133692011-04-08 Richard Guenther <rguenther@suse.de>
13370
13371 PR lto/48467
13372 * toplev.c (lang_dependent_init): Do not open asm_out_file
13373 in WPA mode, nor perform debug machinery initialization.
13374 (finalize): Do not unlink asm_out_file in WPA mode.
13375
9bfc434b
RG
133762011-04-08 Richard Guenther <rguenther@suse.de>
13377
13378 * gimple.h (gimple_call_fntype): New function.
13379 (gimple_call_return_type): Use it.
13380 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13381 * gimple-low.c (gimple_check_call_args): Likewise.
13382 * gimple.c (gimple_call_flags): Likewise.
13383 (gimple_call_arg_flags): Likewise.
13384 (gimple_call_return_flags): Likewise.
13385 * tree-cfg.c (verify_gimple_call): Likewise.
13386 (do_warn_unused_result): Likewise.
13387 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13388 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13389
7c1f0b40
DM
133902011-04-08 Dmitry Melnik <dm@ispras.ru>
13391
13392 PR rtl-optimization/48235
13393 * sel-sched.c (code_motion_process_successors): Recompute the last
13394 insn in basic block if control flow changed.
13395 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13396 Update condition for ilist_remove.
13397
ea4d630f
AM
133982011-04-08 Alexander Monakov <amonakov@ispras.ru>
13399
13400 PR rtl-optimization/48302
13401 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13402 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13403 it to record added preheader blocks.
13404 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13405 on to sel_add_loop_preheaders.
13406 (sel_region_init): Move call to setup_current_loop_nest after
13407 sel_init_bbs.
13408
07643d76
AM
134092011-04-08 Alexander Monakov <amonakov@ispras.ru>
13410
13411 PR target/48273
13412 * cfgloop.h (loop_has_exit_edges): New helper.
13413 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13414 non-clonable.
13415 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13416 that have no exit edges.
13417
1f3b2b4e
AM
134182011-04-08 Alexander Monakov <amonakov@ispras.ru>
13419
13420 PR rtl-optimization/48442
13421 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13422 all callers. Adjust assert.
13423
554f1948
JJ
134242011-04-08 Jakub Jelinek <jakub@redhat.com>
13425
13426 PR tree-optimization/48377
13427 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13428 is_packed to true even for types with smaller TYPE_ALIGN than
13429 TYPE_SIZE.
13430
ddf72388
RG
134312011-04-08 Richard Guenther <rguenther@suse.de>
13432
13433 PR bootstrap/48513
13434 * doc/tm.texi: Re-generate.
13435
0c27e2d8
WG
134362011-04-08 Wei Guozhi <carrot@google.com>
13437
13438 PR target/47855
13439 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13440 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13441 * config/arm/arm.md (*push_multi): Change the length computation to
13442 call a C function.
13443
07c5f94e
AS
134442011-04-08 Anatoly Sokolov <aesok@post.ru>
13445
13446 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13447 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13448 * doc/tm.texi: Regenerate.
13449 * system.h (ASM_OUTPUT_BSS): Poison.
13450 * varasm.c (asm_output_bss): Remove function.
13451 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 13452
07c5f94e
AS
13453 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13454 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13455 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13456 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13457 Likewise.
13458 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13459 Likewise.
13460 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13461 Likewise.
13462 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13463
5f2c36e1
JM
134642011-04-07 Joseph Myers <joseph@codesourcery.com>
13465
13466 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13467 EnumValue lines.
13468
39e7722b
JM
134692011-04-07 Joseph Myers <joseph@codesourcery.com>
13470
13471 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13472 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13473 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13474 OPT_mcpu32.
13475 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13476 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13477 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13478 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13479 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13480 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13481 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13482 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13483 options. Don't map other m68k options manually. Don't handle
13484 old-style options as canonical.
13485 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 13486 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 13487
cf103ca4
EB
134882011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13489
13490 * basic-block.h (force_nonfallthru): Move to...
13491 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13492 (force_nonfallthru): ...here.
13493 * cfghooks.c (force_nonfallthru): New function.
13494 * cfgrtl.c (force_nonfallthru): Rename into...
13495 (rtl_force_nonfallthru): ...this.
13496 (commit_one_edge_insertion): Do not set AUX field.
13497 (commit_edge_insertions): Do not discover new basic blocks.
13498 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13499 (cfg_layout_rtl_cfg_hooks): Likewise.
13500 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13501 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13502 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13503
14431f58
AS
135042011-04-07 Anatoly Sokolov <aesok@post.ru>
13505
13506 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13507 Remove macros.
13508
3729983c
UB
135092011-04-07 Uros Bizjak <ubizjak@gmail.com>
13510
13511 * config/i386/sse.md: Update copyright year.
13512 (avxcvtvecmode): Remove.
13513 (sse_movhlps): Merge with *avx_movhlps.
13514 (sse_movlhps): Merge with *avx_movlhps.
13515 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13516 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13517 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13518 (sse_loadhps): Merge with *avx_loadhps.
13519 (sse_storelps): Merge with *avx_storelps.
13520 (sse_loadlps): Merge with *avx_loadlps.
13521 (sse_movss): Merge with *avx_movss.
13522 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13523 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13524 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13525 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13526 (vec_set<mode>_0): Ditto.
13527 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13528 (sse4_1_insertps): Merge with *avx_insertps.
13529 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13530 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13531 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13532 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13533 (sse2_storehpd): Merge with *avx_storehpd.
13534 (sse2_loadhpd): Merge with *avx_loadhpd.
13535 (sse2_loadlpd): Merge with *avx_loadlpd.
13536 (sse2_movsd): Merge with *avx_movsd.
13537 (*vec_concatv2df): Merge with *vec_concatv2df.
13538
4e626909
JJ
135392011-04-07 Jakub Jelinek <jakub@redhat.com>
13540
13541 PR debug/48343
13542 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 13543 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
13544 (try_combine): Add last_combined_insn parameter, pass it instead of
13545 i3 to propagate_for_debug.
13546
3729983c 135472011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
13548
13549 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13550 to handle MDR <-> data register transfers.
13551 (movhi_internal): Likewise.
13552
20c03367
AM
135532011-04-07 Alan Modra <amodra@gmail.com>
13554
13555 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13556 previous stack info.
13557
bf22920b
TV
135582011-04-07 Tom de Vries <tom@codesourcery.com>
13559
13560 PR target/43920
13561 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13562 flow_find_cross_jump. Swap variables to implement backward replacement.
13563 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13564
823918ae
TV
135652011-04-07 Tom de Vries <tom@codesourcery.com>
13566
13567 PR target/43920
13568 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
13569 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13570 and bb2.
13571 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13572 src1 or src2. Redirect edges to the last basic block. Update
13573 frequency and count on multiple basic blocks in case of fallthru.
823918ae 13574
472c95f5
TV
135752011-04-07 Tom de Vries <tom@codesourcery.com>
13576
13577 PR target/43920
13578 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13579 function.
3729983c
UB
13580 (old_insns_match_p): Change return type. Replace return false/true
13581 with return dir_none/dir_both. Use can_replace_by.
13582 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13583 direction from dir_p. Register replacement direction in dir, last_dir
13584 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
13585 merge_dir. Return replacement direction in dir_p.
13586 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13587 return type of old_insns_match_p.
13588 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13589 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13590 flow_find_cross_jump.
13591 * basic-block.h (enum replace_direction): New type.
13592 (flow_find_cross_jump): Add parameter to declaration.
13593
a95d4000
UB
135942011-04-06 Uros Bizjak <ubizjak@gmail.com>
13595
13596 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13597 (AVXMODEDCVTPS2DQ): Ditto.
13598 (VEC_FLOAT_MODE): Ditto.
13599 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13600 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13601 (<any_logic:code><mode>3): Use VF mode iterator.
13602 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13603 Use VF mode iterator.
13604 (copysign<mode>3): Use VF mode iterator.
13605 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13606 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13607 (*<any_logic:code><MODEF:mode>3): Merge with
13608 *avx_<any_logic:code><MODEF:mode>3.
13609 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13610 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13611 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13612 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13613 (sse2_cvtdq2ps): Use %v modifier.
13614 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13615 (avx_cvtps2dq<avxmodesuffix>): Remove.
13616 (sse2_cvtps2dq): Use %v modifier.
13617 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13618 (avx_cvttps2dq<avxmodesuffix>): Remove.
13619 (sse2_cvttps2dq): Use %v modifier.
13620 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13621 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13622 (sse2_cvtsd2siq): Fix insn template.
13623 (sse2_cvtsd2siq_2): Ditto.
13624 (sse2_cvttsd2siq): Ditto.
13625 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13626 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13627
ad01c437
JM
136282011-04-06 Joseph Myers <joseph@codesourcery.com>
13629
13630 * gcov-io.c: Use GCC Runtime Library Exception.
13631
fe846284
JJ
136322011-04-06 Jakub Jelinek <jakub@redhat.com>
13633
13634 PR debug/48466
13635 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13636 as base_reg whatever register reg has been eliminated to, instead
13637 of hardcoding STACK_POINTER_REGNUM.
13638
acce4e77
JM
136392011-04-06 Joseph Myers <joseph@codesourcery.com>
13640
13641 * doc/tm.texi.in: Document C target hooks as separate from general
13642 target hooks.
13643 * doc/tm.texi: Regenerate.
13644 * genhooks.c (struct hook_desc): Add docname field.
13645 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13646 docname field.
13647 (hook_array): Include c-target.def.
13648 (emit_documentation): Use docname field in output.
13649 (emit_init_macros): Take docname argument. Only emit definitions
13650 for hooks matching docname.
13651 (main): Expect additional arguments in all cases. Pass argument
13652 to emit_init_macros.
13653 * target.def: Move initial macro definitions and comments to
13654 target-hooks-macros.h.
13655 (gcc_targetcm): Move to c-family/c-target.def.
13656 * target.h (targetcm): Move declaration to c-family/c-target.h.
13657 * targhooks.c (default_handle_c_option): Move to
13658 c-family/c-opts.c.
13659 * targhooks.h (default_handle_c_option): Move declaration to
13660 c-family/c-common.h.
13661 * target-hooks-macros.h: New file.
13662 * config.gcc (target_has_targetcm): Define and use to add to
13663 c_target_objs and cxx_target_objs.
13664 * config/default-c.c: New file.
13665 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13666 of target.h and target-def.h.
13667 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13668 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13669 darwin_check_cfstring_format_arg): Make static.
13670 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13671 TARGET_STRING_OBJECT_REF_TYPE_P,
13672 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13673 * config/darwin-protos.h (darwin_objc_construct_string,
13674 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13675 declare.
13676 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13677 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 13678 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
13679 * config/t-darwin (darwin-c.o): Update dependencies.
13680 * system.h (TARGET_HAS_TARGETCM): Poison.
13681 * Makefile.in (TARGET_H): Update.
13682 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13683 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13684 (default-c.o): New target.
13685 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 13686 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
13687 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13688 c-target.def.
13689 (build/genhooks.o): Update dependencies.
13690
275b4baa 136912011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 13692
275b4baa
RG
13693 * ipa-inline.c (enum inlining_mode): Remove.
13694 (cgraph_flatten): Use some other token.
13695 (cgraph_edge_early_inlinable_p): New function, split out from ...
13696 (cgraph_perform_always_inlining): New function, split out from ...
13697 (cgraph_decide_inlining_incrementally): ... here.
13698 (cgraph_mark_inline_edge): Adjust.
13699 (cgraph_early_inlining): Re-structure.
13700 (pass_early_inline): Require SSA form.
13701
f15b8bdf 137022011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
13703 Julian Brown <julian@codesourcery.com>
13704 Mark Shinwell <shinwell@codesourcery.com>
13705
13706 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13707 LO_REGS only for Thumb-1.
13708 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13709 be used in short instructions when optimising for size on Thumb-2.
13710
516426da
EB
137112011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13712
13713 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13714 associated with user returns to be preserved.
13715
96621ebf
TG
137162011-04-06 Tristan Gingold <gingold@adacore.com>
13717
f15b8bdf
EB
13718 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13719 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
13720 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13721 if XCOFF_DEBUGGING_INFO.
13722
07c0852e
UB
137232011-04-06 Uros Bizjak <ubizjak@gmail.com>
13724
13725 * config/i386/i386.md (attribute isa): New.
13726 (attribute enabled): New.
13727 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13728 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13729 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13730 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13731 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13732 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13733 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13734 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13735
13736 * config/i386/sse.md (VF): New mode iterator.
13737 (VF1): Ditto.
13738 (VF2): Ditto.
13739 (VF_128): Ditto.
13740 (SSEMODEF4): Remove.
13741 (attribute sse): Handle V8SF and V4DF modes.
13742 (<absneg:code><mode>2): Use VF mode iterator.
13743 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13744 mode iterator.
13745 (<plusminus_insn><mode>3): Use VF mode iterator.
13746 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13747 Use VF mode iterator.
13748 (<sse>_vm<plusminus_insn><mode>3): Merge with
13749 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13750 (mul<mode>3): Use VF mode iterator.
13751 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13752 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13753 mode iterator.
13754 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13755 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13756 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13757 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13758 mode iterator.
13759 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13760 Use VF1 mode iterator.
13761 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13762 (sqrt<VF2:mode>2): New expander.
13763 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13764 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13765 and sqrtv2df2. Use VF mode iterator.
13766 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13767 mode iterator.
13768 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13769 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13770 Use VF1 mode iterator.
13771 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13772 (<smaxmin:code><mode>3): Use VF mode iterator.
13773 (*<smaxmin:code><mode>3_finite): Merge with
13774 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13775 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13776 (<sse>_vm<smaxmin:code><mode>2): Merge with
13777 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13778 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13779 mode iterator.
13780 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13781 mode iterator.
13782 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13783 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13784 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13785 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13786 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13787 VF mode iterator.
13788 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13789 Use VF_128 mode iterator.
13790 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13791 mode iterator.
13792 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13793 VF_128 mode iterator.
13794 (vcond<mode>): Use VF mode iterator.
13795 * config/i386/predicates.md (sse_comparison_operator): Merge with
13796 avx_comparison_float_operator. Do not declare as special_predicate.
13797 * config/i386/i386.c (struct builtin_description): Update for renamed
13798 compare patterns.
13799 (ix86_expand_args_builtin): Ditto.
13800 (ix86_expand_sse_compare_mask): Ditto.
13801
ff5d142c
RG
138022011-04-06 Richard Guenther <rguenther@suse.de>
13803
13804 * tree-inline.c (estimate_num_insns): For calls simply account
13805 for all passed arguments and a used return value.
13806
d7d1d041 138072011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 13808
d7d1d041
RG
13809 PR tree-optimization/47663
13810 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13811 call_stmt_time fields.
13812 (cgraph_edge_inlinable_p): Declare.
13813 (cgraph_edge_recursive_p): New inline function.
13814 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13815 (cgraph_clone_edge): Copy it.
13816 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13817 Account for call stmt time.
13818 (cgraph_estimate_time_after_inlining): Take edge argument.
13819 (cgraph_estimate_edge_growth): Account call stmt size.
13820 (cgraph_estimate_size_after_inlining): Take edge argument.
13821 (cgraph_mark_inline_edge): Adjust.
13822 (cgraph_check_inline_limits): Likewise.
13823 (cgraph_recursive_inlining_p): Remove.
13824 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13825 (cgraph_decide_recursive_inlining): Take edge argument and
13826 adjust.
13827 (cgraph_decide_inlining_of_small_functions): Do not avoid
13828 diags for recursive inlining here.
13829 (cgraph_flatten): Adjust.
13830 (cgraph_decide_inlining_incrementally): Likewise.
13831 (estimate_function_body_sizes): Remove call cost handling.
13832 (compute_inline_parameters): Initialize caller edge call costs.
13833 (cgraph_estimate_edge_growth): New function.
13834 (cgraph_estimate_growth): Use it.
13835 (cgraph_edge_badness): Likewise.
13836 (cgraph_check_inline_limits): Take an edge argument.
13837 (cgraph_decide_inlining_of_small_functions): Adjust.
13838 (cgraph_decide_inlining): Likewise.
13839 * tree-inline.c (estimate_num_insns): Only account for call
13840 return value if it is used.
13841 (expand_call_inline): Avoid diagnostics on recursive inline
13842 functions here.
13843 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13844 (input_edge): Input edge call costs.
13845
2feb95f7
RO
138462011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13847
13848 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13849
26fbd9c2
JW
138502011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13851
13852 * doc/invoke.texi (Spec Files): Fix typo.
13853
694dc0ca
EB
138542011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13855
13856 * profile.c (branch_prob): Move declaration of local variable. Remove
13857 obsolete ??? comment. Expand the location explicitly instead of using
13858 the LOCATION_FILE and LOCATION_LINE macros.
13859
4925d0d5
WG
138602011-04-06 Wei Guozhi <carrot@google.com>
13861
13862 PR target/47855
13863 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13864 (arm_cond_branch): Likewise.
13865 (arm_cond_branch_reversed): Likewise.
13866 (arm_jump): Likewise.
13867 (push_multi): Likewise.
13868 * config/arm/constraints.md (Py): New constraint.
13869
f55dfa2f
NF
138702011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13871
13872 PR bootstrap/48471
13873 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13874 Move these...
13875 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13876 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13877 #ifdef DBX_DEBUGGING_INFO.
13878
fca96842
BS
138792011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13880
13881 PR bootstrap/48403
13882 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13883 if old and new states differ.
13884
30b83e38
JM
138852011-04-05 Joseph Myers <joseph@codesourcery.com>
13886
13887 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13888 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13889 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13890 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13891 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13892 mcfv4e): Use Alias.
13893 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13894 ColdFire options to -mcpu= options.
13895
277a9aa5
JL
138962011-04-05 Jeff Law <law@redhat.com>
13897
13898 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13899 check if BB is a successor of LOOP->header and return
13900 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13901
c1e2610e
SB
139022011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13903
13904 * cprop.c (struct reg_use): Remove.
13905 (reg_use_table): Make an array of RTX.
13906 (find_used_regs, constprop_register, local_cprop_pass,
13907 bypass_block): Simplify users of reg_use_table.
13908 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13909 on one of the uses found by find_used_regs.
13910
e532f586
NF
139112011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13912
13913 PR bootstrap/48469
13914 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13915 declaration.
13916
3fb7c055
NF
139172011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13918
13919 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13920 as an rtx.
13921 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13922
b71b43d9
SB
139232011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13924
13925 PR middle-end/48441
13926 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13927
b405b274
NF
139282011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13929
13930 * combine.c: Include obstack.h.
13931 (struct insn_link): Define.
13932 (uid_log_links): Adjust type.
13933 (FOR_EACH_LOG_LINK): New macro.
13934 (insn_link_obstack): Declare.
13935 (alloc_insn_link): Define.
13936 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
13937 type of link variables.
13938 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13939 (try_combine, record_promoted_values, distribute_notes): Likewise.
13940 (distribute_links): Likewise. Tweak prototype.
13941 (clear_log_links): Delete.
13942 (adjust_for_new_dest): Call alloc_insn_link.
13943 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13944
6409abe3
NF
139452011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13946
13947 * gcse.c (modify_mem_list): Convert to an array of VECs.
13948 (canon_modify_mem_list, compute_transp): Tweak formatting.
13949 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
13950 (load_killed_in_block_p): Likewise.
13951 (record_last_mem_set_info): Likewise.
13952 (clear_modify_mem_tables): Likewise.
13953
170d8157
TV
139542011-04-05 Tom de Vries <tom@codesourcery.com>
13955
13956 PR middle-end/48461
13957 * function.c (emit_use_return_register_into_block): Only define if
13958 HAVE_return.
13959
c5911a55
EB
139602011-04-05 Eric Botcazou <ebotcazou@adacore.com>
13961
13962 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13963
abd016e6
JM
139642011-04-05 Joseph Myers <joseph@codesourcery.com>
13965
13966 * config/rx/rx-opts.h: New.
13967 * config/rx/rx.c (rx_cpu_type): Remove.
13968 (rx_handle_option): Don't assert that global structures are in
13969 use. Access variables via opts pointer. Defer most handling of
13970 OPT_mint_register_. Use error_at.
13971 (rx_option_override): Handle deferred OPT_mint_register_ here.
13972 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13973 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13974 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13975 (rx_cpu_types): New Enum and EnumValue entries.
13976 (mint-register=): Use Defer and use Var accordingly.
13977
1ed13f83
NF
139782011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13979
13980 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13981 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13982 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13983 Move these...
13984 (debug_free_queue, debug_nesting, symbol_queue_index):
13985 ...and these...
13986 * dbxout.c: ...to here. Make static.
13987
6ce1edcf
NF
139882011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13989
13990 * gcse.c (modify_pair): Define. Define a VEC of it.
13991 (canon_modify_mem_list): Convert to an array of VECs.
13992 (free_insn_expr_list_list): Delete.
13993 (clear_modify_mem_tables): Call VEC_free instead.
13994 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13995 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13996 (canon_list_insert, compute_transp): Likewise.
13997
c201ac94
TV
139982011-04-05 Tom de Vries <tom@codesourcery.com>
13999
14000 PR target/43920
14001 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
14002 for size.
14003
4c029f40
TV
140042011-04-05 Tom de Vries <tom@codesourcery.com>
14005
14006 PR target/43920
14007 * function.c (emit_use_return_register_into_block): New function.
14008 (thread_prologue_and_epilogue_insns): Use
14009 emit_use_return_register_into_block.
14010
2a562b0a
TV
140112011-04-05 Tom de Vries <tom@codesourcery.com>
14012
14013 PR target/43920
14014 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
14015 insn.
14016
0248bceb
TV
140172011-04-05 Tom de Vries <tom@codesourcery.com>
14018
14019 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
14020
ffa94123
YZ
140212011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
14022
798dd0ba
UB
14023 * config/arm/arm.md (define_constants for unspec): Replace with
14024 define_c_enum.
14025 (define_constants for unspecv): Replace with define_c_enum.
14026 * config/arm/neon.md (define_constants for unspec): Replace with
14027 define_c_enum.
ffa94123 14028
3b8f9b46
RH
140292011-04-04 Richard Henderson <rth@redhat.com>
14030
720cf80f 14031 PR bootstrap/48400
3b8f9b46
RH
14032 * dwarf2out.c (output_line_info): Always emit line info from
14033 at least one section.
14034 (dwarf2out_init): Create text_section_line_info here ...
14035 (set_cur_line_info_table): ... not here.
14036
720cf80f 140372011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
14038
14039 PR target/48380
14040 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 14041 not called.
e5b0e1ca 14042
720cf80f 14043 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 14044
196565d4
SB
140452011-04-04 Steven Bosscher <steven@gcc.gnu.org>
14046
b77f9eab
SB
14047 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
14048 (expr_equiv_p): Remove.
14049 (insert_set_in_table): Look at <dest, src> pair instead of expr.
14050 (hash_scan_set): Update call to insert_set_in_table.
14051 (dump_hash_table): Dump <dest, src> pair.
14052 (lookup_set): Simplify. Lookup <dest, src> pair.
14053 (compute_transp): Remove, fold heavily simplified code into...
14054 (compute_local_properties): ...here. Expect COMP and TRANSP
14055 unconditionally.
14056 (find_avail_set): Take set directly from struct expr.
14057 (find_bypass-set): Likewise.
14058 (bypass_block): Likewise.
14059 (cprop_insn): Likewise. Remove redundant INSN_P test.
14060
384d7a55
SB
14061 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
14062 checks on form of COND from find_implicit_sets to here.
14063 (find_implicit_sets): Cleanup control flow. Split critical edges
14064 if it exposes implicit sets. Allocate/resize implicit_sets as
14065 necessary.
14066 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
14067 changed something. Run df_analyze after find_implicit_sets if any
14068 edges were split. Do not allocate implicit_sets here.
14069
3084ce69
SB
14070 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
14071 (gcse_obstack): Renamed to cprop_obstack.
14072 (GNEW, GNEWVEC, GNEWVAR): Remove.
14073 (gmalloc): Remove.
14074 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
14075 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
14076 (gcse_alloc): Likewise, and rename to cprop_alloc.
14077 (alloc_gcse_men, free_gcse_mem): Remove.
14078 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
14079 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
14080 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
14081
196565d4
SB
14082 * cprop.c (oprs_not_set_p): Remove.
14083 (mark_set, mark_clobber): Remove.
14084 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
14085 (reg_not_set_p): New function.
14086 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
14087 (cprop_insn): Likewise.
14088 (cprop_jump): Use FOR_EACH_EDGE.
14089
9b69cf83
BS
140902011-04-04 Bernd Schmidt <bernds@codesourcery.com>
14091
14092 PR bootstrap/48403
14093 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
14094 (rank_for_schedule): Use scheduled_insns vector instead of
14095 last_scheduled_insn.
14096 (ok_for_early_queue_removal): Likewise.
14097 (queue_to_ready): Search forward in nonscheduled_insns_begin if
14098 we have a dbg_cnt.
14099 (choose_ready): Likewise.
14100 (commit_schedule): Use VEC_iterate.
14101 (schedule_block): Initialize nonscheduled_insns_begin. If we have
14102 a dbg_cnt, use it and ensure the first insn is in the ready list.
14103 (haifa_sched_init): Allocate scheduled_insns.
14104 (sched_extend_ready_list): Don't allocate it; reserve space.
14105 (haifa_sched_finish): Free it.
14106
24f48c2f
JM
141072011-04-04 Joseph Myers <joseph@codesourcery.com>
14108
14109 * optc-gen.awk: Always remove type from Variable entry before
14110 recording in var_seen.
14111
8effe856
EB
141122011-04-04 Eric Botcazou <ebotcazou@adacore.com>
14113
14114 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
14115 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
14116 call to tidy_fallthru_edges.
14117
413519ae
JM
141182011-04-04 Joseph Myers <joseph@codesourcery.com>
14119
14120 * doc/options.texi (ToLower): Document.
3729983c 14121 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
14122 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
14123 * opts.h (cl_option): Add cl_tolower field.
14124 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
14125 arguments with lowercase strings.
14126 * config/rx/rx.opt (mcpu=): Add ToLower.
14127 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
14128 argument.
14129
7d34a1b0
RS
141302011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14131
14132 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
14133
c30e7434
RS
141342011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
14135
14136 * config/vax/vax.c: Include reload.h.
14137
112a861d
AS
141382011-04-04 Anatoly Sokolov <aesok@post.ru>
14139
14140 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
14141 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14142 (sparc_preferred_reload_class): New function.
14143
e8c6bb74
JJ
141442011-04-04 Jakub Jelinek <jakub@redhat.com>
14145
2aeaa366 14146 PR debug/48401
e8c6bb74
JJ
14147 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14148 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
14149
2c081caf
NF
141502011-04-03 Nathan Froyd <froydnj@codesourcery.com>
14151
14152 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
14153 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
14154
53802f27
AS
141552011-04-03 Anatoly Sokolov <aesok@post.ru>
14156
14157 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
14158 (ASM_OUTPUT_ALIGNED_BSS): Define.
14159
e89964e3
MM
141602011-04-03 Michael Matz <matz@suse.de>
14161
14162 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14163 and next_slot members.
14164 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14165 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14166 (lto_streamer_cache_append): Declare.
14167 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14168 unsigned index, remove offset parameter, ensure that we append
14169 or update existing entries.
14170 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14171 parameter, update next_slot for append.
14172 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14173 parameter.
14174 (lto_streamer_cache_insert_at): Likewise.
14175 (lto_streamer_cache_append): New function.
14176 (lto_streamer_cache_lookup): Use unsigned index.
14177 (lto_streamer_cache_get): Likewise.
14178 (lto_record_common_node): Don't test tree_node_can_be_shared.
14179 (preload_common_node): Adjust call to lto_streamer_cache_insert.
14180 (lto_streamer_cache_delete): Don't free offsets member.
14181 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14182 (lto_output_string_with_length): Use lto_output_data_stream.
14183 (lto_output_tree_header): Remove ix parameter, don't write it.
14184 (lto_output_builtin_tree): Likewise.
14185 (lto_write_tree): Adjust callers to above, don't track and write
14186 offset, write unsigned index.
14187 (output_unreferenced_globals): Don't emit all global vars.
14188 (write_global_references): Use unsigned indices.
14189 (lto_output_decl_state_refs): Likewise.
14190 (write_symbol): Likewise.
14191 * lto-streamer-in.c (lto_input_chain): Move earlier.
14192 (input_function): Use unsigned index.
14193 (input_alias_pairs): Don't read and then ignore all global vars.
14194 (lto_materialize_tree): Remove ix_p parameter, don't read index,
14195 don't pass it back, use lto_streamer_cache_append.
14196 (lto_register_var_decl_in_symtab): Use unsigned index.
14197 (lto_register_function_decl_in_symtab): Likewise.
14198 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14199 index.
14200 (lto_get_builtin_tree): Don't read index, use
14201 lto_streamer_cache_append.
14202 (lto_read_tree): Adjust call to lto_materialize_tree.
14203
14204 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14205 don't use function calls in arguments to MIN.
14206
14207 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14208 twice.
14209
14210 * gimple.c (gimple_type_leader_entry): Mark deletable.
14211
b9a5b5b2
AM
142122011-04-03 Alan Modra <amodra@gmail.com>
14213
14214 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14215
ac6a641b
MM
142162011-04-03 Michael Matz <matz@suse.de>
14217
14218 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14219 an integer.
14220 * tree.h (tree_decl_non_common.vindex): Adjust comment.
14221
0038d4e0
MM
142222011-04-03 Michael Matz <matz@suse.de>
14223
e9c18386 14224 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
14225 * gimple-fold.c (canonicalize_constructor_val): Accept being called
14226 without function context.
14227 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14228 current_function_decl and cfun.
14229
91f2fae8
MM
142302011-04-03 Michael Matz <matz@suse.de>
14231
14232 * tree.c (decl_init_priority_insert): Don't create entry for
14233 default priority.
14234 (decl_fini_priority_insert): Ditto.
14235 (fields_compatible_p, find_compatible_field): Remove.
14236 * tree.h (fields_compatible_p, find_compatible_field): Remove.
14237 * gimple.c (gimple_compare_field_offset): Adjust block comment.
14238
da29e070
EB
142392011-04-03 Eric Botcazou <ebotcazou@adacore.com>
14240
14241 * combine.c (try_combine): Remove useless local variable.
14242
4979c28b 142432011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 14244 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
14245
14246 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14247 non-variable offsets and compare the remaining bases of the two
14248 accesses instead of looking for exact same data-ref.
14249
b4ddcaee
KT
142502011-04-02 Kai Tietz <ktietz@redhat.com>
14251
f90298e1
KT
14252 PR target/48416
14253 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14254
b4ddcaee
KT
14255 * i386.c (ix86_is_msabi_thiscall): New helper function.
14256 (ix86_is_type_thiscall): New helper function.
14257 (ix86_comp_type_attributes): Handle thiscall for method-functions
14258 special.
14259 (init_cumulative_args): Likewise.
14260 (find_drap_reg): Likewise.
14261 (ix86_static_chain): Likewise.
14262 (x86_this_parameter): Likewise.
14263 (x86_output_mi_thunk): Likewise.
14264
2a9d769a 142652011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
14266 Nicolas Setton <setton@adacore.com>
14267 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
14268
14269 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14270 (add_gnat_descriptive_type_attribute): New function.
14271 (gen_array_type_die): Call it.
14272 (gen_enumeration_type_die): Likewise.
14273 (gen_struct_or_union_type_die): Likewise.
14274 (modified_type_die): Likewise.
14275 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14276 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14277 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14278
15a03a11
JJ
142792011-04-01 Jakub Jelinek <jakub@redhat.com>
14280
14281 PR bootstrap/48148
14282 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14283 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14284
14285 Revert:
14286 2011-03-17 Richard Guenther <rguenther@suse.de>
14287
14288 PR bootstrap/48148
14289 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14290 origin for decls in other ltrans units.
14291 (input_varpool_node): Likewise.
14292
19228b93
JJ
142932011-04-01 Jakub Jelinek <jakub@redhat.com>
14294
14295 PR middle-end/48335
14296 * expr.c (expand_assignment): Handle all possibilities
14297 if TO_RTX is CONCAT.
e9c18386 14298 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
14299 (store_split_bit_field): If SUBREG_REG (op0) or
14300 op0 itself has smaller mode than word, return it
14301 for offset 0 and const0_rtx for out-of-bounds stores.
14302 If word is const0_rtx, skip it.
14303
88cb339e
N
143042011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14305
14306 * config/h8300/h8300.c (print_operand_address): Rename to...
14307 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14308 Call h8300_print_operand and h8300_print_operand_address instead of
14309 print_operand and print_operand_address. Declare.
14310 (print_operand): Renake to...
14311 (h8300_print_operand): ...this. Make static. Adjust comments.
14312 Call h8300_print_operand instead of print_operand. Declare.
14313 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14314 (h8300_register_move_cost): Likewise.
14315 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14316 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14317 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14318 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14319 * config/h8300/h8300-protos.h (print_operand): Delete.
14320 (print_operand_address): Delete.
14321
756d6ee9
RH
143222011-04-01 Richard Henderson <rth@redhat.com>
14323
14324 PR 48400
14325 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14326 in strict mode before dwarf4. Re-order tests to early out
14327 before switching sections.
14328
ceaaaeab
NF
143292011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14330
14331 * config/h8300/constraints.md: New file.
14332 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14333 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14334 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14335 * config/h8300/predicates.md (bit_operand): Likewise.
14336 (incdec_operand): Use satisfies_constraint_M and
14337 satisfies_constraint_O. Don't use C code block.
14338 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14339 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14340 (compute_mov_length): Use satisfies_constraint_G.
14341 (fix_bit_operand): Use satisfies_constraint_U.
14342 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14343 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14344 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14345 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14346 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14347 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14348 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14349 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14350 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14351 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14352 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14353 (EXTRA_MEMORY_CONSTRAINT): Delete.
14354
08ae38e0
AP
143552011-04-01 Andrew Pinski <pinskia@gmail.com>
14356 Michael Meissner <meissner@linux.vnet.ibm.com>
14357
14358 PR target/48262
14359 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14360 operands, as per the specifications.
14361
14362 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14363 (vec_extract_evenv4sf): Ditto.
14364 (vec_extract_evenv8hi): Ditto.
14365 (vec_extract_evenv16qi): Ditto.
14366 (vec_extract_oddv4si): Ditto.
14367
bdb0b0f6
MW
143682011-03-31 Mark Wielaard <mjw@redhat.com>
14369
14370 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14371 high_pc attribute if the CU has no associated code. Only output
14372 DW_AT_entry_pc for CU if not generating strict dwarf and
14373 dwarf_version < 4.
14374
722279e4
BS
143752011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14376
14377 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14378 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14379 out of ...
14380 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14381 * final.c (final_start_function): Call the new function rather
14382 than using a NULL argument for dwarf2out_frame_debug.
14383
c5dd277d
BS
14384 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14385 that contains the prologue.
14386
ec4efea9
BS
14387 * haifa-sched.c (queue_insn): New arg REASON. All callers
14388 changed. Print it in debugging output.
14389
2a6a0d80
BS
14390 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14391
86014d07
BS
14392 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14393 Split most of the code into...
14394 (begin_move_insn): ... here. New function.
14395 (ebb_sched_info): Add a pointer to it.
14396 * haifa-sched.c (scheduled_insns): New static variable.
14397 (sched_extend_ready_list): Allocate it.
14398 (schedule_block): Use it to record the order of scheduled insns.
14399 Perform RTL changes to move insns only after all scheduling
14400 decisions have been made.
14401 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14402 begin_move_insn field.
14403 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14404 * sched-int.h (struct haifa_sched_info): Remove second argument
14405 from begin_schedule_ready hook. Add new member begin_move_insn.
14406 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14407 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14408
9d701248
BS
14409 * haifa-sched.c (prune_ready_list): New function, broken out of
14410 schedule_block.
14411 (schedule_block): Use it.
14412
1ca1dad5
UW
144132011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14414
14415 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14416
49568e45
KT
144172011-04-01 Kai Tietz <ktietz@redhat.com>
14418
14419 * config.gcc (*-*-mingw*): Allow as option the
14420 posix threading model.
07c0852e 14421 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
14422 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14423 definition.
14424 (CPP_SPEC): Add pthread/no-pthread handling.
14425 (LIB_SPEC): Likewise.
14426 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14427 (LIB_SPEC): Likewise.
14428 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14429 flag to pass -pthread option for shared libgcc build.
14430 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14431 for shared libgcc build.
14432 * config/i386/t-mingw-pthread: New file.
14433 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14434 New define to enable use of library pthread by default.
14435 * config/i386/mingw.opt (pthread): New driver option.
14436 (no-pthread): New driver option.
e9c18386 14437 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
14438 * config/i386/mingw-w64.opt: Likewise.
14439
748f7574 144402011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
14441
14442 * c-decl.c (grokdeclarator): Fix formatting.
14443
f04713ee
RS
144442011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14445
14446 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14447 instead of n_operands.
14448 (set_storage_via_setmem): Likewise.
14449 * optabs.c (maybe_gen_insn): Likewise.
14450 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14451 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14452 (mips_expand_builtin_direct): Likewise.
14453 * config/spu/spu.c (expand_builtin_args): Likewise.
14454
b29387ee
RS
144552011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14456
14457 * recog.h (insn_data_d): Add n_generator_args.
14458 * genoutput.c (data): Likewise.
14459 (output_insn_data): Print it.
14460 (max_opno, num_dups): Delete.
14461 (scan_operands): Just fill in "d->operand[...]".
14462 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14463
e792559a
RS
144642011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14465
14466 * gensupport.h (pattern_stats): New structure.
14467 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14468 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14469 (max_operand_1, max_operand_vec): Delete.
14470 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14471
e8110d6f
NF
144722011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14473
14474 * emit-rtl.c (emit_pattern_after_setloc): New function.
14475 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14476 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14477 (emit_pattern_after): New function.
14478 (emit_insn_after, emit_jump_insn_after): Call it.
14479 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14480 (emit_pattern_before_setloc): New function.
14481 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14482 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14483 Likewise.
14484 (emit_pattern_before): New function.
14485 (emit_insn_before, emit_jump_insn_before): Call it.
14486 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14487
576f85f1
RH
144882011-03-31 Richard Henderson <rth@redhat.com>
14489
14490 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14491 (dw_separate_line_info_entry): Remove.
14492 (enum dw_line_info_opcode): New.
14493 (dw_line_info_entry): Use it.
14494 (dw_line_info_table, dw_line_info_table_p): New.
14495 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14496 (line_info_table, line_info_label_num): Remove.
14497 (line_info_table_in_use): Remove.
14498 (separate_line_info_table): Remove.
14499 (separate_line_info_table_allocated): Remove.
14500 (separate_line_info_table_in_use): Remove.
14501 (LINE_INFO_TABLE_INCREMENT): Remove.
14502 (line_info_label_num): New.
14503 (cur_line_info_table): New.
14504 (text_section_line_info, cold_text_section_line_info): New.
14505 (separate_line_info): New.
14506 (SEPARATE_LINE_CODE_LABEL): Remove.
14507 (print_dwarf_line_table): Remove.
14508 (debug_dwarf): Don't dump it.
14509 (output_one_line_info_table): New.
14510 (output_line_info): Use it.
14511 (new_line_info_table): New.
14512 (set_cur_line_info_table): New.
14513 (dwarf2out_switch_text_section): Use it.
14514 (dwarf2out_begin_function): Likewise.
14515 (push_dw_line_info_entry): New.
14516 (dwarf2out_source_line): Rewrite for new line info tables.
14517 (dwarf2out_init): Remove dead initailizations.
14518
300d83d9
JM
145192011-03-31 Joseph Myers <joseph@codesourcery.com>
14520
14521 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14522 various flags.
14523 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14524 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14525 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14526 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14527 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14528 * opt-functions.awk (flag_init, switch_bit_fields): New.
14529 (switch_flags): Don't handle flags moved to bit-fields. Don't
14530 generate CL_MISSING_OK or CL_SAVE.
14531 * optc-gen.awk: Update to generate bit-field output as well as
14532 flags field.
14533 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14534 bit-field instead of CL_REJECT_DRIVER flag.
14535 * opts-common.c (generate_canonical_option,
14536 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14537 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14538 instead of CL_REJECT_NEGATIVE flag.
14539 * toplev.c (print_switch_values): Use cl_report bit-field instead
14540 of CL_REPORT flag.
14541
d4d73ce2
EB
145422011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14543
14544 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14545 a zero minimum index only if it is redundant.
14546
b8faca75
VM
145472011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14548
14549 PR rtl-optimization/48381
14550 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14551 instead of ira_class_hard_reg_index for calculating conflicting
14552 hard registers.
14553
7d11cebe
SB
145542011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14555
14556 * cprop.c: Clean up hash table building.
14557 (reg_avail_info): Remove.
14558 (oprs_available_p): Remove.
14559 (record_last_reg_set_info): Remove.
14560 (record_last_set_info): Remove.
14561 (reg_available_p): New function.
14562 (gcse_constant_p): Do not treat unfolded conditions as constants.
14563 (make_set_regs_unavailable): New function.
14564 (hash_scan_set): Simplify with new reg_available_p.
14565 (compute_hash_table_work): Traverse insns stream only once.
14566 Do not compute reg_avail_info. Traverse insns in reverse order.
14567 Record implicit sets after recording explicit sets from the block.
14568
98faf84f
MM
145692011-03-31 Michael Matz <matz@suse.de>
14570
e9c18386 14571 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 14572
f52d97da
AS
145732011-03-31 Anatoly Sokolov <aesok@post.ru>
14574
14575 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14576 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14577 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14578 (h8300_mode_dependent_address_p): New function.
14579 (h8300_get_index): Make static.
14580
e16b6fd0
JL
145812011-03-31 Jeff Law <law@redhat.com>
14582
10c51983
JL
14583 * reload1.c (elimination_effects): Fix typo in recent change.
14584
e9c18386 14585 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
14586 typo potentially leading to null pointer dereference.
14587
14588 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14589 (setup_save_areas): Corresponding changes to avoid useless
14590 assignments.
14591
14592 * jump.c (reversed_comparison_code_parts): Avoid successive return
14593 statements when REVERSE_CONDITION is defined.
14594
14595 * expr.c (expand_assignment): Avoid useless assignments.
14596 (expand_expr_real_1): Likewise.
14597 (expand_expr_real_2): Avoid useless statements.
14598
14599 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14600
14601 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14602
14603 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14604 statements.
14605
14606 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14607
eb1eb914
JM
146082011-03-31 Joseph Myers <joseph@codesourcery.com>
14609
14610 PR target/47109
14611 * doc/tm.texi.in (TARGET_VERSION): Remove.
14612 * doc/tm.texi: Regenerate.
14613 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14614 * collect2.c (main): Don't use TARGET_VERSION.
14615 * mips-tdump.c (main): Don't use TARGET_VERSION.
14616 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 14617 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
14618 * config/rs6000/vxworksae.h: Remove.
14619 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14620 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14621 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14622 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14623 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14624 * config/arm/arm.h (TARGET_VERSION): Remove.
14625 * config/arm/coff.h (TARGET_VERSION): Remove.
14626 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14627 * config/arm/elf.h (TARGET_VERSION): Remove.
14628 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14629 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14630 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14631 * config/arm/pe.h (TARGET_VERSION): Remove.
14632 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14633 * config/arm/semi.h (TARGET_VERSION): Remove.
14634 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14635 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14636 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14637 * config/avr/avr.h (TARGET_VERSION): Remove.
14638 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14639 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14640 * config/frv/frv.h (TARGET_VERSION): Remove.
14641 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14642 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14643 * config/i386/darwin.h (TARGET_VERSION): Remove.
14644 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14645 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14646 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14647 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14648 * config/i386/gnu.h (TARGET_VERSION): Remove.
14649 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14650 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14651 * config/i386/linux.h (TARGET_VERSION): Remove.
14652 * config/i386/linux64.h (TARGET_VERSION): Remove.
14653 * config/i386/lynx.h (TARGET_VERSION): Remove.
14654 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14655 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14656 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14657 * config/i386/netware.h (TARGET_VERSION): Remove.
14658 * config/i386/nto.h (TARGET_VERSION): Remove.
14659 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14660 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14661 * config/ia64/elf.h (TARGET_VERSION): Remove.
14662 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14663 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14664 * config/ia64/linux.h (TARGET_VERSION): Remove.
14665 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14666 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14667 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14668 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14669 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14670 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14671 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14672 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14673 * config/m68k/linux.h (TARGET_VERSION): Remove.
14674 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14675 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14676 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14677 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14678 * config/mep/mep.h (TARGET_VERSION): Remove.
14679 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14680 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14681 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14682 * config/mips/linux.h (TARGET_VERSION): Remove.
14683 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14684 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14685 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14686 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14687 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14688 * config/pa/pa.h (TARGET_VERSION): Remove.
14689 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14690 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14691 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14692 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14693 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14694 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14695 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14696 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14697 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14698 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14699 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14700 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14701 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14702 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14703 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14704 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14705 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14706 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14707 * config/s390/linux.h (TARGET_VERSION): Remove.
14708 * config/s390/s390.h (TARGET_VERSION): Remove.
14709 * config/s390/tpf.h (TARGET_VERSION): Remove.
14710 * config/score/score.h (TARGET_VERSION): Remove.
14711 * config/sh/linux.h (TARGET_VERSION): Remove.
14712 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14713 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14714 * config/sh/sh.h (TARGET_VERSION): Remove.
14715 * config/sh/sh64.h (TARGET_VERSION): Remove.
14716 * config/sh/superh.h (TARGET_VERSION): Remove.
14717 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14718 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14719 * config/sparc/linux.h (TARGET_VERSION): Remove.
14720 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14721 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14722 TARGET_NAME32, TARGET_NAME): Remove.
14723 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14724 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14725 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14726 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14727 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14728 * config/spu/spu.h (TARGET_VERSION): Remove.
14729 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14730 * config/v850/v850.h (TARGET_VERSION): Remove.
14731 * config/vax/linux.h (TARGET_VERSION): Remove.
14732 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14733 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14734 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14735
ace31bca
EB
147362011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14737
14738 PR target/48142
14739 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14740 frame-related from frame-unrelated adjustments to the stack pointer.
14741
76f9db36
JJ
147422011-03-31 Jakub Jelinek <jakub@redhat.com>
14743
14744 * common.opt (fdebug-types-section): Move earlier.
14745 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14746
b7826465
AT
147472011-03-31 Andreas Tobler <andreast@fgznet.ch>
14748
14749 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14750 var.
14751
1290e54c
NF
147522011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14753
14754 * tree.h (CASE_CHAIN): Define.
14755 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14756 (gimple_redirect_edge_and_branch): Likewise.
14757
bddc98e1
VM
147582011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14759
14760 PR middle-end/48367
14761 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14762 calculation.
14763
c865e437
JL
147642011-03-30 Jeff Law <law@redhat.com>
14765
b3750213 14766 * PR bootstrap/48371
c865e437
JL
14767 * reload1.c (reload): Fix botch in last change.
14768
14769 * reload.h (struct reload): Fix typo introduced in last change.
14770
2cdf9574
JM
147712011-03-30 Joseph Myers <joseph@codesourcery.com>
14772
14773 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14774 Undocumented. Remove help text.
14775 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14776 -mhard-float.
14777
666a21a2
JM
147782011-03-30 Joseph Myers <joseph@codesourcery.com>
14779
14780 * doc/options.texi (NegativeAlias): Document.
14781 (Alias): Mention NegativeAlias.
14782 * opt-functions.awk: Handle NegativeAlias.
e9c18386 14783 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
14784 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14785 * opts.h (CL_NEGATIVE_ALIAS): Define.
14786 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14787 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14788 OPT_mspe_.
14789 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14790 Alias entries.
14791 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14792 mno-spe and mno-isel instead of mspe=no and -misel=no.
14793
0fa4e351
MW
147942011-03-29 Mark Wielaard <mjw@redhat.com>
14795
14796 * common.opt (fdebug-types-section): New flag.
14797 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14798 * dwarf2out.c (use_debug_types): New define.
14799 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14800 (print_die): Guard output of type unit signatures using
14801 use_debug_types.
14802 (build_abbrev_table): Replace assert of dwarf_version >= 4
14803 with assert on use_debug_types.
14804 (size_of_die): Likewise.
14805 (unmark_dies): Likewise.
14806 (value_format): Decide AT_ref_external form on use_debug_types.
14807 (output_die): Replace dwarf_version version check guard with
14808 use_debug_types where appropriate.
14809 (modified_type_die): Likewise.
14810 (gen_reference_type_die): Likewise.
14811 (dwarf2out_start_source_file): Likewise.
14812 (dwarf2out_end_source_file): Likewise.
14813 (prune_unused_types_walk_attribs): Likewise.
14814 (dwarf2out_finish): Likewise.
14815
4648deb4
VM
148162011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14817
14818 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14819
4f431835
RS
148202011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14821
14822 PR rtl-optimization/48332
14823 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14824 mode of input operand N and modeN to its actual mode.
14825
f2034d06
JL
148262011-03-30 Jeff Law <law@redhat.com>
14827
14828 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14829 define accessor macro.
14830 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14831 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14832 (reg_equiv_init): Likewise.
14833 (reg_equivs_size): New variable.
14834 (reg_equiv_init_size): Remove.
14835 (allocate_initial_values): Move prototype to here from....
14836 * integrate.h (allocate_initial_values): Remove prototype.
14837 * integrate.c: Include reload.h.
14838 (allocate_initial_values): Corresponding changes.
14839 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14840 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14841 (update_equiv_regs): Corresponding changes.
14842 (ira): Corresponding changes.
14843 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14844 (push_secondary_reload): Corresponding changes.
14845 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14846 (make_memloc, find_reloads_address): Corresponding changes.
14847 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14848 (find_reloads_address_1): Corresponding changes.
14849 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14850 (refers_to_regno_for_reload_p): Corresponding changes.
14851 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14852 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14853 * reload1.c: Include ggc.h.
14854 (grow_reg_equivs): New function.
14855 (replace_pseudos_in, reload): Corresponding changes.
14856 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14857 (eliminate_regs_1, elimination_effects): Corresponding changes.
14858 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14859 (delete_output_reload): Likewise.
14860 * caller-save.c (mark_referenced_regs): Corresponding changes.
14861 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14862 * frv/predicates.md (frv_load_operand): Corresponding changes.
14863 * microblaze/microblaze.c (double_memory_operand): Corresponding
14864 changes.
14865 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14866 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 14867 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
14868 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14869 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14870 changes.
14871 * pa/pa.c (emit_move_sequence): Corresponding changes.
14872 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14873
159b81b0
RS
148742011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14875
14876 PR target/47551
14877 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14878 structure modes. Don't check neon_vector_mem_operand for
14879 vector or structure modes.
14880
a6217191
RS
148812011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14882 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14883
14884 PR target/43590
14885 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14886 operand 1 and reshuffle the operands to match.
14887 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14888
bd837408
CS
148892011-03-30 Christian Schüler <cschueler@gmx.de>
14890
6955d771 14891 PR driver/48208
bd837408 14892 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 14893
6955d771 14894 PR driver/48260
bd837408
CS
14895 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14896 handler function.
14897 * config/darwin.opt: Added '-arch' option.
14898
e9c0470a
NC
148992011-03-30 Nick Clifton <nickc@redhat.com>
14900
14901 * config/rx/rx.md: Add peepholes and patterns to combine
14902 extending loads and simple arithmetic instructions.
14903 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
14904 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14905 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 14906 modes to use pre-decrement and post-increment addressing.
e9c18386 14907 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 14908 addresses.
e9c18386
UB
14909 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14910 (rx_memory_move_cost): Adjust cost of stores.
14911 (rx_adjust_insn_length): New function.
e9c0470a 14912
8a87e7ab
JJ
149132011-03-30 Jakub Jelinek <jakub@redhat.com>
14914
14915 PR c/48305
14916 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14917 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14918 matching arg00/arg01 types.
14919
12486e03
EB
149202011-03-30 Eric Botcazou <ebotcazou@adacore.com>
14921
14922 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14923 last_location to UNKNOWN_LOCATION.
14924
0b99eef6
L
149252011-03-30 H.J. Lu <hongjiu.lu@intel.com>
14926
14927 PR target/48349
14928 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14929 FLOAT_SSE_REGS.
14930
023592aa
JM
149312011-03-30 Joseph Myers <joseph@codesourcery.com>
14932 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14933
14934 PR bootstrap/48337
14935 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14936 Init(PROCESSOR_V7).
14937 (sparc_cpu): Likewise.
14938 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14939 PROCESSOR_V7.
14940
ad3b266b
VM
149412011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14942
14943 PR target/48336
14944 PR middle-end/48342
14945 PR rtl-optimization/48345
14946 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14947 hard regs for given mode from profitable regs when doing secondary
14948 allocation.
14949
633c9126
JL
149502011-03-29 Jeff Law <law@redhat.com>
14951
14952 PR bootstrap/48327
14953 * tree-ssa-threadupdate.c (struct redirection_data): Remove
14954 do_not_duplicate field.
14955 (lookup_redirection_data): Corresponding changes.
14956 (create_duplicates): Always create a template block.
14957 (redirect_edges): Remove code which reused the original block
14958 when it was going to become unreachable code.
14959 (thread_block): Don't set do_not_duplicate field.
14960
eb50f63a
JM
149612011-03-29 Joseph Myers <joseph@codesourcery.com>
14962
14963 * lto-opts.c (register_user_option_p, lto_register_user_option):
14964 Make type argument unsigned.
14965 * lto-streamer.h (lto_register_user_option): Make type argument
14966 unsigned.
14967 * opth-gen.awk: Make CL_* macros unsigned.
14968 * opts-common.c (find_opt): Make lang_mask argument unsigned.
14969 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14970 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14971 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14972 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14973 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14974 (find_opt): Make lang_mask argument unsigned.
14975
76763a6d
VM
149762011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14977
14978 PR rtl-optimization/48331
14979 PR rtl-optimization/48334
14980 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14981 for any used algorithm.
14982
5c82436e
VM
149832011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14984
14985 * ira-conflicts.c (build_object_conflicts): Add unused attribute
14986 to parent_max.
14987
7a81008b
UB
149882011-03-29 Uros Bizjak <ubizjak@gmail.com>
14989
14990 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14991 (alpha_option_override): Don't set alpha_sr_alias_set.
14992 (emit_frame_store_1): Use gen_frame_mem rather than calling
14993 set_mem_alias_set.
14994 (alpha_expand_epilogue): Ditto.
14995
86c8d1f6
IR
149962011-03-29 Ira Rosen <ira.rosen@linaro.org>
14997
14998 PR tree-optimization/48290
14999 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
15000 vectorization, check that relevant phis in the basic block after
15001 the inner loop are really inner loop's exit phis.
15002
0d12220f
RS
150032011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
15004
e8cf17e7 15005 PR debug/48190
0d12220f
RS
15006 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
15007 (cached_dw_loc_list_def): New structure.
15008 (cached_dw_loc_list): New typedef.
15009 (cached_dw_loc_list_table): New variable.
15010 (cached_dw_loc_list_table_hash): New function.
15011 (cached_dw_loc_list_table_eq): Likewise.
15012 (add_location_or_const_value_attribute): Take a bool cache_p.
15013 Cache the list when the parameter is true.
15014 (gen_formal_parameter_die): Update caller.
15015 (gen_variable_die): Likewise.
15016 (dwarf2out_finish): Likewise.
15017 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
15018 while generating debug info for the decl.
15019 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
15020 (dwarf2out_init): Initialize cached_dw_loc_list_table.
15021 (resolve_addr): Cache the result of resolving a chain of
15022 location lists.
15023
1756cb66
VM
150242011-03-28 Vladimir Makarov <vmakarov@redhat.com>
15025
15026 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
15027 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 15028
1756cb66
VM
15029 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
15030 after regstat_init_n_sets_and_refs.
15031
15032 * ira.c: Add more comments at the top.
15033 (setup_stack_reg_pressure_class, setup_pressure_classes):
15034 Add comments how we compute the register pressure classes.
15035 (setup_allocno_and_important_classes): Add more comments.
15036 (setup_class_translate_array, reorder_important_classes)
15037 (setup_reg_class_relations): Add comments.
15038
15039 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
15040 start of the file.
15041
15042 * ira-color.c: Add 2011 to the Copyright line.
15043 (assign_hard_reg): Add more comments.
15044 (improve_allocation): Ditto.
15045
15046 * ira-costs.c: Add 2011 to the Copyright line.
15047 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
15048 comments.
15049 (setup_regno_cost_classes_by_mode): Ditto.
15050
15051 Initial patches from ira-improv branch:
15052
15053 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15054
f60c2554 15055 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
15056 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
15057 (ira_create_allocno): Remove initialization of
15058 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
15059 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
15060 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15061 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
15062 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
15063 Initialize ALLOCNO_ADD_DATA.
15064 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
15065 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
15066 ALLOCNO_REG.
15067 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
15068 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
15069
15070 * ira.c (ira_reallocate): Remove.
15071 (setup_pressure_classes): Call
15072 ira_init_register_move_cost_if_necessary. Use
15073 ira_register_move_cost instead of ira_get_register_move_cost.
15074 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
15075 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
15076
15077 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
15078 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
15079 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
15080 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
15081 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
15082 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
15083 Fix formatting.
7a81008b 15084 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
15085 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
15086 (struct allocno_color_data): New.
15087 (allocno_color_data_t): New typedef.
15088 (allocno_color_data): New definition.
15089 (ALLOCNO_COLOR_DATA): New macro.
15090 (struct object_color_data): New.
15091 (object_color_data_t): New typedef.
15092 (object_color_data): New definition.
15093 (OBJECT_COLOR_DATA): New macro.
15094 (update_copy_costs, calculate_allocno_spill_cost): Call
15095 ira_init_register_move_cost_if_necessary. Use
15096 ira_register_move_cost instead of ira_get_register_move_cost.
15097 (move_spill_restore, update_curr_costs): Ditto.
15098 (allocno_spill_priority): Make it inline.
7a81008b 15099 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
15100 (struct coalesce_data, coalesce_data_t): New.
15101 (allocno_coalesce_data): New definition.
15102 (ALLOCNO_COALESCE_DATA): New macro.
15103 (merge_allocnos, coalesced_allocno_conflict_p): Use
15104 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
15105 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
15106 (coalesce_allocnos): Ditto.
15107 (setup_coalesced_allocno_costs_and_nums): Ditto.
15108 (collect_spilled_coalesced_allocnos): Ditto.
15109 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
15110 (setup_slot_coalesced_allocno_live_ranges): Ditto.
15111 (coalesce_spill_slots): Ditto.
15112 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
15113 free allocno_coalesce_data.
15114
15115 * ira-conflicts.c: Fix formatting.
15116 (process_regs_for_copy): Call
15117 ira_init_register_move_cost_if_necessary. Use
15118 ira_register_move_cost instead of ira_get_register_move_cost.
15119 (build_object_conflicts): Optimize.
15120
15121 * ira-costs.c (record_reg_classes): Optimize. Call
15122 ira_init_register_move_cost_if_necessary. Use
15123 ira_register_move_cost, ira_may_move_in_cost, and
15124 ira_may_move_out_cost instead of ira_get_register_move_cost and
15125 ira_get_may_move_cost.
15126 (record_address_regs): Ditto.
15127 (scan_one_insn): Optimize.
15128 (find_costs_and_classes): Optimize.
15129 (process_bb_node_for_hard_reg_moves): Call
15130 ira_init_register_move_cost_if_necessary. Use
15131 ira_register_move_cost instead of ira_get_register_move_cost.
15132
15133 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
15134 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
15135 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
15136 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
15137 definitions.
15138 (ira_initiate_emit_data, ira_finish_emit_data)
15139 (create_new_allocno): New functions.
7a81008b 15140 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
15141 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
15142 Use ira_register_move_cost instead of ira_get_register_move_cost.
15143
15144 * ira-int.h: Fix some comments.
7a81008b
UB
15145 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
15146 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
15147 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
15148 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
15149 add_data.
15150 (struct ira_allocno): Make mode and aclass a bitfield. Move other
15151 bitfield after mode. Make hard_regno a short int. Make
15152 hard_regno short. Remove first_coalesced_allocno and
15153 next_coalesced_allocno. Move mem_optimized_dest_p,
15154 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
15155 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
15156 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
15157 temp, colorable_p. Add new member add_data.
15158 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
15159 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15160 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15161 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15162 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15163 (ALLOCNO_ADD_DATA): New macro.
15164 (ira_emit_data_t): New typedef.
15165 (struct ira_emit_data): New. Move mem_optimized_dest_p,
15166 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15167 from struct ira_allocno.
15168 (ALLOCNO_EMIT_DATA): New macro.
15169 (ira_allocno_emit_data, allocno_emit_reg): New.
15170 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 15171 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
15172 (OBJECT_ADD_DATA): New macro.
15173 (ira_reallocate): Remove.
15174 (ira_initiate_emit_data, ira_finish_emit_data): New.
15175 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15176 (ira_init_register_move_cost_if_necessary): New.
15177 (ira_object_conflict_iter_next): Merge into
15178 ira_object_conflict_iter_cond.
7a81008b 15179 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 15180
f60c2554 15181 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
15182 ira_init_register_move_cost_if_necessary. Use
15183 ira_register_move_cost instead of ira_get_register_move_cost.
15184
15185 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15186
15187 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15188
15189 * ira-costs.c: Fix formatting.
15190 (cost_classes, cost_classes_num): Remove.
15191 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15192 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15193 (cost_classes_del, cost_classes_htab): New.
15194 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15195 (initiate_regno_cost_classes, setup_cost_classes): New.
15196 (setup_regno_cost_classes_by_aclass): New.
7a81008b 15197 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
15198 (record_reg_classes): Use regno_cost_classes instead of
15199 cost_classes. Move checking opposite operand up.
15200 (record_address_regs): Use regno_cost_classes
15201 instead of cost_classes.
15202 (scan_one_insn): Ditto. Use always general register.
15203 (print_allocno_costs): Use regno_cost_classes instead of
15204 cost_classes.
15205 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
15206 (find_costs_and_classes): Set up cost classes for each registers.
15207 Use also their mode for this. Use regno_cost_classes instead of
15208 cost_classes.
15209 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15210 cost_classes.
15211 (free_ira_costs, ira_init_costs): Don't use cost_classes.
15212 (ira_costs, ira_set_pseudo_classes): Call
15213 initiate_regno_cost_classes and finish_regno_cost_classes.
15214
15215 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
15216
15217 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15218
15219 * target.def (ira_cover_classes): Remove.
15220
7a81008b 15221 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
15222
15223 * doc/tm.texi.in: Ditto.
15224
15225 * ira-conflicts.c: Remove mentioning cover classes from the file.
15226 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 15227 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
15228
15229 * targhooks.c (default_ira_cover_classes): Remove.
15230
15231 * targhooks.h (default_ira_cover_classes): Ditto.
15232
15233 * haifa-sched.c: Remove mentioning cover classes from the file.
15234 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15235 ira_pressure_classes and ira_pressure_classes_num instead of
15236 ira_reg_class_cover_size and ira_reg_class_cover. Use
15237 sched_regno_pressure_class instead of sched_regno_cover_class.
15238 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15239 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15240
15241 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
15242 classes from the file.
15243 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15244 (struct object_hard_regs, struct object_hard_regs_node): New.
15245 (struct ira_object): New members profitable_hard_regs,
15246 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15247 (struct ira_allocno): Rename cover_class to aclass. Rename
15248 cover_class_cost and updated_cover_class_cost to class_cost and
15249 updated_class_cost. Remove splay_removed_p and
15250 left_conflict_size. Add new members colorable_p.
15251 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15252 (ALLOCNO_COLORABLE_P): New macro.
15253 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15254 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15255 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15256 (OBJECT_...): Rename parameter C to O.
15257 (OBJECT_PROFITABLE_HARD_REGS): New macro.
15258 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15259 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15260 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15261 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15262 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15263 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15264 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15265 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15266 x_ira_reg_class_subunion.
15267 (ira_max_memory_move_cost, ira_max_register_move_cost)
15268 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15269 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15270 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 15271 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
15272 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15273 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15274 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15275 (ira_tune_allocno_costs_and_cover_classes): Rename to
15276 ira_tune_allocno_costs.
15277 (ira_debug_hard_regs_forest): New.
15278 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15279 (ira_object_conflict_iter_next): Fix comments.
7a81008b 15280 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
15281 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15282 cover_class to aclass.
15283 (ira_allocate_and_accumulate_costs): Ditto.
15284 (ira_allocate_and_set_or_copy_costs): Ditto.
15285
15286 * opts.c (decode_options): Remove ira_cover_class check.
15287
15288 * ira-color.c: Remove mentioning cover classes from the file. Use
15289 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15290 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15291 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15292 (splay-tree.h): Remove include.
15293 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15294 before copy_freq_compare_func.
15295 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15296 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15297 New definitions.
15298 (hard_regs_roots, hard_regs_node_vec): Ditto.
15299 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15300 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15301 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15302 (create_new_object_hard_regs_node): Ditto.
15303 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 15304 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
15305 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15306 Ditto.
15307 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15308 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15309 (remove_unused_object_hard_regs_nodes): Ditto.
15310 (enumerate_object_hard_regs_nodes): Ditto.
15311 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15312 (object_hard_regs_subnode_t): Ditto.
15313 (struct object_hard_regs_subnode): Ditto.
15314 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15315 (setup_object_hard_regs_subnode_index): Ditto.
15316 (get_object_hard_regs_subnodes_num): Ditto.
15317 (form_object_hard_regs_nodes_forest): Ditto.
15318 (finish_object_hard_regs_nodes_tree): Ditto.
15319 (finish_object_hard_regs_nodes_forest): Ditto.
15320 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 15321 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
15322 (pseudos_have_intersected_live_ranges_p): Rename to
15323 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15324 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15325 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15326 (update_copy_costs): Remove assert. Skip cost update if the hard
15327 reg does not belong the class.
15328 (assign_hard_reg): Process only profitable hard regs.
15329 (uncolorable_allocnos_num): Make it scalar.
15330 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15331 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15332 and ira_reg_class_max_nregs.
15333 (bucket_allocno_compare_func): Check frequency first.
15334 (sort_bucket): Add compare function as a parameter.
15335 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15336 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15337 (push_allocno_to_stack): Rewrite for checking new allocno
15338 colorability.
7a81008b 15339 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
15340 (push_only_colorable): Pass new parameter to sort_bucket.
15341 (push_allocno_to_spill): Remove.
15342 (allocno_spill_priority_compare): Make it inline and rewrite.
15343 (splay_tree_allocate, splay_tree_free): Remove.
15344 (allocno_spill_sort_compare): New function.
15345 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15346 build and use splay tree. Choose first allocno in uncolorable
15347 allocno bucket to spill. Remove setting spill cost.
15348 (all_conflicting_hard_regs): Remove.
15349 (setup_allocno_available_regs_num): Check only profitable hard
15350 regs. Print info about hard regs nodes.
15351 (setup_allocno_left_conflicts_size): Remove.
15352 (put_allocno_into_bucket): Don't call
7a81008b 15353 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
15354 (improve_allocation): New.
15355 (color_allocnos): Call setup_profitable_hard_regs,
15356 form_object_hard_regs_nodes_forest, improve_allocation,
15357 finish_object_hard_regs_nodes_forest. Setup spill cost.
15358 (print_loop_title): Use pressure classes.
15359 (color_allocnso): Ditto.
15360 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15361 and allocnos_for_spilling.
15362 (ira_sort_regnos_for_alter_reg): Don't setup members
15363 {first,next}_coalesced_allocno.
15364 (color): Remove allocating and freeing removed_splay_allocno_vec.
15365 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15366 prohibited_class_mode_regs.
15367
15368 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15369 formatting.
15370 (update_allocno_pressure_excess_length): Use pressure classes.
15371 (inc_register_pressure, dec_register_pressure): Check for pressure
15372 class.
15373 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15374 pressure class. Use ira_reg_class_nregs instead of
15375 ira_reg_class_max_nregs.
15376 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15377 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15378 (single_reg_class): Use ira_reg_class_nregs instead of
15379 ira_reg_class_max_nregs.
15380 (process_bb_node_lives): Use pressure classes.
15381
15382 * ira-emit.c: Remove mentioning cover classes from the file. Use
15383 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15384 (change_loop): Use pressure classes.
15385 (modify_move_list): Call ira_set_allocno_class instead of
15386 ira_set_allocno_cover_class.
15387
15388 * ira-build.c: Remove mentioning cover classes from the file. Use
15389 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15390 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15391 ALLOCNO_UPDATED_CLASS_COST instead of
15392 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15393 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15394 (ira_create_allocno): Remove initialization of
15395 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15396 ALLOCNO_COLORABLE_P.
15397 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15398 Update conflict regs for the objects.
15399 (create_cap_allocno): Remove assert. Don't propagate
15400 ALLOCNO_AVAILABLE_REGS_NUM.
15401 (ira_free_allocno_costs): New function.
15402 (finish_allocno): Change a part of code into call of
15403 ira_free_allocno_costs.
15404 (low_pressure_loop_node_p): Use pressure classes.
15405 (object_range_compare_func): Don't compare classes.
15406 (setup_min_max_conflict_allocno_ids): Ditto.
15407
15408 * loop-invariant.c: Remove mentioning cover classes from the file.
15409 Use ira_pressure_classes and ira_pressure_classes_num instead of
15410 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
15411 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15412 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15413 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
15414 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15415 STACK_REG_COVER_CLASS.
15416 (get_regno_cover_class): Rename to get_regno_pressure_class.
15417 (move_loop_invariants): Initialize and finalize regstat.
15418
15419 * ira.c: Remove mentioning cover classes from the file. Add
15420 comments about coloring without cover classes. Use ALLOCNO_CLASS
15421 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15422 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15423 setup_class_subset_and_memory_move_costs.
15424 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15425 (setup_cover_and_important_classes): Rename to
15426 setup_allocno_and_important_classes.
15427 (setup_class_translate_array): New.
15428 (setup_class_translate): Call it for allocno and pressure classes.
15429 (cover_class_order): Rename to allocno_class_order.
15430 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15431 of ira_class_translate.
15432 (reorder_important_classes): Set up ira_important_class_nums.
15433 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15434 (print_class_cover): Rename to print_classes. Add parameter.
15435 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15436 Print pressure classes too.
15437 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15438 setup_reg_subclasses.
7a81008b 15439 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
15440 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15441 (setup_prohibited_class_mode_regs): Use
7a81008b 15442 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
15443 (clarify_prohibited_class_mode_regs): New function.
15444 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15445 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15446 (ira_init_once): Initialize them.
15447 (free_register_move_costs): Process them.
15448 (ira_init): Move calls of find_reg_classes and
15449 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15450 Call clarify_prohibited_class_mode_regs.
15451 (ira_no_alloc_reg): Remove.
15452 (too_high_register_pressure_p): Use pressure classes.
15453
15454 * sched-deps.c: Remove mentioning cover classes from the file.
15455 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15456 ira_pressure_classes and ira_pressure_classes_num instead of
15457 ira_reg_class_cover_size and ira_reg_class_cover.
15458 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15459 sched_regno_pressure_class instead of sched_regno_cover_class.
15460 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15461 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15462
15463 * ira.h: Add 2010 to Copyright.
15464 (ira_no_alloc_reg): Remove external.
15465 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15466 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15467 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15468 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15469 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15470 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15471 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15472 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15473 x_ira_no_alloc_regs.
7a81008b 15474 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
15475 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15476 ira_allocno_classes_num and ira_allocno_classes.
15477 (ira_class_translate): Rename to ira_allocno_class_translate.
15478 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15479 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15480 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15481 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15482 (ira_no_alloc_regs): New.
15483
15484 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15485 classes from the file. Use ALLOCNO_CLASS instead of
15486 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15487 ALLOCNO_COVER_CLASS_COST.
15488 (regno_cover_class): Rename to regno_aclass.
15489 (record_reg_classes): Use ira_reg_class_subunion instead of
15490 ira_reg_class_union.
15491 (record_address_regs): Check overflow.
15492 (scan_one_insn): Ditto.
7a81008b 15493 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
15494 (print_pseudo_costs): Use REG_N_REFS.
15495 (find_costs_and_classes): Use classes intersected with them on the
15496 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15497 ira_reg_class_union. Use ira_allocno_class_translate and
15498 regno_aclass instead of ira_class_translate and regno_cover_class.
15499 Modify code for finding regno_aclass. Setup preferred classes for
15500 the next pass.
15501 (setup_allocno_cover_class_and_costs): Rename to
15502 setup_allocno_class_and_costs. Use regno_aclass instead of
15503 regno_cover_class. Use ira_set_allocno_class instead of
15504 ira_set_allocno_cover_class.
15505 (init_costs, finish_costs): Use regno_aclass instead of
15506 regno_cover_class.
15507 (ira_costs): Use setup_allocno_class_and_costs instead of
15508 setup_allocno_cover_class_and_costs.
15509 (ira_tune_allocno_costs_and_cover_classes): Rename to
15510 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15511 by processing objects. Use ira_reg_class_max_nregs instead of
15512 ira_reg_class_nregs.
15513
15514 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15515
15516 * sched-int.h: Remove mentioning cover classes from the file.
15517 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15518
15519 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15520 classes from the file.
15521 (struct reg_pref): Rename coverclass into allocnoclass.
15522 (reg_cover_class): Rename to reg_allocno_class.
15523
7a81008b 15524 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
15525
15526 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15527
15528 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15529
15530 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15531
15532 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15533
15534 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15535
15536 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15537
15538 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15539
15540 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15541
15542 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15543
15544 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15545 (i386_ira_cover_classes): Ditto.
15546
15547 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15548
15549 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15550
15551 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15552
15553 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15554
15555 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15556
15557 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15558
15559 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15560 (mips_ira_cover_classes): Ditto.
15561
15562 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15563
15564 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15565
15566 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15567
15568 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15569
15570 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15571
15572 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15573 (IRA_COVER_CLASSES_VSX): Ditto.
15574
15575 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15576 (rs6000_ira_cover_classes): Ditto.
15577
15578 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15579
15580 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15581
15582 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15583
15584 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15585
15586 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15587
15588 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15589
15590 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15591
15592 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15593
15594 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15595
15596 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15597
2b80199f
JJ
155982011-03-29 Jakub Jelinek <jakub@redhat.com>
15599
71dae1fe
JJ
15600 PR debug/48253
15601 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15602 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15603 dw_fde_unlikely_section_end_label, cold_in_std_section,
15604 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15605 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15606 fields.
15607 (output_fde): Use dw_fde_second_{begin,end} if second is
15608 true, otherwise dw_fde_{begin,end}.
15609 (output_call_frame_info): Test dw_fde_second_begin != NULL
15610 instead of dw_fde_switched_sections.
15611 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15612 fields, initialize new fields. Initialize in_std_section
15613 unconditionally from the first partition.
15614 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15615 dw_fde_second_begin is non-NULL.
15616 (dwarf2out_switch_text_section): Stop initializing removed
15617 dw_fde_struct fields, initialize new fields, initialize
15618 also dw_fde_end here. Set dw_fde_switch_cfi even when
15619 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15620 (struct var_loc_list_def): Add last_before_switch field.
15621 (arange_table, arange_table_allocated, arange_table_in_use,
15622 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15623 (size_of_aranges): Count !in_std_section and !second_in_std_section
15624 hunks in fdes, instead of looking at arange_table_in_use.
15625 (output_aranges): Add aranges_length argument, don't call
15626 size_of_aranges here. Instead of using aranges_table*
15627 emit ranges for fdes when !in_std_section resp.
15628 !second_in_std_section.
15629 (dw_loc_list): Break ranges crossing section switch.
15630 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 15631 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
15632 (gen_subprogram_die): Don't call add_arange. Use
15633 dw_fde_{begin,end} for first partition and if switched
15634 section dw_fde_second_{begin,end} for the second.
15635 (var_location_switch_text_section_1,
15636 var_location_switch_text_section): New functions.
15637 (dwarf2out_begin_function): Initialize cold_text_section even
15638 when function_section () isn't text_section.
15639 (prune_unused_types): Don't walk arange_table.
15640 (dwarf2out_finish): Don't needlessly test
15641 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15642 If info_section_emitted, call size_of_aranges and if it indicates
15643 non-empty .debug_aranges, call output_aranges with the computed
15644 size. Stop using removed dw_fde_struct fields, use
15645 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15646 for second.
15647
2b80199f
JJ
15648 PR debug/48203
15649 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15650 create ENTRY_VALUE if incoming or address of incoming's MEM
15651 is a hard REG.
15652 * dwarf2out.c (mem_loc_descriptor): Don't emit
15653 DW_OP_GNU_entry_value of DW_OP_fbreg.
15654 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15655 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15656 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15657 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15658 ENTRY_VALUE_EXPs.
15659 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15660 is a REG_P or MEM_P with REG_P address, compute hash directly
15661 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15662 (preserve_only_constants): Don't clear VALUES forwaring
15663 ENTRY_VALUE to some other VALUE.
15664
8a445129
RS
156652011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15666
15667 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15668 instead of GEN_INT.
15669
c82fee88
EB
156702011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15671
15672 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15673 block before expanding the statement.
15674 (expand_gimple_stmt_1): Likewise. Set them here...
15675 (expand_gimple_stmt): ...and not here. Tidy.
15676 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15677 unknown.
15678
e45425ec
SB
156792011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15680
15681 * Makefile.in: New rule for cprop.o.
15682 * gcse.c: Move constant/copy propagation to cprop.c.
15683 (compute_local_properties): Only handle expression tables.
15684 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15685 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15686 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15687 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 15688 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
15689 compute_cprop_data, find_used_regs, try_replace_reg,
15690 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15691 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15692 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15693 find_bypass_set, reg_killed_on_edge, bypass_block,
15694 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15695 execute_rtl_cprop, pass_rtl_cprop): Move to...
15696 * cprop.c: ...here. New file, constant/copy propagation for RTL
15697 moved from gcse.c to here with minor cleanups in duplicated code.
15698
c09d5426
L
156992011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15700
15701 * config/i386/i386.c (flag_opts): Fix a typo in
15702 -mavx256-split-unaligned-store.
15703
9eaa7740
AS
157042011-03-28 Anatoly Sokolov <aesok@post.ru>
15705
15706 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15707 LIBCALL_VALUE): Remove macros.
15708 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15709 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15710 (h8300_function_value, h8300_libcall_value,
15711 h8300_function_value_regno_p): New functions.
15712
dcec2be2
AS
157132011-03-28 Anatoly Sokolov <aesok@post.ru>
15714
15715 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15716
520af9ec
JL
157172011-03-28 Jeff Law <law@redhat.com>
15718
15719 * tree-ssa-threadupdate.c (redirect_edges): Call
15720 create_edge_and_update_destination_phis as needed.
15721 (create_edge_and_update_destination_phis): Accept new BB argument.
15722 All callers updated.
15723 (thread_block): Do not update the profile when threading around
15724 intermediate blocks.
15725 (thread_single_edge): Likewise.
15726 (determine_bb_domination_status): If BB is not a successor of the
15727 loop header, return NONDOMINATING.
15728 (register_jump_thread): Note when we register a jump thread around
15729 an intermediate block.
15730 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15731 (thread_across_edge): Use it.
15732
7450b54f
TG
157332011-03-28 Tristan Gingold <gingold@adacore.com>
15734
15735 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15736 when for_return is 2.
15737
649beb33
JL
157382011-03-28 Jeff Law <law@redhat.com>
15739
15740 * var-tracking.c (canonicalize_values_mark): Delete unused
15741 lhs assignment.
15742 (canonicalize_values_star, set_variable_part): Likewise.
15743 (clobber_variable_part, delete_variable_part): Likewise.
15744
d5b8da97
SB
157452011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15746
15747 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15748
322dd859
MJ
157492011-03-28 Martin Jambor <mjambor@suse.cz>
15750
15751 * tree-inline.c (expand_call_inline): Do not check that destination
15752 node is analyzed.
15753 (optimize_inline_calls): Assert that destination node is analyzed.
15754 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15755 not call tree_lowering_passes.
15756 * cgraph.h (cgraph_analyze_function): Declare.
15757 * cgraphunit.c (cgraph_analyze_function): Make public.
15758
aa53e58b
JM
157592011-03-28 Joseph Myers <joseph@codesourcery.com>
15760
15761 * config/sparc/sparc-opts.h: New.
15762 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15763 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15764 (sparc_option_override): Store processor_type enumeration rather
15765 than string in cpu_default. Remove name and enumeration from
15766 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15767 without using sparc_select. Use target_flags_explicit instead of
15768 fpu_option_set.
15769 * config/sparc/sparc.h (enum processor_type): Move to
15770 sparc-opts.h.
15771 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15772 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15773 HeaderInclude entry.
15774 (mcpu=, mtune=): Use Var and Enum.
15775 (sparc_processor_type): New Enum and EnumValue entries.
15776
dd350eba
RO
157772011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15778 Iain Sandoe <iains@gcc.gnu.org>
15779
15780 PR target/48245
15781 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15782
1b29f05e
EB
157832011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15784
15785 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15786 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15787 Insert new statements at it in lieu of STMT.
15788 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15789 * tree-vect-stmts.c (vectorizable_store): Likewise.
15790 (vectorizable_load): Likewise.
15791
506e6808
UB
157922011-03-28 Uros Bizjak <ubizjak@gmail.com>
15793
15794 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15795 (divtf3): Ditto.
15796 (multf3): Ditto.
15797 (subtf3): Ditto.
15798
2e939ee9
L
157992011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15800
15801 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15802 unaligned 256bit load/store.
15803 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15804 (*avx_movdqu<avxmodesuffix>): Likewise.
15805
5e85ab88
JDA
158062011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15807
15808 PR target/48288
15809 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15810 * config/pa/pa.md (iordi3): Use new predicate in expander.
15811 (iorsi3): Likewise.
15812
47be3d6d
AS
158132011-03-27 Anatoly Sokolov <aesok@post.ru>
15814
506e6808 15815 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 15816 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
15817 * config/mips/mips-protos.h (mips_function_value): Remove.
15818 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
15819 (mips_function_value_1): ... this. Make static. Handle receiving
15820 the function type in 'fn_decl_or_type' argument.
15821 (mips_function_value, mips_libcall_value,
15822 mips_function_value_regno_p): New function.
15823 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15824 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15825
d253656a
L
158262011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15827
15828 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15829 and -mavx256-split-unaligned-store.
15830 (ix86_option_override_internal): Split 32-byte AVX unaligned
15831 load/store by default.
15832 (ix86_avx256_split_vector_move_misalign): New.
15833 (ix86_expand_vector_move_misalign): Use it.
15834
15835 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15836 -mavx256-split-unaligned-store.
15837
15838 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15839 256bit load/store. Generate unaligned store on misaligned memory
15840 operand.
15841 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15842 256bit load/store.
15843 (*avx_movdqu<avxmodesuffix>): Likewise.
15844
15845 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15846 -mavx256-split-unaligned-store.
15847
1ea9206a
RS
158482011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15849
15850 PR target/38598
15851 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15852 Update commentary.
15853
b99ce2a8
RS
158542011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15855
15856 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15857 opno arguments with an expand_operand. Use create_input_operand.
15858 (mips_prepare_builtin_target): Delete.
15859 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15860 functions.
15861 (mips_expand_builtin_direct): Use create_output_operand and
15862 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15863 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15864 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15865
69d52339
IR
158662011-03-27 Ira Rosen <ira.rosen@linaro.org>
15867
15868 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15869 function.
15870 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15871
ba5e9aca
EB
158722011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15873
15874 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15875 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15876 basic blocks and call commit_edge_insertions directly.
15877 (fixup_abnormal_edges): Move from here to...
15878 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15879 on the edges and return whether some have actually been inserted.
15880 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15881 compensation code.
15882
5d369d58
AB
158832011-03-26 Andrey Belevantsev <abel@ispras.ru>
15884
15885 PR rtl-optimization/48144
15886 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15887 (merge_expr_data): ... here.
15888 (av_set_intersect): Rename to av_set_code_motion_filter.
15889 Update all callers. Call merge_history_vect when an expression
15890 is found in both sets.
15891 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15892
f082c000
AM
158932011-03-26 Alan Modra <amodra@gmail.com>
15894
15895 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15896 cmodel medium addresses.
15897 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15898 64-bit gpr loads and stores.
15899 (rs6000_secondary_reload_ppc64): New function.
15900 * config/rs6000/rs6000-protos.h: Declare it.
15901 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15902
8ac5e12e
AM
159032011-03-26 Alan Modra <amodra@gmail.com>
15904
15905 PR target/47487
15906 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15907 GNU Go in traceback table.
15908
c2654ded
RH
159092011-03-25 Richard Henderson <rth@redhat.com>
15910
15911 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15912 if there are exactly 6 operands.
15913 (set_storage_via_setmem): Similarly.
15914
ba78087b
KT
159152011-03-25 Kai Tietz <ktietz@redhat.com>
15916
15917 * collect2.c (write_c_file_stat): Handle backslash
15918 as right-hand directory separator.
15919 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15920 checking just for slash.
15921 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15922 instead of checking for trailing slash.
15923 * gcc.c (record_temp_file): Use filename_cmp instead
15924 of strcmp.
15925 (do_spec_1): Likewise.
15926 (replace_outfile_spec_function): Likewise.
15927 (is_directory): Use filename_ncmp instead of strncmp.
15928 (print_multilib_info): Likewise.
15929 * gcov.c (find_source): Use filename_cmp instead
15930 instead of strcmp.
15931 (make_gcov_file_name): Fix order of slash/backslash
15932 checks.
15933 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15934 (add_standard_paths): Likewise.
15935 * mips-tfile.c (saber_stop): Handle backslash.
15936 * prefix.c (update_path): Use filename_ncmp instead of
15937 strncmp.
15938 * profile.c (output_location): Use filename_cmp instead
15939 of strcmp.
15940 * read-md.c (handle_toplevel_file): Handle backslash.
15941 * tlink.c (frob_extension): Likewise.
15942 * tree-cfg.c (same_line_p): Use filename_cmp instead of
15943 strcmp.
15944 * tree-dump.c (dequeue_and_dump): Handle backslash.
15945 * tree.c (get_file_function_name): Likewise.
15946 * gengtype.c (read_input_list): Likewise.
15947 (get_file_realbasename): Likewise.
15948 (get_output_file_with_visibility): Use filename_cmp
15949 instead of strcmp.
15950
75f6ec9a
RS
159512011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
15952
15953 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15954 case to VFPv1.
15955
6c4e2997
NF
159562011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15957
15958 * fold-const.c (expr_location_or): New function.
15959 (fold_truth_not_expr): Call it.
15960
0edf1bb2
JL
159612011-03-25 Jeff Law <law@redhat.com>
15962
15963 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15964 va_end.
15965 * c-family/c-common.c (def_fn_type): Likewise.
15966 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15967 * emit-rtl.c (gen_rtvec): Likewise.
15968 * lto/lto-lang.c (def_fn_type): Likewise.
15969
fdc2de95
RG
159702011-03-25 Richard Guenther <rguenther@suse.de>
15971
15972 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15973 also generate copies.
15974 (fini_copy_prop): Handle constant values properly.
15975
21385db0
JJ
159762011-03-25 Jakub Jelinek <jakub@redhat.com>
15977
15978 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15979 mode size instead of bitsize with DWARF2_ADDR_SIZE.
15980 (hash_loc_operands, compare_loc_operands): Handle
15981 DW_OP_GNU_entry_value.
15982
6510e8bb
KT
159832011-03-25 Kai Tietz <ktietz@redhat.com>
15984
15985 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15986 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15987 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15988 comment and use macro TARGET_64BIT_MS_ABI instead.
15989 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15990 and change default behavior for 32-bit MS_ABI.
15991 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15992 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15993 32-bit, too.
15994 (ix86_cfun_abi): Likewise.
15995 (ix86_maybe_switch_abi): Adjust comment.
15996 (init_cumulative_args): Check for bit-ness in MS_ABI case.
15997 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15998 instead of checking for SYSV_ABI.
15999 (ix86_nsaved_sseregs): Likewise.
16000 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
16001 to 16 bytes.
16002 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
16003 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
16004 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
16005 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
16006 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
16007
34019e28
RG
160082011-03-25 Richard Guenther <rguenther@suse.de>
16009
16010 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
16011 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16012 (verify_gimple): Remove.
16013 * tree-cfg.c (verify_gimple_call): Merge verification
16014 from verify_stmts.
16015 (verify_gimple_phi): Merge verification from verify_stmts.
16016 (verify_gimple_label): New function.
16017 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
16018 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
16019 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
16020 (verify_stmts): Rename to verify_gimple_in_cfg.
16021 (verify_gimple_in_cfg): New function.
16022 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
16023 * tree-ssa.c (verify_ssa): Likewise.
16024 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
16025
605896f5
RG
160262011-03-25 Richard Guenther <rguenther@suse.de>
16027
16028 * passes.c (init_optimization_passes): Add FRE pass after
16029 early SRA.
16030
7baa7c13
BS
160312011-03-25 Bernd Schmidt <bernds@codesourcery.com>
16032 Andrew Stubbs <ams@codesourcery.com>
16033
16034 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
16035 for Cortex-A8.
16036 (arm_movdi_vfp_cortexa8): New pattern.
16037 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
16038 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
16039 instructions when tuning for Cortex-A8. Set attribute "arch".
16040 * config/arm/arm.md: Move include arm-tune.md up a bit.
16041 (define_attr "arch"): Add "onlya8" and "nota8" values.
16042 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
16043
45dbce1b
NF
160442011-03-25 Nathan Froyd <froydnj@codesourcery.com>
16045
4ff08abf 16046 PR bootstrap/48282
45dbce1b
NF
16047 Revert:
16048 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16049
16050 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16051 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16052 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16053 * passes.c (init_optimization_passes): Move
16054 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16055
ac9a30ae
KT
160562011-03-25 Kai Tietz <ktietz@redhat.com>
16057
16058 * c-typeck.c (comptypes_internal): Replace target
16059 hook call of comp_type_attributes by version in tree.c file.
16060 * gimple.c (gimple_types_compatible_p_1): Likewise.
16061 * tree-ssa.c (useless_type_conversion_p): Likewise.
16062 * tree.c (build_type_attribute_qual_variant): Likewise.
16063 (attribute_value_equal): New static helper function.
16064 (comp_type_attributes): New function.
16065 (merge_attributes): Use attribute_value_equal for comparison.
16066 (attribute_list_contained): Likewise.
16067 * tree.h (comp_type_attributes): New prototype.
16068
afdac116
RG
160692011-03-25 Richard Guenther <rguenther@suse.de>
16070
16071 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
16072 of complex types at -O0.
16073 (verify_gimple_assign_binary): Likewise.
16074 (verify_gimple_assign_ternary): Likewise.
16075
ec6165f8
MW
160762011-03-24 Mark Wielaard <mjw@redhat.com>
16077
16078 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
16079 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
16080
2a5ac39a
MW
160812011-03-24 Mark Wielaard <mjw@redhat.com>
16082
16083 PR debug/48041
16084 * dwarf2out.c (output_abbrev_section): Only write table when
16085 abbrev_die_table_in_use > 1.
16086
e533b2a4
RH
160872011-02-24 Richard Henderson <rth@redhat.com>
16088
16089 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
16090 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
16091 (alpha_expand_unaligned_load_words): Use extql.
16092 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
16093 (emit_insxl): Handle all modes for consistency.
16094
0b2a7367
RH
160952011-02-24 Richard Henderson <rth@redhat.com>
16096
16097 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
16098 (alpha_expand_unaligned_load): Likewise.
16099 (alpha_expand_unaligned_store): Likewise.
16100 (alpha_expand_unaligned_load_words): Likewise.
16101 (alpha_expand_unaligned_store_words): Likewise.
16102 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
16103 (alpha_split_lock_test_and_set_12): Likewise.
16104 (print_operand, alpha_fold_builtin_extxx): Likewise.
16105 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
16106 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
16107 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
16108 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
16109 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
16110 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
16111 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
16112 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
16113 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
16114 (extwl, extll, extql): Similarly.
16115 (inswh, inslh, insqh): Similarly.
16116 (mskbl, mskwl, mskll, mskql): Similarly.
16117 (mskwh, msklh, mskqh): Similarly.
16118
315b2bef
RH
161192011-02-24 Richard Henderson <rth@redhat.com>
16120
16121 * config/alpha/alpha.md (attribute isa): Add er, ner.
16122 (attribute enabled): Handle them.
16123 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
16124
67102517
RH
161252011-02-24 Richard Henderson <rth@redhat.com>
16126
16127 * config/alpha/alpha.md (attribute isa): Add vms.
16128 (attribute enabled): Handle it.
16129 (*movsf): Merge *movsf_{nofix,fix,nofp}.
16130 (*movdf): Merge *movdf_{nofix,fix,nofp}.
16131 (*movtf): Rename from *movtf_internal for consistency.
16132 (*movsi): Merge with *movsi_nt_vms.
16133 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
16134 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
16135 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
16136 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
16137
6aba5cb4
RH
161382011-02-24 Richard Henderson <rth@redhat.com>
16139
16140 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
16141 (extendqisi2, extendhisi2): Likewise.
16142 (extendqidi2): Simplify BWX/non-BWX expansions.
16143 (extendhidi2): Similarly.
16144
bdfb351b
RH
161452011-02-24 Richard Henderson <rth@redhat.com>
16146
16147 * config/alpha/alpha.md (attribute isa): New.
16148 (attribute enabled): New.
16149 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
16150 (zero_extendqisi2, zero_extendqidi2): Similarly.
16151 (zero_extendhisi2, zero_extendhidi2): Similarly.
16152 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
16153
6abe71eb
RH
161542011-02-24 Richard Henderson <rth@redhat.com>
16155
16156 * config/alpha/predicates.md (input_operand): Revert last change;
16157 update comment to mention 32-bit VMS rather than Windows.
16158
7114321e
NF
161592011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16160
16161 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16162 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16163 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16164 * passes.c (init_optimization_passes): Move
16165 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16166
c8679567
EB
161672011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16168
16169 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16170
27173058
UB
161712011-03-24 Uros Bizjak <ubizjak@gmail.com>
16172
16173 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16174 correctly.
16175
6f0c9f06
JJ
161762011-03-24 Jakub Jelinek <jakub@redhat.com>
16177
16178 PR debug/48204
16179 * simplify-rtx.c (simplify_const_unary_operation): Call
16180 real_convert when changing mode class with FLOAT_EXTEND.
16181
662666e5
NC
161822011-03-24 Nick Clifton <nickc@redhat.com>
16183
16184 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16185 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16186 * config/rx/rx.c (rx_option_override): Set align_jumps,
16187 align_loops and align_labels if not set by the user.
16188 (rx_align_for_label): New function.
16189 (rx_max_skip_for_label): New function.
16190 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16191 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16192 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16193 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16194 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16195
2b99b2b8
RS
161962011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16197
16198 PR rtl-optimization/48263
16199 * optabs.c (expand_binop_directly): Reinstate convert_modes code
16200 and original commutative_p handling. Use maybe_gen_insn.
16201
ccecd6ea
AK
162022011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16203
16204 * reload.c (find_reloads_subreg_address): Add address_reloaded
16205 parameter and return true there if the full address has been
16206 reloaded.
16207 (find_reloads_toplev): Pass address_reloaded flag.
16208 (find_reloads_address_1): Don't use address_reloaded parameter.
16209
67295642
JL
162102011-03-24 Jeff Law <law@redhat.com>
16211
16212 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16213 unused variable "ann".
16214 (remove_unused_locals): Likewise.
16215
16216 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16217 statement.
16218
16219 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16220 after it is freed.
16221
212aa74f
AK
162222011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16223
16224 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16225 for invalid symbolic addresses.
16226 (s390_secondary_reload): Don't use s390_check_symref_alignment for
16227 larl operands.
16228
fe784e0d
EB
162292011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16230
16231 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16232 the argument in calls to fold_truth_not_expr.
16233
63ee8641
NF
162342011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16235
16236 * tree.c (record_node_allocation_statistics): New function.
16237 (make_node_stat, copy_node_stat, build_string): Call it.
16238 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16239 (build1_stat, build_omp_clause): Likewise.
16240
61be2a1c
RS
162412011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16242
16243 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16244 last commit.
16245
a881aaa7
RG
162462011-03-24 Richard Guenther <rguenther@suse.de>
16247
16248 PR tree-optimization/48271
16249 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16250 blocks that still exist.
16251
dbaa912c
RG
162522011-03-24 Richard Guenther <rguenther@suse.de>
16253
16254 PR tree-optimization/48270
16255 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16256 not free datarefs before ddrs.
16257
1d60cc55
EB
162582011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16259
16260 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16261 from the address built for a reference with variable offset.
16262
c78dd519
UB
162632011-03-24 Uros Bizjak <ubizjak@gmail.com>
16264
16265 PR target/48237
16266 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16267 alternatives that can be handled with movq or movabsq insn.
16268 (*movdf_internal): Disable for !TARGET_64BIT.
16269 (*movdf_internal_nointeger): Ditto.
16270 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16271
b25b9e8f
NF
162722011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16273
16274 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16275 (FUNCTION_ARG_ADVANCE): Likewise.
16276 * tm.texi.in: Change references to them to hook references.
16277 * tm.texi: Regenerate.
c78dd519 16278 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
16279 (default_function_incoming_arg): Likewise.
16280 (default_function_arg_advance): Likewise.
c78dd519 16281 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
16282 (function_arg_advance): Likewise.
16283 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16284
190b2187
RG
162852011-03-24 Richard Guenther <rguenther@suse.de>
16286
16287 PR middle-end/48269
16288 * tree-object-size.c (addr_object_size): Do not double-account
16289 for MEM_REF offsets.
16290
a183b5c7
DN
162912011-03-24 Diego Novillo <dnovillo@google.com>
16292
16293 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 16294 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
16295 (lto_input_data_block): Move from lto-opts.c. Make extern.
16296 Update all users.
16297 (lto_input_string): Rename from input_string. Make extern.
16298 Update all users.
16299 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16300 output_string_with_length.
16301 Output 0 to indicate a non-NULL string. Update all callers to
16302 not emit 0.
16303 (lto_output_string): Rename from output_string. Make extern.
16304 Update all users.
16305 (lto_output_decl_state_streams): Make extern.
16306 (lto_output_decl_state_refs): Make extern.
16307 * lto-streamer.h (lto_input_string): Declare.
16308 (lto_input_data_block): Declare.
16309 (lto_output_string): Declare.
16310 (lto_output_string_with_length): Declare.
16311 (lto_output_decl_state_streams): Declare.
16312 (lto_output_decl_state_refs): Declare.
16313
cfef45c8
RG
163142011-03-24 Richard Guenther <rguenther@suse.de>
16315
16316 PR tree-optimization/46562
16317 * tree.c (build_invariant_address): New function.
16318 * tree.h (build_invariant_address): Declare.
16319 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16320 a renamed function moved ...
16321 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16322 Take valueization callback parameter.
16323 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16324 * gimple-fold.h: New file.
16325 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16326 (ccp_fold, fold_const_aggregate_ref,
16327 fold_ctor_reference, fold_nonarray_ctor_reference,
16328 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16329 get_base_constructor): Move ...
16330 * gimple-fold.c: ... here.
16331 (gimple_fold_stmt_to_constant_1): New function
16332 split out from ccp_fold. Take a valueization callback parameter.
16333 Valueize all operands.
16334 (gimple_fold_stmt_to_constant): New wrapper function.
16335 (fold_const_aggregate_ref_1): New function split out from
16336 fold_const_aggregate_ref. Take a valueization callback parameter.
16337 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16338 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16339 invariant POINTER_PLUS_EXPRs to invariant form.
16340 (vn_valueize): New function.
16341 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16342 * tree-vrp.c (vrp_valueize): New function.
16343 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16344 to fold statements to constants.
16345 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16346 function declarations.
16347 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16348 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16349
5e0a7e40
RS
163502011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16351
16352 * config/h8300/predicates.md (jump_address_operand): Fix register
16353 mode check.
16354
bfe068c3
IR
163552011-03-24 Ira Rosen <ira.rosen@linaro.org>
16356
16357 * doc/invoke.texi (max-stores-to-sink): Document.
16358 * params.h (MAX_STORES_TO_SINK): Define.
16359 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16360 if either vectorization or if-conversion is disabled.
16361 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16362 tree-vect-data-refs.c vect_equal_offsets.
16363 (dr_equal_offsets_p): New function.
16364 (find_data_references_in_bb): Remove static.
16365 * tree-data-ref.h (find_data_references_in_bb): Declare.
16366 (dr_equal_offsets_p): Likewise.
16367 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16368 (vect_drs_dependent_in_basic_block): Update calls to
16369 vect_equal_offsets.
16370 (vect_check_interleaving): Likewise.
16371 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16372 (cond_if_else_store_replacement): Rename to...
16373 (cond_if_else_store_replacement_1): ... this. Change arguments and
16374 documentation.
16375 (cond_if_else_store_replacement): New function.
16376 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16377 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16378
4908b0bf
CLT
163792011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16380
16381 PR target/46934
16382 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16383 to subtract lower bound instead of GEN_INT().
16384
2be478a2
JW
163852011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16386
16387 PR other/48179
16388 PR other/48221
16389 PR other/48234
16390 * doc/extend.texi (Alignment): Move section to match order in TOC.
16391 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16392 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16393
0c617be4
JL
163942011-03-23 Jeff Law <law@redhat.com>
16395
16396 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16397 before removing the edge.
16398
16399 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16400 it may have been freed by redirect_branch_edge or
16401 redirect_edge_succ_nodup.
16402
58da96fe
RG
164032011-03-23 Richard Guenther <rguenther@suse.de>
16404
c78dd519 16405 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
16406 (check_va_list_escapes): Likewise.
16407 (check_all_va_list_escapes): Likewise.
16408
b8beb4d1
RG
164092011-03-23 Richard Guenther <rguenther@suse.de>
16410
16411 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16412 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16413 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16414 (alias.o): Likewise.
16415 (ipa-type-escape.o): Remove.
16416 (ipa-struct-reorg.o): Likewise.
16417 (GTFILES): Remove ipa-struct-reorg.c.
16418 * alias.c: Do not include ipa-type-escape.h.
16419 * tree-ssa-alias.c: Likewise.
16420 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16421 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16422 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16423 and ipa-type-escape passes.
16424 * tree-pass.h (pass_ipa_type_escape): Remove.
16425 (pass_ipa_struct_reorg): Likewise.
16426 * ipa-struct-reorg.h: Remove.
16427 * ipa-struct-reorg.c: Likewise.
16428 * ipa-type-escape.h: Likewise.
16429 * ipa-type-escape.c: Likewise.
16430 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16431 (--param struct-reorg-cold-struct-ratio): Likewise.
16432 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16433 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16434 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16435
f137aa63
AK
164362011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16437
16438 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16439 cpu attribute value.
16440 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16441 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16442 * config/s390/s390.c (processor_flags_table): New constant array.
16443 (s390_handle_arch_option): Remove.
16444 (s390_handle_option): Remove s390_handle_arch_option invocations
16445 and OPT_mwarn_framesize_ handling.
16446 (s390_option_override): Remove s390_handle_arch_option invocation.
16447 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16448 warnings.
16449 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16450 * config/s390/s390.opt (s390_tune, s390_arch)
16451 (march=): Replace s390_arch_option enum and values with
16452 processor_type. Set variable name to s390_arch. Set
16453 initialization value.
16454 (mtune=): Replace s390_arch_option with processor_type. Set
16455 variable name to s390_tune. Set initialization value.
16456
bf90208f
JB
164572011-03-23 Julian Brown <julian@codesourcery.com>
16458
16459 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16460 accesses which are not naturally aligned.
16461
3460fdf3
RS
164622011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16463
16464 PR target/47553
16465 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16466
a5c7d693
RS
164672011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16468
16469 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16470 parameter from "int" to "enum insn_code".
16471 (expand_operand_type): New enum.
16472 (expand_operand): New structure.
16473 (create_expand_operand): New function.
16474 (create_fixed_operand, create_output_operand): Likewise
16475 (create_input_operand, create_convert_operand_to): Likewise.
16476 (create_convert_operand_from, create_address_operand): Likewise.
16477 (create_integer_operand): Likewise.
16478 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16479 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16480 (expand_insn, expand_jump_insn): Likewise.
16481 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16482 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16483 (expand_movstr, expand_builtin___clear_cache): Likewise.
16484 (expand_builtin_lock_release): Likewise.
16485 * explow.c (allocate_dynamic_stack_space): Likewise.
16486 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16487 and use the default handling in that case.
16488 * expmed.c (check_predicate_volatile_ok): Delete.
16489 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16490 (emit_cstore): Likewise.
16491 * expr.c (emit_block_move_via_movmem): Likewise.
16492 (set_storage_via_setmem, expand_assignment): Likewise.
16493 (emit_storent_insn, try_casesi): Likewise.
16494 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16495 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16496 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16497 (expand_twoval_unop, expand_twoval_binop): Likewise.
16498 (expand_unop_direct, emit_indirect_jump): Likewise.
16499 (emit_conditional_move, vector_compare_rtx): Likewise.
16500 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16501 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16502 (expand_sync_lock_test_and_set): Likewise.
16503 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16504 (emit_unop_insn): Likewise.
16505 (expand_copysign_absneg): Change icode to an insn_code.
16506 (create_convert_operand_from_type): New function.
16507 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16508 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16509 (expand_insn, expand_jump_insn): Likewise.
16510 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16511 than const_int_operand for operand 2.
16512
78fadbab
AK
165132011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16514
16515 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16516 if possible.
16517
5f02387d
NF
165182011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16519
16520 * emit-rtl.c (emit_pattern_before_noloc): New function.
16521 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16522 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16523 (emit_pattern_after_noloc): New function.
16524 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16525 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16526
fdf3e18a
NF
165272011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16528
16529 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16530 (__ffsDI2): Likewise.
16531
42d085c1
RH
165322011-03-22 Richard Henderson <rth@redhat.com>
16533
16534 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16535 of !TARGET_ABI_OPEN_VMS.
16536 (alpha_trampoline_init, alpha_start_function): Likewise.
16537 (alpha_expand_epilogue, alpha_file_start): Likewise.
16538 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16539 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16540 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16541 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16542 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16543
cabbe12a
JM
165442011-03-22 Joseph Myers <joseph@codesourcery.com>
16545
16546 * config/s390/s390-opts.h: New.
16547 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16548 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16549 s390_stack_guard): Remove.
16550 (s390_handle_arch_option): Return void. Take enum
16551 s390_arch_option value instead of string and searching array.
16552 (s390_handle_option): Don't assert that global structures are in
16553 use. Access variables via opts pointer. Use error_at. Don't use
16554 sscanf for -mstack-guard= or -mstack-size=. Update call to
16555 s390_handle_arch_option.
16556 (s390_option_override): Update call to s390_handle_arch_option.
16557 (s390_emit_prologue): Use %d format for s390_stack_size in
16558 diagnostic. Use %wd for HOST_WIDE_INT.
16559 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16560 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16561 * config/s390/s390.opt (config/s390/s390-opts.h): New
16562 HeaderInclude entry.
16563 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16564 s390_arch_flags, s390_warn_framesize): New Variable entries.
16565 (s390_arch_option): New Enum and EnumValue entries.
16566 (march=): Use Enum instead of Var.
16567 (mstack-guard=, mstack-size=): Use UInteger and Var.
16568 (mtune=): Use Enum.
16569
05b12036
JM
165702011-03-22 Joseph Myers <joseph@codesourcery.com>
16571
16572 * config/score/score.c (score_handle_option): Don't assert that
16573 global structures are in use. Access target_flags via opts
16574 pointer. Use value of -march= option to determine target_flags
16575 settings.
16576 * config/score/score.opt (march=): Use Enum.
16577 (score_arch): New Enum and EnumValue entries.
16578
dd51e35a
JM
165792011-03-22 Joseph Myers <joseph@codesourcery.com>
16580
16581 * config/mep/mep.c (option_mtiny_specified): Remove.
16582 (mep_option_override): Move register handling for -mivc2 from
16583 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16584 instead of option_mtiny_specified.
16585 (mep_handle_option): Access target_flags via opts pointer. Don't
16586 assert that global structures are in use. Defer part of -mivc2
16587 handling and move it to mep_option_override.
16588 * config/mep/mep.opt (IVC2): New Mask entry.
16589 (mivc2): Use Var and Defer instead of Mask.
16590
4a8d3d91
JM
165912011-03-22 Joseph Myers <joseph@codesourcery.com>
16592
16593 * config/v850/v850-opts.h: New.
16594 * config/v850/v850.c (small_memory): Replace with
16595 small_memory_physical_max array. Make that array static const.
16596 (v850_handle_memory_option): Take integer value of argument. Take
16597 gcc_options pointer, option text and location. Return void.
16598 Update for changes to small memory structures.
16599 (v850_handle_option): Access target_flags via opts pointer. Don't
16600 assert that global structures are in use. Update calls to
16601 v850_handle_memory_option.
c78dd519
UB
16602 (v850_encode_data_area): Update references to small memory settings.
16603 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
16604 (enum small_memory_type): Move to v850-opts.h.
16605 * config/v850/v850.opt (config/v850/v850-opts.h): New
16606 HeaderInclude entry.
16607 (small_memory_max): New Variable entry.
16608 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16609 (mtda, mzda): Likewise.
16610
117fdbfa
JM
166112011-03-22 Joseph Myers <joseph@codesourcery.com>
16612
16613 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16614 pointer. Don't assert that global structures are in use.
16615
d715091c
JM
166162011-03-22 Joseph Myers <joseph@codesourcery.com>
16617
16618 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16619 via opts pointer. Don't assert that global structures are in use.
16620
1bb721dc
JM
166212011-03-22 Joseph Myers <joseph@codesourcery.com>
16622
16623 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16624 (munix=93): Use Var.
16625 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16626 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16627 * config/pa/pa-opts.h: New.
16628 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16629 (pa_handle_option): Don't assert that global structures are in
16630 use. Access target_flags via opts pointer. Don't handle
16631 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16632 OPT_munix_98 here.
16633 (pa_option_override): Handle deferred OPT_mfixed_range_.
16634
cd8d8754
JM
166352011-03-22 Joseph Myers <joseph@codesourcery.com>
16636
16637 * config/mn10300/mn10300-opts.h: New.
16638 * config/mn10300/mn10300.c (mn10300_processor,
16639 mn10300_tune_string): Remove.
16640 (mn10300_handle_option): Don't assert that global structures are
16641 in use. Access mn10300_processor via opts pointer. Don't handle
16642 OPT_mtune_ here.
16643 * config/mn10300/mn10300.h (enum processor_type): Move to
16644 mn10300-opts.h.
16645 (mn10300_processor): Remove.
16646 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16647 HeaderInclude entry.
16648 (mn10300_processor): New Variable entry.
16649 (mtune=): Use Var.
16650
24e6e6b1
JM
166512011-03-22 Joseph Myers <joseph@codesourcery.com>
16652
16653 * config/microblaze/microblaze.c: Don't include opts.h.
16654 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16655 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16656 (mno-clearbss): Use Var and Warn.
16657
8a784afb
JM
166582011-03-22 Joseph Myers <joseph@codesourcery.com>
16659
16660 * config/m32r/m32r-opts.h: New.
16661 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16662 (m32r_handle_option): Don't assert that global structures are in
16663 use. Access target_flags and m32r_cache_flush_func via opts
16664 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16665 OPT_mno_flush_trap here.
16666 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16667 include of m32r-opts.h.
16668 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16669 HeaderInclude entry.
16670 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16671 (mmodel=): Use Enum and Var.
16672 (m32r_model): New Enum and EnumValue entries.
16673 (mno-flush-trap): Use Var.
16674 (msdata=): Use Enum and Var.
16675 (m32r_sdata): New Enum and EnumValue entries.
16676
bbfc9a8c
JM
166772011-03-22 Joseph Myers <joseph@codesourcery.com>
16678
16679 * config/m32c/m32c.c: Don't include opts.h.
16680 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16681 m32c_handle_option): Remove.
16682 (m32c_option_override): Check global_options_set.x_target_memregs
16683 instead of target_memregs_set.
16684 * config/m32c/m32c.h (target_memregs): Remove.
16685 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16686 variable.
16687
e24b8335
JM
166882011-03-22 Joseph Myers <joseph@codesourcery.com>
16689
16690 * config/iq2000/iq2000-opts.h: New.
16691 * config/iq2000/iq2000.c: Don't include opts.h.
16692 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 16693 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
16694 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16695 HeaderInclude entry.
16696 (iq2000_tune): New Variable entry.
16697 (march=): Add comment. Use Enum.
16698 (iq2000_arch): New Enum and EnumValue entries.
16699 (mcpu=): Use Enum and Var.
16700 (iq2000_tune): New Enum and EnumValue entries.
16701
e6cc0c98
JM
167022011-03-22 Joseph Myers <joseph@codesourcery.com>
16703
16704 * config/ia64/ia64-opts.h: New.
16705 * config/ia64/ia64.c (ia64_tune): Remove.
16706 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16707 here. Use error_at.
16708 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16709 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16710 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16711 HeaderInclude entry.
16712 (ia64_tune): New Variable entry.
16713 (mfixed-range=): Use Defer and Var.
16714 (mtune=): Use Enum and Var.
16715 (ia64_tune): New Enum and EnumValue entries.
16716
db25893c
JM
167172011-03-22 Joseph Myers <joseph@codesourcery.com>
16718
16719 * config/frv/frv-opts.h: New.
16720 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16721 frv-opts.h.
16722 (frv_cpu_type): Remove.
16723 * config/frv/frv.c: Don't include opts.h.
16724 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 16725 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
16726 (frv_cpu_type): New Variable entry.
16727 (frv_cpu): New Enum and EnumValue entries.
16728
6c223f5d
JM
167292011-03-22 Joseph Myers <joseph@codesourcery.com>
16730
16731 * config/cris/cris.c (cris_handle_option): Access target_flags via
16732 opts pointer. Don't assert that global structures are in use.
16733 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16734 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16735
bbd399cf
JM
167362011-03-22 Joseph Myers <joseph@codesourcery.com>
16737
16738 * config/bfin/bfin-opts.h: New.
16739 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16740 bfin_si_revision, bfin_workarounds): Remove.
16741 (bfin_cpus): Make static const.
16742 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16743 not bfin_lib_id_given.
16744 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16745 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 16746 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
16747 * config/bfin/bfin.h: Include bfin-opts.h.
16748 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16749 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16750 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16751 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16752 entries.
16753
5e1b4d5a
JM
167542011-03-22 Joseph Myers <joseph@codesourcery.com>
16755
16756 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16757 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16758 or -msoft-float here.
16759 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16760 -msoft-float and -mhard-float.
c78dd519 16761 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
16762 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16763 msoft-float.
16764 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16765 -msoft-float.
16766 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16767 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16768 not mhard-float.
16769 (LIBGCC_SPEC): Don't handle -msoft-float.
16770 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16771 -mhard-float.
16772 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16773 msoft-float.
16774 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16775 -mfloat-abi=*, not -msoft-float and -mhard-float.
16776 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16777 -msoft-float.
16778 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16779 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16780 mhard-float and msoft-float.
16781 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16782 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16783 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16784 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16785 mhard-float.
16786 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16787 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16788 msoft-float.
16789 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16790 not mhard-float.
16791 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16792 not msoft-float.
16793
800d1de1
RH
167942011-03-22 Richard Henderson <rth@redhat.com>
16795
16796 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16797 TARGET_ABI_WINDOWS_NT.
16798 (alpha_output_function_end_prologue): Likewise.
16799 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16800 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16801 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16802 (trap, *movsi_nt_vms): Likewise.
16803 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16804 (*tablejump_osf_nt_internal): Remove.
16805 * config/alpha/predicates.md (input_operand): Only test Pmode.
16806
c59ddd2b
JM
168072011-03-22 Joseph Myers <joseph@codesourcery.com>
16808
16809 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16810 via opts pointer. Use error_at. Don't assert that global
16811 structures are in use.
16812
1333f97f
JM
168132011-03-22 Joseph Myers <joseph@codesourcery.com>
16814
16815 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16816 (ix86_handle_option): Access ix86_isa_flags and
16817 ix86_isa_flags_explicit via opts pointer. Don't assert that
16818 global structures are in use.
16819 (ix86_function_specific_save, ix86_function_specific_restore):
16820 Update ix86_isa_flags_explicit field name.
c78dd519 16821 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
16822 (ix86_isa_flags_explicit): Rename TargetSave entry to
16823 x_ix86_isa_flags_explicit.
16824
75db85d8
RH
168252011-03-22 Richard Henderson <rth@redhat.com>
16826
16827 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16828 (alpha_option_override, direct_return): Likewise.
16829 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16830 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16831 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16832 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16833 (alpha_expand_epilogue, alpha_end_function): Likewise.
16834 (alpha_init_libfuncs): Likewise.
16835 (struct machine_function): Remove unicosmk members.
16836 (print_operand) ['t']: Remove.
16837 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16838 unicosmk_output_module_name, unicosmk_output_common,
16839 current_section_align, unicosmk_output_text_section_asm_op,
16840 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16841 unicosmk_section_type_flags, unicosmk_unique_section,
16842 unicosmk_asm_named_section, unicosmk_insert_attributes,
16843 unicosmk_output_align, unicosmk_defer_case_vector,
16844 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16845 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16846 unicosmk_output_ssib, unicosmk_add_call_info_word,
16847 unicosmk_extern_head, unicosmk_output_default_externs,
16848 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16849 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16850 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16851 * config/alpha/alpha-protos.h: Update.
16852 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16853 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16854 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16855 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16856 (*mulsi_se, mulvsi3): Likewise.
16857 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16858 (*divmodsi_internal, call, call_value, realign): Likewise.
16859 (moddi3, umoddi3): Likewise; remove duplicate expander.
16860 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16861 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16862 (*movdi_nofix): Remove r/U alternative.
16863 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16864 * config/alpha/constraints.md ("U"): Remove.
16865 * config/alpha/predicates.md (call_operand"): Don't test
16866 TARGET_ABI_UNICOSMK.
16867
96e45421
JM
168682011-03-22 Joseph Myers <joseph@codesourcery.com>
16869
16870 * target.def (handle_option): Take gcc_options and
16871 cl_decoded_option pointers and location_t.
16872 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16873 * doc/tm.texi: Regenerate.
16874 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16875 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16876 * lto-opts.c (lto_reissue_options): Generate option structure for
16877 targetm.handle_option call.
16878 * opts.c (target_handle_option): Update call to
16879 targetm.handle_option. Remove assertions about values now passed
16880 down to hook.
16881 * targhooks.c (default_target_handle_option): New.
16882 * targhooks.h (default_target_handle_option): Declare.
16883 * config/alpha/alpha.c: Include opts.h.
16884 (alpha_handle_option): Update to new hook interface.
16885 * config/arm/arm.c: Include opts.h.
16886 (arm_handle_option): Update to new hook interface.
16887 * config/arm/t-arm (arm.o): Update dependencies.
16888 * config/bfin/bfin.c: Include opts.h.
16889 (bfin_handle_option): Update to new hook interface.
16890 * config/cris/cris.c: Include opts.h.
16891 (cris_handle_option): Update to new hook interface.
16892 * config/frv/frv.c: Include opts.h.
16893 (frv_handle_option): Update to new hook interface.
16894 * config/i386/i386.c: Include opts.h.
16895 (ix86_handle_option): Update to new hook interface.
16896 (ix86_valid_target_attribute_inner_p): Generate option structure
16897 for call to ix86_handle_option.
16898 * config/i386/t-i386 (i386.o): Update dependencies.
16899 * config/ia64/ia64.c: Include opts.h.
16900 (ia64_handle_option): Update to new hook interface.
16901 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16902 * config/iq2000/iq2000.c: Include opts.h.
16903 (iq2000_handle_option): Update to new hook interface.
16904 * config/m32c/m32c.c: Include opts.h.
16905 (m32c_handle_option): Update to new hook interface.
16906 * config/m32r/m32r.c: Include opts.h.
16907 (m32r_handle_option): Update to new hook interface.
16908 * config/m68k/m68k.c: Include opts.h.
16909 (m68k_handle_option): Update to new hook interface.
16910 * config/mep/mep.c: Include opts.h.
16911 (mep_handle_option): Update to new hook interface.
16912 * config/microblaze/microblaze.c: Include opts.h.
16913 (microblaze_handle_option): Update to new hook interface.
16914 * config/mips/mips.c: Include opts.h.
16915 (mips_handle_option): Update to new hook interface.
16916 * config/mn10300/mn10300.c: Include opts.h.
16917 (mn10300_handle_option): Update to new hook interface.
16918 * config/pa/pa.c: Include opts.h.
16919 (pa_handle_option): Update to new hook interface.
16920 * config/pdp11/pdp11.c: Include opts.h.
16921 (pdp11_handle_option): Update to new hook interface.
16922 * config/rs6000/rs6000.c: Include opts.h.
16923 (rs6000_handle_option): Update to new hook interface.
16924 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16925 * config/rx/rx.c: Include opts.h.
16926 (rx_handle_option): Update to new hook interface.
16927 * config/s390/s390.c: Include opts.h.
16928 (s390_handle_option): Update to new hook interface.
16929 * config/score/score.c: Include opts.h.
16930 (score_handle_option): Update to new hook interface.
16931 * config/sh/sh.c: Include opts.h.
16932 (sh_handle_option): Update to new hook interface.
16933 * config/sparc/sparc.c: Include opts.h.
16934 (sparc_handle_option): Update to new hook interface.
16935 * config/v850/v850.c: Include opts.h.
16936 (v850_handle_option): Update to new hook interface.
16937
66017846
JM
169382011-03-22 Joseph Myers <joseph@codesourcery.com>
16939
16940 * gcc.c (driver_unknown_option_callback): Only permit and save
16941 unknown -Wno- options.
16942 (driver_wrong_lang_callback): Save options directly instead of via
16943 driver_unknown_option_callback.
16944
e8b97ccd
EB
169452011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16946
16947 * combine.c (simplify_set): Try harder to find the best CC mode when
16948 simplifying a nested COMPARE on the RHS.
16949
ebb9f8b0
JM
169502011-03-22 Joseph Myers <joseph@codesourcery.com>
16951
16952 * config/alpha/gnu.h: Remove.
16953 * config/arc: Remove directory.
16954 * config/arm/netbsd.h: Remove.
16955 * config/arm/t-pe: Remove.
16956 * config/crx: Remove directory.
16957 * config/i386/netbsd.h: Remove.
16958 * config/m68hc11: Remove directory.
16959 * config/m68k/uclinux-oldabi.h: Remove.
16960 * config/mcore/mcore-pe.h: Remove.
16961 * config/mcore/t-mcore-pe: Remove.
16962 * config/netbsd-aout.h: Remove.
16963 * config/rs6000/gnu.h: Remove.
16964 * config/sh/sh-symbian.h: Remove.
16965 * config/sh/symbian-base.c: Remove.
16966 * config/sh/symbian-c.c: Remove.
16967 * config/sh/symbian-cxx.c: Remove.
16968 * config/sh/symbian-post.h: Remove.
16969 * config/sh/symbian-pre.h: Remove.
16970 * config/sh/t-symbian: Remove.
16971 * config/svr3.h: Remove.
16972 * config/vax/netbsd.h: Remove.
16973 * config.build: Don't handle i[34567]86-*-pe.
16974 * config.gcc: Remove handling of deprecations for most deprecated
16975 targets.
16976 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16977 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16978 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16979 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16980 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16981 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16982 Remove cases.
16983 * config.host: Don't handle i[34567]86-*-pe.
16984 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16985 (ASM_SPEC32): Don't handle -mcall-gnu.
16986 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16987 -mcall-gnu.
16988 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16989 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16990 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16991 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16992 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16993 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16994 conditional on SYMBIAN.
16995 * configure.ac: Don't handle powerpc*-*-gnu*.
16996 * configure: Regenerate.
16997 * doc/extend.texi (interrupt attribute): Don't mention CRX.
16998 * doc/install-old.texi (m6811, m6812): Don't mention.
16999 * doc/install.texi (arc-*-elf*): Don't document multilib option.
17000 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
17001 (m68k-uclinuxoldabi): Don't mention.
17002 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
17003 Remove.
17004 (-mcall-gnu): Remove.
17005 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
17006 families): Remove constraint documentation.
17007
999a7d80
MS
170082011-03-22 Marius Strobl <marius@FreeBSD.org>
17009
17010 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
17011 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
17012 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
17013
45540bcf
MM
170142011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17015
17016 PR target/48226
17017 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
17018 vector when peeking at the next token for vector, don't expand the
17019 keywords.
17020
980a0ff4
GJL
170212011-03-21 Georg-Johann Lay <avr@gjlay.de>
17022
17023 * config/avr/avr-protos.h (expand_epilogue): Change prototype
17024 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
17025 * config/avr/avr.c (init_cumulative_args)
17026 (avr_function_arg_advance): Use it.
17027 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
17028 sibcall epilogues.
17029 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
17030 (avr_function_ok_for_sibcall): ...this new function.
17031 (avr_lookup_function_attribute1): New static Function.
17032 (avr_naked_function_p, interrupt_function_p)
17033 (signal_function_p, avr_OS_task_function_p)
17034 (avr_OS_main_function_p): Use it.
17035 * config/avr/avr.md ("sibcall", "sibcall_value")
17036 ("sibcall_epilogue"): New expander.
17037 ("*call_insn", "*call_value_insn"): New insn.
17038 ("call_insn", "call_value_insn"): Remove
17039 ("call", "call_value", "epilogue"): Change expander to handle
17040 sibling calls.
17041
49168734
NC
170422011-03-21 Nick Clifton <nickc@redhat.com>
17043
17044 * doc/invoke.texi (Overall Options): Move closing brace to end of
17045 options list.
17046 (Optimization Options): Add missing @gol.
17047 (Directory Options): Likewise.
17048 (i386 and x86-64 Options): Likewise.
17049 (RS6000 and PowerPC Options): Likewise.
17050 (i386 and x86-64 Windows Options): Likewise.
17051 (V850 Options): Add text missing from descriptions.
17052
bdfe906f
RH
170532011-03-22 Richard Henderson <rth@redhat.com>
17054
17055 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
17056 (avr_incoming_return_addr_rtx): New.
17057 (emit_push_byte): New.
17058 (expand_prologue): Use it. Remove incorrect dwarf annotation for
17059 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
17060 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
17061 (emit_pop_byte): New.
17062 (expand_epilogue): Use it. Pop frame pointer by bytes.
17063 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
17064 (INCOMING_RETURN_ADDR_RTX): New.
17065 (INCOMING_FRAME_SP_OFFSET): New.
17066 (ARG_POINTER_CFA_OFFSET): New.
17067 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
17068 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
17069 (pophi): Remove.
17070
d090a5aa
RH
17071 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
17072
fdf3e18a
NF
170732011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17074
17075 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
17076 (FUNCTION_ARG_ADVANCE): Likewise.
17077 * tm.texi.in: Change references to them to hook references.
17078 * tm.texi: Regenerate.
17079 * targhooks.c (default_function_arg): Eliminate check for target
17080 macro.
17081 (default_function_incoming_arg): Likewise.
17082 (default_function_arg_advance): Likewise.
c78dd519 17083 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
17084 (function_arg_advance): Likewise.
17085 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
17086
009d3fcf
NF
170872011-03-22 Nathan Froyd <froydnj@codesourcery.com>
17088
17089 * tree.c (build_call_1): New function.
17090 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
17091
7bec30e1
RG
170922011-03-22 Richard Guenther <rguenther@suse.de>
17093
17094 PR tree-optimization/48228
17095 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
17096 for single-arg PHIs.
17097
0b7e851b
AB
170982011-03-22 Andrey Belevantsev <abel@ispras.ru>
17099
17100 PR rtl-optimization/48143
17101 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
17102 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
17103 sse2_cvtps2pd): Likewise.
17104
d89afca5
AK
171052011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17106
17107 * recog.c (canonicalize_change_group): Use validate_unshare_change.
17108
f471fe72
RG
171092011-03-22 Richard Guenther <rguenther@suse.de>
17110
17111 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
17112 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
17113 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
17114 and REALIGN_LOAD_EXPR.
17115 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
17116 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
17117 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
17118 DOT_PROD_EXPR case ...
17119 (expand_expr_real_2): ... here.
17120 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
17121 and REALIGN_LOAD_EXPR.
17122 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
17123 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
17124 (vect_create_epilog_for_reduction): Likewise.
17125 (vectorizable_reduction): Likewise.
17126 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
17127 * tree-vect-stmts.c (vectorizable_load): Likewise.
17128
f2f81d57
EB
171292011-03-22 Eric Botcazou <ebotcazou@adacore.com>
17130
17131 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
17132
ab081dd6
AK
171332011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17134
17135 * config/s390/s390.c (s390_delegitimize_address): Fix offset
17136 handling for PLTOFF/GOTOFF.
17137
6fd5332b
NC
171382011-03-22 Nick Clifton <nickc@redhat.com>
17139
17140 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
17141 trailing backslash from the end of the macro definition.
17142
01841ac0
AK
171432011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17144
17145 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
17146 and PLT unspecs.
17147
2ef6ce06
RS
171482011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
17149
17150 * expr.h (prepare_operand): Move to...
17151 * optabs.h (prepare_operand): ...here and change the insn code
17152 parameter from "int" to "enum insn_code".
17153 (insn_operand_matches): Declare.
17154 * expr.c (init_expr_target): Use insn_operand_matches.
17155 (compress_float_constant): Likewise.
17156 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
17157 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
17158 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
17159 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17160 Likewise.
2ef6ce06
RS
17161 (gen_cond_trap): Likewise.
17162 (prepare_operand): Likewise. Change icode to an insn_code.
17163 (insn_operand_matches): New function.
17164 * reload.c (find_reloads_address_1): Use insn_operand_matches.
17165 * reload1.c (gen_reload): Likewise.
17166 * targhooks.c (default_secondary_reload): Likewise.
17167
9e43ad68
UB
171682011-03-21 Uros Bizjak <ubizjak@gmail.com>
17169
9a96da32
UB
17170 * config/alpha/alpha.md (unspec): New define_c_enum.
17171 (unspecv): Ditto.
17172
171732011-03-21 Uros Bizjak <ubizjak@gmail.com>
17174
17175 PR debug/48214
9e43ad68
UB
17176 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17177 between a call and its CALL_ARG_LOCATION note.
17178
31408f60
EB
171792011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17180
17181 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17182
171832011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
17184
17185 PR c/42544
17186 PR c/48197
17187 * c-common.c (shorten_compare): If primopN is first sign-extended
17188 to opN and then zero-extended to result type, set primopN to opN.
17189
9dfd55f5
DJ
171902011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
17191
17192 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17193 for barrier handlers.
17194
f3c33d9d
MM
171952011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17196
17197 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17198 UNSPEC constants to be in the unspec enumeration, and redefine
17199 all UNSPECV constants to be in the unspecv enumeration, so that
17200 dumps print which unspec/unspec_volatile this is.
17201 * config/rs6000/vector.md (UNSPEC_*): Ditto.
17202 * config/rs6000/paired.md (UNSPEC_*): Ditto.
17203 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17204 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17205 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17206
17207 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17208 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17209 UNSPECV_LWSYNC, since these are used as unspec_volatile.
17210 * config/rs6000/sync.md (isync, lwsync): Ditto.
17211
ac43f774
RG
172122011-03-21 Richard Guenther <rguenther@suse.de>
17213
17214 * params.def (lto-min-partition): Fix typo.
17215
411cdbd8
RG
172162011-03-21 Richard Guenther <rguenther@suse.de>
17217
17218 PR c/47939
17219 * c-decl.c (grokdeclarator): Drop to the main variant only
17220 for array types. Drop flag_gen_aux_info check.
17221
1cd9e416
RG
172222011-03-21 Richard Guenther <rguenther@suse.de>
17223
17224 PR translation/47911
17225 * params.def (lto-partitions): Fix typo.
17226 (lto-min-partition): Fix wording.
17227
ada5ad67
AT
172282011-03-21 Andreas Tobler <andreast@fgznet.ch>
17229
17230 * config/rs6000/t-freebsd: Remove duplication from file.
17231
f9613c9a
RG
172322011-03-21 Richard Guenther <rguenther@suse.de>
17233
17234 PR middle-end/47661
17235 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17236
9bfbc1eb
RG
172372011-03-21 Richard Guenther <rguenther@suse.de>
17238
17239 PR lto/48210
17240 * params.def (lto-partitions): Require at least 1 partition.
17241
a2268084
RO
172422011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17243
17244 * gthr-solaris.h: Remove.
17245 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17246 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17247 (LIB_SPEC): Likewise.
17248 * config/sol2.opt (threads): Remove.
9e43ad68 17249 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
17250 (sparc*-*-solaris2*): Likewise.
17251 * configure.ac (enable_threads): Enable solaris support.
17252 * configure: Regenerate.
9e43ad68 17253 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
17254 * doc/install.texi (Configuration, --enable-threads=lib): Remove
17255 solaris.
17256
c43d9a1b
RO
172572011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17258
17259 * config.gcc: Obsolete *-*-solaris2.8*.
17260 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17261
084239f4
RO
172622011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17263
17264 PR bootstrap/48135
17265 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17266 reference. Solaris 8 perl works.
17267
64cadbe7
RO
172682011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17269
17270 PR bootstrap/48135
17271 * doc/install.texi (Prerequisites): Move jar etc. up.
17272 Explain support library version requirements.
17273
eb975109
RO
172742011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17275
17276 PR bootstrap/48135
17277 * doc/install.texi (Prerequisites): Move Perl to build
17278 requirements. Always necessary on Solaris 2 with Sun ld.
17279
8a509ffd
RO
172802011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17281
17282 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17283 binutils 2.21.
17284 (Specific, i?86-*-solaris2.[89]): Likewise.
17285 (Specific, i?86-*-solaris2.10): Likewise.
17286 (Specific, mips-sgi-irix6): Likewise.
17287 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17288 Update for binutils 2.21.
17289
8fbc58a1
RO
172902011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17291
17292 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17293 Allow -fuse-linker-plugin for non-default plugin linker.
17294 * configure: Regenerate.
17295
7e84ad0b
NP
172962011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17297
17298 PR bootstrap/48167
17299 * gengtype.c (files_rules): Added rule for cp/parser.h.
17300
2f36e14b
JJ
173012011-03-21 Jakub Jelinek <jakub@redhat.com>
17302
17303 PR target/48213
17304 * config/s390/s390.c (s390_delegitimize_address): Don't call
17305 lowpart_subreg if orig_x has BLKmode.
17306
62d784f7
KT
173072011-03-21 Kai Tietz <ktietz@redhat.com>
17308
17309 PR target/12171
9e43ad68
UB
17310 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17311 * tree.h (attribute_spec): Add new member affects_type_identity.
17312 * attribs.c (empty_attribute_table): Adjust attribute_spec
17313 initializers.
62d784f7
KT
17314 * config/alpha/alpha.c: Likewise.
17315 * config/arc/arc.c: Likewise.
17316 * config/arm/arm.c: Likewise.
17317 * config/avr/avr.c: Likewise.
17318 * config/bfin/bfin.c: Likewise.
17319 * config/crx/crx.c: Likewise.
17320 * config/darwin.h: Likewise.
17321 * config/h8300/h8300.c: Likewise.
17322 * config/i386/cygming.h: Likewise.
17323 * config/i386/i386.c: Likewise.
17324 * config/ia64/ia64.c: Likewise.
17325 * config/m32c/m32c.c: Likewise.
17326 * config/m32r/m32r.c: Likewise.
17327 * config/m68hc11/m68hc11.c: Likewise.
17328 * config/m68k/m68k.c: Likewise.
17329 * config/mcore/mcore.c: Likewise.
17330 * config/mep/mep.c: Likewise.
17331 * config/microblaze/microblaze.c: Likewise.
17332 * config/mips/mips.c: Likewise.
17333 * config/rs6000/rs6000.c: Likewise.
17334 * config/rx/rx.c: Likewise.
17335 * config/sh/sh.c: Likewise.
17336 * config/sol2.h: Likewise.
17337 * config/sparc/sparc.c: Likewise.
17338 * config/spu/spu.c: Likewise.
17339 * config/stormy16/stormy16.c: Likewise.
17340 * config/v850/v850.c: Likewise.
17341
54833ec0
CLT
173422011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17343
17344 * simplify-rtx.c (simplify_binary_operation_1): Handle
17345 (xor (and A B) C) case when B and C are both constants.
17346
14a41392
MX
173472011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17348
17349 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17350
806c3492
EB
173512011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17352
17353 PR bootstrap/48168
17354 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17355
65e0a0f3
JJ
173562011-03-20 Jakub Jelinek <jakub@redhat.com>
17357
17358 PR rtl-optimization/48156
17359 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17360 assume df and df_lr are not NULL.
17361
b6a75dda
RR
173622011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17363
17364 PR debug/48023
17365 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17366 between a call and its CALL_ARG_LOCATION note.
17367
5969b52d
KK
173682011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17369
17370 PR debug/48178
17371 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17372 between a call and its corresponding CALL_ARG_LOCATION note.
17373
f773c2bd
AS
173742011-03-19 Anatoly Sokolov <aesok@post.ru>
17375
17376 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17377 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17378 * haifa-sched.c (setup_ref_regs): Ditto.
17379 * caller-save.c (add_used_regs_1): Ditto.
17380 * dse.c (look_for_hardregs): Ditto.
17381 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17382 * sched-rgn.c (check_live_1): Ditto.
17383
8bf872f9
JM
173842011-03-18 Joseph Myers <joseph@codesourcery.com>
17385
17386 * c-decl.c (diagnose_mismatched_decls): Give an error for
17387 redefining a typedef with variably modified type.
17388
ff8e2159
JM
173892011-03-18 Joseph Myers <joseph@codesourcery.com>
17390
17391 * c-decl.c (grokfield): Don't allow typedefs for structures or
17392 unions with no tag by default.
17393 * doc/extend.texi (Unnamed Fields): Update.
17394
16cc4440
UB
173952011-03-18 Uros Bizjak <ubizjak@gmail.com>
17396
17397 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17398 Rewrite using indirect functions.
17399 (lwp_slwpcb): Ditto.
17400 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17401 (avx_vinsertf128<mode>): Ditto.
17402
e101e12e
AK
174032011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17404
17405 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17406 unspecs.
17407
4627c7fb
AK
174082011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17409
17410 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 17411 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 17412
2d36b47f
MK
174132011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17414
17415 PR rtl-optimization/48170
17416 * gcse.c (hoist_code): Remove bogus asserts.
17417
2a3d7659
JL
174182011-03-18 Georg-Johann Lay <avr@gjlay.de>
17419
17420 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17421 computation for prologue/epilogue.
17422
34c3ef05
RO
174232011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17424
17425 * Makefile.in (check-consistency): Remove.
17426
81f2b976
JJ
174272011-03-18 Jakub Jelinek <jakub@redhat.com>
17428
17429 PR debug/48176
17430 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17431 arange_table_in_use is 0, but either text_section_used or
17432 cold_text_section_used is true. Don't call it if
17433 !info_section_emitted.
17434
68fd7765
AS
174352011-03-18 Anatoly Sokolov <aesok@post.ru>
17436
17437 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17438 FUNCTION_VALUE_REGNO_P): Remove.
17439 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17440 Remove.
17441 * config/avr/avr.c (avr_ret_register): Make static inline.
17442 (avr_function_value_regno_p): New function.
17443 (avr_libcall_value): Make static. Add 'func' argument.
17444 (avr_function_value): Make static. Rename 'func' argument to
17445 'fn_decl_or_type', forward it to avr_libcall_value. Call
17446 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 17447 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 17448
b4ef8aac
JM
174492011-03-18 Jason Merrill <jason@redhat.com>
17450
17451 PR c++/23372
17452 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17453
09a52fc3
RG
174542011-03-18 Richard Guenther <rguenther@suse.de>
17455
17456 * doc/install.texi (--enable-gold): Remove.
17457 (--with-plugin-ld): Document.
17458 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17459
2a3d7659 174602011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
17461
17462 PR middle-end/47790
17463 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17464 again after expansion changes.
17465
2abbb0fe
CLT
174662011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17467
17468 * combine.c (try_combine): Do simplification only call of
17469 subst() on i2 even when i1 is present. Update comments.
17470
2efd0aa6
KK
174712011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17472
17473 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17474 and UNSPEC_PCREL_SYMOFF.
17475
30a49b23
AK
174762011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17477
17478 * config/s390/s390.md: Use define_c_enum for the unspec constant
17479 definitions.
17480
419e1853
JJ
174812011-03-18 Richard Henderson <rth@redhat.com>
17482 Jakub Jelinek <jakub@redhat.com>
17483
17484 PR bootstrap/48161
17485 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17486 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17487
37875856
L
174882011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17489
17490 PR middle-end/47725
17491 * combine.c (cant_combine_insn_p): Don't check zero/sign
17492 extended hard registers.
17493
76069764
L
174942011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17495
17496 PR middle-end/47725
17497 * combine.c (cant_combine_insn_p): Check zero/sign extended
17498 hard registers.
17499
24da2019
AS
175002011-03-17 Anatoly Sokolov <aesok@post.ru>
17501
17502 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17503 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17504 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17505 Change return type to bool.
17506 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17507
a82ff31f
JJ
175082011-03-17 Jakub Jelinek <jakub@redhat.com>
17509
8b29c87a
JJ
17510 PR debug/48163
17511 * var-tracking.c (prepare_call_arguments): If CALL target
17512 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17513 pc instead of looking it up using cselib_lookup and use
17514 Pmode for it if x has VOIDmode.
17515 * dwarf2out.c (gen_subprogram_die): If also both first and
17516 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17517
a82ff31f
JJ
17518 PR debug/48163
17519 * function.c (assign_parms): For data.passed_pointer parms
17520 use MEM of data.entry_parm instead of data.entry_parm itself
17521 as DECL_INCOMING_RTL.
17522 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17523 also when passed and declared mode is the same, DECL_RTL
17524 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17525 a MEM too.
17526
82ce305c
JL
175272011-03-16 Jeff Law <law@redhat.com>
17528
17529 PR rtl-optimization/37273
17530 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17531 handle them like argument loads from stack slots. Do not double
17532 count memory for memory constants and argument loads from stack slots.
17533
fe58e02b
L
175342011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17535
17536 PR debug/48160
17537 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17538
6fc4dbc7
L
175392011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17540
17541 PR target/48171
17542 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17543
db3ed0b3
JJ
175442011-03-17 Jakub Jelinek <jakub@redhat.com>
17545
8054a389
JJ
17546 PR bootstrap/48153
17547 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17548 if dwarf_strict.
17549 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17550 Clear call_arg_locations and call_arg_loc_last always.
17551
db3ed0b3
JJ
17552 PR middle-end/48152
17553 * var-tracking.c (prepare_call_arguments): If argument needs to be
17554 passed by reference, adjust argtype and mode.
17555
1bce4ff3
RG
175562011-03-17 Richard Guenther <rguenther@suse.de>
17557
17558 PR middle-end/48134
17559 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17560 a value make sure to fold the statement.
17561
7c71147d
CLT
175622011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17563
17564 PR target/43872
17565 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17566 return condition with !cfun->calls_alloca.
17567
0e1ee172
RG
175682011-03-17 Richard Guenther <rguenther@suse.de>
17569
17570 PR bootstrap/48148
17571 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17572 origin for decls in other ltrans units.
17573 (input_varpool_node): Likewise.
17574
f8bce518
RG
175752011-03-17 Richard Guenther <rguenther@suse.de>
17576
17577 PR middle-end/48165
17578 * tree-object-size.c (compute_object_offset): Properly return
17579 the offset operand of MEM_REFs as sizetype.
17580
1b6fa860
JJ
175812011-03-17 Jakub Jelinek <jakub@redhat.com>
17582
dabd47e7
JJ
17583 PR rtl-optimization/48141
17584 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17585 * dse.c: Include params.h.
17586 (active_local_stores_len): New variable.
17587 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17588 to NULL.
17589 (record_store, check_mem_read_rtx): Decrease it when removing
17590 from the chain.
17591 (scan_insn): Likewise. Increase it when adding to chain, if it
17592 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17593 set active_local_stores to NULL before the addition.
17594 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17595
1b6fa860
JJ
17596 PR rtl-optimization/48141
17597 * dse.c (record_store): If no positions are needed in an insn
17598 that cannot be deleted, at least unchain it from active_local_stores.
17599
7b5cb7d6
DS
176002011-03-16 Dodji Seketeli <dodji@redhat.com>
17601
17602 PR debug/47510
17603 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17604 (lookup_type_die_strip_naming_typedef): ... here.
17605 (get_context_die): Use it.
17606 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17607 the anonymous struct named by the naming typedef.
17608
585e9d9d
L
176092011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17610
17611 PR target/48154
17612 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17613 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17614
6261ab0e
JL
176152011-03-16 Jeff Law <law@redhat.com>
17616
17617 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 17618 check for operands of conditional. Allow type to be a pointer.
6261ab0e 17619
0b0081ec
RG
176202011-03-16 Richard Guenther <rguenther@suse.de>
17621
17622 PR tree-optimization/48149
17623 * fold-const.c (fold_binary_loc): Fold
17624 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17625
64a3d647
RG
176262011-03-16 Richard Guenther <rguenther@suse.de>
17627
17628 PR tree-optimization/26134
17629 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17630 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17631 (non_rewritable_mem_ref_base): Handle complex type component
17632 accesses, constrain offsets for vector and complex extracts
17633 more properly.
17634
ef13324e
RG
176352011-03-16 Richard Guenther <rguenther@suse.de>
17636
17637 PR tree-optimization/48146
17638 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17639 operands avoiding the need for renaming.
17640
f0eddb90
RG
176412011-03-16 Richard Guenther <rguenther@suse.de>
17642
17643 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17644 constant folding. Move MEM_REF canonicalization first.
17645 Rely on fold_const_aggregate_ref for initializer folding.
17646 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17647
e42348b8
JJ
176482011-03-16 Jakub Jelinek <jakub@redhat.com>
17649
29f10e71
JJ
17650 PR middle-end/48136
17651 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17652 arg0/arg1 or their arguments are always fold converted to matching
17653 types.
17654
e42348b8
JJ
17655 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17656 to nargs.
17657
55b46574
RO
176582011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17659
17660 PR lto/46944
17661 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17662 Handle in-tree gold.
17663 (ld_vers): Extract binutils version for gold.
17664 (gcc_cv_ld_hidden): Handle gold here.
17665 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17666 * configure: Regenerate.
17667 * config.in: Regenerate.
17668 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17669 -fuse-linker-plugin otherwise.
17670 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17671 (LINK_COMMAND_SPEC): Use it.
17672 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17673
2b1c5433
JJ
176742011-03-16 Jakub Jelinek <jakub@redhat.com>
17675
c2969d8e
JJ
17676 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17677 * calls.c: Remove debug.h include.
17678 (emit_call_1): Don't call virtual_call_token debug hook.
17679 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17680 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17681 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17682 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17683 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17684 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17685 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17686 dwarf2out_virtual_call): Remove.
17687 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17688 copy_call_info and virtual_call hooks.
17689 (dwarf2out_init): Don't initialize vcall_insn_table,
17690 debug_dcall_section and debug_vcall_section.
17691 (prune_unused_types): Don't mark nodes from dcall_table.
17692 (dwarf2out_finish): Don't output dcall or vcall tables.
17693 * final.c (final_scan_insn): Don't call direct_call or
17694 virtual_call debug hooks.
17695 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17696 virtual_call_token, copy_call_info and virtual_call hooks.
17697 (debug_nothing_uid): Remove prototype.
17698 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17699 copy_call_info and virtual_call hooks.
17700 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17701 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17702 * debug.c (do_nothing_debug_hooks): Likewise.
17703 (debug_nothing_uid): Remove.
17704 * doc/invoke.texi (-fenable-icf-debug): Remove.
17705 * common.opt (-fenable-icf-debug): Likewise.
17706
325f5379
JJ
17707 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17708 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17709 call's MEM. Handle functions returning aggregate through a hidden
17710 first pointer. For virtual calls add clobbered pc to call arguments
17711 chain.
17712 * dwarf2out.c (gen_subprogram_die): Emit
17713 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17714 can't be emitted.
17715
a58a8e4b
JJ
17716 PR debug/45882
17717 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17718 * rtl.h (ENTRY_VALUE_EXP): Define.
17719 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17720 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17721 * print-rtl.c (print_rtx): Likewise.
17722 * gengtype.c (adjust_field_rtx_def): Likewise.
17723 * var-tracking.c (vt_add_function_parameter): Adjust
17724 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17725 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17726 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17727 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17728 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17729
2b1c5433
JJ
17730 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17731 Call var_location debug hook even on CALL_INSNs.
17732 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17733 * rtl.def (ENTRY_VALUE): New.
17734 * dwarf2out.c: Include cfglayout.h.
17735 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17736 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17737 (struct call_arg_loc_node): New type.
17738 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17739 tail_call_site_count): New variables.
17740 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17741 DW_TAG_GNU_call_site_parameter.
17742 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17743 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17744 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17745 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17746 and DW_AT_GNU_all_source_call_sites.
17747 (mem_loc_descriptor): Handle ENTRY_VALUE.
17748 (add_src_coords_attributes): Don't add enything if
17749 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17750 (dwarf2out_abstract_function): Save and clear call_arg_location,
17751 call_site_count and tail_call_site_count around dwarf2out_decl call.
17752 (gen_call_site_die): New function.
17753 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17754 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17755 (dwarf2out_function_decl): Clear call_arg_locations,
17756 call_arg_loc_last, set call_site_count and tail_call_site_count
17757 to -1 and free block_map.
17758 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17759 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17760 followed by any real instructions.
17761 (dwarf2out_begin_function): Set call_site_count and
17762 tail_call_site_count to 0.
17763 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17764 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17765 attempt to force a DIE for it and worst case remove the attribute.
17766 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17767 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17768 the decl itself.
17769 * var-tracking.c: Include tm_p.h.
17770 (vt_stack_adjustments): For calls call note_register_arguments.
17771 (argument_reg_set): New variable.
17772 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17773 ensure the VALUE is resolved.
17774 (call_arguments): New variable.
17775 (prepare_call_arguments): New function.
17776 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17777 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17778 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17779 always use the best expression.
17780 (vt_expand_loc): Add ignore_cur_loc argument.
17781 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17782 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17783 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17784 note for all calls.
17785 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17786 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17787 argument. Don't call cselib_preserve_only_values and
17788 cselib_reset_table.
17789 (note_register_arguments): New function.
17790 (vt_initialize): Compute argument_reg_set. Call
17791 vt_add_function_parameters before processing basic blocks instead of
17792 afterwards. For calls call prepare_call_arguments before calling
17793 cselib_process_insn.
17794 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17795 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17796 (var-tracking.o): Depend on $(TM_P_H).
17797 * cfglayout.h (insn_scope): New prototype.
17798 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17799 * cfglayout.c (insn_scope): No longer static.
17800 * insn-notes.def (CALL_ARG_LOCATION): New.
17801 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17802 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17803 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17804 nothing for DECL_EXTERNAL BLOCK_VARS.
17805
9ef13bd0
AM
178062011-03-16 Alan Modra <amodra@gmail.com>
17807
17808 PR target/45844
17809 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17810 create invalid offset address for vsx splat insn.
17811 * config/rs6000/predicates.md (splat_input_operand): New.
17812 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17813
56b67510
XDL
178142011-03-15 Xinliang David Li <davidxl@google.com>
17815
17816 PR c/47837
17817 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17818 (normalize_preds): New function.
17819 (is_use_properly_guarded): Normalize def predicates.
17820
80fffdef
RR
178212011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17822
732f37c6 17823 PR target/46788
80fffdef
RR
17824 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17825 in the output template.
17826
930672ad
RG
178272011-03-15 Richard Guenther <rguenther@suse.de>
17828
17829 PR middle-end/47650
17830 * tree-pretty-print.c (dump_function_declaration): Properly
17831 dump unprototyped and varargs function types.
17832
c7ee7b45
RG
178332011-03-15 Richard Guenther <rguenther@suse.de>
17834
17835 PR tree-optimization/13954
17836 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17837 and friends.
17838
b2ad5e37
RG
178392011-03-15 Richard Guenther <rguenther@suse.de>
17840
17841 PR tree-optimization/48037
17842 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17843 selects into BIT_FIELD_REFs.
17844 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17845 vector select.
17846
7ee93d4e
JJ
178472011-03-15 Jakub Jelinek <jakub@redhat.com>
17848
17849 PR tree-optimization/48129
17850 * builtins.c (fold_builtin_snprintf): Convert to type of
17851 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17852 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17853
e106efc7
RG
178542011-03-15 Richard Guenther <rguenther@suse.de>
17855
17856 PR tree-optimization/41490
17857 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17858 value but with VUSE.
17859 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17860 return statements.
17861 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17862 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17863 * tree-tailcall.c (find_tail_calls): Ignore returns.
17864
17dea42f
RG
178652011-03-15 Richard Guenther <rguenther@suse.de>
17866
17867 PR middle-end/48031
17868 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17869 or variable-indexed array accesses when in gimple form.
17870
01c77a60
RG
178712011-03-15 Richard Guenther <rguenther@suse.de>
17872
16cc4440 17873 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 17874
77b0791e
AM
178752011-03-15 Alan Modra <amodra@gmail.com>
17876
17877 PR target/48032
17878 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17879 presume symbol_refs without a symbol_ref_decl are suitably
17880 aligned, nor other trees we may see here. Handle anchor symbols.
17881 (legitimate_constant_pool_address_p): Comment. Add mode param.
17882 Check cmodel=medium addresses. Adjust all calls.
17883 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17884 creating cmodel=medium optimized access to locals.
17885 * config/rs6000/constraints.md (R): Pass QImode to
17886 legitimate_constant_pool_address_p.
17887 * config/rs6000/predicates.md (input_operand): Pass mode to
17888 legitimate_constant_pool_address_p.
17889 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17890 Update prototype.
17891
35f61ba4
MM
178922011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17893
17894 PR target/48053
17895 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17896 64-bit constants being loaded into registers other than GPRs such
17897 as loading 0 into a VSX register.
17898
07332e6d
RO
178992011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17900
16cc4440 17901 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 17902
de888d90
JJ
179032011-03-14 Jakub Jelinek <jakub@redhat.com>
17904
ba3ceb2d
JJ
17905 PR middle-end/47917
17906 * builtins.c (fold_builtin_snprintf): New function.
17907 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17908 (fold_builtin_4): Likewise.
17909
2e64f8b8
JJ
17910 PR middle-end/38878
17911 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17912 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17913 and C - X == X also strip nops from +/-/p+ operand.
17914 When optimizing -X == C, fold C to arg0's type.
17915
de888d90
JJ
17916 PR debug/47946
17917 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17918 emit it as add_AT_int instead of add_AT_unsigned.
17919
179202011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
17921
17922 * unwind-dw2.c: Include sys/sdt.h if it exists.
17923 (_Unwind_DebugHook): Use STAP_PROBE2.
17924 * config.in, configure: Rebuild.
17925 * configure.ac: Check for sys/sdt.h.
17926
d34abfd2
UB
179272011-03-14 Uros Bizjak <ubizjak@gmail.com>
17928
17929 * config/i386/i386.md (ROUND_FLOOR): New constant.
17930 (ROUND_CEIL): Ditto.
17931 (ROUND_TRUNC): Ditto.
17932 (ROUND_MXCSR): Ditto.
17933 (ROUND_NO_EXC): Ditto.
17934 (rint<mode>2): Use new defines instead of numerical constants.
17935 (floor<mode>2): Ditto.
17936 (ceil<mode>2): Ditto.
17937 (btrunc<mode>2): Ditto.
17938 * config/i386/i386-builtin-types.def: Define ROUND function type
17939 aliases.
17940 * config/i386/i386.c (enum ix86_builtins): Add
17941 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17942 (struct builtin_description): Add
17943 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17944 (ix86_expand_sse_round): New static function.
17945 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17946 function types.
17947 (ix86_builtin_vectorized_function): Handle
17948 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17949
87f9e23d
TT
179502011-03-14 Tom Tromey <tromey@redhat.com>
17951
17952 * c-parser.c (c_parser_asm_string_literal): Clear
17953 warn_overlength_strings.
17954
b3ab9ea2
TT
179552011-03-14 Tom Tromey <tromey@redhat.com>
17956
17957 * c-parser.c (disable_extension_diagnostics): Save
17958 warn_overlength_strings.
17959 (restore_extension_diagnostics): Restore warn_overlength_strings.
17960
6bd73dd8
JJ
179612011-03-14 Jakub Jelinek <jakub@redhat.com>
17962
17963 * BASE-VER: Change to 4.7.0.
17964
7f4d6e1b
RG
179652011-03-14 Richard Guenther <rguenther@suse.de>
17966
17967 PR middle-end/48098
17968 * tree.c (build_vector_from_val): Adjust assert to requirements
17969 and reality.
17970
c6104ef1
JJ
179712011-03-14 Jakub Jelinek <jakub@redhat.com>
17972
17973 PR bootstrap/48102
d34abfd2 17974 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 17975
dfa95e19
AT
179762011-03-14 Andreas Tobler <andreast@fgznet.ch>
17977
f60c2554 17978 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
17979 terms of target_flags_explicit. Adjust copyright year.
17980
17981 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17982 * config/rs6000/t-freebsd: New file. Add override for
17983 LIB2FUNCS_EXTRA.
17984
bb322018
CD
179852011-03-13 Chris Demetriou <cgd@google.com>
17986
17987 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17988 (-fno-diagnostics-show-option): this, to reflect current default.
17989 (-Werror=): Update text about -fno-diagnostics-show-option.
17990
12b1c80b
PB
179912011-03-12 Peter Bergner <bergner@vnet.ibm.com>
17992
17993 PR target/48053
17994 * config/rs6000/predicates.md (easy_vector_constant_add_self,
17995 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17996 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17997 mode is not V2DImode or V2DFmode.
17998 (vspltis_constant): Do not handle V2DImode and V2DFmode.
17999 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
18000 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
18001 registers to 0.
18002 (movdi_internal64): Likewise.
18003
57d598f7
SP
180042011-03-12 Sebastian Pop <sebastian.pop@amd.com>
18005
18006 PR tree-optimization/47127
18007 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
18008 parameter.
18009 (set_cloog_options): Same.
18010 (scop_to_clast): Same.
18011 (print_clast_stmt): Do not call cloog_state_malloc and
18012 cloog_state_free.
18013 (print_generated_program): Same.
18014 (gloog): Same.
18015 * graphite-clast-to-gimple.h (cloog_state): Declared.
18016 (scop_to_clast): Adjust declaration.
18017 * graphite.c (cloog_state): Defined here.
18018 (graphite_initialize): Call cloog_state_malloc.
18019 (graphite_finalize): Call cloog_state_free.
18020
f231b5ff
JM
180212011-03-11 Jason Merrill <jason@redhat.com>
18022
18023 * attribs.c (lookup_attribute_spec): Take const_tree.
18024 * tree.h: Adjust.
18025
6a4e2bd5
JM
180262011-03-11 Joseph Myers <joseph@codesourcery.com>
18027
18028 * config/sparc/sparc.c (sparc_option_override): Use
18029 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
18030
a758fd67
RG
180312011-03-11 Richard Guenther <rguenther@suse.de>
18032
18033 PR tree-optimization/48067
18034 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
18035 multiplication result will be only used once on the target
18036 stmt.
18037
03dfda54
RG
180382011-03-11 Richard Guenther <rguenther@suse.de>
18039
18040 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
18041
5f11a50a
RG
180422011-03-11 Richard Guenther <rguenther@suse.de>
18043
18044 PR lto/48073
18045 * tree.c (find_decls_types_r): Do not walk types only reachable
18046 from IDENTIFIER_NODEs.
18047
4074f163
JJ
180482011-03-11 Jakub Jelinek <jakub@redhat.com>
18049
18050 PR middle-end/48044
18051 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
18052 all vnode->force_output nodes as needed.
18053
30f7cdcd
JM
180542011-03-11 Jason Merrill <jason@redhat.com>
18055
18056 PR c++/48069
18057 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
18058 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
18059
62ecfeb8
MJ
180602011-03-11 Martin Jambor <mjambor@suse.cz>
18061
18062 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
18063 cgraph_node.
18064
e89e03ab
JJ
180652011-03-11 Jakub Jelinek <jakub@redhat.com>
18066
18067 PR tree-optimization/48063
18068 * ipa-inline.c (cgraph_decide_inlining): Don't try to
18069 inline functions called once if !tree_can_inline_p (node->callers).
18070
efbe978b 180712011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 18072
efbe978b
EB
18073 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
18074 extra_objs.
9d6193a7
CL
18075 * config/score/score3.c: Delete.
18076 * config/score/score3.h: Delete.
18077 * config/score/mul-div.S: Delete.
18078 * config/score/sfp-machine.h: Add new file.
18079 * config/score/constraints.md: Add new file.
18080 * config/score/t-score-softfp: Add new file.
efbe978b 18081 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
18082 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
18083 (score7_extra_constraint): Delete.
efbe978b 18084 (score7_option_override): Remove unused code.
9d6193a7
CL
18085 * config/score/score.c: Remove score3 and score5 define and code.
18086 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 18087 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
18088 * config/score/score.opt: Remove score3 and score5 options.
18089
5de27cca
JDA
180902011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18091
18092 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
18093 when _HPUX_SOURCE is defined.
18094 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
18095
18d92053
JM
180962011-03-10 Jason Merrill <jason@redhat.com>
18097
18098 PR c++/48029
18099 * stor-layout.c (layout_type): Don't set structural equality
18100 on arrays of incomplete type.
18101 * tree.c (type_hash_eq): Handle comparing them properly.
18102
67a2f76d
JJ
181032011-03-10 Jakub Jelinek <jakub@redhat.com>
18104
18105 PR debug/48043
18d92053 18106 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
18107 result mode matches original rtl mode.
18108
d845b2f9
NC
181092011-03-10 Nick Clifton <nickc@redhat.com>
18110
18111 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 18112 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 18113
db7ec035
JJ
181142011-03-09 Jakub Jelinek <jakub@redhat.com>
18115
18116 PR rtl-optimization/47866
18117 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
18118 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
18119 if target wasn't scalar.
18120 * function.c (assign_stack_temp_for_type): Assert that neither
18121 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
18122 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
18123 macro.
18124 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
18125
5d304e47
AK
181262011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18127
18128 * config/s390/s390-protos.h (s390_label_align): New prototype.
18129 * config/s390/s390.c (s390_label_align): New function.
18130 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
18131
93b826f0
MM
181322011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18133
18134 PR target/47755
18135 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
18136 V2DI/V2DF constants. Only all 0's or all 1's are easy.
18137 (output_vec_const_move): Ditto.
18138
ef78aed6
AS
181392011-03-08 Anatoly Sokolov <aesok@post.ru>
18140
18141 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
18142 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
18143 * config/mips/mips.c (mips_preferred_reload_class): Make static.
18144 Change 'rclass' argument and result type to reg_class_t.
18145 (TARGET_PREFERRED_RELOAD_CLASS): Define.
18146
5f892aa0
GJL
181472011-03-08 Georg-Johann Lay <avr@gjlay.de>
18148
9e43ad68
UB
18149 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18150 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
18151 (TARGET_MEMORY_MOVE_COST): Define.
18152 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 18153
32bd2409
JJ
181542011-03-08 Jakub Jelinek <jakub@redhat.com>
18155
530a4800
JJ
18156 PR debug/47881
18157 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18158 removed anything.
18159
32bd2409
JJ
18160 PR tree-optimization/48022
18161 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18162 for EQ/NE_EXPR.
18163
c7148991
JJ
181642011-03-07 Jakub Jelinek <jakub@redhat.com>
18165
18166 PR debug/47991
18167 * var-tracking.c (find_use_val): Return NULL for
18168 cui->sets && cui->store_p BLKmode MEMs.
18169
43070a6e
AS
181702011-03-07 Anatoly Sokolov <aesok@post.ru>
18171
18172 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18173 Remove.
18174 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18175 xstormy16_print_operand_address): Remove.
18176 * config/stormy16/stormy16.c (xstormy16_print_operand,
18177 xstormy16_print_operand_address): Make static.
18178 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18179
efbe978b 181802011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
18181
18182 PR target/47862
18183 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18184 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18185 before definition.
18186
cec8ac0b
ZD
181872011-03-07 Zdenek Dvorak <ook@ucw.cz>
18188
18189 PR bootstrap/48000
18190 * cfgloopmanip.c (fix_bb_placements): Return immediately
18191 if FROM is BASE_LOOP's header.
18192
59527282
PW
181932011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
18194
18195 * gimplify.c (gimplify_function_tree): Fix building calls
18196 to __builtin_return_address.
18197
617718f7
AM
181982011-03-07 Alan Modra <amodra@gmail.com>
18199
18200 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18201 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18202 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18203 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18204 return_mode args.
18205 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18206 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18207 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18208 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18209 * config/rs6000/rs6000.c
18210 (rs6000_elf_end_indicate_exec_stack): Rename to..
18211 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
18212 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
18213 (rs6000_file_start): ..here.
18214 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18215 file scope variables.
18216 (call_ABI_of_interest): New function.
18217 (init_cumulative_args): Set above vars when function return value
18218 is a float, vector, or small struct.
18219 (rs6000_function_arg_advance_1): Likewise for function args.
18220 (rs6000_va_start): Set rs6000_passes_float if variable arg function
18221 references float args.
18222
38528d50
MX
182232011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
18224
18225 * doc/cfg.texi: Remove "See" before @ref.
18226 * doc/invoke.texi: Likewise.
18227
f42cf4f4
JM
182282011-03-05 Jason Merrill <jason@redhat.com>
18229
18230 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18231
804a304d
AG
182322011-03-05 Anthony Green <green@moxielogic.com>
18233
18234 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18235
634ee309
ZD
182362011-03-05 Zdenek Dvorak <ook@ucw.cz>
18237
18238 PR rtl-optimization/47899
18239 * cfgloopmanip.c (fix_bb_placements): Fix first argument
18240 to flow_loop_nested_p when moving the loop upward.
18241
6fe471c8
RE
182422011-03-05 Richard Earnshaw <rearnsha@arm.com>
18243
18244 PR target/47719
18245 * arm.md (movhi_insn_arch4): Accept any immediate constant.
18246
cc58ceee
JJ
182472011-03-05 Jakub Jelinek <jakub@redhat.com>
18248
18249 PR tree-optimization/47967
18250 * ipa-cp.c (build_const_val): Return NULL instead of creating
18251 VIEW_CONVERT_EXPR for mismatching sizes.
18252 (ipcp_create_replace_map): Return NULL if build_const_val failed.
18253 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18254 give up on versioning.
18255
ea868305
AM
182562011-03-05 Alan Modra <amodra@gmail.com>
18257
18258 PR target/47986
18259 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18260 full cmodel medium/large lo_sum + high addresses.
18261
bc6ce334
AK
182622011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18263
18264 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18265 pool references in UNSPEC_LTREL_OFFSET.
18266
87e7b310
JH
182672011-03-04 Jan Hubicka <jh@suse.cz>
18268
18269 PR lto/47497
18270 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18271 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
18272 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18273 Add node pointers.
87e7b310
JH
18274 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18275 cgraph_add_thunk): Add node pointers.
18276 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18277 associated to right node.
18278 (input_node): Update use of cgraph_same_body_alias
18279 and cgraph_add_thunk.
18280
d9c64246
CF
182812011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18282
18283 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
18284 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18285 modes when the flag -mprefer-avx128 is on.
d9c64246 18286
08707076
RS
182872011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18288
18289 * dwarf2out.c (compare_loc_operands): Fix address handling.
18290
52517c81
AM
182912011-03-04 Alan Modra <amodra@gmail.com>
18292
18293 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18294
b147c5b9
RG
182952011-03-04 Richard Guenther <rguenther@suse.de>
18296
18297 PR middle-end/47968
18298 * expmed.c (extract_bit_field_1): Prefer vector modes that
18299 vec_extract patterns can handle.
18300
8750672f
RG
183012011-03-04 Richard Guenther <rguenther@suse.de>
18302
18303 PR middle-end/47975
18304 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18305
9eac0f2a
RH
183062011-03-04 Richard Henderson <rth@redhat.com>
18307
18308 * explow.c (emit_stack_save): Remove 'after' parameter.
18309 (emit_stack_restore): Likewise.
18310 * expr.h: Update to match.
18311 * builtins.c, calls.c, stmt.c: Likewise.
18312 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18313 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18314 * function.c (expand_function_end): Insert the emit_stack_save
18315 sequence before parm_birth_insn instead of after.
18316
dfee1406
UB
183172011-03-03 Uros Bizjak <ubizjak@gmail.com>
18318
18319 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18320 (ssse3_pmaddubsw128): Ditto.
18321 (ssse3_pmaddubsw): Ditto.
18322
f1d4c3de
SE
183232011-03-03 Steve Ellcey <sje@cup.hp.com>
18324
18325 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18326
71f3a3f5
JJ
183272011-03-03 Jakub Jelinek <jakub@redhat.com>
18328
423ed416
JJ
18329 PR c/47963
18330 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18331 on TYPE_SIZE_UNIT if it is a DECL.
18332
71f3a3f5
JJ
18333 PR debug/47283
18334 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18335 first operand is not is_gimple_mem_ref_addr, try to fold it.
18336 If the operand still isn't is_gimple_mem_ref_addr, clear
18337 MEM_EXPR on op0.
18338
4b1a5c0d
RG
183392011-03-03 Richard Guenther <rguenther@suse.de>
18340
18341 PR middle-end/47283
18342 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18343 match comment.
18344 (refs_may_alias_p_1): For release branches return true if
18345 we are confused by our input.
18346
b46616fd
AK
183472011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18348
18349 * config/s390/s390.c (s390_function_value): Rename to ...
18350 (s390_function_and_libcall_value): ... this.
18351 (s390_function_value): New function.
18352 (s390_libcall_value): New function.
dfee1406 18353 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
18354 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18355 target macro definitions.
18356 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18357
46d8fabb
JM
183582011-03-02 Joseph Myers <joseph@codesourcery.com>
18359
18360 * config/i386/freebsd64.h (CC1_SPEC): Define.
18361 * config/i386/linux64.h (CC1_SPEC): Define.
18362 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18363
6b1ce545
AS
183642011-03-02 Anatoly Sokolov <aesok@post.ru>
18365
18366 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18367 Remove.
18368 * config/stormy16/stormy16.c: Include reload.h.
18369 (xstormy16_memory_move_cost): New function.
18370 (TARGET_MEMORY_MOVE_COST): Define.
18371
34161e98
RS
183722011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18373
18374 PR rtl-optimization/47925
18375 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18376 with side effects. Remove the more-specific check for volatile asms.
18377
f60a97cf
AM
183782011-03-02 Alan Modra <amodra@gmail.com>
18379
18380 PR target/47935
18381 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18382 toc relative addresses for valid offsets.
18383
f2ca11ca
RG
183842011-03-01 Richard Guenther <rguenther@suse.de>
18385
18386 PR tree-optimization/47890
18387 * tree-vect-loop.c (get_initial_def_for_induction): Set
18388 related stmt properly.
18389
7a00d9ea
RG
183902011-03-01 Richard Guenther <rguenther@suse.de>
18391
18392 PR lto/47924
18393 * lto-streamer.c (lto_record_common_node): Also register
18394 the canonical type.
18395
06c7edcc
RG
183962011-03-01 Richard Guenther <rguenther@suse.de>
18397
18398 PR lto/46911
18399 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18400 Do not stream DECL_ABSTRACT_ORIGIN.
18401 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18402 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18403 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18404 Do not stream DECL_ABSTRACT_ORIGIN.
18405 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18406 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18407
998871e9
AS
184082011-02-28 Anatoly Sokolov <aesok@post.ru>
18409
18410 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18411 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 18412 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
18413 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18414 Add 'outgoing' argument.
18415 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18416 function.
18417 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18418 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18419
94369251
KT
184202011-02-28 Kai Tietz <kai.tietz@onevision.com>
18421
18422 PR debug/28047
18423 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18424 (lookup_filename): Likewise.
b2e2ea67 18425 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 18426
80a832cd
JJ
184272011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18428 Jakub Jelinek <jakub@redhat.com>
18429
18430 PR middle-end/47893
18431 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18432 (assign_stack_local_1): Change last argument type to int.
18433 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18434 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 18435 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
18436 (assign_stack_local): Adjust caller.
18437 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18438 of assign_stack_local, pass 0 as last argument.
18439 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18440 callers.
18441
1b500976
JJ
184422011-02-28 Jakub Jelinek <jakub@redhat.com>
18443
f61c6f34
JJ
18444 PR debug/47283
18445 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18446 Use target address_mode and pointer_mode hooks instead of hardcoded
18447 Pmode and ptr_mode. Handle some simple cases of extending if
18448 POINTERS_EXTEND_UNSIGNED < 0.
18449 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18450 Call convert_debug_memory_address.
18451 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18452 convert_debug_memory_address.
18453
1b500976
JJ
18454 PR middle-end/46790
18455 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18456 * configure: Regenerated.
18457 * config.in: Regenerated.
18458 * varasm.c (default_function_section): Return NULL
b2e2ea67 18459 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 18460
2f2935b6
MJ
184612011-02-28 Martin Jambor <mjambor@suse.cz>
18462
18463 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18464 the description to match the printed values.
18465
474086eb
RG
184662011-02-28 Richard Guenther <rguenther@suse.de>
18467
18468 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18469 of the copied scope tree.
18470
15bf6f3a
RW
184712011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18472
18473 * doc/extend.texi (Function Attributes): Avoid deeply (and
18474 wrongly) nested tables.
18475
f6b439c9
JJ
184762011-02-27 Jakub Jelinek <jakub@redhat.com>
18477
18478 PR middle-end/47903
18479 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18480 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18481 r isn't op0 nor op1.
18482
1d8ca2c7
GJL
184832011-02-23 Georg-Johann Lay <avr@gjlay.de>
18484
18485 * config/avr/avr.md: Remove magic comment for emacs.
18486
593fca4b
GJL
184872011-02-23 Georg-Johann Lay <avr@gjlay.de>
18488
18489 PR target/45261
18490 * config/avr/avr.c (avr_option_override): Use error on bad options.
18491 (avr_help): New function.
18492 (TARGET_HELP): Define.
18493
6609216e
GJL
184942011-02-22 Georg-Johann Lay <avr@gjlay.de>
18495
18496 PR target/42240
18497 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18498 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18499
03d458af
GP
185002011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18501
18502 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18503 (ARM Options): Ditto.
18504 (i386 and x86-64 Options): Ditto.
18505 (RX Options): Ditto.
18506 (SPARC Options): Ditto.
18507
1c379b78
TC
185082011-02-26 Tijl Coosemans <tijl@coosemans.org>
18509
18510 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18511 FreeBSD 6 and later. Generally use cpu generic.
18512
d5ed058c 185132011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 18514
d5ed058c
GP
18515 * doc/cpp.texi: Update copyright years.
18516
509d65dd 185172011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 18518
509d65dd 18519 PR target/46898
308d39cd
SB
18520 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18521
509d65dd 185222011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 18523
509d65dd 18524 PR target/46898
308d39cd
SB
18525 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18526 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18527 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18528 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 18529 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
18530 (gen_int_relational): Move declarations to start of function.
18531
822ba6d7
EB
185322011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18533
18534 PR tree-optimization/45470
18535 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18536 can throw internally only.
18537 * tree-vect-stmts.c (vectorizable_call): Likewise.
18538
ef795fc2
AS
185392011-02-24 Anatoly Sokolov <aesok@post.ru>
18540
18541 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18542 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18543 * config/stormy16/stormy16-protos.h
18544 (xstormy16_preferred_reload_class): Remove.
18545 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18546 static. Change 'rclass' argument and return type to reg_class_t.
18547 (TARGET_PREFERRED_RELOAD_CLASS,
18548 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18549
1c3277ee
RG
185502011-02-24 Richard Guenther <rguenther@suse.de>
18551
18552 * lto-streamer-in.c (input_bb): Do not find referenced vars
18553 in debug statements.
18554
67e18edb
JM
185552011-02-23 Jason Merrill <jason@redhat.com>
18556
18557 * common.opt (fabi-version): Document v5 and v6.
18558
b14fad9d
RG
185592011-02-23 Richard Guenther <rguenther@suse.de>
18560
18561 PR tree-optimization/47849
18562 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18563
7fcf46f5
JZ
185642011-02-23 Jie Zhang <jie@codesourcery.com>
18565
18566 * opts-common.c (decode_cmdline_option): Print empty string
18567 argument as "" in decoded->orig_option_with_args_text.
18568 * gcc.c (execute): Print empty string argument as ""
18569 in the verbose output.
18570 (do_spec_1): Keep empty string argument.
18571
f85b70fd
NF
185722011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18573
18574 * config.gcc: Declare score-* and crx-* obsolete.
18575
b152a615
JZ
185762011-02-23 Jie Zhang <jie@codesourcery.com>
18577
18578 PR rtl-optimization/47763
18579 * web.c (web_main): Ignore naked clobber when replacing register.
18580
bb6e77bc
AS
185812011-02-22 Anatoly Sokolov <aesok@post.ru>
18582
18583 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18584 Remove.
18585
68bf6491
SP
185862011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18587
18588 PR doc/47848
18589 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18590
88ee1fc7
MS
185912011-02-22 Mike Stump <mikestump@comcast.net>
18592
18593 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18594 assembler.
18595 * configure: Regenerate.
18596
6042d1dd
CLT
185972011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18598
18599 PR rtl-optimization/46002
18600 * ira-color.c (update_copy_costs): Change class intersection
18601 test to reg_class_contents[] test of 'hard_regno'.
18602
7de97f9e
JM
186032011-02-21 Joseph Myers <joseph@codesourcery.com>
18604
18605 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18606 than Driver option.
18607 * config/hpux11.opt (mt): Likewise.
18608 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18609 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18610 * config/vax/elf.opt (mno-asm-pic): Likewise.
18611 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18612
d1d46f9f
MS
186132011-02-21 Mike Stump <mikestump@comcast.net>
18614
18615 PR target/47822
18616 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18617 tree so we can get save the type.
18618 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18619 for CFString instead of trying to use past the end of the builtins.
18620 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18621 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18622 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18623 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18624 Rename to darwin_builtin_cfstring.
18625 (darwin_init_cfstring_builtins): Return the built type.
18626
23e0d930
UB
186272011-02-21 Uros Bizjak <ubizjak@gmail.com>
18628
18629 PR target/47840
18630 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18631 (_mm256_insert_epi64): Use _mm_insert_epi64.
18632
192997cf
AS
186332011-02-21 Anatoly Sokolov <aesok@post.ru>
18634
18635 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18636 * config/stormy16/stormy16-protos.h
18637 (xstormy16_mode_dependent_address_p): Remove.
18638 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18639 Make static. Change return type to bool. Change argument type to
18640 const_rtx. Remove dead code.
18641 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18642
e292d003
RG
186432011-02-21 Richard Guenther <rguenther@suse.de>
18644
18645 PR lto/47820
18646 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18647 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18648 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18649 TUs context.
23e0d930 18650 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
18651 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18652
77f846e9
RG
186532011-02-20 Richard Guenther <rguenther@suse.de>
18654
18655 PR lto/47822
18656 * tree.c (free_lang_data_in_decl): Clean builtins from
18657 the TU decl BLOCK_VARS.
23e0d930 18658
b2cddfc8
AO
186592011-02-19 Alexandre Oliva <aoliva@redhat.com>
18660
18661 PR debug/47620
18662 PR debug/47630
18663 * haifa-sched.c (fix_tick_ready): Skip tick computation
18664 for debug insns.
18665
becf4c11
RG
186662011-02-19 Richard Guenther <rguenther@suse.de>
18667
18668 PR lto/47647
18669 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18670 Remove lazy BLOCK_VARS streaming.
18671 (lto_input_ts_block_tree_pointers): Likewise.
18672 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18673
27f98305
JM
186742011-02-19 Joseph Myers <joseph@codesourcery.com>
18675
18676 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18677
064bf3f4
JM
186782011-02-19 Joseph Myers <joseph@codesourcery.com>
18679
18680 * config/i386/biarch32.h, config/i386/mach.h,
18681 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18682
9215ddc3
JJ
186832011-02-19 Jakub Jelinek <jakub@redhat.com>
18684
18685 PR target/47800
18686 * config/i386/i386.md (peephole2 for shift and plus): Use
18687 operands[1] original mode in the first insn.
18688
8b021004
MS
186892011-02-18 Mike Stump <mikestump@comcast.net>
18690
65ded153 18691 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 18692
f84ae14c
JH
186932011-02-18 Jan Hubicka <jh@suse.cz>
18694
18695 PR middle-end/47788
65ded153
EB
18696 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18697 to zero when the function is not inlinable at all.
f84ae14c 18698
eddabc80
JDA
186992011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18700
18701 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18702 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18703 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18704 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18705 * config/pa/t-pa64: Likewise.
18706 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18707
ca3da783
JJ
187082011-02-18 Jakub Jelinek <jakub@redhat.com>
18709
18710 PR driver/47787
18711 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18712
430aa868
JDA
187132011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18714
18715 PR target/47792
18716 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18717
4bf7ff7e
AS
187182011-02-18 Anatoly Sokolov <aesok@post.ru>
18719
18720 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18721 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18722 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18723 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18724 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18725 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18726 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18727 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18728 m32r_legitimate_address_p): New functions.
18729 * config/m32r/constraints.md (constraint "S"): Don't use
18730 STORE_PREINC_PREDEC_P.
18731 (constraint "U"): Don't use LOAD_POSTINC_P.
18732
7efcf910
CLT
187332011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18734
18735 PR rtl-optimization/46178
18736 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18737 compute ira_hard_regno_cover_class[].
18738
237d6259
RG
187392011-02-18 Richard Guenther <rguenther@suse.de>
18740
18741 PR lto/47798
18742 * lto-streamer.h (lto_global_var_decls): Declare.
18743 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18744 statics for global var processing.
18745
12d80acc
RG
187462011-02-18 Richard Guenther <rguenther@suse.de>
18747
18748 PR tree-optimization/47737
18749 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18750 edge dominance check.
18751
abfea58d
JJ
187522011-02-18 Jakub Jelinek <jakub@redhat.com>
18753
18754 PR debug/47780
18755 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18756 avoid invalid rtx sharing.
18757
f73c8882
GP
187582011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18759
18760 * doc/cpp.texi (Obsolete Features): Add background on the
18761 origin of assertions.
18762
d764a8e6
IS
187632011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18764
18765 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 18766 objc_abi == 2.
d764a8e6
IS
18767 * config/darwin.c (output_objc_section_asm_op): Added support for
18768 ABI v1 and v2.
18769 (is_objc_metadata): New.
18770 (darwin_objc2_section): New.
18771 (darwin_objc1_section): New.
18772 (machopic_select_section): Added support for ABI v1 and v2.
18773 (darwin_emit_objc_zeroed): New.
18774 (darwin_output_aligned_bss): Detect objc metadata and treat it
18775 appropriately.
18776 (darwin_asm_output_aligned_decl_common): Same.
18777 (darwin_asm_output_aligned_decl_local): Same.
18778 * config/darwin-sections.def: Updated for ABI v1 and v2.
18779 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18780 compiling Objective-C code for the NeXT runtime, default to using
18781 ABI version 0 for 32-bit, and version 2 for 64-bit.
18782
0a8134ca
JM
187832011-02-17 Joseph Myers <joseph@codesourcery.com>
18784
18785 * common.opt (optimize_fast): New Variable.
18786 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18787 instead of local variable ofast.
18788
0a256240
NP
187892011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18790
18791 * doc/invoke.texi (fobjc-abi-version): Documented.
18792 (fobjc-nilcheck): Documented.
18793 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18794 version.
18795
fa381cb2
JM
187962011-02-17 Joseph Myers <joseph@codesourcery.com>
18797
18798 PR driver/47390
18799 * common.opt (export-dynamic): New Driver option.
18800 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18801
5437eaa6
JM
188022011-02-17 Joseph Myers <joseph@codesourcery.com>
18803
18804 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18805
bb7e6d55
AO
188062011-02-17 Alexandre Oliva <aoliva@redhat.com>
18807 Jan Hubicka <jh@suse.cz>
18808
18809 PR debug/47106
18810 PR debug/47402
18811 * cfgexpand.c (account_used_vars_for_block): Remove.
18812 (estimated_stack_frame_size): Use referenced vars.
18813 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18814 that were referenced in the original function. Test src_fn
18815 rather than cfun. Drop redundant get_var_ann.
18816 (setup_one_parameter): Drop redundant get_var_ann.
18817 (declare_return_variable): Likewise.
18818 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18819 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18820 * ipa-inline.c (compute_inline_parameters): Do not compute
18821 disregard_inline_limits here.
bb7e6d55
AO
18822 (compute_inlinable_for_current, pass_inlinable): New.
18823 (pass_inline_parameters): Require PROP_referenced_vars.
18824 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 18825 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
18826 (cgraph_analyze_function): Set .disregard_inline_limits.
18827 * tree-sra.c (convert_callers): Compute inliner parameters
18828 only for functions already in SSA form.
18829
f181a8a7
JM
188302011-02-17 Joseph Myers <joseph@codesourcery.com>
18831
18832 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18833 -mlittle-endian-data.
18834
c6869789
JM
188352011-02-17 Joseph Myers <joseph@codesourcery.com>
18836
18837 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18838 -mno-fpu, not -fpu and -no-fpu.
18839 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18840 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18841
fbf4bfd3
UB
188422011-02-17 Uros Bizjak <ubizjak@gmail.com>
18843
18844 PR target/43653
18845 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18846 input reload with PLUS RTX.
18847
70be5dc7
JM
188482011-02-16 Joseph Myers <joseph@codesourcery.com>
18849
18850 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18851 of InverseVar(MDMX).
18852
30b1646e
JM
188532011-02-16 Joseph Myers <joseph@codesourcery.com>
18854
18855 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18856 --m4-340.
18857
ab7b71e9
JM
188582011-02-16 Joseph Myers <joseph@codesourcery.com>
18859
18860 * config/mn10300/mn10300.opt (mno-crt0): New.
18861
466f3f08
JM
188622011-02-16 Joseph Myers <joseph@codesourcery.com>
18863
18864 * config/m68k/uclinux.opt (static-libc): New Driver option.
18865
8226cd7b
JM
188662011-02-16 Joseph Myers <joseph@codesourcery.com>
18867
18868 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18869
45cab1d7
JM
188702011-02-16 Joseph Myers <joseph@codesourcery.com>
18871
18872 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18873 %{muser-extend-enabled}.
18874
65aab64f
RG
188752011-02-16 Richard Guenther <rguenther@suse.de>
18876
18877 PR tree-optimization/47738
18878 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18879 the TODO from tree_predictive_commoning.
18880
fc2fa4fb
JL
188812011-02-15 Jeff Law <law@redhat.com>
18882
18883 Revert
18884 2011-01-25 Jeff Law <law@redhat.com>
18885
18886 PR rtl-optimization/37273
18887 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18888 handle them like argument loads from stack slots. Do not double
18889 count memory for memory constants and argument loads from stack slots.
18890
4e380b8e
L
188912011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18892
18893 PR middle-end/47725
18894 * combine.c (cant_combine_insn_p): Revert the last change.
18895
e3a69bb4
MM
188962011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18897
18898 PR target/47755
18899 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18900 mode for vector constants. Remove code that checks for TImode.
18901
de650422
AO
189022011-02-15 Alexandre Oliva <aoliva@redhat.com>
18903
18904 PR debug/47106
18905 PR debug/47402
18906 * cgraph.h (compute_inline_parameters): Return void.
18907 * ipa-inline.c (compute_inline_parameters): Adjust.
18908
30925d94
AO
189092011-02-15 Alexandre Oliva <aoliva@redhat.com>
18910
18911 PR debug/47106
18912 PR debug/47402
18913 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18914 rather than decl.
18915 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18916 * ipa-inline.c (compute_inline_parameters): Adjust.
18917
1b9a784a
AO
189182011-02-15 Alexandre Oliva <aoliva@redhat.com>
18919
18920 PR debug/47106
18921 PR debug/47402
18922 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18923 Adjust all users. Pass FN to...
18924 * tree-flow-inline.h (first_referenced_var): ... this. Add
18925 fn argument.
18926 * ipa-struct-reorg.c: Adjust.
18927 * tree-dfa.c: Adjust.
18928 * tree-into-ssa.c: Adjust.
18929 * tree-sra.c: Adjust.
18930 * tree-ssa-alias.c: Adjust.
18931 * tree-ssa-live.c: Adjust.
18932 * tree-ssa.c: Adjust.
18933 * tree-ssanames.c: Adjust.
18934 * tree-tailcall.c: Adjust.
18935
27c6b086
AO
189362011-02-15 Alexandre Oliva <aoliva@redhat.com>
18937
18938 PR debug/47106
18939 PR debug/47402
18940 * tree-flow.h (referenced_var_lookup): Add fn parameter.
18941 Adjust all callers.
18942 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18943 * tree-flow-inline.h: Adjust.
18944 * gimple-pretty-print.c: Adjust.
18945 * tree-into-ssa.c: Adjust.
18946 * tree-ssa.c: Adjust.
18947 * cfgexpand.c: Adjust.
18948
679e8183
NF
189492011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18950
fbf4bfd3
UB
18951 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18952 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18953 (EXTRA_CONSTRAINT): Delete.
18954 * config/iq2000/constraints.md: New file.
18955 * config/iq2000/iq2000.md: Include it.
679e8183
NF
18956 (define_insn ""): Delete.
18957 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18958 unsupported constraint letters from patterns.
18959 (call_value, call_value_internal1): Likewise.
18960 (call_value_multiple_internal1): Likewise.
18961
a45d420a
NC
189622011-02-15 Nick Clifton <nickc@redhat.com>
18963
18964 * config/mn10300/mn10300.c: Include tm-constrs.h.
18965 (struct liw_data): New data structure describing an LIW candidate
18966 instruction.
18967 (extract_bundle): Use struct liw_data. Allow small integer
18968 operands for some instructions.
18969 (check_liw_constraints): Use struct liw_data. Remove swapped
18970 parameter. Add comments describing the checks. Fix bug when
18971 assigning the source of liw1 to the source of liw2.
18972 (liw_candidate): Delete. Code moved into extract_bundle.
18973 (mn10300_bundle_liw): Use struct liw_data. Check constraints
18974 before swapping.
18975 * config/mn10300/predicates.md (liw_operand): New predicate.
18976 Allows registers and small integer constants.
18977 * config/mn10300/constraints.md (O): New constraint. Accetps
18978 integers in the range -8 to +7 inclusive.
18979 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18980 for moving a small integer into a register. Give this alternative
18981 LIW attributes.
18982 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18983 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18984 using the J,K,L and M constraints,
18985 (liw): Remove SI mode on second operands to allow for HI and QI
18986 mode values.
18987 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
18988 instruction.
18989
8a73faf1
L
189902011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18991
18992 PR middle-end/47725
18993 * combine.c (cant_combine_insn_p): Check zero/sign extended
18994 hard registers.
18995
48feba28
RG
189962011-02-15 Richard Guenther <rguenther@suse.de>
18997
18998 PR tree-optimization/47743
18999 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
19000 for a non-type-compatible VN lookup bail out.
19001
ad1c1eeb
NF
190022011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19003
19004 * config/fr30/constraints.md: New file.
19005 * config/fr30/fr30.md: Include it.
19006 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
19007 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19008 (EXTRA_CONSTRAINT): Delete.
19009
49ac143d
NF
190102011-02-15 Nathan Froyd <froydnj@codesourcery.com>
19011
19012 * config/frv/constraints.md: New file.
19013 * config/frv/predicates.md: Include it.
19014 * config/frv/frv.c (reg_class_from_letter): Delete.
19015 (frv_option_override): Don't initialize it.
19016 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
19017 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
19018 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
19019 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19020 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
19021 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19022 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
19023 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
19024 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
19025 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
19026 (REG_CLASS_FROM_CONSTRAINT): Delete.
19027
c95f9494
JJ
190282011-02-15 Jakub Jelinek <jakub@redhat.com>
19029
19030 PR middle-end/47581
19031 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
19032 if frame size is 0 in a leaf function.
19033
13aed611
RO
190342011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19035
19036 PR pch/14940
19037 * config/alpha/host-osf.c: New file.
19038 * config/alpha/x-osf: New file.
19039 * config.host (alpha*-dec-osf*): Use it.
19040
b09c3081
AS
190412011-02-14 Anatoly Sokolov <aesok@post.ru>
19042
19043 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19044 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
19045 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
19046 (rx_mode_dependent_address_p): ...this. Make static. Change argument
19047 type to const_rtx.
19048 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19049
d634083b
NF
190502011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19051
19052 * config/stormy16/constraints.md: New file.
19053 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
19054 Use satisfies_constraint_Q and satisfies_constraint_R.
19055 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
19056 Delete.
19057 (xstormy16_legitiamte_address_p): Declare.
19058 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
19059 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19060 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 19061 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
19062 Un-staticize.
19063 (xstormy16_extra_constraint_p): Delete.
19064
c7dd803e
EB
190652011-02-14 Eric Botcazou <ebotcazou@adacore.com>
19066
19067 PR tree-optimization/46494
19068 * loop-unroll.c (split_edge_and_insert): Adjust comment.
19069 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
19070 (pass_rtl_loop_done): Add TODO_verify_flow.
19071 * fwprop.c (pass_rtl_fwprop): Likewise.
19072 * modulo-sched.c (pass_sms): Likewise.
19073 * tree-ssa-dom.c (pass_dominator): Likewise.
19074 * tree-ssa-loop-ch.c (pass_ch): Likewise.
19075 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
19076 (pass_tree_loop_done): Likewise.
19077 * tree-ssa-pre.c (execute_pre): Likewise.
19078 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
19079 * tree-ssa-sink.c (pass_sink_code): Likewise.
19080 * tree-vrp.c (pass_vrp): Likewise.
19081
c6150df6
NF
190822011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19083
c7dd803e
EB
19084 * config/v850/constraints.md: New file.
19085 * config/v850/v850.md: Include it.
19086 * config/v850/predicates.md (reg_or_0_operand): Use
19087 satisfies_constraint_G.
19088 (special_symbolref_operand): Use satisfies_constraint_K.
19089 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
19090 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
19091 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
19092 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
19093 (EXTRA_CONSTRAINT): Delete.
19094 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
19095 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
19096 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 19097
30dd1ea3
AS
190982011-02-14 Anatoly Sokolov <aesok@post.ru>
19099
19100 PR target/47696
19101 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
19102 description.
19103
944f4bb3
NF
191042011-02-14 Nathan Froyd <froydnj@codesourcery.com>
19105
19106 * config/mcore/constraints.md: New file.
19107 * config/mcore/mcore.md: Include it.
19108 * config/mcore/mcore.c (reg_class_from_letter): Delete.
19109 * config/mcore/mcore.h (reg_class_from_letter): Delete.
19110 (REG_CLASS_FROM_LETTER): Delete.
19111 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
19112 insn_const_int_ok_for_constraint.
19113 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
19114 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
19115 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
19116 (EXTRA_CONSTRAINT): Delete.
19117
ad56a54c
RO
191182011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19119
19120 PR ada/41929
19121 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
19122 (IS_SIGHANDLER): Define.
19123 (sparc64_is_sighandler): New function, split off from
19124 sparc64_fallback_frame_state.
19125 (sparc_is_sighandler): New function, split off from
19126 sparc_fallback_frame_state.
19127 (sparc64_fallback_frame_state): Merge with ...
19128 (sparc_fallback_frame_state): ... this into ...
19129 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
19130 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
19131 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
19132 stack instead of hardcoded offsets.
ad56a54c 19133
fbf4bfd3 191342011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
19135
19136 PR target/45808
19137 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
19138
029c8f3e
RW
191392011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19140
19141 * configure: Regenerate.
19142
a016dc83
JM
191432011-02-12 Joseph Myers <joseph@codesourcery.com>
19144
19145 PR driver/45731
19146 * gcc.c (asm_options): Correct spec matching --target-help.
19147
8957a0ec
MJ
191482011-02-12 Martin Jambor <mjambor@suse.cz>
19149
19150 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
19151 to gimple call error.
19152
6ef828bc
MS
191532011-02-12 Mike Stump <mikestump@comcast.net>
19154
19155 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
19156 comments in backslash regions.
19157
a4015be5
MS
191582011-02-12 Mike Stump <mikestump@comcast.net>
19159 Jakub Jelinek <jakub@redhat.com>
19160 Iain Sandoe <iains@gcc.gnu.org>
19161
19162 PR target/47324
19163 * dwarf2out.c (output_cfa_loc): When required, apply the
19164 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19165 (output_loc_sequence): Likewise.
19166 (output_loc_operands_raw): Likewise.
19167 (output_loc_sequence_raw): Likewise.
19168 (output_cfa_loc): Likewise.
19169 (output_loc_list): Suppress register number adjustment when
19170 calling output_loc_sequence()
19171 (output_die): Likewise.
19172
5378dda2
AS
191732011-02-12 Anatoly Sokolov <aesok@post.ru>
19174
19175 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19176 Remove macros.
19177 * config/xtensa/xtensa.c (xtensa_register_move_cost,
19178 xtensa_memory_move_cost): New functions.
19179 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19180
f3d533d3
AO
191812011-02-12 Alexandre Oliva <aoliva@redhat.com>
19182
19183 PR lto/47225
19184 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19185 in the current directory.
19186 * configure: Rebuilt.
19187
9d53403c
IS
191882011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19189
19190 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 19191 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
19192 correct indents of the preceding block.
19193
a350a6c8
IS
191942011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19195
19196 * gcc.c (driver_handle_option): Concatenate the argument to -F with
19197 the switch.
19198
bab79a40
JM
191992011-02-11 Joseph Myers <joseph@codesourcery.com>
19200
19201 * common.opt (nostartfiles): New Driver option.
19202
1bbc6693
XDL
192032011-02-11 Xinliang David Li <davidxl@google.com>
19204
19205 PR tree-optimization/47707
19206 * tree-chrec.c (convert_affine_scev): Keep type precision.
19207
1da7d8c0
EB
192082011-02-11 Eric Botcazou <ebotcazou@adacore.com>
19209
19210 PR tree-optimization/47420
19211 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19212
192132011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
19214
19215 PR rtl-optimization/47614
19216 * rtl.h (check_for_inc_dec): Declare.
19217 * dse.c (check_for_inc_dec): Externalize...
19218 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19219 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19220
4df47bca
JM
192212011-02-11 Joseph Myers <joseph@codesourcery.com>
19222
19223 PR driver/47678
19224 * gcc.c (main): Do not compile inputs if there were errors in
19225 option handling.
19226 * opts-common.c (read_cmdline_option): Check for wrong language
19227 after other error checks.
19228
61502ca8
NF
192292011-02-11 Nathan Froyd <froydnj@codesourcery.com>
19230
19231 * cgraph.c: Fix comment typos.
19232 * cgraph.h: Likewise.
19233 * cgraphunit.c: Likewise.
19234 * ipa-cp.c: Likewise.
19235 * ipa-inline.c: Likewise.
19236 * ipa-prop.c: Likewise.
19237 * ipa-pure-const.c: Likewise.
19238 * ipa-ref.c: Likewise.
19239 * ipa-reference.c: Likewise.
19240
b63f974e
JJ
192412011-02-11 Jakub Jelinek <jakub@redhat.com>
19242
d50c5e0c
JJ
19243 PR debug/47684
19244 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 19245
6dd2a13c
RO
192462011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19247
19248 PR testsuite/47400
19249 * doc/sourcebuild.texi (Require Support): Document
19250 dg-require-ascii-locale.
19251
4a087ccf
MX
192522011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
19253
19254 * doc/lto.texi (Write summary): Fix missing parentheses.
19255
a4403164
DD
192562011-02-10 DJ Delorie <dj@redhat.com>
19257
19258 * config/m32c/m32c.c (m32c_option_override): Disable
19259 -fcombine-stack-adjustments until flag value tracking and compare
19260 optimization can be rewritten.
19261
4fac45bd
PB
192622011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19263
19264 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19265 PROCESSOR_POWER7.
19266 (PROCESSOR_DEFAULT64): Likewise.
19267
72602cd1
RH
192682011-02-10 Richard Henderson <rth@redhat.com>
19269
19270 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19271 change from 2011-02-03.
19272 * config/rx/rx.c (flags_from_code): Likewise.
19273 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19274 is valid, n/pz otherwise.
19275 (rx_select_cc_mode): Return CCmode if Y is not zero.
19276
ea57f573
RG
192772011-02-10 Richard Guenther <rguenther@suse.de>
19278
ea4c3e65 19279 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 19280
92b1d23b
RG
192812011-02-10 Richard Guenther <rguenther@suse.de>
19282
19283 PR tree-optimization/47677
19284 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19285
525a2d06
JJ
192862011-02-10 Jakub Jelinek <jakub@redhat.com>
19287
19288 PR target/47665
19289 * combine.c (make_compound_operation): Only change shifts into
19290 multiplication for SCALAR_INT_MODE_P.
19291
06c969bd
JZ
192922011-02-10 Jie Zhang <jie@codesourcery.com>
19293
19294 PR testsuite/47622
19295 Revert
19296 2011-02-05 Jie Zhang <jie@codesourcery.com>
19297 PR debug/42631
19298 * web.c (entry_register): Don't clobber the number of the
19299 first uninitialized reference in used[].
19300
282ec48e
RG
193012011-02-09 Richard Guenther <rguenther@suse.de>
19302
19303 PR tree-optimization/47664
19304 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19305 all edges again.
19306
df98c3e8
DE
193072011-02-09 David Edelsohn <dje.gcc@gmail.com>
19308
d0f21cd6
DE
19309 PR target/46481
19310 PR target/47032
df98c3e8
DE
19311 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19312 PROCESSOR_POWER7.
19313 (PROCESSOR_DEFAULT64): Same.
19314 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19315
67b6839f
RO
193162011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19317
19318 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19319
4fd73214
MJ
193202011-02-09 Martin Jambor <mjambor@suse.cz>
19321
19322 PR middle-end/45505
19323 * tree-sra.c (struct access): New flags grp_scalar_read and
19324 grp_scalar_write. Changed description of assignment read and write
19325 flags.
19326 (dump_access): Dump new flags, reorder all of them.
19327 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19328 to detect multiple scalar reads.
19329 (analyze_access_subtree): Use the new scalar read write flags instead
19330 of the old flags. Adjusted comments.
19331
91140cd3
DD
193322011-02-08 DJ Delorie <dj@redhat.com>
19333
19334 PR target/47548
19335 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19336 patterns.
19337
4254bbfe
JM
193382011-02-08 Joseph Myers <joseph@codesourcery.com>
19339
19340 * config/m68k/uclinux.opt: New.
19341 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19342
f1fda84e
JM
193432011-02-08 Joseph Myers <joseph@codesourcery.com>
19344
19345 * config/cris/elf.opt (sim): New Driver option.
19346
4933ae74
JM
193472011-02-08 Joseph Myers <joseph@codesourcery.com>
19348
19349 * config/xtensa/elf.opt: New.
19350 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19351
4ad70280
JM
193522011-02-08 Joseph Myers <joseph@codesourcery.com>
19353
19354 * config/vax/elf.opt: New.
19355 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19356
20893707
JM
193572011-02-08 Joseph Myers <joseph@codesourcery.com>
19358
19359 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19360
b8e7038e
JM
193612011-02-08 Joseph Myers <joseph@codesourcery.com>
19362
19363 * config/gnu-user.opt: New.
19364 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19365 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19366 *-*-uclinux*): Use gnu-user.opt.
19367
e1c5225a
TS
193682011-02-08 Thomas Schwinge <thomas@schwinge.name>
19369
19370 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19371 * config/i386/gnu.h (CPP_SPEC): Likewise.
19372
5e46b0c6
ILT
193732011-02-08 Ian Lance Taylor <iant@google.com>
19374
19375 * common.opt (fcx-limited-range): Add SetByCombined flag.
19376 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19377 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19378 (fassociative-math, freciprocal-math): Likewise.
19379 (funsafe-math-optimizations): Likewise.
19380 * opth-gen.awk: Handle SetByCombined.
19381 * optc-gen.awk: Likewise.
ea4c3e65 19382 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
19383 (set_unsafe_math_optimizations_flags): Likewise.
19384 * doc/options.texi (Option properties): Document SetByCombined.
19385
32243d46
JM
193862011-02-08 Joseph Myers <joseph@codesourcery.com>
19387
19388 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19389 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19390 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19391 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19392 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19393
479c1fb3
SP
193942011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19395
19396 PR tree-optimization/46834
19397 PR tree-optimization/46994
19398 PR tree-optimization/46995
19399 * graphite-sese-to-poly.c (used_outside_reduction): New.
19400 (detect_commutative_reduction): Call used_outside_reduction.
19401 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19402 translate_scalar_reduction_to_array only when at least one
19403 loop-phi/close-phi tuple has been detected.
19404
3865a06f
RG
194052011-02-08 Richard Guenther <rguenther@suse.de>
19406
19407 PR middle-end/47639
19408 * tree-vect-generic.c (expand_vector_operations_1): Update
19409 stmts here ...
19410 (expand_vector_operations): ... not here. Cleanup EH info
19411 and the CFG if required.
19412
62902f3f
RG
194132011-02-08 Richard Guenther <rguenther@suse.de>
19414
19415 PR tree-optimization/47641
19416 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19417 require type compatibility.
19418
0efb9d64
AK
194192011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19420
19421 * gimple-low.c (lower_function_body): Don't remove the location of
19422 the return statement here.
19423 (lower_gimple_return): Do it here instead but only if the return
19424 statement is actually used twice.
19425
034b8ae4
RG
194262011-02-08 Richard Guenther <rguenther@suse.de>
19427
19428 PR tree-optimization/47632
19429 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19430 unused up_to_stmt parameter, return whether cfg-cleanup is
19431 necessary, remove EH info properly.
19432 (forward_propagate_into_gimple_cond): Adjust caller.
19433 (forward_propagate_into_cond): Likewise.
19434 (forward_propagate_comparison): Likewise.
19435 (tree_ssa_forward_propagate_single_use_vars): Make
19436 forward_propagate_comparison case similar to the two others.
19437
298362c8
NC
194382011-02-08 Nick Clifton <nickc@redhat.com>
19439
19440 * config/mn10300/mn10300.opt (mliw): New command line option.
19441 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19442 (liw_bundling): New automaton.
19443 (liw): New attribute.
19444 (liw_op): New attribute.
19445 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19446 (movsi_internal): Add LIW attributes.
19447 (andsi3): Likewise.
19448 (iorsi3): Likewise.
19449 (xorsi3): Likewise.
19450 (addsi3): Separate register and immediate alternatives.
19451 Add LIW attributes.
19452 (subsi3): Likewise.
19453 (cmpsi): Likewise.
19454 (aslsi3): Likewise.
19455 (lshrsi3): Likewise.
19456 (ashrsi3): Likewise.
19457 (liw): New pattern.
19458 * config/mn10300/mn10300.c (liw_op_names): New
19459 (mn10300_print_operand): Handle 'W' operand descriptor.
19460 (extract_bundle): New function.
19461 (check_liw_constraints): New function.
19462 (liw_candidate): New function.
19463 (mn10300_bundle_liw): New function.
19464 (mn10300_reorg): New function.
19465 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19466 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19467 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19468 __LIW__ or __NO_LIW__.
19469 * doc/invoke.texi: Describe the -mliw command line option.
19470
90488014
JDA
194712011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19472
19473 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19474 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19475 pthread_mutex_unlock): Remove.
19476 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19477 * config/pa/t-pa64: Likewise.
19478 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19479 shared libc if not linking against libpthread.
19480 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19481
689ff841
IS
194822011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19483
19484 PR target/47558
19485 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19486 on 10.6 and later to ensure that we always use the unwinder from
19487 the system. Only add -no_compact_unwind when tarteting darwin
19488 10.6 or later.
19489
821014aa
SE
194902011-02-07 Steve Ellcey <sje@cup.hp.com>
19491
19492 PR target/46997
19493 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19494 (vec_interleave_lowv2sf): Ditto.
19495 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19496 (vec_extract_oddv2sf): Ditto.
19497
41cf94fb
MS
194982011-02-07 Mike Stump <mikestump@comcast.net>
19499
62dea57d 19500 PR target/42333
41cf94fb
MS
19501 Add __ieee_divdc3 entry point.
19502 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19503 entry point.
19504 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19505 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19506 * config/darwin.c (darwin_rename_builtins): Add.
19507 * config/darwin-protos.h (darwin_rename_builtins): Add.
19508
ee09a3dd
MM
195092011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19510
19511 PR target/47636
19512 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19513 for the condition.
19514
83296cd0
MS
195152011-02-07 Mike Stump <mikestump@comcast.net>
19516
ea4c3e65 19517 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 19518
0f4e946f
DC
195192011-02-07 Denis Chertykov <chertykov@gmail.com>
19520
19521 PR target/47534
19522 * config/avr/libgcc.S (exit): Move .endfunc
19523
1ec87690
RG
195242011-02-07 Richard Guenther <rguenther@suse.de>
19525
19526 PR tree-optimization/47615
19527 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19528 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19529 (run_scc_vn): Initialize it.
19530 (visit_reference_op_load): Use it.
19531 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19532
b46ae6da
UW
195332011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19534
19535 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19536 DImode trapping arithmetic libfuncs.
19537
c0aae19c
RG
195382011-02-07 Richard Guenther <rguenther@suse.de>
19539
19540 PR tree-optimization/47621
19541 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19542 two duplicates ...
19543 (execute_update_addresses_taken): ... here. Make it more
19544 conservative in what we accept.
19545
295d926b
JM
195462011-02-06 Joseph Myers <joseph@codesourcery.com>
19547
19548 * config/sparc/freebsd.h (ASM_SPEC): Define.
19549 * config/sparc/vxworks.h (ASM_SPEC): Define.
19550
bdeb2471
JM
195512011-02-06 Joseph Myers <joseph@codesourcery.com>
19552
19553 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19554
d5d3781a
SB
195552011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19556
19557 * doc/invoke.texi: Remove reference to compiler internals from
19558 user documentation.
19559
19560 * reg-notes.def: Remove REG_VALUE_PROFILE.
19561 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19562
c42c09fc
JJ
195632011-02-05 Jakub Jelinek <jakub@redhat.com>
19564
19565 PR middle-end/47610
19566 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 19567 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 19568
beea2755
JZ
195692011-02-05 Jie Zhang <jie@codesourcery.com>
19570
19571 PR debug/42631
19572 * web.c (entry_register): Don't clobber the number of the
19573 first uninitialized reference in used[].
19574
a130584a
SP
195752011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19576
19577 PR tree-optimization/46194
19578 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19579 (build_classic_dist_vector_1): Do not represent classic distance
19580 vectors when the access functions are variating in different loops.
19581
962101ac
JM
195822011-02-04 Joseph Myers <joseph@codesourcery.com>
19583
19584 * config/mips/iris6.opt: New.
19585 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19586
55eaaa5b
RH
195872011-02-04 Richard Henderson <rth@redhat.com>
19588 Steve Ellcey <sje@cup.hp.com>
19589
19590 PR target/46997
19591 * config/ia64/predicates.md (mux1_brcst_element): New.
19592 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19593 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19594 (ia64_unpack_sign): New.
19595 (ia64_expand_unpack): Rewrite using new routines.
19596 (ia64_expand_widen_sum): Ditto.
19597 (ia64_expand_dot_prod_v8qi): Ditto.
19598 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19599 routines, add endian check.
19600 (pmpy2_even): Rename from pmpy2_r, add endian check.
19601 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19602 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19603 (vec_widen_smult_hi_v4hi): Ditto.
19604 (vec_widen_umult_lo_v4hi): Ditto.
19605 (vec_widen_umult_hi_v4hi): Ditto.
19606 (mulv2si3): Change endian checks.
19607 (sdot_prodv4hi): Rewrite with new calls.
19608 (udot_prodv4hi): New.
19609 (vec_pack_ssat_v4hi): Add endian check.
19610 (vec_pack_usat_v4hi): Ditto.
19611 (vec_pack_ssat_v2si): Ditto.
19612 (max1_even): Rename from max1_r, add endian check.
19613 (max1_odd): Rename from max1_l, add endian check.
19614 (*mux1_rev): Format change.
19615 (*mux1_mix): Ditto.
19616 (*mux1_shuf): Ditto.
19617 (*mux1_alt): Ditto.
19618 (*mux1_brcst_v8qi): Use new predicate.
19619 (vec_extract_evenv8qi): Remove endian check.
19620 (vec_extract_oddv8qi): Ditto.
19621 (vec_interleave_lowv4hi): Format change.
19622 (vec_interleave_highv4hi): Ditto.
19623 (mix2_even): Rename from mix2_r, add endian check.
19624 (mix2_odd): Rename from mux2_l, add endian check.
19625 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19626 (vec_extract_evenodd_helper): Format change.
19627 (vec_extract_evenv4hi): Remove endian check.
19628 (vec_extract_oddv4hi): Remove endian check.
19629 (vec_interleave_lowv2si): Format change.
19630 (vec_interleave_highv2si): Format change.
19631 (vec_initv2si): Remove endian check.
19632 (vecinit_v2si): Add endian check.
19633 (reduc_splus_v2sf): Add endian check.
19634 (reduc_smax_v2sf): Ditto.
19635 (reduc_smin_v2sf): Ditto.
19636 (vec_initv2sf): Remove endian check.
19637 (fpack): Add endian check.
19638 (fswap): Add endian check.
19639 (vec_interleave_highv2sf): Add endian check.
19640 (vec_interleave_lowv2sf): Add endian check.
19641 (fmix_lr): Add endian check.
19642 (vec_setv2sf): Format change.
19643 (*vec_extractv2sf_0_be): Use shift to extract operand.
19644 (*vec_extractv2sf_1_be): New.
19645 (vec_pack_trunc_v4hi): Add endian check.
19646 (vec_pack_trunc_v2si): Format change.
19647
dcde5957
JJ
196482011-02-04 Jakub Jelinek <jakub@redhat.com>
19649
19650 PR inline-asm/23200
19651 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 19652 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
19653 (stmt_is_replaceable_p): New function.
19654 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19655 callers.
19656 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19657 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19658 SSA_NAME_DEF_STMT.
19659 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19660
a64a8e5a
JM
196612011-02-04 Joseph Myers <joseph@codesourcery.com>
19662
19663 * config/rs6000/xilinx.opt: New.
19664 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19665
4da2ed2f
JM
196662011-02-04 Joseph Myers <joseph@codesourcery.com>
19667
19668 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19669
a6e508f9
AS
196702011-02-03 Anatoly Sokolov <aesok@post.ru>
19671
19672 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19673 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19674 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19675 secondary_reload_info, xtensa_secondary_reload): Remove.
19676 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19677 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19678 (xtensa_preferred_reload_class): Make static. Change return and
19679 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19680 Use CONST_DOUBLE_P predicate.
19681 (xtensa_preferred_output_reload_class): New function.
19682 (xtensa_secondary_reload): Make static.
19683
82dc0de3
JM
196842011-02-03 Joseph Myers <joseph@codesourcery.com>
19685
19686 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19687 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19688 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19689
7fece979
JJ
196902011-02-03 Jakub Jelinek <jakub@redhat.com>
19691
19692 PR middle-end/31490
19693 * output.h (SECTION_RELRO): Define.
19694 (SECTION_MACH_DEP): Adjust.
19695 (get_variable_section): New prototype.
19696 * varpool.c (varpool_finalize_named_section_flags): New function.
19697 (varpool_assemble_pending_decls): Call it.
19698 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19699 * cgraphunit.c (cgraph_output_in_order): Call
19700 varpool_finalize_named_section_flags.
19701 * varasm.c (get_section): Allow section flags conflicts between
19702 relro and read-only sections if the section hasn't been declared yet.
19703 Set SECTION_OVERRIDE after diagnosing section type conflict.
19704 (get_variable_section): No longer static.
19705 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19706 readonly sections that need relocations.
19707 (decl_readonly_section_1): New function.
19708 (decl_readonly_section): Use it.
19709
19710 Revert:
509d65dd 19711 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
19712 Steve Ellcey <sje@cup.hp.com>
19713
19714 PR middle-end/31490
19715 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19716 if section attribute used.
19717
d18d5478
JJ
197182011-02-03 Jakub Jelinek <jakub@redhat.com>
19719
19720 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19721 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19722 (darwin_init_sections): Remove assertion.
19723
6479ed4b
NC
197242011-02-03 Nick Clifton <nickc@redhat.com>
19725
19726 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19727 lt and ge.
38be4072 19728 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
19729 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19730 instead of "n" and "pz".
19731 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19732 CC_FLAG_S.
19733
89843f5d
JJ
197342011-02-03 Jakub Jelinek <jakub@redhat.com>
19735
65450d64
JJ
19736 PR target/47312
19737 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19738 fma, expand FMA_EXPR as fma{,f,l} call.
19739
7d58701c
JJ
19740 PR lto/47274
19741 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19742 copy them into a unsigned char variable and pass address of it to
19743 lto_output_data_stream.
19744
89843f5d
JJ
19745 PR target/47564
19746 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19747 around backend_init_target and lang_dependent_init_target calls.
19748 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19749 (verify_cgraph_node): Don't call set_cfun here. Use
19750 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19751 Set error_found for incorrectly represented calls to thunks.
19752
4deef538
AO
197532011-02-03 Alexandre Oliva <aoliva@redhat.com>
19754
19755 PR debug/43092
19756 PR rtl-optimization/43494
19757 * rtl.h (for_each_inc_dec_fn): New type.
19758 (for_each_inc_dec): Declare.
19759 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19760 (for_each_inc_dec_find_inc_dec): New fn.
19761 (for_each_inc_dec_find_mem): New fn.
19762 (for_each_inc_dec): New fn.
19763 * dse.c (struct insn_size): Remove.
19764 (replace_inc_dec, replace_inc_dec_mem): Remove.
19765 (emit_inc_dec_insn_before): New fn.
19766 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19767 (canon_address): Pass mem modes to cselib_lookup.
19768 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19769 (cselib_lookup_from_insn): Likewise.
19770 (cselib_subst_to_values): Likewise.
19771 * cselib.c (find_slot_memmode): New var.
19772 (cselib_find_slot): New fn. Use it instead of
19773 htab_find_slot_with_hash everywhere.
19774 (entry_and_rtx_equal_p): Use find_slot_memmode.
19775 (autoinc_split): New fn.
19776 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19777 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19778 Deal with autoinc. Special-case recursion into MEMs.
19779 (cselib_hash_rtx): Likewise.
19780 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19781 address and MEM modes.
19782 (cselib_subst_to_values): Add memmode, pass it on.
19783 Deal with autoinc.
19784 (cselib_lookup): Add memmode argument, pass it on.
19785 (cselib_lookup_from_insn): Add memmode.
19786 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19787 (struct cselib_record_autoinc_data): New.
19788 (cselib_record_autoinc_cb): New fn.
19789 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19790 mode to cselib_lookup. Reset autoinced REGs here instead of...
19791 (cselib_process_insn): ... here.
19792 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19793 to cselib_lookup.
19794 (add_uses): Likewise, also to cselib_subst_to_values.
19795 (add_stores): Likewise.
19796 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19797 cselib_subst_to_values.
19798 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19799 * gcse.c (do_local_cprop): Adjusted.
19800 * postreload.c (reload_cse_simplify_set): Adjusted.
19801 (reload_cse_simplify_operands): Adjusted.
19802 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19803
1551d44a
AO
198042011-02-03 Alexandre Oliva <aoliva@redhat.com>
19805
19806 PR tree-optimization/45122
19807 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19808 unsafe assumptions when there's more than one loop exit.
19809
c9485473
MM
198102011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19811
19812 PR target/47272
19813 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19814 Document using vector double with the load/store builtins, and
19815 that the load/store builtins always use Altivec instructions.
19816
19817 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19818 to use altivec memory instructions, even on VSX.
19819 (vector_altivec_store_<mode>): Ditto.
19820
19821 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19822 function.
19823
19824 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19825 V2DF, V2DI support to load/store overloaded builtins.
19826
19827 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19828 altivec load/store builtins for V2DF/V2DI types.
19829
19830 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19831 set avoid indexed addresses on power6 if -maltivec.
19832 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19833 vector_altivec_load/vector_altivec_store builtins.
19834 (altivec_expand_st_builtin): Ditto.
19835 (altivec_expand_builtin): Add VSX memory builtins.
19836 (rs6000_init_builtins): Add V2DI types to internal types.
19837 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19838 load/store builtins.
19839 (rs6000_address_for_altivec): Insure memory address is appropriate
19840 for Altivec.
19841
19842 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19843 vec_vsx_ld and vec_vsx_st.
19844 (vsx_store_<mode>): Ditto.
19845
19846 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19847 variables to hold long long types for VSX vector memory builtins.
19848 (RS6000_BTI_unsigned_long_long): Ditto.
19849 (long_long_integer_type_internal_node): Ditti.
19850 (long_long_unsigned_type_internal_node): Ditti.
19851
19852 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19853 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19854 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19855
19856 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19857 short cuts.
19858 (vec_vsx_st): Ditto.
19859
b24d1acf
JM
198602011-02-02 Joseph Myers <joseph@codesourcery.com>
19861
19862 * config/pa/pa-hpux10.opt: New.
19863 * config/hpux11.opt (pthread): New Driver option.
19864 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19865 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19866
aa18dd0f
JM
198672011-02-02 Joseph Myers <joseph@codesourcery.com>
19868
19869 * config/ia64/vms.opt: New.
19870 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19871
28fc3eee
MM
198722011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19873
19874 PR target/47580
19875 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19876 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19877 generator functions.
19878 (vsx_floatuns<VSi><mode>2): Ditto.
19879 (vsx_fix_trunc<mode><VSi>2): Ditto.
19880 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19881
b5838b1f
JM
198822011-02-02 Joseph Myers <joseph@codesourcery.com>
19883
19884 * config/i386/djgpp.opt (posix): New Driver option.
19885
0db8fa89
GP
198862011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19887
19888 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19889 Move to the unsupported targets list.
19890
9cd4f22a
PB
198912011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19892
19893 PR rtl-optimization/47525
19894 * df-scan.c: Update copyright years.
19895 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19896 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19897
9ed8059c
RO
198982011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19899
19900 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19901 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19902 (ASM_OUTPUT_ASCII): Remove.
19903 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19904
2a737389
JL
199052011-02-02 Jeff Law <law@redhat.com>
19906
19907 PR middle-end/47543
19908 * reload.c (find_reloads_address): Handle reg+d address where both
19909 components are invalid by reloading the entire address.
19910
9dac82c4
SP
199112011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19912 Richard Guenther <rguenther@suse.de>
19913
19914 PR tree-optimization/40979
19915 PR bootstrap/47044
19916 * passes.c (init_optimization_passes): After LIM call copy_prop
19917 and DCE to clean up.
19918 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19919
14dd9aab
SP
199202011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19921
19922 PR tree-optimization/47576
19923 PR tree-optimization/47555
19924 * doc/invoke.texi (scev-max-expr-complexity): Documented.
19925 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19926 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19927 * tree-scalar-evolution.c (follow_ssa_edge): Use
19928 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19929
5cbf5c20
RG
199302011-02-02 Richard Guenther <rguenther@suse.de>
19931
19932 PR tree-optimization/47566
19933 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19934
83d70792
AO
199352011-02-02 Alexandre Oliva <aoliva@redhat.com>
19936
e829c321
AO
19937 PR debug/47106
19938 PR debug/47402
19939 * tree-inline.c (declare_return_variable): Remove unused caller
19940 variable.
19941
83d70792
AO
19942 PR debug/47106
19943 PR debug/47402
19944 * tree-flow-inline.h (clear_is_used, is_used_p): New.
19945 * cfgexpand.c (account_used_vars_for_block): Use them.
19946 * tree-nrv.c (tree_nrv): Likewise.
19947 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19948 (dump_scope_block): Likewise.
19949 (remove_unused_locals): Likewise.
19950
aaa2ac93
AO
19951 PR debug/47106
19952 PR debug/47402
19953 * tree-inline.c (declare_return_variable): Add result decl to
19954 local decls only once.
19955 * gimple-low.c (record_vars_into): Mark newly-created variables
19956 as referenced.
19957
a59d15cf
AO
199582011-02-02 Alexandre Oliva <aoliva@redhat.com>
19959
19960 PR debug/47498
19961 PR debug/47501
19962 PR debug/45136
19963 PR debug/45130
19964 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19965 debug insns.
19966 (no_real_insns_p, schedule_block, set_priorities): Drop special
19967 treatment of boundary debug insns.
38be4072 19968 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
19969 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19970 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19971 (BOUNDARY_DEBUG_INSN_P): Likewise.
19972 (SCHEDULE_DEBUG_INSN_P): Likewise.
19973 * sched-rgn.c (init_ready_list): Drop special treatment of
19974 boundary debug insns.
19975 * final.c (rest_of_clean_state): Clear notes' BB.
19976
6fc2f091
JM
199772011-02-01 Joseph Myers <joseph@codesourcery.com>
19978
19979 * config/openbsd.opt (assert=): New Driver option.
19980
fc523387
JM
199812011-02-01 Joseph Myers <joseph@codesourcery.com>
19982
19983 * config/i386/nto.opt: New.
19984 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19985
6d9821e5
JM
199862011-02-01 Joseph Myers <joseph@codesourcery.com>
19987
19988 * config/i386/netware.opt: New.
19989 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19990
cef932d4
JM
199912011-02-01 Joseph Myers <joseph@codesourcery.com>
19992
19993 * config/interix.opt (posix): New Driver option.
19994
22843acd
DD
199952011-02-01 DJ Delorie <dj@redhat.com>
19996
56490b74
DD
19997 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19998
22843acd
DD
19999 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
20000 class for A0/A1.
20001
199c8f2f
SP
200022011-02-01 Sebastian Pop <sebastian.pop@amd.com>
20003
20004 PR tree-optimization/47561
20005 * toplev.c (process_options): Print the Graphite flags. Add
20006 flag_loop_flatten to the list of options requiring Graphite.
20007
926bcf22
JM
200082011-02-01 Joseph Myers <joseph@codesourcery.com>
20009
20010 * config/i386/cygming.opt (posix): New Driver option.
20011
59793c51
JM
200122011-02-01 Joseph Myers <joseph@codesourcery.com>
20013
20014 * config/arm/vxworks.opt: New.
20015 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
20016
183c38a4
JM
200172011-02-01 Joseph Myers <joseph@codesourcery.com>
20018
20019 * config/alpha/elf.opt: New.
20020 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
20021 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
20022
9939e416
RG
200232011-02-01 Richard Guenther <rguenther@suse.de>
20024
20025 PR tree-optimization/47559
20026 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
20027 store-motion on references that can throw.
20028
4a3c9687
BS
200292011-02-01 Bernd Schmidt <bernds@codesourcery.com>
20030
20031 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
20032 * tree-pass.h (TDF_CSELIB): New macro.
20033 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
20034 cselib_lookup): Check for it rather than for TDF_DETAILS.
20035
dd3b31fb
L
200362011-02-01 H.J. Lu <hongjiu.lu@intel.com>
20037
20038 PR driver/47547
20039 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
20040 is HOST_BIT_BUCKET.
20041
20042 * opts.c (finish_options): Don't add x_aux_base_name if it is
20043 HOST_BIT_BUCKET.
20044
34c1de79
RG
200452011-02-01 Richard Guenther <rguenther@suse.de>
20046
20047 PR tree-optimization/47555
20048 Revert
20049 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
20050
20051 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
20052
dd2804d2
SB
200532011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
20054
20055 PR gcc/46692
20056 * config/lm32/t-lm32: Add multilib for all CPU options.
20057
3fd3b156
RG
200582011-02-01 Richard Guenther <rguenther@suse.de>
20059
20060 PR tree-optimization/47541
20061 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
20062 sure to have a field at offset zero.
20063
f16072b6
JM
200642011-01-31 Joseph Myers <joseph@codesourcery.com>
20065
20066 * config/arc/arc.opt (EB, EL): New Driver options.
20067
6456cf2e
JM
200682011-01-31 Joseph Myers <joseph@codesourcery.com>
20069
20070 * config/alpha/osf5.opt: New.
20071 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
20072
cdde6ab4
JM
200732011-01-31 Joseph Myers <joseph@codesourcery.com>
20074
20075 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
20076
7633415c
SP
200772011-01-31 Sebastian Pop <sebastian.pop@amd.com>
20078
20079 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
20080 -floop-interchange.
20081 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
20082 is an alias of -floop-interchange and that it requires the
20083 Graphite infrastructure.
20084 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
20085 flag_loop_interchange based on the value of flag_tree_loop_linear.
20086
0425d6f5
JJ
200872011-01-31 Jakub Jelinek <jakub@redhat.com>
20088 Richard Guenther <rguenther@suse.de>
20089
20090 PR tree-optimization/47538
20091 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
20092 type instead of r1type, except for comparisons. For right
20093 shifts and comparisons punt if there are mismatches in
20094 sizetype vs. non-sizetype types.
20095
500b16c3
RO
200962011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20097
20098 * doc/sourcebuild.texi (Effective-Target Keywords): Document
20099 avx_runtime.
20100
e279edb0
RO
201012011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20102
20103 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
20104 version number.
20105 * configure: Regenerate.
20106
c6092243
RO
201072011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20108
20109 * configure.ac (gcc_cv_ld_static_option): Define.
20110 (gcc_cv_ld_dynamic_option): Define.
20111 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
20112 instead.
20113 (HAVE_LD_STATIC_DYNAMIC): Update message.
20114 (LD_STATIC_OPTION): Define.
20115 (LD_DYNAMIC_OPTION): Define.
20116 * configure: Regenerate.
20117 * config.in: Regenerate.
20118 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
20119 HAVE_LD_STATIC_DYNAMIC]: Use them.
20120
d7862be3
NC
201212011-01-31 Nick Clifton <nickc@redhat.com>
20122
20123 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
20124 registers inside interrupt handlers if the handler is not a leaf
20125 function.
20126
ba4ec0e0
NC
201272011-01-31 Nick Clifton <nickc@redhat.com>
20128
20129 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
20130 reg_renumber returning an INVALID_REGNUM.
20131
29a63921
AO
201322011-01-31 Alexandre Oliva <aoliva@redhat.com>
20133
20134 PR libgcj/44341
20135 * doc/install.texi: Document host options discarded when cross
20136 configuring target libraries.
20137
ef591d3f
AO
201382011-01-31 Alexandre Oliva <aoliva@redhat.com>
20139
20140 Reverted:
20141 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20142 PR debug/45136
20143 PR debug/45130
20144 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20145 debug insns.
20146 (no_real_insns_p, schedule_block, set_priorities): Drop special
20147 treatment of boundary debug insns.
38be4072 20148 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
20149 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20150 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20151 (BOUNDARY_DEBUG_INSN_P): Likewise.
20152 (SCHEDULE_DEBUG_INSN_P): Likewise.
20153 * sched-rgn.c (init_ready_list): Drop special treatment of
20154 boundary debug insns.
20155 * final.c (rest_of_clean-state): Clear notes' BB.
20156
61052244
AM
201572011-01-31 Alan Modra <amodra@gmail.com>
20158
20159 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20160 toc relative expressions as we do in print_operand_address.
20161
c4c8962b
KH
201622011-01-30 Kazu Hirata <kazu@codesourcery.com>
20163
20164 * doc/extend.texi: Follow spelling conventions.
20165 * doc/invoke.texi: Fix a typo.
20166
e543b94c
JM
201672011-01-30 Joseph Myers <joseph@codesourcery.com>
20168
20169 * config/hpux11.opt: New.
20170 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20171 ia64*-*-hpux*): Use hpux11.opt.
20172
509d65dd 201732011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
20174
20175 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20176 to tmake_file.
20177
7be03a0e
GP
201782011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20179
20180 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20181 support sites.
20182
419d1d37
GP
201832011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20184
b596ed64
GP
20185 * doc/install.texi (Binaries): Remove outdated reference for
20186 Motorola 68HC11/68HC12 downloads.
20187
201882011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 20189
419d1d37
GP
20190 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20191 Drepper's paper.
20192
4406d0e9
JW
201932011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
20194
20195 PR bootstrap/47147
20196 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20197 used by NetBSD.
20198
38be4072 201992011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
20200
20201 * value-prof.c (check_counter): Corrected error message.
20202
0cd98787
JZ
202032011-01-29 Jie Zhang <jie@codesourcery.com>
20204
20205 * config/arm/arm.c (arm_legitimize_reload_address): New.
20206 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20207 arm_legitimize_reload_address.
38be4072 20208 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 20209
9b798ac5
ILT
202102011-01-28 Ian Lance Taylor <iant@google.com>
20211
20212 * godump.c (go_define): Ignore macros whose definitions include
20213 two adjacent operands.
20214
591e29d9
JJ
202152011-01-28 Jakub Jelinek <jakub@redhat.com>
20216
20217 PR target/42894
20218 * varasm.c (force_const_mem): Store copy of x in desc->constant
20219 instead of x itself.
20220 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20221 itself into REG_EQUAL note.
20222
62dcc44a
JM
202232011-01-28 Joseph Myers <joseph@codesourcery.com>
20224
20225 * config/freebsd.opt (posix, rdynamic): New Driver options.
20226
c9f58b9a
RO
202272011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20228
20229 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20230 -Bstatic/-Bdynamic.
20231 * configure: Regenerate.
20232
5f02b9db
JM
202332011-01-27 Joseph Myers <joseph@codesourcery.com>
20234
20235 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20236 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20237
5df97412
AS
202382011-01-27 Anatoly Sokolov <aesok@post.ru>
20239
20240 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20241 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20242 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20243 (s390_preferred_reload_class): Make static. Change return and
20244 'rclass' argument type to reg_class_t.
20245
779d4b91
JH
202462011-01-27 Jan Hubicka <jh@suse.cz>
20247
20248 PR middle-end/46949
20249 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20250 (process_function_and_variable_attributes): Check defined weakrefs.
20251
e80b21ed
MJ
202522011-01-27 Martin Jambor <mjambor@suse.cz>
20253
20254 PR tree-optimization/47228
20255 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20256 build_ref_for_offset.
20257
6dcc4f31
UW
202582011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20259
20260 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20261
509d65dd 202622011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
20263
20264 PR rtl-optimization/46856
20265 * postreload.c (reload_combine_recognize_const_pattern): Do not
20266 separate cc0 setter and user on cc0 targets.
20267
04af8788
NP
202682011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20269
20270 PR c/43082
20271 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20272 passed a VOID_TYPE expression, immediately emit an error and
20273 return error_mark_node.
20274
f7a60085
JL
202752011-01-26 Jeff Law <law@redhat.com>
20276
20277 PR rtl-optimization/47464
20278 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20279 rather than may_trap_p as needed.
20280
5c2917ec
DD
202812011-01-26 DJ Delorie <dj@redhat.com>
20282
20283 PR rtl-optimization/46878
20284 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20285 setter/user dependency as well.
20286
bef16e87
EB
202872011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20288
20289 PR rtl-optimization/44469
20290 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20291 after removing trivially dead basic blocks.
20292
c75d884b
JM
202932011-01-26 Joseph Myers <joseph@codesourcery.com>
20294
20295 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20296 * config/frv/frv.h (LINK_SPEC): Likewise.
20297 * config/i386/netware.h (LINK_SPEC): Likewise.
20298 * config/m68k/linux.h (ASM_SPEC): Likewise.
20299 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20300 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20301 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20302 * config/sparc/linux.h (ASM_SPEC): Likewise.
20303 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20304 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20305
d3153553
JM
203062011-01-26 Joseph Myers <joseph@codesourcery.com>
20307
20308 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20309 * config/frv/frv.h (ASM_SPEC): Likewise.
20310 * config/m68k/linux.h (ASM_SPEC): Likewise.
20311 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20312 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20313 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20314 * config/sparc/linux.h (ASM_SPEC): Likewise.
20315 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20316 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20317
b89b1e9d
JM
203182011-01-26 Joseph Myers <joseph@codesourcery.com>
20319
20320 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20321 * config/frv/frv.h (LINK_SPEC): Likewise.
20322 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20323
12eb1a9c
JM
203242011-01-26 Joseph Myers <joseph@codesourcery.com>
20325
20326 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20327 * config/frv/frv.h (ASM_SPEC): Likewise.
20328 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20329 * config/m68k/linux.h (ASM_SPEC): Likewise.
20330 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20331 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20332 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20333 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20334 * config/sparc/linux.h (ASM_SPEC): Likewise.
20335 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20336 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20337 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20338
e435f098
SE
203392011-01-26 Steve Ellcey <sje@cup.hp.com>
20340
20341 PR target/46997
20342 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20343 (*mux2): Ditto.
20344 (vec_extract_evenodd_help): Ditto.
20345 (vec_extract_evenv4hi): Ditto.
20346 (vec_extract_oddv4hi): Ditto.
20347 (vec_interleave_lowv2si): Ditto.
20348 (vec_interleave_highv2si): Ditto.
20349 (vec_extract_evenv2si): Ditto.
20350 (vec_extract_oddv2si: Ditto.
20351 (vec_pack_trunc_v2si): Ditto.
20352
34f0eee0
JH
203532011-01-22 Jan Hubicka <jh@suse.cz>
20354
20355 PR target/47237
20356 * cgraph.h (cgraph_local_info): New field can_change_signature.
20357 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20358 signature can change.
20359 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20360 can change.
20361 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20362 (cgraph_function_versioning): We can not change signature of functions
20363 that don't allow that.
20364 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20365 (lto_input_node): Likewise.
38be4072
UB
20366 * ipa-inline.c (compute_inline_parameters): Compute
20367 local.can_change_signature.
34f0eee0 20368 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
20369 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20370 functions that can not change signature.
34f0eee0 20371 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
20372 init_cumulative_args): Do not use local calling conventions
20373 for functions that can not change signature.
34f0eee0 20374
980ca891
JH
203752011-01-22 Jan Hubicka <jh@suse.cz>
20376
20377 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20378
768e3c60
RG
203792011-01-26 Richard Guenther <rguenther@suse.de>
20380
20381 PR tree-optimization/47190
61052244
AM
20382 * cgraphunit.c (process_common_attributes): New function.
20383 (process_function_and_variable_attributes): Use it.
768e3c60 20384
21d6a1c7
RG
203852011-01-26 Richard Guenther <rguenther@suse.de>
20386
20387 PR lto/47423
20388 * cgraphbuild.c (record_eh_tables): Record reference to personality
20389 function.
20390
48bb58b1
AO
203912011-01-26 Alexandre Oliva <aoliva@redhat.com>
20392
20393 PR debug/45454
20394 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20395 non-debug insns from moving up.
20396
58c741a6
DK
203972011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20398
20399 PR target/40125
20400 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20401 t-dlldir{,-x} fragment for build and add it to tmake_file.
20402 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20403 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20404 * config/i386/t-dlldir: New file.
20405 (SHLIB_DLLDIR): Define.
20406 * config/i386/t-dlldir-x: New file.
20407 (SHLIB_DLLDIR): Define.
20408 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20409 (SHLIB_INSTALL): Use it.
20410
bff99262
CLT
204112011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20412
20413 PR target/47246
20414 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20415 lower bound of the allowed Thumb-2 coprocessor load/store
20416 index range to -256. Add explaining comment.
20417
82c03907
ILT
204182011-01-25 Ian Lance Taylor <iant@google.com>
20419
20420 * godump.c (go_define): Improve lexing of macro expansion to only
20421 accept expressions which match Go spec.
20422
47ea1edf
DK
204232011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20424
d4dba752 20425 PR c++/43601
47ea1edf
DK
20426 * tree.c (handle_dll_attribute): Handle it.
20427 * doc/extend.texi (@item dllexport): Mention it.
20428 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20429
744f0946
ILT
204302011-01-25 Ian Lance Taylor <iant@google.com>
20431
20432 PR tree-optimization/26854
20433 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20434 (decl_jump_unsafe): Move higher in file, with no other change.
20435 (bind): Set has_jump_unsafe_decl if appropriate.
20436 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20437 (check_earlier_gotos): Likewise.
20438 (c_check_switch_jump_warnings): Likewise.
20439
5734f2b3
JW
204402011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20441
20442 * doc/invoke.texi (Warning Options): Add missing hyphen.
20443 (-fprofile-dir): Minor grammatical fixes.
20444 (-fbranch-probabilities): Likewise.
20445
9bdbdcef
AO
204462011-01-25 Alexandre Oliva <aoliva@redhat.com>
20447
20448 PR debug/45136
20449 PR debug/45130
20450 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20451 debug insns.
20452 (no_real_insns_p, schedule_block, set_priorities): Drop special
20453 treatment of boundary debug insns.
38be4072 20454 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
20455 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20456 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20457 (BOUNDARY_DEBUG_INSN_P): Likewise.
20458 (SCHEDULE_DEBUG_INSN_P): Likewise.
20459 * sched-rgn.c (init_ready_list): Drop special treatment of
20460 boundary debug insns.
20461 * final.c (rest_of_clean-state): Clear notes' BB.
20462
b305e3da
SP
204632011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20464
20465 * Makefile.in (LAMBDA_H): Removed.
20466 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20467 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20468 lambda-trans.o, and tree-loop-linear.o.
20469 (lto-symtab.o): Remove dependence on LAMBDA_H.
20470 (tree-loop-linear.o): Remove rule.
20471 (lambda-mat.o): Same.
20472 (lambda-trans.o): Same.
20473 (lambda-code.o): Same.
20474 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20475 (tree-vect-slp.o): Same.
20476 * hwint.h (gcd): Moved here.
20477 (least_common_multiple): Same.
20478 * lambda-code.c: Removed.
20479 * lambda-mat.c: Removed.
20480 * lambda-trans.c: Removed.
20481 * lambda.h: Removed.
20482 * tree-loop-linear.c: Removed.
20483 * lto-symtab.c: Do not include lambda.h.
20484 * omega.c (gcd): Removed.
20485 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20486 * tree-data-ref.c (print_lambda_vector): Moved here.
20487 (lambda_vector_copy): Same.
20488 (lambda_matrix_copy): Same.
20489 (lambda_matrix_id): Same.
20490 (lambda_vector_first_nz): Same.
20491 (lambda_matrix_row_add): Same.
20492 (lambda_matrix_row_exchange): Same.
20493 (lambda_vector_mult_const): Same.
20494 (lambda_vector_negate): Same.
20495 (lambda_matrix_row_negate): Same.
20496 (lambda_vector_equal): Same.
20497 (lambda_matrix_right_hermite): Same.
20498 * tree-data-ref.h: Do not include lambda.h.
20499 (lambda_vector): Moved here.
20500 (lambda_matrix): Same.
20501 (dependence_level): Same.
20502 (lambda_transform_legal_p): Removed declaration.
20503 (lambda_collect_parameters): Same.
20504 (lambda_compute_access_matrices): Same.
20505 (lambda_vector_gcd): Same.
20506 (lambda_vector_new): Same.
20507 (lambda_vector_clear): Same.
20508 (lambda_vector_lexico_pos): Same.
20509 (lambda_vector_zerop): Same.
20510 (lambda_matrix_new): Same.
20511 * tree-flow.h (least_common_multiple): Removed declaration.
20512 * tree-parloops.c (lambda_trans_matrix): Moved here.
20513 (LTM_MATRIX): Same.
20514 (LTM_ROWSIZE): Same.
20515 (LTM_COLSIZE): Same.
20516 (LTM_DENOMINATOR): Same.
20517 (lambda_trans_matrix_new): Same.
20518 (lambda_matrix_vector_mult): Same.
20519 (lambda_transform_legal_p): Same.
20520 * tree-pass.h (pass_linear_transform): Removed declaration.
20521 * tree-ssa-loop.c (tree_linear_transform): Removed.
20522 (gate_tree_linear_transform): Removed.
20523 (pass_linear_transform): Removed.
20524 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20525 flag_loop_interchange.
20526
6bdfdb96
JJ
205272011-01-25 Jakub Jelinek <jakub@redhat.com>
20528
20529 PR tree-optimization/47265
20530 PR tree-optimization/47443
20531 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20532 if name still has some uses.
20533
e4cba915
MJ
205342011-01-25 Martin Jambor <mjambor@suse.cz>
20535
20536 PR tree-optimization/47382
20537 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20538 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20539
509d65dd 205402011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
20541
20542 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20543 sjlj_except_unwind_info.
20544
194313e2
RG
205452011-01-25 Richard Guenther <rguenther@suse.de>
20546
20547 PR tree-optimization/47426
20548 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20549 visible functions results escape.
20550
147a0bcf
JJ
205512011-01-25 Jakub Jelinek <jakub@redhat.com>
20552
20553 PR target/45701
20554 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20555 (arm_get_frame_offsets): Use it.
20556
db963b52
SP
205572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20558 Jakub Jelinek <jakub@redhat.com>
20559
20560 PR tree-optimization/47271
20561 * tree-if-conv.c (bb_postdominates_preds): New.
20562 (if_convertible_bb_p): Call bb_postdominates_preds.
20563 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20564 (predicate_scalar_phi): Call bb_postdominates_preds.
20565
bcddd3b9
NC
205662011-01-25 Nick Clifton <nickc@redhat.com>
20567
20568 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20569 * config/rx/rx.c (rx_function_value): Likewise.
20570 (rx_promote_function_mode): Likewise.
20571 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20572 in order to make it legitimate.
38be4072
UB
20573 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20574 make sure that the first operand is the same as the result register.
bcddd3b9
NC
20575 (addsi3_unspec): Delete.
20576 (subdi3): Do not accept immediate operands.
20577 (subdi3_internal): Likewise.
20578
7e6cb022
JL
205792011-01-25 Jeff Law <law@redhat.com>
20580
20581 PR rtl-optimization/37273
20582 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20583 handle them like argument loads from stack slots. Do not double
20584 count memory for memory constants and argument loads from stack slots.
20585
9ffa621e
JJ
205862011-01-25 Jakub Jelinek <jakub@redhat.com>
20587
20588 PR tree-optimization/47427
20589 PR tree-optimization/47428
20590 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20591 coalesce if the new root var would be TREE_READONLY.
20592
5bd6e652
RG
205932011-01-25 Richard Guenther <rguenther@suse.de>
20594
20595 PR middle-end/47414
20596 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20597 correct type for TBAA.
20598
7c48ea69
SP
205992011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20600
20601 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20602 (close_phi_written_to_memory): Call for_each_index with
20603 dr_indices_valid_in_loop.
20604
38013f25
SP
206052011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20606
20607 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20608 when it is initialized.
20609
5c640e29
SP
206102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20611
20612 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20613 call to graphite_find_data_references_in_stmt.
20614 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20615 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20616 call to graphite_find_data_references_in_stmt.
20617 (analyze_drs_in_stmts): Same.
20618 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20619 in which the scalar analysis of indices is performed.
20620 (create_data_ref): Same. Update call to dr_analyze_indices.
20621 (find_data_references_in_stmt): Update call to create_data_ref.
20622 (graphite_find_data_references_in_stmt): Same.
20623 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20624 declaration.
20625 (create_data_ref): Same.
20626 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20627 call to create_data_ref.
20628
ac53c069
SP
206292011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20630
20631 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 20632 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 20633
3d17df15
SP
206342011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20635
20636 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20637 VAR_DECL, PARM_DECL, and RESULT_DECL.
20638
c513da01
SP
206392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20640
20641 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20642 in a reduction PBB.
20643 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20644 that have already been marked as PBB_IS_REDUCTION.
20645
3a292d59
SP
206462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20647
20648 * graphite-scop-detection.c (same_close_phi_node): New.
20649 (remove_duplicate_close_phi): New.
20650 (make_close_phi_nodes_unique): New.
20651 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20652
ba858447
SP
206532011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20654
20655 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20656 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20657 of both data references to be the same.
20658
8d865c56
SP
206592011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20660
38be4072
UB
20661 * graphite-dependences.c (build_lexicographical_constraint): Remove
20662 the gdim parameter.
20663 (build_lexicographical_constraint): Adjust call to
20664 ppl_powerset_is_empty.
8d865c56
SP
20665 (dependence_polyhedron): Same.
20666 (graphite_legal_transform_dr): Same.
20667 (graphite_carried_dependence_level_k): Same.
38be4072
UB
20668 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20669 parameter.
8d865c56
SP
20670 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20671
50034a36
SP
206722011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20673
20674 * graphite-sese-to-poly.c
20675 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20676 (close_phi_written_to_memory): New.
20677 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20678 and unshare_expr.
20679
0deada9e
SP
206802011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20681
20682 * doc/install.texi: Update the expected version number of PPL to 0.11.
20683 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20684 #if PPL_VERSION_MINOR < 11.
20685
d7d3d6af
SP
206862011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20687
20688 * graphite-dependences.c: Include graphite-cloog-util.h.
20689 (new_poly_ddr): Inlined into dependence_polyhedron.
20690 (free_poly_ddr): Moved close by new_poly_ddr.
20691 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20692 Early return NULL when ppl_powerset_is_empty returns true.
20693 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20694 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20695 (graphite_legal_transform_dr): Call new_poly_ddr.
20696 (graphite_carried_dependence_level_k): Same.
20697 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20698 (dot_transformed_deps_stmt_1): Removed.
20699 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20700 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20701 (dot_deps_1): Call dot_deps_2.
20702 * Makefile.in (graphite-dependences.o): Add missing dependence on
20703 graphite-cloog-util.h.
20704
28c5db57
SP
207052011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20706
20707 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20708 (build_lexicographical_constraint): Same.
20709 (dependence_polyhedron_1): Same.
20710 (graphite_legal_transform_dr): Same.
20711 (graphite_carried_dependence_level_k): Same.
20712 * graphite-ppl.c (ppl_powerset_is_empty): New.
20713 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20714 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20715
5168d98f
SP
207162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20717
20718 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20719 the "a followed by b" relation and document it.
20720
4a40293a
SP
207212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20722
20723 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20724 iteration when the bag of constraints is empty.
20725
271fb6fa
SP
207262011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20727
20728 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20729
92d23680
SP
207302011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20731
20732 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20733 nest and two loop depths as parameters.
20734 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20735 lst_perfect_nestify.
20736
2f51deff
SP
207372011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20738
20739 * graphite-dependences.c (print_pddr): Call
20740 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20741
07f3593c
SP
207422011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20743
20744 * graphite-ppl.c (debug_gmp_value): New.
20745 * graphite-ppl.h (debug_gmp_value): Declared.
20746
3fae6099
TG
207472011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20748
20749 * doc/install.texi: Document availability of cloog-0.16.
20750
1c3ba85b
SP
207512011-01-25 Vladimir Kargov <kargov@gmail.com>
20752
20753 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20754 invalid postdominance info.
20755
e8ba94fc
JH
207562011-01-24 Jan Hubicka <jh@suse.cz>
20757
20758 PR c/21659
20759 * doc/extend.texi (weak pragma): Drop claim that it must
20760 appear before definition.
20761 * varasm.c (merge_weak, declare_weak): Only sanity check
20762 that DECL is not output at a time it is declared weak.
20763
2b6e2d13
KZ
207642011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20765
20766 * machmode.def: Fixed comments.
1c3ba85b 20767
9841210f
KT
207682011-01-24 Kai Tietz <kai.tietz@onevision.com>
20769
20770 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20771
207722011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
20773
20774 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 20775 WORDS_BIG_ENDIAN.
e046112d 20776
a6c5070a
L
207772011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20778
20779 PR target/46519
20780 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20781 (block_info): Add scanned and prev.
20782 (move_or_delete_vzeroupper_2): Return if the basic block
20783 has been scanned and the upper 128bit state is unchanged
20784 from the last scan.
20785 (move_or_delete_vzeroupper_1): Return true if the exit
20786 state is changed.
20787 (move_or_delete_vzeroupper): Visit basic blocks using the
20788 work-list based algorithm based on vt_find_locations in
20789 var-tracking.c.
20790
20791 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20792
a40d79d7
NC
207932011-01-24 Nick Clifton <nickc@redhat.com>
20794
20795 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20796 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20797 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20798 then define __v850e1__.
20799 * doc/invoke.texi: Document -mv850es.
20800
440eb8de
RH
208012011-01-24 Richard Henderson <rth@redhat.com>
20802
20803 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20804 compound unordered comparisons.
20805 * config/rx/rx.c (rx_split_fp_compare): Remove.
20806 * config/rx/rx-protos.h: Update.
20807 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20808 (cbranchsf4): Don't call rx_split_fp_compare.
20809 (*cbranchsf4): Use rx_split_cbranch.
20810 (*cmpsf): Don't accept "i" constraint.
20811 (*conditional_branch): Only valid after reload.
20812 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20813
3ff79f99
MM
208142011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20815
20816 PR target/47385
20817 * config/rs6000/altivec.md (vector constant splitters): Add
20818 support for creating vector single precision constants if -mvsx is
20819 used and we would create the constant using Altivec primitives.
20820
ff3d9d08
BS
208212011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20822 Richard Sandiford <rdsandiford@googlemail.com>
20823
20824 PR rtl-optimization/47166
20825 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20826 mechanism for PRE_MODIFY and POST_MODIFY.
20827 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20828 reloadreg.
20829
7fcaf152
AS
208302011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20831
8788adb6 20832 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 20833
d09b58c4
JH
208342011-01-22 Jan Hubicka <jh@suse.cz>
20835
20836 PR lto/47333
20837 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20838
e8ff8c5a
JH
208392011-01-22 Jan Hubicka <jh@suse.cz>
20840
20841 PR tree-optimization/43884
20842 PR lto/44334
8788adb6 20843 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
20844 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20845
ccaed3ba
AS
208462011-01-22 Anatoly Sokolov <aesok@post.ru>
20847
20848 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20849 * config/s390/s390.c (s390_register_move_cost,
20850 s390_memory_move_cost): New.
20851 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20852
0cecee06
UW
208532011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20854
20855 PR middle-end/47401
20856 * except.c (sjlj_assign_call_site_values): Move setting the
20857 crtl->uses_eh_lsda flag to ...
20858 (sjlj_mark_call_sites): ... here.
20859 (sjlj_emit_function_enter): Support NULL dispatch label.
20860 (sjlj_build_landing_pads): In a function with no landing pads
20861 that still has must-not-throw regions, generate code to register
20862 a personality function with empty LSDA.
20863
e692f276
RH
208642011-01-21 Richard Henderson <rth@redhat.com>
20865
1b7ae0b7
RH
20866 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20867
3843787f
RH
20868 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20869
e692f276
RH
20870 * compare-elim.c: New file.
20871 * Makefile.in (OBJS-common): Add it.
20872 (compare-elim.o): New.
20873 * common.opt (fcompare-elim): New.
20874 * opts.c (default_options_table): Add OPT_fcompare_elim.
20875 * tree-pass.h (pass_compare_elim_after_reload): New.
20876 * passes.c (init_optimization_passes): Add it.
20877 * recog.h: Protect against re-inclusion.
20878 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20879 * doc/invoke.texi (-fcompare-elim): Document it.
20880 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20881 * doc/tm.texi: Rebuild.
20882
9a7c2050
NC
208832011-01-22 Nick Clifton <nickc@redhat.com>
20884
20885 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20886 rx_split_fp_compare.
20887
15ba5696
NC
208882011-01-22 Nick Clifton <nickc@redhat.com>
20889
20890 * config/rx/rx.md (UNSPEC_CONST): New.
20891 (deallocate_and_return): Wrap the amount popped off the stack in
20892 an UNSPEC_CONST in order to stop it being rejected by
20893 -mmax-constant-size.
20894 (pop_and_return): Add a "(return)" rtx.
20895 (call): Drop the immediate operand.
20896 (call_internal): Likewise.
20897 (call_value): Likewise.
20898 (call_value_internal): Likewise.
20899 (sibcall_internal): Likewise.
20900 (sibcall_value_internal): Likewise.
20901 (sibcall): Likewise. Generate an explicit call using
20902 sibcall_internal.
20903 (sibcall_value): Likewise.
20904 (mov<>): FAIL if a constant operand is not legitimate.
20905 (addsi3_unpsec): New pattern.
9a7c2050 20906
38be4072 20907 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
20908 (ok_for_max_constant): New function.
20909 (gen_safe_add): New function.
20910 (rx_expand_prologue): Use gen_safe_add.
20911 (rx_expand_epilogue): Likewise.
20912 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20913 UNSPEC CONSTs.
20914
caaf13d3
JL
209152011-01-21 Jeff Law <law@redhat.com>
20916
20917 PR tree-optimization/47053
20918 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20919 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20920 statements are deleted.
20921 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
20922 is nonempty, then purge dead edges and cleanup the CFG.
20923
12c30f2f
AO
209242011-01-21 Alexandre Oliva <aoliva@redhat.com>
20925
20926 PR debug/47402
20927 Temporarily revert:
20928 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20929 PR debug/47106
20930 * tree-dfa.c (create_var_ann): Mark variable as used.
20931
7360d2ac
JJ
209322011-01-21 Jakub Jelinek <jakub@redhat.com>
20933
aaa52a96
JJ
20934 PR middle-end/45566
20935 * except.c (convert_to_eh_region_ranges): Emit queued no-region
20936 notes from other section in hot/cold partitioning even if
20937 last_action is -3. Increment call_site_base.
20938
7360d2ac
JJ
20939 PR rtl-optimization/47366
20940 * fwprop.c (forward_propagate_into): Return bool. If
20941 any changes are made, -fnon-call-exceptions is used and
20942 REG_EH_REGION note is present, call purge_dead_edges
20943 and return true if it purged anything.
20944 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20945 any EH edges were purged.
20946
e90b336f
JL
209472011-01-21 Jeff Law <law@redhat.com>
20948
20949 PR rtl-optimization/41619
20950 * caller-save.c (setup_save_areas): Break out code to determine
20951 which hard regs are live across calls by examining the reload chains
20952 so that it is always used.
20953 Eliminate code which checked REG_N_CALLS_CROSSED.
20954
3ffe07e1
JJ
209552011-01-21 Jakub Jelinek <jakub@redhat.com>
20956
20957 PR tree-optimization/47355
20958 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20959 NOP has non-debug uses beyond PHIs in new_bb.
20960
1c7d0b34
AO
209612011-01-21 Alexandre Oliva <aoliva@redhat.com>
20962
20963 PR debug/47106
20964 * cfgexpand.c (account_used_vars_for_block): Only account vars
20965 that are annotated as used.
20966 (estimated_stack_frame_size): Don't set TREE_USED.
20967 * tree-dfa.c (create_var_ann): Mark variable as used.
20968
f99cc488
RG
209692011-01-21 Richard Guenther <rguenther@suse.de>
20970
20971 PR middle-end/47395
20972 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20973
3bc27de7
RG
209742011-01-21 Richard Guenther <rguenther@suse.de>
20975
20976 PR tree-optimization/47365
20977 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20978 (vn_reference_lookup_pieces): Adjust.
20979 (vn_reference_lookup): Likewise.
20980 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20981 (vn_reference_lookup_3): Only look through kills if in
20982 VN_WALKREWRITE mode.
20983 (vn_reference_lookup_pieces): Adjust.
20984 (vn_reference_lookup): Likewise.
20985 (visit_reference_op_load): Likewise.
20986 (visit_reference_op_store): Likewise.
20987 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20988 (compute_avail): Likewise.
20989 (eliminate): Likewise.
20990
d8debb1d
JJ
209912011-01-21 Jakub Jelinek <jakub@redhat.com>
20992
20993 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20994 DECL_IGNORED_P non-reg vars if they are used.
20995
3a2df831
JJ
20996 PR tree-optimization/47391
20997 * varpool.c (const_value_known_p): Return false if
20998 decl is volatile.
20999
1dd584a2
KT
210002011-01-21 Kai Tietz <kai.tietz@onevision.com>
21001
21002 PR bootstrap/47215
21003 * config/i386/i386.c (ix86_local_alignment): Handle
21004 case for va_list_type_node is nil.
21005 (ix86_canonical_va_list_type): Likewise.
21006
7f9f095e
AM
210072011-01-21 Alan Modra <amodra@gmail.com>
21008
21009 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
21010 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
21011
837b01f6
RR
210122011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21013
21014 * config/arm/arm.md (define_attr type): Rename f_load
21015 and f_store to f_fpa_load and f_fpa_store. Update.
21016 (write_conflict): Deal with rename fallout.
21017 (*push_fp_multi): Likewise.
21018 * config/arm/fpa.md (f_load): Use f_fpa_load.
21019 (f_store): Use f_fpa_store.
21020 (*movsf_fpa): Likewise.
21021 (*movdf_fpa): Likewise.
21022 (*movxf_fpa): Likewise.
21023 (*thumb2_movsf_fpa): Likewise.
21024 (*thumb2_movdf_fpa): Likewise.
21025 (*thumb2_movxf_fpa): Likewise.
21026 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
21027 f_loadd and f_stored.
21028 (*thumb2_movdi_vfp): Likewise.
21029 (*thumb2_movsf_vfp): Fix attribute to f_loads.
21030 (*thumb2_movsi_vfp): Likewise.
21031 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
21032 Use f_loads instead of f_load.
21033 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
21034
a1a79768
AS
210352011-01-20 Anatoly Sokolov <aesok@post.ru>
21036
21037 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21038 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
21039 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21040 (xtensa_mode_dependent_address_p): New function.
21041 (constantpool_address_p): Make static. Change return type to bool.
21042 Change argument type to const_rtx. Use CONST_INT_P predicate.
21043
427f6cec
AO
210442011-01-20 Alexandre Oliva <aoliva@redhat.com>
21045
21046 PR debug/46583
21047 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
21048
583ac69c
JJ
210492011-01-20 Jakub Jelinek <jakub@redhat.com>
21050
21051 PR debug/47283
21052 * cfgexpand.c (expand_debug_expr): Instead of generating
21053 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
21054 etc. handling.
21055
93e452ed
RG
210562011-01-20 Richard Guenther <rguenther@suse.de>
21057
21058 PR middle-end/47370
21059 * tree-inline.c (remap_gimple_op_r): Recurse manually for
21060 the pointer operand of MEM_REFs.
21061
28fc44f3
JJ
210622011-01-20 Jakub Jelinek <jakub@redhat.com>
21063
21064 PR tree-optimization/46130
21065 * ipa-split.c (consider_split): If return_bb contains non-virtual
21066 PHIs other than for retval or if split_function would not adjust it,
21067 refuse to split.
21068
ddd268f2
RG
210692011-01-20 Richard Guenther <rguenther@suse.de>
21070
21071 PR tree-optimization/47167
21072 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21073 Revert previous change, only avoid enumeral type changes.
21074
882020aa
MS
210752011-01-19 Mike Stump <mikestump@comcast.net>
21076
21077 * doc/tm.texi.in (BRANCH_COST): Englishify.
21078 * doc/tm.texi (BRANCH_COST): Likewise.
21079
7edb6247
DS
210802011-01-19 Dodji Seketeli <dodji@redhat.com>
21081
21082 PR c++/47291
21083 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
21084 (gen_scheduled_generic_parms_dies): New functions.
21085 (gen_struct_or_union_type_die): Schedule template parameters DIEs
21086 generation for the end of CU compilation.
21087 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 21088
23d5ed5d
AO
210892011-01-19 Alexandre Oliva <aoliva@redhat.com>
21090
21091 PR debug/46240
21092 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
21093 debug bind stmt on merge edges.
21094
37d6a488
AO
210952011-01-19 Alexandre Oliva <aoliva@redhat.com>
21096
21097 PR debug/47079
21098 PR debug/46724
21099 * function.c (instantiate_expr): Instantiate incoming rtl of
21100 implicit arguments, and recurse on VALUE_EXPRs.
21101 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
21102 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
21103
689f2c82
AO
211042011-01-19 Alexandre Oliva <aoliva@redhat.com>
21105
21106 * c-parser.c (c_parser_for_statement): Initialize
21107 collection_expression.
21108
03029de4
JM
211092011-01-19 Joseph Myers <joseph@codesourcery.com>
21110
21111 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
21112
3e03217e
JM
211132011-01-19 Joseph Myers <joseph@codesourcery.com>
21114
21115 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
21116 (LINK_SHLIB_SPEC): Don't use %(link_path).
21117 (SUBTARGET_EXTRA_SPECS): Remove link_path.
21118
5bbe9b3f
JM
211192011-01-19 Joseph Myers <joseph@codesourcery.com>
21120
21121 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
21122 (NO_SHARED_LIB_SUPPORT): Remove.
21123 (LINK_SHLIB_SPEC): Remove one conditional definition.
21124
368e0b39
JM
211252011-01-19 Joseph Myers <joseph@codesourcery.com>
21126
21127 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
21128 %{call_shared}.
21129 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
21130 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
21131 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
21132 %{call_shared} and conditionals on these options not being passed.
21133 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
21134 %{call_shared}.
21135
ed7656f6
JJ
211362011-01-19 Jakub Jelinek <jakub@redhat.com>
21137
68457901
JJ
21138 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
21139 simplify.
21140
ed7656f6
JJ
21141 * ipa-split.c: Spelling fixes.
21142
e0d1958f
RH
211432011-01-19 Richard Henderson <rth@redhat.com>
21144
21145 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
21146 (*mulsi3): Likewise.
21147
27098b6b
RH
21148 * longlong.h [__mn10300__] (count_leading_zeros): New.
21149 [__mn10300__] (umul_ppmm, smul_ppmm): New.
21150 [__mn10300__] (add_ssaaaa, subddmmss): New.
21151 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
21152 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
21153
d6be7c36
UW
211542011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21155
21156 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
21157
b1efde2a
RH
211582011-01-19 Richard Henderson <rth@redhat.com>
21159
44217823
RH
21160 * config/mn10300/mn10300.md (addsi3_flags): New.
21161 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21162 (subsi3_flags, subc_internal, subdi3): New.
21163 (subdi3_internal, *subdi3_degenerate): New.
21164 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21165
37a185d7
RH
21166 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21167 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21168 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
21169 * config/mn10300/mn10300-protos.h: Update.
21170 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21171 (return_ret): Likewise. Rename from return_internal_regs.
21172 (return_internal): Remove.
21173
040c5757
RH
21174 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21175 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21176 (mn10300_legitimate_constant_p): Likewise.
21177 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21178 (mn10300_frame_size): New.
21179 (mn10300_expand_prologue): Use it.
21180 (mn10300_expand_epilogue): Likewise.
21181 (mn10300_initial_offset): Likewise.
21182 * config/mn10300/mn10300-protos.h: Update.
21183 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21184 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21185 (prologue, epilogue, return_internal): Tidy output code.
21186 (mn10300_store_multiple_operation, return): Likewise.
21187 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21188 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21189 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21190 (load_pic, am33_load_pic): New.
21191 (mn10300_load_pic0, mn10300_load_pic1): New.
21192
bad41521
RH
21193 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21194 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21195 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21196 (cc_flags_for_mode, cc_flags_for_code): New.
21197 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21198 overflow flag is not valid. Validate that the flags we need
21199 for the comparison are valid.
21200 (mn10300_output_cmp): Remove.
21201 (mn10300_output_add): New.
21202 (mn10300_select_cc_mode): Use cc_flags_for_code.
21203 (mn10300_split_cbranch): New.
21204 (mn10300_match_ccmode): New.
21205 (mn10300_split_and_operand_count): New.
21206 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21207 to the function.
21208 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21209 (addsi3): ... here. Use mn10300_output_add.
21210 (*addsi3_flags): New.
21211 (*am33_subsi3, *mn10300_subsi3): Merge...
21212 (subsi3): ... here. Use attribute isa.
21213 (*subsi3_flags): New.
21214 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
21215 when possible.
21216 (*am33_andsi3, *mn10300_andsi3): Merge...
21217 (andsi3): ... here.
21218 (*andsi3_flags): New.
21219 (andsi3 splitters): New.
21220 (*am33_iorsi3, *mn10300_iorsi3): Merge...
21221 (iorsi3): ... here.
21222 (*iorsi3_flags): New.
21223 (*am33_xorsi3, *mn10300_xorsi3): Merge...
21224 (xorsi3): ... here.
21225 (*xorsi3_flags): New.
21226 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21227 (one_cmplsi2): ... here.
21228 (*one_cmplsi2_flags): New.
21229 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
21230 instead of "dax" in constraints. Use mn10300_split_cbranch.
21231 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
21232 use matching constraints to eliminate a self-comparison.
21233 (*integer_conditional_branch): Rename from integer_conditional_branch.
21234 Use int_mode_flags to match CC_REG.
21235 (*cbranchsi4_btst, *btstsi): New.
21236 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
21237 mn10300_split_cbranch.
21238 (*am33_cmpsf): Rename from am33_cmpsf.
21239 (*float_conditional_branch): Rename from float_conditional_branch.
21240 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21241 (zero_extendqisi2): ... here.
21242 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21243 (zero_extendhisi2): ... here.
21244 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21245 (extendqisi2): ... here.
21246 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21247 (extendhisi2): ... here.
21248 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21249 (ashlsi3): ... here.
21250 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21251 (lshrsi3): ... here.
21252 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21253 (ashrsi3): ... here.
21254 (consecutive add peephole): Remove.
21255 * config/mn10300/predicates.md (label_ref_operand): New.
21256 (int_mode_flags): New.
21257 (CCZN_comparison_operator): New.
21258
9efb4993
RH
21259 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21260 (throughput_42_latency_43): New reservation.
21261 (mulsidi3, umulsidi3): New expanders.
21262 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21263 the MDR register to allocation; separately allocate the low and
21264 high parts of the DImode result.
21265 (umulsidi3_internal): Similarly.
21266 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21267 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21268 (udivsi3, umodsi3): Remove.
21269 (udivmodsi4, divmodsi4): New expanders.
21270 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21271 (*divmodsi4): Simiarly.
21272 (ext_internal): New.
21273
c25a21f5
RH
21274 * config/mn10300/constraints.md ("z"): New constraint.
21275 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21276 (FIXED_REGISTERS): Don't fix MDR.
21277 (CALL_USED_REGSITERS): Reformat nicely.
21278 (REG_ALLOC_ORDER): Add MDR.
21279 (enum regclass): Add MDR_REGS.
21280 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21281 (IRA_COVER_CLASSES): Add MDR_REGS.
21282 (REGNO_REG_CLASS): Handle MDR_REG.
21283 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21284 (mn10300_register_move_cost): Likewise.
21285 * config/mn10300/mn10300.md (MDR_REG): New.
21286 (*movsi_internal): Handle moves to/from MDR_REGS.
21287
36846b26
RH
21288 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21289 POST_MODIFY.
21290 (mn10300_secondary_reload): Tidy combination reload classes.
21291 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21292 addresses for AM33. Allow symbolic offsets for reg+imm.
21293 (mn10300_regno_in_class_p): New.
21294 (mn10300_legitimize_reload_address): New.
21295 * config/mn10300/mn10300.h (enum reg_class): Remove
21296 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21297 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21298 SP_OR_GENERAL_REGS.
21299 (REG_CLASS_NAMES): Update to match.
21300 (REG_CLASS_CONTENTS): Likewise.
21301 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21302 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21303 (REGNO_IN_RANGE_P): Remove.
21304 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21305 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21306 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21307 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21308 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21309 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21310 (REGNO_GENERAL_P): New.
21311 (HAVE_POST_MODIFY_DISP): New.
21312 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21313 (LEGITIMIZE_RELOAD_ADDRESS): New.
21314 * config/mn10300/mn10300-protos.h: Update.
21315
8b119bb6
RH
21316 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21317 DATA_REGS for AM33 stack-pointer destination.
21318 (mn10300_preferred_output_reload_class): Likewise.
21319 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21320 into a form appropriate for ...
21321 (TARGET_SECONDARY_RELOAD): New.
21322 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21323 * config/mn10300/mn10300-protos.h: Update.
21324 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21325 reload_insi; use the "A" constraint for the scratch; handle AM33
21326 moves of sp to non-address registers.
21327
b1efde2a
RH
21328 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21329 (*movqi_internal): ... here.
21330 (*am33_movhi, *mn10300_movhi): Merge into...
21331 (*movhi_internal): ... here.
21332 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21333 as the source/destination of moves from/to SP.
21334 (movsf): Only allow for AM33-2.
1c3ba85b 21335 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
21336 any integer constant constraint. Only allow for AM33-2. Tidy
21337 all of the alternative outputs.
21338 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21339 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21340 for MN103.
21341 (udivsi3, umodsi3): New patterns for MN103 only.
21342
b899fd78
JR
213432011-01-19 Joern Rennecke <amylaar@spamcop.net>
21344
21345 * doc/tm.texi.in: Spell out that a lack of register class unions
21346 can lead to ICEs.
21347 * doc/tm.texi: Regenerate.
21348
afaaa67d
JJ
213492011-01-19 Jakub Jelinek <jakub@redhat.com>
21350
2e0642cd
JJ
21351 PR rtl-optimization/47337
21352 * dce.c (check_argument_store): New function.
21353 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21354
afaaa67d
JJ
21355 PR tree-optimization/47290
21356 * tree-eh.c (infinite_empty_loop_p): New function.
21357 (cleanup_empty_eh): Use it.
21358
d2cd871f
SE
213592011-01-18 Steve Ellcey <sje@cup.hp.com>
21360
21361 PR target/46997
21362 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21363 (a64_expand_widen_sum): Ditto.
21364 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21365 (vec_extract_evenodd_help): Ditto.
21366 (vec_extract_evenv4hi): Ditto.
21367 (vec_extract_oddv4hi): Ditto.
21368 (vec_extract_evenv2si): Ditto.
21369 (vec_extract_oddv2si): Ditto.
21370 (vec_extract_evenv2sf): Ditto.
21371 (vec_extract_oddv2sf): Ditto.
21372 (vec_pack_trunc_v4hi: Ditto.
21373 (vec_pack_trunc_v2si): Ditto.
21374 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21375 (vec_interleave_highv8qi): Ditto.
21376 (mix1_r): Ditto.
21377 (vec_extract_oddv8qi): Ditto.
21378 (vec_interleave_lowv4hi): Ditto.
21379 (vec_interleave_highv4hi): Ditto.
21380 (vec_interleave_lowv2si): Ditto.
21381 (vec_interleave_highv2si): Ditto.
21382
41a1208a
JDA
213832011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21384
21385 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21386 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21387 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21388 (pa_c_mode_for_suffix): New.
21389 (TARGET_EXPAND_BUILTIN): Define.
21390 (TARGET_C_MODE_FOR_SUFFIX): Define.
21391 (pa_builtins): Define.
21392 (pa_init_builtins): Register __float128 type and init new support
21393 builtins.
21394 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21395 * config/pa/quadlib.c (_U_Qfcopysign): New.
21396
1ecad98e
EB
213972011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21398
21399 PR middle-end/46894
21400 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21401 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21402 are defined.
21403
d4f2460a
UW
214042011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21405
21406 PR tree-optimization/47179
21407 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21408 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21409
4994da65
RG
214102011-01-18 Richard Guenther <rguenther@suse.de>
21411
21412 PR rtl-optimization/47216
21413 * emit-rtl.c: Include tree-flow.h.
21414 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21415 of replicating it with different semantics.
21416 * Makefile.in (emit-rtl.o): Adjust.
21417
1eb458d1
RR
214182011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21419
38be4072 21420 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 21421 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 21422
e7ef91dc
JJ
214232011-01-18 Jakub Jelinek <jakub@redhat.com>
21424
21425 PR rtl-optimization/47299
21426 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 21427 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
21428 * expmed.c (expand_widening_mult): Don't try to optimize constant
21429 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21430 before using it.
21431
535b7874
RW
214322011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21433
21434 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21435 spacing after 'e.g.', typos, comma, hyphenation.
21436
27bf36f3
RH
214372011-01-17 Richard Henderson <rth@redhat.com>
21438
8a5b5449
RH
21439 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21440 (rx_restricted_mem_operand): New.
21441 (rx_shift_operand): Use register_operand.
21442 (rx_source_operand, rx_compare_operand): Likewise.
21443 * config/rx/rx.md (addsi3_flags): New expander.
21444 (adddi3): Rewrite as expander.
21445 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21446 (subsi3_flags): New expander.
21447 (subdi3): Rewrite as expander.
21448 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21449
784f69be
RH
21450 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21451 (rx_init_builtins): Remove sat builtin.
21452 (rx_expand_builtin): Likewise.
21453 * config/rx/rx.md (ssaddsi3): New.
21454 (*sat): Rename from sat. Represent the CC_REG input.
21455
f033541c
RH
21456 * config/rx/predicates.md (rshift_operator): New.
21457 * config/rx/rx.c (rx_expand_insv): Remove.
21458 * config/rx/rx-protos.h: Update.
21459 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21460 operand to the canonical position.
21461 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21462 (*bitclr, *bitclr_in_memory): Similarly.
21463 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21464 (insv): Retain the zero_extract in the expansion.
21465
34fee389
RH
21466 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21467 (bswaphi2, bitinvert, revw): Likewise.
21468
265c835f
RH
21469 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21470 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21471 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21472 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21473 (bitset, bitset_in_memory): Likewise.
21474 (bitinvert, bitinvert_in_memory): Likewise.
21475 (bitclr, bitclr_in_memory): Likewise.
21476 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21477 (rx_strend, rx_cmpstrn): Likewise.
21478 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21479 (bitop peep2 patterns): Remove.
21480
b4d83be3
RH
21481 * config/rx/rx.c (rx_match_ccmode): New.
21482 * config/rx/rx-protos.h: Update.
21483 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21484 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21485 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21486 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21487 (fix_truncsfsi2, floatsisf2): Likewise.
21488 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21489 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21490 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21491 (*subsi3_flags, *xorsi3_flags): New.
21492
d0acb939
RH
21493 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21494
c06fc3d9
RH
21495 * config/rx/rx.c (rx_print_operand): Remove workaround for
21496 unsplit comparison operations.
21497
2882702b
RH
21498 * config/rx/rx.md (movsicc): Split after reload.
21499 (*movsicc): Merge *movsieq and *movsine via match_operator.
21500 (*stcc): New pattern.
21501
6f7310f2
RH
21502 * config/rx/rx.c (rx_float_compare_mode): Remove.
21503 * config/rx/rx.h (rx_float_compare_mode): Remove.
21504 * config/rx/rx.md (cstoresi4): Split after reload.
21505 (*sccc): New pattern.
21506
e963cb1a
RH
21507 * config/rx/predicates.md (label_ref_operand): New.
21508 (rx_z_comparison_operator): New.
21509 (rx_zs_comparison_operator): New.
21510 (rx_fp_comparison_operator): New.
21511 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21512 Validate that the flags are set properly for the comparison.
21513 (rx_gen_cond_branch_template): Remove.
21514 (rx_cc_modes_compatible): Remove.
21515 (mode_from_flags): New.
21516 (flags_from_code): Rename from flags_needed_for_conditional.
21517 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21518 (rx_select_cc_mode): Likewise.
21519 (rx_split_fp_compare): New.
21520 (rx_split_cbranch): New.
21521 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21522 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21523 (*cbranchsf4): Similarly.
21524 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21525 match_operator and rx_split_cbranch.
21526 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21527 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21528 (*cmpsi): Rename from cmpsi.
21529 (*tstsi): Rename from tstsi.
21530 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21531 (*conditional_branch): Rename from conditional_branch.
21532 (*reveresed_conditional_branch): Remove.
21533 (b<code>): Remove expander.
21534 * config/rx/rx-protos.h: Update.
21535
af530bb4
RH
21536 * config/rx/rx.c (rx_compare_redundant): Remove.
21537 * config/rx/rx.md (cmpsi): Don't use it.
21538 * config/rx/rx-protos.h: Update.
21539
27bf36f3
RH
21540 * config/rx/rx-modes.def (CC_F): New mode.
21541 * config/rx/rx.c (rx_select_cc_mode): New.
21542 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21543 * config/rx/rx-protos.h: Update.
21544
d7fde127
RH
215452011-01-17 Richard Henderson <rth@redhat.com>
21546
21547 * except.c (dump_eh_tree): Fix stray ; after for statement.
21548
6ff38230
RG
215492011-01-17 Richard Guenther <rguenther@suse.de>
21550
21551 PR tree-optimization/47313
21552 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21553 handling before copying the body. Properly deal with
21554 by-reference result in SSA form.
21555
114ce554
ILT
215562011-01-17 Ian Lance Taylor <iant@google.com>
21557
bf5cd92b 21558 PR target/47219
114ce554
ILT
21559 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21560 (struct_value_alias_set): Don't define.
21561 (sparc_option_override): Don't set sparc_sr_alias_set and
21562 struct_value_alias_set.
21563 (save_or_restore_regs): Use gen_frame_mem rather than calling
21564 set_mem_alias_set.
21565 (sparc_struct_value_rtx): Likewise.
21566
98c6d93c
L
215672011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21568
21569 PR target/47318
7a81008b 21570 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
21571 (_mm_maskstore_pd): Likewise.
21572 (_mm_maskload_ps): Likewise.
21573 (_mm_maskstore_ps): Likewise.
21574 (_mm256_maskload_pd): Change mask to __m256i.
21575 (_mm256_maskstore_pd): Likewise.
21576 (_mm256_maskload_ps): Likewise.
21577 (_mm256_maskstore_ps): Likewise.
21578
21579 * config/i386/i386-builtin-types.def: Updated.
21580 (ix86_expand_special_args_builtin): Likewise.
21581
21582 * config/i386/i386.c (bdesc_special_args): Update
21583 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21584 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21585 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21586 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21587
21588 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21589 Use <avxpermvecmode> on mask register.
21590 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21591
b9361af2 215922011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
21593 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21594 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
21595
21596 PR target/46655
21597 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21598 if <= USHRT_MAX in 32-bit mode.
21599
b7ae9eb5
RW
216002011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21601
21602 * doc/install.texi (Configuration, Specific): Wrap long
21603 lines in examples. Allow line wrapping in long options
21604 and URLs where beneficial for PDF output.
21605
4377fad9
RS
216062011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21607
21608 * config/mips/mips.c (mips_classify_symbol): Don't return
21609 SYMBOL_PC_RELATIVE for nonlocal labels.
21610
55959ffa 216112011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 21612
55959ffa
EB
21613 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21614
216152011-01-15 Jan Hubicka <jh@suse.cz>
21616
21617 PR tree-optimization/47276
be46831f
JH
21618 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21619 declarations as needed.
21620
05842ff5
MJ
216212011-01-15 Martin Jambor <mjambor@suse.cz>
21622
21623 * common.opt (fdevirtualize): New flag.
21624 * doc/invoke.texi (Option Summary): Document it.
21625 * opts.c (default_options_table): Add devirtualize flag.
21626 * ipa-prop.c (detect_type_change): Return immediately if
21627 devirtualize flag is not set.
21628 (detect_type_change_ssa): Likewise.
21629 (compute_known_type_jump_func): Likewise.
21630 (ipa_analyze_virtual_call_uses): Likewise.
21631
f65cf2b7
MJ
216322011-01-14 Martin Jambor <mjambor@suse.cz>
21633
21634 PR tree-optimization/45934
21635 PR tree-optimization/46302
21636 * ipa-prop.c (type_change_info): New type.
21637 (stmt_may_be_vtbl_ptr_store): New function.
21638 (check_stmt_for_type_change): Likewise.
21639 (detect_type_change): Likewise.
21640 (detect_type_change_ssa): Likewise.
21641 (compute_complex_assign_jump_func): Check for dynamic type change.
21642 (compute_complex_ancestor_jump_func): Likewise.
21643 (compute_known_type_jump_func): Likewise.
21644 (compute_scalar_jump_functions): Likewise.
21645 (ipa_analyze_virtual_call_uses): Likewise.
21646 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21647
eb5bb0fd
JM
216482011-01-14 Joseph Myers <joseph@codesourcery.com>
21649
21650 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21651 * config/i386/i386.opt (msse5): New Alias.
21652
f2060fbe
JM
216532011-01-14 Joseph Myers <joseph@codesourcery.com>
21654
21655 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21656 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21657 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21658 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21659
3a7b4385
JM
216602011-01-14 Joseph Myers <joseph@codesourcery.com>
21661
21662 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21663 -mcpu options.
21664 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21665 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21666 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21667 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21668 Likewise.
21669 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21670
a7b778f8
JM
216712011-01-14 Joseph Myers <joseph@codesourcery.com>
21672
38be4072 21673 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 21674
a7edae0a
MS
216752011-01-14 Mike Stump <mikestump@comcast.net>
21676
21677 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21678 * config/fr30/fr30.md: Likweise
21679 (movsi_push): Likewise.
21680 (movsi_pop): Likewise.
21681 (enter_func): Likewise.
21682 * config/moxie/moxie.md (movsi_push): Likewise.
21683 (movsi_pop): Likewise.
21684
cbabf03f
JM
216852011-01-14 Joseph Myers <joseph@codesourcery.com>
21686
21687 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21688 %{no_archive} %{exact_version}.
21689 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21690 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21691 %{no_archive} %{exact_version}.
21692 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21693 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21694 * config/mips/vxworks.h: Likewise.
21695
438da41a
JM
216962011-01-14 Joseph Myers <joseph@codesourcery.com>
21697
38be4072 21698 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 21699
da290a42
JM
217002011-01-14 Joseph Myers <joseph@codesourcery.com>
21701
21702 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21703 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21704
8989d00e
JM
217052011-01-14 Joseph Myers <joseph@codesourcery.com>
21706
21707 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21708 -nodefaultlib.
21709
a3010a69
JM
217102011-01-14 Joseph Myers <joseph@codesourcery.com>
21711
21712 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21713 for mcpu not cpu.
21714 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21715 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21716 not cpu.
21717 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21718 Don't handle -shlib.
21719
e7f2f537
JM
217202011-01-14 Joseph Myers <joseph@codesourcery.com>
21721
21722 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21723 (CC1_SPEC): Don't handle -profile.
21724
34830bfd
JM
217252011-01-14 Joseph Myers <joseph@codesourcery.com>
21726
21727 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21728 * config/mips/mips.h (CC1_SPEC): Likewise.
21729
b2d36e74
JM
217302011-01-14 Joseph Myers <joseph@codesourcery.com>
21731
21732 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21733 * config/mips/mips.h (CC1_SPEC): Likewise.
21734
dabadc52
JM
217352011-01-14 Joseph Myers <joseph@codesourcery.com>
21736
21737 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21738 * config/m32r/linux.h (LINK_SPEC): Likewise.
21739 * config/mips/linux.h (LINK_SPEC): Likewise.
21740 * config/mips/linux64.h (LINK_SPEC): Likewise.
21741 * config/sparc/linux.h (LINK_SPEC): Likewise.
21742 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21743 LINK_SPEC): Likewise.
21744 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21745
43ee6785
JM
217462011-01-14 Joseph Myers <joseph@codesourcery.com>
21747
21748 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21749 %{version:-v}.
21750 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21751
45e79dfd
JM
217522011-01-14 Joseph Myers <joseph@codesourcery.com>
21753
21754 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21755 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21756
37e9e71d
JM
217572011-01-14 Joseph Myers <joseph@codesourcery.com>
21758
21759 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21760
bb127cd8
RO
217612011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21762
21763 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21764 supports -Bstatic/-Bdynamic.
21765 * configure: Regenerate.
21766
89a012ea 217672011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 21768 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
21769
21770 PR target/46037
21771 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21772 when checking debug_info_level. Test write_symbols instead of
21773 debug_hooks->var_location when setting flag_var_tracking_uninit.
21774
7352c013
RG
217752011-01-14 Richard Guenther <rguenther@suse.de>
21776
21777 PR tree-optimization/47179
21778 * target.def (ref_may_alias_errno): New target hook.
21779 * targhooks.h (default_ref_may_alias_errno): Declare.
21780 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21781 (default_ref_may_alias_errno): New function.
21782 * target.h (struct ao_ref_s): Declare.
21783 * tree-ssa-alias.c: Include target.h.
21784 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21785 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21786 (targhooks.o): Likewise.
21787 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21788 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21789
9a6c9288
RG
217902011-01-14 Richard Guenther <rguenther@suse.de>
21791
21792 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21793
0fdb0d27
RG
217942011-01-14 Richard Guenther <rguenther@suse.de>
21795
21796 PR tree-optimization/47280
21797 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21798 return CFG changes.
21799 (tree_ssa_forward_propagate_single_use_vars): Deal with
21800 CFG changes from associate_plusminus.
21801
8f66db3b
RG
218022011-01-14 Richard Guenther <rguenther@suse.de>
21803
21804 PR middle-end/47281
21805 Revert
21806 2011-01-11 Richard Guenther <rguenther@suse.de>
21807
280d9630
EB
21808 PR tree-optimization/46076
21809 * tree-ssa.c (useless_type_conversion_p): Conversions from
21810 unprototyped to empty argument list function types are useless.
8f66db3b 21811
6c0c92e6
RG
218122011-01-14 Richard Guenther <rguenther@suse.de>
21813
21814 PR tree-optimization/47286
280d9630 21815 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 21816
db09f943
MJ
218172011-01-14 Martin Jambor <mjambor@suse.cz>
21818
21819 PR middle-end/46823
21820 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21821
dde8a3a4
AS
218222011-01-13 Anatoly Sokolov <aesok@post.ru>
21823
21824 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21825 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21826 * config/xtensa/xtensa.c (xtensa_libcall_value,
21827 xtensa_function_value_regno_p): New functions.
21828 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21829
a2b63a20
KT
218302011-01-13 Kai Tietz <kai.tietz@onevision.com>
21831
21832 PR c++/47213
21833 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21834 PE specific hook.
21835 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21836 New function prototype.
21837 * config/i386/winnt.c (i386_pe_assemble_visibility):
21838 Warn only if attribute was specified by user.
21839
b41f0b34
MM
218402011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21841
21842 PR target/47251
21843 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21844 floating point.
21845 (floatunsdidf2_fcfidu): Ditto.
21846
3f3c098d
AK
218472011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21848
21849 * config/s390/s390.c (print_operand_address): Replace 'error' with
21850 'output_operand_lossage'.
21851 (print_operand): Likewise.
21852
29fa95ed
JL
218532011-01-13 Jeff Law <law@redhat.com>
21854
280d9630 21855 PR rtl-optimization/39077
29fa95ed
JL
21856 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21857 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21858 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21859 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21860 * gcse.c (prune_insertions_deletions): New function.
21861 (compute_pre_data): Use it.
21862
71d12276
DS
218632011-01-13 Dodji Seketeli <dodji@redhat.com>
21864
21865 PR debug/PR46973
21866 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21867 static function.
61052244 21868 (prune_unused_types_mark): Use it.
71d12276 21869
9b0f04e7
AB
218702011-01-13 Andrey Belevantsev <abel@ispras.ru>
21871
21872 PR rtl-optimization/45352
1c3ba85b 21873 * sel-sched.c: Update copyright years.
9b0f04e7 21874 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 21875 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 21876
d6a3e264
RH
218772011-01-12 Richard Henderson <rth@redhat.com>
21878
a49b692a
RH
21879 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21880 (TARGET_MD_ASM_CLOBBERS): New.
21881
126b1483
RH
21882 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21883 (TARGET_DELEGITIMIZE_ADDRESS): New.
21884
f3d9d2e0
RH
21885 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21886 (clzsi2, *bsch): New patterns.
21887
d84760c9
RH
21888 * config/mn10300/mn10300.md (INT): New mode iterator.
21889 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21890
ec815d65
RH
21891 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21892 flag_split_wide_types.
21893
d6a3e264
RH
21894 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21895 (mn10300_trampoline_init): Rewrite without a template, an immediate
21896 load and a direct branch.
21897 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21898
0f8ab434
AS
218992011-01-12 Anatoly Sokolov <aesok@post.ru>
21900
21901 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21902 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21903 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21904 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21905
d8a24b65
KT
219062011-01-12 Kai Tietz <kai.tietz@onevision.com>
21907
21908 PR debug/47209
21909 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21910 of type.
21911
56e22cab
JH
219122011-01-12 Jan Hubicka <jh@suse.cz>
21913
21914 PR driver/47244
21915 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21916 (PLUGIN_COND_CLOSE): New macro.
21917 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21918
4b18b3c2
RG
219192011-01-12 Richard Guenther <rguenther@suse.de>
21920
21921 PR lto/47259
21922 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21923 register variables in a MEM_REF.
21924
8e38461c
JM
219252011-01-12 Joseph Myers <joseph@codesourcery.com>
21926
21927 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21928 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21929 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21930 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21931 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21932 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21933 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21934 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21935 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21936 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21937 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21938 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21939 * config/gnu-user.h: New. Copied from linux.h.
21940 (LINUX_TARGET_STARTFILE_SPEC): Rename to
21941 GNU_USER_TARGET_STARTFILE_SPEC.
21942 (LINUX_TARGET_ENDFILE_SPEC): Rename to
21943 GNU_USER_TARGET_ENDFILE_SPEC.
21944 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21945 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21946 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21947 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21948 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21949 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21950 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21951 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21952 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21953 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21954 * config/arm/linux-eabi.h (CC1_SPEC): Use
21955 GNU_USER_TARGET_CC1_SPEC.
21956 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21957 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21958 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21959 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21960 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21961 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21962 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21963 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21964
a570fc16
RG
219652011-01-12 Richard Guenther <rguenther@suse.de>
21966
21967 PR other/46946
21968 * doc/invoke.texi (ffast-math): Document it is turned on
21969 with -Ofast.
21970
b0223c3e
JH
219712011-01-12 Jan Hubicka <jh@suse.cz>
21972
21973 PR tree-optimization/47233
ca1e00b3
EB
21974 * opts.c (common_handle_option): Disable ipa-reference with profile
21975 feedback.
b0223c3e 21976
1c3ba85b 219772011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
21978
21979 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
21980 error message.
21981
d853ee42
NP
219822011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21983
21984 * c-parser.c (c_lex_one_token): Updated and reindented some
21985 comments. No changes in code.
21986
4053a5a0
ILT
219872011-01-11 Ian Lance Taylor <iant@google.com>
21988
21989 * godump.c (go_output_var): Don't output the variable if there is
21990 already a type with the same name.
21991
fa3e04d2
ILT
219922011-01-11 Ian Lance Taylor <iant@google.com>
21993
21994 * godump.c (go_format_type): Don't generate float80.
21995
885fe07c
RH
219962011-01-11 Richard Henderson <rth@redhat.com>
21997
72d6e3c5
RH
21998 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21999 declaration. Rewrite for both speed and size.
22000 (mn10300_address_cost_1): Remove.
22001 (mn10300_register_move_cost): New.
22002 (mn10300_memory_move_cost): New.
22003 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
22004 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
22005 extensions, shifts, BSWAP, CLZ.
22006 (mn10300_wide_const_load_uses_clr): Remove.
22007 (TARGET_REGISTER_MOVE_COST): New.
22008 (TARGET_MEMORY_MOVE_COST): New.
22009 * config/mn10300/mn10300-protos.h: Update.
22010 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
22011
df37c023
RH
22012 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
22013 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
22014 * config/mn10300/mn10300-protos.h: Update.
22015 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
22016 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
22017 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
22018 (*test_int_bitfield, *test_byte_bitfield): Remove.
22019 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 22020 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 22021
85a337b5
RH
22022 * config/mn10300/constraints.md ("c"): Rename from "A".
22023 ("A", "D"): New constraint letters.
22024 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
22025 (fmssf4, fnmasf4, fnmssf4): Likewise.
22026
a5c727e3
RH
22027 * config/mn10300/mn10300.md (isa): New attribute.
22028 (enabled): New attribute.
22029
0d9e23f4
RH
22030 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
22031 (abssf2, negsf2): Define only for hardware fp.
22032 (sqrtsf2): Reformat.
22033 (addsf3, subsf3, mulsf3): Merge expander and insn.
22034
c157b3f0
RH
22035 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
22036 (DEBUGGER_AUTO_OFFSET): Remove.
22037 (DEBUGGER_ARG_OFFSET): Remove.
22038
cc909bba
RH
22039 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
22040 Emit register stores with the same offsets as the hardware.
22041 (mn10300_store_multiple_operation): Don't check that the register
22042 save offsets are monotonic.
22043 * config/mn10300/mn10300-protos.h: Update.
22044
e3b5c2f3
RH
22045 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
22046
885fe07c
RH
22047 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
22048 in terms of the value on the stack, not the MDR register.
22049
6e701822
JH
220502011-01-11 Jan Hubicka <jh@suse.cz>
22051
22052 PR lto/45721
22053 PR lto/45375
22054 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
22055 (symbol_alias_set_destroy, symbol_alias_set_contains,
22056 propagate_aliases_backward): Declare.
22057 * lto-streamer-out.c (struct sets): New sturcture.
22058 (trivally_defined_alias): New function.
22059 (output_alias_pair_p): Rewrite.
22060 (output_unreferenced_globals): Fix output of alias pairs.
22061 (produce_symtab): Likewise.
22062 * ipa.c (function_and_variable_visibility): Set weak alias destination
22063 as needed in lto.
22064 * varasm.c (symbol_alias_set_t): Remove.
22065 (symbol_alias_set_destroy): Export.
22066 (propagate_aliases_forward, propagate_aliases_backward): New functions
22067 based on ...
22068 (compute_visible_aliases): ... this one; remove.
22069 (trivially_visible_alias): New
22070 (trivially_defined_alias): New.
22071 (remove_unreachable_alias_pairs): Rewrite.
22072 (finish_aliases_1): Reorganize code checking if alias is defined.
22073 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
22074 in LTO mode.
22075
1b248907
RG
220762011-01-11 Richard Guenther <rguenther@suse.de>
22077
22078 PR tree-optimization/46076
22079 * tree-ssa.c (useless_type_conversion_p): Conversions from
22080 unprototyped to empty argument list function types are useless.
22081
b1923f0a
RG
220822011-01-11 Richard Guenther <rguenther@suse.de>
22083
22084 PR middle-end/45235
22085 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
22086 volatile MEMs as MEM_READONLY_P.
22087
e98965af
RG
220882011-01-11 Richard Guenther <rguenther@suse.de>
22089
22090 PR tree-optimization/47239
22091 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
22092
9f9ca914
JL
220932011-01-11 Jeff Law <law@redhat.com>
22094
1ee3ea05 22095 PR tree-optimization/47086
9f9ca914
JL
22096 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
22097 IVs from statements that might throw.
22098
345fdcb7
JH
220992011-01-10 Jan Hubicka <jh@suse.cz>
22100
22101 PR lto/45375
22102 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
22103
c459c97b
JH
221042011-01-10 Jan Hubicka <jh@suse.cz>
22105
22106 PR lto/45375
22107 * profile.c (read_profile_edge_counts): Ignore profile inconistency
22108 when correcting profile.
22109
06c9eb51
JH
221102011-01-10 Jan Hubicka <jh@suse.cz>
22111
22112 PR lto/46083
22113 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
22114 DECL_FINI_PRIORITY.
22115 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
22116 Restore DECL_FINI_PRIORITY.
22117
ae9fd815
RW
221182011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22119
22120 * doc/gimple.texi: Fix quoting of multi-word return values in
22121 @deftypefn statements. Ensure presence of return value. Wrap
22122 overlong @deftypefn lines.
22123 (is_gimple_operand, is_gimple_min_invariant_address): Remove
22124 descriptions of removed functions.
22125 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
22126 of multi-word return value in @deftypefn statement.
22127
0ecb4a7c
RW
221282011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22129
22130 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
22131 (Conditional Expressions, Logical Operators)
22132 (Statement and operand traversals): Do not indent smallexample
22133 code. Fix duplicate function argument in example.
22134
2e5e346d
JL
221352011-01-10 Jeff Law <law@redhat.com>
22136
1ee3ea05 22137 PR tree-optimization/47141
2e5e346d
JL
22138 * ipa-split.c (split_function): Handle case where we are
22139 returning a value and the return block has a virtual operand phi.
22140
cf9712cc
JH
221412011-01-10 Jan Hubicka <jh@suse.cz>
22142
1c3ba85b 22143 PR tree-optimization/47234
cf9712cc
JH
22144 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
22145 (pass_feedback_split_functions): Declare.
22146 * passes.c (init_optimization_passes): Add ipa-split as subpass of
22147 tree-profile.
22148 * ipa-split.c (gate_split_functions): Update comments; disable
22149 split-functions for profile_arc_flag and branch_probabilities.
22150 (gate_feedback_split_functions): New function.
22151 (execute_feedback_split_functions): New function.
22152 (pass_feedback_split_functions): New global var.
22153
94cd932c
L
221542011-01-10 H.J. Lu <hongjiu.lu@intel.com>
22155
22156 PR lto/46760
22157 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
22158 calling gimple_call_set_cannot_inline.
22159
fbbfcaf1
IS
221602011-01-10 Iain Sandoe <iains@gcc.gnu.org>
22161
22162 * config/darwin-sections.def: Remove unused section.
22163
d06865bf
DK
221642011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
22165
22166 PR c++/47218
22167 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22168
96bbfbac
NP
221692011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
22170
22171 PR objc/47232
22172 * c-parser.c (c_parser_declaration_or_fndef): Improved
22173 error message.
22174
1ba6516f
KT
221752011-01-09 Kai Tietz <kai.tietz@onevision.com>
22176
22177 * config/i386/winnt.c (i386_pe_start_function): Make sure
22178 to switch back to function's section.
22179
0c5d770e
IS
221802011-01-09 Iain Sandoe <iains@gcc.gnu.org>
22181
22182 PR gcc/46902
22183 PR testsuite/46912
22184 * plugin.c: Move include of dlfcn.h from here...
22185 * system.h: ... to here.
22186
221872011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
22188
22189 * doc/cpp.texi (C++ Named Operators): Fix markup for header
22190 file name.
22191 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22192 two extra empty pages in PDF output.
22193
046608a3
NP
221942011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
22195
22196 PR objc/47078
22197 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22198 for error recovery purposes behave as if it was not specified so
22199 that the default type is usd.
22200
8cb114b9
JH
222012011-01-07 Jan Hubicka <jh@suse.cz>
22202
22203 PR tree-optmization/46469
22204 * ipa.c (function_and_variable_visibility): Clear needed flags on
22205 nodes with external decls; handle weakrefs merging correctly.
22206
b294a75e
JM
222072011-01-07 Joseph Myers <joseph@codesourcery.com>
22208
22209 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22210 not false.
22211
96bdf9b4
JH
222122011-01-07 Jan Hubicka <jh@suse.cz>
22213
f60c2554 22214 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
22215 and no longer claim that gold is required for linker plugin.
22216 * configure: Regenerate.
22217 * gcc.c (PLUGIN_COND): New macro.
22218 (LINK_COMMAND_SPEC): Use it.
22219 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22220 * config.in (HAVE_LTO_PLUGIN): New.
22221 * configure.ac (--with-lto-plugin): New parameter; autodetect
22222 HAVE_LTO_PLUGIN.
22223
17afc0fe
JH
222242011-01-07 Jan Hubicka <jh@suse.cz>
22225
22226 PR tree-optimization/46367
22227 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22228 when we can update original.
22229 (cgraph_mark_inline_edge): Sanity check.
22230 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22231
d4c48c0f
UW
222322011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22233
22234 * config/spu/spu.h (ASM_COMMENT_START): Define.
22235
96f5b137
L
222362011-01-07 H.J. Lu <hongjiu.lu@intel.com>
22237
22238 PR driver/42445
22239 * gcc.c (%>S): New.
22240 (SWITCH_KEEP_FOR_GCC): Likewise.
22241 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22242 (do_spec_1): Handle "%>".
22243
22244 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22245
c6a8f6de
JJ
222462011-01-07 Jakub Jelinek <jakub@redhat.com>
22247
c21bbd7a
JJ
22248 PR target/47201
22249 * config/i386/i386.c (ix86_delegitimize_address): If
22250 simplify_gen_subreg fails, return orig_x.
22251
c6a8f6de
JJ
22252 PR bootstrap/47187
22253 * value-prof.c (gimple_stringop_fixed_value): Handle
22254 lhs of the call properly.
22255
fe95fbf9
JH
222562011-01-07 Jan Hubicka <jh@suse.cz>
22257
22258 PR lto/45375
22259 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22260
14d11d40
IS
222612011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22262
72e961c8
EB
22263 * target.def (function_switched_text_sections): New hook.
22264 * doc/tm.texi: Regenerated.
22265 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 22266 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
22267 (final_scan_insn): Call function_switched_text_sections when a
22268 mid-function section change occurs.
14d11d40 22269 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
22270 * config/darwin-protos.h (darwin_function_switched_text_sections):
22271 Likewise.
14d11d40 22272 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 22273 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 22274
0b764288
IS
222752011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22276
22277 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22278 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22279 the secondary code fragment when outputting for DWARF == 2.
22280
2ac6bb04
AS
222812011-01-07 Anatoly Sokolov <aesok@post.ru>
22282
22283 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22284 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22285 Remove.
22286 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22287 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22288
9f82de11
EB
222892011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22290
22291 PR debug/46704
280d9630
EB
22292 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22293 when it is not empty.
9f82de11
EB
22294
222952011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 22296
1ed72abf 22297 Bobcat Enablement
14b52538 22298 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 22299 (case ${target}): Add btver1.
14b52538 22300 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 22301 -march=native recognize btver1 processors.
14b52538 22302 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 22303 btver1 def_and_undef
14b52538 22304 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
22305 btver1 cost table.
22306 (m_BTVER1): New definition.
22307 (m_AMD_MULTIPLE): Includes m_BTVER1.
22308 (initial_ix86_tune_features): Add btver1 tune.
22309 (processor_target_table): Add btver1 entry.
22310 (static const char *const cpu_names): Add btver1 entry.
22311 (software_prefetching_beneficial_p): Add btver1.
22312 (ix86_option_override_internal): Add btver1 instruction sets.
22313 (ix86_issue_rate): Add btver1.
22314 (ix86_adjust_cost): Add btver1.
14b52538 22315 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
22316 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22317 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
22318 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22319
e1a973d8
RO
223202011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22321
22322 PR target/43309
22323 * config/i386/i386.c (legitimize_tls_address)
22324 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22325 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22326 (tls_initial_exec_64_sun): New pattern.
22327
c73f67c5
GP
223282011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22329
22330 * doc/invoke.texi (Overall Options): Improve wording and markup
22331 of the description of -wrapper.
22332
bc4c6f9c
JM
223332011-01-06 Joseph Myers <joseph@codesourcery.com>
22334
22335 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22336 rdynamic, threads): New Driver options.
22337
adb75db0
RO
223382011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22339
22340 PR target/38118
22341 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22342 if coming from .tdata.
22343 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22344
402c1cb4
JH
223452011-01-06 Jan Hubicka <jh@suse.cz>
22346
22347 PR lto/47188
22348 * collect2.c (main): Do not enable LTOmode when plugin is active.
22349
a4da6485
RO
223502011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22351
22352 PR other/45915
22353 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22354 --version output if supported.
22355 * configure: Regenerate.
22356
028dbdf4
JM
223572011-01-06 Joseph Myers <joseph@codesourcery.com>
22358
22359 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22360 Driver options.
22361
dfe776dd
JJ
223622011-01-06 Jakub Jelinek <jakub@redhat.com>
22363
22364 PR c/47150
22365 * c-convert.c (convert): When converting a complex expression
22366 other than COMPLEX_EXPR to a different complex type, ensure
22367 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22368 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22369 when converting COMPLEX_TYPE.
22370
210dedfe
IR
223712011-01-06 Ira Rosen <irar@il.ibm.com>
22372
22373 PR tree-optimization/47139
22374 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22375 only the last reduction value is used outside the loop. Update
22376 documentation.
22377
cd33a412
JM
223782011-01-05 Joseph Myers <joseph@codesourcery.com>
22379
22380 * config/rtems.opt: New.
22381 * config.gcc (*-*-rtems*): Use rtems.opt.
22382
819edd94
CF
223832011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22384
22385 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22386 processors do not support 3DNow instructions.
22387
dc242c4a
UW
223882011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22389
22390 * config/spu/spu.c (spu_option_override): Set parameter
22391 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22392
be286227
JH
223932011-01-05 Jan Hubicka <jh@suse.cz>
22394
22395 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22396 at the command line.
22397
644e637f
MJ
223982011-01-05 Martin Jambor <mjambor@suse.cz>
22399
22400 PR lto/47162
22401 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22402 deltas on streamed outgoing edges.
22403 (output_node_opt_summary): Output info for outgoing edges only when
22404 the node is in new parameter set.
22405 (output_cgraph_opt_summary): New parameter set, passed to the two
22406 aforementioned functions. Update its forward declaration and its
22407 callee too.
22408
7bd11157
TT
224092011-01-05 Tom Tromey <tromey@redhat.com>
22410
22411 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22412 operator to c_finish_omp_atomic.
22413 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22414 (build_unary_op): Update.
22415 (build_modify_expr): Update.
22416 (build_asm_expr): Update.
22417
f626b979
UW
224182011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22419
22420 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22421 newly inserted insns.
22422 (pad_bb): Likewise.
22423 (spu_emit_branch_hint): Likewise.
22424 (insert_hbrp_for_ilb_runout): Likewise.
22425 (spu_machine_dependent_reorg): Call df_finish_pass after
22426 schedule_insns returns.
22427
4c825c02
UW
224282011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22429
22430 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22431
5e9fba51
EB
224322011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22433
22434 PR tree-optimization/47005
22435 * tree-sra.c (struct access): Add 'non_addressable' bit.
22436 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22437 (decide_one_param_reduction): Return 0 if the parameter is passed by
22438 reference and one of the accesses in the group is non_addressable.
22439
3ebb5ca6
EB
224402011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22441
22442 PR tree-optimization/47056
22443 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22444 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22445 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22446
d5d4d14e
EB
224472011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22448
22449 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22450 initializer. Skip view conversions from aggregate types.
22451
d996ef70
KT
224522011-01-04 Kai Tietz <kai.tietz@onevision.com>
22453
22454 PR bootstrap/47055
22455 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22456
509d65dd 224572011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
22458
22459 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22460 obvious typo.
22461
55c623b5
UW
224622011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22463
22464 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22465 on empty epilogue sequences.
22466
b98d6b35
JM
224672011-01-04 Joseph Myers <joseph@codesourcery.com>
22468
22469 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22470 non-static): New Driver options.
22471
a0d43bac
JZ
224722011-01-04 Jie Zhang <jie@codesourcery.com>
22473
22474 PR driver/47137
22475 * gcc.c (default_compilers[]): Set combinable field to 0
22476 for all assembly languages.
22477
2b18eb32
MX
224782011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22479
22480 * config/mips/loongson3a.md: New file.
22481 * config/mips/mips.md: Include loongson3a.md.
22482 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22483 TUNE_LOONGSON_3A.
22484
42a48c4f
EB
224852011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22486
22487 PR middle-end/47017
22488 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22489 instead of convert_memory_address_addr_space on the base expression.
22490
9c1732c4
UW
224912011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22492
22493 * config/spu/spu.c (spu_option_override): Update error text
22494 for bad -march= / -mtune= values.
22495
aa474365
UW
224962011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22497
22498 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22499 if branch-hint optimization will be performed.
22500
9766135b
JJ
225012011-01-03 Jakub Jelinek <jakub@redhat.com>
22502
371556ee
JJ
22503 PR tree-optimization/47148
22504 * ipa-split.c (split_function): Convert arguments to
22505 DECL_ARG_TYPE if possible.
22506
1ac12fa2
JJ
22507 PR tree-optimization/47155
22508 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22509 when computing uns.
22510
9766135b
JJ
22511 PR rtl-optimization/47157
22512 * combine.c (try_combine): If undobuf.other_insn becomes
22513 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22514 and set *new_direct_jump_p too.
22515
f4a2e571
SP
225162011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22517
22518 PR tree-optimization/47021
22519 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22520
9f8e43c0
JJ
225212011-01-03 Jakub Jelinek <jakub@redhat.com>
22522
22523 * gcc.c (process_command): Update copyright notice dates.
22524 * gcov.c (print_version): Likewise.
22525 * gcov-dump.c (print_version): Likewise.
22526 * mips-tfile.c (main): Likewise.
22527 * mips-tdump.c (main): Likewise.
22528
1a2e38f3
MJ
225292011-01-03 Martin Jambor <mjambor@suse.cz>
22530
22531 PR tree-optimization/46801
22532 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22533 aggregate fields start at byte boundary instead of the bit-field flag.
22534
56b721c5
L
225352011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22536
22537 PR driver/47137
22538 * gcc.c (main): Revert revision 168407.
22539
839d549b
MJ
225402011-01-03 Martin Jambor <mjambor@suse.cz>
22541
22542 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22543
4ce99a20 225442011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
22545
22546 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22547 vector optab to expand vector/scalar shift, update gimple to vector.
22548
76df0ae6
MJ
225492011-01-03 Martin Jambor <mjambor@suse.cz>
22550
22551 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22552 a thunk.
22553
ce47fda3
MJ
225542011-01-03 Martin Jambor <mjambor@suse.cz>
22555
22556 PR tree-optimization/46984
22557 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22558 HOST_WIDE_INT.
22559 (cgraph_create_indirect_edge): Fixed line length.
22560 (cgraph_indirect_call_info): Declare.
22561 (cgraph_make_edge_direct) Update declaration.
22562 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22563 (cgraph_create_indirect_edge): Use it.
22564 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22565 callees.
22566 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22567 the new thunk_delta representation.
22568 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22569 HOST_WIDE_INT.
22570 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22571 (ipa_read_indirect_edge_info): Likewise.
22572 * lto-cgraph.c (output_edge_opt_summary): New function.
22573 (output_node_opt_summary): Call it on all outgoing edges.
22574 (input_edge_opt_summary): New function.
22575 (input_node_opt_summary): Call it on all outgoing edges.
22576
1e67fa1f
L
225772011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22578
22579 PR driver/47137
22580 * gcc.c (main): Don't check have_o when settting combine_inputs.
22581
6656b2ac
EB
225822011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22583
22584 * regrename.c: Add general comment describing the pass.
22585 (struct du_head): Remove 'length' field.
22586 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22587 (regrename_optimize): Do not sort chains. Rework comments, add others.
22588 Force renaming to the preferred class (if any) in the first pass and do
22589 not consider registers that belong to it in the second pass.
22590 (create_new_chain): Do not set 'length' field.
22591 (scan_rtx_reg): Likewise.
22592
bc470c24
JJ
225932011-01-02 Jakub Jelinek <jakub@redhat.com>
22594
4e996296
JJ
22595 PR tree-optimization/47140
22596 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22597 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22598 to bit_value_binop.
22599
bc470c24 22600 PR rtl-optimization/47028
6656b2ac
EB
22601 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22602 parm_birth_insn instead of at the beginning of first bb.
bc470c24 22603
5af62fcd 226042011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
22605
22606 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22607 Remove the word "see" before "@pxref".
22608 * doc/rtl.texi: Remove the word "see" before "@pxref".
22609
0e20c89f
JH
226102011-01-01 Jan Hubicka <jh@suse.cz>
22611
6656b2ac
EB
22612 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22613 memory.
0e20c89f 22614
220e83ca
KT
226152011-01-01 Kai Tietz <kai.tietz@onevision.com>
22616
22617 PR target/38662
6656b2ac 22618 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 22619
ad41bd84 22620\f
797103eb 22621Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
22622
22623Copying and distribution of this file, with or without modification,
22624are permitted in any medium without royalty provided the copyright
22625notice and this notice are preserved.