]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
uninit-pred-8_b.c: Disable dominator optimizations.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
2d8d5935
RO
12011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2
3 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
4 * config/t-dfprules: Move to ../libgcc/config.
5 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
6 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
7 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
8 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
9 Likewise.
10 (i[34567]86-*-cygwin*): Likewise.
11 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
12 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
13 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
14 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
15 D64PBIT_FUNCS, D128PBIT_FUNCS.
16
dcc95c20
RG
172011-07-11 Richard Guenther <rguenther@suse.de>
18
19 * tree-vrp.c (simplify_conversion_using_ranges): Manually
20 translate the source value-range through the conversion chain.
21
28164eed
RS
222011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
23
24 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
25
f3054223
AL
262011-07-11 Arthur Loiret <aloiret@debian.org>
27
28 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
29 a bi-arch compiler defaulting to 31-bit. In this case:
30 (tmake_file): Add s390/t-linux64.
31 * doc/install.texi: Add s390-linux to the list of targets supporting
32 --enable-targets=all.
33
bd5ab709
AL
342011-07-11 Arthur Loiret <aloiret@debian.org>
35 Matthias Klose <doko@debian.org>
36
37 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
38 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
39 (tm_file): Add mips/linux64.h.
40 (tmake_file): Add mips/t-linux64.
41 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
42 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
43 instead of hardcoded mabi=n32.
44 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
45 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
46 convention.
47
d3b7e946
AK
482011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
49
50 * passes.c (init_optimization_passes): Add invariant motion pass
51 after induction variable optimization.
52
7e4ec472
GJL
532011-07-11 Georg-Johann Lay <avr@gjlay.de>
54
55 PR target/39633
56 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
57 offsets 1..5 set cc0 in a usable way.
58
0e65e631
RG
592011-07-11 Romain Geissler <romain.geissler@gmail.com>
60
61 * tree.h (call_expr_arg): Remove.
62 (call_expr_argp): Likewise.
63
18970372
EB
642011-07-11 Eric Botcazou <ebotcazou@adacore.com>
65
66 * config/sparc/sparc.md (save_register_window_1): Rename to...
67 (window_save): ...this.
68 * config/sparc/sparc.c (emit_save_register_window): Rename to...
69 (emit_window_save): ...this.
70 (sparc_expand_prologue): Adjust to above renaming.
71
9e419e38
L
722011-07-10 H.J. Lu <hongjiu.lu@intel.com>
73
74 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
75 of movabs for x32.
76
3db72de3
RH
772011-07-10 Richard Henderson <rth@redhat.com>
78
79 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
80 run final, instead of emitting text directly.
81
a1f91bca
L
822011-07-10 H.J. Lu <hongjiu.lu@intel.com>
83
84 * config/i386/i386.c (ix86_option_override_internal): Turn on
85 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
86 small PIC models for TARGET_X32.
87
a50023f9
HPN
882011-07-10 Hans-Peter Nilsson <hp@axis.com>
89
9a0b29f0
HPN
90 PR target/49684
91 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
92 $(LIBGCC2_CFLAGS).
93
a50023f9
HPN
94 PR bootstrap/49680
95 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
96 stray notes and debug insns by using prev_nonnote_nondebug_insn
97 instead of PREV_INSN.
98
948d330e
RH
992011-07-09 Richard Henderson <rth@redhat.com>
100
101 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
102 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
103 * dwarf2out.c: ... here.
104 (output_all_cfis): Remove.
105 (dwarf2out_switch_text_section): Use output_cfis directly.
106 (size_of_locs): Export.
107 (output_loc_sequence, output_loc_sequence_raw): Export.
108 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
109 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
110 output_cfa_loc_raw): Move to ...
111 * dwarfcfi.c: ... here.
112 * dwarf2out.h: Update decls.
113
db42e39d
RH
1142011-07-09 Richard Henderson <rth@redhat.com>
115
116 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
117 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
118 * dwarf2cfi.c: ... here.
119 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
120 (DWARF_ROUND, DWARF_CIE_ID): Remove.
121 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
122 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
123 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
124
a8e5c0e7
RH
1252011-07-09 Richard Henderson <rth@redhat.com>
126
127 * dwarf2cfi.c (cie_return_save): New.
128 (queue_reg_save): Use compare_reg_or_pc.
129 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
130 (dwarf2out_frame_debug_expr): Likewise.
131 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
132 (initial_return_save): Likewise.
133 (execute_dwarf2_frame): Save and restore initial return save from
134 the cie to the fde.
135 * config/mips/mips.c (mips_frame_set): Remove special case for
136 DWARF_FRAME_RETURN_COLUMN.
137
4a8ee122
RH
1382011-07-09 Richard Henderson <rth@redhat.com>
139
140 * dwarf2cfi.c (lookup_cfa): Remove.
141 (execute_dwarf2_frame): Assert queues are empty on entry.
142 Setup initial cfa directly, not via lookup_cfa.
143 Don't clear args_size state here.
144
3edb53aa
RH
1452011-07-09 Richard Henderson <rth@redhat.com>
146
147 * dwarf2cfi.c (add_cfi_vec): New.
148 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
149 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
150 (execute_dwarf2_frame): Set add_cfi_vec.
151
ded49a7f
RH
1522011-07-09 Richard Henderson <rth@redhat.com>
153
154 * defaults.h (ASM_COMMENT_START): Move here...
155 * dwarf2asm.c: ... from here.
156 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
157 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
158 * varasm.c: Likewise.
159
45fba6d1
RH
1602011-07-09 Richard Henderson <rth@redhat.com>
161
162 PR debug/49686
163 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
164 (create_cfi_notes): ... do it here instead.
165
5b696ba2
JJ
1662011-07-09 Jakub Jelinek <jakub@redhat.com>
167
168 PR debug/49676
169 * dwarf2out.c (size_of_int_loc_descriptor): New function.
170 (address_of_int_loc_descriptor): Use it.
171 (scompare_loc_descriptor): Optimize EQ/NE comparison with
172 constant.
173
8662b2ba
RH
1742011-07-09 Richard Henderson <rth@redhat.com>
175
176 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
177 (prologue, epilogue): New.
178 (return, *rts): New.
179 (blockage, setd, seti): New.
180 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
181 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
182 (pdp11_saved_regno): New.
183 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
184 generate rtl instead of text.
185 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
186 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
187 * config/pdp11/pdp11-protos.h: Update.
188
28b21ebb
RH
1892011-07-09 Richard Henderson <rth@redhat.com>
190
191 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
192 try to insert an rtl prologue here.
193 (rs6000_output_function_epilogue): Similarly.
194 * config/rs6000/rs6000.md (prologue): Emit a barrier to
195 satisfy !TARGET_SCHED_PROLOG.
196 (epilogue, sibcall_epilogue): Likewise.
197
0a222ba7
EB
1982011-07-09 Eric Botcazou <ebotcazou@adacore.com>
199
200 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
201 (FP_REG_P): Delete.
202 (IN_OR_GLOBAL_P): Likewise.
203
2fda8e14
JM
2042011-07-08 Jason Merrill <jason@redhat.com>
205
4063e61b
JM
206 PR c++/45437
207 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
208 compound assignment.
209
2fda8e14
JM
210 * cgraph.c (cgraph_add_to_same_comdat_group): New.
211 * cgraph.h: Declare it.
212 * ipa.c (function_and_variable_visibility): Make sure thunks
213 have the right visibility.
214
830f11fe
RH
2152011-07-08 Richard Henderson <rth@redhat.com>
216
217 PR bootstrap/49680
218 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
219 any tablejump vector.
220
965b2557
RH
221 PR bootstrap/49680
222 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
223 end of the prologue.
224
70db9095
JJ
2252011-07-08 Jakub Jelinek <jakub@redhat.com>
226
227 PR target/49621
228 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
229 CONST0_RTX (dest_mode) instead of const0_rtx as second operand
230 of NE.
231 * config/rs6000/vector.md (vector_select_<mode>,
232 vector_select_<mode>_uns): Change second operand of NE to
233 CONST0_RTX (<MODE>mode) instead of const0_rtx.
234 * config/rs6000/altivec.md (*altivec_vsel<mode>,
235 *altivec_vsel<mode>_uns): Expect second operand of NE to be
236 zero_constant of the corresponding vector mode.
237 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
238 Likewise.
239
e92c5020
SP
2402011-07-08 Sebastian Pop <sebastian.pop@amd.com>
241
242 * graphite-dependences.c (build_alias_set_powerset): Remove
243 continue from loop, add one more assert.
244
3e4f8484
GJL
2452011-07-08 Georg-Johann Lay <avr@gjlay.de>
246
247 PR target/46779
248 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
249 In particular, allow 8-bit values in r28 and r29.
250 (avr_hard_regno_scratch_ok): Disallow any register that might be
251 part of the frame pointer.
252 (avr_hard_regno_rename_ok): Same.
253 (avr_legitimate_address_p): Don't allow SUBREGs.
254
0094f21b
JB
2552011-07-08 Julian Brown <julian@codesourcery.com>
256
257 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
258 big-endian mode.
259 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
260 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
261 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
262 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
263 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
264 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
265 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
266 registers in big-endian mode.
267
9ae60101
BS
2682011-07-08 Bernd Schmidt <bernds@codesourcery.com>
269
270 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
271 in terms of another.
272 (write_attr_value): Write a cast if necessary.
273
c0a6a1ef
BS
274 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
275 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
276 (REG_WORDS_BIG_ENDIAN): Document.
277 * doc/tm.texi: Regenerate.
278 * reload.c (operands_match_p): Take it into account.
279 (reload_adjust_reg_for_mode): Likewise.
280 * rtlanal.c (subreg_get_info): Likewise.
281
b862187a
RG
2822011-07-08 Richard Guenther <rguenther@suse.de>
283
284 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
285 folding.
286
e8e8c74b
KT
2872011-07-08 Kai Tietz <ktietz@redhat.com>
288
289 * fold-const.c (fold_truth_andor): Factored out truth_andor
290 label from fold_binary as function.
291 (fold_binary_loc): Replace truth_andor lable
292 by function fold_truth_andor.
293
6c3cb698
KY
2942011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
295
296 PR middle-end/49519
297 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
298 check if address is stored in register. If so - give up.
299 (check_sibcall_argument_overlap_1): Do not perform check of
300 overlapping when it is call to address.
301
7d8d6d73 3022011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 303
7d8d6d73
GJL
304 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
305 of magic '31'.
306
69660a70
BS
3072011-07-08 Bernd Schmidt <bernds@codesourcery.com>
308
309 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
310 GET_MODE_BITSIZE where appropriate.
311 (widen_leading, expand_parity, expand_ctz, expand_ffs,
312 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
313 expand_float, expand_fix): Likewise.
314 * expr.c (convert_move, convert_modes, expand_expr_real_2,
315 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
316 * stor-layout.c (get_mode_bounds): Likewise.
317 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
318 Likewise.
319 * convert.c (convert_to_integer): Likewise.
320 * expmed.c (expand_shift_1): Likewise.
321
86cdf393
BS
322 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
323 a bitsize.
324
0d44736e
BS
325 * optabs.c (expand_binop): Tighten conditions for doubleword
326 expansions.
327 (widen_bswap): Assert that mode bitsize and precision are the
328 same.
329 * stor-layout.c (get_best_mode): Skip modes that have lower
330 precision than bitsize.
331 * recog.c (simplify_while_replacing): Assert that bitsize and
332 precision are the same.
333
2c50b2c3
RO
3342011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
335
336 * Makefile.in (LIBGCOV): Remove.
337 (libgcc.mvars): Remove LIBGCOV.
338 * libgov.c: Move to ../libgcc.
339
a039d7c2
RO
3402011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
341
342 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
343
e923ef41
MJ
3442011-07-08 Martin Jambor <mjambor@suse.cz>
345
346 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
347 is too big for total scalarization.
348
b709e189
RH
3492011-07-07 Richard Henderson <rth@redhat.com>
350
351 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
352 (DBX_DEBUGGING_INFO): Undef.
353
2867fa7c
RH
3542011-07-07 Richard Henderson <rth@redhat.com>
355
356 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
357 Handle some opcodes specially for debugging.
358 * print-rtl.c: Include dwarf2out.h
359 (print_rtx): Handle NOTE_INSN_CFI.
360 * Makefile.in (print-rtl.o): Update.
361
7644b3c7
RH
3622011-07-07 Richard Henderson <rth@redhat.com>
363
364 * tree-pass.h (pass_dwarf2_frame): Declare.
365 * passes.c (init_optimization_passes): Add it.
366 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
367 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
368 make static, do not call add_cfis_to_fde.
369 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
370 dwarf2out_frame_init): Merge into...
371 (execute_dwarf2_frame): ... here. New function.
372 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
373 saved_do_cfi_asm to a tri-state variable.
374 (gate_dwarf2_frame, pass_dwarf2_frame): New.
375 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
376 if it has yet to be done. Don't call dwarf2cfi_function_init.
377 * dwarf2out.h, debug.h: Update decls.
378 * final.c (final_start_function): Don't call
379 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
380 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
381 * toplev.c (lang_dependent_init): Likewise.
382
a518b996
RH
3832011-07-07 Richard Henderson <rth@redhat.com>
384
385 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
386 FDE_TABLE_INCREMENT): Replace with...
387 (fde_vec): ... this, a new vector.
388 (current_fde): Remove. Replace all users with cfun->fde.
389 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
390 (size_of_aranges, dwarf2out_finish): Likewise.
391 (dwarf2out_alloc_current_fde): Break out from ...
392 (dwarf2out_begin_prologue): ... here.
393 (dwarf2out_frame_init): Remove.
394 * dwarf2cfi.c: Update all users of current_fde.
395 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
396 * dwarf2out.h: Update decls.
397 (dw_fde_node): Add fde_index member.
398 * function.h (struct function): Add fde member.
399
89e25f95
BS
4002011-07-07 Bernd Schmidt <bernds@codesourcery.com>
401 Richard Henderson <rth@redhat.com>
402
403 * dwarf2cfi.c (add_cfi): Remove.
404 (dwarf2out_cfi_label): Remove force argument. Only generate the
405 label name.
406 (add_fde_cfi): Simplify the different code paths.
407 (add_cie_cfi): New.
408 (old_cfa, old_cfa_remember): New.
409 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
410 (last_reg_save_label): Remove.
411 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
412 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
413 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
414 dwarf2out_frame_debug_cfa_expression,
415 dwarf2out_frame_debug_cfa_restore,
416 dwarf2out_frame_debug_cfa_window_save,
417 dwarf2out_frame_debug_expr): Remove label parameter.
418 (cfi_label_required_p, add_cfis_to_fde): New.
419 (dwarf2out_frame_debug_after_prologue): New.
420 (dwarf2cfi_frame_init): Initialize old_cfa.
421 (dwarf2out_frame_debug_restore_state): Likewise.
422 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
423 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
424 * final.c (final_start_function): Call
425 dwarf2out_frame_debug_after_prologue.
426
bc5612ed
BS
4272011-07-07 Bernd Schmidt <bernds@codesourcery.com>
428 Richard Henderson <rth@redhat.com>
429
430 * dwarf2cfi.c (cfi_insn): New.
431 (dwarf2out_cfi_label): Don't emit cfi label here.
432 (add_fde_cfi): Create a NOTE_INSN_CFI.
433 (dwarf2out_frame_debug): Setup cfi_insn.
434 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
435 (dwarf2out_cfi_begin_epilogue): Make static.
436 (dwarf2out_frame_debug_restore_state): Make static.
437 * dwarf2out.c (output_cfi_directive): Make static.
438 (dwarf2out_emit_cfi): New.
439 * dwarf2out.h: Update.
440 * final.c (final): Remove CFI notes.
441 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
442 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
443 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
444 * insn-notes.def (NOTE_INSN_CFI): New.
445 (NOTE_INSN_CFI_LABEL): New.
446 * rtl.h (union rtunion_def): Add rt_cfi member.
447 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
448
647a1567
RH
4492011-07-07 Richard Henderson <rth@redhat.com>
450
451 * dwarf2cfi.c: New file.
452 * Makefile.in (OBJS): Add it.
453 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
454 * gengtype.c (open_base_files): Include dwarf2out.h.
455 * coretypes.h (enum var_init_status): Move from ...
456 * rtl.h: ... here.
457 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
458 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
459 expand_builtin_dwarf_sp_column, init_return_column_size,
460 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
461 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
462 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
463 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
464 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
465 compute_barrier_args_size, dwarf2out_args_size,
466 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
467 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
468 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
469 queue_reg_save, dwarf2out_flush_queued_reg_saves,
470 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
471 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
472 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
473 dwarf2out_frame_debug_cfa_expression,
474 dwarf2out_frame_debug_cfa_restore,
475 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
476 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
477 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
478 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
479 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
480 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
481 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
482 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
483 dw_loc_descr_node): Move to dwarf2out.h.
484 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
485 mem_loc_descriptor): Export.
486 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
487 (dwarf2out_frame_init): Extract CIE generation code to
488 dwarf2cfi_frame_init.
489
b286d9ed
EB
4902011-07-07 Eric Botcazou <ebotcazou@adacore.com>
491
492 PR target/49660
493 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
494 MASK_V8PLUS, remove commented out flag and reorder.
495
c4603e7c
JJ
4962011-07-07 Jakub Jelinek <jakub@redhat.com>
497
498 PR c/49644
499 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
500 one non-complex and one complex argument, call c_save_expr on both
501 operands.
502
81361831
MJ
5032011-07-07 Martin Jambor <mjambor@suse.cz>
504
505 PR middle-end/49495
506 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
507 (verify_cgraph_node): Some functinality moved to
508 verify_edge_corresponds_to_fndecl, call it.
509
1e4b2746
JM
5102011-07-07 Joseph Myers <joseph@codesourcery.com>
511
512 * config.gcc (*local*): Remove.
513 * doc/install-old.texi: Don't mention local configurations.
514
d7ff1e11
JJ
5152011-07-07 Jakub Jelinek <jakub@redhat.com>
516
517 PR debug/49522
518 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
519 referencing debug insns that have been reset.
520 (dead_debug_insert_before): Don't assert reg is non-NULL,
521 instead return immediately if it is NULL.
522
2492731a
JM
5232011-07-07 Joseph Myers <joseph@codesourcery.com>
524
525 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
526 Remove.
527
9d9c740d
BS
5282011-07-07 Bernd Schmidt <bernds@codesourcery.com>
529
530 * hw-doloop.c: New file.
531 * hw-doloop.h: New file.
532 * Makefile.in (OBJS): Add hw-doloop.o.
533 (hw-doloop.o): New rule.
534 ($(obj_out_file)): Add hw-doloop.h dependency.
535 * config/bfin/bfin.c: Include "hw-doloop.h".
536 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
537 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
538 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
539 type changed to hwloop_info. Return bool, true if the loop was
540 successfully optimized. Remove code that was moved to
541 hw-doloop.c, and adjust other parts.
542 (hwloop_fail): New static function, containing parts that used
543 to be in bfin_optimize_loop.
544 (bfin_discover_loop, bfin_discover_loops, free_loops,
545 bfin_reorder_loops): Remove.
546 (hwloop_pattern_reg): New static function.
547 (bfin_doloop_hooks): New variable.
548 (bfin_reorg_loops): Remove most code, call reorg_loops.
549 * config/bfin/bfin.md (doloop_end splitter): Also enable if
550 loop counter is a memory_operand.
551
f0ea7581
L
5522011-07-07 H.J. Lu <hongjiu.lu@intel.com>
553
554 * config.gcc: Support --with-multilib-list for x86 Linux
555 targets.
556
557 * configure.ac: Mention x86-64 for --with-multilib-list.
558 * configure: Regenerated.
559
560 * config/i386/gnu-user64.h (SPEC_64): Support x32.
561 (SPEC_32): Likewise.
562 (ASM_SPEC): Likewise.
563 (LINK_SPEC): Likewise.
564 (TARGET_THREAD_SSP_OFFSET): Likewise.
565 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
566 (SPEC_X32): New.
567
568 * config/i386/i386.h (TARGET_X32): New.
569 (TARGET_LP64): New.
570 (LONG_TYPE_SIZE): Likewise.
571 (POINTER_SIZE): Likewise.
572 (POINTERS_EXTEND_UNSIGNED): Likewise.
573 (OPT_ARCH64): Support x32.
574 (OPT_ARCH32): Likewise.
575
576 * config/i386/i386.opt (mx32): New.
577
578 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
579 (GLIBC_DYNAMIC_LINKERX32): Likewise.
580 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
581 (GLIBC_DYNAMIC_LINKERX32): Likewise.
582
583 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
584 (BIONIC_DYNAMIC_LINKERX32): Likewise.
585 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
586
587 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
588
589 * doc/install.texi: Document --with-multilib-list for
590 Linux/x86-64.
591
592 * doc/invoke.texi: Document -mx32.
593
38460025
RS
5942011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
595
596 * doc/invoke.texi (mwords-little-endian): Deprecate.
597 * config/arm/arm.opt (mwords-little-endian): Likewise.
598 * config/arm/arm.c (arm_option_override): Warn about the deprecation
599 of -mwords-little-endian.
600
3f125532
RS
6012011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
602
603 * reload1.c (choose_reload_regs): Use mode sizes to check whether
604 an old reload register completely defines the required value.
605
bbc210ab
RG
6062011-07-07 Richard Guenther <rguenther@suse.de>
607
608 * fold-const.c (fold_unary_loc): Do not strip sign-changes
609 for NEGATE_EXPR.
610
29c5134a
RG
6112011-07-07 Richard Guenther <rguenther@suse.de>
612
613 * tree-vrp.c (simplify_conversion_using_ranges): New function.
614 (simplify_stmt_using_ranges): Call it.
615
0816a42a
KT
6162011-07-07 Kai Tietz <ktietz@redhat.com>
617
618 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
619 (lookup_logical_inverted_value): Likewise.
620 (simplify_bitwise_binary_1): Likewise.
621 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
622
3ce9f090
JM
6232011-07-07 Joseph Myers <joseph@codesourcery.com>
624
625 * gcc.c (%[Spec]): Don't document.
626 (struct spec_list): Update comment.
627 (do_spec_1): Don't handle %[Spec].
628 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
629
41dfca87
JM
6302011-07-07 Joseph Myers <joseph@codesourcery.com>
631
632 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
633 default based on TARGET_ASM_NAMED_SECTION.
634 * common/common-target.def (have_named_sections): Default to true.
635 * common/config/default-common.c: Don't include tm.h.
636 * common/config/picochip/picochip-common.c
637 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
638 * common/config/m32c/m32c-common.c: Remove.
639 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
640 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
641 false.
642 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
643 false.
644 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
645 false.
646 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
647 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
648 false.
649 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
650 false.
651
19c44640
JJ
6522011-07-07 Jakub Jelinek <jakub@redhat.com>
653
654 PR middle-end/49640
655 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
656 operands and last COMPONENT_REF operand call gimplify_expr on it
657 if non-NULL.
658
891a2e42
RO
6592011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
660
661 PR libmudflap/49550
662 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
663
fbdd5d87
RO
6642011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
665
666 PR target/39150
667 * configure.ac (gcc_cv_as_hidden): Also accept
668 x86_64-*-solaris2.1[0-9]*.
669 (gcc_cv_as_cfi_directive): Likewise.
670 (gcc_cv_as_comdat_group_group): Likewise.
671 (set_have_as_tls): Likewise.
672 * configure: Regenerate.
673 * config.gcc (i[34567]86-*-solaris2*): Also handle
674 x86_64-*-solaris2.1[0-9]*.
675 * config.host (i[34567]86-*-solaris2*): Likewise.
676 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
677 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
678 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
679 (TARGET_LD_EMULATION): Use it.
680 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
681 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
682 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
683 (ASM_CPU64_DEFAULT_SPEC): Define.
684 (ASM_CPU_SPEC): Use %(asm_cpu_default).
685 (ASM_SPEC): Redefine.
686 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
687 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
688 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
689 Document.
690 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
691 configuration.
692 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
693
fcf7471a
RO
6942011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
695
696 * config/sol2.h (ASM_SPEC): Split into ...
697 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
698 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
699 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
700 (ASM_SPEC): Use ASM_SPEC_BASE.
701 * config/sparc/sol2.h (ASM_SPEC): Redefine.
702
1e6a67d1
GJL
7032011-07-07 Georg-Johann Lay <avr@gjlay.de>
704
705 * config/avr/avr.md (*reload_insi): Change predicate #1 to
706 const_int_operand. Ditto for peep2 producing this insn.
707 Add argument to output_reload_insisf call.
708 (*movsi,*movsf): Add argument to output_movsisf call.
709 (*reload_insf): New insn and new peep2 to produce it.
710 * config/avr/avr-protos.h (output_movsisf): Change prototype.
711 (output_reload_insisf): Change prototype.
712 * config/avr/avr.c (avr_asm_len): New function.
713 (output_reload_insisf): Rewrite.
714 (output_movsisf): Change prototype. output_reload_insisf for
715 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
716 (adjust_insn_length): Add argument to output_movsisf and
717 output_reload_insisf call.
718
6a4bdc79
BS
7192011-07-07 Bernd Schmidt <bernds@codesourcery.com>
720
721 * emit-rtl.c (paradoxical_subreg_p): New function.
722 * rtl.h (paradoxical_subreg_p): Declare.
723 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
724 apply_distributive_law, simplify_comparison, simplify_set): Use it.
725 * cse.c (record_jump_cond, cse_insn): Likewise.
726 * expr.c (force_operand): Likewise.
727 * rtlanal.c (num_sign_bit_copies1): Likewise.
728 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
729 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
730 (push_reload): Use precision to check for paradoxical subregs.
731 * expmed.c (extract_bit_field_1): Likewise.
732
46c9550f
BS
733 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
734 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
735 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
736 simplify_set, simplify_logical, expand_compound_operation,
737 make_extraction, force_to_mode, if_then_else_cond, extended_count,
738 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
739 record_value_for_reg): Likewise.
740 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
741 * simplify-rtx. c (simplify_unary_operation_1,
742 simplify_binary_operation_1, simplify_const_relational_operation):
743 Likewise.
744
5511bc5a
BS
745 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
746 instead of GET_MODE_BITSIZE where appropriate.
747 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
748 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
749 init_num_sign_bit_copies_in_rep): Likewise.
750 * cse.c (fold_rtx, cse_insn): Likewise.
751 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
752 * simplify-rtx.c (simplify_unary_operation_1,
753 simplify_const_unary_operation, simplify_binary_operation_1,
754 simplify_const_binary_operation, simplify_ternary_operation,
755 simplify_const_relational_operation, simplify_subreg): Likewise.
756 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
757 simplify_if_then_else, simplify_set, expand_compound_operation,
758 expand_field_assignment, make_extraction, if_then_else_cond,
759 make_compound_operation, force_to_mode, make_field_assignment,
760 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
761 extended_count, try_widen_shift_mode, simplify_shift_const_1,
762 simplify_comparison, record_promoted_value, simplify_compare_const,
763 record_dead_and_set_regs_1): Likewise.
764
d58c1a38
BS
765 Revert:
766 * simplify-rtx.c (simplify_const_binary_operation): Use the
767 shift_truncation_mask hook instead of performing modulo by
768 width. Compare against mode precision, not bitsize.
769 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
770 Use shift_truncation_mask instead of constructing the value
771 manually.
772
76594d53
MM
7732011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
774
775 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
776 declaration.
777 (rs6000_save_toc_in_prologue_p): Ditto.
778
779 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
780 up the static chain (r11) during indirect function calls.
781 (-msave-toc-indirect): New undocumented debug switch.
782
783 * config/rs6000/rs6000.c (struct machine_function): Add
784 save_toc_in_prologue field to note whether the prologue needs to
785 save the TOC value in the reserved stack location.
786 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
787 to save the TOC in the prologue, do so.
788 (rs6000_trampoline_init): Don't allow creating AIX style
789 trampolines if -mno-r11 is in effect.
790 (rs6000_call_indirect_aix): New function to create AIX style
791 indirect calls, adding support for -mno-r11 to suppress loading
792 the static chain, and saving the TOC in the prologue instead of
793 the call body.
794 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
795 TOC in the prologue.
796
797 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
798 register numbers.
799 (TOC_REGNUM): Ditto.
800 (STATIC_CHAIN_REGNUM): Ditto.
801 (ARG_POINTER_REGNUM): Ditto.
802 (SFP_REGNO): Delete, unused.
803 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
804 function descriptor offsets.
805 (TOC_SAVE_OFFSET_64BIT): Ditto.
806 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
807 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
808 (AIX_FUNC_DESC_SC_32BIT): Ditto.
809 (AIX_FUNC_DESC_SC_64BIT): Ditto.
810 (ptrload): New mode attribute for the appropriate load of a
811 pointer.
812 (call_indirect_aix32): Delete, rewrite AIX indirect function
813 calls.
814 (call_indirect_aix64): Ditto.
815 (call_value_indirect_aix32): Ditto.
816 (call_value_indirect_aix64): Ditto.
817 (call_indirect_nonlocal_aix32_internal): Ditto.
818 (call_indirect_nonlocal_aix32): Ditto.
819 (call_indirect_nonlocal_aix64_internal): Ditto.
820 (call_indirect_nonlocal_aix64): Ditto.
821 (call): Rewrite AIX indirect function calls. Add support for
822 eliminating the static chain, and for moving the save of the TOC
823 to the function prologue.
824 (call_value): Ditto.
825 (call_indirect_aix<ptrsize>): Ditto.
826 (call_indirect_aix<ptrsize>_internal): Ditto.
827 (call_indirect_aix<ptrsize>_internal2): Ditto.
828 (call_indirect_aix<ptrsize>_nor11): Ditto.
829 (call_value_indirect_aix<ptrsize>): Ditto.
830 (call_value_indirect_aix<ptrsize>_internal): Ditto.
831 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
832 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
833 (call_nonlocal_aix32): Relocate in the rs6000.md file.
834 (call_nonlocal_aix64): Ditto.
835
836 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
837 -mno-r11 documentation.
838
49d6830d
JW
8392011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
840
841 PR other/49658
842 * doc/extend.texi (Compound Literals): Fix typo.
843
c884924f
JG
8442011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
845
846 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
847 __ARM_FEATURE_DSP.
848
bf588455
BS
8492011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
850
851 * configure.ac (plugin-version.h): Generate
852 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
853 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
854 macros.
855
856 * configure: Regenerate.
857
858 * doc/plugins.texi (Building GCC plugins): Mention
859 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
860
d0edd768
BS
8612011-07-06 Bernd Schmidt <bernds@codesourcery.com>
862
863 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
864 * combine.c (make_extraction, gen_lowpart_or_truncate,
865 apply_distributive_law, simplify_comparison,
866 reg_truncated_to_mode, record_truncated_value): Use it.
867 * cse.c (notreg_cost): Likewise.
868 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
869 * expr.c (convert_move, convert_modes): Likewise.
870 * optabs.c (expand_binop, expand_unop): Likewise.
871 * postreload.c (move2add_last_label): Likewise.
872 * regmove.c (optimize_reg_copy_3): Likewise.
873 * rtlhooks.c (gen_lowpart_general): Likewise.
874 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
875
e5cabdfb
JM
8762011-07-06 Joseph Myers <joseph@codesourcery.com>
877
878 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
879
2d0c270f
BS
8802011-07-06 Bernd Schmidt <bernds@codesourcery.com>
881
882 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
883 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
884 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
885 (simplify_const_unary_operation, simplify_binary_operation_1,
886 simplify_const_binary_operation,
887 simplify_const_relational_operation): Use them. Use
888 GET_MODE_MASK for masking and sign-extensions.
889 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
890 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
891 simplify_shift_const_1, simplify_comparison): Likewise.
892 * expr.c (convert_modes): Likewise.
893 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
894 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
895 Likewise.
896 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
897
f9c08345
BS
898 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
899
6d6c9525
RG
9002011-07-06 Richard Guenther <rguenther@suse.de>
901
902 PR tree-optimization/49645
903 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
904 register variables.
905 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
906 in type qualification here ...
907 (copy_reference_ops_from_ref): ... not here.
908 (vn_reference_lookup_3): ... or here.
909 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
910 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
911
d1a6ec10
ILT
9122011-07-06 Ian Lance Taylor <iant@google.com>
913
914 * doc/install.texi (Configuration): It's
915 --enable-gnu-indirect-function, not --enable-indirect-function.
916
ff3e08af
BS
9172011-07-06 Bernd Schmidt <bernds@codesourcery.com>
918
919 * simplify-rtx.c (simplify_const_binary_operation): Use the
920 shift_truncation_mask hook instead of performing modulo by
921 width. Compare against mode precision, not bitsize.
922 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
923 Use shift_truncation_mask instead of constructing the value
924 manually.
925
a369b639
L
9262011-07-06 H.J. Lu <hongjiu.lu@intel.com>
927
928 PR middle-end/47383
929 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
930 address computation and convert to address_mode if needed.
931
1a072294
RG
9322011-07-06 Richard Guenther <rguenther@suse.de>
933
934 * tree.c (build_common_tree_nodes_2): Merge with
935 build_common_tree_nodes.
936 * tree.h (build_common_tree_nodes): Adjust prototype.
937 (build_common_tree_nodes_2): Remove.
938 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
939 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
940
f2c3a8ce
JJ
9412011-07-05 Jakub Jelinek <jakub@redhat.com>
942
943 PR tree-optimization/49618
944 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
945 t recurse on the decl.
946 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
947 return true if expr isn't known to be defined in current
948 TU or some other LTO partition.
949
3aa439ed
MM
9502011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
951
952 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
953 override CASE_VALUES_THRESHOLD.
954
955 * stmt.c (toplevel): Include params.h.
956 (case_values_threshold): Use the --param case-values-threshold
957 value if non-zero, otherwise use machine dependent value.
958 (expand_case): Use case_values_threshold.
959
960 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
961
962 * doc/invoke.texi (--param case-values-threshold): Document.
963
49956667
RH
9642011-07-05 Richard Henderson <rth@redhat.com>
965
966 * dwarf2out.c (dwarf2out_cfi_label): Make static.
967 (dwarf2out_flush_queued_reg_saves): Make static.
968 (dwarf2out_reg_save): Remove.
969 (dwarf2out_return_save): Remove.
970 (dwarf2out_return_reg): Remove.
971 (dwarf2out_reg_save_reg): Remove.
972 (dwarf2out_def_cfa): Merge into ...
973 (dwarf2out_frame_init): ... here.
974 * dwarf2out.h, tree.h: Remove declarations as necessary.
975
9f2ff8e5
RH
9762011-07-05 Richard Henderson <rth@redhat.com>
977
c2b40eba
RH
978 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
979 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
980 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
981 the alloc insn.
982
7d3c6cd8
RH
983 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
984 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
985 (process_epilogue): Don't call dwarf2out_def_cfa.
986
5f740973
RH
987 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
988 indicate the return address save.
989 (process_cfa_register): Likewise.
990
a1880147
RH
991 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
992 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
993
9f2ff8e5
RH
994 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
995 for ar.pfs save at alloc insn.
996
ddc6e7d6
RH
9972011-07-05 Richard Henderson <rth@redhat.com>
998
999 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
1000 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1001 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
1002 stack pointer save.
1003 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
1004 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
1005 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
1006 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
1007
a3515605
RH
10082011-07-05 Richard Henderson <rth@redhat.com>
1009
1010 * config/vax/vax.md (define_c_enum unspecv): New. Define the
1011 VUNSPEC_* constants here instead of via define_constants.
1012 (VUNSPEC_PEM): New constant.
1013 (procedure_entry_mask): New insn.
1014 (prologue): New expander.
1015 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
1016 (vax_expand_prologue): Rename from vax_output_function_prologue;
1017 emit rtl instead of text.
1018 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1019 (print_operand): Add 'x' prefix.
1020
a7adbbcb
L
10212011-07-05 H.J. Lu <hongjiu.lu@intel.com>
1022
1023 PR middle-end/47715
1024 * calls.c (precompute_register_parameters): Promote the function
1025 argument before checking non-legitimate constant.
1026
cec11ec4
SP
10272011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1028
1029 PR tree-optimization/47654
1030 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
1031 (lst_do_strip_mine_loop): Return an int.
1032 (lst_do_strip_mine): Same.
1033 (scop_do_strip_mine): Same.
1034 (scop_do_block): Loop blocking should strip-mine at least two loops.
1035 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
1036 (scop_do_interchange): Same.
1037 * graphite-poly.h (scop_do_interchange): Update declaration.
1038 (scop_do_strip_mine): Same.
1039
9b0d314a
SP
10402011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1041
1042 * graphite-clast-to-gimple.c (precision_for_value): Removed.
1043 (precision_for_interval): Removed.
1044 (gcc_type_for_interval): Use mpz_sizeinbase.
1045
81d6d080
SP
10462011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1047
1048 * graphite-ppl.h (value_max): Correct computation of max.
1049
369e3430
SP
10502011-07-05 Sebastian Pop <sebastian.pop@amd.com>
1051
1052 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
1053
fce5dddd
RG
10542011-07-05 Richard Guenther <rguenther@suse.de>
1055
1056 * c-decl.c (c_init_decl_processing): Defer building common
1057 tree nodes to c_common_nodes_and_builtins.
1058
12037899
RL
10592011-07-05 Razya Ladelsky <razya@il.ibm.com>
1060
1061 PR tree-optimization/49580
1062 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
1063 the loop's number of iterations.
28b21ebb 1064 * tree-parloops.c (transform_to_exit_first_loop): Add the
12037899
RL
1065 handling of the loop's number of iterations before the call
1066 to gimple_duplicate_sese_tail.
28b21ebb 1067 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
1068 condition stmt to the preheader instead of iters_bb.
1069
509a31f8
L
10702011-07-05 H.J. Lu <hongjiu.lu@intel.com>
1071
1072 PR rtl-optimization/47449
1073 * fwprop.c (forward_propagate_subreg): Don't propagate hard
1074 register nor zero/sign extended hard register.
1075
39becbac
RG
10762011-07-05 Richard Guenther <rguenther@suse.de>
1077
1078 PR tree-optimization/49518
1079 PR tree-optimization/49628
1080 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
1081 irrelevant and invariant data-references.
1082 (vect_analyze_data_ref_access): For invariant loads clear the
1083 group association.
1084
15923c25
JJ
10852011-07-04 Jakub Jelinek <jakub@redhat.com>
1086
af421d9c
JJ
1087 PR rtl-optimization/49619
1088 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
1089 pass VOIDmode as op0_mode to recursive call, and return temp even
1090 when different from tor, just if it is not IOR of the original
1091 PLUS arguments.
1092
707f9919
JJ
1093 PR rtl-optimization/49472
1094 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
1095 negating MULT, negate the second operand instead of first.
1096 (simplify_binary_operation_1) <case MULT>: If one operand is
1097 a NEG and the other is MULT, don't attempt to optimize by
1098 negation of the MULT operand if it only moves the NEG operation
1099 around.
1100
15923c25
JJ
1101 PR debug/49602
1102 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
1103 get_current_def return value if it can't be trusted to be
1104 the current value of the variable in the current bb.
1105
0d5e0c1b
UB
11062011-07-04 Uros Bizjak <ubizjak@gmail.com>
1107
1108 PR target/49600
1109 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
1110 general register to memory for !TARGET_INTER_UNIT_MOVES.
1111
db297e20
GJL
11122011-07-04 Georg-Johann Lay <avr@gjlay.de>
1113
1114 PR target/44643
1115 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
1116 instead of TREE_READONLY.
1117
f451d14d
GJL
11182011-07-04 Georg-Johann Lay <avr@gjlay.de>
1119
1120 * doc/extend.texi (AVR Built-in Functions): Update documentation
1121 of __builtin_avr_fmul*.
0d5e0c1b 1122 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
1123 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
1124 * config/avr/avr.md (fmul): Rename to fmul_insn.
1125 (fmuls): Rename to fmuls_insn.
1126 (fmulsu): Rename to fmulsu_insn.
1127 (fmul,fmuls,fmulsu): New expander.
1128 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
1129 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
1130 * config/avr/libgcc.S (__fmul): New function.
1131 (__fmuls): New function.
1132 (__fmulsu,__fmulsu_exit): New function.
1133
30f1e6de
RG
11342011-07-04 Richard Guenther <rguenther@suse.de>
1135
1136 PR tree-optimization/49615
1137 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
1138 basic-block index check.
1139
6dab9931
GJL
11402011-07-04 Georg-Johann Lay <avr@gjlay.de>
1141
1142 * longlong.h (count_leading_zeros, count_trailing_zeros,
1143 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
1144 resp. 64.
1145
b5066d8b
IR
11462011-07-03 Ira Rosen <ira.rosen@linaro.org>
1147
1148 PR tree-optimization/49610
1149 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
1150 a basic block.
1151
bc712852
EB
11522011-07-02 Eric Botcazou <ebotcazou@adacore.com>
1153 Olivier Hainque <hainque@adacore.com>
1154 Nicolas Setton <setton@adacore.com>
1155
1156 * tree.h (TYPE_ARTIFICIAL): New flag.
1157 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
1158 the DIE of the type if it is artificial.
1159 (gen_array_type_die): Likewise.
1160 (gen_enumeration_type_die): Likewise.
1161 (gen_struct_or_union_type_die): Likewise.
1162 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
1163 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
1164
8b1bdcc5
JJ
11652011-07-01 Jakub Jelinek <jakub@redhat.com>
1166
1167 * tree-object-size.c (pass_through_call): Handle
1168 BUILT_IN_ASSUME_ALIGNED.
1169
06e88d73
MJ
11702011-07-01 Martin Jambor <mjambor@suse.cz>
1171
1172 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
1173
6bbec3e1
L
11742011-07-01 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 PR middle-end/48016
1177 * explow.c (update_nonlocal_goto_save_area): Use proper mode
1178 for stack save area.
1179 * function.c (expand_function_start): Likewise.
1180
e8fdf1cd
RG
11812011-07-01 Richard Guenther <rguenther@suse.de>
1182
1183 PR middle-end/49596
1184 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
1185 may have unknown refs.
1186
80d3dd38
KT
11872011-07-01 Kai Tietz <ktietz@redhat.com>
1188
1189 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
1190
179fc656
RO
11912011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1192
1193 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
1194 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
1195 (Specific, mips-sgi-irix6): Likewise.
1196
14a393a3
RO
11972011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1198
1199 PR libmudflap/49549
1200 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
1201
3aecd443
JJ
12022011-07-01 Jakub Jelinek <jakub@redhat.com>
1203
1204 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
1205 [idx]= and [idx1 ... idx2]= before initializers if needed for
1206 array initializers.
1207
7474f719
CL
12082011-07-01 Chen Liqin <liqin.gcc@gmail.com>
1209
1210 * config.gcc (score-*-elf): Remove score7.o.
1211 * config/score/t-score-elf: Likewise.
1212 * config/score/score.c: Merge score7 to score.c and
1213 remove forwarding functions.
1214 * config/score/score7.c: Deleted.
1215 * config/score/score7.h: Deleted.
1216
ab70d825
RG
12172011-07-01 Richard Guenther <rguenther@suse.de>
1218
1219 PR tree-optimization/49603
0d5e0c1b 1220 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 1221
1ac93f10
MJ
12222011-06-30 Martin Jambor <mjambor@suse.cz>
1223
1224 * tree-sra.c (struct access): Rename total_scalarization to
1225 grp_total_scalarization
1226 (completely_scalarize_var): New function.
1227 (sort_and_splice_var_accesses): Set total_scalarization in the
1228 representative access.
1229 (analyze_access_subtree): Propagate total scalarization accross the
1230 tree, no holes in totally scalarized trees, simplify coverage
1231 computation.
1232 (analyze_all_variable_accesses): Call completely_scalarize_var instead
1233 of completely_scalarize_record.
1234
97f309c3
RH
12352011-06-30 Richard Henderson <rth@redhat.com>
1236
1237 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
1238 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
1239 * config/i386/i386.c: Don't include dwarf2out.h.
1240 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
1241 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
1242 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
1243 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
1244 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
1245
ef284364
RH
12462011-06-30 Richard Henderson <rth@redhat.com>
1247
1248 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
1249 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1250 * final.c (final_scan_insn): Look for it, and invoke
1251 dwarf2out_frame_debug before the insn if found.
1252
c8412f97
RH
12532011-06-30 Richard Henderson <rth@redhat.com>
1254
1255 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
1256 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
1257
e3f903d8
RH
12582011-06-30 Richard Henderson <rth@redhat.com>
1259
1260 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
1261 Define a vector of this type.
1262 (regs_saved_in_regs): Use a VEC.
1263 (num_regs_saved_in_regs): Remove.
1264 (compare_reg_or_pc): New.
1265 (record_reg_saved_in_reg): Split out from...
1266 (dwarf2out_flush_queued_reg_saves): ... here.
1267 (clobbers_queued_reg_save): Update for VEC.
1268 (reg_saved_in): Likewise.
1269 (dwarf2out_frame_debug_init): Likewise.
1270 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
1271 (dwarf2out_frame_debug_cfa_register): Likewise.
1272
e2c9010a
EB
12732011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1274
1275 PR tree-optimization/49572
1276 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
1277 type of the RHS instead of that of the LHS for the expression type.
1278
dbb07bbc
EB
12792011-06-30 Eric Botcazou <ebotcazou@adacore.com>
1280
1281 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
1282 unconditionally.
1283
1565af08
RG
12842011-06-30 Richard Guenther <rguenther@suse.de>
1285
1286 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
1287 * tree-ssa-structalias.c (create_variable_info_for): Do not
1288 add initial constraints for non-var-decls. Properly handle
1289 globals in other ltrans partitions.
1290 (intra_create_variable_infos): Manually create constraints for
1291 the fake no-alias parameter.
1292 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
1293 and assert there are no clones.
1294
42373e0b
RG
12952011-06-30 Richard Guenther <rguenther@suse.de>
1296
1297 PR tree-optimization/46787
1298 * tree-data-ref.c (dr_address_invariant_p): Remove.
1299 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 1300 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
1301 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
1302 invariant loads.
1303
7aa62ea1
MJ
13042011-06-30 Martin Jambor <mjambor@suse.cz>
1305
1306 PR tree-optimization/49094
1307 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
1308 (build_accesses_from_assign): Use it.
1309
f60f32b3
JJ
13102011-06-30 Jakub Jelinek <jakub@redhat.com>
1311
d9048d16
JJ
1312 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1313 handling of BUILT_IN_ASSUME_ALIGNED.
1314
f60f32b3
JJ
1315 PR debug/49364
1316 * dwarf2out.c (output_abbrev_section): Don't return early
1317 if abbrev_die_table_in_use is 1.
1318 (dwarf2out_finish): Instead don't call output_abbrev_section
1319 nor emit abbrev_section_label in that case.
1320
7cce15d4
NC
13212011-06-30 Nick Clifton <nickc@redhat.com>
1322
1323 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
1324 for the V850E.
1325
ce7e54ff
JJ
13262011-06-30 Jakub Jelinek <jakub@redhat.com>
1327
1328 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
1329 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
1330
83197f37
IR
13312011-06-30 Ira Rosen <ira.rosen@linaro.org>
1332
1333 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1334 both pattern and original statements if necessary.
1335 (vect_transform_loop): Likewise.
1336 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
1337 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
1338 Mark the pattern statement only if the original statement doesn't
1339 have its own uses.
1340 (process_use): Call vect_mark_relevant with additional parameter.
1341 (vect_mark_stmts_to_be_vectorized): Likewise.
1342 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
1343 (vect_analyze_stmt): Handle both pattern and original statements
1344 if necessary.
1345 (vect_transform_stmt): Don't store vectorized pattern statement
1346 in the original statement.
1347 (vect_is_simple_use_1): Use related pattern statement only if the
1348 original statement is irrelevant.
1349 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1350
dbb07bbc 13512011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 1352
dbb07bbc
EB
1353 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
1354 option.
1355 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
1356 entry.
5c0d88e6
CF
1357 (TARGET_AVX128_OPTIMAL): New definition.
1358 * config/i386/i386.c (initial_ix86_tune_features): Initialize
1359 X86_TUNE_AVX128_OPTIMAL entry.
1360 (ix86_option_override_internal): Enable the generation
1361 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
1362 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
1363 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
1364
931050d0
EB
13652011-06-29 Eric Botcazou <ebotcazou@adacore.com>
1366
1367 PR tree-optimization/49539
1368 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
1369 names by means of stmt_references_abnormal_ssa_name.
1370 (associate_plusminus): Call can_propagate_from before propagating
1371 from definition statements.
1372 (ssa_forward_propagate_and_combine): Remove superfluous newline.
1373
dfedbe40
RG
13742011-06-29 Richard Guenther <rguenther@suse.de>
1375
1376 * doc/invoke.texi: Document -scev dump modifier.
1377 * tree-pass.h (TDF_SCEV): New dump flag.
1378 * tree-dump.c (dump_option_value_in): Add scev.
1379 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
1380 * tree-scalar-evolution.c: Likewise.
1381
3a86cfeb
NS
13822011-06-29 Nathan Sidwell <nathan@codesourcery.com>
1383
1384 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
1385 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
1386 (__gnu_unwind_pr_common): Reconstruct additional indirection
1387 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 1388
f3678bfb
UW
13892011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1390
1391 PR rtl-optimization/49114
1392 * reload.c (struct replacement): Remove SUBREG_LOC member.
1393 (push_reload): Do not set it.
1394 (push_replacement): Likewise.
1395 (subst_reload): Remove dead code.
1396 (copy_replacements): Remove assertion.
1397 (copy_replacements_1): Do not handle SUBREG_LOC.
1398 (move_replacements): Likewise.
1399 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
1400 Detect subregs via recursive descent instead of via SUBREG_LOC.
1401
433ba0a5 14022011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 1403
433ba0a5
GJL
1404 * config/avr/avr.c (avr_encode_section_info): Dispatch to
1405 default_encode_section_info.
1406
73f6eabc
RS
14072011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
1408
1409 PR tree-optimization/49545
1410 * builtins.c (get_object_alignment_1): Update function comment.
1411 Do not use DECL_ALIGN for functions, but test
1412 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
1413 * fold-const.c (get_pointer_modulus_and_residue): Don't check
1414 for functions here.
1415 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1416
a0f33d3a
JJ
14172011-06-29 Jakub Jelinek <jakub@redhat.com>
1418
1419 PR debug/49567
0d5e0c1b
UB
1420 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
1421 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 1422
946c8b23 14232011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 1424
946c8b23 1425 PR target/34734
0d5e0c1b 1426 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
1427 about uninitialized data attributed 'progmem' from here...
1428 (avr_encode_section_info): ...to this new function.
1429 (TARGET_ENCODE_SECTION_INFO): New define.
1430 (avr_section_type_flags): For data in ".progmem.data", remove
1431 section flag SECTION_WRITE.
1432
9a63dee4 14332011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 1434
9a63dee4
GJL
1435 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
1436 _xmulhisi3_exit.
1437 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
1438 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
1439 (__umulhisi3): Ditto.
1440 * config/avr/avr.md (mulhisi3): New insn expender.
1441 (umulhisi3): New insn expender.
1442 (*mulhisi3_call): New insn.
1443 (*umulhisi3_call): New insn.
1444
4374ce45
JM
14452011-06-28 Joseph Myers <joseph@codesourcery.com>
1446
1447 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1448
94759030
RH
14492011-06-28 Richard Henderson <rth@redhat.com>
1450
1451 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
1452 all code and arguments that handled pushes. Update all callers.
1453
d018b46e
RH
14542011-06-28 Richard Henderson <rth@redhat.com>
1455
1456 * config/arm/arm.c (arm_output_function_prologue): Don't call
1457 thumb1_output_function_prologue.
1458 (arm_expand_prologue): Avoid dead store.
1459 (number_of_first_bit_set): Use ctz_hwi.
1460 (thumb1_emit_multi_reg_push): New.
1461 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1462 to emit the entire prologue as rtl.
1463 (thumb1_output_interwork): Split out from
1464 thumb1_output_function_prologue.
1465 (thumb1_output_function_prologue): Remove.
1466 (arm_attr_length_push_multi): Handle thumb1.
1467 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1468 (prologue_thumb1_interwork): New.
1469 (*push_multi): Allow thumb1; use push_mult_memory_operand.
1470 * config/arm/predicates.md (push_mult_memory_operand): New.
1471
97269a23
EB
14722011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1473
1474 * config/sparc/sync.md (*stbar): Delete.
1475 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1476
4a9206ce
EB
14772011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1478
1479 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1480
6138f9bd
RO
14812011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1482
1483 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1484 (TARGET_64BIT_DEFAULT): Define.
1485 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1486 of tm_file.
1487 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1488
a7d0d30f
JM
14892011-06-28 Joseph Myers <joseph@codesourcery.com>
1490
1491 * common.opt (in_lto_p): New Variable entry.
1492 * flags.h (in_lto_p): Move to common.opt.
1493 * gcc.c: Include params.h.
1494 (set_option_handlers): Also use common_handle_option and
1495 target_handle_option.
0d5e0c1b 1496 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
1497 * opts.c (debug_type_names): Move from toplev.c.
1498 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
1499 (common_handle_option): Return early in the driver for some options.
1500 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1501 opts pointer.
a7d0d30f
JM
1502 * toplev.c (in_lto_p): Move to common.opt.
1503 (debug_type_names): Move to opts.c.
1504 * Makefile.in (OBJS): Remove opts.o.
1505 (OBJS-libcommon-target): Add opts.o.
1506 (gcc.o): Update dependencies.
1507
420863a9
KT
15082011-06-28 Kai Tietz <ktietz@redhat.com>
1509
0d5e0c1b 1510 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 1511
0498a2be
RR
15122011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1513
1514 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1515 with '=' constraint modifier.
1516 (*divdf3_vfp): Likewise.
1517 ("*mulsf3_vfp"): Likewise.
1518 ("*muldf3_vfp"): Likewise.
1519 ("*mulsf3negsf_vfp"): Likewise.
1520 ("*muldf3negdf_vfp"): Likewise.
1521
4a68b724
NC
15222011-06-28 Nick Clifton <nickc@redhat.com>
1523
1524 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1525 relaxation when performing an incremental link.
1526
72a32729
KT
15272011-06-28 Kai Tietz <ktietz@redhat.com>
1528
1529 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1530 within BB from last to first.
1531
88a00ef7
JM
15322011-06-28 Joseph Myers <joseph@codesourcery.com>
1533
1534 * genattr-common.c: New. Based on genattr.c.
1535 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1536 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1537 (opts.o): Update dependencies.
1538 (.PRECIOUS): Add insn-attr-common.h.
1539 (simple_rtl_generated_h): Add insn-attr-common.h.
1540 (build/genattr-common.o): New.
1541 (genprogrtl): Add attr-common.
1542 * genattr.c (main): Include insn-attr-common.h. Don't generate
1543 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 1544 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 1545
880962ac
GJL
15462011-06-28 Georg-Johann Lay <avr@gjlay.de>
1547
4a68b724 1548 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 1549 avr-*-* and avr-*-rtems* targets.
4a68b724 1550
880962ac
GJL
1551 * config/avr/elf.h: New file.
1552 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1553 (TARGET_ASM_SELECT_SECTION): Define.
1554 (INIT_SECTION_ASM_OP): Undefine.
1555 (FINI_SECTION_ASM_OP): Undefine.
1556 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1557 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1558 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1559 * config/avr/avr.h:
1560 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1561 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1562 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1563 (STRING_LIMIT): Move to elf.h.
1564 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1565 (ASM_DECLARE_OBJECT_NAME): Remove.
1566 (ESCAPES): Remove.
1567 (ASM_OUTPUT_SKIP): Remove.
1568 (DWARF2_DEBUGGING_INFO): Remove.
1569 (OBJECT_FORMAT_ELF): Remove.
1570 (USER_LABEL_PREFIX): Remove.
1571 (ASM_OUTPUT_EXTERNAL): Remove.
1572 (ASM_OUTPUT_ASCII): Remove.
1573 (TYPE_ASM_OP): Remove.
1574 (SIZE_ASM_OP): Remove.
1575 (WEAK_ASM_OP): Remove.
1576 (STRING_ASM_OP): Remove.
1577 (SET_ASM_OP): Remove.
1578 (ASM_WEAKEN_LABEL): Remove.
1579 (TYPE_OPERAND_FMT): Remove.
1580 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1581 (ASM_FINISH_DECLARE_OBJECT): Remove.
1582 (NO_DOLLAR_IN_LABEL): Remove.
1583 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1584 (ASM_OUTPUT_CASE_LABEL): Remove.
1585 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1586 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1587 (gas_output_ascii): Remove.
1588 (gas_output_limited_string): Remove.
1589 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1590 * config/avr/avr-protos.h
1591 (gas_output_ascii): Remove prototye.
1592 (gas_output_limited_string): Remove prototype.
1593
a1b5eb93
RE
15942011-06-27 Richard Earnshaw <rearnsha@arm.com>
1595
1596 PR target/48637
1597 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1598 asm operands.
1599
310e71a8
JH
16002011-06-27 Jan Hubicka <jh@suse.cz>
1601
4a9206ce
EB
1602 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1603 node instead of references in node.
310e71a8 1604
171da07a
RH
16052011-06-27 Richard Henderson <rth@redhat.com>
1606
1607 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1608 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1609 inside ifdef.
1610
dc2a58da
JJ
16112011-06-27 Jakub Jelinek <jakub@redhat.com>
1612
56300785
JJ
1613 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1614
45d439ac
JJ
1615 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1616 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1617 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1618 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1619 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1620 (evaluate_stmt, execute_fold_all_builtins): Handle
1621 BUILT_IN_ASSUME_ALIGNED.
1622 * tree-ssa-dce.c (propagate_necessity): Likewise.
1623 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1624 call_may_clobber_ref_p_1): Likewise.
1625 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1626 (expand_builtin_assume_aligned): New function.
1627 * doc/extend.texi (__builtin_assume_aligned): Document.
1628
dc2a58da
JJ
1629 PR debug/49544
1630 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1631 and l has two DEBUG_INSN owned locs instead of just one, adjust
1632 the second location's setting_insn too.
1633
0d72f628
RO
16342011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1635
1636 PR libmudflap/38738
1637 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1638
bebd619e
NC
16392011-06-27 Nick Clifton <nickc@redhat.com>
1640
0d5e0c1b
UB
1641 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1642 bit position of highest bit set into a count of the high zero bits.
bebd619e 1643
353b39fa
EB
16442011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1645
1646 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1647
a7af037b
EB
16482011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1649
1650 PR lto/48492
1651 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1652 to a NULL parent.
1653
1c86160a
RG
16542011-06-27 Richard Guenther <rguenther@suse.de>
1655
1656 PR tree-optimization/49394
1657 * passes.c (execute_one_pass): Restore current_pass after
1658 applying IPA transforms.
1659
5da49a9d
KT
16602011-06-27 Kai Tietz <ktietz@redhat.com>
1661
1662 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1663 out of type precision after operation.
0d5e0c1b
UB
1664 (find_bswap): Take for limit value the integer auto-promotion
1665 into account.
5da49a9d 1666
9242213f
EB
16672011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1668
1669 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1670 forward scan as well.
1671
db8b22ef
TG
16722011-06-27 Tristan Gingold <gingold@adacore.com>
1673
1674 PR target/44241
1675 * config/vms/vms-protos.h: New file.
1676 * config/vms/vms-crtlmap.map: New file.
1677 * config/vms/vms.c: New file.
1678 * config/vms/make-crtlmap.awk: New file.
1679 * config/vms/vms-crtl.h: File removed.
1680 * config/vms/vms-crtl-64.h: File removed.
1681 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1682 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1683 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1684 clear some builtins on VMS. Calls vms_patch_builtins.
1685 (avms_asm_output_external): Remove.
1686 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1687 (struct crtl_name_spec): Remove
1688 (DO_CTRL_NAMES): Remove.
1689 * config/ia64/vms.h (struct crtl_name_spec): Remove
1690 (DO_CTRL_NAMES): Remove.
1691 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1692 clear some builtins on VMS. Calls vms_patch_builtins.
1693 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1694 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 1695 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 1696
b213221d
TG
16972011-06-27 Tristan Gingold <gingold@adacore.com>
1698
1699 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1700 directive on VMS.
1701
157b9300
EB
17022011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1703
1704 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1705 the function receives nonlocal gotos.
1706
ccbf5bb4
RG
17072011-06-27 Richard Guenther <rguenther@suse.de>
1708
1709 PR tree-optimization/49536
1710 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1711 For non-scalar inner types use a scalar type according to
1712 the scalar inner mode.
1713
fe4cd14b
RG
17142011-06-27 Richard Guenther <rguenther@suse.de>
1715
1716 PR tree-optimization/49365
1717 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1718
afc3f22f
RS
17192011-06-27 Richard Guenther <rguenther@suse.de>
1720
1721 PR tree-optimization/49169
1722 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1723 the alignment of function decls.
1724
92590751 17252011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
1726
1727 PR target/47997
1728 * config/darwin.c (darwin_mergeable_string_section): Place string
1729 constants in '.cstring' rather than '.const' when CF/NSStrings are
1730 active.
1731
605354f3
EB
17322011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1733
1734 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1735 (emit_save_register_window): Likewise.
1736 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1737 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1738 Swap back %o7/%i7 in register naming.
1739
0e9197f5
IS
17402011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1741
1742 PR driver/49371
1743 * config/darwin.c (darwin_override_options): Improve warning when
1744 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1745 is given with fpie/fPIE.
1746 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1747 * config/darwin9.h (PIE_SPEC): New.
53461199 1748
605354f3 17492011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
1750
1751 * timevar.c (timevar_print): Increase width for display of timevar
1752 name.
1753
f796c438
JJ
17542011-06-24 Jakub Jelinek <jakub@redhat.com>
1755
1756 PR c++/46400
1757 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1758 instead of TYPE_CHAIN for chain_next for types.
1759
a7289eaf
RH
17602011-06-24 Richard Henderson <rth@redhat.com>
1761
1762 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1763 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1764 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1765 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1766 (sparc_flat_expand_prologue): Emit individual instructions
1767 instead of one of the above.
1768
c4b9a87e
ER
17692011-06-24 Easwaran Raman <eraman@google.com>
1770
1771 PR rtl-optimization/49429
1772 PR target/49454
1773 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1774 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1775 used to copy y into x.
1776 * calls.c (initialize_argument_information): Mark
1777 an argument addressable if it is passed by invisible reference.
1778 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1779 if it is passed by reference.
1780
5ac6c59e
L
17812011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1782
1783 PR rtl-optimization/49504
1784 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
1785 subtraction of a pointer in Pmode if pointers extend unsigned.
1786 (num_sign_bit_copies1): Likewise.
5ac6c59e 1787
b807e627
MJ
17882011-06-24 Martin Jambor <mjambor@suse.cz>
1789
1790 PR tree-optimizations/49516
1791 * tree-sra.c (sra_modify_assign): Choose the safe path for
1792 aggregate copies if we also did scalar replacements.
1793
9a1ea4b9
RR
17942011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1795
1796 PR target/49335
1797 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 1798 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 1799
949cfd0a
AK
18002011-06-24 Andi Kleen <ak@linux.intel.com>
1801
1802 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1803 parameter. Split up ifs and report reason in *msg.
1804 (reject): Add.
1805 (find_var_candiate): Add msg variable.
1806 Split up ifs and report reason to reject.
1807 (find_param_candidates): Add msg variable.
1808 Pass msg to type_internals_preclude_sra_p.
1809
49e9c661 18102011-06-23 Jeff Law <law@redhat.com>
ad3577df 1811
b0c11403
JL
1812 PR middle-end/48770
1813 * reload.h (reload): Change to return a bool.
1814 * ira.c (ira): If requested by reload, run a fast DCE pass after
1815 reload has completed. Fix comment typo.
1816 * reload1.c (need_dce): New file scoped static.
1817 (reload): Set reload_completed here. Return whether or not a DCE
1818 pass after reload is needed.
1819 (delete_dead_insn): Set need_dce as needed.
1820
ad3577df
JL
1821 PR middle-end/49465
1822 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1823 to detect threading through joiner block. If there was already
1824 an edge to the new target, then do not change the PHI nodes.
1825
7cf64710
JJ
18262011-06-23 Jakub Jelinek <jakub@redhat.com>
1827
1828 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1829 get_pointer_alignment to see if base isn't sufficiently aligned.
1830
febb1302
JH
18312011-06-23 Jan Hubicka <jh@suse.cz>
1832
1833 PR tree-optimize/49373
1834 * tree-pass.h (all_late_ipa_passes): Declare.
1835 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
1836 (cgraph_optimize): Execute late passes; remove unreachable funcions
1837 after materialization.
1838 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1839 LTOing.
febb1302
JH
1840 * passes.c (all_late_ipa_passes): Declare.
1841 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
1842 (init_optimization_passes): Move ipa_pta to late passes; schedule
1843 fixup_cfg at beggining of all_passes.
febb1302
JH
1844 (apply_ipa_transforms): New function.
1845 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1846
4c77620d
JM
18472011-06-23 Joseph Myers <joseph@codesourcery.com>
1848
1849 * params.c: Include common/common-target.h. Don't include tm.h.
1850 (lang_independent_params): Move from toplev.c.
1851 (global_init_params): New.
1852 * params.h (global_init_params): Declare.
1853 * target.def (default_params): Move to common-target.def.
1854 * toplev.c (lang_independent_options): Remove.
1855 (lang_independent_params): Move to params.c.
1856 (general_init): Use global_init_params.
1857 * common/common-target.def (option_default_params): Move from
1858 target.def.
1859 * common/config/ia64/ia64-common.c: Include params.h.
1860 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1861 from ia64.c.
1862 * common/config/rs6000/rs6000-common.c: Include params.h.
1863 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1864 from rs6000.c.
1865 * common/config/sh/sh-common.c: Include params.h.
1866 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1867 from sh.c.
1868 * common/config/spu/spu-common.c: Include params.h.
1869 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1870 from spu.c.
1871 * config/ia64/ia64.c (ia64_option_default_params,
1872 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1873 * config/rs6000/rs6000.c (rs6000_option_default_params,
1874 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1875 * config/sh/sh.c (sh_option_default_params,
1876 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1877 * config/spu/spu.c (spu_option_default_params,
1878 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1879 * Makefile.in (OBJS): Remove params.o.
1880 (OBJS-libcommon-target): Add params.o.
1881 (params.o, $(common_out_object_file)): Update dependencies.
1882 * doc/tm.texi: Regenerate.
1883
6aad1e38
AM
18842011-06-23 Alan Modra <amodra@gmail.com>
1885
1886 PR bootstrap/49383
1887 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1888 invocation for 2011-06-09 changes.
1889
4fb489e7
JJ
18902011-06-22 Jakub Jelinek <jakub@redhat.com>
1891
fb79f500
JJ
1892 PR libgomp/49490
1893 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
1894 use n ceil/ nthreads size for the first n % nthreads threads in the
1895 team instead of all threads except for the last few ones which
fb79f500
JJ
1896 get less work or none at all.
1897
4fb489e7
JJ
1898 PR debug/49496
1899 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1900 uses.
1901
9c7c9f10
RG
19022011-06-22 Richard Guenther <rguenther@suse.de>
1903
1904 PR tree-optimization/49493
1905 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1906 Refer to the alias target of variables.
1907 (associate_varinfo_to_alias_1): Remove.
1908 (ipa_pta_execute): Do not associate aliases with anything.
1909 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1910 (cgraph_function_node): Likewise.
1911 (cgraph_function_or_thunk_node): Likewise.
1912 (varpool_variable_node): Likewise.
1913
7cf13d1f
NS
19142011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1915
0d5e0c1b 1916 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
1917 * config.gcc (arm*-*-linux*): Default to gnu tls.
1918 (arm*-*-*): Add --with-tls option.
1919 (all_defaults): Add 'tls'.
1920
78a8eb4e
RH
19212011-06-22 Richard Henderson <rth@redhat.com>
1922
1923 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1924 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1925 (dwarf2out_frame_debug_cfa_window_save): Rename from
1926 dwarf2out_window_save; make static.
1927 * tree.h (dwarf2out_window_save): Don't declare.
1928
1929 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1930 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1931 (emit_save_register_window): Rename from gen_save_register_window;
1932 emit the insn and add REG_CFA_* notes.
1933 (sparc_expand_prologue): Update to match.
1934 * config/sparc/sparc.md (save_register_window_1): Simplify from
1935 save_register_window<P:mode>.
1936
3b4c46d7
L
19372011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1938
1939 PR target/49497
1940 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1941 (*lea_general_2_zext): Likewise.
1942 (imul to lea peepholes): Use const359_operand and check
1943 TARGET_PARTIAL_REG_STALL.
1944
1945 * config/i386/predicates.md (const359_operand): New.
1946
4399cf59
MM
19472011-06-22 Michael Matz <matz@suse.de>
1948
1949 * cgraphunit.c (assemble_thunk): Use correct return type.
1950
31a0c825 19512011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 1952 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
1953
1954 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1955 (neon_output_shift_immediate): Ditto.
1956 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1957 prototype.
1958 (neon_output_shift_immediate): Ditto.
1959 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1960 (vashr<mode>3_imm): New insn pattern.
1961 (vlshr<mode>3_imm): Ditto.
1962 (vashr<mode>3): Modified constraint.
1963 (vlshr<mode>3): Ditto.
1964 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1965 predicate.
1966 (imm_for_neon_rshift_operand): Ditto.
1967 (imm_lshift_or_reg_neon): Ditto.
1968 (imm_rshift_or_reg_neon): Ditto.
1969
1970 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1971
ddb555ed
JJ
19722011-06-22 Jakub Jelinek <jakub@redhat.com>
1973
36dc1a88
JJ
1974 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1975 builtin calls even if likelyvalue is not CONSTANT.
1976 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1977 Return get_value_for_expr of first operand
1978 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1979 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1980 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1981 their non-checking counterparts.
1982 (call_may_clobber_ref_p_1): Likewise.
1983 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1984 like their non-checking counterparts.
1985 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1986 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1987 like their non-checking counterparts.
1988 (find_func_clobbers): Likewise.
1989 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1990 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1991
41cd4957
JJ
1992 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1993 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1994 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1995 of base type reference as argument.
1996 (resolve_addr_in_expr): Likewise. Fix keep computation.
1997 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
1998 (convert_descriptor_to_mode): ... this. For wider types convert to
1999 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
2000 (typed_binop): New function.
2001 (scompare_loc_descriptor, ucompare_loc_descriptor,
2002 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
2003 default to unsigned type instead of signed.
2004
ddb555ed
JJ
2005 PR debug/47858
2006 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
2007 (gimple_build_debug_source_bind_stat): New prototype.
2008 (gimple_build_debug_source_bind): Define.
2009 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
2010 gimple_debug_source_bind_get_value,
2011 gimple_debug_source_bind_get_value_ptr,
2012 gimple_debug_source_bind_set_var,
2013 gimple_debug_source_bind_set_value): New inlines.
2014 * gimple.c (gimple_build_debug_source_bind_stat): New function.
2015 * gimple-pretty-print.c (dump_gimple_debug): Handle
2016 GIMPLE_DEBUG_SOURCE_BIND.
2017 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
2018 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
2019 * tree-parloops.c (eliminate_local_variables,
2020 separate_decls_in_region): Likewise.
2021 (separate_decls_in_region_debug): Renamed from
2022 separate_decls_in_region_debug_bind. Handle
2023 gimple_debug_source_bind_p.
2024 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
2025 prototypes.
2026 (DECL_HAS_DEBUG_ARGS_P): Define.
2027 (struct tree_function_decl): Add has_debug_args_flag field.
2028 * tree.c (debug_args_for_decl): New variable.
2029 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
2030 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
2031 (rewrite_debug_stmt_uses): New function.
2032 (rewrite_stmt): Use it to rewrite debug stmt uses.
2033 * rtl.def (DEBUG_PARAMETER_REF): New.
2034 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
2035 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
2036 DEBUG_PARAMETER_REF.
2037 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
2038 * print-rtl.c (print_rtx): Likewise.
2039 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
2040 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
2041 debug stmts in the first bb.
2042 * tree-inline.c (remap_ssa_name): If remapping default def
2043 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
2044 a source bind debug stmt.
2045 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
2046 (maybe_move_debug_stmts_to_successors): Likewise.
2047 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
2048 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
2049 debug args vector from old_decl to new_decl.
2050 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
2051 or modified parameters, add debug bind stmts before call
0d5e0c1b 2052 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
2053 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
2054 on DECL_DEBUG_EXPRs from debug args vector.
2055 (expand_debug_source_expr): New function.
2056 (expand_debug_locations): Use it for source bind insns.
2057 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
2058 * var-tracking.c (prepare_call_arguments): Add debug args
2059 to call_arguments if any.
2060 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
2061 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
2062 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
2063 (get_ref_die_offset, parameter_ref_descriptor): New functions.
2064 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
2065 (gen_subprogram_die): Handle parameters identified by
2066 DEBUG_PARAMETER_REF.
2067
ccdc2164
NS
20682011-06-22 Nathan Sidwell <nathan@codesourcery.com>
2069
2070 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
2071 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
2072 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
2073 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
2074 (arm_tls_descseq_addr): New.
2075 (legitimize_tls_address): Add tlsdesc support.
2076 (arm_cannot_copy_insn_p): Check for tlscall.
2077 (arm_emit_tls_decoration): Likewise.
2078 * config/arm/arm.h (TARGET_GNU2_TLS): New.
2079 (OPTION_DEFAULT_SPECS): Add with-tls support.
2080 * config/arm/arm.md (R1_REGNUM): Define.
2081 (tlscall): New.
2082 * config/arm/arm.opt (tls_type): New enumeration type and values.
2083 (mtls-dialect): New switch.
2084 * config/arm/arm-opts.h (enum tls_type): New.
2085
70e41a6a
NP
20862011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
2087
2088 * attribs.c (register_attribute): Added assert to check that all
2089 attribute specs are registered with a name that is not empty and
2090 does not start with '_'.
2091 (decl_attributes): Avoid the lookup of the "naked" attribute spec
2092 if the function has no attributes.
2093 * tree.c (is_attribute_with_length_p): Removed.
2094 (is_attribute_p): Removed.
0d5e0c1b 2095 (private_is_attribute_p): New.
70e41a6a
NP
2096 (private_lookup_attribute): New.
2097 (lookup_attribute): Removed.
2098 (lookup_ident_attribute): New.
2099 (remove_attribute): Require the first argument to be in the form
2100 'text', not '__text__'. Updated asserts.
2101 (merge_attributes): Use lookup_ident_attributes instead of
2102 lookup_attribute.
2103 (merge_dllimport_decl_attributes): Use remove_attribute.
2104 (attribute_list_contained): Likewise.
2105 (attribute_list_equal): Immediately return 1 if the arguments are
2106 identical pointers.
2107 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
2108 'int'. Require the first argument to be in the form 'text', not
2109 '__text__'. Require the second argument to be an identifier.
2110 (lookup_attribute): Made inline. Require the first argument to be
2111 in the form 'text', not '__text__'.
2112 (private_is_attribute_p, private_lookup_attribute): New.
2113 Updated comments.
0d5e0c1b 2114
e0a8ecf2
AM
21152011-06-21 Andrew MacLeod <amacleod@redhat.com>
2116
2117 * builtins.c: Add sync_ or SYNC__ to builtin names.
2118 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
2119 * omp-low.c: Add sync_ or SYNC__ to builtin names.
2120
663827d3 21212011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 2122
663827d3
GJL
2123 PR target/33049
2124 * config/avr/avr.md (extzv): New expander.
2125 (*extzv): New insn.
2126 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
2127 * config/avr/constraints.md (C04): New constraint.
2128 * doc/md.texi (Machine Constraints): Document it.
2129
146aef0b
JJ
21302011-06-21 Jakub Jelinek <jakub@redhat.com>
2131
2132 PR middle-end/49489
2133 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
2134 unsignedp argument instead of 1 for clrsb_optab.
2135 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
2136 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
2137 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
2138 * optabs.c (widen_leading): Call widen_operand and expand_unop
2139 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 2140 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 2141
c0503294
GJL
21422011-06-21 Georg-Johann Lay <avr@gjlay.de>
2143
2144 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
2145
3801c801
BS
21462011-06-21 Bernd Schmidt <bernds@codesourcery.com>
2147
0bddee8e
BS
2148 * gensupport.c (add_define_attr): New static function.
2149 (is_predicable): Allow multi-alternative lists for the "predicable"
2150 attribute.
2151 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
2152 (process_one_cond_exec): Call alter_attrs_for_insn.
2153 * doc/md.texi (Defining Attributes): Mention some standard names.
2154 (Conditional Execution): Update documentation for "predicable".
2155
3801c801
BS
2156 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
2157 __builtin_clrsbll): Document.
2158 * doc/rtl.texi (clrsb): New entry.
2159 * optabs.c (widen_leading): Renamed from widen_clz. New argument
2160 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
2161 (expand_unop): Handle clrsb_optab.
2162 (init_optabs): Initialize it.
2163 * optabs.h (enum optab_index): New entry OTI_clrsb.
2164 (clrsb_optab): Define.
2165 * genopinit.c (optabs): Add an entry for it.
2166 * builtins.c (expand_builtin): Handle clrsb builtin functions.
2167 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
2168 BUILT_IN_CLRSBLL): New.
2169 * rtl.def (CLRSB): New code.
2170 * dwarf2out.c (mem_loc_descriptor): Handle it.
2171 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2172 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
2173 and popcount.
2174 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
2175 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
2176 (__ctzDI2): Move declaration.
2177 * config/bfin/bfin.md (clrsbsi2): New expander.
2178 (signbitssi2): Use the CLRSB rtx.
2179 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
2180 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
2181
55f01229
RG
21822011-06-21 Richard Guenther <rguenther@suse.de>
2183
637c11bd 2184 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 2185
5181cd6a
IR
21862011-06-21 Ira Rosen <ira.rosen@linaro.org>
2187
2188 PR tree-optimization/49478
2189 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
2190 with constant operand.
2191
e4ee3d70
RG
21922011-06-21 Richard Guenther <rguenther@suse.de>
2193
2194 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 2195
7b7ec6c5
RG
21962011-06-21 Richard Guenther <rguenther@suse.de>
2197
2198 PR tree-optimization/49483
2199 * tree-vect-stmts.c (vectorizable_assignment): Also handle
2200 VIEW_CONVERT_EXPR conversions.
2201
1b916ca6
JM
22022011-06-21 Joseph Myers <joseph@codesourcery.com>
2203
2204 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
2205 * config/avr/avr-tables.opt: New file (generated).
2206 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
2207 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
2208 avr-mcus.def.
2209 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
2210 (avr_option_override): Don't process -mmcu= argument here. Set
2211 avr_current_device using avr_mcu_index.
637c11bd 2212 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
2213 * config/avr/avr.opt (mmcu=): Use Enum.
2214 * config/avr/t-avr (avr-devices.o): Update dependencies.
2215 ($(srcdir)/config/avr/avr-tables.opt): New.
2216 * target.def (help): Remove.
2217 * doc/tm.texi.in (TARGET_HELP): Remove.
2218 * doc/tm.texi: Regenerate.
2219 * opts.c: Don't include target.h.
2220 (common_handle_option): Don't call targetm.help.
2221 * system.h (TARGET_HELP): Poison.
2222 * Makefile.in (opts.o): Update dependencies.
2223
7ecfa34f
RO
22242011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2225
2226 * config/usegld.h: New file.
2227 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
2228 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 2229 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
2230 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
2231 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
2232 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
2233 Define.
7ecfa34f
RO
2234 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
2235 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
2236 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
2237 (STACK_CHECK_STATIC_BUILTIN): Define.
2238 * config/sol2.opt (compat-bsd): Remove.
2239 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
2240 * config/sol2-bi.h: New file.
2241 * config/sol2-gld.h: Remove.
2242 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
2243 (NO_DBX_BNSYM_ENSYM): Remove.
2244 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2245 (STACK_CHECK_STATIC_BUILTIN): Remove.
2246 Test USE_GLD instead of TARGET_GNU_LD.
2247 * config/i386/sol2-10.h: Rename to ...
2248 * config/i386/sol2-bi.h .. this.
2249 (SUBTARGET_EXTRA_SPECS): Redefine.
2250 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
2251 (MULTILIB_DEFAULTS): Remove.
2252 (DEFAULT_ARCH32_P): Define.
2253 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
2254 (ARCH64_SUBDIR): Define.
2255 Test USE_GLD instead of TARGET_GNU_LD.
2256 (I386_EMULATION): Rename to ...
2257 (ARCH32_EMULATION): ... this.
2258 (X86_64_EMULATION): Rename to ...
2259 (ARCH64_EMULATION): ... this.
2260 (TARGET_LD_EMULATION): Remove.
2261 (LINK_ARCH_SPEC): Remove.
2262 * config/i386/sol2-gas.h: Remove.
2263 * config/i386/t-sol2-10: Rename to ...
2264 * config/i386/t-sol2-64: ... this.
2265 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
2266 (AS_SPARC64_FLAG): Define.
2267 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
2268 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
2269 depending on TARGET_CPU_DEFAULT.
2270 (CPP_CPU_SPEC): Redefine.
2271 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
2272 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
2273 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
2274 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
2275 ASM_ARCH_DEFAULT_SPEC): Redefine.
2276 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2277 LINK_ARCH_DEFAULT_SPEC.
2278 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
2279 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
2280 (ARCH64_SUBDIR): Define.
2281 (LINK_ARCH64_SPEC): Redefine.
2282 (CC1_SPEC): Redefine.
2283 (OPTION_DEFAULT_SPECS): Redefine.
2284 (MULTILIB_DEFAULTS): Define.
2285 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
2286 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
2287 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
2288 (NO_DBX_BNSYM_ENSYM): Remove.
2289 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
2290 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
2291 (TARGET_ASM_NAMED_SECTION): Likewise.
2292 (STACK_CHECK_STATIC_BUILTIN): Remove.
2293 * config/sparc/sol2-bi.h: Remove.
2294 * config/sparc/sol2-gas-bi.h: Remove.
2295 * config/sparc/sol2-gas.h: Remove.
2296 * config/sparc/sol2-gld-bi.h: Remove.
2297 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
2298 common parts ...
2299 (*-*-solaris2*): ... here.
2300
4b583c43 23012011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 2302
4b583c43 2303 PR other/43564
637c11bd
UB
2304 * ipa-inline.c (can_inline_edge_p): Check
2305 !DECL_DISREGARD_INLINE_LIMITS.
2306
3bb556ad 23072011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 2308
3bb556ad
CB
2309 PR middle-end/49139
2310 * cgraphunit.c (process_function_and_variable_attributes): warn when
2311 always_inline functions that are not inline.
637c11bd
UB
2312 * ipa-inline-transform.c (inline_transform): Always call
2313 optimize_inline.
2314 * tree-inline.c (tree_inlinable_function_p): Use error instead
2315 of sorry.
3bb556ad 2316 (expand_call_inline): Likewise.
637c11bd 2317
f1ee724c
JJ
23182011-06-21 Jakub Jelinek <jakub@redhat.com>
2319
2320 * Makefile.in (dg_target_exps): Set.
2321 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
2322 instead of 7, try to divide it more evenly.
2323
23242011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 2325
931050d0 2326 PR target/49089
97ef5ae6
CF
2327 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
2328 (avx256_split_unaligned_store): New definition.
2329 (ix86_option_override_internal): Enable avx256 unaligned load/store
2330 splitting only when avx256_split_unaligned_load/store is set.
2331
998c75b6
BS
23322011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2333
2334 * regrename.c (scan_rtx_reg): Handle the case where we write to an
2335 open chain in a smaller mode without failing the entire block.
2336
83a8cbda
L
23372011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2338
2339 PR middle-end/47725
2340 * combine.c (cant_combine_insn_p): Don't check zero/sign
2341 extended hard registers.
2342
3a769784
AM
23432011-06-21 Alan Modra <amodra@gmail.com>
2344
2345 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
2346 CONST high part large-toc address.
2347 (rs6000_tls_referenced_p): Make static.
2348 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
2349
d1e32c4a
L
23502011-06-20 H.J. Lu <hongjiu.lu@intel.com>
2351
2352 PR middle-end/47725
2353 * combine.c (cant_combine_insn_p): Check zero/sign extended
2354 hard registers.
2355
c2954af9
RR
23562011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2357
2358 PR target/49385
2359 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
2360 one of the operands is a register.
2361
a95015b6
KT
23622011-06-20 Kai Tietz <ktietz@redhat.com>
2363
637c11bd
UB
2364 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
2365 operations in combination with binary and.
a95015b6 2366
49a30d00
BS
23672011-06-20 Bernd Schmidt <bernds@codesourcery.com>
2368
2369 * regrename.c (do_replace): Don't update notes.
2370
3bae1d98
AM
23712011-06-20 Alan Modra <amodra@gmail.com>
2372
2373 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
2374 of toc-relative address in CONST.
2375 (rs6000_delegitimize_address): Recognize changed address.
2376 (rs6000_legitimize_reload_address): Likewise.
2377 (rs6000_emit_move): Don't force these constants to memory.
2378 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
2379 toc-relative address in CONST.
2380 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
2381 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
2382
10937b0c
L
23832011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2384
637c11bd 2385 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
2386 (count_trailing_zeros): Likewise.
2387
0c587260
L
23882011-06-18 H.J. Lu <hongjiu.lu@intel.com>
2389
2390 PR other/49325
2391 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
2392 .init_array can be used with .ctors on targets.
2393 * configure: Regenerated.
2394
c020c92b
EB
23952011-06-18 Eric Botcazou <ebotcazou@adacore.com>
2396
2397 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
2398 if the element type is volatile.
2399
cd35bcf7
JH
24002011-06-18 Jan Hubicka <jh@suse.cz>
2401
2402 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
2403 extra name aliases.
2404 (lto_symtab_resolve_can_prevail_p): Likewise.
2405 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
2406 * cgraphbuild.c (record_reference): Remove extra body alias code.
2407 (mark_load): Likewise.
2408 (mark_store): Likewise.
2409 * cgraph.h (varpool_node): Remove extra_name filed;
2410 add alias_of and extraname_alias.
2411 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
2412 (varpool_alias_aliased_node): New inline function.
2413 (varpool_variable_node): New function.
2414 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
2415 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
2416 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
2417 (input_varpool_node): Likewise.
2418 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
2419 (varpool_externally_visible_p): Remove extra body alias code.
2420 (function_and_variable_visibility): Likewise.
2421 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
2422 (ipa_pta_execute): Use it.
2423 * varpool.c (varpool_remove_node): Remove extra name alias code.
2424 (varpool_mark_needed_node): Likewise.
2425 (varpool_analyze_pending_decls): Analyze aliases.
2426 (assemble_aliases): New functoin.
2427 (varpool_assemble_decl): Use it.
2428 (varpool_create_variable_alias): New function.
2429 (varpool_extra_name_alias): Rewrite.
2430 (varpool_for_node_and_aliases): New function.
2431
c96b4102
JJ
24322011-06-18 Jakub Jelinek <jakub@redhat.com>
2433
2434 PR target/49411
2435 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
2436 last_arg_constant and last argument doesn't match its predicate,
2437 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
2438 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
2439 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
2440 spelling of error message.
2441 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
2442 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
2443 const_0_to_255_operand instead of const_int_operand.
2444
2445 Revert:
2446 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2447
2448 * config/i386/sse.md (blendbits): Remove mode attribute.
2449 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2450 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2451 Check integer value of operand 3 in insn constraint.
2452
9a2091cd
HPN
24532011-06-17 Hans-Peter Nilsson <hp@axis.com>
2454
2455 PR rtl-optimization/48542
2456 * reload.c (find_equiv_reg): Stop looking when finding a
2457 setjmp-type call.
2458 * reload1.c (reload_as_needed): Invalidate all reload
2459 registers when crossing a setjmp-type call.
2460
361b51c0
JL
24612011-06-16 Jeff Law <law@redhat.com>
2462
2463 * tree-ssa-threadupdate.c (struct redirection_data): New field
2464 intermediate_edge.
2465 (THREAD_TARGET2): Define.
637c11bd 2466 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
2467 (lookup_redirection_data): Drop useless argument. Extract the
2468 outgoing_edge and intermediate edge from E. Callers updated.
2469 (copy_phi_args, update_destination_phis): New functions.
2470 (fix_duplicate_block_edges): Likewise.
2471 (create_edge_and_update_destination_phis): Duplicate all the edges
2472 hung off e->aux. Use copy_phi_args.
2473 (create_duplicates): Use fix_duplicate_block_edges.
2474 (fixup_template_block): Likewise.
2475 (redirect_edges): If necessary, redirect the joiner block's incoming
2476 edge to the duplicate of the joiner block.
2477 (thread_block): Don't muck up loops when threading through a joiner
2478 block.
637c11bd 2479 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
2480 (mark_threaded_blocks, register_jump_thread): Likewise.
2481 * tree-flow.h (register_jump_thread): Add new argument. Callers
2482 updated.
2483 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2484 (thread_across_edge): Handle threading through a joiner block.
637c11bd 2485
ee460e75
MJ
24862011-06-16 Martin Jambor <mjambor@suse.cz>
2487
2488 PR tree-optimization/49343
2489 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2490 calculate offset, provide 2nd operand for the new COMPONENT_REF.
2491
a285ba2e
IS
24922011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2493
2494 * config/darwin-protos.h (machopic_select_rtx_section): Move to
2495 inside RTX_CODE ifdef.
2496
0703f020
TV
24972011-06-16 Tom de Vries <tom@codesourcery.com>
2498
2499 PR target/45098
637c11bd
UB
2500 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2501 Disallow NULL pointer for pointer arithmetic.
0703f020 2502
900c07da
RR
25032011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2504
2505 PR target/49398
2506 Revert.
2507 2011-06-10 Wei Guozhi <carrot@google.com>
2508
2509 PR target/45335
2510 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2511 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2512 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2513 related peephole2.
2514 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2515 related peephole2.
2516 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2517 (arm_legitimate_ldrd_p): New prototype.
2518 (arm_output_ldrd): New prototype.
2519 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2520 (arm_legitimate_ldrd_p): New function.
2521 (arm_output_ldrd): New function.
2522
c020c92b 25232011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
2524
2525 PR middle-end/46500
2526 * doc/tm.texi.in: Update Copyright date.
2527 * doc/tm.texi: Regenerate.
2528 * targhooks.c (default_setup_incoming_varargs): Replace
2529 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2530 (default_pretend_outgoing_varargs_named): Likewise.
2531 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2532 (hook_callee_copies_named): Likewise.
2533 (default_function_arg_advance): Likewise.
2534 (default_function_arg): Likewise.
2535 (default_function_incoming_arg): Likewise.
2536 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2537 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2538 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2539 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2540 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2541 * targhooks.h (default_setup_incoming_varargs): Likewise.
2542 (default_pretend_outgoing_varargs_named): Likewise.
2543 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2544 (hook_callee_copies_named): Likewise.
2545 (default_function_arg_advance): Likewise.
2546 (default_function_arg): Likewise.
2547 (default_function_incoming_arg): Likewise.
2548 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2549 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2550 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2551 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2552 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2553 * target.def (pass_by_reference): Likewise.
2554 (setup_incoming_varargs, strict_argument_naming): Likewise.
2555 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2556 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2557 (function_incoming_arg): Likewise.
2558 * target.h: Don't include "tm.h" .
2559 (cumulative_args_t): New typedef.
2560 [GCC_TM_H] (get_cumulative_args): New static inline function.
2561 [GCC_TM_H] (pack_cumulative_args): Likewise.
2562 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2563 argument type with cumulative_args_t.
2564 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2565 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2566 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2567 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2568 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2569 (frv_function_arg_1): Likewise.
2570 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2571 (s390_function_arg_advance, s390_function_arg): Likewise.
2572 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2573 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2574 (m32c_strict_argument_naming): Likewise.
2575 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2576 (spu_function_arg_advance): Likewise.
2577 (spu_setup_incoming_varargs): Likewise. Make static.
2578 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2579 Remove prototype.
2580 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2581 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2582 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2583 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2584 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2585 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2586 (mep_pass_by_reference, mep_function_arg): Likewise.
2587 (mep_function_arg_advance): Likewise.
2588 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2589 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2590 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2591 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2592 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2593 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2594 (ix86_setup_incoming_varargs): Likewise.
2595 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2596 (sh_strict_argument_naming): Likewise.
2597 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2598 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2599 (sh_function_arg_advance, sh_function_arg): Likewise.
2600 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2601 (pdp11_function_arg_advance): Likewise.
2602 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2603 Likewise.
2604 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2605 * config/avr/avr.c (avr_function_arg): Likewise.
2606 (avr_function_arg_advance): Likewise.
2607 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2608 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2609 (xtensa_function_arg_1): Likewise.
637c11bd
UB
2610 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2611 Likewise.
d5cc9181
JR
2612 (xstormy16_function_arg): Likewise.
2613 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2614 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2615 (fr30_function_arg_advance): Likewise.
2616 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2617 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2618 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2619 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2620 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2621 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2622 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2623 (cris_function_arg, cris_function_incoming_arg): Likewise.
2624 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2625 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2626 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2627 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2628 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2629 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2630 (mn10300_arg_partial_bytes): Likewise.
2631 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2632 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2633 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2634 (ia64_function_arg_1): Likewise.
2635 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2636 (m68k_function_arg): Likewise.
2637 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2638 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2639 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2640 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2641 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2642 (picochip_arg_advance): Likewise.
2643 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2644 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2645 (mcore_function_arg_advance): Likewise.
2646 * config/score/score.c (score_pass_by_reference): Likewise.
2647 (score_function_arg_advance): Likewise.
2648 (score_arg_partial_bytes): Likewise. Make static.
2649 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2650 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2651 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2652 (arm_function_arg, arm_function_arg_advance): Likewise.
2653 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2654 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2655 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2656 (pa_function_arg): Likewise.
2657 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2658 (mips_function_arg, mips_function_arg_advance): Likewise.
2659 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2660 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2661 * config/vax/vax.c (vax_function_arg): Likewise.
2662 (vax_function_arg_advance): Likewise.
2663 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2664 (h8300_function_arg_advance): Likewise.
2665 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2666 (v850_strict_argument_naming, v850_function_arg): Likewise.
2667 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2668 (v850_setup_incoming_varargs): Likewise.
2669 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2670 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2671 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2672 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2673 with const void *.
2674 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2675 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2676 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2677 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2678 * calls.c (emit_call_1): Change type of args_so_far to
2679 cumulative_args_t. Changed all callers.
2680 (initialize_argument_information): Likewise.
2681 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2682 * dse.c (get_call_args): Likewise.
2683 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2684 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2685 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2686 New member args_so_far_v. Changed all users.
2687 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2688 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2689 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2690 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2691 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
2692 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2693 Likewise.
d5cc9181
JR
2694 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2695 m32r_pass_by_reference.
2696
51312233
IR
26972011-06-16 Ira Rosen <ira.rosen@linaro.org>
2698
2699 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2700 argument to be a VEC of statements.
637c11bd
UB
2701 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2702 assert that pattern statements have to have their vector type set.
51312233
IR
2703 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2704 Change the first argument to be a VEC of statements. Update
2705 documentation.
2706 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2707 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
2708 (vect_recog_widen_mult_pattern): Change the first argument to be a
2709 VEC of statements. Update documentation. Check that the constant is
2710 INTEGER_CST. Support multiplication by a constant that fits an
2711 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
2712 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2713 call. Handle additional pattern statements if necessary.
2714
fd4df33d
NC
27152011-06-16 Nick Clifton <nickc@redhat.com>
2716
2717 PR target/49427
2718 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2719 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2720 md_file, extra_modes, out_file and extra_options are these are all
2721 deduced from cpu_type.
2722
fbd05da0
GJL
27232011-06-16 Georg-Johann Lay <avr@gjlay.de>
2724
2725 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2726 truncation mask to 63.
2727
0ad8bb3b
GJL
27282011-06-16 Georg-Johann Lay <avr@gjlay.de>
2729
2730 PR target/49313
2731 PR target/29524
2732 * longlong.h: Add AVR support:
2733 (count_leading_zeros): New macro.
2734 (count_trailing_zeros): New macro.
2735 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
2736 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2737 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2738 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2739 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
2740 (LIB2FUNCS_EXCLUDE): Add _clz.
2741 * config/avr/libgcc.S (XCALL): Move up in file.
2742 (XJMP): New C Macro.
2743 (DEFUN): New asm macro.
2744 (ENDF): New asm macro.
2745 (__ffssi2): New function.
2746 (__ffshi2): New function.
2747 (__loop_ffsqi2): New function.
2748 (__ctzsi2): New function.
2749 (__ctzhi2): New function.
2750 (__clzdi2): New function.
2751 (__clzsi2): New function.
2752 (__clzhi2): New function.
2753 (__paritydi2): New function.
2754 (__paritysi2): New function.
2755 (__parityhi2): New function.
59c1e10b 2756 (__parityqi2): New function.
0ad8bb3b
GJL
2757 (__popcounthi2): New function.
2758 (__popcountsi2): New function.
2759 (__popcountdi2): New function.
2760 (__popcountqi2): New function.
2761 (__bswapsi2): New function.
2762 (__bswapdi2): New function.
2763 (__ashldi3): New function.
2764 (__ashrdi3): New function.
2765 (__lshrdi3): New function.
2766 Fix suspicous lines.
2767
12430896
RG
27682011-06-16 Richard Guenther <rguenther@suse.de>
2769
2770 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2771 the same as x != 0.
637c11bd
UB
2772 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2773 to (bool) X & 1.
12430896
RG
2774 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2775 equality compares against zero for the lower bit.
2776
09302442
JJ
27772011-06-16 Jakub Jelinek <jakub@redhat.com>
2778
2779 PR tree-optimization/49419
2780 * tree-vrp.c (execute_vrp): Call init_range_assertions
2781 before estimate_numbers_of_iterations, call
2782 free_number_of_iterations_estimates before calling
2783 remove_range_assertions.
2784
81c41166
RE
27852011-06-16 Revital Eres <revital.eres@linaro.org>
2786
2787 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2788 (struct partial_schedule): Add rows_length field.
2789 (verify_partial_schedule): Check rows_length.
2790 (ps_insert_empty_row): Handle rows_length.
2791 (create_partial_schedule): Likewise.
2792 (free_partial_schedule): Likewise.
2793 (reset_partial_schedule): Likewise.
2794 (create_ps_insn): Remove rest_count argument.
2795 (remove_node_from_ps): Update rows_length.
2796 (add_node_to_ps): Update rows_length and call create_ps_insn
2797 without passing row_rest_count.
2798 (rotate_partial_schedule): Update rows_length.
2799
d24dc7b3
RE
28002011-06-16 Revital Eres <revital.eres@linaro.org>
2801
2802 * ddg.c (add_intra_loop_mem_dep): New function.
2803 (build_intra_loop_deps): Call it.
2804
361b51c0 28052011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
2806
2807 * df-problems.c (df_lr_local_compute): Manually CSE
2808 PIC_OFFSET_TABLE_REGNUM.
2809 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2810 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2811
85ce9375
JH
28122011-06-13 Jan Hubicka <jh@suse.cz>
2813
2814 * cgraphunit.c (handle_alias_pairs): New function.
2815 (cgraph_finalize_compilation_unit): Use it.
2816 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2817 as externally visible.
2818
a577c405
RG
28192011-06-15 Richard Guenther <rguenther@suse.de>
2820
2821 * expr.c (expand_expr_real_2): Reduce all integral types to
2822 bitfield precision.
2823 (expand_expr_real_1): Likewise.
2824
93536c97
MJ
28252011-06-15 Martin Jambor <mjambor@suse.cz>
2826
2827 PR tree-optimization/48613
2828 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2829 ipa_node_params_vector is NULL.
fd4df33d 2830
ba45cfc4
JJ
28312011-06-15 Jakub Jelinek <jakub@redhat.com>
2832
2833 PR debug/49382
2834 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
2835 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2836 location in the list, even if it is modified before first real insn.
ba45cfc4 2837 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 2838 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 2839
6fc5966f
AM
28402011-06-15 Alexander Monakov <amonakov@ispras.ru>
2841
2842 PR target/49349
2843 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2844 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2845 above a fence. Update comments.
2846 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2847 placed just above it. Do not allow NULL place_to_insert.
2848
9d5e7640
IR
28492011-06-15 Ira Rosen <ira.rosen@linaro.org>
2850
2851 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2852 (slpeel_tree_peel_loop_to_edge): Don't call
2853 remove_dead_stmts_from_loop.
2854 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2855 remove irrelevant pattern statements. For irrelevant statements
2856 check if it is the last statement of a detected pattern, use
2857 corresponding pattern statement instead.
2858 (destroy_loop_vec_info): No need to remove pattern statements,
2859 only free stmt_vec_info.
2860 (vect_transform_loop): For irrelevant statements check if it is
2861 the last statement of a detected pattern, use corresponding
2862 pattern statement instead.
2863 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2864 pattern statements. Set basic block for the new statement.
2865 (vect_pattern_recog): Update documentation.
2866 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2867 operands of pattern statements.
2868 (vectorizable_call): Fix printing. In case of a pattern statement
2869 use the lhs of the original statement when creating a dummy
2870 statement to replace the original call.
2871 (vect_analyze_stmt): For irrelevant statements check if it is
2872 the last statement of a detected pattern, use corresponding
2873 pattern statement instead.
2874 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2875 statements use gsi of the original statement.
2876
677f3fa8
JM
28772011-06-14 Joseph Myers <joseph@codesourcery.com>
2878
2879 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2880 common/common-target-def.h.
2881 * target.def (default_target_flags, handle_option,
2882 supports_split_stack, optimization_table, init_struct,
2883 except_unwind_info, unwind_tables_default, have_named_sections):
2884 Move to common/common-target.def.
2885 * target.h (enum opt_levels, struct default_options): Move to
2886 common/common-target.h.
2887 * targhooks.c (default_except_unwind_info,
2888 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2889 default_target_handle_option, empty_optimization_table): Move to
2890 common/common-targhooks.c.
2891 * targhooks.h (default_except_unwind_info,
2892 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2893 default_target_handle_option, empty_optimization_table): Move to
2894 common/common-targhooks.h.
2895 * common/common-target-def.h: Include common/common-targhooks.h.
2896 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2897 defined.
2898 * common/common-target.def (handle_option, option_init_struct,
2899 option_optimization_table, default_target_flags,
2900 except_unwind_info, supports_split_stack, unwind_tables_default,
2901 have_named_sections): Move from target.def.
2902 (HOOK_PREFIX): Undefine at end of file.
2903 * common/common-target.h: Include input.h.
2904 (enum opt_levels, struct default_options): Move from target.h.
2905 * common/common-targhooks.c, common/common-targhooks.h: New.
2906 * config.gcc (target_has_targetm_common): Default to yes.
2907 (moxie*): Set target_has_targetm_common=no.
2908 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2909 * doc/tm.texi: Regenerate.
2910 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2911 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2912 (GCC_OBJS): Remove vec.o.
2913 (OBJS): Remove hooks.o and vec.o.
2914 (OBJS-libcommon-target): Add vec.o, hooks.o and
2915 common/common-targhooks.o.
2916 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2917 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2918 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2919 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2920 Update dependencies.
2921 (common/common-targhooks.o): New.
637c11bd 2922 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
2923 * common/config/pa/pa-common.c: Include more headers. Take
2924 copyright dates from pa.c.
2925 (pa_option_optimization_table, pa_handle_option,
2926 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2927 TARGET_HANDLE_OPTION): Move from pa.c.
2928 * common/config/alpha/alpha-common.c,
2929 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2930 common/config/bfin/bfin-common.c,
2931 common/config/cris/cris-common.c,
2932 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2933 common/config/h8300/h8300-common.c,
2934 common/config/i386/i386-common.c,
2935 common/config/ia64/ia64-common.c,
2936 common/config/iq2000/iq2000-common.c,
2937 common/config/lm32/lm32-common.c,
2938 common/config/m32c/m32c-common.c,
2939 common/config/m32r/m32r-common.c,
2940 common/config/m68k/m68k-common.c,
2941 common/config/mcore/mcore-common.c,
2942 common/config/mep/mep-common.c,
2943 common/config/microblaze/microblaze-common.c,
2944 common/config/mips/mips-common.c,
2945 common/config/mmix/mmix-common.c,
2946 common/config/mn10300/mn10300-common.c,
2947 common/config/pdp11/pdp11-common.c,
2948 common/config/picochip/picochip-common.c,
2949 common/config/rs6000/rs6000-common.c,
2950 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2951 common/config/score/score-common.c, common/config/sh/sh-common.c,
2952 common/config/sparc/sparc-common.c,
2953 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2954 common/config/vax/vax-common.c,
2955 common/config/xstormy16/xstormy16-common.c,
2956 common/config/xtensa/xtensa-common.c: New.
2957 * config/alpha/alpha.c: Include common/common-target.h.
2958 (alpha_option_optimization_table, alpha_handle_option,
2959 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2960 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2961 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2962 * config/arm/arm.c (arm_option_optimization_table,
2963 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2964 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2965 arm-common.c.
2966 * config/avr/avr.c (avr_option_optimization_table,
2967 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2968 to avr-common.c.
2969 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2970 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2971 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2972 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2973 * config/cris/cris.c (cris_option_optimization_table,
2974 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2975 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2976 cris-common.c.
2977 * config/fr30/fr30.c (fr30_option_optimization_table,
2978 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2979 to fr30-common.c.
2980 * config/frv/frv.c (frv_option_optimization_table,
2981 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2982 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2983 * config/h8300/h8300.c (h8300_option_optimization_table,
2984 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2985 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2986 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2987 * config/i386/i386.c: Include common/common-target.h.
2988 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2989 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2990 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2991 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2992 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2993 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2994 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2995 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2996 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2997 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2998 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2999 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
3000 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
3001 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
3002 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
3003 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
3004 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
3005 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
3006 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
3007 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
3008 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
3009 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
3010 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
3011 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
3012 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
3013 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
3014 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
3015 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
3016 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
3017 ix86_option_optimization_table, ix86_option_init_struct,
3018 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
3019 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3020 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
3021 i386-common.c.
3022 * config/i386/t-i386 (i386.o): Update dependencies.
3023 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
3024 * config/ia64/ia64.c (ia64_option_optimization_table,
3025 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
3026 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3027 ia64_handle_option): Move to ia64-common.c.
3028 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3029 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
3030 * config/lm32/lm32.c (lm32_option_optimization_table,
3031 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
3032 to lm32-common.c.
3033 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
3034 m32c-common.c.
3035 * config/m32r/m32r.c (m32r_option_optimization_table,
3036 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3037 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
3038 m32r_handle_option): Move to m32r-common.c.
3039 (m32r_memory_move_cost): Remove comment referring to
3040 TARGET_HANDLE_OPTION.
3041 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
3042 Move to m68k-common.c.
3043 * config/mcore/mcore.c (mcore_option_optimization_table,
3044 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3045 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
3046 * config/mep/mep.c (mep_option_optimization_table,
3047 mep_handle_option, TARGET_HANDLE_OPTION,
3048 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
3049 Move to mep-common.c.
3050 * config/microblaze/microblaze.c
3051 (microblaze_option_optimization_table,
3052 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
3053 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
3054 * config/mips/mips.c (mips_handle_option,
3055 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
3056 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
3057 mips-common.c.
3058 * config/mmix/mmix.c (mmix_option_optimization_table,
3059 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
3060 Move to mmix-common.c.
3061 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
3062 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
3063 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3064 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
3065 * config/pa/pa.c: Include common/common-target.h.
3066 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
3067 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3068 pa_handle_option): Move to pa-common.c.
3069 (pa_option_override): Use targetm_common.except_unwind_info.
3070 (pa_asm_output_mi_thunk, pa_function_section): Use
3071 targetm_common.have_named_sections.
3072 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
3073 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3074 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
3075 pdp11_handle_option, pdp11_option_init_struct): Move to
3076 pdp11-common.c.
3077 * config/picochip/picochip.c (picochip_option_optimization_table,
3078 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
3079 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
3080 * config/rs6000/rs6000.c: Include common/common-target.h.
3081 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
3082 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
3083 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
3084 rs6000_handle_option): Move to rs6000-common.c.
3085 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
3086 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
3087 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3088 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
3089 * config/s390/s390.c (processor_flags_table,
3090 s390_option_optimization_table, s390_option_init_struct,
3091 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
3092 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
3093 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
3094 * config/s390/s390.h (processor_flags_table): Declare.
3095 * config/score/score.c (score_option_optimization_table,
3096 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3097 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
3098 score_handle_option): Move to score-common.c.
3099 * config/sh/sh.c (sh_option_optimization_table,
3100 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
3101 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
3102 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
3103 * config/sparc/sparc.c: Include common/common-target.h.
3104 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
3105 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
3106 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
3107 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
3108 spu_option_init_struct): Move to spu-common.c.
3109 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
3110 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
3111 * config/v850/v850.c (small_memory_physical_max,
3112 v850_handle_memory_optionn v850_handle_option,
3113 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
3114 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
3115 v850-common.c.
637c11bd 3116 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
3117 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
3118 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
3119 Move to xtensa-common.c.
3120 * cfglayout.c: Include common/common-target.h.
3121 (fixup_reorder_chain): Use targetm_common.have_named_sections.
3122 * cfgrtl.c: Include common/common-target.h.
3123 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
3124 targetm_common.have_named_sections.
3125 * dbxout.c: Include common/common-target.h.
3126 (dbxout_function_end): Use targetm_common.have_named_sections.
3127 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
3128 targetm_common.except_unwind_info.
3129 * dwarf2out.c: Include common/common-target.h.
3130 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
3131 dwarf2out_begin_prologue, dwarf2out_frame_init,
3132 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
3133 targetm_common.except_unwind_info.
3134 * except.c: Include common/common-target.h.
3135 (init_eh, finish_eh_generation,
3136 output_one_function_exception_table): Use
3137 targetm_common.except_unwind_info.
637c11bd 3138 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
3139 * explow.c: Include common/common-target.h.
3140 * expr.c: Include common/common-target.h.
637c11bd 3141 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
3142 * function.c: Include common/common-target.h.
3143 (expand_function_end): Use targetm_common.except_unwind_info.
3144 * haifa-sched.c: Include common/common-target.h.
637c11bd 3145 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
3146 * lto-opts.c: Include common/common-target.h instead of target.h.
3147 (lto_reissue_options): Use targetm_common.handle_option.
3148 * opts.c: Include common/common-target.h.
3149 (target_handle_option): Use targetm_common.handle_option.
3150 (init_options_struct): Update comment referring to
3151 targetm.target_option.optimization. Use
3152 targetm_common.default_target_flags,
3153 targetm_common.unwind_tables_default and
3154 targetm_common.option_init_struct.
3155 (default_options_optimization): Use
3156 targetm_common.option_optimization_table.
3157 (finish_options): Use targetm_common.except_unwind_info,
3158 targetm_common.unwind_tables_default,
3159 targetm_common.have_named_sections and
3160 targetm_common.supports_split_stack.
3161 * toplev.c: Include common/common-target.h.
3162 (process_options): Use targetm_common.have_named_sections.
3163 * tree-tailcall.c: Include common/common-target.h.
637c11bd 3164 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 3165 * tree.c: Include common/common-target.h.
637c11bd 3166 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
3167 * varasm.c: Include common/common-target.h.
3168 (resolve_unique_section, hot_function_section,
3169 default_function_section): Use targetm_common.have_named_sections.
3170
d26c7090
ER
31712011-06-14 Easwaran Raman <eraman@google.com>
3172
3173 PR rtl-optimization/44194
3174 * dse.c: Include tree-flow.h
3175 (insn_info): Add new field non_frame_wild_read.
3176 (group_info): Add new fields escaped_n and escaped_p.
3177 (kill_on_calls): New variable.
3178 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
3179 (dse_step0): Initialize kill_on_calls.
3180 (can_escape): New function.
3181 (set_usage_bits): Add additional parameter; record information
3182 about escaped locations.
637c11bd 3183 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
3184 (dse_step2_nospill): Set kill_on_calls based on
3185 group->escaped_n and group->escaped_n.
3186 (add_wild_read): Refactor into...
3187 (reset_active_stores): ... New function, and
3188 (free_read_records): ... New function.
3189 (add_non_frame_wild_read): New function.
3190 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 3191 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
3192 (dse_step5_nospill): Call scan_reads_nospill for instructions
3193 marked as non_frame_wild_read.
637c11bd 3194 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 3195
c49a6962
JM
31962011-06-14 Joseph Myers <joseph@codesourcery.com>
3197
3198 * common/common-target-def.h, common/common-target.def,
3199 common/common-target.h, common/config/default-common.c,
3200 common/config/pa/pa-common.c: New files.
3201 * Makefile.in (common_out_file, common_out_object_file,
3202 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
3203 (OBJS-libcommon-target): Include $(common_out_object_file).
3204 (prefix.o): Update dependencies.
3205 ($(common_out_object_file), common/common-target-hooks-def.h,
3206 s-common-target-hooks-def-h): New.
3207 (s-tm-texi): Also check timestamp on common-target.def.
3208 (build/genhooks.o): Update dependencies.
3209 * config.gcc (common_out_file, target_has_targetm_common): Define.
3210 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
3211 TARGET_ALWAYS_STRIP_DOTDOT.
3212 * configure.ac (common_out_object_file): Define.
3213 (common_out_file, common_out_object_file): Substitute.
3214 (common): Create directory.
3215 * configure: Regenerate.
3216 * doc/tm.texi.in (targetm_common): Document.
3217 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
3218 * doc/tm.texi: Regenerate.
3219 * genhooks.c (hook_array): Also include common/common-target.def.
3220 * prefix.c (tm.h): Don't include.
3221 (common/common-target.h): Include.
3222 (ALWAYS_STRIP_DOTDOT): Don't define.
3223 (update_path): Use targetm_common.always_strip_dotdot instead of
3224 ALWAYS_STRIP_DOTDOT.
3225 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
3226
22c5fa5f
DL
32272011-06-14 David Li <davidxl@google.com>
3228
3229 * passes.c (execute_function_todo): Remove TODO_dump_func.
3230 (execute_one_pass): Remove TODO_dump_func.
3231 (execute_function_dump): New function.
3232 * tree-vrp.c: Remove TODO_dump_func.
3233 * regrename.c: Remove TODO_dump_func.
3234 * fwprop.c: Remove TODO_dump_func.
3235 * tree-into-ssa.c: Remove TODO_dump_func.
3236 * tree-complex.c: Remove TODO_dump_func.
3237 * tracer.c: Remove TODO_dump_func.
3238 * tree-loop-distribution.c: Remove TODO_dump_func.
3239 * postreload-gcse.c: Remove TODO_dump_func.
3240 * postreload.c: Remove TODO_dump_func.
3241 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
3242 * tree-tailcall.c: Remove TODO_dump_func.
3243 * ipa-cp.c: Remove TODO_dump_func.
3244 * final.c: Remove TODO_dump_func.
3245 * tree-emutls.c: Remove TODO_dump_func.
3246 * omp-low.c: Remove TODO_dump_func.
3247 * tree-ssa-dse.c: Remove TODO_dump_func.
3248 * tree-ssa-uncprop.c: Remove TODO_dump_func.
3249 * auto-inc-dec.c: Remove TODO_dump_func.
3250 * reorg.c: Remove TODO_dump_func.
3251 * tree-ssa-copyrename.c: Remove TODO_dump_func.
3252 * tree-ssa-ccp.c: Remove TODO_dump_func.
3253 * compare-elim.c: Remove TODO_dump_func.
3254 * mode-switching.c: Remove TODO_dump_func.
3255 * modulo-sched.c: Remove TODO_dump_func.
3256 * tree-call-cdce.c: Remove TODO_dump_func.
3257 * cse.c: Remove TODO_dump_func.
3258 * web.c: Remove TODO_dump_func.
3259 * tree-stdarg.c: Remove TODO_dump_func.
3260 * lto-streamer-out.c: Remove TODO_dump_func.
3261 * tree-ssa-math-opts.c: Remove TODO_dump_func.
3262 * tree-ssa-dom.c: Remove TODO_dump_func.
3263 * tree-nrv.c: Remove TODO_dump_func.
3264 * loop-init.c: Remove TODO_dump_func.
3265 * gimple-low.c: Remove TODO_dump_func.
3266 * ipa-inline.c: Remove TODO_dump_func.
3267 * tree-ssa-sink.c: Remove TODO_dump_func.
3268 * jump.c: Remove TODO_dump_func.
3269 * ifcvt.c: Remove TODO_dump_func.
3270 * tree-ssa-loop.c: Remove TODO_dump_func.
3271 * recog.c: Remove TODO_dump_func.
3272 * dse.c: Remove TODO_dump_func.
3273 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
3274 * matrix-reorg.c: Remove TODO_dump_func.
3275 * tree-eh.c: Remove TODO_dump_func.
3276 * regmove.c: Remove TODO_dump_func.
3277 * function.c: Remove TODO_dump_func.
3278 * tree-vectorizer.c: Remove TODO_dump_func.
3279 * ipa-split.c: Remove TODO_dump_func.
3280 * gcse.c: Remove TODO_dump_func.
3281 * tree-if-conv.c: Remove TODO_dump_func.
3282 * init-regs.c: Remove TODO_dump_func.
3283 * tree-ssa-phiopt.c: Remove TODO_dump_func.
3284 * implicit-zee.c: Remove TODO_dump_func.
3285 * lower-subreg.c: Remove TODO_dump_func.
3286 * bt-load.c: Remove TODO_dump_func.
3287 * tree-dfa.c: Remove TODO_dump_func.
3288 * except.c: Remove TODO_dump_func.
3289 * emit-rtl.c: Remove TODO_dump_func.
3290 * store-motion.c: Remove TODO_dump_func.
3291 * cfgexpand.c: Remove TODO_dump_func.
3292 * tree-cfgcleanup.c: Remove TODO_dump_func.
3293 * cfgcleanup.c: Remove TODO_dump_func.
3294 * tree-ssa-pre.c: Remove TODO_dump_func.
3295 * tree-sra.c: Remove TODO_dump_func.
3296 * tree-mudflap.c: Remove TODO_dump_func.
3297 * tree-ssa-copy.c: Remove TODO_dump_func.
3298 * cfglayout.c: Remove TODO_dump_func.
3299 * tree-ssa-forwprop.c: Remove TODO_dump_func.
3300 * tree-ssa-dce.c: Remove TODO_dump_func.
3301 * ira.c: Remove TODO_dump_func.
3302 * tree-ssa.c: Remove TODO_dump_func.
3303 * integrate.c: Remove TODO_dump_func.
3304 * tree-optimize.c: Remove TODO_dump_func.
3305 * tree-ssa-phiprop.c: Remove TODO_dump_func.
3306 * tree-object-size.c: Remove TODO_dump_func.
3307 * combine.c: Remove TODO_dump_func.
3308 * bb-reorder.c: Remove TODO_dump_func.
3309 * cprop.c: Remove TODO_dump_func.
3310 * var-tracking.c: Remove TODO_dump_func.
3311 * tree-profile.c: Remove TODO_dump_func.
3312 * tree-vect-generic.c: Remove TODO_dump_func.
3313 * reg-stack.c: Remove TODO_dump_func.
3314 * sched-rgn.c: Remove TODO_dump_func.
3315 * tree-ssa-structalias.c: Remove TODO_dump_func.
3316 * tree-switch-conversion.c: Remove TODO_dump_func.
3317 * tree-cfg.c: Remove TODO_dump_func.
3318 * tree-ssa-reassoc.c: Remove TODO_dump_func.
3319 * combine-stack-adj.c: Remove TODO_dump_func.
3320 * dce.c: Remove TODO_dump_func.
3321 * tree-ssanames.c: Remove TODO_dump_func.
3322 * regcprop.c: Remove TODO_dump_func.
3323
fa465762
L
33242011-06-14 H.J. Lu <hongjiu.lu@intel.com>
3325
3326 PR middle-end/47364
3327 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
3328 and properly handle result not in Pmode.
3329
7d8d16c3
RM
33302011-06-14 Robert Millan <rmh@gnu.org>
3331
3332 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
3333 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
3334 `config/linux.h'.
3335
3336 * config/i386/kfreebsd-gnu64.h: New file.
3337 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
3338 with `i386/kfreebsd-gnu64.h'.
3339
3340 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
3341 (GNU_USER_LINK_EMULATION64): New macros.
3342 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
3343 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
3344 of hardcoding `elf_i386' and `elf_x86_64'.
3345
0ccef3d2
NC
33462011-06-14 Nick Clifton <nickc@redhat.com>
3347
3348 PR target/49403
3349 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
3350
3351 PR target/49402
3352 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
3353
8a76c4a0
JJ
33542011-06-14 Jakub Jelinek <jakub@redhat.com>
3355
1ace6185
JJ
3356 PR fortran/49103
3357 * tree.h (DECL_NONSHAREABLE): Define.
3358 (struct tree_decl_common): Change decl_common_unused to
3359 decl_nonshareable_flag.
3360 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
3361 Ignore vars with DECL_NONSHAREABLE bit set.
3362 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
3363 on stores to automatic aggregate vars.
3364
8a76c4a0
JJ
3365 PR rtl-optimization/49390
3366 Revert:
3367 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
3368
3369 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
3370 MEM_ALIAS_SET.
3371
b4a9343c
ZD
33722011-06-14 Zdenek Dvorak <ook@ucw.cz>
3373 Tom de Vries <tom@codesourcery.com>
3374
3375 PR target/45098
3376 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
3377 Document changed semantics.
3378 (max_stmt_executions, max_stmt_executions_int): Declare.
3379 * tree-data-ref.c (estimated_loop_iterations)
3380 (estimated_loop_iterations_int): Move functions...
3381 * tree-ssa-loop-niter.c (estimated_loop_iterations)
3382 (estimated_loop_iterations_int): here.
3383 (record_estimate): Change nb_iterations_upper_bound and
3384 nb_iterations_estimate semantics.
3385 (max_stmt_executions, max_stmt_executions_int): New function.
3386 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
3387 (max_stmt_executions_tree): this.
3388 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
3389 estimated_loop_iterations_tree.
3390 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
3391 max_stmt_executions_int instead of estimated_loop_iterations_int.
3392 * predict.c (predict_loops): Idem.
3393 * tree-parloops.c (parallelize_loops): Idem.
3394 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
3395 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
3396 (init_omega_for_ddr_1): Idem.
3397 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
3398 (loop_prefetch_arrays): Idem
3399 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
3400 max_stmt_executions instead of estimated_loop_iterations.
3401 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
3402 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
3403 instead of nb_iterations_upper_bound.
3404
d2640c43
JH
34052011-06-13 Jan Hubicka <jh@suse.cz>
3406
3407 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
3408
40873cdd
RH
34092011-06-14 Richard Henderson <rth@redhat.com>
3410
3411 PR debug/48459
3412 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
3413 (based_loc_descr): Assert it's true.
3414 (compute_frame_pointer_to_fb_displacement): Set it, rather than
3415 aborting immediately.
3416
73e8cb24
SL
34172011-06-14 Sanjin Liu <scliu@faraday-tech.com>
3418 Mingfeng Wu <mingfeng@faraday-tech.com>
3419
3420 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
3421
f835f0a7
JH
34222011-06-13 Jan Hubicka <jh@suse.cz>
3423
3424 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
3425
ee6f1177
JH
34262011-06-13 Jan Hubicka <jh@suse.cz>
3427
3428 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
3429 similarly to DECL_COMDAT.
3430 * cgraphunit.c (cgraph_analyze_function): Likewise.
3431 * ipa.c (function_and_variable_visibility): Likewise.
3432
618abf9a
JH
34332011-06-13 Jan Hubicka <jh@suse.cz>
3434
3435 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
3436 BINFO_VIRTUALS when streaming for ltrans unit.
3437
a45fe02f
DE
34382011-06-13 David Edelsohn <dje.gcc@gmail.com>
3439
3440 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
3441 (movdi_internal64): Same.
3442
34432011-06-13 Edmar Wienskoski <edmar@freescale.com>
3444
e641e495 3445 PR target/44618
7d8d16c3
RM
3446 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
3447 a set of similar patterns, where the MATCH_OPERAND for the function
3448 argument is replaced with individual references to hardware registers.
a45fe02f
DE
3449 (save_fpregs_<mode>): Ditto
3450 (restore_gpregs_<mode>): Ditto
3451 (return_and_restore_gpregs_<mode>): Ditto
3452 (return_and_restore_fpregs_<mode>): Ditto
3453 (return_and_restore_fpregs_aix_<mode>): Ditto
3454
8775a18b
JH
34552011-06-13 Jan Hubicka <jh@suse.cz>
3456
3457 * ipa-utils.c (postorder_stack): New structure.
3458 (ipa_reverse_postorder): Handle aliases.
3459
34602011-06-13 Jan Hubicka <jh@suse.cz>
3461
3462 * ipa-inline.c (reset_edge_caches): Walk aliases.
3463 (update_caller_keys): Do not test inlinability of aliases.
3464 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3465 (do_estimate_growth): Fix typo.
3466
6c69a029
JH
34672011-06-13 Jan Hubicka <jh@suse.cz>
3468
3469 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3470 (can_remove_node_now_p): ... here; handle same comdat groups.
3471 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3472 (inline_call): Update use of can_remove_node_now_p.
3473
10c63ba4 34742011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 3475
10c63ba4 3476 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
3477 condition to disallow non-identical memory locations.
3478 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3479 preference to bit manipulation instructions.
495f8c14 3480
9aa3f5c5
JH
34812011-06-13 Jan Hubicka <jh@suse.cz>
3482
3483 * cgraph.c (cgraph_for_node_thunks_and_aliases,
3484 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3485 (nonremovable_p): New function.
3486 (cgraph_can_remove_if_no_direct_calls_p): New function.
3487 (used_from_object_file_p): New functoin.
10c63ba4
EB
3488 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3489 references from aliases.
9aa3f5c5
JH
3490 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3491 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
3492 (want_inline_function_called_once_p): Use it; accept aliases called
3493 once, too.
9aa3f5c5
JH
3494 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3495
30cecf17
RR
34962011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3497
3498 PR target/48454
3499 * config/arm/neon.md (vec_pack_trunc): Set the lengths
3500 correctly for the case with Quad vectors.
3501
29f85237
JJ
35022011-06-13 Jakub Jelinek <jakub@redhat.com>
3503 Ira Rosen <ira.rosen@linaro.org>
3504
3505 PR tree-optimization/49352
3506 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3507 all, make sure loop_use_stmt after the loop is a def stmt of a used
3508 SSA_NAME that is the only one defined inside of the loop. Don't
3509 check for COND_EXPR and GIMPLE_BINARY_RHS.
3510 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3511 check_reduction is true.
3512
c3e3f090
JH
35132011-06-11 Jan Hubicka <jh@suse.cz>
3514
3515 PR middle-end/49373
3516 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3517
516e0768
JH
35182011-06-11 Jan Hubicka <jh@suse.cz>
3519
3520 PR middle-end/48836
3521 * ipa-inline-transform.c: Include tree-pass.h
3522 (inline_transform): Set TODO_update_ssa_only_virtuals.
3523 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3524
903b0a8b
JH
35252011-06-11 Jan Hubicka <jh@suse.cz>
3526
3527 PR middle-end/49378
3528 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3529 aliases and thunks.
3530
44542f8e
IR
35312011-06-12 Ira Rosen <ira.rosen@linaro.org>
3532
3533 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3534 Take number of iterations to peel into account for equally frequent
3535 misalignment values.
3536
ea89702b
JH
35372011-06-11 Jan Hubicka <jh@suse.cz>
3538
637c11bd
UB
3539 * lto-streamer-out.c (produce_symtab): Stream out the newly
3540 represented aliases.
ea89702b 3541
380ed5ed
JH
35422011-06-11 Jan Hubicka <jh@suse.cz>
3543
637c11bd
UB
3544 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3545 varying args.
380ed5ed
JH
3546 (ipa_update_after_lto_read): Likewise.
3547 (ipa_write_node_info): Do not sream call_with_var_arguments.
3548 (ipa_read_node_info): Likewise.
3549
00cfc363
JH
35502011-06-11 Jan Hubicka <jh@suse.cz>
3551
3552 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3553
39e2db00
JH
35542011-06-11 Jan Hubicka <jh@suse.cz>
3555
3556 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3557 (lto_symtab_resolve_can_prevail_p): Likewise.
3558 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3559 * cgraph.c (same_body_aliases_done): New global var.
3560 (cgraph_same_body_alias_1): Rename to ...
3561 (cgraph_create_function_alias): ... this one; reorg to new
3562 representation.
3563 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3564 record references when asked to.
3565 (cgraph_add_thunk): Fix formating.
3566 (cgraph_get_node): Kill same body alias code.
3567 (cgraph_node_for_asm): Likewise.
3568 (cgraph_remove_same_body_alias): Remove.
3569 (cgraph_remove_node): Kill same body alias code.
3570 (cgraph_mark_address_taken_node): Mark also the aliased function
3571 as having address taken.
3572 (dump_cgraph_node): Dump same body aliases.
3573 (cgraph_for_node_thunks_and_aliases): Update for new alias
3574 representation.
3575 (cgraph_for_node_and_aliases): Likewise.
3576 * cgraph.h (same_body): Kll pointer.
3577 (same_body_alias): Update comment.
3578 (same_body_aliases_done): Declare.
3579 (cgraph_remove_same_body_alias): Remove declaration.
3580 (cgraph_create_function_alias): Declare.
3581 (cgraph_process_same_body_aliases): Declare.
3582 (cgraph_function_with_gimple_body_p): Check for alias.
3583 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3584 (cgraph_alias_aliased_node): New function.
3585 (cgraph_function_node): Update for new aliases.
3586 (cgraph_function_or_thunk_node): Likewise.
3587 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3588 (inline_call): Remove dead aliases.
10c63ba4
EB
3589 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3590 name hack for same body aliases.
39e2db00
JH
3591 (clone_of_p): Look through aliases.
3592 (verify_cgraph_node): Verify aliases.
3593 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3594 (cgraph_process_same_body_aliases): New function.
3595 (process_function_and_variable_attributes): Disable weakref warning on
3596 alias.
3597 (cgraph_analyze_functions): Handle aliases.
3598 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3599 (assemble_thunks): Rename to ...
3600 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3601 (cgraph_expand_function): Remove alias output code.
3602 (cgraph_output_in_order): Skip aliases.
3603 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3604 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3605 (ipa_record_reference): Do not assert on alias references.
3606 (ipa_ref_has_aliases_p): New function.
3607 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3608 (ipa_ref_has_aliases_p): Declare.
3609 * lto-cgraph.c (lto_output_node): Handle aliases.
3610 (input_node): Likewise.
3611 * lto-streamer-out.c (lto_output): Skip aliases.
3612 (produce_symtab): Kill same_body_alias code.
3613 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3614 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3615 * ipa-inline.c (update_caller_keys): Walk aliases.
3616 (inline_small_functions): Fix thinko in previous patch.
3617 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3618 (function_and_variable_visibility): Do not walk same body aliases.
3619 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3620 (ipa_pta_execute): Use it.
3621
9ee65b55
UB
36222011-06-11 Uros Bizjak <ubizjak@gmail.com>
3623
3624 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3625 (*vec_dupv2df): Rename from vec_dupv2df.
3626 (vec_dupv2df): New expander.
3627
36282011-06-11 Uros Bizjak <ubizjak@gmail.com>
3629
3630 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3631
36322011-06-11 Uros Bizjak <ubizjak@gmail.com>
3633
3634 * config/i386/i386.md: Use default value in "isa" attribute.
3635 * config/i386/sse.md: Ditto.
3636 * config/i386/mmx.md: Ditto.
3637
ba68a139
WG
36382011-06-10 Wei Guozhi <carrot@google.com>
3639
3640 PR target/45335
3641 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3642 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3643 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3644 related peephole2.
3645 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3646 related peephole2.
3647 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3648 (arm_legitimate_ldrd_p): New prototype.
3649 (arm_output_ldrd): New prototype.
3650 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3651 (arm_legitimate_ldrd_p): New function.
3652 (arm_output_ldrd): New function.
3653
deced1e2
XDL
36542011-06-10 David Li <davidxl@google.com>
3655
3656 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3657 * passes.c (passr_eq): New function.
3658 (create_pass_tab): New function.
3659 (pass_traverse): New function.
3660 (dump_one_pass): New function.
3661 (dump_pass_list): New function.
3662 (dump_passes): New function.
3663
71fb4f92
JH
36642011-06-10 Jan Hubicka <jh@suse.cz>
3665
3666 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3667 setting the nothrow flag.
3668 * ipa-reference.c (propagate): Skip aliases.
3669 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3670 (propagate_nothrow): Skip aliases; do not update cgraph.
3671 (local_pure_const): Do not update cgraph.
3672 * tree-profile.c (tree_profiling): Do fixup_cfg.
3673
41817394
JH
36742011-06-10 Jan Hubicka <jh@suse.cz>
3675
3676 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3677 (cgraph_local_node_p): ... here; handle aliases.
3678 (has_addr_references_p): Break out from ...;
3679 (cgraph_remove_unreachable_nodes) ... here.
3680
fb37c1de
JH
36812011-06-10 Jan Hubicka <jh@suse.cz>
3682
3683 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
3684 * common.opt (flag_inline_functions_called_once): Do not
3685 initialize to 1.
fb37c1de 3686
0818c24c
JH
36872011-06-10 Jan Hubicka <jh@suse.cz>
3688
3689 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
3690 (ipcp_initialize_node_lattices): Do not deal with aliases;
3691 Do not try to propagate through thunks.
0818c24c
JH
3692 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3693
c8246dbe
JH
36942011-06-10 Jan Hubicka <jh@suse.cz>
3695
9ee65b55
UB
3696 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3697 for indirect calls.
c8246dbe
JH
3698 (ipa_read_node_info): Likewise.
3699
d7e2a1c1
BS
37002011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3701
3702 PR lto/49302
3703 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3704 (build_and_insert_call): Likewise.
3705 (build_and_insert_ref): New.
3706 (gimple_expand_builtin_pow): Minor cleanup.
3707 (gimple_expand_builtin_cabs): New.
3708 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 3709
749f25d8
JH
37102011-06-10 Jan Hubicka <jh@suse.cz>
3711
3712 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3713 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3714 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3715 (ipcp_propagate_stage): Skip aliases when propagating.
3716 (ipcp_need_redirect_p): Skip aliases.
3717 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3718 collect_callers_of_node.
3719 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3720 for aliases.
3721 (ipa_compute_jump_functions): Look through aliases.
3722
8340fbd7
RO
37232011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3724
3725 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3726
9aaa7e47
HPN
37272011-06-10 Hans-Peter Nilsson <hp@axis.com>
3728
3729 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3730 Adjust comments.
3731 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3732
f1724940
JH
37332011-06-10 Jan Hubicka <jh@suse.cz>
3734
3735 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3736 Update call of gimple_get_virt_method_for_binfo.
3737 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3738 refuse_thunks parameter.
3739 (gimple_fold_call): Update.
3740 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3741
a6f834c5
JH
37422011-06-10 Jan Hubicka <jh@suse.cz>
3743
3744 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3745 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3746 worker for cgraph_for_node_and_aliases.
3747 (convert_callers_for_node): Break out from ...
3748 (convert_callers): ... here.
3749 (modify_function): Use collect_callers_of_node.
3750 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3751
7871eee3
RG
37522011-06-10 Richard Guenther <rguenther@suse.de>
3753
3754 PR tree-optimization/49361
3755 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3756 when not already in gimple form.
3757
dae957ae
RG
37582011-06-10 Richard Guenther <rguenther@suse.de>
3759
3760 PR bootstrap/49344
3761 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3762 FOR_EACH_PHI_OR_STMT_USE.
3763
a5b1779f
JH
37642011-06-10 Jan Hubicka <jh@suse.cz>
3765
3766 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3767 (clone_inlined_nodes): ... here.
3768 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3769 to real destination prior inlining.
3770 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3771 can_early_inline_edge_p, want_early_inline_function_p,
3772 want_early_inline_function_p, want_inline_small_function_p,
3773 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3774 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3775 add_new_edges_to_heap, inline_small_functions, flatten_function,
3776 inline_always_inline_functions, early_inline_small_functions): Use
3777 cgraph_function_or_thunk_node.
3778 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3779 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3780 (do_estimate_edge_growth_1): Break out from ...
3781 (do_estimate_growth) ... here; walk aliases.
3782 (inline_generate_summary): Skip aliases.
3783
c1ae3ca5
RG
37842011-06-10 Richard Guenther <rguenther@suse.de>
3785
9ee65b55
UB
3786 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3787 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 3788
b504a918
PC
37892011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3790
3791 * tree.h (error_operand_p): Add.
3792 * dbxout.c (dbxout_type_fields): Use the latter.
3793 * c-decl.c (add_stmt): Likewise.
3794 * gimplify.c (omp_add_variable, omp_notice_variable,
3795 gimplify_scan_omp_clauses): Likewise.
3796
3f5ea9dc 37972011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 3798
3f5ea9dc
GJL
3799 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3800 when a value is actually passed in regs.
3801
b11b0904 38022011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 3803 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
3804
3805 * doc/invoke.texi (SPARC options): Add -mflat.
3806 * config/sparc/sparc.opt: Likewise.
3807 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3808 (sparc_flat_expand_prologue): Declare.
3809 (sparc_flat_expand_epilogue): Likewise.
3810 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3811 (CPP_ENDIAN_SPEC): Replace with...
3812 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3813 (CPP_SPEC): Adjust to above change.
3814 (EXTRA_SPECS): Likewise.
3815 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3816 (INCOMING_REGNO): Likewise.
3817 (OUTGOING_REGNO): Likewise.
3818 (LOCAL_REGNO): Likewise.
3819 (SETUP_FRAME_ADDRESSES): Likewise.
3820 (FIXED_REGISTERS): Set 0 for %fp.
3821 (CALL_USED_REGISTERS): Likewise.
3822 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3823 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3824 (RETURN_ADDR_REGNUM): Define.
3825 (RETURN_ADDR_RTX): Use it.
3826 (INCOMING_RETURN_ADDR_REGNUM): Define.
3827 (INCOMING_RETURN_ADDR_RTX): Use it.
3828 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3829 (EH_RETURN_REGNUM): Define.
3830 (EH_RETURN_STACKADJ_RTX): Use it.
3831 (EH_RETURN_HANDLER_RTX): Delete.
3832 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3833 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3834 Delete.
3835 (struct machine_function): Add frame_size, apparent_frame_size,
3836 frame_base_reg, frame_base_offset, n_global_fp_regs and
3837 save_local_in_regs_p fields.
3838 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3839 sparc_frame_base_offset, sparc_n_global_fp_regs,
3840 sparc_save_local_in_regs_p): New macros.
3841 (sparc_option_override): Error out if -fcall-saved-REG is specified
3842 for Out registers.
3843 (eligible_for_restore_insn): Fix formatting.
3844 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3845 (eligible_for_sibcall_delay): Likewise.
3846 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3847 (sparc_legitimate_address_p): Adjust to above change.
3848 (save_global_or_fp_reg_p): New predicate.
3849 (return_addr_reg_needed_p): Likewise.
3850 (save_local_or_in_reg_p): Likewise.
3851 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3852 (SORR_SAVE, SORR_RESTORE): Delete.
3853 (sorr_pred_t): New typedef.
3854 (sorr_act_t): New enum.
3855 (save_or_restore_regs): Rename to...
3856 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3857 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3858 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3859 mechanism. Add CFI information for double-word saves in 32-bit mode.
3860 (emit_adjust_base_to_offset): New function extracted from...
3861 (emit_save_or_restore_regs): ...this. Rename the rest to...
3862 (emit_save_or_restore_regs_global_fp_regs): ...this.
3863 (emit_save_or_restore_regs_local_in_regs): New function.
3864 (gen_create_flat_frame_[123]): New functions.
3865 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3866 (sparc_flat_expand_prologue): New function.
3867 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3868 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3869 (sparc_flat_expand_epilogue): New function.
3870 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3871 (output_return): Likewise.
3872 (output_sibcall): Likewise.
3873 (sparc_output_mi_thunk): Likewise.
3874 (sparc_frame_pointer_required): Likewise.
3875 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3876 function optimization.
3877 * config/sparc/sparc.md (flat): New attribute.
3878 (prologue): Add TARGET_FLAT handling.
3879 (save_register_window): Disable if TARGET_FLAT.
3880 (create_flat_frame_[123]): New patterns.
3881 (epilogue): Add TARGET_FLAT handling.
3882 (sibcall_epilogue): Likewise.
3883 (eh_return): New expander.
3884 (eh_return_internal): New insn and splitter.
3885 (return_internal): Add TARGET_FLAT handling.
3886 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3887 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3888 (nonlocal_goto): Add TARGET_FLAT handling.
3889 * config/sparc/t-elf: Add -mflat multilib.
3890 * config/sparc/t-leon: Likewise.
3891
fede8efa
JH
38922011-06-10 Jan Hubicka <jh@suse.cz>
3893
3894 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3895 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3896 (self_recursive_p): Use cgraph_function_node.
3897 (propagate_pure_const): Likewise.
3898 (propagate_nothrow): Likewise.
3899 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3900 cgraph_function_node.
3901 (propagate_bits): Likewise.
3902 (propagate): Likewise.
3903
0127c76f
RR
39042011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3905 Richard Earnshaw <rearnsha@arm.com>
3906
9ee65b55 3907 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
3908 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3909 (*thumb2_movdi_vfp): Delete.
3910 (*arm_movdi_vfp_cortexa8): Delete.
3911 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3912 (*movdi_vfp_cortexa8): Likewise.
3913
f93fe5a0
RG
39142011-06-10 Richard Guenther <rguenther@suse.de>
3915
3916 * stor-layout.c (initialize_sizetypes): Give names to all
3917 sizetype kinds.
3918
f2164f87
IR
39192011-06-10 Ira Rosen <ira.rosen@linaro.org>
3920
3921 PR tree-optimization/49318
3922 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3923 irrelevant pattern statements.
3924
3f91c962
HPN
39252011-06-10 Hans-Peter Nilsson <hp@axis.com>
3926
3d223145
HPN
3927 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3928
3f91c962
HPN
3929 PR bootstrap/49354
3930 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3931 to last assignment.
3932
b125ad45
JH
39332011-06-09 Jan Hubicka <jh@suse.cz>
3934
3935 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3936 do not recompute reachable flag.
3937 (cgraph_finalize_function, cgraph_analyze_functions): Set
3938 redefined_extern_inline here.
3939
be330ed4
JH
39402011-06-09 Jan Hubicka <jh@suse.cz>
3941
3942 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3943 (cgraph_only_called_directly_p): ... this one; bring offline.
3944 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3945 varpool_used_from_object_file_p): Drop names from the declaratoin.
3946 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3947 collect_callers_of_node): New.
3948 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3949 (cgraph_edge_recursive_p): Use cgraph_function_node.
3950 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3951 (cgraph_node_cannot_be_local_p_1): Break out from ...
3952 (cgraph_node_can_be_local_p): ... here; walk aliases.
3953 (cgraph_for_node_thunks_and_aliases): New function.
3954 (cgraph_for_node_and_aliases): New function.
3955 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
3956 (cgraph_make_node_local) ... here; use
3957 cgraph_for_node_thunks_and_aliases.
be330ed4 3958 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
3959 (cgraph_set_nothrow_flag) ... here;
3960 use cgraph_for_node_thunks_and_aliases.
be330ed4 3961 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
3962 (cgraph_set_const_flag) ... here;
3963 use cgraph_for_node_thunks_and_aliases.
be330ed4 3964 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
3965 (cgraph_set_pure_flag) ... here;
3966 use cgraph_for_node_thunks_and_aliases.
be330ed4 3967 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
3968 (cgraph_propagate_frequency) ... here; use
3969 cgraph_for_node_thunks_and_aliases.
be330ed4 3970 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
3971 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3972 New functions.
be330ed4
JH
3973 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3974
2ea91d6b
HPN
39752011-06-10 Hans-Peter Nilsson <hp@axis.com>
3976
3977 PR rtl-optimization/49154
3978 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3979 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3980 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3981 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3982 * config/cris/cris.h (cris_register_move_cost): Remove
3983 !TARGET_V32 code. Tweak comments.
3984
9cf4fb5a
JH
39852011-06-09 Jan Hubicka <jh@suse.cz>
3986
3987 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3988 address taken.
3989
6049a4c8
HPN
39902011-06-10 Hans-Peter Nilsson <hp@axis.com>
3991
c577822e 3992 PR rtl-optimization/49154
9ee65b55
UB
3993 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3994 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 3995
54e1e4f7 3996 PR rtl-optimization/49154
6049a4c8
HPN
3997 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3998 register classes.
3999 * doc/tm.texi: Regenerate.
4000
3be68b64
KK
40012011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
4002
4003 PR target/49307
4004 * config/sh/sh.md (UNSPEC_CHKADD): New.
4005 (chk_guard_add): New define_insn_and_split.
4006 (symGOT_load): Use chk_guard_add instead of blockage.
4007
bf806a90
KT
40082011-06-09 Kai Tietz <ktietz@redhat.com>
4009
4010 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
4011
d5a9738b
EB
40122011-06-09 Eric Botcazou <ebotcazou@adacore.com>
4013
4014 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
4015
527e82c2
WG
40162011-06-09 Wei Guozhi <carrot@google.com>
4017
4018 PR target/46975
4019 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
4020 (peephole2 for conditional move): Generate 16 bit instructions.
4021
b8bc3a43
UB
40222011-06-09 Uros Bizjak <ubizjak@gmail.com>
4023
4024 * config/i386/i386.md (*movdi_internal_rex64): Merge
4025 alternatives 6 and 8.
4026
4745da6e
DL
40272011-06-09 David Li <davidxl@google.com>
4028
4029 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4030 * passes.c (passr_eq): New function.
4031 (create_pass_tab): New function.
4032 (pass_traverse): New function.
4033 (dump_one_pass): New function.
4034 (dump_pass_list): New function.
4035 (dump_passes): New function.
4036
bdf67bcb
DL
40372011-06-09 David Li <davidxl@google.com>
4038
4039 * tree-complex.c (tree_lower_complex): Gate cleanup.
4040 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
4041 (execute_optimize_stdarg): Ditto.
4042 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
4043 (execute_cleanup_eh_1): Ditto.
4044 (execute_cleanup_eh): Ditto.
4045 * gcse.c (gate_rtl_pre): Ditto.
4046 (execute_rtl_pre): Ditto.
4047 * except.c (finish_eh_generation): Ditto.
4048 (convert_to_eh_region_ranges): Ditto.
4049 * cprop.c (one_cprop_pass): Ditto.
4050
547fdef8
BS
40512011-06-09 Bernd Schmidt <bernds@codesourcery.com>
4052
4053 PR target/48673
4054 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
4055 in all basic blocks.
4056
10e48e39
RO
40572011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4058
4059 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
4060 (HAVE_ENABLE_EXECUTE_STACK): Define.
4061 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
4062 (HAVE_ENABLE_EXECUTE_STACK): Define.
4063 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
4064 (HAVE_ENABLE_EXECUTE_STACK): Define.
4065 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
4066 (ENABLE_EXECUTE_STACK): Remove.
4067 (HAVE_ENABLE_EXECUTE_STACK): Define.
4068 [IN_LIBGCC2]: Don't include <windows.h>.
4069 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
4070 (HAVE_ENABLE_EXECUTE_STACK): Define.
4071 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
4072 (HAVE_ENABLE_EXECUTE_STACK): Define.
4073 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
4074 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
4075 (HAVE_ENABLE_EXECUTE_STACK): Define.
4076 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
4077 (HAVE_ENABLE_EXECUTE_STACK): Define.
4078 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
4079 (HAVE_ENABLE_EXECUTE_STACK): Define.
4080 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
4081 (HAVE_ENABLE_EXECUTE_STACK): Define.
4082 * config/alpha/alpha.c (alpha_trampoline_init): Test
4083 HAVE_ENABLE_EXECUTE_STACK.
4084 * config/i386/i386.c (ix86_trampoline_init): Likewise.
4085 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4086 (sparc64_initialize_trampoline): Likewise.
4087 * libgcc2.c [L_enable_execute_stack]: Remove.
4088 * system.h (ENABLE_EXECUTE_STACK): Poison.
4089 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
4090 * doc/tm.texi: Regenerate.
4091 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
4092
8ced31fe
JJ
40932011-06-09 Jakub Jelinek <jakub@redhat.com>
4094
4095 PR middle-end/49308
4096 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
4097 variable. After resetting and rescanning insn continue with previous
4098 statement.
4099
ee610fcd
RO
41002011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4101
4102 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
4103 (gcc_cv_ld_hidden): Likewise.
4104 * configure: Regenerate.
4105 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
4106 (ix86_stack_protect_fail): Mark unused.
4107 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
4108 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
4109 [TARGET_MACHO]: Don't define.
4110 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
4111 (TARGET_STACK_PROTECT_FAIL): Likewise.
4112 (rs6000_stack_protect_fail): Mark unused.
4113 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 4114 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 4115
8f2e22ff
AK
41162011-06-08 Andi Kleen <ak@linux.intel.com>
4117
4118 * varasm.c (get_section): Print location of other conflict
4119 for section conflicts.
4120
815cecbe
AK
41212011-06-08 Andi Kleen <ak@linux.intel.com>
4122
4123 * config/i386/driver-i386.c (host_detect_local_cpu):
4124 Add model 0x2d Intel CPU.
4125
1460ec5c
AK
41262011-06-08 Andi Kleen <ak@linux.intel.com>
4127
4128 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
4129 (globalize_reg): Add decl parameter. Compute location. Pass location
4130 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
4131 * rtl.h (globalize_reg): Update prototype.
4132 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
4133
df17530a
MX
41342011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
4135
4136 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
4137
409fed48
KK
41382011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
4139
4140 PR target/49305
4141 * config/sh/predicates.md (general_movsrc_operand): Check
4142 mode for memory with indexed address for QI and HImode.
4143 (general_movdst_operand): Likewise.
4144
87c16a45
NP
41452011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
4146
b8bc3a43 4147 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 4148
49931fcb
AO
41492011-06-08 Alexandre Oliva <aoliva@redhat.com>
4150
4151 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
4152 (num_ssa_operands): Likewise.
4153 (op_iter_init_phiuse): Forward-declare.
4154 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
4155
29494d1f
NC
41562011-06-08 Nick Clifton <nickc@redhat.com>
4157
4158 * doc/invoke.texi (ARM Options): Update description of
4159 -mthumb-interwork.
4160
4ffae7ff
L
41612011-06-08 H.J. Lu <hongjiu.lu@intel.com>
4162
4163 * config/i386/driver-i386.c (host_detect_local_cpu): Support
4164 unknown Intel family 0x6 CPUs.
4165
d9c77712
MJ
41662011-06-08 Martin Jambor <mjambor@suse.cz>
4167
4168 * tree-sra.c (mark_rw_status): Removed.
4169 (analyze_access_subtree): New parameter parent instead of
4170 mark_read and mark_write, propagate from that.
4171
b1def36c
JB
41722011-06-08 Julian Brown <julian@codesourcery.com>
4173
4174 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
4175 for double-precision helper functions in hard-float mode if only
4176 single-precision arithmetic is supported in hardware.
4177
6c8e9fc9
AM
41782011-06-08 Alexander Monakov <amonakov@ispras.ru>
4179
4180 PR rtl-optimization/49303
4181 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
4182 code_motion_path_driver returned 0 or 1.
4183 (sel_region_finish): Clear h_d_i_d.
4184
c2bbcb0d
KK
41852011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
4186
4187 * config/sh/sh.c (prepare_move_operands): Set pic register
4188 appropriately for global and local dynamic tls models even
4189 if flag_pic is unset.
4190
6976ae51
JM
41912011-06-07 Jason Merrill <jason@redhat.com>
4192
4193 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
4194
bb5b1f5e
XDL
41952011-06-07 Xinliang David Li <davidxl@google.com>
4196 * passes.c (enable_disable_pass): Handle assembler name.
4197 (is_pass_explicitly_enabled_or_disabled): Ditto.
4198
91ffe356
RO
41992011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4200
4201 PR tree-optimization/48497
4202 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
4203
06bc3ec7
BS
42042011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4205
4206 PR tree-optimization/46728
4207 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
4208 to use gimple_val_nonnegative_real_p.
4209 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
4210 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 4211
c074d740
L
42122011-06-07 H.J. Lu <hongjiu.lu@intel.com>
4213
4214 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
4215
8973b112
SG
42162011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
4217
4218 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
4219 constant vectors.
4220
67b88453
RG
42212011-06-07 Richard Guenther <rguenther@suse.de>
4222
4223 * stor-layout.c (initialize_sizetypes): Initialize all
4224 sizetypes based on target definitions.
4225 (set_sizetype): Remove.
4226 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
4227 * tree.h (set_sizetype): Remove.
4228
1dcad079
NC
42292011-06-07 Nick Clifton <nickc@redhat.com>
4230
4231 * config.gcc: Unify V850 architecture options and add support for
4232 newer V850 architectures.
4233 * config/v850/t-v850e: Delete.
4234
009db074
RG
42352011-06-07 Richard Guenther <rguenther@suse.de>
4236
4237 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
4238 Call set_sizetype from here.
4239
f373314f
AS
42402011-06-07 Andrew Stubbs <ams@codesourcery.com>
4241
4242 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
4243 (*maddhisi4tb, *maddhisi4tt): New define_insns.
4244
c536876e
AS
42452011-06-07 Bernd Schmidt <bernds@codesourcery.com>
4246 Andrew Stubbs <ams@codesourcery.com>
4247
4248 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
4249 multiplies.
4250 * doc/md.texi (Canonicalization of Instructions): Document widening
4251 multiply canonicalization.
4252
308dc890
JJ
42532011-06-07 Jakub Jelinek <jakub@redhat.com>
4254
4255 PR gcov-profile/49299
b8bc3a43 4256 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 4257
383d9c83
IR
42582011-06-07 Ira Rosen <ira.rosen@linaro.org>
4259
4260 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
4261 a pointer.
4262 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
4263 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
4264 vect_recog_pow_pattern): Likewise.
4265 (vect_pattern_recog_1): Remove declaration.
4266 (widened_name_p): Remove declaration. Add new argument to specify
4267 whether to check that both types are either signed or unsigned.
4268 (vect_recog_widen_mult_pattern): Update documentation. Handle
4269 unsigned patterns and multiplication by constants.
4270 (vect_pattern_recog_1): Update vect_recog_func references. Use
4271 statement information from the statement returned from pattern
4272 detection functions.
4273 (vect_pattern_recog): Update vect_recog_func reference.
4274 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
4275 multiplication by a constant use the type of the other operand.
4276
4de4b0f2
RS
42772011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
4278
4279 PR rtl-optimization/49145
4280 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
4281
a9d24544
JJ
42822011-06-06 Jakub Jelinek <jakub@redhat.com>
4283
99a5e049
JJ
4284 PR debug/49262
4285 * dwarf2out.c (native_encode_initializer): Decrement count in each
4286 iteration.
4287
04902d4c
JJ
4288 PR debug/49294
4289 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
4290 non-MODE_INT modes.
4291
a9d24544
JJ
4292 PR c++/49264
4293 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
4294 if stmt folded into nothing.
b8bc3a43
UB
4295 * tree-inline.c (fold_marked_statements): If a builtin at the end of
4296 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
4297 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
4298 to be NULL. Don't compute count and frequency if new_call is NULL.
4299
47c79d56
DN
43002011-06-04 Diego Novillo <dnovillo@google.com>
4301
4302 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
4303 (cgraph.o): Likewise.
4304 (cgraphunit.o): Likewise.
4305 * cgraphunit.c: Include lto-streamer.h
4306 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
4307 if LTO is enabled.
4308 * lto-streamer-in.c (unpack_value_fields): Call
4309 streamer_hooks.unpack_value_fields if set.
4310 (lto_materialize_tree): For unhandled nodes, first try to
4311 call lto_streamer_hooks.alloc_tree, if it exists.
4312 (lto_input_ts_decl_common_tree_pointers): Move reading of
4313 DECL_INITIAL to lto_streamer_read_tree.
4314 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
4315 (lto_streamer_read_tree): New.
4316 (lto_reader_init): Rename from lto_init_reader.
4317 Move initialization code to lto/lto.c.
4318 * lto-streamer-out.c (pack_value_fields): Call
4319 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
4320 (lto_output_tree_ref): For tree nodes that are not normally indexable,
4321 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 4322 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
4323 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
4324 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
4325 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
4326 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
4327 (lto_streamer_write_tree): New.
4328 (lto_output): Call lto_streamer_init directly.
4329 (lto_writer_init): Remove.
4330 * lto-streamer.c (streamer_hooks): New.
4331 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
4332 instead of lto_preload_common_nodes.
4333 (lto_is_streamable): Move from lto-streamer.h
4334 (lto_streamer_hooks_init): New.
4335 (streamer_hooks): New.
4336 (streamer_hooks_init): New.
4337 * lto-streamer.h (struct output_block): Forward declare.
4338 (struct lto_input_block): Likewise.
4339 (struct data_in): Likewise.
4340 (struct bitpack_d): Likewise.
4341 (struct streamer_hooks): Declare.
4342 (streamer_hooks): Declare.
4343 (lto_streamer_hooks_init): Declare.
4344 (lto_streamer_write_tree): Declare.
4345 (lto_streamer_read_tree): Declare.
4346 (streamer_hooks_init): Declare.
4347 (lto_is_streamable): Move to lto-streamer.c
4348
22afe143
AK
43492011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4350
4351 * longlong.h (smul_ppmm): The resulting register pair contains the
4352 higher order word first.
4353
3906ea1b
BS
43542011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4355
4356 PR tree-optimization/46728
4357 * builtins.c (powi_table): Remove.
4358 (powi_lookup_cost): Remove.
4359 (powi_cost): Remove.
4360 (expand_powi_1): Remove.
4361 (expand_powi): Remove.
4362 (expand_builtin_pow_root): Remove.
4363 (expand_builtin_pow): Remove.
4364 (expand_builtin_powi): Eliminate handling of constant exponent.
4365 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 4366
3598cabd
AO
43672011-06-06 Alexandre Oliva <aoliva@redhat.com>
4368
4369 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
4370
a7a110bb
AO
43712011-06-06 Alexandre Oliva <aoliva@redhat.com>
4372
4373 * dce.c (reset_unmarked_insns_debug_uses): New.
4374 (delete_unmarked_insns): Skip debug insns.
4375 (prescan_insns_for_dce): Likewise.
4376 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
4377 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
4378 active reg can be found.
4379 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
4380 (convert_regs_1): Use it.
4381
6d8402ac
AO
43822011-06-06 Alexandre Oliva <aoliva@redhat.com>
4383
4384 * tree-pretty-print.c (dump_function_header): Add flags.
4385 Don't dump decl_uid with nouid.
4386 * tree-pretty-print.h (dump_function_header): Adjust.
4387 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
4388 * passes.c (pass_init_dump_file): Pass dump_flags on.
4389 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
4390
f75e1f1e
AO
43912011-06-06 Alexandre Oliva <aoliva@redhat.com>
4392
4393 PR bootstrap/49270
4394 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
4395
275311c4
MP
43962011-06-06 Mikael Pettersson <mikpe@it.uu.se>
4397
4398 PR tree-optimization/49243
4399 * calls.c (setjmp_call_p): Also check if fndecl has the
4400 returns_twice attribute.
4401
aa4203e7
RO
44022011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4403
4404 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
4405 -ffast-math etc.
4406
48f9d59a
RH
44072011-06-06 Richard Henderson <rth@redhat.com>
4408 Georg-Johann Lay <avr@gjlay.de>
4409
4410 PR target/42210
4411 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
4412 New predicates.
4413 * config/avr/avr.md ("insv"): New insn expander.
4414 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
4415 "*insv.not.io", "*insv.reg"): New insns.
4416
11494830
HPN
44172011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
4418
4419 PR target/49285
b8bc3a43
UB
4420 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
4421 to nonimmediate_operand from memory_operand for the operand that is to
4422 be forced to memory by the expander. Lose the constraints.
11494830 4423
679e70df
EB
44242011-06-05 Eric Botcazou <ebotcazou@adacore.com>
4425
4426 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
4427 EH return when delayed branches are disabled.
4428
4d3d7f15
UB
44292011-06-05 Uros Bizjak <ubizjak@gmail.com>
4430
4431 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
4432 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
4433 calculation.
4434 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
4435 Simplify MODE_V1DF and MODE_V2SF handling.
4436 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
4437 Simplify MODE_SF handling.
4438
a45c0557
JH
44392011-06-04 Jan Hubicka <jh@suse.cz>
4440
4441 PR tree-optimization/48893
4442 PR tree-optimization/49091
4443 PR tree-optimization/49179
4444 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
4445 Bounds check.
4446
26740835
JH
44472011-06-04 Jan Hubicka <jh@suse.cz>
4448
4449 PR lto/48954
b8bc3a43
UB
4450 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4451 bitmaps.
26740835 4452
014ab419
JW
44532011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4454
4455 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4456
407bcba7
JJ
44572011-06-04 Jakub Jelinek <jakub@redhat.com>
4458
4459 PR target/49281
4460 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4461 to be strictly smaller than 1 << shiftcount.
4462
e3195c52
JH
44632011-06-04 Jan Hubicka <jh@suse.cz>
4464
4465 PR tree-optimize/48929
4466 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4467 of empty predicate.
4468
047d33a0
AO
44692011-06-04 Alexandre Oliva <aoliva@redhat.com>
4470
4471 PR debug/48333
4472 * calls.c (emit_call_1): Prefer the __builtin declaration of
4473 builtin functions.
4474
dc587809
DN
44752011-06-03 Diego Novillo <dnovillo@google.com>
4476
4477 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4478 (lto_input_tree_pointers): Likewise.
4479 * lto-streamer-out.c (pack_value_fields): Likewise.
4480 (lto_output_tree_pointers): Likewise.
4481 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4482 and OPTIMIZATION_NODE.
4483
58cd1d70
RO
44842011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4485
4486 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4487 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4488 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4489 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4490 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4491 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4492 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4493 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4494 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4495 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4496 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4497 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4498 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4499 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4500 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4501 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4502 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4503 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4504 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4505 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4506 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4507 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4508 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4509 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4510 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4511 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4512 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4513 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4514 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4515 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4516 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4517 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4518 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4519 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4520 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4521 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4522 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4523 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4524 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4525 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4526 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4527 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4528 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4529 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4530 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4531 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4532 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4533 * system.h (MD_UNWIND_SUPPORT): Poison.
4534 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4535 * doc/tm.texi: Regenerate.
4536 * unwind-dw2.c: Include md-unwind-support.h instead of
4537 MD_UNWIND_SUPPORT.
4538 * config/ia64/unwind-ia64.c: Likewise.
4539 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4540
10c63ba4 45412011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
4542
4543 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4544
1b7a0148
RH
45452011-06-03 Richard Henderson <rth@redhat.com>
4546 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4547
4548 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4549 (sigill_hdlr): Correct insn, insn size.
4550 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4551
737346fa
RO
45522011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4553
4554 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4555 t-slibgcc-dummy.
4556 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4557 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4558 * config/mips/t-iris: Remove.
4559 * config/mips/t-irix6: New file.
4560 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4561
c192cee6
RO
45622011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4563
4564 * Makefile.in (LIB2ADDEHDEP): Remove.
4565 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4566 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4567 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4568 * config/t-darwin (LIB2ADDEHDEP): Remove.
4569 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4570 * config/t-linux (LIB2ADDEHDEP): Remove.
4571
d5828cc7
DN
45722011-06-03 Diego Novillo <dnovillo@google.com>
4573
4574 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4575 (lto_register_var_decl_in_symtab): Likewise.
4576 (lto_register_function_decl_in_symtab): Likewise.
4577 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 4578 logic to uniquify_nodes.
d5828cc7 4579
ee33b5f0
RO
45802011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4581
4582 * config/alpha/t-osf5: Remove.
4583 * config/alpha/t-osf-pthread: Remove.
4584 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4585 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4586
16868d84
JB
45872011-06-03 Julian Brown <julian@codesourcery.com>
4588
4589 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4590 (strongarm1110): Use strongarm tuning.
4d3d7f15 4591 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
4592 * config/arm/arm.c (arm_strongarm_tune): New.
4593 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4594 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4595 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4596 setting, using previous defaults or 1 for Cortex-A5.
4597 (arm_option_override): Set max_insns_skipped from current tuning.
4598
1cec1285
NS
45992011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4600
4601 * doc/install.texi (Options specification): Document --with-specs.
4602
eed55426
RR
46032011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4604
4605 * config/arm/neon.md (orndi3_neon): Actually split it.
4606
d5b6cc25
AO
46072011-06-02 Alexandre Oliva <aoliva@redhat.com>
4608
4609 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4610 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4611
2ba42841
AO
46122011-06-02 Alexandre Oliva <aoliva@redhat.com>
4613
4614 PR debug/47590
4615 * target.def (delay_sched2, delay_vartrack): New.
4616 * doc/tm.texi.in: Update.
4617 * doc/tm.texi: Rebuild.
4618 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4619 * var-tracking.c (gate_handle_var_tracking): Likewise.
4620 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4621 (bfin_flag_var_tracking): Drop.
4622 (output_file_start): Don't save and override flag_var_tracking.
4623 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4624 (bfin_reorg): Test original variables.
4625 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4626 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4627 (ia64_flag_var_tracking): Drop.
4628 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4629 (ia64_file_start): Don't save and override flag_var_tracking.
4630 (ia64_override_options_after_change): Ditto
4631 flag_schedule_insns_after_reload.
4632 (ia64_reorg): Test original variables.
4633 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4634 (picochip_flag_var_tracking): Drop.
4635 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4636 (picochip_option_override): Don't save and override
4637 flag_schedule_insns_after_reload.
4638 (picochip_asm_file_start): Ditto flag_var_tracking.
4639 (picochip_reorg): Test original variables.
4640 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4641 (TARGET_DELAY_VARTRACK): Define.
4642 (spu_var_tracking): New.
4643 (spu_machine_dependent_reorg): Call it.
4644 (asm_file_start): Don't save and override flag_var_tracking.
4645
a700b5f0
KK
46462011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4647
4648 PR target/49163
4649 * config/sh/predicates.md (general_movsrc_operand): Return 0
4650 for memory and memory subreg of which address is an invalid
4651 indexed address for QI and HImode.
4652 (general_movdst_operand): Likewise.
4653
76015c34
EB
46542011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4655
4656 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4657 edges only, when there is a non-local label in the function.
4658 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4659
4e76acd2
UB
46602011-06-02 Uros Bizjak <ubizjak@gmail.com>
4661
4662 * config/i386/constraints.md (Y3): New register constraint.
4663 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4664 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4665 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4666 *sse2_interleave_lowv2df.
4667
288f605f
JB
46682011-06-02 Julian Brown <julian@codesourcery.com>
4669
4670 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4671 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4672 (arm_cortex_a5_tune): New.
4673
7ec70105
JB
46742011-06-02 Julian Brown <julian@codesourcery.com>
4675
153668ec
JB
4676 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4677 * config/arm/arm.c (arm_default_branch_cost): New.
4678 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4679 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4680 (arm_fa726_tune): Set branch_cost field using
4681 arm_default_branch_cost.
4682 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4683 current_tune structure.
4684 * dojump.c (tm_p.h): Include file.
4685
46862011-06-02 Julian Brown <julian@codesourcery.com>
4687
4688 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4689 tuning.
7ec70105
JB
4690 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4691 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4692 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4693 field.
4694 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4695 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4696 (arm_fa726te_tune): Add prefer_constant_pool setting.
4697 (arm_v6t2_tune, arm_cortex_tune): New.
4698 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4699 prefer_constant_pool setting.
4700
aad61732
UB
47012011-06-02 Uros Bizjak <ubizjak@gmail.com>
4702
4e76acd2
UB
4703 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4704 switch statement.
aad61732
UB
4705 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4706 (*movdf_internal) <case 6,7,8>: Ditto.
4707
4e76acd2 4708 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
4709 * config/i386/sse.md (vec_set<mode>_0): Merge with
4710 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4711 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4712 *vec_extractv2di_1_sse.
4713 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4714 and *vec_concatv2di_rex64_sse.
4715
6e588138
SH
47162011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4717
4718 PR target/48807
4719 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4720 of cgraph_local_info for null before attempting to use it.
4721
bc6d3f91
EB
47222011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4723
4724 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4725 (current_function_dynamic_alloc_count): Delete.
4726 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4727 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4728 (expand_builtin_update_setjmp_buf): Remove dead code.
4729 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4730 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4731 support.
4732 * function.c (instantiate_virtual_regs): Likewise.
4733 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4734 for a block with a single abnormal incoming edge.
4735 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 4736 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
4737 * config/sparc/sparc-protos.h (load_got_register): Declare.
4738 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4739 (load_got_register): Make global.
4740 (sparc_frame_pointer_required): Add 'static'.
4741 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4742 (sparc_builtin_setjmp_frame_value): New function.
4743 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4744 (save_stack_nonlocal): New expander.
4745 (restore_stack_nonlocal): Likewise.
4746 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4747 (nonlocal_goto_internal): New insn.
4748 (goto_handler_and_restore): Delete.
4749 (builtin_setjmp_setup): Likewise.
4750 (do_builtin_setjmp_setup): Likewise.
4751 (setjmp): Likewise.
4752 (builtin_setjmp_receiver): New expander.
4753
69282fee
DL
47542011-06-01 David Li <davidxl@google.com>
4755
4756 PR middle-end/49261
4757 * tree-pretty-print.c (dump_function_header): Format cleanup.
4758
e95873dd
KK
47592011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4760
4761 PR target/49238
4762 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4763 needed when original operands are used for msw_skip comparison.
4764
88c15821
JJ
47652011-06-01 Jakub Jelinek <jakub@redhat.com>
4766
4767 PR debug/49250
4768 * var-tracking.c (add_uses, add_stores): Don't call
4769 cselib_subst_to_values on ENTRY_VALUE.
4770
07233947
DN
47712011-06-01 Diego Novillo <dnovillo@google.com>
4772
4773 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4774 output_record_start with LTO_null instead of output_zero.
4775 (lto_output_ts_binfo_tree_pointers): Likewise.
4776 (lto_output_tree): Likewise.
4777 (output_eh_try_list): Likewise.
4778 (output_eh_region): Likewise.
4779 (output_eh_lp): Likewise.
4780 (output_eh_regions): Likewise.
4781 (output_bb): Likewise.
4782 (output_function): Likewise.
4783 (output_unreferenced_globals): Likewise.
4784 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4785 instead of NUM_TREE_CODES.
4786 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4787 (lto_output_int_in_range): Change << to >> when shifting VAL.
4788
4ee3537a
DN
47892011-06-01 Diego Novillo <dnovillo@google.com>
4790
4791 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4792 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4793
02972eaf
RS
47942011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4795
4796 PR target/45074
4797 * optabs.h (valid_multiword_target_p): Declare.
4798 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4799 doing multi-word operations.
4800 * optabs.c (expand_binop): Likewise.
4801 (expand_doubleword_bswap): Likewise.
4802 (expand_absneg_bit): Likewise.
4803 (expand_unop): Likewise.
4804 (expand_copysign_bit): Likewise.
4805 (multiword_target_p): New function.
4806
4d41c2d1
RS
48072011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4808
4809 PR rtl-optimization/48830
4810 PR rtl-optimization/48808
4811 PR rtl-optimization/48792
4812 * reload.c (push_reload): Check contains_reg_of_mode.
4813 * reload1.c (strip_paradoxical_subreg): New function.
4814 (gen_reload_chain_without_interm_reg_p): Use it to handle
4815 paradoxical subregs.
4816 (emit_output_reload_insns, gen_reload): Likewise.
4817
5f57dccb
DL
48182011-06-01 David Li <davidxl@google.com>
4819
4820 * predict.c : Change pass name
4821 * ipa.c: Ditto.
4822 * dce.c: Ditto.
4823 * tree-profile.c: Ditto.
4824 * except.c: Ditto.
4825
ea6cf778
DL
48262011-06-01 David Li <davidxl@google.com>
4827
4828 * tree-pretty-print.c (dump_function_header): New function.
4829 * final.c (rest_of_clean_state): Use header dumper.
4830 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4831 * passes.c (pass_init_dump_file): Use header dumper.
4832
ebdc0d4b
JJ
48332011-06-01 Jakub Jelinek <jakub@redhat.com>
4834
eeeb9b49
JJ
4835 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4836 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4837 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4838 New functions.
4839 (mem_loc_descriptor): Use them.
4840
ebdc0d4b
JJ
4841 * var-tracking.c (create_entry_value): New function.
4842 (vt_add_function_parameter): Use it.
4843
0699e415
RO
48442011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4845
4846 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4847 Include <signal.h>, <ucontext.h>.
4848 (sigill_caught): Define.
4849 (sigill_hdlr): New function.
4850 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4851 insns can be executed.
aad61732 4852 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
4853 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4854
ca24c5ad
RO
48552011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4856
4857 * config/t-slibgcc-darwin: Move to ...
aad61732 4858 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
4859 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4860 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4861 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 4862 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
4863 Remove i386/t-crtstuff from tmake_file.
4864 (i[34567]86-*-solaris2*): Remove t-svr4,
4865 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4866 t-slibgcc-dummy.
4867 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4868 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4869 sparc/t-crtfm from tmake_file.
4870 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4871 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4872 Remove extra_parts.
4873 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4874 * config/i386/t-nwld (SHLIB_LINK): Remove.
4875 * config/i386/t-rtems-i386: Rename to ...
4876 * config/i386/t-rtems: ... this.
4877 ($(T)crti.o, $(T)crtn.o): Remove.
4878 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4879 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4880 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4881 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4882 EXTRA_MULTILIB_PARTS): Remove.
4883 * config/sparc/t-sol2-64: Likewise.
4884 * config/sparc/t-sol2: Remove.
4885 * config/sparc/t-crtin: Remove.
4886 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4887 * config/i386/gmon-sol2.c: Remove.
4888 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4889 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4890 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4891 * config/i386/sol2-gc1.asm: Remove.
4892 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4893 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4894 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4895 * config/t-slibgcc-sld: Remove.
4896
a78d13c3
JJ
48972011-06-01 Jakub Jelinek <jakub@redhat.com>
4898
4899 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4900 base_type_for_mode with op_mode instead of mode.
4901
572070ef
PB
49022011-06-01 Paul Brook <paul@cpodesourcery.com>
4903
4904 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4905 Cortex-A15.
4906 * config/arm/arm-tune.md: Regenerate.
4907 * config/arm/arm-tables.opt: Regenerate.
4908 * config/arm/arm.c (FL_DIV): Rename...
4909 (FL_THUMB_DIV): ... to this.
4910 (FL_ARM_DIV): Define.
4911 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4912 (arm_arch_hwdiv): Remove.
4913 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4914 (arm_issue_rate): Add cortexr5.
4915 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4916 __ARM_ARCH_EXT_IDIV__.
4917 (TARGET_IDIV): Define.
4918 (arm_arch_hwdiv): Remove.
4919 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4920 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4921 (divsi3, udivsi3): New patterns.
4922 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4923 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4924
11026b51
MJ
49252011-06-01 Martin Jambor <mjambor@suse.cz>
4926
4927 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4928 * ipa-utils.c (searchc): Set scc_no.
4929
b6156cf2
MJ
49302011-06-01 Martin Jambor <mjambor@suse.cz>
4931
4932 * ipa-utils.c (searchc_env): New field allow_overwritable.
4933 (searchc): do not ignore edges to overwritable nodes if indicated
4934 by env->allow_overwritable.
4935 (ipa_reduced_postorder): Set env.allow_overwritable.
4936
6807da97
RG
49372011-06-01 Richard Guenther <rguenther@suse.de>
4938
4939 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4940 char_type_node.
4941 * lto-streamer.c (lto_record_common_node): Take node pointer,
4942 do not register types.
4943 (lto_preload_common_nodes): Explicitly skip preloading nodes
4944 that differ between frontends.
4945
66bd20e7 49462011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
4947
4948 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4949 NON_FLOAT_REGS.
4950
66bd20e7 49512011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
4952
4953 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4954 parameter value for dump. Dump cost on outermost call only.
4955 (rs6000_memory_move_cost): Dump cost on outermost call only.
4956
7351d8da
JJ
49572011-05-31 Jakub Jelinek <jakub@redhat.com>
4958
ead7c399
JJ
4959 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4960 DW_OP_GNU_convert ops.
4961
509f4495
JJ
4962 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4963 cselib_preserve_constants.
4964 (cselib_lookup_1): If cselib_preserve_constants,
4965 a new VALUE is being created for REG and there is a VALUE for the
4966 same register in wider mode, add another loc with lowpart SUBREG of
4967 the wider VALUE.
4968 (cselib_subst_to_values): Handle ENTRY_VALUE.
4969 * var-tracking.c (replace_expr_with_values): Return NULL for
4970 ENTRY_VALUE too.
4971 * dwarf2out.c (convert_descriptor_to_signed): New function.
4972 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4973 instead of two shifts.
4974 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4975 the right mode if needed.
4976 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4977 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4978 convert_descriptor_to_signed.
4979 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4980 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4981
7351d8da
JJ
4982 PR target/48688
4983 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4984
5cc93ee0
UB
49852011-05-31 Uros Bizjak <ubizjak@gmail.com>
4986
4987 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4988 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4989 (SWI248x): New mode iterator, rename from X87MODEI.
4990 (X87MODEI): Remove mode iterator.
4991 (X87MODEI12): Ditto.
4992 (SSEMODEI24): Ditto.
4993
f0686e78
AO
49942011-05-31 Alexandre Oliva <aoliva@redhat.com>
4995
4996 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4997 * doc/invoke.texi: Document max-vartrack-expr-depth.
4998 * var-tracking.c (EXPR_DEPTH): New.
4999 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
5000
f3308413
AO
50012011-05-31 Alexandre Oliva <aoliva@redhat.com>
5002
5003 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
5004 * config/i386/sse.md: Add n to negated FMA pattern names.
5005
28c14a04
AO
50062011-05-31 Alexandre Oliva <aoliva@redhat.com>
5007
5008 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
5009
70efc82d
AO
50102011-05-31 Alexandre Oliva <aoliva@redhat.com>
5011
5cc93ee0 5012 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 5013
6ba5d856
UB
50142011-05-31 Uros Bizjak <ubizjak@gmail.com>
5015
5016 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
5017 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
5018
50192011-05-31 Uros Bizjak <ubizjak@gmail.com>
5020
5021 * config/i386/i386.md (*movtf_internal): Avoid allocating general
5022 registers. Penalize F*r->o alternative to prevent partial memory
5023 stalls. Slightly penalize *roF->*r alternative. Generate SSE
5024 CONST_DOUBLE immediates when optimizing function for size. Do not move
5025 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
5026 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
5027 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
5028 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
5029 alternatives.
5030 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
5031
5032 (fp_register_operand splitters): Use fp_register_operand
5033 constraint. Do not use FP_REG_P in insn condition.
5034 (any_fp_register_operand splitters): Use any_fp_register_operand
5035 constraint. Do not use ANY_FP_REG_P in insn condition.
5036
533c07c5
JH
50372011-05-31 Jan Hubicka <jh@suse.cz>
5038
5039 * cgraph.h (cgraph_inline_failed_t): Give enum a name
5040 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
5041 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
5042 (lto_output_edge): Use output_enum and var_len_unsigned.
5043 (lto_output_varpool_node): Likewise.
5044 (input_overwrite_node): Do not take resolution parameter;
5045 extract it from a bitpack.
5046 (input_node): Do not read resolution; use input_enum and
5047 var_len_unsigned.
5048 (input_varpool_node): Likewise.
5049 (input_edge): Likewise.
5050 (input_cgraph_1): Likewise.
5051
2611db71
RG
50522011-05-31 Richard Guenther <rguenther@suse.de>
5053
5054 * gimple.c (gimple_register_canonical_type): Do not register
5055 any types via gimple_register_type.
5056
b9e57365
JH
50572011-05-31 Jan Hubicka <jh@suse.cz>
5058
5059 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
5060 of thunks.
5061
35979cc2
JJ
50622011-05-31 Jakub Jelinek <jakub@redhat.com>
5063
5064 PR rtl-optimization/49235
5065 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
5066 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
5067
8f7de592
IR
50682011-05-31 Ira Rosen <ira.rosen@linaro.org>
5069
5070 PR tree-optimization/49093
5071 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
5072 data references.
5073
8d8a3bda
DS
50742011-05-31 Dodji Seketeli <dodji@redhat.com>
5075
5076 PR debug/49047
5077 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 5078 for concrete functions containing the code of cloned functions.
8d8a3bda 5079
2e87621c
RG
50802011-05-31 Richard Guenther <rguenther@suse.de>
5081
5082 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
5083 to ...
5084 (forward_propagate_into_comparison_1): ... this.
5085 (forward_propagate_comparison): Rename to ...
5086 (forward_propagate_into_comparison): ... this. Split out
5087 real forward propagation code to ...
5088 (forward_propagate_comparison): ... this.
5089 (forward_propagate_into_gimple_cond): Remove looping.
5090 (forward_propagate_into_cond): Likewise.
5091 (simplify_not_neg_expr): Return whether we have done something.
5092 (simplify_gimple_switch): Likewise.
5093 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
5094 (ssa_forward_propagate_and_combine): ... this. Re-structure
5095 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 5096 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
5097 (pass_forwprop): Adjust.
5098
5a880d5d
ILT
50992011-05-30 Ian Lance Taylor <iant@google.com>
5100
5101 * godump.c (go_format_type): Correct length of name added to
5102 obstack for anonymous field.
5103
5f133038
KK
51042011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
5105
5106 PR target/49186
5107 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
5108 part of the second operand is 0.
5109
b17d5426
UB
51102011-05-30 Uros Bizjak <ubizjak@gmail.com>
5111
5112 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
5113 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
5114 to memory for !TARGET_MEMORY_MISMATCH_STALL.
5115 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 5116 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
5117 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
5118 when optimizing function for size. Do not move CONST_DOUBLEs
5119 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
5120 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
5121 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
5122 check for ANY_FP_REGNO_P instead.
5123 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
5124 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
5125 function for speed.
5126 * config/i386/i386.c (ix86_option_override_internal): Do not
5127 set TARGET_INTEGER_DFMODE_MOVES here.
5128
a0cd843f
L
51292011-05-30 H.J. Lu <hongjiu.lu@intel.com>
5130
5131 PR target/49168
aad61732 5132 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 5133
006a5f38
JJ
51342011-05-30 Jakub Jelinek <jakub@redhat.com>
5135
5136 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
5137 DW_TAG_rvalue_reference_type even for
5138 -gdwarf-4 -fno-debug-types-section.
5139
6e96f98a
BS
51402011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5141
5142 PR tree-optimization/46728
5143 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
5144 (build_and_insert_binop): New.
5145 (gimple_expand_builtin_pow): Reorder args for
5146 build_and_insert_call; use build_and_insert_binop; add more
5147 optimizations for fractional exponents.
b17d5426 5148
4f60111f
NF
51492011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5150
5151 PR bootstrap/49190
5152
5153 Revert:
5154 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5155
5156 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5157 tree_common.
5158 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5159 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5160 TS_BASE instead of TS_COMMON.
5161 * varasm.c (assemble_name): Remove assert.
5162
3fd7879d
RS
51632011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
5164
5165 * config.gcc: Keep obselete list sorted.
5166
80060f7a
JJ
51672011-05-30 Jakub Jelinek <jakub@redhat.com>
5168 Eric Botcazou <ebotcazou@adacore.com>
5169
5170 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
5171 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
5172 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
5173 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
5174 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
5175
17e99cdb
RG
51762011-05-30 Richard Guenther <rguenther@suse.de>
5177
5178 * gimple.c (gimple_types_compatible_p_1): Compare record
5179 and union type members properly.
5180
42b05b6e
RG
51812011-05-30 Richard Guenther <rguenther@suse.de>
5182
5183 PR tree-optimization/49210
6ba5d856
UB
5184 * ipa-split.c (split_function): Care for the case where the call
5185 result is not trivially convertible to the result holding variable.
42b05b6e 5186
f3321158
RG
51872011-05-30 Richard Guenther <rguenther@suse.de>
5188
5189 PR tree-optimization/49218
5190 * tree-vrp.c (adjust_range_with_scev): Properly check whether
5191 overflow occured.
5192
d12d8efe
RG
51932011-05-30 Richard Guenther <rguenther@suse.de>
5194
5195 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
5196 New function split out from ...
5197 (forward_propagate_into_gimple_cond): ... here. Adjust.
5198 (forward_propagate_into_cond): Likewise.
5199 (forward_propagate_comparison): Also propagate into
5200 comparisons on assignment RHS. Change return value to
5201 behave similar to forward_propagate_into_cond.
5202 (tree_ssa_forward_propagate_single_use_vars): Handle
5203 strict-overflow warnings properly for forward_propagate_comparison.
5204
df33b41f
RO
52052011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5206
5207 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
5208 from plugin linker.
5209 * configure: Regenerate.
5210
69940d4d
IR
52112011-05-30 Ira Rosen <ira.rosen@linaro.org>
5212
5213 PR tree-optimization/49199
5214 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 5215 non-reduction operands are either defined in the loop or by induction.
69940d4d 5216
226c52aa
XDL
52172011-05-29 Xinliang David Li <davidxl@google.com>
5218
5219 * opts-global.c (handle_common_deferred_options): Handle new options.
5220 * passes.c (register_one_dump_file): Call register_pass_name.
5221 (execute_one_pass): Check explicit enable/disable flag.
5222 (passr_hash): New function.
5223 (passr_eq): Ditto.
5224 (register_pass_name): Ditto.
5225 (get_pass_by_name): Ditto.
5226 (pass_hash): Ditto.
5227 (pass_eq): Ditto.
5228 (enable_pass): Ditto.
5229 (disable_pass): Ditto.
5230 (is_pass_explicitly_enabled_or_disabled): Ditto.
5231
491d8eed
UB
52322011-05-29 Uros Bizjak <ubizjak@gmail.com>
5233
5234 * config/i386/i386.md (*movoi_internal_avx): Use
5235 standard_sse_constant_opcode for alternative 0.
5236 (*movti_internal_sse): Ditto.
5237 (*movti_internal_rex64): Use standard_sse_constant_opcode for
5238 alternative 2.
5239 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
5240 sselog1 type moves.
5241 (*movsi_internal): Ditto.
5242 (*movdi_internal): Ditto. Add ssecvt type moves.
5243
eb93b31f
EB
52442011-05-29 Eric Botcazou <ebotcazou@adacore.com>
5245
5246 PR target/48830
5247 * rtlanal.c (simplify_subreg_regno): Adjust comment.
5248
3f831b7d
JJ
52492011-05-29 Jakub Jelinek <jakub@redhat.com>
5250
5251 PR rtl-optimization/49095
5252 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
5253 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
5254
ee3ee488
RS
52552011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5256
5257 PR target/43995
5258 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
5259 recurse_p argument. Only follow register copies if it is set,
5260 and prevent mips_find_pic_call_symbol from recursing.
5261 (mips_find_pic_call_symbol): Add a recurse_p argument.
5262 Pass it to mips_pic_call_symbol_from_set.
5263 (mips_annotate_pic_calls): Update accordingly.
5264
65f3dedb
RS
52652011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
5266
5267 * emit-rtl.c (try_split): Use a loop to search for
5268 NOTE_INSN_CALL_ARG_LOCATIONs.
5269
61e374ab
RG
52702011-05-29 Richard Guenther <rguenther@suse.de>
5271
5272 PR tree-optimization/49217
5273 * ipa-pure-const.c (propagate_pure_const): Fix typos.
5274
fac009a8
JH
52752011-05-28 Jan Hubicka <jh@suse.cz>
5276
5277 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
5278 length.
5279 (string_slot_free): Remove
5280 (create_output_block): Initialize obstack.
5281 (destroy_output_block): Free obstack.
5282 (lto_string_index): Add PERSISTENT parameter; do not duplicate
5283 the string unless it needs to be added into the hash.
5284 (lto_output_string_with_length): Add persistent attribute;
5285 handle NULL strings.
5286 (lto_output_string): Add PERSISTENT parameter.
5287 (output_string_cst, output_identifier): Simplify.
5288 (lto_output_location_bitpack): Update.
5289 (lto_output_builtin_tree): Update.
5290 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
5291 (lto_output_string, lto_output_string_with_length): Remove
5292 declarations; functions are static now.
fac009a8 5293
fa766006
JH
52942011-05-28 Jan Hubicka <jh@suse.cz>
5295
5296 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
5297 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
5298 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
5299 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
5300 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
5301 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
5302 unpack_ts_decl_with_vis_value_fields,
5303 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
5304 lto_get_builtin_tree): Use enum and variable length i/o.
5305 * basic-block.h (profile_status_d): Add PROFILE_LAST.
5306 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
5307 New functions.
5308 (bp_pack_enum, bp_unpack_enum): New macros.
5309
e092158b
RS
53102011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5311
5312 * genrecog.c: Remove redundant forward declarations.
5313
7ca2afa0
RS
53142011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5315
5316 * config.gcc: Deprecate mips*-*-openbsd*.
5317
a601a53a
RS
53182011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
5319
5320 PR bootstrap/49195
5321 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
5322 for match_op_dup.
5323
fc64b448
AP
53242011-05-27 Andrew Pinski <pinskia@gmail.com>
5325
5326 PR middle-end/48981
5327 * gengtype.c (vec_prefix_type): New function.
5328 (note_def_vec): Use vec_prefix_type and change the length
5329 attribute to be based on the prefix.
5330 * vec.c: Include coretypes.h before vec.h.
5331 (struct vec_prefix): Remove.
5332 (vec_gc_p_reserve): Change the offsetof to sizeof.
5333 (vec_gc_p_reserve_exact): Likewise.
5334 (vec_heap_p_reserve): Likewise.
5335 (vec_heap_p_reserve_exact): Likewise.
5336 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
5337 (vec_stack_p_reserve): Change the offsetof to sizeof.
5338 (vec_stack_p_reserve_exact): Likewise.
5339 * vec.h (struct vec_prefix): New struct definition.
5340 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
5341 (VEC_T_GTY(T,B)): Likewise.
5342 (DEF_VEC_FUNC_P(T)): Use prefix field.
5343 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
5344 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
5345
ba869341
BS
53462011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5347
5348 PR tree-optimization/46728
5349 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
5350 (powi_as_mults): Add gimple_set_location.
5351 (build_and_insert_call): New.
5352 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
5353 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 5354
d296760d
AM
53552011-05-27 Alexander Monakov <amonakov@ispras.ru>
5356
5357 * doc/contrib.texi: Update copyright years.
5358 (Contributors): Add Zdenek Sojka.
5359
38e01f9e
NF
53602011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5361
5362 * c-decl.c (c_push_function_context): Copy the current statement
5363 list stack.
5364 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
5365 (finish_struct): Call building_stmt_list_p instead of checking
5366 cur_stmt_list.
5367 * c-parser.c (c_parser_postfix_expression): Likewise.
5368 * c-typeck.c (c_end_compound_stmt): Likewise.
5369 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
5370 * tree-iterator.c (stmt_list_cache): Change to a VEC.
5371 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
5372 (free_stmt_list): Likewise.
5373 * tree.h (struct tree_statement_list): Include typed_tree instead
5374 of tree_common.
5375 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
5376 as TS_TYPED instead of TS_COMMON.
5377
8950516e 53782011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 5379 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
5380
5381 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
5382 (HAVE_AS_IX86_TLSGDPTL): Define.
5383 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
5384 (HAVE_AS_IX86_TLSLDMPLT): Define.
5385 * configure: Regenerate.
5386 * config.in: Regenerate.
5387 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
5388 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
5389 TARGET_SUN_TLS, use @tlsgdplt or @plt.
5390 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
5391 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
5392 @tlsldmplt or @plt.
5393 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
5394
b0bd15f7
BS
53952011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5396
5397 * sched-int.h (struct _haifa_deps_insn_data): New members cond
5398 and reverse_cond.
5399 (INSN_COND, INSN_REVERSE_COND): New macros.
5400 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
5401 once.
5402 (sched_get_condition_with_rev): Cache the results, and look them up
5403 if possible.
5404 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
5405 are clobbered by the current insn.
5406 * target.def (exposed_pipline): New sched data hook.
5407 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
5408 * doc/tm.texi: Regenerate.
5409
fa65a9cf
BS
54102011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5411
5412 PR tree-optimization/49170
5413 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
5414 sincos or cexp.
b0bd15f7 5415
c2299dfe
RG
54162011-05-27 Richard Guenther <rguenther@suse.de>
5417
5418 PR middle-end/49189
5419 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
5420 of comparisons.
5421
a95b23b4
BS
54222011-05-27 Bernd Schmidt <bernds@codesourcery.com>
5423
5424 * haifa-sched.c (sched_scan_info): Remove.
5425 (schedule_block): Call sched_extend_luids rather than sched_init_luids
5426 with NULL args.
5427 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
5428 Remove functions.
5429 (sched_scan): Remove.
5430 (sched_extend_luids): Renamed from luids_extend_insn and no longer
5431 static. All callers changed.
5432 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
5433 static. All callers changed.
5434 (sched_init_luids): Remove all arguments except the first. All
5435 callers changed. Don't use sched_scan.
5436 (haifa_init_h_i_d): Likewise.
5437 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
5438 manually rather than using sched_init_luids. Likewise with
5439 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
5440 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
5441 rather than sched_init_luids with NULL args.
5442 * sel-sched-ir.c (new_insns): Remove variable.
5443 (sched_scan): New static function, previously in haifa-sched.c. Remove
5444 all arguments but the first two; all callers changed.
5445 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
5446 rather than sched_init_luids.
5447 (sel_init_bbs): Remove second argument. All callers changed.
5448 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5449 with NULL arguments.
5450 (create_insn_rtx_from_pattern): Likewise.
5451 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5452 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5453 (sched_init_insn_luid, sched_extend_luids): Declare.
5454 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5455 declarations.
5456
f8f972fc
RB
54572011-05-27 Richard Guenther <rguenther@suse.de>
5458
5459 PR middle-end/49177
5460 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5461 A CMP B ? (T) true : (T) false for non-integral types T again.
5462
51a9ed47
JH
54632011-05-27 Jan Hubicka <jh@suse.cz>
5464
5465 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5466 so 0 means NULL string.
5467 (lto_output_string_with_length): ... here.
f8f972fc
RB
5468 (lto_output_string, output_string_cst, output_identifier): Update
5469 handling of NULL strings.
51a9ed47
JH
5470 (lto_output_location_bitpack): New function.
5471 (lto_output_location): Use it.
5472 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
5473 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5474 len values.
5475 * lto-streamer-in.c (string_for_index): Break out from ...; offset
5476 values by 1.
491d8eed 5477 (input_string_internal): ... here;
f8f972fc
RB
5478 (input_string_cst, input_identifier, lto_input_string): Update handling
5479 of NULL strings.
51a9ed47
JH
5480 (lto_input_location_bitpack): New function
5481 (lto_input_location): Use it.
f8f972fc
RB
5482 (unpack_ts_type_common_value_fields): Pack align & alias in var len
5483 values.
51a9ed47
JH
5484 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5485 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5486 (bp_pack_value): Sanity check the value range.
5487 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5488 New functions.
5489 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5490 New functions.
5491
66bd20e7 54922011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
5493
5494 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5495 call_arg_location instructions down the floor.
5496
574e418a
VM
54972011-05-26 Vladimir Makarov <vmakarov@redhat.com>
5498
5499 PR rtl-optimization/49154
5500 * ira.c (setup_pressure_classes): Process class without sublcasses
5501 as a candidate for pressure classes.
5502
6a1a787e
RS
55032011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
5504
5505 PR rtl-optimization/48575
5506 * genrecog.c (position_type): New enum.
5507 (position): New structure.
5508 (decision): Use position structure instead of a string.
5509 (root_pos, peep2_insn_pos_list): New variables.
5510 (next_position, compare_positions): New functions.
5511 (new_decision): Use position structures instead of strings.
5512 (maybe_both_true): Likewise.
5513 (change_state): Likewise.
5514 (write_tree): Likewise.
5515 (make_insn_sequence): Likewise.
5516
92e948a8
NF
55172011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5518
5519 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5520 TS_BASE instead of TS_COMMON.
5521 (find_decls_types_r): Check for TS_TYPED structure before looking at
5522 TREE_TYPE.
5523 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5524 Add chain field.
5525 (BLOCK_CHAIN): Use new chain field.
5526
66bd20e7 55272011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
5528
5529 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5530 moves expensive on Power7 also.
5531
1f498652
RG
55322011-05-26 Richard Guenther <rguenther@suse.de>
5533
5534 * fold-const.c (fold_unary_loc): Remove bogus code.
5535
a2fc3e63
NF
55362011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5537
5538 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5539 tree_common.
5540 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5541 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5542 TS_BASE instead of TS_COMMON.
5543 * varasm.c (assemble_name): Remove assert.
5544
d11bf18f
BS
55452011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5546
5547 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5548 substituted first.
5549 * libgcc-std.ver: Delete file.
5550
ac8e1875
RG
55512011-05-26 Richard Guenther <rguenther@suse.de>
5552
5553 PR tree-optimization/48702
5554 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5555 only when we know the base address is within bounds.
5556 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5557 assume the base address of TARGET_MEM_REFs is in bounds.
5558
7e32e652
RO
55592011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5560
5561 PR target/49099
5562 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5563 declaration in TARGET_SOLARIS.
5564
66bd20e7 55652011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
5566
5567 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 5568 The instruction is then expanded explicitly.
43660e0b
HS
5569 (supported_compare): Callable instruction.
5570 (compare): Likewise.
5571
1537737f
JJ
55722011-05-26 Jakub Jelinek <jakub@redhat.com>
5573
5574 PR c++/49165
5575 * gimplify.c (shortcut_cond_r): Don't special case
5576 COND_EXPRs if they have void type on one of their arms.
5577
7b1ac803
BS
55782011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5579
5580 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5581 to reduce duplication, and to achieve a slightly more logical order
5582 of operations.
5583
1aa9438f
JJ
55842011-05-26 Jakub Jelinek <jakub@redhat.com>
5585
5586 PR tree-optimization/49161
5587 * tree-vrp.c (struct case_info): New type.
5588 (compare_case_labels): Sort case_info structs instead of
5589 trees, and not primarily by CASE_LABEL uids but by
5590 label_for_block indexes.
5591 (find_switch_asserts): Put case labels into struct case_info
5592 array instead of TREE_VEC, adjust sorting, compare label_for_block
5593 values instead of CASE_LABELs.
5594
50fed7bf
RR
55952011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5596
5597 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5598 ("orndi3_neon"): Likewise.
5599 ("bic<mode>3_neon"): Likewise.
5600
48df3fa6
IR
56012011-05-26 Ira Rosen <ira.rosen@linaro.org>
5602
5603 PR tree-optimization/49038
5604 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5605 Ensure at least one epilogue iteration if required by data
5606 accesses with gaps.
5607 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5608 to mark loops that require peeling for gaps.
5609 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5610 (vect_get_known_peeling_cost): Take peeling for gaps into
5611 account.
5612 (vect_transform_loop): Generate epilogue if required by data
5613 access with gaps.
5614 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5615 loop as requiring an epilogue if there are gaps in the end of
5616 the strided group.
5617
53febcba
ILT
56182011-05-25 Ian Lance Taylor <iant@google.com>
5619
5620 * godump.c (go_format_type): Output the first field with a usable
5621 Go type, if any.
5622
dbbc4d4c
ILT
56232011-05-25 Ian Lance Taylor <iant@google.com>
5624
5625 * godump.c (go_format_type): Check for invalid type names, pointer
5626 target types, and struct field types.
5627
f03a5402
JM
56282011-05-25 Jason Merrill <jason@redhat.com>
5629
5630 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5631
c497c412
UB
56322011-05-25 Uros Bizjak <ubizjak@gmail.com>
5633
5634 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5635
e470affe
L
56362011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5637
5638 * config/i386/i386.md (*movqi_extv_1)): Put back
5639 "register_operand" check in "type" calculation.
5640 (*movqi_extzv_2): Likewise.
5641
6c81b2bc
L
56422011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5643
c497c412 5644 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 5645
0c007eb2
BS
56462011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5647
5648 PR bootstrap/49160
5649 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5650 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5651 __divxc3, __divtc3): Wrap definitions in #ifndef.
5652
521ca78e
L
56532011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5654
5655 PR target/49142
5656 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5657 "register_operand" check and replace q_regs_operand with
5658 QIreg_operand in "type" calculation.
5659 (*movqi_extv_1): Likewise.
5660 (*movqi_extzv_2_rex64): Likewise.
5661 (*movqi_extzv_2): Likewise.
5662
5663 * config/i386/predicates.md (QIreg_operand): New.
5664
29f8b844
RG
56652011-05-25 Richard Guenther <rguenther@suse.de>
5666
5667 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5668 type-based offset disambiguation, streamline MEM_REF and
5669 TARGET_MEM_REF handling.
5670
74838de3
L
56712011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5672
5673 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5674 (bdesc_special_args): Add pause intrinsic.
5675
5676 * config/i386/i386.md (UNSPEC_PAUSE): New.
5677 (pause): Likewise.
5678 (*pause): Likewise.
5679 * config/i386/ia32intrin.h (__pause): Likewise.
5680
5681 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5682 pause intrinsic.
5683
d24ad7d6
BS
56842011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5685
5686 PR tree-optimization/46728
5687 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5688 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 5689
d9f8303f
NF
56902011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5691
5692 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5693 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5694 instead of TS_COMMON.
5695
cdbf4541
BS
56962011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5697
5698 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5699 LIBGCC2_GNU_PREFIX is defined.
5700 (__N): New macro.
5701 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5702 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5703 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5704 __clz_tab): Define using __N.
5705 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5706 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5707 * target.def (libfunc_gnu_prefix): New hook.
5708 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5709 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5710 * doc/tm.texi: Regenerate.
5711 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5712 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5713 account.
5714 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5715 (init_optabs): Likewise for the bswap libfuncs.
5716 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5717 and divide.
5718 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5719 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5720 * libgcc-std.ver: Remove.
5721 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5722 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5723 libgcc-std.ver.
5724 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5725 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5726 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5727 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5728 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5729 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5730 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5731 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5732 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5733 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5734
f242c0a5
JH
57352011-05-25 Jan Hubicka <jh@suse.cz>
5736
5737 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5738 (lto_output_tree): Use output_record_start.
5739 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5740 (lto_get_pickled_tree): Use input_record_start.
5741 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5742 (lto_value_range_error): New function.
5743 * lto-streamer.h (lto_value_range_error): Declare.
5744 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5745 (lto_output_enum, lto_input_enum): New macros.
5746
a11e0df4
EB
57472011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5748
5749 * common.opt (flag_stack_usage_info): New variable.
5750 (-Wstack-usage): New option.
5751 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5752 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5753 <OPT_fstack_usage>: Likewise.
5754 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5755 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5756 of flag_stack_usage.
5757 (emit_library_call_value_1): Likewise.
5758 * explow.c (allocate_dynamic_stack_space): Likewise.
5759 * function.c (instantiate_virtual_regs ): Likewise.
5760 (prepare_function_start): Likewise.
5761 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5762 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5763 * config/arm/arm.c (arm_expand_prologue): Likewise.
5764 (thumb1_expand_prologue): Likewise.
5765 * config/avr/avr.c (expand_prologue): Likewise.
5766 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5767 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5768 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5769 * config/mips/mips.c (mips_expand_prologue): Likewise.
5770 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5771 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5772 * config/s390/s390.c (s390_emit_prologue): Likewise.
5773 * config/sh/sh.c (sh_expand_prologue): Likewise.
5774 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5775 * config/spu/spu.c (spu_expand_prologue): Likewise.
5776
e7cfe241
RG
57772011-05-25 Richard Guenther <rguenther@suse.de>
5778
5779 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5780 (gimple_canonical_types_compatible_p): Likewise.
5781
c5235f4c
JH
57822011-05-25 Jan Hubicka <jh@suse.cz>
5783
5784 PR middle-end/49062
5785 * ipa.c (function_and_variable_visibility): Only add to same
5786 comdat group list if DECL_ONE_ONLY.
5787
8242a0f6
AB
57882011-05-25 Andrey Belevantsev <abel@ispras.ru>
5789
5790 PR rtl-optimization/49014
5791 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5792
642a011d
JJ
57932011-05-25 Jakub Jelinek <jakub@redhat.com>
5794
5795 PR target/49128
5796 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5797
30a435d8
VM
57982011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5799
5800 PR rtl-optimization/48757
5801 * ira-build.c (loop_with_eh_edge_p): Rename to
5802 loop_with_complex_edge_p, check edges on complexity, make function
5803 conditional.
5804 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5805 conditional.
5806
24d1bbc7
EB
58072011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5808
5809 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5810 force flag_ira_share_save_slots to 0.
5811
65773087
EB
58122011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5813
5814 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5815 (vt_initialize): Set PROLOGUE_BB unconditionally.
5816 Add block comment about CFA_BASE_RTX machinery.
5817 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5818 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5819
4e26ba90
NP
58202011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5821
5822 PR objc/48187
5823 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5824 parsing of syntax error in ObjC instance variable lists. In
5825 particular, avoid an infinite loop if there is a stray ']'.
5826 Updated error message.
5827
936fd13c
ILT
58282011-05-24 Ian Lance Taylor <iant@google.com>
5829
5830 * godump.c (go_define): Don't accept a string immediately after
5831 another operand.
5832
f17333e3
ILT
58332011-05-24 Ian Lance Taylor <iant@google.com>
5834
5835 * godump.c (struct godump_container): Add invalid_hash field.
5836 (go_format_type): Return false if type is found in invalid_hash.
5837 (go_output_typedef): Add invalid type to invalid_hash.
5838 (go_finish): Create and delete invalid_hash.
5839
d24ad7d6 58402011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 5841
78be79d5
BS
5842 PR tree-optimization/46728
5843 * tree-ssa-math-opts.c (powi_table): New.
5844 (powi_lookup_cost): New.
5845 (powi_cost): New.
5846 (powi_as_mults_1): New.
5847 (powi_as_mults): New.
5848 (gimple_expand_builtin_powi): New.
5849 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5850 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 5851
caee412b
RO
58522011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5853
5854 PR target/3746
5855 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5856 mips-tdump native.
5857 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5858 * mips-tdump.c: Likewise.
5859
5eed4f27
L
58602011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5861
5862 PR target/49128
5863 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5864 add -mno-XXX. Handle FMA.
5865
8c5fdaae
VM
58662011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5867
5868 PR rtl-optimization/48633
5869 * ira-build.c (loop_with_eh_edge_p): New function.
5870 (mark_loops_for_removal): Use it.
5871
58722011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
5873
5874 PR rtl-optimization/48971
5875 * ira.c (setup_pressure_classes): Don't check register move cost
5876 for classes with one registers. Don't add pressure class if there
5877 is a pressure class with the same available hard registers.
5878 Check contains_reg_of_mode. Fix a typo in collecting
5879 temp_hard_regset. Ignore hard registers not belonging to a class.
5880
df1f7315
UB
58812011-05-24 Uros Bizjak <ubizjak@gmail.com>
5882
5883 PR target/49133
5884 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5885
ee0cb37c
EB
58862011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5887 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5888
5889 PR gcov-profile/48845
5890 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5891
6a20ce76
RG
58922011-05-24 Richard Guenther <rguenther@suse.de>
5893
5894 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5895 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5896 (gimple_types_compatible_p_1): Adjust.
5897 (iterative_hash_canonical_type): Do not bother about complete vs.
5898 incomplete types.
5899 (gimple_canonical_types_compatible_p): Likewise.
5900
2fcb858c
RO
59012011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5902
5903 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5904
96d91dcf
RG
59052011-05-24 Richard Guenther <rguenther@suse.de>
5906
5907 PR bootstrap/49078
5908 * gimple.c (gimple_register_canonical_type): Revert
5909 previous change.
5910 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5911 does not for a tree for the case where it matters. Cache
5912 pointer-type alias-sets.
5913
1ed1641d
JM
59142011-05-24 Joseph Myers <joseph@codesourcery.com>
5915
5916 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5917 (OBJS): Remove options.o, opts-common.o and prefix.o.
5918 (OBJS-libcommon-target): New.
5919 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5920 (BACKEND): Include libcommon-target.a.
5921 (MOSTLYCLEANFILES): Include libcommon-target.a.
5922 (libcommon-target.a): New.
5923 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5924 prefix.o.
5925
57dfdff0
JM
59262011-05-23 Joseph Myers <joseph@codesourcery.com>
5927
5928 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5929 parts of output shared with the driver.
5930 * optc-gen.awk: Don't generate parts of output not shared with the
5931 driver.
5932 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5933 * doc/options.texi (SourcerInclude): Mention options-save.c.
5934 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5935 (OBJS): Add options-save.o.
5936 (options-save.c, options-save.o): New.
5937 (options.o): Update dependencies.
5938 (gcc-options.o): Remove.
5939 (mostlyclean): Remove options-save.c.
5940
0e0d82a7
JJ
59412011-05-23 Jakub Jelinek <jakub@redhat.com>
5942
9166988f
JJ
5943 PR debug/49032
5944 * dbxout.c: Include cgraph.h.
5945 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5946 and without value expr, return NULL if no varpool node exists for
5947 it or if it is not needed.
5948 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5949
0e0d82a7
JJ
5950 PR c/49120
5951 * c-decl.c (start_decl): Convert expr to void_type_node.
5952
65712d5c
RS
59532011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5954
5955 PR rtl-optimization/48826
5956 * emit-rtl.c (try_split): When splitting a call that is followed
5957 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5958
9025085e
JJ
59592011-05-23 Jakub Jelinek <jakub@redhat.com>
5960
5961 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5962 parameters passed in memory prefer using DECL_INCOMING_RTL over
5963 the pseudos it will be copied into.
5964
34a061be
L
59652011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5966
5967 PR target/47315
5968 * config/i386/i386.c (ix86_option_override_internal): Save the
5969 initial options after checking vzeroupper.
5970
c375a3a4
DL
59712011-05-23 David Li <davidxl@google.com>
5972
5973 PR tree-optimization/48988
5974 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5975 Initialize has_valid_pred for each pred chain.
5976
e1caba18
RG
59772011-05-23 Richard Guenther <rguenther@suse.de>
5978
5979 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5980 (iterative_hash_gimple_type): Always hash type names.
5981
dde05067
NF
59822011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5983
5984 * c-typeck.c (build_function_call_vec): Tweak call to
5985 check_function_arguments.
5986
094f6ab3
RG
59872011-05-23 Richard Guenther <rguenther@suse.de>
5988
5989 PR tree-optimization/49115
5990 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5991 is not necessarily carried out, do not claim it kills the ref.
5992 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5993
9a9822e1
RG
59942011-05-23 Richard Guenther <rguenther@suse.de>
5995
5996 PR middle-end/15419
5997 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5998 what pointer types we accept for folding.
5999
c8028650
RO
60002011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6001
6002 * gthr-gnat.c: Remove.
6003 * gthr-gnat.h: Remove.
6004 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
6005 * config/t-freebsd (LIB2ADDEH): Likewise.
6006 * config/t-linux (LIB2ADDEH): Likewise.
6007 * config/t-sol2 (LIB2ADDEH): Likewise.
6008 * config/ia64/t-vms (LIB2ADDEH): Likewise.
6009 * configure.ac (target_thread_file): Remove gnat handling.
6010 * configure: Regenerate.
6011 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
6012
15882fe9
TG
60132011-05-23 Tristan Gingold <gingold@adacore.com>
6014 Eric Botcazou <ebotcazou@adacore.com>
6015
6016 * gcov.c (create_file_names): If no object directory is specified,
6017 keep the directory of the file.
6018
da90c957
RO
60192011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6020
6021 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
6022 * configure: Regenerate.
6023
7bba408b
JJ
60242011-05-23 Jakub Jelinek <jakub@redhat.com>
6025
6026 PR middle-end/48973
6027 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
6028 failed and the comparison has a single bit signed type, use
6029 constm1_rtx instead of const1_rtx for true value.
6030 (do_store_flag): If ops->type is single bit signed type, disable
6031 signel bit test optimization and pass -1 instead of 1 as last
6032 parameter to emit_store_flag_force.
6033
bc69f7ff
TV
60342011-05-23 Tom de Vries <tom@codesourcery.com>
6035
6036 PR target/45098
6037 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
6038 function.
6039 (infer_loop_bounds_from_undefined): Use new function.
6040
29cedf8e
RS
60412011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
6042
6043 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
6044 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
6045 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
6046 and -O0 otherwise.
6047 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
6048
afe8b6ec
EB
60492011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6050
6051 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
6052 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
6053 returns true.
6054
872dab53
RS
60552011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
6056
6057 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
6058
145f6c5b
EB
60592011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6060
6061 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
6062 UNSPEC_MOVE_PIC pattern.
6063
8ac79835
EB
60642011-05-22 Eric Botcazou <ebotcazou@adacore.com>
6065
6066 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
6067 (sparc-*-rtems*): Likewise.
6068 (sparc64-*-elf*): Likewise.
6069 (sparc64-*-rtems*): Likewise.
6070 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
6071 * config/sparc/t-crtin: New file.
6072 * config/sparc/t-sol2 (crti.o): Delete rule.
6073 (crtn.o): Likewise.
6074 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
6075 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
6076 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
6077 (ENDFILE_SPEC): Add crtn.o.
6078
5fb43dd8
TV
60792011-05-22 Tom de Vries <tom@codesourcery.com>
6080
6081 PR middle-end/48689
6082 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
6083 CODE_CONTAINS_STRUCT (TS_COMMON).
6084
ccb1b17b
JJ
60852011-05-22 Jakub Jelinek <jakub@redhat.com>
6086
6087 PR middle-end/49029
6088 * expmed.c (extract_fixed_bit_field): Test whether target can be used
6089 only after deciding which mode to use.
6090
50ad7db2
TV
60912011-05-22 Tom de Vries <tom@codesourcery.com>
6092
6093 PR target/45098
dc0a3366 6094 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
6095 for call to get_shiftadd_cost.
6096
ef230b38
UB
60972011-05-22 Uros Bizjak <ubizjak@gmail.com>
6098
6099 PR target/49104
6100 * config/i386/cpuid.h (bit_MMXEXT): New define.
6101
15f072f9
NC
61022011-05-22 Nick Clifton <nickc@redhat.com>
6103
6104 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
6105 initialisation of non-existant args[2] element. Use args[] array
6106 not arg[] array to pass arguments to build_function_type_list.
6107
e38fdc94
IR
61082011-05-22 Ira Rosen <ira.rosen@linaro.org>
6109
6110 PR tree-optimization/49087
ef230b38 6111 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 6112
5b018c65
JM
61132011-05-21 Jason Merrill <jason@redhat.com>
6114
6115 PR c++/49092
6116 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
6117 static storage duration.
6118
abd9a770
EB
61192011-05-21 Eric Botcazou <ebotcazou@adacore.com>
6120
6121 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
6122 frame pointer.
6123
bd9a3248
EB
61242011-05-21 Eric Botcazou <ebotcazou@adacore.com>
6125
6126 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
6127 false if there are call-saved registers here...
6128 (sparc_can_use_return_insn_p): ...but here instead.
6129 (save_or_restore_regs): Fix thinko.
6130 (sparc_expand_prologue): Use current_function_is_leaf.
6131 (sparc_frame_pointer_required): Likewise.
6132
a5dfec9a
NC
61332011-05-21 Nick Clifton <nickc@redhat.com>
6134
6135 PR target/49098
6136 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
6137
555c3771
NP
61382011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
6139
6140 * gengtype.c (walk_type): Implemented "atomic" GTY option.
6141 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
6142
86fa5de4
JM
61432011-05-21 Joseph Myers <joseph@codesourcery.com>
6144
6145 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
6146 * optc-gen.awk: Move common code to opt-read.awk.
6147 * opth-gen.awk: Likewise.
ef230b38 6148 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 6149
bce33ab2
NF
61502011-05-20 Nathan Froyd <froydnj@codesourcery.com>
6151
6152 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
6153
e6450c11
TV
61542011-05-20 Tom de Vries <tom@codesourcery.com>
6155
6156 PR target/45098
6157 * tree-ssa-loop-ivopts.c: Include expmed.h.
6158 (get_shiftadd_cost): New function.
6159 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
6160
0e8b84ec
JJ
61612011-05-20 Jakub Jelinek <jakub@redhat.com>
6162
6163 PR bootstrap/49086
6164 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
6165 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
6166
946bdf67
JM
61672011-05-20 Joseph Myers <joseph@codesourcery.com>
6168
6169 * Makefile.in: Update comment referring to $(OBJS-common).
6170
c53aafdf
ILT
61712011-05-20 Ian Lance Taylor <iant@google.com>
6172
6173 * godump.c (go_output_typedef): Put enum constants in the macro
6174 hash table to avoid duplicate Go const definitions.
6175
2691e6d7
JM
61762011-05-20 Joseph Myers <joseph@codesourcery.com>
6177
6178 * Makefile.in (LIBDEPS): Add libcommon.a.
6179 (LIBS): Likewise.
6180 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
6181 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
6182 pretty-print.o and version.o.
6183 (OBJS-libcommon): New.
6184 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
6185 (BACKEND): Add libcommon.a.
6186 (MOSTLYCLEANFILES): Likewise.
6187 (libcommon.a): New.
6188 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
6189 (cpp$(exeext)): Likewise.
6190 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
6191 pretty-print.o and input.o.
6192 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
6193 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
6194 (errors.o): Remove.
6195 (mips-tfile): Don't explicitly use version.o.
6196 (mips-tdump): Likewise.
6197 (gcov.o): Depend on $(DIAGNOSTIC_H).
6198 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
6199 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
6200 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
6201 * gcov-dump.c: Include intl.h and diagnostic.h.
6202 (main): Initialize diagnostics.
6203 * gcov.c: Include diagnostic.h.
6204 (fnotice): Remove.
6205 (main): Initialize diagnostics.
6206 * lto-wrapper.c: Include diagnostic.h.
6207 (main): Initialize diagnostics.
6208
252b3e8c
MM
62092011-05-20 Michael Matz <matz@suse.de>
6210
6211 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
6212
2ee36ba6
MM
62132011-05-20 Michael Matz <matz@suse.de>
6214 Richard Guenther <rguenther@suse.de>
6215
6216 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
6217 use lto_streamer_cache_append directly instead of returning a VEC.
6218 (preload_common_node): Remove.
6219 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
6220 track seen nodes.
6221 (lto_streamer_cache_create): Call lto_preload_common_nodes.
6222
90ff582f
RG
62232011-05-20 Richard Guenther <rguenther@suse.de>
6224
6225 PR tree-optimization/49079
6226 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
6227 MEM_REFs correctly for the trailing array access detection.
6228 Special case constants the same way as decls for overall size
6229 constraining.
6230
3cda91d8
UB
62312011-05-20 Uros Bizjak <ubizjak@gmail.com>
6232
6233 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
6234 argument expansion.
6235
6c66f733
JJ
62362011-05-20 Jakub Jelinek <jakub@redhat.com>
6237
6238 PR tree-optimization/49073
3cda91d8
UB
6239 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
6240 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
6241 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
6242
0ea80a16
RG
62432011-05-20 Richard Guenther <rguenther@suse.de>
6244
6245 PR middle-end/48849
6246 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
6247 of pointer types the same way the middle-end does.
6248
fb291a1e
RG
62492011-05-20 Richard Guenther <rguenther@suse.de>
6250
3cda91d8
UB
6251 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
6252 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 6253
37cb25ed
QN
62542011-05-19 Quentin Neill <quentin.neill@amd.com>
6255
6256 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
6257 (fma4_fmaddsub): Likewise
6258
a30726a4
JH
62592011-05-19 Jan Hubicka <jh@suse.cz>
6260
6261 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
6262 (GIMPLE_TYPE_PAIR_SIZE): New macro.
6263 (type_pair_cache): New static var.
6264 (lookup_type_pair): Use fixed sized custom hash; make inline.
6265 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
6266 calls of lookup_type_pair.
6267 (print_gimple_types_stats): Remove cache stats.
6268 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
6269 and gtc_ob.
6270
0955cf61
UB
62712011-05-19 Uros Bizjak <ubizjak@gmail.com>
6272
6273 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
6274 when TARGET_RDRND is active.
6275 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
6276 Generate dummy SImode target register when target is NULL.
6277
12d844c8
JM
62782011-05-19 Joseph Myers <joseph@codesourcery.com>
6279
6280 * config/arm/arm-fpus.def: New.
6281 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
6282 arm-fpus.def.
6283 * config/arm/arm-tables.opt: Regenerate.
6284 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
6285 (arm_option_override): Don't decode FPU name to string here.
6286 * config/arm/arm.opt (mfpu=): Use Enum.
6287 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
6288 Update dependencies.
6289
9e350e99
JM
62902011-05-19 Joseph Myers <joseph@codesourcery.com>
6291
6292 * collect2.c: Include diagnostic.h.
6293 (fatal_perror, fatal, error, fancy_abort): Remove.
6294 (main): Set progname. Call xmalloc_set_program_name and
6295 diagnostic_initialize.
6296 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
6297 scan_libraries, resolve_lib_name): Call fatal_error instead of
6298 fatal and fatal_perror.
6299 * collect2.h (error, fatal, fatal_perror): Don't declare.
6300 * tlink.c: Include diagnostic-core.h.
6301 (recompile_files): Call fatal_error instead of fatal_perror.
6302 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
6303 pretty-print.o and input.o.
6304 (collect2.o, tlink.o): Update dependencies.
6305
86ff4081
RO
63062011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6307
6308 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
6309
2ca48caa
RO
63102011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6311
6312 PR target/40483
6313 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
6314 COMDAT group syntax, both SPARC and x86 variants.
6315 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
6316 * configure: Regenerate.
6317 * config/sol2.h (TARGET_SOLARIS): Define.
6318 (PUSHSECTION_FORMAT): Remove.
6319 (SECTION_NAME_FORMAT): Define.
6320 * config/sol2.c: Include hashtab.h.
6321 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
6322 expansion, using SECTION_NAME_FORMAT.
6323 (solaris_comdat_htab): New variable.
6324 (struct comdat_entry): Define.
6325 (comdat_hash): New function.
6326 (comdat_eq): New function.
6327 (solaris_elf_asm_comdat_section): New function.
6328 (solaris_define_comdat_signature): New function.
6329 (solaris_code_end): New function.
6330 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
6331 (solaris_code_end): Declare.
6332 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
6333 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
6334 solaris_code_end.
6335 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
6336 Remove ATTRIBUTE_UNUSED.
6337 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
6338 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 6339 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
6340 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
6341 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
6342 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
6343 (PUSHSECTION_FORMAT): Remove.
6344 (SECTION_NAME_FORMAT): Redefine.
6345
da5fb469
KT
63462011-05-19 Kai Tietz <ktietz@redhat.com>
6347
6348 * tree-cfg.c (verify_gimple_assign_binary): Barf on
6349 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
6350 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
6351
1651e703 63522011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
6353 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6354
6355 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
6356
e497b9bd
RG
63572011-05-19 Richard Guenther <rguenther@suse.de>
6358
6359 PR middle-end/48985
6360 * tree-object-size.c (addr_object_size): If the pointed-to
6361 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
6362
31b3ca64
RG
63632011-05-19 Richard Guenther <rguenther@suse.de>
6364
6365 * gimple.c (gimple_types_compatible_p_1): Compare names of
6366 the types themselves.
6367 (iterative_hash_gimple_type): And hash them that way.
6368 (gimple_register_type_1): If we register a main variant properly
6369 initialize the leader to ourselves.
6370
bb8d292d
TV
63712011-05-19 Tom de Vries <tom@codesourcery.com>
6372
6373 PR target/45098
6374 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
6375 get_loop_invariant_expr_id.
6376 (get_loop_invariant_expr_id): Use get_expr_id.
6377 (parm_decl_cost): New function.
6378 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
6379 Improve bound cost estimation. Use different inv_expr_id for elim and
6380 express cases.
6381
a53c5024
TV
63822011-05-19 Tom de Vries <tom@codesourcery.com>
6383
6384 PR target/45098
6385 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
6386 cost_base.cost == 0.
6387
31f9eb59
L
63882011-05-18 H.J. Lu <hongjiu.lu@intel.com>
6389
6390 PR target/49002
66bd20e7
EB
6391 * config/i386/sse.md
6392 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
6393 load cast.
31f9eb59 6394
681056ae
JJ
63952011-05-18 Jakub Jelinek <jakub@redhat.com>
6396
6397 PR tree-optimization/49039
6398 * tree-vrp.c (extract_range_from_binary_expr): For
6399 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
6400 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
6401
b5ee6752
TV
64022011-05-18 Tom de Vries <tom@codesourcery.com>
6403
6404 PR target/45098
6405 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
6406
0bda47a3
UB
64072011-05-18 Uros Bizjak <ubizjak@gmail.com>
6408
6409 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
6410 (*tls_global_dynamic_64): Ditto.
6411 (*tls_local_dynamic_base_32_gnu): Ditto.
6412 (*tls_local_dynamic_base_64): Ditto.
6413 (tls_initial_exec_64_sun): Ditto.
6414
033b0805
SH
64152011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
6416
6417 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
6418 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
6419 bf592-none.
6420 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
6421 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
6422 * config/bfin/bfin.c (bfin_cpus): Add bf592.
6423 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 6424 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
6425 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
6426 * config/bfin/elf.h (LIB_SPEC): Add bf592.
6427
ba163417
JM
64282011-05-18 Joseph Myers <joseph@codesourcery.com>
6429
6430 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 6431 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
6432 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
6433 target_thread_pointer, arm_structure_size_boundary, struct
6434 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
6435 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
6436 (arm_option_override) Don't process most enumerated option values here.
6437 Don't process target_fpe_name here. Work with integer not string for
6438 structure size boundary; use separate diagnostics for each case.
ba163417
JM
6439 * config/arm/arm.h (enum float_abi_type, enum
6440 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
6441 to arm-opts.h.
6442 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
6443 arm_structure_size_boundary): Remove.
6444 * config/arm/arm.opt (mabi=): Use Enum and Init.
6445 (arm_abi_type): New Enum and EnumValue entries.
6446 (mfloat-abi=): Use Enum and Init.
6447 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 6448 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
6449 (mfp16-format=): Use Enum and Init.
6450 (arm_fp16_format_type): New Enum and EnumValue entries.
6451 (mstructure-size-boundary=): Use UInteger and Init.
6452 (mtp=): Use Enum and Init.
6453 (arm_tp_type): New Enum and EnumValue entries.
6454
179184e3
RG
64552011-05-18 Richard Guenther <rguenther@suse.de>
6456
6457 PR tree-optimization/49018
6458 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6459 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6460 gimple_has_side_effects.
6461
93b2a207
RG
64622011-05-18 Richard Guenther <rguenther@suse.de>
6463
6464 * gimple.c (gimple_register_type_1): New function, split out from ...
6465 (gimple_register_type): ... here. Avoid infinite recursion.
6466
b010117a
IR
64672011-05-18 Ira Rosen <ira.rosen@linaro.org>
6468
6469 PR tree-optimization/41881
6470 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6471 reduction_chains along with a macro for its access.
6472 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6473 (destroy_loop_vec_info): Free reduction chains.
6474 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6475 (vect_is_slp_reduction): New function.
6476 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6477 (vect_create_epilog_for_reduction): Support SLP reduction chains.
6478 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6479 definition types for reduction chains.
6480 (vect_supported_load_permutation_p): Don't allow permutations for
6481 reduction chains.
6482 (vect_analyze_slp_instance): Support reduction chains.
6483 (vect_analyze_slp): Try to build SLP instance from reduction chains.
6484 (vect_get_constant_vectors): Handle reduction chains.
6485 (vect_schedule_slp_instance): Mark the first statement of the
6486 reduction chain as reduction.
6487
e14c1050
IR
64882011-05-18 Ira Rosen <ira.rosen@linaro.org>
6489
6490 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6491 names for group elements access.
6492 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6493 reduction chains as well. Remove data reference and interleaving
6494 related words from the fields names.
6495 * tree-vect-loop.c (vect_transform_loop): Use new names for group
6496 elements access.
6497 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6498 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6499 vect_update_interleaving_chain, vect_same_range_drs,
6500 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6501 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6502 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6503 vect_analyze_group_access, vect_analyze_data_ref_access,
6504 vect_create_data_ref_ptr, vect_transform_strided_load,
6505 vect_record_strided_load_vectors): Likewise.
6506 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6507 vect_model_load_cost, vectorizable_store, vectorizable_load,
6508 vect_remove_stores, new_stmt_vec_info): Likewise.
6509 * tree-vect-slp.c (vect_build_slp_tree,
6510 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6511
51c213f7
RG
65122011-05-18 Richard Guenther <rguenther@suse.de>
6513
6514 PR middle-end/48989
6515 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6516 operand verification.
6517 (verify_gimple_assign_binary): Likewise.
6518 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6519 to non-1-precision BOOLEAN_TYPEs.
6520
8f5e5434
TV
65212011-05-18 Tom de Vries <tom@codesourcery.com>
6522
6523 PR target/45098
6524 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6525
116bc3a4
JJ
65262011-05-18 Jakub Jelinek <jakub@redhat.com>
6527
6528 PR tree-optimization/49000
6529 * tree-ssa.c (execute_update_addresses_taken): Call
6530 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6531 be rewritten and decl has been marked for renaming, reset
6532 the debug stmt.
6533
26a8964c
JM
65342011-05-17 Joseph Myers <joseph@codesourcery.com>
6535
6536 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6537 enum_opts_set when testing if attributes have set -mfpmath=.
6538
82bd45d7
RS
65392011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6540
6541 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6542
267ffce3
UB
65432011-05-17 Uros Bizjak <ubizjak@gmail.com>
6544
6545 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6546 info->entry with 0
6547 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6548 id.transform_lang_insert_block with NULL.
6549
65502011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
6551
6552 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6553 (output_fp_compare): Change args 3 and 4 to bool.
6554 (ix86_expand_call): Change arg 6 to bool.
6555 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6556 (ix86_attr_length_vex_default): Change arg 3 to bool.
6557 * config/i386/i386.md: Update all uses.
6558 * config/i386/i386.c: Ditto.
6559 (ix86_flags_dependent): Change return type to bool.
6560
5beaf664
RG
65612011-05-17 Richard Guenther <rguenther@suse.de>
6562
6563 * gimple.c (type_hash_pair_compare): Fix comparison.
6564
008bad7a
RG
65652011-05-17 Richard Guenther <rguenther@suse.de>
6566
6567 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6568 case some more, fix final hash value of the non-singleton case.
6569
36461340
RG
65702011-05-17 Richard Guenther <rguenther@suse.de>
6571
6572 PR bootstrap/49013
6573 Revert
6574 2011-05-16 Richard Guenther <rguenther@suse.de>
6575
6576 * gimple.c (gimple_types_compatible_p_1): Use names of the
6577 type itself, not its main variant.
6578 (iterative_hash_gimple_type): Likewise.
6579
6b6a59f3
RG
65802011-05-17 Richard Guenther <rguenther@suse.de>
6581
6582 * gimple.c (gimple_register_canonical_type): Use the main-variant
6583 leader for computing the canonical type.
6584
4ffc4134
NC
65852011-05-17 Nick Clifton <nickc@redhat.com>
6586
a1d8754e
NC
6587 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6588 moves.
6589
4ffc4134
NC
6590 * config/rx/rx.md: Add peephole to remove redundant extensions
6591 after loads.
39960f7a
NC
6592 (bitset_in_memory): Use rx_restricted_mem_operand.
6593 (bitinvert_in_memory): Likewise.
6594 (bitclr_in_memory): Likewise.
4ffc4134 6595
b3db92ac
KI
65962011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6597 Nick Clifton <nickc@redhat.com>
6598
6599 * config/rx/rx.md: Add peepholes to match a register move followed
6600 by a comparison of the moved register. Replace these with an
6601 addition of zero that does both actions in one instruction.
6602
8637e32a
JJ
66032011-05-17 Jakub Jelinek <jakub@redhat.com>
6604
6605 PR target/48986
6606 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6607 predicate to allow CONST_INT.
6608 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6609
8023568e
JM
66102011-05-16 Joseph Myers <joseph@codesourcery.com>
6611
6612 * opts-common.c (opt_enum_arg_to_value): New.
6613 * opts.h (opt_enum_arg_to_value): Declare.
6614 * config/i386/i386.opt (fpmath): Remove.
6615 (mfpmath=): Use Enum, Init and Save.
6616 (fpmath_unit): New Enum and EnumValue entries.
6617 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6618 name for function fpmath state.
6619 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6620 * config/i386/i386.c: Include diagnostic.h.
6621 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 6622 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 6623 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 6624 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
6625 (x86_function_specific_save, ix86_function_specific_restore):
6626 Don't handle fpmath state specially.
6627 (ix86_function_specific_print): Pass fpmath state to
6628 ix86_target_string instead of printing in this function.
6629 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6630 Handle enum attributes.
6631 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6632 (ix86_valid_target_attribute_tree): Update option_strings
6633 handling. Handle fpmath as enum option.
6634 (ix86_can_inline_p): Update field names for function fpmath state.
6635 (ix86_expand_builtin): Update call to ix86_target_string.
6636 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6637 (ix86_fpmath): Remove.
6638 * config/i386/t-i386 (i386.o): Update dependencies.
6639
9e8d926e
JM
66402011-05-16 Joseph Myers <joseph@codesourcery.com>
6641
6642 PR preprocessor/48677
6643 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6644 from decoded_options[0], not from itself.
6645
f6449011
UB
66462011-05-16 Uros Bizjak <ubizjak@gmail.com>
6647
6648 * config/i386/constraints.md (z): New constraint.
6649 * config/i386/i386.c (c): New mode attribute.
6650 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6651 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6652 constraint for operand 0.
6653 (*call_vzeroupper): Ditto.
6654 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6655 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6656 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6657 Use "lzm" constraint for operand 0.
6658 (*call_pop_vzeroupper): Ditto.
6659 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6660 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6661 constraint for operand 0.
6662 (*sibcall_vzeroupper): Ditto.
6663 (*sibcall_rex64_ms_sysv): Ditto.
6664 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6665 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6666 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6667 (*sibcall_pop_vzeroupper): Ditto.
6668 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6669 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6670 mode iterator. Use "<c>zm" constraint for operand 1.
6671 (*call_value_vzeroupper): Ditto.
6672 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 6673 for operand 1.
f6449011
UB
6674 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6675 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6676 *call_value_pop_1. Use "lzm" constraint for operand 1.
6677 (*call_value_pop_vzeroupper): Ditto.
6678 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6679 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6680 mode iterator. Use "Uz" constraint for operand 1.
6681 (*sibcall_value_vzeroupper): Ditto.
6682 (*sibcall_value_rex64_ms_sysv): Ditto.
6683 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6684 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6685 constraint for operand 1.
6686 (*sibcall_value_pop_vzeroupper): Ditto.
6687 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6688 and "z" constraint for operand 2.
6689 (*tls_global_dynamic_32_gnu): Ditto.
6690 (*tls_local_dynamic_base_32_gnu): Ditto.
6691 (*tls_local_dynamic_base_64): Ditto.
6692 (*tls_local_dynamic_32_once): Ditto.
6693 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6694 Update all callers.
6695 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6696
c11b6902
RG
66972011-05-16 Richard Guenther <rguenther@suse.de>
6698
6699 * gimple.c (gimple_types_compatible_p_1): Use names of the
6700 type itself, not its main variant.
6701 (iterative_hash_gimple_type): Likewise.
6702
1e83b5f1
RG
67032011-05-16 Richard Guenther <rguenther@suse.de>
6704
f6449011
UB
6705 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6706 always visit pointer target and function result and argument types.
1e83b5f1 6707
62e36382
JM
67082011-05-16 Jason Merrill <jason@redhat.com>
6709
6710 PR c++/48999
6711 * tree-inline.c (copy_statement_list): Put back recursion.
6712
687027a4
GJL
67132011-05-16 Georg-Johann Lay <avr@gjlay.de>
6714
6715 PR target/27663
6716 PR target/41076
6717 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6718 * config/avr/avr.md ("*ior<mode>qi.byte0",
6719 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6720
f24a5190
GJL
67212011-05-16 Georg-Johann Lay <avr@gjlay.de>
6722
6723 PR target/45099
6724 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6725 register is needed for a function argument.
6726
3066f593
RG
67272011-05-16 Richard Guenther <rguenther@suse.de>
6728
6729 * gimple.c (struct type_hash_pair): New type.
6730 (type_hash_pair_compare): New function.
f6449011 6731 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 6732
b2ab2cf4
RE
67332011-05-16 Revital Eres <revital.eres@linaro.org>
6734
f6449011 6735 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 6736
dfb737fc
UB
67372011-05-15 Uros Bizjak <ubizjak@gmail.com>
6738
6739 * config/i386/i386.md (floating point move splitters): Fix
6740 usage of standard_80387_constant_p.
f6449011 6741 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 6742
8caa1de0
UB
67432011-05-15 Uros Bizjak <ubizjak@gmail.com>
6744
6745 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6746
8a519095
EB
67472011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6748
6749 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6750 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6751 (tree_ssa_lim_finalize): Likewise.
6752
479fecd3
UB
67532011-05-14 Uros Bizjak <ubizjak@gmail.com>
6754
6755 * config/i386/constraint.md (Yd, Yx): New register constraints.
6756 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6757 Yd conditional register constraint.
6758 (*movtf_internal): Use standard_sse_constant_opcode.
6759 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6760 Yx conditional register constraint.
6761 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6762 Yd conditional register constraint. Use standard_sse_constant_p to
6763 check for valid SSE constants and call standard_sse_constant_opcode to
6764 output SSE insn.
6765 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6766 constants and call standard_sse_constant_opcode to output SSE insn.
6767 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6768 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6769 optimize_size is set.
6770 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6771
2d8c9ad5
TB
67722011-05-14 Tobias Burnus <burnus@net-b.de>
6773
6774 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6775
411a20d6
MJ
67762011-05-13 Martin Jambor <mjambor@suse.cz>
6777
6778 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6779 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6780 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6781 (evaluate_conditions_for_ipcp_clone): Removed.
6782 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6783 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6784 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6785
dc764d10
EB
67862011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6787
6788 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6789 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6790 lieu of MAY_HAVE_DEBUG_STMTS.
6791 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6792 debug statements if !MAY_HAVE_DEBUG_STMTS.
6793
9f47a24e
MT
67942011-05-13 Martin Thuresson <martint@google.com>
6795
6796 PR gcov-profile/47793
6797 * libgcov.c (gcov_exit): Support relative profile paths.
6798 * doc/invoke.texi (-fprofile-dir): Update for above change.
6799
b8a71aed
RG
68002011-05-13 Richard Guenther <rguenther@suse.de>
6801
6802 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6803 type-pair caching, do not compare hashes.
6804
eb9f9259
NF
68052011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6806
6807 PR middle-end/48965
6808 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6809 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6810
3c6cbf7a
KT
68112011-05-13 Kai Tietz <ktietz@redhat.com>
6812
6813 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6814 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6815 compatible type for TRUTH_NOT_EXPR.
6816
2e7f5dc0
L
68172011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6818
dc764d10 6819 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
6820 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6821 can_create_pseudo_p ().
6822
e834e95c
RG
68232011-05-13 Richard Guenther <rguenther@suse.de>
6824
6825 PR lto/48978
6826 * gimple.c (iterative_hash_gimple_type): Revert change in
6827 pointer target and function result and argument hashing.
6828
34203483
UB
68292011-05-13 Uros Bizjak <ubizjak@gmail.com>
6830
6831 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6832 (*movxf_internal_nointeger): Ditto.
6833 (*movdf_internal_rex64): Ditto.
6834 (*movdf_internal): Ditto.
6835 (*movdf_internal_nointeger): Ditto.
6836 (*movsf_internal): Ditto.
6837 (sincos splitters): Use can_create_pseudo ().
6838
7eb68c06
JM
68392011-05-13 Joseph Myers <joseph@codesourcery.com>
6840
6841 * config/i386/i386-opts.h: New.
6842 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6843 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6844 ix86_section_threshold): Remove.
6845 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6846 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6847 OPT_mbranch_cost_.
6848 (ix86_option_override_internal): Don't decode strings for options
6849 other than -march=, -mtune= and -mfpmath=. Don't allow for
6850 __attribute__ uses in remaining diagnostics for options with
34203483 6851 string arguments. Don't check for integer arguments being negative.
7eb68c06 6852 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 6853 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
6854 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6855 ix86_branch_cost, ix86_section_threshold): Remove.
6856 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6857 HeaderInclude.
6858 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6859 but not Var.
6860 (masm=): Use Enum and Init.
6861 (asm_dialect): New Enum and EnumValue entries.
6862 (mbranch-cost=): Use UInteger.
6863 (mlarge-data-threshold=): Use UInteger and Init.
6864 (mcmodel=): Use Enum and Init.
6865 (cmodel): New Enum and EnumValue entries.
6866 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6867 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6868 mregparm=): Use UInteger.
6869 (mstringop-strategy=): Use Enum and Init.
6870 (stringop_alg): New Enum and EnumValue entries.
6871 (mtls-dialect=): Use Enum and Init.
6872 (tls_dialect): New Enum and EnumValue entries.
6873 (mabi=): Use Enum and Init.
6874 (calling_abi): New Enum and EnumValue entries.
6875 (mveclibabi=): Use Enum and Init.
6876 (ix86_veclibabi): New Enum and EnumValue entries.
6877
f67e203c
NC
68782011-05-13 Nick Clifton <nickc@redhat.com>
6879
34203483
UB
6880 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6881 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 6882
221df0b6
KT
68832011-05-13 Kai Tietz <ktietz@redhat.com>
6884
6885 PR middle-end/48984
6886 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6887 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6888 (gimple_boolify): Check for cast for boolean_type_node instead for
6889 BOOLEAN_TYPE.
6890
208cb8cb
RG
68912011-05-13 Richard Guenther <rguenther@suse.de>
6892
6893 PR tree-optimization/48172
6894 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6895 multiplying by number of iterations for equal step.
6896 (vect_create_cond_for_alias_checks): Likewise.
6897
b88ecf55
AS
68982011-05-13 Andreas Schwab <schwab@redhat.com>
6899
6900 * configure.ac: Use AS_HELP_STRING throughout.
6901 * configure: Regenerate.
6902
569b527e
L
69032011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6904
34203483 6905 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
6906 (ix86_emit_restore_regs_using_mov): Likewise.
6907 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6908
8b9a1428
AS
69092011-05-12 Anatoly Sokolov <aesok@post.ru>
6910
6911 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6912 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6913 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6914 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6915 RTX_OK_FOR_OLO10_P): ...here.
6916 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6917 SYMBOLIC_CONST.
6918
1d15f620
KT
69192011-05-12 Kai Tietz <ktietz@redhat.com>
6920
6921 * gimplify.c (gimple_boolify): Re-boolify expression
6922 arguments even if expression type is of kind BOOLEAN_TYPE.
6923 (gimplify_boolean_expr): Removed.
6924 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6925 and XOR. Additional take care that we keep expression's type.
6926 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6927 of TRUTH_AND|OR|XOR_EXPR.
6928
c2b5fc8d
JJ
69292011-05-12 Jakub Jelinek <jakub@redhat.com>
6930
6931 PR tree-optimization/48975
6932 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6933 on all bbs here and free and clear ifc_bbs at the end.
6934
61332f77
RG
69352011-05-12 Richard Guenther <rguenther@suse.de>
6936
6937 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6938 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6939 until after simple checks.
6940 (gimple_types_compatible_p): Likewise.
6941 (iterative_hash_gimple_type): Always hash pointer targets
6942 and function return and argument types.
6943 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6944 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6945 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6946 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6947 completely in the simple compare section.
6948 (gimple_register_canonical_type): Query the cache again after
6949 registering.
6950
e2a3a5f1
RG
69512011-05-12 Richard Guenther <rguenther@suse.de>
6952
6953 PR tree-optimization/48172
6954 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6955 the number of iterations from the segment size calculation.
6956 (vect_create_cond_for_alias_checks): Adjust.
6957
2c703f3a
JJ
69582011-05-12 Jakub Jelinek <jakub@redhat.com>
6959
6960 PR debug/48967
6961 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6962 if validate_subreg fails.
6963
69642011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
6965
6966 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6967 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6968 early.
6969
87e91fca
DD
69702011-05-12 DJ Delorie <dj@redhat.com>
6971
d53903d6 6972 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
6973 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6974 created builtin into rx_builtins array.
6975 (rx_builtin_decl): New function.
34203483 6976 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 6977
5f2f13fd
DD
69782011-05-12 DJ Delorie <dj@redhat.com>
6979 Nick Clifton <nickc@redhat.com>
6980
6981 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6982 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6983 (rx_is_legitimate_address): Add pre-decrement and post-increment
6984 addressing in HImode and QImode. Fix test for out of range
6985 REG+INT addressing.
87e91fca 6986 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 6987 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 6988 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 6989 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 6990
57421f45
JM
69912011-05-11 Jason Merrill <jason@redhat.com>
6992
6993 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6994
898c90c0
EB
69952011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6996
6997 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6998 reindent the subsequent block.
6999
79bec923
ST
70002011-05-11 Satoru Takabayashi <satorux@google.com>
7001 Paul Pluzhnikov <ppluzhnikov@google.com>
7002
34203483 7003 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
7004 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
7005 * config.in: Add LINKER_HASH_STYLE.
7006 * configure.ac: Add --with-linker-hash-style.
7007 * configure: Regenerate.
79bec923 7008
d0340959
RG
70092011-05-11 Richard Guenther <rguenther@suse.de>
7010
7011 PR middle-end/48964
7012 * gimple.c (iterative_hash_canonical_type): Fix typo.
7013
cb032fee
UB
70142011-05-11 Uros Bizjak <ubizjak@gmail.com>
7015
7016 * config/i386/i386.c (legitimize_tls_address)
479fecd3 7017 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
7018 expanders directly for TARGET_GNU2_TLS. Determine pic and
7019 __tls_get_addr symbol reference here. Update call to
7020 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 7021 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
7022 expanders directly for TARGET_GNU2_TLS. Determine
7023 __tls_get_addr symbol reference here. Update call to
7024 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
7025 unique UNSPEC REG_EQUIV to libcall block.
7026 (ix86_tls_get_addr): Declare static.
7027 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
7028 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
7029 Do not determine pic and __tls_get_addr symbol reference here. Do not
7030 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
7031 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
7032 (tls_global_dynamic_64): Add operand 2. Do not determine
7033 __tls_get_addr symbol reference here. Do not call
7034 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
7035 (tls_local_dynamic_base64): Ditto for operand 1.
7036
6d3cc8f0
EB
70372011-05-11 Eric Botcazou <ebotcazou@adacore.com>
7038
7039 * function.c (expand_function_start): Initialize stack_check_probe_note
7040 only if the generic stack checking mechanism is used.
7041
51e020fc
RG
70422011-05-11 Richard Guenther <rguenther@suse.de>
7043
7044 PR tree-optimization/15256
7045 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
7046 (A & B) | C, combine (A op CST1) op CST2.
7047 (tree_ssa_forward_propagate_single_use_vars): Only bother to
7048 visit assigns that have uses.
7049
51545682
NF
70502011-05-11 Nathan Froyd <froydnj@codesourcery.com>
7051
cb032fee 7052 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
7053 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
7054 (unpack_ts_type_common_value_fields): ...this. Update comment.
7055 (unpack_value_fields): Adjust for renaming.
7056 (lto_input_ts_type_tree_pointers): Split into...
7057 (lto_input_ts_type_common_tree_pointer): ...this and...
7058 (lto_input_ts_type_non_common_tree_pointers): ...this.
7059 (lto_input_tree_pointers): Adjust for above split.
7060 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
7061 (pack_ts_type_common_value_fields): ...this. Update comment.
7062 (lto_output_ts_type_tree_pointers): Split into...
7063 (lto_output_ts_type_common_tree_pointers): ...this and...
7064 (lto_output_ts_type_non_common_tree_pointers): ...this.
7065 (lto_output_tree_pointers): Adjust for above split.
7066 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
7067 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
7068 * stor-layout.c (vector_type_mode): Adjust location of mode field.
7069 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
7070 Define.
7071 (struct tree_type): Split into...
7072 (struct tree_type_common: ...this and...
7073 (struct tree_type_with_lang_specific): ...this and...
7074 (struct tree_type_non_common): ...this. Adjust accessor macros
7075 accordingly.
7076 (TYPE_VALUES_RAW): Define.
7077 (union tree_node): Update for above changes.
7078 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
7079 TS_TYPE_NON_COMMON.
7080 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
7081 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
7082 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
7083 * treestructu.def (TS_TYPE): Remove.
7084 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
7085 Define.
7086
b03c3082
JJ
70872011-05-11 Jakub Jelinek <jakub@redhat.com>
7088
7089 PR debug/48159
7090 * tree-ssa.c (reset_debug_uses): New function.
7091 * tree-flow.h (reset_debug_uses): New prototype.
7092 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
7093 * tree-loop-distribution.c (generate_loops_for_partition): Call
7094 reset_debug_uses on the stmts that will be removed. Keep around
7095 all debug stmts, don't count them as bits in partition bitmap.
7096 (generate_builtin): Don't count debug stmts or labels as bits in
7097 partition bitmap.
7098
b5e04de5
RG
70992011-05-11 Richard Guenther <rguenther@suse.de>
7100
7101 * gimple.c (gimple_type_hash_1): Merge with ...
7102 (gimple_type_hash): ... this.
7103 (gtc_visit): Remove mode parameter and simplify accordingly.
7104 (gimple_types_compatible_p_1): Likewise.
7105 (gimple_types_compatible_p): Likewise.
7106 (iterative_hash_gimple_type): Likewise.
7107 (visit): Likewise.
7108 (gimple_type_eq): Adjust.
7109
fc6970e4
RE
71102011-05-11 Revital Eres <revital.eres@linaro.org>
7111
7112 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
7113 enters the branch create an anti edge in the opposite direction
7114 to prevent the creation of reg-moves.
7115 * modulo-sched.c: Adjust comment to reflect the fact we are
7116 scheduling closing branch.
7117 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
7118 (stage_count): New field in struct partial_schedule.
7119 (calculate_stage_count): New function.
7120 (normalize_sched_times): Rename to reset_sched_times and handle
7121 incrementing the sched time of the nodes by a constant value
7122 passed as parameter.
7123 (duplicate_insns_of_cycles): Skip closing branch.
7124 (sms_schedule_by_order): Schedule closing branch.
7125 (ps_insn_find_column): Handle closing branch.
7126 (sms_schedule): Call reset_sched_times and adjust the code to
7127 support scheduling of the closing branch.
7128 (ps_insert_empty_row): Update calls to normalize_sched_times
7129 and rotate_partial_schedule functions.
7130
41a58a92
RG
71312011-05-11 Richard Guenther <rguenther@suse.de>
7132
7133 PR middle-end/48953
7134 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
7135
e9f8dcf9
JM
71362011-05-11 Joseph Myers <joseph@codesourcery.com>
7137
cb032fee
UB
7138 * opts.c (finish_options): Move warning settings from process_options.
7139 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 7140
10c224a9
RG
71412011-05-11 Richard Guenther <rguenther@suse.de>
7142
7143 PR tree-optimization/18041
7144 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
7145 (simplify_bitwise_binary): ... this. Handle operand conversions
7146 by applying them to the result instead.
7147 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
7148
825b27de
RG
71492011-05-11 Richard Guenther <rguenther@suse.de>
7150
7151 * gimple.c (gimple_canonical_types_compatible_p): Split out
7152 from gimple_types_compatible_p and friends. Do not recurse
7153 to pointed-to types.
7154 (gimple_canonical_type_eq): Use it.
7155 (iterative_hash_canonical_type): Split out from
7156 iterative_hash_gimple_type and friends. Do not recurse
7157 to pointed-to types.
7158 (gimple_canonical_type_hash): Use it, allocate the hash here.
7159
ca756625
RE
71602011-05-11 Revital Eres <revital.eres@linaro.org>
7161
7162 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
7163 recognizing doloop.
7164
b8abece3
RE
71652011-05-11 Revital Eres <revital.eres@linaro.org>
7166
7167 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
7168 instead of PREV_INSN.
7169
ce7b3761
RE
71702011-05-11 Revital Eres <revital.eres@linaro.org>
7171
7172 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
7173 * loop-doloop.c (doloop_condition_get): Likewise.
7174 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
7175 (doloop_end): New.
7176 * config/arm/arm.md (*addsi3_compare0): Remove "*".
7177
a9dc9d37
NF
71782011-05-10 Nathan Froyd <froydnj@codesourcery.com>
7179
7180 * tree.def (CASE_LABEL_EXPR): Add an operand.
7181 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
7182
96703596
JM
71832011-05-10 Joseph Myers <joseph@codesourcery.com>
7184
7185 * c-decl.c (c_override_global_bindings_to_false): Remove.
7186 (global_bindings_p): Don't check
7187 c_override_global_bindings_to_false.
7188 * c-tree.h (c_override_global_bindings_to_false): Remove.
7189 * c-typeck.c (composite_type): Don't set
7190 c_override_global_bindings_to_false.
7191
dbcc9f08
MM
71922011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7193
7194 PR target/48857, 48495
7195 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
7196 (VSX_MODE): Ditto.
7197 (VSX_MOVE_MODE): Ditto.
7198 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
7199 VSX vector types. Add V2DImode.
7200 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
7201 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
7202 (MODES_TIEABLE_P): Ditto.
7203
7204 * config/rs6000/rs6000.c (rs6000_emit_move): Use
7205 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
7206 VSX_VECTOR_MODE.
7207 (init_cumulative_args): Ditto.
7208 (rs6000_function_arg_boundary): Ditto.
7209 (rs6000_function_arg_advance_1): Ditto.
7210 (rs6000_function_arg): Ditto.
7211 (rs6000_function_ok_for_sibcall): Ditto.
7212 (emit_frame_save): Ditto.
7213 (rs6000_function_value): Ditto.
7214 (rs6000_libcall_value): Ditto.
7215
4a68b4ca
JM
72162011-05-10 Joseph Myers <joseph@codesourcery.com>
7217
7218 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7219 i386/darwin-lib.h to $libgcc_tm_file.
7220 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
7221
bcb521e9
JM
72222011-05-10 Joseph Myers <joseph@codesourcery.com>
7223
7224 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
7225
f10d3ac9
JM
72262011-05-10 Joseph Myers <joseph@codesourcery.com>
7227
cb032fee 7228 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
7229 * config/rs6000/rs6000-tables.opt: New file (generated).
7230 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
7231 rs6000/rs6000-tables.opt to extra_options.
7232 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
7233 * config/rs6000/rs6000.c (rs6000_select): Remove.
7234 (processor_target_table): Move contents to rs6000-cpus.def.
7235 (darwin_rs6000_override_options): Check
7236 global_options_set.x_rs6000_cpu_index instead of
7237 rs6000_select[1].string.
7238 (rs6000_option_override_internal): Likewise.
7239 (rs6000_handle_option): Don't assert that global structures are in
7240 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
7241 (rs6000_default_cpu): New variable.
7242 (rs6000_file_start): Set it instead of local default_cpu. Check
7243 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
7244 global_options_set.x_rs6000_tune_index instead of rs6000_select.
7245 (rs6000_darwin_file_start): Check rs6000_default_cpu and
7246 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
7247 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
7248 rs6000_select): Remove.
7249 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
7250 Remove.
7251 (mcpu=, mtune=): Use Var, Init, Enum and Save.
7252 * config/rs6000/t-rs6000
7253 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
7254 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7255 global_options_set.x_rs6000_cpu_index instead of
7256 rs6000_select[1].string.
7257 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
7258 global_options_set.x_rs6000_cpu_index instead of
7259 rs6000_select[1].string.
7260
80cf2e08
JM
72612011-05-10 Joseph Myers <joseph@codesourcery.com>
7262
7263 * config.gcc (libgcc_tm_file): Define instead of including files
7264 from ../../libgcc/config/ in tm_file.
cb032fee 7265 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
7266 * configure: Regenerate.
7267 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
7268 libgcc_tm.h, cs-libgcc_tm.h): New.
7269 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
7270 (clean): Remove libgcc_tm.h.
7271 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
7272 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
7273 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
7274
fd01a351
GJL
72752011-05-10 Georg-Johann Lay <avr@gjlay.de>
7276
7277 PR target/48896
7278 * config/avr/avr.c (avr_ret_register): Return unsigned int
7279 instead of int.
7280 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
7281 it to avr_libcall_value.
7282 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
7283 expand_expr.
7284 (avr_expand_binop_builtin): Ditto.
7285 (avr_expand_unop_builtin): Ditto.
7286
34cc3c86
DD
72872011-05-10 DJ Delorie <dj@redhat.com>
7288
7289 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
7290 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
7291 * config/rx/rx.c (rx_align_for_label): Add label and
7292 uses_threshold parameters. Do not align when the label is not
7293 used enough.
7294 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
7295
be173289
RG
72962011-05-10 Richard Guenther <rguenther@suse.de>
7297
7298 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
7299 a series of conversions and apply foldings similar to what
7300 fold-const does.
7301 (tree_ssa_forward_propagate_single_use_vars): Call it.
7302
e7f78021
JJ
73032011-05-10 Jakub Jelinek <jakub@redhat.com>
7304
6ae70ea2
JJ
7305 PR tree-optimization/48611
7306 PR tree-optimization/48794
7307 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
7308 referenced from RESX or EH_DISPATCH arguments.
7309
e7f78021
JJ
7310 PR debug/48928
7311 * dfp.c (decimal_to_decnumber): Handle conversion from
7312 dconst{1,2,m1,half}.
7313
fca132b9
UB
73142011-05-09 Uros Bizjak <ubizjak@gmail.com>
7315
7316 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
7317 for !flag_prefer_avx128.
7318 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
7319
e4c03378
EB
73202011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7321
7322 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
7323 (fold_ternary_loc): Use expr_location_or.
7324
805d6a75
L
73252011-05-09 H.J. Lu <hongjiu.lu@intel.com>
7326
7327 PR debug/48853
7328 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
7329 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
7330 Pmode and mem_mode is not VOIDmode.
7331
e4c03378 73322011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 7333
e4c03378
EB
7334 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
7335 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 7336
51e7f377
UB
73372011-05-09 Uros Bizjak <ubizjak@gmail.com>
7338
7339 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
7340 (const_pow2_1_to_8_operand): Ditto.
7341 (const_pow2_1_to_128_operand): Ditto.
7342 (const_pow2_1_to_32768_operand): Ditto.
7343 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
7344 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
7345 in insn constraint to check integer value of operand 3.
7346 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
7347
7348 (PINSR_MODE): New mode iterator.
7349 (sse2p4_1): New mode attribute.
7350 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
7351 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
7352 iterator. Use const_int_operand instead of
7353 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
7354 exact_log2 in insn constraint to check integer value of operand 3.
7355
73562011-05-09 Uros Bizjak <ubizjak@gmail.com>
7357
7358 * config/i386/sse.md (blendbits): Remove mode attribute.
7359 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7360 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7361 Check integer value of operand 3 in insn constraint.
7362
0ca8de87
RG
73632011-05-09 Richard Guenther <rguenther@suse.de>
7364
7365 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
7366 for diagnostics.
7367 (lto_symtab_merge): Likewise. Do not register types here.
7368 (lto_symtab_merge_decls_2): Likewise.
7369 (lto_symtab_merge_decls_1): Likewise.
7370 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
7371 * gimple.c (enum gtc_mode): Declare.
7372 (gimple_types_compatible_p): Make static.
7373
a9e6994a
AK
73742011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7375
7376 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
7377 temporary register to match Pmode.
7378
fb55d62e
UB
73792011-05-09 Uros Bizjak <ubizjak@gmail.com>
7380
7381 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
7382 and *vec_concatv4si_1_avx.
7383
eb1485a6
UB
73842011-05-09 Uros Bizjak <ubizjak@gmail.com>
7385
7386 PR rtl-optimization/48927
7387 * ira-conflicts.c (commutative_constraint_p): Use
7388 recog_data.alternative_enabled_p to disable alternatives where
7389 "enabled" attribute is false.
7390 (get_dup_num): Ditto.
7391 * ira-lives.c (single_reg_class): Ditto.
7392 (ira_implicitly_set_insn_hard_regs): Ditto.
7393
c46d001a
EB
73942011-05-09 Eric Botcazou <ebotcazou@adacore.com>
7395
7396 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
7397 (dataflow_set_preserve_mem_locs): Likewise.
7398
73992011-05-09 Philipp Thomas <pth@suse.de>
7400
6d9e7c41
PT
7401 * config/mep/mep.c (mep_validate_vliw): Syntax description
7402 should not be translated.
7403
d371df6f
JM
74042011-05-09 Joseph Myers <joseph@codesourcery.com>
7405
7406 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
7407 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 7408 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
7409 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
7410 MIPS_ARCH_OPTION_NATIVE): Define.
7411 * config/mips/mips.c (mips_cpu_info_table): Move contents to
7412 mips-cpus.def.
7413 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
7414 mips_parse_cpu): Remove.
7415 (mips_cpu_info_from_opt, mips_default_arch): New.
7416 (mips_handle_option): Don't assert that global structures are in
7417 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
7418 (mips_option_override): Use new variables and functions to set
eb1485a6 7419 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
7420 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
7421 definition.
7422 * config/mips/mips.opt (march=): Use ToLower and Enum.
7423 (mips): Use ToLower, Enum and Var.
7424 (mtune=): Use ToLower and Enum.
7425 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
7426
4fc07af9
JH
74272011-05-08 Jan Hubicka <jh@suse.cz>
7428
7429 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
7430 Arrange type pairs to be UID ordered.
7431 (gimple_lookup_type_leader): Make inline.
7432
2cf320a8
NC
74332011-05-09 Nick Clifton <nickc@redhat.com>
7434
61d6def5
NC
7435 PR target/48899
7436 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
7437 PROCESSOR_DEFAULT.
7438
2cf320a8
NC
7439 PR target/48897
7440 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
7441 variable 's'.
7442
4f82319d
CLT
74432011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
7444
7445 * combine.c (simplify_comparison): Abstract out parts into...
7446 (simplify_compare_const): ... new function.
7447 (try_combine): Generalize parallel arithmetic/compare combining
7448 to call simplify_compare_const() and CANONICALIZE_COMPARE().
7449
74605a11
JH
74502011-05-08 Jan Hubicka <jh@suse.cz>
7451
7452 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
7453 (cgraph_create_virtual_clone): Call hooks once virtual clone
7454 is finished.
74605a11 7455 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
7456 * ipa-cp.c (ipcp_estimate_growth): Use
7457 estimate_ipcp_clone_size_and_time.
74605a11
JH
7458 * ipa-inline-transform.c (clone_inlined_nodes): Update.
7459 * lto-cgraph.c (input_node): Update.
7460 * ipa-inline.c (recursive_inlining): Update.
7461 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7462 (evaluate_conditions_for_known_args): Break out from ...
7463 (evaluate_conditions_for_edge): ... here.
7464 (evaluate_conditions_for_ipcp_clone): New function.
7465 (inline_node_duplication_hook): Update clone summary based
7466 on parameter map.
7467 (estimate_callee_size_and_time): Rename to ...
7468 (estimate_node_size_and_time): take NODE instead of EDGE;
7469 take POSSIBLE_TRUTHS as argument.
7470 (estimate_callee_size_and_time): Update.
7471 (estimate_ipcp_clone_size_and_time): New function.
7472 (do_estimate_edge_time): Update.
7473
5c049507
RG
74742011-05-08 Richard Guenther <rguenther@suse.de>
7475
7476 PR middle-end/48908
7477 PR middle-end/48905
7478 * expmed.c (expand_shift_1): Compute adjusted constant shift
7479 amount manually.
7480
f64c36ba
EB
74812011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7482
7483 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7484
c461a957
EB
74852011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7486
7487 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7488
7c74e556
JW
74892011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7490
7491 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7492
b4c0a884
JH
74932011-05-07 Jan Hubicka <jh@suse.cz>
7494
a9bcb3f0
EB
7495 * ipa-inline-transform.c (inline_call): Account when program size
7496 decreases.
b4c0a884 7497 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
7498 (edge_badness): Reorganize to be power 2 based; fix thinko when
7499 computing badness for negative growth; update comments to match
7500 reality; better dumps.
b4c0a884 7501
c99c0026
EB
75022011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7503
7504 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7505 type to bool and adjust comment.
7506 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7507 (fold_mathfn_compare): Remove calls to global_bindings_p.
7508 (fold_inf_compare): Likewise.
7509 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7510 * c-tree.h (global_bindings_p): Adjust prototype.
7511 * c-decl.c (global_bindings_p): Return bool and simplify.
7512
1400c8e5
ZD
75132011-05-07 Zdenek Dvorak <ook@ucw.cz>
7514
7515 PR tree-optimization/48837
7516 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7517 when accumulator transformation is performed.
7518
5d0878e7
JH
75192011-05-06 Jan Hubicka <jh@suse.cz>
7520
a9bcb3f0
EB
7521 * i386.h (ix86_tune_indices): Add
7522 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 7523 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
7524 * i386.c (initial_ix86_tune_features): Add
7525 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
7526 (software_prefetching_beneficial_p): Remove predicate.
7527 (ix86_option_override_internal): Use new macro.
7528
58696ce5
JH
75292011-05-06 Jan Hubicka <jh@suse.cz>
7530
7531 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7532
c47d0034
JH
75332011-05-06 Jan Hubicka <jh@suse.cz>
7534
7535 * cgraph.c (cgraph_add_thunk): Create real function node instead
7536 of alias node; finalize it and mark needed/reachale; arrange visibility
7537 to be right and add it into the corresponding same comdat group list.
7538 (dump_cgraph_node): Dump thunks.
7539 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
7540 cgraph_function_with_gimple_body_p,
7541 cgraph_first_function_with_gimple_body,
c47d0034
JH
7542 cgraph_next_function_with_gimple_body): New functions.
7543 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7544 New macros.
7545 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7546 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7547 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7548 devirtualization when optimizing.
7549 (verify_cgraph_node): Verify thunks.
7550 (cgraph_analyze_function): Analyze thunks.
7551 (cgraph_mark_functions_to_output): Output thunks only in combination
7552 with function they are assigned to.
7553 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7554 alias into normal node.
7555 (assemble_thunks): New functoin.
7556 (cgraph_expand_function): Use it.
7557 * lto-cgraph.c (lto_output_node): Stream thunks.
7558 (input_overwrite_node): Stream in thunks.
7559 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7560 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7561 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7562 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7563 (inline_analyze_function): Do not care about thunk jump functions.
7564 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
7565 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7566 cgraph_function_with_gimple_body_p.
7567 * passes.c (do_per_function_toporder): Use
7568 cgraph_function_with_gimple_body_p.
c47d0034
JH
7569 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7570 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7571 (function_called_by_processed_nodes_p): Likewise.
7572
d8f426ec
JM
75732011-05-06 Joseph Myers <joseph@codesourcery.com>
7574
7575 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7576 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7577 entries.
7578 (mabi=): Replace with separate entries for mabi=altivec,
7579 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7580 mabi=ieeelongdouble and mabi=ibmlongdouble.
7581 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7582 check for -mabi=spe without SPE ABI support here.
7583 (rs6000_handle_option): Replace OPT_mabi_ handling with
7584 OPT_mabi_altivec and OPT_mabi_spe handling.
7585
80bde45b
CC
75862011-05-06 Cary Coutant <ccoutant@google.com>
7587
7588 * dwarf2out.c (contains_subprogram_definition): New function.
7589 (should_move_die_to_comdat): Call it.
7590
a91926b9
JL
75912011-05-06 Jeff Law <law@redhat.com>
7592
7593 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7594 remove_ctrl_stmt_and_useless_edges.
7595 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7596 (fixup_template_block, thread_single_edge): Likewise.
7597 (mark_threaded_blocks): Use THREAD_TARGET.
7598
1fc1b66d
AM
75992011-05-06 Alan Modra <amodra@gmail.com>
7600
7601 PR target/48900
7602 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7603 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7604
e194de64
UB
76052011-05-06 Uros Bizjak <ubizjak@gmail.com>
7606
7607 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7608 constraint modifier to "r".
7609
d740dc9e
JM
76102011-05-06 Joseph Myers <joseph@codesourcery.com>
7611
7612 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7613 fall through for OPT_mcmodel_.
7614
cab78b15
AK
76152011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7616
7617 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7618 instruction sizes.
e194de64 7619 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 7620
ee6824ae
RR
76212011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7622
eb1485a6
UB
7623 PR target/47930
7624 * config/arm/arm.opt (marm): Document it.
7625 (mthumb): Reject negative variant.
ee6824ae 7626
9ef58464
UB
76272011-05-06 Uros Bizjak <ubizjak@gmail.com>
7628
7629 PR target/48898
7630 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7631 Fix typo in "ccvt" variable name.
7632
155b6176
TG
76332011-05-06 Tristan Gingold <gingold@adacore.com>
7634
7635 PR target/48895
7636 * config/vms/vms-ar.c (main): Remove cwd variable.
7637
3becc47b
JJ
76382011-05-06 Jakub Jelinek <jakub@redhat.com>
7639
7640 PR debug/48902
7641 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7642
3d528853
NF
76432011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7644
7645 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7646 * gimplify.c (gimplify_switch_expr): Likewise.
7647 * omp-low.c (expand_omp_sections): Likewise.
7648 * tree-eh.c (lower_try_finally_switch): Likewise.
7649 (lower_eh_dispatch): Likewise.
7650 * tree.h (build_case_label): Declare.
7651 * tree.c (build_case_label): Define.
7652
deb5046b
JM
76532011-05-05 Jason Merrill <jason@redhat.com>
7654
7655 PR c++/40975
7656 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7657 (copy_statement_list): Don't recurse.
7658 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7659 STATEMENT_LIST.
7660
013c0411
JM
76612011-05-05 Joseph Myers <joseph@codesourcery.com>
7662
7663 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7664 through from -mfpu= handling.
7665 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7666
a0905f8b
BS
76672011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7668
7669 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7670 POST_MODIFY.
7671
fc4538e4
SE
76722011-05-05 Steve Ellcey <sje@cup.hp.com>
7673
7674 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7675 for 11.31.
7676 (hppa[12]*-*-hpux11*): Ditto.
7677 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7678 * config/ia64/hpux-unix2003.h: New.
7679 * config/pa/pa-hpux1131.opt: New.
7680 * config/pa/pa-hpux1131.h: New.
7681 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7682 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 7683 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 7684
1e30c578
JJ
76852011-05-05 Jakub Jelinek <jakub@redhat.com>
7686
7687 PR debug/48853
7688 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7689 instead of mode as 3rd argument to recursive call.
7690 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7691 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7692 VOIDmode.
7693 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7694 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7695 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7696 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7697
d19eb620
JB
76982011-05-05 Julian Brown <julian@codesourcery.com>
7699
7700 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7701 parenthesis in D-register case.
7702
c860fe8c
JM
77032011-05-05 Joseph Myers <joseph@codesourcery.com>
7704
7705 * opt-functions.awk (var_type_struct): Handle Enum options.
7706 * optc-gen.awk: Don't check range of variables of character type.
7707 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7708 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7709 rs6000_sdata_name, rs6000_explicit_options): Remove.
7710 (rs6000_option_override_internal): Check for -malign-power here.
7711 Use global_options_set instead of rs6000_explicit_options.
7712 (rs6000_parse_fpu_option): Remove.
7713 (rs6000_handle_option): Access variables via opts and opts_set
7714 pointers. Use error_at and warning_at. Add fall-through
7715 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7716 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7717 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7718 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7719 here. Don't use rs6000_parse_fpu_option.
7720 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7721 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7722 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7723 (mrecip=): Use Var.
7724 (mspe): Use Var and Save.
7725 (mtraceback=): Use Enum and Var.
7726 (rs6000_traceback_type): New Enum and EnumValue entries.
7727 (mfloat-gprs=): Use Enum, Var and Save.
7728 (rs6000_float_gprs): New Enum and EnumValue entries.
7729 (mlong-double-): use Var and Save.
7730 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7731 (malign-): Use Enum and Var.
7732 (rs6000_alignment_flags): New Enum and EnumValue entries.
7733 (mfpu=): Use Enum.
7734 (fpu_type_t): New Enum and EnumValue entries.
7735 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7736 global_options_set instead of rs6000_explicit_options.
7737 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7738 global_options_set instead of rs6000_explicit_options.
7739 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7740 global_options_set instead of rs6000_explicit_options.
7741 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7742 global_options_set instead of rs6000_explicit_options.
7743 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7744 global_options_set instead of rs6000_explicit_options.
7745 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7746 global_options_set instead of rs6000_explicit_options.
7747 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7748 definition.
7749 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7750 global_options_set instead of rs6000_explicit_options.
7751 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7752 (rs6000_cmodel): New Enum and EnumValue entries.
7753 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7754 global_options_set instead of rs6000_explicit_options.
7755 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7756 (mtls-size=): Use Enum and Var.
7757 (rs6000_tls_size): New Enum and EnumValue entries.
7758
0691dde9
MM
77592011-05-05 Michael Matz <matz@suse.de>
7760
7761 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7762 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7763 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7764 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7765 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7766 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7767 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7768 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7769 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7770 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7771 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7772 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7773 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7774 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7775 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7776 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7777
86529a49
RG
77782011-05-05 Richard Guenther <rguenther@suse.de>
7779
7780 * expmed.c (expand_variable_shift): Rename to ...
7781 (expand_shift_1): ... this. Take an expanded shift amount.
7782 For rotates recurse directly not building trees for the shift amount.
7783 (expand_variable_shift): Wrap around expand_shift_1.
7784 (expand_shift): Adjust.
7785
d0228c2e
JJ
77862011-05-05 Jakub Jelinek <jakub@redhat.com>
7787
7788 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7789
907a08d9
EB
77902011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7791
7792 * tree.h (get_pending_sizes): Remove prototype.
7793 (put_pending_size): Likewise.
7794 (put_pending_sizes): Likewise.
7795 * stor-layout.c (pending_sizes): Delete.
7796 (get_pending_sizes): Likewise.
7797 (put_pending_size): Likewise.
7798 (put_pending_sizes): Likewise.
7799 (variable_size): Do not call put_pending_size and tidy up.
7800 * function.h (struct function): Remove dont_save_pending_sizes_p.
7801 * lto-streamer-in.c (input_function): Do not stream it.
7802 * lto-streamer-out.c (output_function): Likewise.
7803 * tree-inline.c (initialize_cfun): Do not copy it.
7804 * c-decl.c (store_parm_decls): Do not set it.
7805 * omp-low.c (create_task_copyfn): Likewise.
7806 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7807
386d9c57
UB
78082011-05-05 Uros Bizjak <ubizjak@gmail.com>
7809
7810 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7811 conditions.
7812 (*movdf_internal): Ditto.
7813 (*movdf_internal_nointeger): Ditto.
7814 (*movsf_internal): Ditto.
7815
a04a722b
JM
78162011-05-05 Joseph Myers <joseph@codesourcery.com>
7817
7818 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7819 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7820 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7821 (c_variable_size): Remove.
7822 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7823 call put_pending_sizes.
7824 (get_parm_info): Add parameter expr. Use it to set
7825 arg_info->pending_sizes.
7826 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7827 get_pending_sizes.
7828 * c-parser.c (c_parser_parms_declarator): Update call to
7829 c_parser_parms_list_declarator.
7830 (c_parser_parms_list_declarator): Take parameter expr. Update
7831 call to push_parm_decl. Update recursive call. Don't call
7832 get_pending_sizes. Update calls to get_parm_info.
7833 (c_parser_objc_method_definition): Update calls to
7834 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 7835 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
7836 (c_parser_objc_method_decl): Add parameter expr. Update call to
7837 grokparm.
386d9c57 7838 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
7839 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7840 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7841
c92a6f97
MH
78422011-05-05 Michael Hope <michael.hope@linaro.org>
7843
386d9c57
UB
7844 PR pch/45979
7845 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7846 __ARM_EABI__ hosts.
c92a6f97 7847
07ea0048
UW
78482011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7849
7850 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7851 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7852 (spu_output_mi_thunk): New function.
7853
d634bfa1
RO
78542011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7855
7856 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7857 targetm.asm_out.print_operand.
7858 * config/sol2.c: Include target.h.
7859
40fda55b
JH
78602011-05-04 Jan Hubicka <jh@suse.cz>
7861
7862 * ipa-inline.c (reset_edge_caches): New function.
7863 (update_caller_keys): Add check_inlinablity_for; do not
7864 reset edge caches; remove now unnecesary loop.
386d9c57 7865 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
7866 (update_all_callee_keys): Likewise.
7867 (inline_small_functions): Sanity check cache; update code
7868 recomputing it.
7869
0360f70d
BS
78702011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7871
7872 PR rtl-optimization/47612
7873 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7874 as the last insn of the sequence to be moved.
7875
7a994646
TB
78762011-05-04 Tobias Burnus <burnus@net-b.de>
7877
7878 PR fortran/48864
7879 * doc/invoke.texi (Ofast): Document that it
7880 enables Fortran's -fno-protect-parens.
7881
7a2f7208
UB
78822011-05-04 Uros Bizjak <ubizjak@gmail.com>
7883
7884 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7885
a2d42931
EB
78862011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7887
7888 * stor-layout.c (variable_size): Do not issue errors.
7889
f81b1a3d
RG
78902011-05-04 Richard Guenther <rguenther@suse.de>
7891
7892 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7893 for array-ref indices.
7894 (tree_coverage_counter_addr): Likewise.
7895 (build_fn_info_type): Use size_int for index types.
7896 (build_gcov_info): Likewise.
7897
c62c040f
RG
78982011-05-04 Richard Guenther <rguenther@suse.de>
7899
7900 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7901 to build_int_cst.
7902 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7903 for constructor indices.
7904 (push_init_level): Likewise.
7905
1e3287d0
RG
79062011-05-04 Richard Guenther <rguenther@suse.de>
7907
7908 * explow.c (promote_mode): Move variable declarations before code.
7909
6c32445b
NF
79102011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7911
7912 * tree.h (build_function_type_array): Declare.
7913 (build_varargs_function_type_array): Declare.
7914 (build_function_type_vec, build_varargs_function_type_vec): Define.
7915 * tree.c (build_function_type_array_1): New function.
7916 (build_function_type_array): New function.
7917 (build_varargs_function_type_array): New function.
7918
fdabf269
RS
79192011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7920
7921 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7922 before setting STMT_VINFO_TYPE.
7923
a207915a
UW
79242011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7925
7926 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7927 instead of spu_pass_by_reference.
7928
5e617be8
AK
79292011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7930
7931 * calls.c (emit_library_call_value_1): Invoke
7932 promote_function_mode hook on libcall arguments.
7933 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7934 argument being NULL.
7935 * targhooks.c (default_promote_function_mode): Lisewise.
7936 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7937 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7938
7939 * doc/tm.texi: Document that TYPE argument might be NULL.
7940
486d04be
SH
79412011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7942
7943 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7944
9b19b026
SH
79452011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7946
7947 From Bernd Schmidt
7948 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7949
502bc3df
RO
79502011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7951
7952 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7953 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7954 Move ...
7955 * mips-tfile.c: ... here.
7956 Don't include coretypes.h, tm.h, filenames.h.
7957 (saber_stop): Remove definition and all calls.
7958 [__SABER__]: Remove.
7959 (__LINE__): Remove default.
7960 (Size_t, Ptrdiff_t): Remove definitions.
7961 Replace by size_t, ptrdiff_t.
7962 [!MIPS_DEBUGGING_INFO]: Remove.
7963 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7964 (progname): Add const.
7965 (STATIC): Remove.
7966 Replace all uses by static.
7967 (ALIGN_SYMTABLE_OFFSET): Remove default.
7968 * mips-tdump.c: Don't include coretypes.h, tm.h.
7969 Remove !MIPS_IS_STAB guard.
7970 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7971 $(TM_H), filenames.h dependencies.
7972 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7973
991eb6ef
SH
79742011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7975
7976 From Jie Zhang
7977 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7978 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7979
420ccc84
SH
79802011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7981
7982 From Bernd Schmidt
7983 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7984 account and save/restore RETS.
7985 (PROFILE_BEFORE_PROLOGUE): Define.
7986 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7987 the push insn to use predecrement.
7988
9f8d69ee
SH
79892011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7990
7991 From Jie Zhang
7992 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7993
662c03f4
NC
79942011-05-04 Nick Clifton <nickc@redhat.com>
7995
7996 * config/mn10300/mn10300.c: Include cfgloop.h.
7997 (DUMP): New macro.
7998 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7999 Lcc or a FLcc insn into the instruction stream.
8000 (mn10300_block_contains_call): New function. Returns true if the
8001 given basic block contains a CALL insn.
8002 (mn10300_loop_contains_call_insn): New function. Returns true if
8003 the given loop contains a CALL insn.
8004 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
8005 to use the SETLB and Lcc or FLcc insns.
8006 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
8007 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
8008 * config/mn10300/mn10300.opt (msetlb): New option. Used to
8009 disable the SETLB optimization.
8010 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
8011 __SETLB__ or __NO_SETLB__.
8012 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
8013 (movsf_internal): Handle MDR register.
8014 (cmpsi): Make visible.
8015 (setlb): New pattern.
8016 (Lcc): New pattern.
8017 (FLcc): New pattern.
8018
843b6915
UB
80192011-05-04 Uros Bizjak <ubizjak@gmail.com>
8020
8021 PR target/48860
8022 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
8023 for reg<->xmm moves.
8024 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
8025 (vec_concatv2di_rex64_sse): Ditto.
8026 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
8027 (*vec_extractv2di_1_rex64): Ditto.
8028
8029 Revert:
8030 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8031
8032 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8033 reg<->xmm moves.
8034 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
8035
d35936ab
RG
80362011-05-04 Richard Guenther <rguenther@suse.de>
8037
8038 * tree.h (int_const_binop): Remove notrunc argument.
8039 * fold-const.c (int_const_binop): Remove notrunc argument. Always
8040 create integer constants that are properly truncated.
8041 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
8042 (const_binop): Remove zero notrunc argument to int_const_binop.
8043 (size_binop_loc): Likewise.
8044 (fold_div_compare): Likewise.
8045 (maybe_canonicalize_comparison_1): Likewise.
8046 (fold_comparison): Likewise.
8047 (fold_binary_loc): Likewise.
8048 (multiple_of_p): Likewise.
8049 * expr.c (store_constructor): Likewise.
8050 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
8051 (maybe_fold_stmt_addition): Likewise.
8052 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
8053 * stor-layout.c (layout_type): Likewise.
8054 * tree-data-ref.c (tree_fold_divides_p): Likewise.
8055 * tree-sra.c (build_ref_for_offset): Likewise.
8056 (build_user_friendly_ref_for_offset): Likewise.
8057 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
8058 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
8059 * tree-ssa-loop-niter.c (inverse): Likewise.
8060 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8061 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
8062 * tree-switch-conversion.c (check_range): Likewise.
8063 (build_constructors): Likewise.
8064 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
8065 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
8066 (extract_range_from_assert): Likewise.
8067 (vrp_int_const_binop): Likewise.
8068 (extract_range_from_binary_expr): Likewise.
8069 (extract_range_from_unary_expr): Likewise.
8070 (check_array_ref): Likewise.
8071 (find_case_label_range): Likewise.
8072 (simplify_div_or_mod_using_ranges): Likewise.
8073 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
8074 comparing case labels for merging.
8075
8992c063
MW
80762011-05-03 Mark Wielaard <mjw@redhat.com>
8077
8078 * dwarf2out.c (debug_str_hash_forced): Removed.
8079 (gen_label_for_indirect_string): Removed.
8080 (get_debug_string_label): Removed.
8081 (AT_string_form): Generate label directly.
8082 (output_indirect_string): Test indirect_string_node for
8083 DW_FORM_strp instead of checking label and refcount.
8084 (prune_indirect_string): Removed.
8085 (prune_unused_types): Don't check debug_str_hash_forced or
8086 call prune_indirect_string.
8087
4868e6ea
AO
80882011-05-04 Alexandre Oliva <aoliva@redhat.com>
8089
8090 PR other/48093
8091 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
8092
01a5c0ab
AO
80932011-05-04 Alexandre Oliva <aoliva@redhat.com>
8094
8095 PR debug/47994
8096 PR debug/47919
8097 * combine.c (try_combine): Skip debug insns at m_split tests.
8098
6ac00218
MW
80992011-04-26 Mark Wielaard <mjw@redhat.com>
8100
8101 PR42288
8102 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
8103 when info_section_emitted.
8104
3af42a7b
JM
81052011-05-03 Joseph Myers <joseph@codesourcery.com>
8106
8107 * config/mips/mips-opts.h: New.
8108 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
8109 to mips-opts.h.
8110 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
8111 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
8112 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
8113 via opts pointer.
8114 * config/mips/mips.h (enum mips_code_readable_setting): Move to
8115 mips-opts.h.
8116 (mips_abi, mips_code_readable): Don't declare.
843b6915 8117 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
8118 (mabi=): Use Enum and Var.
8119 (mips_abi): New Enum and EnumValue entries.
8120 (mcode-readable=): Use Enum and Var.
8121 (mips_code_readable_setting): New Enum and EnumValue entries.
8122 (mr10k-cache-barrier=): Use Enum and Var.
8123 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
8124
1cb1a99f
JH
81252011-05-03 Jan Hubicka <jh@suse.cz>
8126
8127 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
8128 replace hash by pointer map.
8129 (cgraph_node_set_element_def, cgraph_node_set_element,
8130 const_cgraph_node_set_element, varpool_node_set_element_def,
8131 varpool_node_set_element, const_varpool_node_set_element): Remove.
8132 (free_cgraph_node_set, free_varpool_node_set): New function.
8133 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
8134 * tree-emutls.c: Free varpool node set.
8135 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
8136 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
8137 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
8138 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
8139 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
8140 Move here from ipa.c; implement using pointer_map
8141 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
8142 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
8143 debug_cgraph_node_set, varpool_node_set_new,
8144 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
8145 dump_varpool_node_set, debug_varpool_node_set):
8146 Move to ipa-uitls.c.
8147 * passes.c (ipa_write_summaries): Update.
8148
7f31f4db
SH
81492011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8150
7a2f7208
UB
8151 From Mike Frysinger:
8152 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
8153 bf542/bf544/bf547/bf548/bf549.
7f31f4db 8154
b70fce6d
UB
81552011-05-03 Uros Bizjak <ubizjak@gmail.com>
8156
8157 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
8158
265b1d82
SH
81592011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8160
8161 From Bernd Schmidt:
8162 * config/bfin/bfin.md (MOVCC): New mode_macro.
8163 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
8164 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
8165 comments from generated assembly.
8166
f0b568f3
SH
81672011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8168
8169 From Bernd Schmidt
8170 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
8171 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
8172 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
8173 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
8174 * config/bfin/lib1funcs.asm (___muldi3): New function.
8175
2c67cf6e
NF
81762011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8177
8178 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
8179 build_function_type_list instead of build_function_type.
8180 Rearrange initialization of `args' to do so.
8181
f9ac28ad
NF
81822011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8183
8184 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
8185 instead of build_function_type.
8186
22b8798c
NF
81872011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8188
8189 * config/rs6000/rs6000.c (spe_init_builtins): Call
8190 build_function_type_list instead of build_function_type.
8191 (paired_init_builtins, altivec_init_builtins): Likewise.
8192 (builtin_function_type): Likewise.
8193
4cb44528
NF
81942011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8195
8196 * config/sh/sh.c (sh_media_init_builtins): Call
8197 build_function_type_list instead of build_function_type.
8198
4c203a6a
NF
81992011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8200
8201 * config/sparc/sparc.c (sparc_file_end): Call
8202 build_function_type_list instead of build_function_type.
8203
d6a3d62b
NF
82042011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8205
8206 * config/alpha/alpha.c (alpha_init_builtins): Call
8207 build_function_type_list instead of build_function_type.
8208
de530b86
NF
82092011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8210
8211 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
8212 build_function_type_list instead of build_function_type.
8213
baeec5f2
NF
82142011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8215
8216 * config/iq2000/i2000.c (iq2000_init_builtins): Call
8217 build_function_type_list instead of build_function_type.
8218 Delete `endlink' variable.
8219
c19afe52
NF
82202011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8221
8222 * config/avr/avr.c (avr_init_builtins): Call
8223 build_function_type_list instead of build_function_type.
8224
a341df0a
NF
82252011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8226
8227 * config/picochip/picochip.c (picochip_init_builtins): Call
8228 build_function_type_list instead of build_function_type.
8229 Delete `endlink' variable.
8230
2102b1e1
NF
82312011-05-03 Nathan Froyd <froydnj@codesourcery.com>
8232
8233 * config/bfin/bfin.c (bfin_init_builtins): Call
8234 build_function_type_list instead of build_function_type.
8235
9f111209
SH
82362011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8237
8238 From Bernd Schmidt
8239 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
8240 that's not CONST_INT. Seemingly redundant check is due to PR39768.
8241
7071d064
SH
82422011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8243
8244 From Jie Zhang:
8245 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
8246 libbffastfp overrides libgcc when -mfast-fp.
8247
748f7574 82482011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
8249
8250 Originally from Bernd Schmidt
8251 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
8252 * config/bfin/bfin.c (override_options): Test it and error if
8253 TARGET_FDPIC.
8254
1a3a9152
SH
82552011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
8256
8257 Originally From Bernd Schmidt
8258 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
8259 FD-PIC.
8260
7134c090
JL
82612011-05-03 Jeff Law <law@redhat.com>
8262
8263 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
8264 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
8265 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
8266 than accessing AUX field directly. Free the AUX field before
8267 clearing it.
7134c090
JL
8268 (thread_block, thread_through_loop_header): Likewise.
8269 (thread_single_edge, mark_threaded_blocks): Likewise.
8270 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
8271 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 8272
2c7eebae
BS
82732011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8274
8275 * function.c (init_function_start): Call decide_function_section.
8276 * varasm.c (decide_function_section): New function.
8277 (assemble_start_function): When not using
8278 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
8279 or first_function_block_is_cold.
8280 * rtl.h (decide_function_section): Declare.
8281
17038fcf
JJ
82822011-05-03 Uros Bizjak <ubizjak@gmail.com>
8283 Jakub Jelinek <jakub@redhat.com>
8284
8285 PR target/48774
8286 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
8287 only succeed if req_mode is the same as set_mode.
8288
3810076b
BS
82892011-05-03 Bernd Schmidt <bernds@codesourcery.com>
8290
8291 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
8292 * genemit.c (gen_exp): Handle RETURN.
8293 * emit-rtl.c (verify_rtx_sharing): Likewise.
8294 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
8295 * rtl.c (copy_rtx): RETURN is shared.
8296 * rtl.h (enum global_rtl_index): Add GR_RETURN.
8297 (ret_rtx): New.
8298 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
8299 * config/s390/s390.c (s390_emit_epilogue): Likewise.
8300 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
8301 * config/cris/cris.c (cris_expand_return): Likewise.
8302 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
8303 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
8304 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
8305 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
8306 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
8307 Likewise.
8308 * config/v850/v850.c (expand_epilogue): Likewise.
8309 * config/bfin/bfin.c (bfin_expand_call): Likewise.
8310 * config/arm/arm.md (epilogue): Likewise.
8311 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
8312 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
8313 variable to ret_reg.
8314
9efdb4ad
RG
83152011-05-03 Richard Guenther <rguenther@suse.de>
8316
8317 PR lto/48846
8318 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
8319 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
8320 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8321
60a45536
RG
83222011-05-03 Richard Guenther <rguenther@suse.de>
8323
8324 * c-decl.c (grokdeclarator): Instead of looking at
8325 TREE_OVERFLOW check if the constant fits in the index type.
8326
3188ed59
RS
83272011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8328
8329 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
8330 (vec_store_lanes<mode><mode>): Likewise.
8331
272c6793
RS
83322011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8333
8334 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
8335 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
8336 convert_optab_index values.
8337 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
8338 * genopinit.c (optabs): Initialize the new optabs.
8339 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
8340 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
8341 (expand_STORE_LANES): New functions.
8342 * tree.h (build_array_type_nelts): Declare.
8343 * tree.c (build_array_type_nelts): New function.
8344 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
8345 (vect_model_load_cost): Likewise.
8346 (vect_store_lanes_supported, vect_load_lanes_supported)
8347 (vect_record_strided_load_vectors): Declare.
8348 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
8349 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
8350 (vect_transform_strided_load): Split out statement recording into...
8351 (vect_record_strided_load_vectors): ...this new function.
8352 * tree-vect-stmts.c (create_vector_array, read_vector_array)
8353 (write_vector_array, create_array_ref): New functions.
8354 (vect_model_store_cost): Add store_lanes_p argument.
8355 (vect_model_load_cost): Add load_lanes_p argument.
8356 (vectorizable_store): Try to use store-lanes functions for
8357 interleaved stores.
8358 (vectorizable_load): Likewise load-lanes and loads.
8359 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
8360 to vect_model_store_cost.
8361 (vect_build_slp_tree): Likewise vect_model_load_cost.
8362
0f6d54f7
RS
83632011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
8364
8365 * hooks.h (hook_bool_mode_uhwi_false): Declare.
8366 * hooks.c (hook_bool_mode_uhwi_false): New function.
8367 * target.def (array_mode_supported_p): New hook.
8368 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
8369 * doc/tm.texi: Regenerate.
8370 * stor-layout.c (mode_for_array): New function.
8371 (layout_type): Use it.
8372 * config/arm/arm.c (arm_array_mode_supported_p): New function.
8373 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
8374
b15eacc7
EB
83752011-05-03 Eric Botcazou <ebotcazou@adacore.com>
8376
8377 PR target/48723
8378 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
8379 for -fstack-check if the size to allocate is negative.
8380
575bfb00
LC
83812011-05-02 Lawrence Crowl <crowl@google.com>
8382
8383 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
8384 (timevar_cond_start): New for starting a timer only when it is not
8385 already running.
8386 (timevar_cond_stop): New for stopping a timer when it was not already
8387 running.
8388
8389 * timevar.c (timevar_stop): Enable start/stop timers to start again.
8390 (timevar_cond_start): New as above.
8391 (timevar_cond_stop): New as above.
8392
8393 * timevar.def: Add start/stop timers for compiler phases,
8394 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
8395 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
8396 and TV_PHASE_FINALIZE.
8397 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
8398 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
8399 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
8400 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
8401 Make unused TV_OVERLOAD into a start/stop timer.
8402
8403 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
8404 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
8405 to indicate that they are start/stop timers.
8406
8407 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
8408 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
8409 Move initialization to do_compile.
8410 (do_compile): Add initialization from above.
8411 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
8412
8413 * c-decl.c (c_write_global_declarations): Add start/stop of
8414 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
8415
8416 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
8417 or TV_PARSE_INLINE, as appropriate.
8418 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
8419 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
8420
3533b943
JM
84212011-05-02 Jason Merrill <jason@redhat.com>
8422
8423 PR c++/40975
8424 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
8425
2609a0ce
SM
84262011-05-02 Simon Martin <simartin@users.sourceforge.net>
8427
8428 PR c/35445
8429 * c-decl.c (finish_decl): Only create a composite if the types are
8430 compatible.
8431
6b0e4cbb
JM
84322011-05-02 Joseph Myers <joseph@codesourcery.com>
8433
8434 * config/fr30/fr30-protos.h (Mmode): Don't define.
8435 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
8436 definition where used.
8437 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
8438 define. Expand definitions where used.
8439 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
8440 Expand definitions where used.
8441 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
8442 rx_function_arg, rx_function_arg_advance,
8443 rx_function_arg_boundary): Expand definitions of those macros.
8444 * config/v850/v850-protos.h (Mmode): Don't define. Expand
8445 definition where used.
8446
4e938ce6
UB
84472011-05-02 Uros Bizjak <ubizjak@gmail.com>
8448
8449 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8450 reg<->xmm moves.
8451 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8452 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
8453 with *movv2sf_internal_rex64_avx.
8454 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8455 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8456 Use %v prefix in insn mnemonic to handle TARGET_AVX.
8457 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
8458 "vex" in "prefix" attribute calculation.
8459 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
8460
36019c19
SH
84612011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
8462
7a2f7208
UB
8463 PR target/47951
8464 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8465 inputs match the output.
36019c19 8466
f69ea688
AS
84672011-05-02 Andreas Schwab <schwab@linux-m68k.org>
8468
8469 PR target/47955
8470 * config/m68k/m68k.c (m68k_expand_prologue): Set
8471 current_function_static_stack_size.
8472
c33406f5
JH
84732011-05-02 Jan Hubicka <jh@suse.cz>
8474
8475 * lto-streamer.c (lto_streamer_cache_insert_1,
8476 lto_streamer_cache_lookup, lto_streamer_cache_create,
8477 lto_streamer_cache_delete): Use pointer map instead of hashtable.
8478 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8479
47c94d21
JM
84802011-05-02 Joseph Myers <joseph@codesourcery.com>
8481
8482 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8483 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8484 config/m68k/t-opts: New files.
8485 * config/m68k/m68k-tables.opt: New file (generated).
8486 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8487 extra_options and m68k/t-opts to tmake_file.
8488 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8489 (all_isas): Initialize using m68k-isas.def.
8490 (all_microarchs): Initialize using m68k-microarchs.def.
8491 (m68k_find_selection): Remove.
8492 (m68k_handle_option): Don't assert that global structures are in
8493 use. Use error_at. Access variables via opts pointer. Don't
8494 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
8495 directly for -m68020-40 and -m68020-60.
8496 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8497 m68k_tune_entry here.
8498 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8499 to m68k-opts.h.
8500 (m68k_library_id_string): Remove declaration.
4e938ce6 8501 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
8502 (m68k_library_id_string): New Variable.
8503 (march=, mcpu=, mtune=): Use Enum and Var.
8504
e562bf36
RG
85052011-05-02 Richard Guenther <rguenther@suse.de>
8506
8507 * varasm.c (output_constructor_regular_field): Compute zero-based
8508 index with double-ints. Make sure to ICE instead of producing
8509 wrong code.
8510 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8511 in asserts. Properly use a signed type.
8512
6bec6c98
UB
85132011-05-02 Uros Bizjak <ubizjak@gmail.com>
8514
8515 * config/i386/sse.md (V): New mode iterator.
8516 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8517 TARGET_SSE2.
8518 (V_256): Rename from AVX256MODE.
8519 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8520 condition to all users.
8521 (VF1): Ditto.
8522 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8523 condition to all users.
8524 (VF_128): Make V4SF mode unconditional.
8525 (VF_256): Rename from AVX256MODEF2P.
8526 (VI4F_128): Rename from SSEMODE4S.
8527 (VI8F_128): Rename from SSEMODE2D.
8528 (VI4F_256): Rename from AVX256MODE8P.
8529 (VI8F_256): Rename from AVX256MODE4P.
8530 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8531 (ssescalarmodesuffix): Remove SF and DF modes.
8532 (SSEMODE124): Remove.
8533 (SSEMODE1248): Ditto.
8534 (SSEMODEF2P): Ditto.
8535 (AVXMODEF2P): Ditto.
8536 (AVXMODEFDP): Ditto.
8537 (AVXMODEFSP): Ditto.
8538 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8539 unconditional.
8540 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8541 unconditional.
8542 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8543 xop_pcmov_<mode>256. Use V mode iterator.
8544
8545 Adjust RTX patterns globally for renamed mode attributes.
8546
2dfdcb4b
UW
85472011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8548
8549 * haifa-sched.c (sched_emit_insn): Emit insn before first
8550 non-scheduled insn. Inform back-end about new insn. Add
8551 new insn to scheduled_insns list.
8552
90bc4623
RG
85532011-05-02 Richard Guenther <rguenther@suse.de>
8554
8555 PR tree-optimization/48822
8556 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8557 (process_scc): Indicate which iteration we start.
8558
bc0fe8cb
JH
85592011-05-02 Jan Hubicka <jh@suse.cz>
8560
8561 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8562 (lto_section_overrun): New.
8563 * lto-section-out.c (append_block): Rename to ...
8564 (lto_append_block): ... this one; export.
8565 (lto_output_1_stream): Move lto lto-streamer.h
8566 (lto_output_data_stream): Update.
8567 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8568 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8569 functions.
8570
f070a9d1
RG
85712011-05-02 Richard Guenther <rguenther@suse.de>
8572
8573 * tree.c (tree_code_counts): New global array.
8574 (record_node_allocation_statistics): Count individual tree codes.
8575 (dump_tree_statistics): Dump individual code stats.
8576
09dfe187
JH
85772011-05-01 Jan Hubicka <jh@suse.cz>
8578
8579 * ipa-inline.c (caller_growth_limits): Fix thinko when
8580 looking for largest stack frame.
8581 * ipa-inline.h (dump_inline_summary): Declare.
8582 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8583 on stack usage.
8584 (dump_inline_summary): Export.
8585 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8586
6f76a878
AS
85872011-05-01 Anatoly Sokolov <aesok@post.ru>
8588
8589 * reginfo.c (memory_move_cost): Change rclass argument type form
8590 'enum reg_class' to reg_class_t.
8591 * reload.h (memory_move_cost): Update prototype.
8592 * postreload.c reload_cse_simplify_set): Change type dclass var to
8593 reg_class_t.
8594 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8595 Update prototype.
8596 (ira_allocate_and_set_costs): Change aclass argument type form
8597 'enum reg_class' to reg_class_t.
6bec6c98 8598 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
8599 Change aclass argument type to reg_class_t.
8600 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8601 to reg_class_t.
8602 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8603 memory_move_cost call.
8604
8605 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8606 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8607 Change type tmp var to reg_class_t.
8608
9a4ac625
JH
86092011-04-30 Jan Hubicka <jh@suse.cz>
8610
8611 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8612 inlining into function with flatten attribute.
8613 (want_inline_small_function_p): Be more realistic about inlining
8614 cold calls where callee size grows.
8615
dd8352ee
JH
86162011-04-30 Jan Hubicka <jh@suse.cz>
8617
8618 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8619 flags.
8620
46e43d2b
AS
86212011-04-30 Anatoly Sokolov <aesok@post.ru>
8622
8623 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8624 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8625 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8626 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8627 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8628 (print_operand): Rename to...
8629 (sparc_print_operand): ...this. Make static. Adjust
8630 sparc_print_operand function call.
8631 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8632 functions.
8633
ecb62563
JH
86342011-04-30 Jan Hubicka <jh@suse.cz>
8635
6bec6c98 8636 PR middle-end/48752
ecb62563
JH
8637 * ipa-inline.c (early_inliner): Disable when doing late
8638 addition of function.
8639
edb9b69e
JJ
86402011-04-30 Jakub Jelinek <jakub@redhat.com>
8641
be80a87e
JJ
8642 * dwarf2out.c (get_address_mode): New inline.
8643 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8644 if not dwarf_strict emit
8645 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8646 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8647 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8648 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8649 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8650 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8651 mem_loc_descriptor callers.
8652 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8653 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8654 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8655 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8656 (base_types): New variable.
8657 (get_base_type_offset, calc_base_type_die_sizes,
8658 base_type_for_mode, mark_base_types, base_type_cmp,
8659 move_marked_base_types): New functions.
8660 (calc_die_sizes): Assert that die_offset is 0 or equal to
8661 next_die_offset.
8662 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8663 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8664 callers. If not dwarf_strict, call mem_loc_descriptor even for
8665 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8666 (gen_subprogram_die): Don't give up on call site parameters
8667 with non-integral or large integral modes. Adjust
8668 mem_loc_descriptor callers.
8669 (prune_unused_types): Call prune_unused_types_mark on base_types
8670 vector entries.
8671 (resolve_addr): Call mark_base_types.
8672 (dwarf2out_finish): Call move_marked_base_types.
8673
edb9b69e
JJ
8674 PR tree-optimization/48809
8675 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8676 type.
8677 (gen_inbound_check): Don't compute index_expr - range_min in utype
8678 again, instead reuse SSA_NAME initialized in build_arrays.
8679 Remove two useless gsi_for_stmt calls.
8680
a6545a3d
JL
86812011-04-29 Jeff Law <law@redhat.com>
8682
8683 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8684
af8bca3c
MJ
86852011-04-29 Martin Jambor <mjambor@suse.cz>
8686
8687 * cgraph.h (cgraph_postorder): Remove declaration.
8688 * ipa-utils.h (ipa_free_postorder_info): Declare.
8689 (ipa_reverse_postorder): Likewise.
8690 * cgraphunit.c: Include ipa-utils.h.
8691 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8692 * ipa-inline.c: Include ipa-utils.h.
8693 (ipa_inline): Update call to ipa_reverse_postorder.
8694 * ipa-pure-const.c (propagate_pure_const): Update call to
8695 ipa_reduced_postorder and ipa_print_order. Call
8696 ipa_free_postorder_info to clean up.
8697 (propagate_nothrow): Likewise.
8698 * ipa-reference.c (propagate): Removed a useless call to
8699 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8700 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8701 * ipa.c: Include ipa-utils.h.
8702 (ipa_profile): Update call to ipa_reverse_postorder.
8703 (cgraph_postorder): Moved to...
8704 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8705 (ipa_utils_print_order): Renamed to ipa_print_order.
8706 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8707 comments.
8708 (ipa_free_postorder_info): New function.
8709 * passes.c: Include ipa-utils.h.
8710 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8711 (ipa_write_summaries): Likewise.
8712 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8713 (cgraphunit.o): Likewise.
8714 (ipa.o): Likewise.
8715 (ipa-inline.o): Likewise.
8716
b15c64ee
JH
87172011-04-29 Jan Hubicka <jh@suse.cz>
8718
8719 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8720 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8721 * ipa-inline.h (clause_t): Turn into unsigned int.
8722 * ipa-inline-analysis.c (add_clause): Do more simplification.
8723 (and_predicates): Shortcut more cases.
8724 (predicates_equal_p): Move forward; check that clauses are properly
8725 ordered.
8726 (or_predicates): Shortcut more cases.
8727 (edge_execution_predicate): Rewrite as...
8728 (set_cond_stmt_execution_predicate): ... this function; handle
8729 __builtin_constant_p.
8730 (set_switch_stmt_execution_predicate): New .
8731 (compute_bb_predicates): New.
8732 (will_be_nonconstant_predicate): Update TODO.
8733 (estimate_function_body_sizes): Use compute_bb_predicates
8734 and free them later, always try to estimate if stmt is constant.
8735 (estimate_time_after_inlining, estimate_size_after_inlining):
8736 Gracefully handle optimized out edges.
8737 (read_predicate): Fix off by one error.
8738
a88fdc2a
NP
87392011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8740
8741 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8742
d984c8ef
XDL
87432011-04-27 Xinliang David Li <davidxl@google.com>
8744
8745 * tree-profile.c (init_ic_make_global_vars): Set
8746 tls attribute on ic vars.
8747 * coverage.c (coverage_end_function): Initialize
8748 function_list with zero.
8749
45a2c477
RG
87502011-04-29 Richard Guenther <rguenther@suse.de>
8751
8752 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8753 for the type of the result.
8754 (fold_builtin_isascii): Likewise.
8755 (fold_builtin_toascii): Use integer_type_node where appropriate.
8756 (fold_builtin_logb): Likewise.
8757 (fold_builtin_frexp): Likewise.
8758 (fold_builtin_strstr): Likewise.
8759 (fold_builtin_strpbrk): Likewise.
8760 (fold_builtin_fputs): Likewise.
8761 (fold_builtin_sprintf): Likewise.
8762 (fold_builtin_snprintf): Likewise.
8763 (fold_builtin_printf): Likewise.
8764 (do_mpfr_remquo): Use a proper type for the assigned constant.
8765 (do_mpfr_lgamma_r): Likewise.
8766 * dwarf2out.c (resolve_one_addr): Use size_int.
8767 * except.c (init_eh): Likewise.
8768 (assign_filter_values): Use integer_type_node for filter values.
8769 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8770 indices.
8771 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8772 for EH region numbers.
8773 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8774 for the shift amount.
8775
eb6c3df1
RG
87762011-04-29 Richard Guenther <rguenther@suse.de>
8777
8778 * expr.h (expand_shift): Rename to ...
8779 (expand_variable_shift): ... this.
8780 (expand_shift): Take a constant shift amount.
8781 * expmed.c (expand_shift): Rename to ...
8782 (expand_variable_shift): ... this.
8783 (expand_shift): New wrapper around expand_variable_shift.
8784 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8785 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8786 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8787 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8788 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8789 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8790 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8791 emit_store_flag_1, emit_store_flag): Likewise.
8792 * builtins.c (expand_builtin_signbit): Likewise.
8793 * calls.c (load_register_parameters): Likewise.
8794 * function.c (assign_parm_setup_block): Likewise.
8795 * lower-subreg.c (resolve_shift_zext): Likewise.
8796 * optabs.c (widen_bswap, expand_abs_nojump,
8797 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8798 * spu/spu.c (spu_expand_extv): Likewise.
8799 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8800
9f616812
RG
88012011-04-29 Richard Guenther <rguenther@suse.de>
8802
8803 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8804 for the remapped region number.
8805 * predict.c (build_predict_expr): Use integer_type_node for the
8806 predict kind.
8807 * fold-const.c (fold_binary_loc): Use integer_type_node for
8808 the shift amount. Use a proper type for the PLUS_EXPR operand.
8809
b823cdfe
MM
88102011-04-29 Michael Matz <matz@suse.de>
8811
8812 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8813 other trees that just builtins.
8814 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8815
413581ba
RG
88162011-04-29 Richard Guenther <rguenther@suse.de>
8817
8818 * tree-nested.c (get_trampoline_type): Use size_int.
8819 (get_nl_goto_field): Likewise.
8820 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8821 for all indexes.
8822 (lower_eh_constructs_2): Likewise.
8823 (lower_resx): Likewise.
8824 (lower_eh_dispatch): Likewise.
8825 * tree-mudflap.c (mf_build_string): Use size_int.
8826 (mudflap_register_call): Use integer_type_node for the flag.
8827 (mudflap_enqueue_constant): Use size_int.
8828 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8829 instead of rebuilding it.
8830
5c04e9f4
RG
88312011-04-29 Richard Guenther <rguenther@suse.de>
8832
8833 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8834 Handle OBJ_TYPE_REF.
8835 (find_func_aliases_for_call): Use it more consistently.
8836
5c24671b
AO
88372011-04-29 Alexandre Oliva <aoliva@redhat.com>
8838
8839 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8840 (rank_for_schedule): Use it.
8841 (schedule_block): Set it.
8842
10adac51
XDL
88432011-04-28 David Li <davidxl@google.com>
8844
8845 * tree.c (crc32_string): Use crc32_byte.
8846 (crc32_byte): New function.
8847 * tree.h (crc32_byte): New function.
8848 * gcov.c (read_graph_file): Handle new cfg_cksum.
8849 (read_count_file): Ditto.
8850 * profile.c (instrument_values): Ditto.
8851 (get_exec_counts): Ditto.
8852 (read_profile_edge_counts): Ditto.
8853 (compute_branch_probabilities): Ditto.
8854 (compute_value_histograms): Ditto.
8855 (branch_prob): Ditto.
8856 (end_branch_prob): Ditto.
8857 * coverage.c (read_counts_file): Ditto.
8858 (get_coverage_counts): Ditto.
8859 (tree_coverage_counter_addr): Ditto.
8860 (coverage_checksum_string): Ditto.
8861 (coverage_begin_output): Ditto.
8862 (coverage_end_function): Ditto.
8863 (build_fn_info_type): Ditto.
8864 (build_fn_info_value): Ditto.
8865 * libgcov.c (gcov_exit): Ditto.
8866 * gcov-dump.c (tag_function): Ditto.
8867 (compute_checksum): Remove.
8868
5d6358a5
AM
88692011-04-29 Alan Modra <amodra@gmail.com>
8870
8871 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8872 unspec plus offset. Tidy macho code.
8873
85ad2ef5
MJ
88742011-04-29 Martin Jambor <mjambor@suse.cz>
8875
8876 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8877 node instead of a decl. Update all callers.
8878 * cgraph.h: Update declaration.
8879
437f4a00
IR
88802011-04-28 Ira Rosen <ira.rosen@linaro.org>
8881
8882 PR tree-optimization/48765
8883 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8884 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8885 to indicate if loop aware SLP is being used. Scan the statements
8886 and update the vectorization factor according to the type of
8887 vectorization before statement analysis.
8888 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8889 pass it to vect_analyze_loop_operations.
8890 (vectorizable_reduction): Set number of copies to 1 in case of pure
8891 SLP statement.
8892 * tree-vect-stmts.c (vectorizable_conversion,
8893 vectorizable_assignment, vectorizable_shift,
8894 vectorizable_operation, vectorizable_type_demotion,
8895 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8896 Likewise.
8897 (vectorizable_condition): Move the check that it is not SLP
8898 vectorization before the number of copies check.
8899 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8900 to vectorize the loop using SLP.
8901
c6fc44f3
JJ
89022011-04-28 Jakub Jelinek <jakub@redhat.com>
8903
8904 PR middle-end/48597
8905 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8906 inline asm.
8907
6c0170ea
JM
89082011-04-28 Joseph Myers <joseph@codesourcery.com>
8909
8910 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8911 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8912 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8913 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8914 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8915 linux*.h headers.
6bec6c98 8916 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
8917 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8918 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8919 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 8920 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
8921 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8922 REG_NAME.
8923 * config/i386/linux.h (REG_NAME): Don't define.
8924 * config/i386/linux64.h (REG_NAME): Don't define.
8925 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8926 Undefine before defining.
8927
970dabbd
JH
89282011-04-28 Jan Hubicka <jh@suse.cz>
8929
6bec6c98
UB
8930 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8931 nonconstant_names array.
970dabbd
JH
8932 (estimate_function_body_sizes): Build nonconstant_names array; handle
8933 BUILT_IN_CONSTANT_P.
8934
8d3e3924
RG
89352011-04-28 Richard Guenther <rguenther@suse.de>
8936
8937 PR bootstrap/48804
8938 Revert
8939 2011-04-28 Richard Guenther <rguenther@suse.de>
8940
8941 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8942 as late as possible.
6bec6c98 8943
8576f20a
RG
89442011-04-28 Richard Guenther <rguenther@suse.de>
8945
8946 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8947 (debug_constraint): Do it here.
8948 (dump_constraints): And here.
8949 (rewrite_constraints): And here.
8950 (dump_constraint_edge): Remove.
8951 (dump_constraint_graph): Rewrite to produce DOT output.
8952 (solve_constraints): Build succ graph as late as possible.
8953 Dump constraint graphs before and after solving.
8954
e38811ce
RG
89552011-04-28 Richard Guenther <rguenther@suse.de>
8956
8957 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8958 New function split out from ...
8959 (find_func_aliases): ... here. Call it.
8960 (find_func_aliases_for_call): Likewise.
8961
fbaf0d0c
GDR
89622011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8963
8964 * internal-fn.h (internal_fn_name_array): Declare.
8965 (internal_fn_flags_array): Likewise.
8966
cbb734aa
UB
89672011-04-27 Uros Bizjak <ubizjak@gmail.com>
8968
8969 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8970 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8971 Move from sse.md.
8972 (ssemodefsuffix): Remove.
8973 (ssevecmodesuffix): New mode attribute.
8974 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8975 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8976 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8977 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8978 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8979 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8980 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8981 ssemodesuffix mode attribute.
8982 (float splitters): Use ssevecmodesuffix mode attribute.
8983 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8984 (sseinsmode): Rename from avxvecmode.
8985 (avxsizesuffix): Rename from avxmodesuffix.
8986 (sseintvecmode): Rename from avxpermvecmode.
8987 (ssedoublevecmode): Rename from ssedoublesizemode.
8988 (ssehalfvecmode): Rename from avxhalfvecmode.
8989 (ssescalarmode): Rename from avxscalarmode.
8990 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8991 templates for ssemodesuffix mode attribute.
8992 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8993 mode attribute.
8994
8995 Adjust RTX patterns globally for renamed mode attributes.
8996
991278ab
JH
89972011-04-27 Jan Hubcika <jh@suse.cz>
8998
8999 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
9000 * ipa-inline-analysis.c: Include alloc-pool.h.
9001 (edge_predicate_pool): New.
9002 (trye_predicate_p): New function
9003 (false_predicate_p): New function.
9004 (add_clause): Sanity check that false clauses are "optimized";
9005 never add clauses to predicate that is already known to be false.
9006 (and_predicate): Use flase_predicate_p.
9007 (evaulate_predicate): Rename to ...
9008 (evaluate_predicate): ... this one; update all callers; assert
9009 that false is not listed among possible truths.
9010 (dump_predicate): Use true_predicate_p.
9011 (account_size_time): Use false_predicate_p.
9012 (evaulate_conditions_for_edge): Rename to ...
9013 (evaluate_conditions_for_edge) ... this one.
9014 (edge_set_predicate): New function.
9015 (inline_edge_duplication_hook): Duplicate edge predicates.
9016 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 9017 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
9018 (dump_inline_summary): Update.
9019 (estimate_function_body_sizes): Set edge predicates.
9020 (estimate_calls_size_and_time): Handle predicates.
9021 (estimate_callee_size_and_time): Update.
9022 (remap_predicate): Add toplev_predicate; update comment.
9023 (remap_edge_predicates): New function.
9024 (inline_merge_summary): Compute toplev predicate; update.
9025 (read_predicate): New function.
9026 (read_inline_edge_summary): Use it.
9027 (inline_read_section): Likewise.
9028 (write_predicate): New function.
9029 (write_inline_edge_summary): Use it.
9030 (inline_write_summary): Likewise.
9031 (inline_free_summary): Free alloc pool and edge summary vec.
9032
648b5f85
RG
90332011-04-27 Richard Guenther <rguenther@suse.de>
9034
9035 * tree-ssa-structalias.c (changed_count): Remove.
9036 (changed): Use a bitmap.
9037 (unify_nodes): Adjust.
9038 (do_sd_constraint): Likewise.
9039 (do_ds_constraint): Likewise.
9040 (do_complex_constraint): Likewise.
9041 (solve_graph): Likewise.
9042
4d5dcfb2
JH
90432011-04-27 Jan Hubicka <jh@suse.cz>
9044
9045 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
9046
200eb7d2
UB
90472011-04-27 Uros Bizjak <ubizjak@gmail.com>
9048
9049 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
9050 (avx_vperm2f128_*_operand): Ditto.
9051 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
9052 Use avx_vpermilp_parallel in insn condition.
9053 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
9054 Use avx_vperm2f128_parallel in insn condition.
9055
7d6e2521
RG
90562011-04-27 Richard Guenther <rguenther@suse.de>
9057
9058 * Makefile.in (tree-ssa-structalias.o): Remove
9059 gt-tree-ssa-structalias.h dependency.
9060 (GTFILES): Remove tree-ssa-structalias.c.
9061 * tree.c (allocate_decl_uid): New function.
9062 (make_node_stat): Use it.
9063 (copy_node_stat): Likewise.
9064 * tree.h (allocate_decl_uid): Declare.
9065 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
9066 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
9067 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 9068 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
9069 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
9070 (struct heapvar_map): Likewise.
9071 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
9072 heapvar_insert): Likewise.
9073 (make_heapvar_for): Rename to ...
9074 (make_heapvar): ... this. Simplify.
9075 (fake_var_decl_obstack): New global var.
9076 (build_fake_var_decl): New function.
9077 (make_constraint_from_heapvar): Adjust.
9078 (handle_lhs_call): Likewise.
9079 (create_function_info_for): Likewise.
9080 (intra_create_variable_infos): Likewise.
9081 (init_alias_vars): Allocate fake_var_decl_obstack.
9082 (init_alias_heapvars, delete_alias_heapvars): Remove.
9083 (compute_points_to_sets): Do not call init_alias_heapvars.
9084 (ipa_pta_execute): Likewise.
9085 (delete_points_to_sets): Free fake_var_decl_obstack.
9086
526ed6c2
UW
90872011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9088
9089 * config/spu/divmovti4.c (union qword_UTItype): New data type.
9090 (si_from_UTItype, si_to_UTItype): New functions.
9091 (__udivmodti4): Use them to implement type-punning.
9092 * config/spu/multi3.c (union qword_TItype): New data type.
9093 (si_from_TItype, si_to_TItype): New functions.
9094 (__multi3): Use them to implement type-punning.
9095
c187d33c
UW
90962011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9097
9098 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
9099
40982661
JH
91002011-04-27 Jan Hubicka <jh@suse.cz>
9101
9102 * ipa-prop.c (function_insertion_hook_holder): New holder.
9103 (ipa_add_new_function): New function.
200eb7d2
UB
9104 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
9105 Register/deregister holder.
40982661 9106
9aef53ee
RG
91072011-04-27 Richard Guenther <rguenther@suse.de>
9108
9109 PR tree-optimization/48772
200eb7d2 9110 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 9111
f63d806d
RG
91122011-04-27 Richard Guenther <rguenther@suse.de>
9113
9114 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
9115 TARGET_MEM_REF handling.
9116
e1ea7451
NC
91172011-04-27 Nick Clifton <nickc@redhat.com>
9118
9b5db25d
NC
9119 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
9120 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
9121 (REG_CLASS_NAMES): Likewise.
9122 (REG_CLASS_CONTENTS): Likewise.
9123 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
9124 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
9125 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
9126 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
9127 (EVEN_REGS): New macro. Alias for QUAD_REGS.
9128 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
9129 duplicate register classes.
97d20907 9130 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
9131 (frv_register_move_cost): Likewise.
9132
e1ea7451
NC
9133 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
9134 end of the regno_reg_class array.
9135
5c2f94b4
JJ
91362011-04-27 Jakub Jelinek <jakub@redhat.com>
9137
9138 PR c/48742
9139 * c-typeck.c (build_binary_op): Don't wrap arguments if
9140 int_operands is true.
9141
57a944d7
KK
91422011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
9143
9144 PR target/48767
9145 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
9146 targetm.calls.must_pass_in_stack for void type.
9147
898b8927
JH
91482011-04-26 Jan Hubicka <jh@suse.cz>
9149
9150 * cgraphbuild.c (build_cgraph_edges): Update call
9151 of cgraph_create_edge and cgraph_create_indirect_edge.
9152 * cgraph.c (cgraph_create_edge_including_clones,
9153 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
9154 cgraph_update_edges_for_call_stmt_node): Do not take nest
9155 argument; do not initialize call_stmt_size/time.
9156 (dump_cgraph_node): Do not dump nest.
9157 (cgraph_clone_edge): Do not take loop_nest argument;
9158 do not propagate it; do not clone call_stmt_size/time.
9159 (cgraph_clone_node): Likewise.
9160 (cgraph_create_virtual_clone): Update.
9161 * cgraph.h (struct cgraph_edge): Remove
9162 call_stmt_size/call_stmt_time/loop_nest.
9163 (cgraph_create_edge, cgraph_create_indirect_edge,
9164 cgraph_create_edge_including_clones, cgraph_clone_node): Update
9165 prototype.
9166 * tree-emutls.c (gen_emutls_addr): Update.
9167 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
9168 loop_nest; handle indirect calls, too.
9169 (clone_inlined_nodes): Do not care about updating inline summaries.
9170 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
9171 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
9172 stream call_stmt_size/call_stmt_time/loop_nest.
9173 * ipa-inline.c (edge_badness): Update.
9174 (ipa_inline): dump summaries after inlining.
9175 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 9176 New.
898b8927
JH
9177 (inline_edge_summary): New function.
9178 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
9179 (inline_edge_removal_hook): Handle edge summaries.
9180 (inline_edge_duplication_hook): New hook.
9181 (inline_summary_alloc): Alloc hooks.
9182 (initialize_growth_caches): Do not register removal hooks.
9183 (free_growth_caches); Do not free removal hook.
9184 (dump_inline_edge_summary): New function.
9185 (dump_inline_summary): Use it.
9186 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
9187 (inline_update_callee_summaries): New function.
9188 (inline_merge_summary): Use it.
9189 (do_estimate_edge_time, do_estimate_edge_growth): Update.
9190 (read_inline_edge_summary): New function.
9191 (inline_read_section): Use it.
9192 (write_inline_edge_summary): New function.
9193 (inline_write_summary): Use it.
9194 (inline_free_summary): Free edge new holders.
9195 * tree-inline.c (copy_bb): Update.
9196
ffa03772
JM
91972011-04-26 Jason Merrill <jason@redhat.com>
9198
9199 * tree-eh.c (lower_try_finally_switch): Create the label along with
9200 the CASE_LABEL_EXPR.
9201
6d7b45ad
DM
92022011-04-26 David S. Miller <davem@davemloft.net>
9203 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9204
9205 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
9206 * configure: Regenerate.
9207
df10b6d4
MM
92082011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
9209
9210 PR target/48258
9211 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
9212 reduction.
9213 (VEC_reduc): New code iterator and splitters for vector reduction.
9214 (VEC_reduc_name): Ditto.
9215 (VEC_reduc_rtx): Ditto.
9216 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
9217 (reduc_<VEC_reduc_name>_v4sf): Ditto.
9218
9219 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9220 support for extracting SF on VSX.
9221
9222 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
9223 generating xscvspdp.
9224 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
9225 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
9226 double add, minimum, maximum vector reduction.
9227 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
9228 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
9229 optimize double vector reduction.
9230 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
9231
35a5db04
JM
92322011-04-26 Joseph Myers <joseph@codesourcery.com>
9233
9234 * config/fr30/fr30.h (inhibit_libc): Don't define.
9235 * config/m32r/m32r-protos.h: Correct comment.
9236 * config/v850/v850.h (GHS_default_section_names,
9237 GHS_current_section_names): Use tree, not union tree_node *.
9238
2f964ad6
XDL
92392011-04-26 Xinliang David Li <davidxl@google.com>
9240
200eb7d2 9241 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
9242 * c-family/c-opts.c (c_common_handle_option): Set
9243 warn_maybe_uninitialized.
9244 * opts.c (common_handle_option): Ditto.
9245 * common.opt: New option.
9246 * tree-ssa.c (warn_uninit): Add one more parameter.
9247 (warn_uninitialized_var): Pass warning code.
9248 * tree-flow.h: Interface change.
9249
9c7bd91a
RO
92502011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9251
200eb7d2 9252 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
9253 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
9254 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
9255
c2f36e21
RO
92562011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9257
9258 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
9259 * config/mips/mips.opt (mmips-tfile): Remove.
9260
9261 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
9262 mips-tdump reference to ...
200eb7d2 9263 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
9264 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
9265 reference by Tru64 UNIX.
9266
2c9da85b
JJ
92672011-04-26 Jakub Jelinek <jakub@redhat.com>
9268
0c5f6539
JJ
9269 PR debug/48768
9270 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
9271 is error_mark_node, set value to NULL.
9272
2c9da85b
JJ
9273 PR tree-optimization/48734
9274 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
9275 if return value from maybe_fold_*_comparsions isn't something
9276 the code is prepared to handle.
9277
77fa1d54
UB
92782011-04-26 Uros Bizjak <ubizjak@gmail.com>
9279
9280 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
9281 mode check.
9282 (ext_QIreg_nomode_operands): Remove.
9283 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
9284 (*andsi_1): Ditto.
9285 (*andhi_1): Ditto.
9286
0e2a6c2b
AS
92872011-04-26 Andrew Stubbs <ams@codesourcery.com>
9288
9289 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
9290
961562d8
RB
92912011-04-26 Richard Guenther <rguenther@suse.de>
9292
9293 * c-typeck.c (build_unary_op): Do not expand array-refs via
9294 pointer arithmetic. Only adjust qualifiers for function types.
9295
92962011-04-26 Richard Guenther <rguenther@suse.de>
9297
9298 PR middle-end/48694
9299 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
9300 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
9301 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
9302 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 9303
a0d260fc
PC
93042011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
9305
6bec6c98 9306 * doc/extend.texi: Document __underlying_type.
a0d260fc 9307
4d583bb9
SB
93082011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
9309
9310 * config/rs6000/titan.md (automata_option "progress"): Remove.
9311
1f3fcdc3
JL
93122011-04-25 Jeff Law <law@redhat.com>
9313
9314 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
9315
e5b0dad8
JK
93162011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9317
9318 * system.h (ENUM_BITFIELD): Remove.
9319
5157a881 93202011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 9321 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
9322
9323 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
9324 for STORE_FLAG_VALUE==-1 case.
9325
ed4c109e
RS
93262011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
9327
9328 PR target/43804
9329 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
9330 LEGITIMATE_PIC_OPERAND_P.
9331
f3181aa2
JH
93322011-04-24 Jan Hubicka <jh@suse.cz>
9333
9334 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
9335 WPA hack.
77fa1d54
UB
9336 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
9337 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
9338 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
9339 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
9340 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
9341 Sanity check predicate length.
9342 (remap_predicate): Likewise; sanity check jump functions.
9343 (inline_read_section, inline_write_summary): Sanity check
9344 predicate length.
9345
5307cbaa
PC
93462011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
9347
9348 PR other/48748
9349 * doc/extend.texi (Type Traits): Document __is_standard_layout,
9350 __is_literal_type, and __is_trivial; update throughout about
9351 possibly cv-qualified void types.
9352
bebd5f99
GP
93532011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9354
9355 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
9356 testsuite and make it version agnostic.
9357
7ee28a74
JH
93582011-04-22 Jan Hubicka <jh@suse.cz>
9359
9360 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
9361
16997bc0
JJ
93622011-04-23 Jakub Jelinek <jakub@redhat.com>
9363
9364 PR c/48685
9365 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
9366 to VOID_TYPE even around MODIFY_EXPR.
9367
f94d4ab1
MS
93682011-04-22 Mike Stump <mikestump@comcast.net>
9369
1a84c183 9370 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
9371 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
9372 comment.
9373
632b4f8e
JH
93742011-04-22 Jan Hubicka <jh@suse.cz>
9375
9376 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
9377 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
9378 ipa-prop.c; update all uses.
632b4f8e 9379 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
9380 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
9381 merge summary of inlined function into former caller.
632b4f8e
JH
9382 * ipa-inline.c (max_benefit): Remove.
9383 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
9384 (update_caller_keys): Use
9385 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
9386 (update_callee_keys): Likewise.
9387 (update_all_callee_keys): Likewise.
77fa1d54
UB
9388 (inline_small_functions): Do not collect max_benefit; do not reset
9389 estimated_growth; call free_growth_caches and initialize_growth_caches.
9390 * ipa-inline.h (struct condition, type clause_t, struct predicate,
9391 struct size_time_entry): New structures.
632b4f8e 9392 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
9393 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
9394 and estimated_growth.
632b4f8e
JH
9395 (edge_growth_cache_entry): New structure.
9396 (node_growth_cache, edge_growth_cache): New global vars.
9397 (estimate_growth): Turn into inline.
9398 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
9399 initialize_growth_caches, free_growth_caches): Declare.
9400 (estimate_edge_growth): Rewrite.
9401 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
9402 (reset_node_growth_cache, reset_edge_growth_cache): New inline
9403 functions.
632b4f8e
JH
9404 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
9405 (NUM_CONDITIONS): New constant.
9406 (predicate_conditions): New enum.
9407 (IS_NOT_CONSTANT): New constant.
9408 (edge_removal_hook_holder): New var.
9409 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
9410 (true_predicate, single_cond_predicate, false_predicate,
9411 not_inlined_predicate, add_condition, add_clause, and_predicates,
9412 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
9413 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
9414 evaulate_conditions_for_edge): New functions.
9415 (inline_summary_alloc): Move to heap.
9416 (inline_node_removal_hook): Clear condition and entry vectors.
9417 (inline_edge_removal_hook): New function.
9418 (initialize_growth_caches, free_growth_caches): New function.
9419 (dump_inline_summary): Update.
9420 (edge_execution_predicate): New function.
9421 (will_be_nonconstant_predicate): New function.
9422 (estimate_function_body_sizes): Compute BB and constantness predicates.
9423 (compute_inline_parameters): Do not clear estimated_growth.
9424 (estimate_edge_size_and_time): New function.
9425 (estimate_calls_size_and_time): New function.
9426 (estimate_callee_size_and_time): New function.
9427 (remap_predicate): New function.
9428 (inline_merge_summary): New function.
9429 (do_estimate_edge_time): New function based on...
9430 (estimate_edge_time): ... this one.
9431 (do_estimate_edge_growth): New function.
9432 (do_estimate_growth): New function based on....
9433 (estimate_growth): ... this one.
9434 (inline_analyze_function): Analyze after deciding on jump functions.
9435 (inline_read_section): New function.
9436 (inline_read_summary): Use it.
9437 (inline_write_summary): Write all the new data.
9438 * ipa-prop.c (ipa_get_param_decl_index): Export.
9439 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
9440 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
9441 Declare.
9442 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
9443 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
9444 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
9445 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
9446 cgraph_edge_inlinable_p): Remove.
9447 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
9448 (cgraph_process_new_functions): Update call of
9449 compute_inline_parameters.
632b4f8e 9450
1df5b0db
RG
94512011-04-22 Richard Guenther <rguenther@suse.de>
9452
9453 * tree.c (build_int_cst): Properly create canonicalized integer
9454 constants.
9455 (build_int_cst_type): Remove scary comments.
9456
ae01169c
XDL
94572011-04-22 Xinliang David Li <davidxl@google.com>
9458
9459 * toplev.c (process_options): Enable -Werror=coverage-mismatch
9460 by default when -Wno-error is not specified.
9461 * opts-global.c (decode_options): Remove call to
9462 control_warning_options.
9463
93dfac24
JJ
94642011-04-22 Jakub Jelinek <jakub@redhat.com>
9465
9466 PR tree-optimization/48717
9467 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9468 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9469
1b5f5069
JM
94702011-04-22 Joseph Myers <joseph@codesourcery.com>
9471
9472 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
9473 definition where used.
9474
144f4153
JJ
94752011-04-22 Jakub Jelinek <jakub@redhat.com>
9476
9477 PR c/48716
9478 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9479 TREE_STATIC variables declared inside of some OpenMP construct.
9480
f9fd305b
MJ
94812011-04-22 Martin Jambor <mjambor@suse.cz>
9482
9483 PR middle-end/48585
1d284ec5 9484 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 9485
49819fef
AM
94862011-04-22 Alexander Monakov <amonakov@ispras.ru>
9487
9488 PR c/36750
9489 * c-typeck.c (pop_init_level): Do not warn about initializing
9490 with ` = {0}'.
9491
401f6699
AM
94922011-04-22 Alan Modra <amodra@gmail.com>
9493
9494 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9495 when returning call_cookie.
9496 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9497 pointers, to functions with no more vector args than the current
9498 function, and some non-local calls for ABI_V4.
9499 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9500 sibcall_nonlocal_aix64): Combine to ..
9501 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
9502 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9503 (sibcall_value_nonlocal_aix<mode>): ..likewise.
9504 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9505 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
9506 operand.
9507 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9508 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9509 sibcall_value_symbolic_64): Delete.
9510
903d1e67
XDL
95112011-04-21 Xinliang David Li <davidxl@google.com>
9512
9513 * cgraph.h: Remove pid.
9514 * cgraph.c: Remove pid.
9515 * value-prof.c (init_node_map): New function.
9516 (del_node_map): New function.
9517 (find_func_by_funcdef_no): New function.
9518 (gimple_ic_transform): Call new function.
9519 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9520 * function.c (get_last_funcdef_no): New function.
9521 * function.h (get_last_funcdef_no): New function.
9522 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9523 to libgcov function.
9524 (tree-profiling): Call node map init and delete function.
9525
7378e95f
ILT
95262011-04-21 Ian Lance Taylor <iant@google.com>
9527
9528 * godump.c (go_format_type): Use exported Go name for anonymous
9529 field name.
9530
e84a6fcf
NF
95312011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9532
9533 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9534 Call builtin_function_type_list instead of builtin_function_type.
9535 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9536
4fe058e2
NF
95372011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9538
9539 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9540 build_function_type_list instead of build_function_type.
9541 Delete variable `endlink'.
9542
1ba0a2d2
NF
95432011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9544
9545 * config/s390/s390.c (s390_init_builtins): Call
9546 build_function_type_list instead of build_function_type.
9547
c0676219
NF
95482011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9549
9550 * config/ia64/ia64.c (ia64_init_builtins): Call
9551 build_function_type_list instead of builtin_function_type.
9552
6ddfda8a
ER
95532011-04-21 Easwaran Raman <eraman@google.com>
9554
3a6448ea 9555 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
9556 (add_stack_var): ...and its reference here...
9557 (expand_stack_vars): ...and here.
9558 (stack_var_cmp): Sort by descending order of size.
9559 (partition_stack_vars): Change heuristic.
1d284ec5 9560 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
9561 (dump_stack_var_partition): Add newline after each partition.
9562
23756963
DA
95632011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9564 Jeff Law <law@redhat.com>
9565
77fa1d54 9566 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
9567 * gengtype.c (matching_file_name_substitute): Likewise.
9568
aa2a43d2
RG
95692011-04-21 Richard Guenther <rguenther@suse.de>
9570
9571 PR lto/48703
1d284ec5 9572 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 9573
4d931f41
EB
95742011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9575
9576 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9577
f103fa7a
RG
95782011-04-21 Richard Guenther <rguenther@suse.de>
9579
9580 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9581 file name.
9582
e19f6650
RG
95832011-04-21 Richard Guenther <rguenther@suse.de>
9584
9585 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9586 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9587 Use DECL_P, not SSA_VAR_P.
9588 (ptr_derefs_may_alias_p): Likewise.
9589 (ptr_deref_may_alias_ref_p_1): Likewise.
9590 (decl_refs_may_alias_p): Likewise.
9591 (refs_may_alias_p_1): Likewise.
9592 (ref_maybe_used_by_call_p_1): Likewise.
9593 (call_may_clobber_ref_p_1): Likewise.
9594 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9595 are either MEM_REF or TARGET_MEM_REF.
9596 (indirect_refs_may_alias_p): Likewise.
9597 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9598 for MEM_EXPR of indirect calls.
9599
9d1831bb
TG
96002011-04-21 Tristan Gingold <gingold@adacore.com>
9601
9602 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9603 (dst_file_info_struct): Remove flen field.
9604 (lookup_filename): Remove code that set flen field.
9605
f199c029
TG
96062011-04-21 Tristan Gingold <gingold@adacore.com>
9607
9608 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9609
2894086e
UB
96102011-04-21 Uros Bizjak <ubizjak@gmail.com>
9611
9612 PR target/48708
9613 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9614 vec_extract and vec_concat for non-SSE4_1 targets.
9615
53f94a5c
RG
96162011-04-21 Richard Guenther <rguenther@suse.de>
9617
9618 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9619 return statements.
9620
f0dca5ba
JM
96212011-04-21 Joseph Myers <joseph@codesourcery.com>
9622
9623 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9624 undefine.
9625 (FILE): Don't undefine.
9626
984514ac
JM
96272011-04-21 Joseph Myers <joseph@codesourcery.com>
9628
9629 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9630 struct rtx_def *.
9631 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9632 struct rtx_def *.
9633 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 9634 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
9635 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9636 rtx_def *.
9637 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9638 definitions where used.
9639 * config/microblaze/microblaze.h (struct microblaze_args): Use
9640 rtx, not struct rtx_def *.
9641 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9642 rtx_def *.
2894086e
UB
9643 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9644 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
9645 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9646 not struct rtx_def *.
9647 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9648 struct rtx_def *.
9649 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9650 rtx_def *.
2894086e 9651 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 9652
0b5a2724
RS
96532011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9654
9655 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9656 operand_equal_p to compare DR_BASE_ADDRESSes.
9657 (vect_check_interleaving): Likewise.
9658
4b18d683
RS
96592011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9660
9661 PR target/46329
9662 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9663 for all Neon struct constants.
9664
1a627b35
RS
96652011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9666
9667 * target.def (legitimate_constant_p): New hook.
9668 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9669 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9670 * doc/tm.texi: Regenerate.
9671 * hooks.h (hook_bool_mode_rtx_true): Declare.
9672 * hooks.c (hook_bool_mode_rtx_true): Define.
9673 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9674 * calls.c (precompute_register_parameters): Replace uses of
9675 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9676 (emit_library_call_value_1): Likewise.
9677 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9678 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9679 * ira-costs.c (scan_one_insn): Likewise.
9680 * recog.c (general_operand, immediate_operand): Likewise.
9681 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9682 * reload1.c (init_eliminable_invariants): Likewise.
9683
9684 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9685 mode argument.
9686 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9687 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9688 argument.
9689 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9690 * config/alpha/predicates.md (input_operand): Update call to
9691 alpha_legitimate_constant_p.
9692
9693 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9694 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9695 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9696 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9697 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9698 (arm_legitimate_constant_p): New functions.
9699 (arm_cannot_force_const_mem): Make static.
9700
9701 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9702
9703 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9704 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9705 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9706 instead of bfin_legitimate_constant_p.
9707 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9708 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9709
9710 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9711
9712 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9713
9714 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9715 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9716 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9717 (frv_legitimate_constant_p): Make static. Add a mode argument.
9718
9719 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9720 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9721 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9722
9723 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9724 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9725 * config/i386/i386.c (legitimate_constant_p): Rename to...
9726 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9727 argument.
9728 (ix86_cannot_force_const_mem): Update accordingly.
9729 (ix86_legitimate_address_p): Likewise.
9730 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9731 * config/i386/i386.md: Update commentary.
9732
9733 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9734 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9735 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9736 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9737
9738 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9739
9740 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9741 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9742 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9743 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9744
9745 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9746 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9747 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9748
9749 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9750 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9751 (m32r_legitimate_constant_p): New function.
9752
9753 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9754 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9755 LEGITIMATE_CONSTANT_P.
9756 (LEGITIMATE_CONSTANT_P): Delete.
9757 * config/m68k/m68k.c (m68k_expand_prologue): Call
9758 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9759 (m68k_legitimate_constant_p): New function.
9760 * config/m68k/m68k.md: Update comments.
9761
9762 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9763 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9764 (mcore_legitimate_constant_p): New function.
9765
9766 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9767 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9768 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9769 Add a mode argument.
9770 (mep_legitimate_address): Update accordingly.
9771 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9772
9773 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9774 Delete.
9775 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9776 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9777 static. Check OP's mode for VOIDmode.
9778 (microblaze_legitimate_constant_p): New function.
9779 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9780
9781 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9782 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9783 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9784 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9785 * config/mips/predicates.md: Update comments.
9786
9787 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9788 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9789 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9790 (mmix_legitimate_constant_p): Make static, return a bool, and take
9791 a mode argument.
9792 (mmix_print_operand_address): Update accordingly.
9793
9794 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9795 Delete.
9796 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
9797 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9798 static. Add a mode argument.
1a627b35
RS
9799 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9800
9801 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9802
9803 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9804 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9805 (pa_legitimate_constant_p): New function.
9806
9807 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9808
9809 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9810 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9811 (pdp11_legitimate_constant_p): New function.
9812
9813 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9814 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9815 (rs6000_legitimate_constant_p): New function.
9816
9817 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9818 (rx_legitimate_constant_p): ...this.
9819 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9820 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9821 (rx_legitimate_constant_p): ...this.
9822 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9823 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9824
9825 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9826 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9827 * config/s390/s390.c (legitimate_constant_p): Rename to...
9828 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9829 and add a mode argument.
9830 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9831
9832 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9833
9834 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9835 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9836 (sh_legitimate_constant_p): New function.
9837
9838 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9839 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9840 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9841 (legitimate_constant_p): Rename to...
9842 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9843 argument.
9844 (constant_address_p): Update accordingly.
9845
9846 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9847 argument and return a bool.
9848 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9849 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9850 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9851 (spu_rtx_costs): Update accordingly.
9852 * config/spu/predicates.md (vec_imm_operand): Likewise.
9853
9854 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9855
9856 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9857 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9858 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9859
9860 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9861 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9862 * config/vax/vax.c (legitimate_constant_p): Likewise.
9863
9864 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9865 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9866 (xtensa_legitimate_constant_p): New function.
9867
fbbf66e7
RS
98682011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9869
9870 * target.def (cannot_force_const_mem): Add a mode argument.
9871 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9872 * doc/tm.texi: Regenerate.
9873 * hooks.h (hook_bool_mode_rtx_false): Declare.
9874 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9875 (hook_bool_mode_const_rtx_true): Likewise.
9876 (hook_bool_mode_rtx_false): New function.
9877 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9878 to be non-VOID. Update call to cannot_force_const_mem.
9879 (find_reloads): Update accordingly.
9880 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9881 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9882 argument.
9883 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9884 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9885 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9886 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9887 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9888 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9889 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9890 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9891 (m68k_cannot_force_const_mem): ...this new function.
9892 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9893 argument.
9894 (mips_const_insns, mips_legitimize_const_move): Update calls.
9895 (mips_secondary_reload_class): Likewise.
9896 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9897 (pa_cannot_force_const_mem): ...this new function.
2894086e 9898 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
9899 (rs6000_cannot_force_const_mem): ...this new function.
9900 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9901 argument.
9902 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9903 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9904 to...
9905 (xtensa_cannot_force_const_mem): ...this new function.
9906
b861891b
NF
99072011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9908
9909 * config/mips/mips.c (mips16_build_function_stub): Call
9910 build_function_type_list instead of build_function_type.
9911 (mips16_build_call_stub): Likewise.
9912
34149ed5
NF
99132011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9914
9915 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9916 instead of build_function_type.
9917
12526412
NF
99182011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9919
9920 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9921 instead of build_function_type.
9922
3b84d61f
UB
99232011-04-20 Uros Bizjak <ubizjak@gmail.com>
9924
9925 PR target/48678
9926 * config/i386/i386.md (insv): Change operand 0 constraint to
9927 "register_operand". Change operand 1 and 2 constraint to
9928 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9929 * config/i386/sse.md (sse4_1_pinsrb): Export.
9930 (sse2_pinsrw): Ditto.
9931 (sse4_1_pinsrd): Ditto.
9932 (sse4_1_pinsrq): Ditto.
9933 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9934 * config/i386/i386.c (ix86_expand_pinsr): New.
9935
4a25752b
ER
99362011-04-20 Easwaran Raman <eraman@google.com>
9937
9938 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9939 containing union type only with -fstrict-aliasing.
9940
04695783
JM
99412011-04-20 Jim Meyering <meyering@redhat.com>
9942
9943 Remove useless if-before-free tests.
9944 * calls.c (expand_call, save_area): Likewise.
9945 * cfgcleanup.c (try_forward_edges): Likewise.
9946 * collect2.c (collect_execute): Likewise.
9947 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9948 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9949 * coverage.c (coverage_checksum_string): Likewise.
9950 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9951 * cselib.c (cselib_init): Likewise.
9952 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9953 (df_set_clean_cfg): Likewise.
9954 * function.c (free_after_compilation): Likewise.
9955 * gcc.c (do_spec_1, main): Likewise.
9956 * gcov.c (create_file_names): Likewise.
9957 * gensupport.c (identify_predicable_attribute): Likewise.
9958 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9959 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9960 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9961 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9962 * ipa-pure-const.c (local_pure_const): Likewise.
9963 * ipa-reference.c (propagate): Likewise.
9964 * ira-costs.c (free_ira_costs): Likewise.
9965 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9966 * matrix-reorg.c (mat_free): Likewise.
9967 * prefix.c (get_key_value): Likewise.
9968 * profile.c (compute_value_histograms): Likewise.
9969 * reload1.c (free_reg_equiv): Likewise.
9970 * sched-deps.c (free_deps): Likewise.
9971 * sel-sched-ir.c (fence_clear): Likewise.
9972 * sese.c (set_rename, if_region_set_false_region): Likewise.
9973 * tree-data-ref.c (free_rdg): Likewise.
9974 * tree-eh.c (lower_try_finally): Likewise.
9975 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9976 * tree-ssa-live.c (delete_var_map): Likewise.
9977 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9978 * tree-ssa-pre.c (phi_trans_add): Likewise.
9979
6788475a
JJ
99802011-04-20 Jakub Jelinek <jakub@redhat.com>
9981
9982 PR tree-optimization/48611
9983 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9984 beyond ERT_MUST_NOT_THROW region.
9985
0eda4033
CM
99862011-04-20 Catherine Moore <clm@codesourcery.com>
9987
9988 * config/mips/mips.opt (mfix-24k): New.
9989 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9990 * config/mips/mips.md (length): Increase by 4 for stores if
9991 fixing 24K errata.
9992 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9993 all noreorder if fixing 24K errata.
9994 * doc/invoke.texi: Document mfix-24k.
9995
01475747
CLT
99962011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9997
9998 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 9999 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 10000
bc2c1a60
AS
100012011-04-20 Andrew Stubbs <ams@codesourcery.com>
10002
10003 * config/arm/arm.c (arm_gen_constant): Move movw support ....
10004 (const_ok_for_op): ... to here.
10005
583722ee
KT
100062011-04-20 Kai Tietz <ktietz@redhat.com>
10007
2894086e
UB
10008 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
10009 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 10010
422c0989
AS
100112011-04-20 Andrew Stubbs <ams@codesourcery.com>
10012
10013 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
10014
d7978bff
RG
100152011-04-20 Richard Guenther <rguenther@suse.de>
10016
10017 PR tree-optimization/47892
10018 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
10019 are if-convertible.
10020
818412ba
EB
100212011-04-20 Eric Botcazou <ebotcazou@adacore.com>
10022
10023 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
10024
b501ce4e
TG
100252011-04-20 Tristan Gingold <gingold@adacore.com>
10026
10027 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
10028
516edfdd
GJL
100292011-04-20 Georg-Johann Lay <avr@gjlay.de>
10030
10031 PR target/18145
10032
10033 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
10034 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
10035 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
10036 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
10037 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
10038
10039 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
10040 New prototype.
10041
10042 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
10043 (avr_asm_named_section, avr_asm_output_aligned_common,
10044 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
10045 New functions to update...
10046 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
10047 (avr_asm_init_sections): Overwrite section callbacks for
10048 data_section, bss_section.
10049 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
10050 from here to...
10051 (avr_file_end): ...here.
10052
dafc9511
RG
100532011-04-20 Richard Guenther <rguenther@suse.de>
10054
10055 PR middle-end/48695
10056 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 10057 objects and types here. Adjust for their offset before comparing.
dafc9511 10058
1da0876c
RS
100592011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
10060
10061 * tree-vect-stmts.c (vectorizable_store): Only chain one related
10062 statement per copy.
10063
25583c4f
RS
100642011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
10065
10066 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
10067 (GIMPLE_H): Include $(INTERNAL_FN_H).
10068 (OBJS-common): Add internal-fn.o.
10069 (internal-fn.o): New rule.
10070 * internal-fn.def: New file.
10071 * internal-fn.h: Likewise.
10072 * internal-fn.c: Likewise.
10073 * gimple.h: Include internal-fn.h.
10074 (GF_CALL_INTERNAL): New gf_mask.
10075 (gimple_statement_call): Put fntype into a union with a new
10076 internal_fn field.
10077 (gimple_build_call_internal): Declare.
10078 (gimple_build_call_internal_vec): Likewise.
10079 (gimple_call_same_target_p): Likewise.
10080 (gimple_call_internal_p): New function.
10081 (gimple_call_internal_fn): Likewise.
10082 (gimple_call_fntype): Return null for internal calls.
10083 (gimple_call_set_fntype): Assert that the function is not internal.
10084 (gimple_call_set_fn): Likewise.
10085 (gimple_call_set_fndecl): Likewise.
10086 (gimple_call_set_internal_fn): New function.
10087 (gimple_call_addr_fndecl): Handle null functions.
10088 (gimple_call_return_type): Likewise null types.
10089 * gimple.c (gimple_build_call_internal_1): New function.
10090 (gimple_build_call_internal): Likewise.
10091 (gimple_build_call_internal_vec): Likewise.
10092 (gimple_call_same_target_p): Likewise.
10093 (gimple_call_flags): Handle calls to internal functions.
10094 (gimple_call_fnspec): New function.
10095 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
10096 (gimple_has_side_effects): Handle null functions.
10097 (gimple_rhs_has_side_effects): Likewise.
10098 (gimple_call_copy_skip_args): Handle calls to internal functions.
10099 * cfgexpand.c (expand_call_stmt): Likewise.
10100 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
10101 * gimple-fold.c (gimple_fold_call): Handle null functions.
10102 (gimple_fold_stmt_to_constant_1): Don't fold
10103 calls to internal functions.
10104 * gimple-low.c (gimple_check_call_args): Handle calls to internal
10105 functions.
10106 * gimple-pretty-print.c (dump_gimple_call): Likewise.
10107 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
10108 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
10109 (do_warn_unused_result): Likewise.
10110 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
10111 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
10112 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
10113 the target of a call.
10114 (initialize_hash_element): Update accordingly.
10115 (hashable_expr_equal_p): Use gimple_call_same_target_p.
10116 (iterative_hash_hashable_expr): Handle calls to internal functions.
10117 (print_expr_hash_elt): Likewise.
10118 * tree-ssa-pre.c (can_value_number_call): Likewise.
10119 (eliminate): Handle null functions.
10120 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
10121 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
10122 (find_func_aliases): Likewise.
10123 * value-prof.c (gimple_ic_transform): Likewise.
10124 (gimple_indirect_call_to_profile): Likewise.
10125 * lto-streamer-in.c (input_gimple_stmt): Likewise.
10126 * lto-streamer-out.c (output_gimple_stmt): Likewise.
10127
1a3118e9
JH
101282011-04-19 Jan Hubicka <jh@suse.cz>
10129
10130 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
10131 * ipa-inline.c (inline_small_functions): Compute summaries first,
10132 populate heap later.
1a3118e9 10133
fee8b6da
JH
101342011-04-19 Jan Hubicka <jh@suse.cz>
10135
10136 * cgraph.h (save_inline_function_body): Remove.
10137 * ipa-inline-transform.c: New file, broke out of...
10138 * ipa-inline.c: ... this one; Update toplevel comment.
10139 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
10140 make global.
10141 (update_noncloned_frequencies): Move to ipa-inline-transform.c
10142 (cgraph_mark_inline_edge): Rename to inline_call; move to
10143 ipa-inline-transform.c.
10144 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
10145 move to ipa-inline-transform.c
10146 (recursive_inlining, inline_small_functions, flatten_function,
10147 ipa_inline, inline_always_inline_functions,
10148 early_inline_small_functions): Update.
10149 (inline_transform): Move to ipa-inline-transform.c.
10150 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
10151 Declare.
10152 * Makefile.in (ipa-inline-transform.o): New file.
10153 * cgraphunit.c (save_inline_function_body): Move to
10154 ipa-inline-transform.c
10155
f0679612
DD
101562011-04-19 DJ Delorie <dj@redhat.com>
10157
10158 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
10159 registers if we already know there aren't any.
10160 (m32c_emit_epilogue): Don't emit a barrier here.
10161 (m32c_emit_eh_epilogue): Likewise.
10162 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
10163 operands at expand time.
10164 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
10165 int" wchar type.
10166 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
10167 duplicates. Provide aliases instead.
10168 * config/m32c/prologue.md (eh_return): Emit a barrier here.
10169 (eh_epilogue): Add a "(return)" here as a hint to other parts of
10170 the compiler.
10171
32257ddc
AS
101722011-04-19 Anatoly Sokolov <aesok@post.ru>
10173
10174 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
10175 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
10176 (general_or_i64_p, sparc_register_move_cost): New function.
10177
60bea929
RO
101782011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10179
10180 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 10181 Add lynx, mipssde. Sort table.
60bea929 10182
444b3995 101832011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 10184
9d12f71a
EB
10185 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
10186 not negative.
444b3995 10187
d708ce50
JJ
101882011-04-19 Jakub Jelinek <jakub@redhat.com>
10189
10190 PR target/48678
10191 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
10192 is a SUBREG with non-MODE_INT mode inside of it.
10193
49c471e3
MJ
101942011-04-19 Martin Jambor <mjambor@suse.cz>
10195
10196 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
10197 also according to actual contants.
10198 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
10199 (gimple_fold_call): Use it.
10200 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
10201
0004f992
MJ
102022011-04-19 Martin Jambor <mjambor@suse.cz>
10203
10204 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
10205 non-pointer assignments.
10206
40591473
MJ
102072011-04-19 Martin Jambor <mjambor@suse.cz>
10208
10209 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
10210 account anc_offset and otr_type from the indirect edge info.
10211 * ipa-prop.c (get_ancestor_addr_info): New function.
10212 (compute_complex_ancestor_jump_func): Assignment analysis moved to
10213 get_ancestor_addr_info, call it.
10214 (ipa_note_param_call): Do not initialize information about polymorphic
10215 calls, return the indirect call graph edge. Remove the last
10216 parameter, adjust all callers.
10217 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
10218 parameters. Initialize polymorphic information in the indirect edge.
10219
abe36b81
EB
102202011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10221
10222 PR lto/48148
10223 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
10224 the types if they have different enumeration identifiers.
10225
e6416b30
JH
102262011-04-19 Jan Hubicka <jh@suse.cz>
10227
10228 * cgraph.h (cgraph_optimize_for_size_p): Declare.
10229 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
10230 * predict.c (cgraph_optimize_for_size_p): Break out from ...
10231 (optimize_function_for_size_p) ... here.
10232
d39132ea
RG
102332011-04-19 Richard Guenther <rguenther@suse.de>
10234
10235 PR lto/48207
10236 * tree.c (free_lang_data): Do not reset the decl-assembler-name
10237 langhook.
10238
ff7037dc
EB
102392011-04-19 Eric Botcazou <ebotcazou@adacore.com>
10240
10241 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
10242 if DECL_NO_INLINE_WARNING_P is set on the function.
10243
c1ee2892
BS
102442011-04-19 Bernd Schmidt <bernds@codesourcery.com>
10245
10246 PR fortran/47976
10247 * reload1.c (inc_for_reload): Return void. All callers changed.
10248 (emit_input_reload_insns): Don't try to delete previous output
10249 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
10250
102512011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
10252
10253 * gengtype.h: Updated copyright year.
10254 (struct input_file_st): Add inpisplugin field.
10255 (type_fileloc): New function.
10256 * gengtype.c
10257 (write_typed_struct_alloc_def): Add gcc_assert.
10258 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
10259 (write_typed_alloc_defns): Don't output for plugin files.
10260 (input_file_by_name): Clear inpisplugin field.
10261 (main): Set inpisplugin field for plugin files.
10262
897e0a89
NP
102632011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
10264
10265 * gengtype-state.c (string_eq): New.
10266 (read_state): Use string_eq instead of strcmp when creating the
10267 state_ident_tab.
10268
363ee90e
WG
102692011-04-19 Wei Guozhi <carrot@google.com>
10270
10271 PR target/47855
10272 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
10273 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
10274 linkage.
10275 * config/arm/constraints.md (Uu): New constraint.
10276 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
10277
18a24fed
TG
102782011-04-19 Tristan Gingold <gingold@adacore.com>
10279
10280 * config.gcc (-*-*-*vms): Added.
10281 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
10282 definitions moved.
10283 * config/vms/vms-ld.c: New file.
10284 * config/vms/vms-ar.c: New file.
10285 * config/vms/t-vmsnative: New file.
10286
1c13f168
XDL
102872011-04-18 Xinliang David Li <davidxl@google.com>
10288
10289 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
10290
84825707
JJ
102912011-04-18 Jakub Jelinek <jakub@redhat.com>
10292
10293 PR middle-end/48661
10294 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
10295 if TREE_TYPE (v) is non-NULL.
10296
10297 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
10298 gimple_get_virt_mehtod_for_binfo.
10299 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
10300 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
10301 callers.
10302 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
10303
7d4f8d02 103042011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
10305 Steve Ellcey <sje@cup.hp.com>
10306
7d4f8d02
EB
10307 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
10308 use its mode as source mode if it isn't VOIDmode.
7254cb57 10309
474e8e70
DCR
103102011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
10311
10312 * doc/passes.texi: Fill crossref nodes.
10313
cff41484
JM
103142011-04-18 Jim Meyering <meyering@redhat.com>
10315
7d4f8d02 10316 Fix doubled-word typos in comments and strings
cff41484
JM
10317 * config/alpha/vms-unwind.h: s/for for/for/
10318 * config/arm/unwind-arm.h: Likewise.
10319 * config/microblaze/microblaze.c: Likewise.
10320 * config/sh/constraints.md: s/in in/in/
10321 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
10322
f60c2554
UB
103232011-04-18 Uros Bizjak <ubizjak@gmail.com>
10324
10325 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
10326 (AVX_FLOAT_MODE_P): Ditto.
10327 (AVX128_VEC_FLOAT_MODE_P): Ditto.
10328 (AVX256_VEC_FLOAT_MODE_P): Ditto.
10329 (AVX_VEC_FLOAT_MODE_P): Ditto.
10330 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
10331 (UNSPEC_MASKSTORE): Ditto.
10332 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
10333 Merge from <sse>_movmsk<ssemodesuffix> and
10334 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
10335 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
10336 iterator.
10337 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
10338 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
10339 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
10340
09a2806f
JH
103412011-04-18 Jan Hubicka <jh@suse.cz>
10342
8a8dccb2
JH
10343 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
10344
09a2806f
JH
10345 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
10346 (want_inline_function_called_once_p): Break out the logic from
10347 ipa_inline.
10348 (edge_badness): Ensure that profile is not misupdated.
10349 (lookup_recursive_calls): Prioritize by call frequencies.
10350 (inline_small_functions): Move program size estimates here;
10351 actually process whole queue even when unit growth has been
10352 met. (to properly compute inline_failed reasons and for the
f60c2554 10353 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
10354 (ipa_inline): Remove unit summary code; first inline hot calls
10355 of functions called once, cold calls next.
10356 (order, nnodes): Remove unused variables.
10357 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
10358 (GTFILES): Remove ipa-inline.c
10359 * sel-sched.c (fill_insns): Silence uninitialized var warning.
10360
3eea52ef
EB
103612011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10362
10363 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
10364
229a1c59 103652011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 10366 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
10367
10368 * arm.c (neon_builtin_type_bits): Remove.
10369 (typedef enum neon_builtin_mode): New.
10370 (T_MAX): Don't define.
10371 (typedef enum neon_builtin_datum): Remove bits, codes[],
10372 num_vars and base_fcode. Add mode, code and fcode.
10373 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
10374 VAR10): Change accordingly.
10375 (neon_builtin_data[]): Change accordingly
10376 (arm_init_neon_builtins): Change accordingly.
10377 (neon_builtin_compare): Remove.
10378 (locate_neon_builtin_icode): Remove.
10379 (arm_expand_neon_builtin): Change accordingly.
10380
10381 * arm.h (enum arm_builtins): Move to ...
10382 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
10383
10384 * arm.c (arm_builtin_decl): Declare.
10385 (TARGET_BUILTIN_DECL): Define.
10386 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
10387 (arm_builtin_decls[]): New.
10388 (arm_init_neon_builtins): Store builtin declarations in
10389 arm_builtin_decls[].
10390 (arm_init_tls_builtins): Likewise.
10391 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
10392 (arm_builtin_decl): New.
10393
75e802cc
RG
103942011-04-18 Richard Guenther <rguenther@suse.de>
10395
10396 * tree.c (upper_bound_in_type): Build properly canonicalized
10397 INTEGER_CSTs.
10398 (lower_bound_in_type): Likewise.
10399
3b45a007
RG
104002011-04-18 Richard Guenther <rguenther@suse.de>
10401
10402 * gimple.h (gimple_call_addr_fndecl): New function.
10403 (gimple_call_fndecl): Use it.
10404 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
10405 for direct calls.
10406 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
10407 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
10408
d25a79ea
RG
104092011-04-18 Richard Guenther <rguenther@suse.de>
10410
10411 PR middle-end/48650
10412 * tree.c (build_string): STRING_CST is now derived from tree_typed.
10413
7d5fc814
EB
104142011-04-18 Eric Botcazou <ebotcazou@adacore.com>
10415
10416 PR lto/48492
10417 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
10418 DECL_IN_CONSTANT_POOL without RTL.
10419
7e7cfcf6
UW
104202011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
10421 Ira Rosen <ira.rosen@linaro.org>
10422
10423 PR target/48252
10424 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
10425 to match neon_vzip/vuzp/vtrn_internal.
10426 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
10427 outputs explicitly dependent on both inputs.
10428 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
10429
49eab32e
JJ
104302011-04-18 Jakub Jelinek <jakub@redhat.com>
10431
10432 PR tree-optimization/48616
10433 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
10434 whether the shift is by scalar or vector based on whether all SLP
10435 scalar stmts have the same rhs.
10436
e54170f4
CLT
104372011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
10438
10439 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
10440 memory operands.
10441
b14ee6c9
RS
104422011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
10443
269e0e18 10444 PR target/43700
b14ee6c9
RS
10445 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10446 registers.
10447
10158cd3
JH
104482011-04-17 Jan Hubicka <jh@suse.cz>
10449
10450 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
10451 * cgrpahunit.c (cgraph_finalize_function): Do not set
10452 finalized_by_frontend.
10158cd3
JH
10453 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10454 finalized_by_frontend.
10455
2e9bb6ba
JH
104562011-04-17 Jan Hubicka <jh@suse.cz>
10457
10458 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10459 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10460 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
10461 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10462 method.
2e9bb6ba
JH
10463 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10464 gimple-fold.c
10465 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10466
beb628e1
EB
104672011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10468
10469 PR lto/48538
10470 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10471 is non-null before accessing it.
10472 (input_cgraph): Remove trailing spaces.
10473
3e2fdd24
RE
104742011-04-17 Revital Eres <revital.eres@linaro.org>
10475
10476 * params.def (sms-min-sc): New param flag.
10477 * modulo-sched.c (sms_schedule): Use it.
10478 * doc/invoke.texi (sms-min-sc): Document it.
10479
4c0f7679
JH
104802011-04-17 Jan Hubicka <jh@suse.cz>
10481
10482 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10483 present, also set gimple_call_set_cannot_inline.
10484 * ipa-inline.c: Update toplevel comment.
10485 (MAX_TIME): Remove.
10486 (cgraph_clone_inlined_nodes): Fix linebreaks.
10487 (cgraph_check_inline_limits): Restructure to ...
10488 (caller_growth_limits): ... this one; be more tolerant
10489 on growth in nested inline chains; add explanatory comment;
10490 fix stack accounting thinko introduced by previous patch.
10491 (cgraph_default_inline_p): Remove.
10492 (report_inline_failed_reason): New function.
10493 (can_inline_edge_p): New function.
10494 (can_early_inline_edge_p): New function.
10495 (leaf_node_p): Move upwards in file.
10496 (want_early_inline_function_p): New function.
10497 (want_inline_small_function_p): New function.
10498 (want_inline_self_recursive_call_p): New function.
10499 (cgraph_edge_badness): Rename to ...
10500 (edge_badness) ... this one; fix linebreaks.
10501 (update_edge_key): Update call of edge_baddness; add
10502 detailed dump about queue updates.
10503 (update_caller_keys): Use can_inline_edge_p and
10504 want_inline_small_function_p.
10505 (cgraph_decide_recursive_inlining): Rename to...
10506 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
10507 want_inline_self_recursive_call_p; simplify and remove no longer
10508 valid FIXME.
4c0f7679
JH
10509 (cgraph_set_inline_failed): Remove.
10510 (add_new_edges_to_heap): Use can_inline_edge_p and
10511 want_inline_small_function_p.
10512 (cgraph_decide_inlining_of_small_functions): Rename to ...
10513 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
10514 can/want predicates; cleanup debug ouput; work edges till fibheap
10515 is exhausted and do not stop once unit growth is reached; remove
10516 later loop processing remaining edges.
4c0f7679
JH
10517 (cgraph_flatten): Rename to ...
10518 (flatten_function): ... this one; use can_inline_edge_p
10519 and can_early_inline_edge_p predicates.
10520 (cgraph_decide_inlining): Rename to ...
10521 (ipa_inline): ... this one; remove unreachable nodes before
10522 inlining functions called once; simplify the pass.
10523 (cgraph_perform_always_inlining): Rename to ...
10524 (inline_always_inline_functions): ... this one; use
f60c2554 10525 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
10526 (cgraph_decide_inlining_incrementally): Rename to ...
10527 (early_inline_small_functions): ... this one; simplify
10528 using new predicates; cleanup; make dumps prettier.
10529 (cgraph_early_inlining): Rename to ...
10530 (early_inliner): newer inline regular functions into always-inlines;
10531 fix updating of call stmt summaries.
10532 (pass_early_inline): Update for new names.
10533 (inline_transform): Fix formating.
10534 (gate_cgraph_decide_inlining): Rename to ...
10535 (pass_ipa_inline): ... this one.
10536 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10537 * ipa-inline-analysis.c (dump_inline_summary): Update.
10538 (compute_inline_parameters): Do not compute disregard_inline_limits;
10539 look for mismatching arguments.
10540 (estimate_growth): Fix handlig of non-trivial self recursion.
10541 (inline_read_summary): Do not read info->disregard_inline_limits.
10542 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
10543 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10544 and move all checks into can_inline_edge_p predicate; re-enable code
10545 comparing optimization levels.
4c0f7679
JH
10546 (expand_call_inline): Do not test inline_forbidden_into_p.
10547 * Makefile.in (ipa-inline.o): Update arguments.
10548
54333b7c
RE
105492011-04-17 Revital Eres <revital.eres@linaro.org>
10550
10551 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10552
42c2bf92
RE
105532011-04-17 Revital Eres <revital.eres@linaro.org>
10554
10555 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10556
b183e9e0
MM
105572011-04-17 Michael Matz <matz@suse.de>
10558
10559 PR tree-optimization/48622
10560 PR lto/48645
10561 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10562 in same order as they're written.
10563
b8a17fa2
JDA
105642011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10565
10566 * config/pa/predicates.md: Reorganize and simplify predicates.
10567 Eliminate duplicate code checks.
10568 (arith_operand): Rename to arith14_operand
10569 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10570 * config/pa/pa.md: Use renamed operands.
10571 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10572 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10573 arith11_operand, adddi3_operand, indexed_memory_operand,
10574 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10575 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10576 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10577 move_dest_operand, move_src_operand, prefetch_cc_operand,
10578 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10579 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10580 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10581 div_operand, int5_operand, movb_comparison_operator,
10582 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10583 arith_double_operand, ireg_operand, lhs_lshift_operand,
10584 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10585 integer_store_memory_operand): Likewise.
10586 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10587 (integer_store_memory_operand, read_only_operand,
10588 function_label_operand, borx_reg_operand,
10589 non_hard_reg_operand): Likewise.
10590 (eq_neq_comparison_operator): Delete unused operator.
10591 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10592 function_label_operand.
10593 (emit_move_sequence): Likewise.
10594
8dfb9f16
UB
105952011-04-16 Uros Bizjak <ubizjak@gmail.com>
10596
10597 * config/i386/sse.md (sseunpackmode): New mode attribute.
10598 (ssepackmode): Ditto.
10599 (vec_pack_trunc_<mode>): Macroize expander from
10600 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10601 (vec_unpacks_lo_<mode>): Macroize expander from
10602 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10603 (vec_unpacks_hi_<mode>): Macroize expander from
10604 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10605 (vec_unpacku_lo_<mode>): Macroize expander from
10606 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10607 (vec_unpacku_hi_<mode>): Macroize expander from
10608 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10609 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10610 ix86_expand_sse4_unpack.
10611 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10612
e7f23018
JH
106132011-04-16 Jan Hubicka <jh@suse.cz>
10614
10615 * cgraphbuild.c: Include ipa-inline.h.
10616 (reset_inline_failed): Use initialize_inline_failed.
10617 * cgraph.c: Include ipa-inline.h.
10618 (cgraph_create_node_1): Do not initialize estimated_growth.
10619 (initialize_inline_failed): More to ipa-inline-analysis.c
10620 (dump_cgraph_node): Do not dump inline flags.
10621 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10622 and disregard_inline_limits flags.
10623 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10624 time, size, estimated_growth.
8dfb9f16
UB
10625 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10626 Update.
e7f23018
JH
10627 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10628 DECL_DISREGARD_INLINE_LIMITS.
10629 (cgraph_analyze_function): Do not initialize
10630 node->local.disregard_inline_limits.
10631 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10632 inlinable, versionable and disregard_inline_limits.
10633 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
10634 cgraph_check_inline_limits, cgraph_default_inline_p,
10635 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10636 add_new_edges_to_heap): Update.
10637 (cgraph_decide_inlining_of_small_function): Update; set
10638 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
10639 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10640 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
10641 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10642 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10643 time, size and estimated_growth parameters.
e7f23018
JH
10644 (estimate_edge_growth): Update.
10645 (initialize_inline_failed): Declare.
10646 * ipa-split.c: Include ipa-inline.h
10647 (execute_split_functions): Update.
10648 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10649 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10650 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10651 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10652 estimated_growth to INT_MIN.
10653 (inline_node_duplication_hook): Likewise.
10654 (dump_inline_summary): Dump new fields.
10655 (compute_inline_parameters): Update.
10656 (estimate_edge_time, estimate_time_after_inlining,
10657 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10658 inline_write_summary):
10659 (initialize_inline_failed): Move here from cgraph.c.
10660 * tree-sra.c: Include ipa-inline.h.
10661 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
10662 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10663 ipa-inline.h.
e7f23018 10664
e81b8564
UB
106652011-04-16 Uros Bizjak <ubizjak@gmail.com>
10666
10667 * config/i386/sse.md (V16): New mode iterator.
10668 (VI1, VI8): Ditto.
10669 (AVXMODEQI, AVXMODEDI): Remove.
10670 (sse2, sse3): New mode attribute.
10671 (mov<mode>): Use V16 mode iterator.
10672 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10673 (push<mode>1): Use V16 mode iterator.
10674 (movmisalign<mode>): Ditto.
10675 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10676 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10677 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10678 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10679 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10680 avx_movdqu<avxmodesuffix>.
10681 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10682 *avx_movdqu<avxmodesuffix>.
10683 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10684 avx_lddqu<avxmodesuffix>.
10685 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10686 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10687 avx_movnt<AVXMODEDI:mode>.
10688 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10689 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10690
4743d438
BS
106912011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10692
10693 PR target/48629
10694 * haifa-sched.c (prune_ready_list, schedule_block): Use
10695 sched_pressure_p rather than flag_sched_pressure.
10696
748f7574 106972011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
10698
10699 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10700 cgraph_get_node instead of cgraph_get_create_node.
10701
2ba172e0
JJ
107022011-04-15 Jakub Jelinek <jakub@redhat.com>
10703
10704 * cfgexpand.c (expand_debug_expr): Use
10705 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10706
63d2a353
MM
107072011-04-15 Michael Matz <matz@suse.de>
10708
10709 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10710 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10711 * function.c (gimplify_parameters): Ditto.
10712 * gimplify.c (gimplify_vla_decl): Ditto.
10713
10714 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10715 (gimple_call_set_alloca_for_var): New inline function.
10716 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
10717 * gimple.c (gimple_build_call_from_tree): Remember
10718 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
10719 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10720
10721 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10722 calls if they were for VLA objects.
10723
dee74c34
MJ
107242011-04-15 Martin Jambor <mjambor@suse.cz>
10725
10726 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10727 of ADR_EXPRs.
10728
8e5837bc
MJ
107292011-04-15 Martin Jambor <mjambor@suse.cz>
10730
10731 PR middle-end/48601
10732 * tree-emutls.c (lower_emutls_function_body): Call
10733 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10734 result is non-NULL.
10735
0dc33c3c
NP
107362011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10737
10738 * c-decl.c (detect_field_duplicates): Call
10739 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10740
edcdea5b
NF
107412011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10742
10743 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10744 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10745 * ipa-pure-const.c (check_stmt): Call it.
10746 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10747
8456558d
RG
107482011-04-15 Richard Guenther <rguenther@suse.de>
10749
10750 PR tree-optimization/48290
10751 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10752 Properly decide inhibiting propagation based on the valueized
10753 operand. Do loop-closed SSA form preserving here ...
10754 (init_copy_prop): ... not here.
10755
266446be
L
107562011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10757
10758 PR target/48612
10759 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10760 (*ieee_smax<mode>3): Likewise.
10761
17465c6e
AK
107622011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10763
10764 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10765 Replace match_operand with match_dup for the third operand in
10766 these expanders.
10767
bce204e5
MK
107682011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10769
10770 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10771 to track processing of conditionals. Update all callers.
10772 (try_combine, simplify_if_then_else): Update.
10773
3162fdf4
MK
107742011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10775
10776 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10777 -fsched-pressure.
10778
79002a57 107792011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 10780
79002a57
GJL
10781 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10782 instead of match_operand for operand 3.
10783
4fd3a105
RS
107842011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10785
10786 * recog.h (insn_operand_data): Add an "allows_mem" field.
10787 * genoutput.c (output_operand_data): Initialize it.
10788 * optabs.c (maybe_legitimize_operand_same_code): New function.
10789 (maybe_legitimize_operand): Use it when matching the original
10790 op->value.
10791
ad19c4be
EB
107922011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10793
10794 * gimplify.c: Fix issues in comments throughout.
10795 (voidify_wrapper_expr): Fix long line.
10796 (build_stack_save_restore): Likewise.
10797 (gimplify_loop_expr): Likewise.
10798 (gimplify_compound_lval): Likewise.
10799 (gimplify_init_ctor_eval): Likewise.
10800 (gimplify_modify_expr_rhs): Likewise.
10801 (omp_notice_threadprivate_variable): Likewise.
10802
b25aa0e8 108032011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 10804
b25aa0e8
EB
10805 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10806 original one if this is not a builtin function.
e7925582 10807
09db7afe
JJ
108082011-04-14 Jakub Jelinek <jakub@redhat.com>
10809
10810 PR target/48605
10811 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10812 offset it as needed based on top 2 bits in operands[3], change
10813 MEM mode to SFmode and mask those 2 bits away from operands[3].
10814
c59633d9
NP
108152011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10816
10817 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10818 change from objc_declare_protocols() to objc_declare_protocol().
10819
5e60198b
UB
108202011-04-14 Uros Bizjak <ubizjak@gmail.com>
10821
10822 * config/i386/sse.md (sse4_1): New mode attribute.
10823 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10824 avx_blend<ssemodesuffix><avxmodesuffix> and
10825 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10826 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10827 avx_blendv<ssemodesuffix><avxmodesuffix> and
10828 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10829 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10830 avx_dp<ssemodesuffix><avxmodesuffix> and
10831 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10832 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10833 (sse4_1_packusdw): Merge with *avx_packusdw.
10834 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10835 (sse4_1_pblendw): Merge with *avx_pblendw.
10836 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10837 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10838 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10839 VF mode iterator.
10840 (sse4_1_round<ssescalarmodesuffix>): Merge with
10841 *avx_round<ssescalarmodesuffix>.
10842 (aesenc): Merge with *avx_aesenc.
10843 (aesenclast): Merge with *avx_aesenclast.
10844 (aesdec): Merge with *avx_aesdec.
10845 (aesdeclast): Merge with *avx_aesdeclast.
10846 (pclmulqdq): Merge with *pclmulqdq.
10847 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10848 New predicate.
10849 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10850
6f197850
L
108512011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10852
10853 PR middle-end/48608
10854 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10855 (align_local_variable): This. Update DECL_ALIGN.
10856 (add_stack_var): Updated.
10857 (expand_one_stack_var): Likewise.
10858
4a5ba3ed
RG
108592011-04-14 Richard Guenther <rguenther@suse.de>
10860
10861 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10862 Remove.
10863 (dse_initialize_block_local_data, dse_leave_block,
10864 record_voperand_set, get_stmt_uid): Likewise.
10865 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10866 (dse_optimize_stmt): Remove voperand set handling code.
10867 Simplify and improve to handle any kind of killing stmt.
10868 (dse_record_phi): Remove.
10869 (dse_enter_block): Simplify.
10870 (tree_ssa_dse): Likewise.
10871 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10872
10a5dd5d
JH
108732011-04-14 Jan Hubicka <jh@suse.cz>
10874
10875 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10876 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10877 (cgraph_local_info): Remove inline_summary.
10878 * ipa-cp.c: Include ipa-inline.h.
10879 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10880 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10881 accesor.
10882 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10883 (input_overwrite_node): Do not set inline summary.
10884 (input_node): Do not stream inline summary.
10885 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10886 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10887 growth; we do not have inline parameters computed for that anyway.
10888 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10889 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10890 (inline_summary_t): New type and VECtor.
10891 (debug_inline_summary, dump_inline_summaries): Declare.
10892 (inline_summary): Use VOCtor.
10893 (estimate_edge_growth): Kill hack computing call stmt size directly.
10894 * lto-section-in.c (lto_section_name): Add inline section.
10895 * ipa-inline-analysis.c: Include lto-streamer.h
10896 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10897 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10898 (inline_summary_vec): Define.
10899 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10900 dump_inline_summaries): New functions.
5e60198b
UB
10901 (estimate_function_body_sizes): Properly compute size/time of outgoing
10902 calls.
10903 (compute_inline_parameters): Alloc inline_summary; do not compute
10904 size/time of incomming calls.
10a5dd5d
JH
10905 (estimate_edge_time): Avoid missing time summary hack.
10906 (inline_read_summary): Read inline summary info.
10907 (inline_write_summary): Write inline summary info.
10908 (inline_free_summary): Free all hooks and inline summary vector.
10909 * lto-streamer.h: Add LTO_section_inline_summary section.
10910 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10911 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10912
b602d918
RS
109132011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10914
10915 * tree-vectorizer.h (vect_strided_store_supported): Add a
10916 HOST_WIDE_INT argument.
10917 (vect_strided_load_supported): Likewise.
10918 (vect_permute_store_chain): Return void.
10919 (vect_transform_strided_load): Likewise.
10920 (vect_permute_load_chain): Delete.
10921 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10922 count argument. Check that the count is a power of two.
10923 (vect_strided_load_supported): Likewise.
10924 (vect_permute_store_chain): Return void. Update after above changes.
10925 Assert that the access is supported.
10926 (vect_permute_load_chain): Likewise.
10927 (vect_transform_strided_load): Return void.
10928 * tree-vect-stmts.c (vectorizable_store): Update calls after
10929 above interface changes.
10930 (vectorizable_load): Likewise.
10931 (vect_analyze_stmt): Don't check for strided powers of two here.
10932
ab4472fa
RG
109332011-04-14 Richard Guenther <rguenther@suse.de>
10934
10935 PR tree-optimization/48590
10936 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10937 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10938 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10939 BUILT_IN_STACK_SAVE.
10940 * tree-ssa-dce.c (propagate_necessity): Handle
10941 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10942
32dabdaf
NP
109432011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10944
10945 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10946 objc_declare_class.
10947
daade206
RG
109482011-04-14 Richard Guenther <rguenther@suse.de>
10949
10950 * tree.h (get_object_alignment_1): Declare.
10951 * builtins.c (get_object_alignment_1): Split out worker from ...
10952 (get_object_alignment): ... here.
10953 * fold-const.c (get_pointer_modulus_and_residue): Use
10954 get_object_alignment_1.
10955
920e8172
RS
109562011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10957
10958 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10959 type parameter.
10960 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10961 parameter. Generalise code to handle arrays as well as vectors.
10962 (vect_setup_realignment): Update accordingly.
10963 * tree-vect-stmts.c (vectorizable_store): Likewise.
10964 (vectorizable_load): Likewise.
10965
5ce1ee7f
RS
109662011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10967
10968 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10969 within the per-copy loop.
10970
6438fe33 109712011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
10972
10973 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10974 in the dump file.
10975
6438fe33 109762011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
10977
10978 * doc/options.texi (Negative): Explicitly mention that the
10979 Negative chain must be circular.
10980
61e46a7d
NF
109812011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10982
10983 * function.h (block_chainon): Declare.
10984 * function.c (block_chainon): Define.
10985
43ea6502 109862011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 10987 Eric Weddington <eric.weddington@atmel.com>
748f7574 10988 Georg-Johann Lay <avr@gjlay.de>
5e60198b 10989
f60c2554 10990 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
10991 New Includes
10992 (avr_init_builtins, avr_expand_builtin,
10993 avr_expand_delay_cycles, avr_expand_unop_builtin,
10994 avr_expand_binop_builtin ): New functions.
10995 (avr_builtin_id): New enum
10996 (struct avr_builtin_description): New struct
10997 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10998 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 10999
43ea6502 11000 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 11001 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
11002 UNSPECV_DELAY_CYCLES): new enumeration values
11003 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
11004 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
11005 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
11006 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
11007 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
11008 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
11009 "fmulsu"): New insns
5e60198b 11010
43ea6502
AS
11011 * config/avr/avr-c.c: fix line endings
11012 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
11013 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
11014 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
11015 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
11016 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 11017
43ea6502
AS
11018 * doc/extend.texi (AVR Built-in Functions): New node
11019 (Target Builtins): Add documentation of AVR
11020 built-in functions.
11021
8a9b55f3
GJL
110222011-04-14 Georg-Johann Lay <avr@gjlay.de>
11023
11024 PR target/44643
11025 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
11026 alone. Error if non-const data has attribute progmem.
11027
94bd1825
NF
110282011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11029
11030 * tree.h (struct tree_constructor): Include tree_typed instead of
11031 tree_common.
11032 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
11033 TS_TYPED instead of TS_COMMON.
11034
5e60198b 110352011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
11036
11037 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
11038 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
11039 (sse2_psadbw): Merge with *avx_psadbw.
11040 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
11041 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
11042 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
11043 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
11044 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
11045 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
11046 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
11047 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
11048 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
11049 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
11050 (ssse3_palignrti): Merge with *avx_palignrti.
11051
4b1a4694
NF
110522011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11053
11054 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
11055 * tree-ssanames.c (fini_ssanames): VEC_free it.
11056 (make_ssa_name_fn): Update for VECness of free_ssanames.
11057 (release_ssa_name, release_dead_ssa_names): Likewise.
11058 * tree.h (struct tree_ssa_name): Include tree_typed instead of
11059 tree_common.
11060 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
11061 TS_TYPED instead of TS_COMMON.
11062
4da3b811
NF
110632011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11064
11065 * postreload-gcse.c (gcse_after_reload_main): Add calls to
11066 statistics_counter_event.
11067 * tree-ssa-copyrename.c (stats): Define.
11068 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
11069 statistics_counter_event.
11070 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
11071 (bswap_stats, widen_mul_stats): Define.
11072 (insert_reciprocals): Increment rdivs_inserted.
11073 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
11074 rfuncs_inserted. Add calls to statistics_counter_event.
11075 (execute_cse_sincos_1): Increment inserted.
11076 (execute_cse_sincos): Zeroize sincos_stats. Add call to
11077 statistics_counter_event.
11078 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
11079 of bswap_stats. Add calls to statistics_counter_event.
11080 (convert_mult_to_widen): Increment widen_mults_inserted.
11081 (convert_plusminus_to_widen): Increment maccs_inserted.
11082 (convert_mult_to_fma): Increment fmas_inserted.
11083 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
11084 calls to statistics_counter_event.
11085
89fa552a
VM
110862011-04-13 Vladimir Makarov <vmakarov@redhat.com>
11087
11088 PR rtl-optimization/48455
11089 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
11090 `temp_costs->mem_cost'.
11091
03dfc36d
JH
110922011-04-13 Jan Hubicka <jh@suse.cz>
11093
11094 * ipa-inline.h: New file.
11095 * ipa-inline-analysis.c: New file. Broken out of ...
11096 * ipa-inline.c: ... this file; update toplevel comment;
11097 include ipa-inline.h
11098 (inline_summary): Move to ipa-inline.h
11099 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
11100 ipa-inline-analysis.c.
7d4f8d02
EB
11101 (cgraph_estimate_time_after_inlining): Rename to
11102 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
11103 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
11104 to estimate_edge_growth.
11105 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
11106 rename to estimate_size_after_inlining.
11107 (cgraph_mark_inline_edge): Update for new naming convention.
11108 (cgraph_check_inline_limits): Likewise.
11109 (cgraph_edge_badness): Likewise.
11110 (cgraph_decide_recursive_inlining): Likewise.
11111 (cgraph_decide_inlining_of_small_functions): Likewise.
11112 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
11113 (cgraph_estimate_growth): Rename to estimate_growth; move to
11114 ipa-inline-analysis.c.
03dfc36d
JH
11115 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
11116 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
11117 (compute_inline_parameters): Likewise.
11118 (compute_inline_parameters_for_current): Likewise.
11119 (pass_inline_parameters): Likewise.
11120 (inline_indirect_intraprocedural_analysis): Likewise.
11121 (analyze_function): Rename to inline_analyze_function; likewise.
11122 (add_new_function): Move to ipa-inline-analysis.c.
11123 (inline_generate_summary): Likewise.
11124 (inline_read_summary): Likewise.
11125 (inline_write_summary): Likewise.
11126 * Makefile.in (ipa-inline-analysis.c): New file.
11127
7673c962
RO
111282011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11129
11130 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
11131 * configure: Regenerate.
11132
9698252f
NF
111332011-04-13 Nathan Froyd <froydnj@codesourcery.com>
11134
11135 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
11136 instead of tree_common.
11137 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
11138 Likewise.
11139 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
11140 TS_TYPED rather than TS_COMMON.
11141 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
11142
3a7bfdd5
GJL
111432011-04-01 Georg-Johann Lay <avr@gjlay.de>
11144
11145 PR target/45263
86d83530
GJL
11146 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
11147 r20 around calls of __tablejump_elpm__
3a7bfdd5 11148
20790697
JJ
111492011-04-13 Jakub Jelinek <jakub@redhat.com>
11150
11151 PR middle-end/48591
11152 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
11153 NULL.
11154 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
11155
094d7661
BS
111562011-04-13 Bernd Schmidt <bernds@codesourcery.com>
11157
11158 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
11159 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
11160 (cfi_vec): New typedef.
11161 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
11162 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
11163 (cie_cfi_vec): New static variable.
11164 (cie_cfi_head): Delete.
11165 (add_cfi): Accept a cfi_vec * as first argument. All callers and
11166 declaration changed. Use vector rather than list operations.
11167 (new_cfi): Don't initialize the dw_cfi_next field.
11168 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
11169 rather than list operations.
11170 (lookup_cfa): Use vector rather than list operations.
11171 (output_cfis): New argument upto. Accept a cfi_vec rather than
11172 a dw_cfi_ref list head as argument. All callers changed.
11173 Iterate over the vector using upto as a maximum index.
11174 (output_all_cfis): New static function.
11175 (output_fde): Use vector rather than list operations. Use the
11176 new upto argument for output_cfis rather than manipulating a
11177 list.
11178 (dwarf2out_begin_prologue): Change initializations to match
11179 new struct members.
11180 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
11181 from the vector length rather than searching for the end of a list.
11182 Use output_all_cfis.
11183 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
11184
673a5740
NC
111852011-04-13 Nick Clifton <nickc@redhat.com>
11186
11187 * config/rx/rx.md (movmemsi): Do not use this pattern when
11188 volatile pointers are involved.
11189
1ee8b298
UB
111902011-04-13 Uros Bizjak <ubizjak@gmail.com>
11191
11192 * config/i386/sse.md (pinsrbits): Remove.
11193 (sse2_packsswb): Merge with *avx_packsswb.
11194 (sse2_packssdw): Merge with *avx_packssdw.
11195 (sse2_packuswb): Merge with *avx_packuswb.
11196 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
11197 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
11198 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
11199 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
11200 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
11201 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
11202 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
11203 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
11204 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
11205 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
11206 (sse2_loadld): Merge with *avx_loadld.
11207 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
11208 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
11209 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
11210 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
11211 (vec_concatv2di): Merge with *vec_concatv2di_avx.
11212
81f653d6
NF
112132011-04-12 Nathan Froyd <froydnj@codesourcery.com>
11214
11215 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
11216 calling TREE_CHAIN.
11217 * print-tree.c (print_node): Likewise.
11218 * tree-inline.c (copy_tree_r): Likewise.
11219 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
11220 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
11221 instead of TS_COMMON.
11222 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
11223 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
11224 (copy_node_stat): Zero TREE_CHAIN only if necessary.
11225 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
11226 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
11227 ...and these...
11228 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
11229 * tree.h: ...here.
11230 (TREE_CHAIN): Check for a TS_COMMON structure.
11231 (TREE_TYPE): Check for a TS_TYPED structure.
11232
748f7574 112332011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
11234
11235 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11236 cgraph_get_create_node instead of cgraph_node.
11237
eb345401
NP
112382011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11239
11240 * c-parser.c (c_parser_initelt): Updated call to
11241 objc_build_message_expr.
11242 (c_parser_postfix_expression): Likewise.
11243
a6c46762
KT
112442011-04-12 Kai Tietz <ktietz@redhat.com>
11245
11246 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
11247 MASK_MS_BITFIELD_LAYOUT bit.
11248
b4ccfed9
JJ
112492011-04-12 Jakub Jelinek <jakub@redhat.com>
11250
11251 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
11252 assert it is always true.
11253 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
11254 moves.
11255
0d8a2528
NP
112562011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
11257
11258 * c-parser.c (c_lex_one_token): Rewritten conditional used when
11259 compiling Objective-C to be more efficient.
11260
06bd234a
AF
112612011-04-12 Axel Freyn <axel-freyn@gmx.de>
11262
11263 * opts-common.c (decode_cmdline_options_to_array): Remove variable
11264 argv_copied.
11265
28569ac3
RS
112662011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11267
11268 * recog.h, genoutput.c, optabs.c: Revert last patch.
11269
ae59e00d
RR
112702011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11271
81b1e7eb
UB
11272 PR target/48090
11273 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 11274
cff1b7e0
RS
112752011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11276
11277 * recog.h (insn_operand_data): Add an "allows_mem" field.
11278 * genoutput.c (output_operand_data): Initialize it.
11279 * optabs.c (maybe_legitimize_operand_same_code): New function.
11280 (maybe_legitimize_operand): Use it when matching the original
11281 op->value.
11282
77059241
RS
112832011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11284
11285 * genpreds.c (process_define_predicate): Move most processing
11286 to gensupport.c. Continue to validate the expression.
11287 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
11288 (process_define_predicate): Move processing to gensupport.c.
11289 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
11290 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
11291 (compute_predicate_codes): Moved from genrecog.c. Add lineno
11292 argument.
11293 (valid_predicate_name_p): New function, split out from old
11294 genpreds.c:process_define_predicate.
11295 (process_define_predicate): New function, combining code from
11296 old genpreds.c and genrecog.c functions.
11297 (process_rtx): Call it for DEFINE_PREDICATE and
11298 DEFINE_SPECIAL_PREDICATE.
11299
6308e208
RS
113002011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
11301
11302 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
11303 size of a '%A' memory reference.
11304 (T_DREG, T_QREG): New neon_builtin_type_bits.
11305 (arm_init_neon_builtins): Assert that the load and store operands
11306 are neon_struct_operands.
11307 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
11308 (NEON_ARG_MEMORY): New builtin_arg.
11309 (neon_dereference_pointer): New function.
11310 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
11311 Handle NEON_ARG_MEMORY.
11312 (arm_expand_neon_builtin): Update after above interface changes.
11313 Use NEON_ARG_MEMORY for loads and stores.
11314 * config/arm/predicates.md (neon_struct_operand): New predicate.
11315 * config/arm/iterators.md (V_two_elem): Tweak formatting.
11316 (V_three_elem): Use BLKmode for accesses that have no associated mode.
11317 (V_four_elem): Tweak formatting.
11318 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
11319 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
11320 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
11321 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
11322 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
11323 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
11324 (neon_vst4<mode>): Replace pointer operand with a memory operand.
11325 Use %A in the output template.
11326 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
11327 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
11328 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
11329 the width of the memory access. Remove post-increment.
11330 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
11331
e5db8f2f
NC
113322011-04-12 Nick Clifton <nickc@redhat.com>
11333
11334 * config/v850/v850.c (expand_prologue): Do not use the CALLT
11335 instruction for interrupt handlers if the target is the basic V850
11336 architecture.
11337 (expand_epilogue): Likewise.
11338
74f091d6
JJ
113392011-04-12 Jakub Jelinek <jakub@redhat.com>
11340
11341 PR rtl-optimization/48549
11342 * combine.c (propagate_for_debug): Also stop after BB_END of
11343 this_basic_block. Process LAST and just stop processing after it.
11344 (combine_instructions): If last_combined_insn has been deleted,
11345 set last_combined_insn to its PREV_INSN.
11346
f20ca725
RG
113472011-04-12 Richard Guenther <rguenther@suse.de>
11348
11349 PR tree-optimization/46076
11350 * gimple.h (struct gimple_statement_call): Add fntype field.
11351 (gimple_call_fntype): Adjust.
11352 (gimple_call_set_fntype): New function.
11353 * gimple.c (gimple_build_call_1): Set the call function type.
11354 * gimplify.c (gimplify_call_expr): Preserve the function
11355 type the frontend used for the call.
11356 (gimplify_modify_expr): Likewise.
11357 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
11358 function type.
11359 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
11360 function type.
11361 * tree-ssa.c (useless_type_conversion_p): Function pointer
11362 conversions are useless.
11363
a358e188
MJ
113642011-04-12 Martin Jambor <mjambor@suse.cz>
11365
11366 * cgraph.h (cgraph_node): Remove function declaration.
11367 (cgraph_create_node): Declare.
11368 (cgraph_get_create_node): Likewise.
11369 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
11370 Updated all callers.
11371 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
11372 the decl does not already exist. Call cgraph_get_create_node instead
11373 of cgraph_node.
11374 (cgraph_get_create_node): New function.
11375 (cgraph_same_body_alias): Update comment.
11376 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
11377 assert it does not return NULL.
11378 (cgraph_update_edges_for_call_stmt): Likewise.
11379 (cgraph_clone_edge): Likewise.
11380 (cgraph_create_virtual_clone): Likewise.
11381 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
11382 instead of cgraph_node.
11383 (cgraph_add_new_function): Call cgraph_create_node or
11384 cgraph_get_create_node instead of cgraph_node.
11385 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
11386 instead of cgraph_node.
11387 (record_eh_tables): Likewise.
11388 (mark_address): Likewise.
11389 (mark_load): Likewise.
11390 (build_cgraph_edges): Call cgraph_get_create_node instead
11391 of cgraph_node.
11392 (rebuild_cgraph_edges): Likewise.
11393 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
11394 instead of cgraph_node.
11395 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
11396 cgraph_node.
11397 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
11398 cgraph_create_node instead of cgraph_node.
11399 * c-decl.c (finish_function): Call cgraph_get_create_node instead
11400 of cgraph_node.
11401 * lto-cgraph.c (input_node): Likewise.
11402 * lto-streamer-in.c (input_function): Likewise.
11403 * varasm.c (mark_decl_referenced): Likewise.
11404 (assemble_alias): Likewise.
11405
fe660d7b
MJ
114062011-04-12 Martin Jambor <mjambor@suse.cz>
11407
11408 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
11409 instead of cgraph_node and assert it does not return NULL.
11410 * lto-streamer-in.c (lto_read_body): Likewise.
11411 * omp-low.c (new_omp_context): Likewise.
11412 (create_task_copyfn): Likewise.
11413 * tree-emutls.c (lower_emutls_function_body): Likewise.
11414 * matrix-reorg.c (transform_allocation_sites): Likewise.
11415
bae5cddf
JJ
114162011-04-12 Jakub Jelinek <jakub@redhat.com>
11417
11418 PR c/48552
11419 * c-typeck.c (build_asm_expr): Error out on attempts to use
11420 void type outputs or inputs for constraints that allow reg or
11421 don't allow memory.
11422
06eb52ca
CLT
114232011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
11424 Richard Earnshaw <rearnsha@arm.com>
11425
11426 PR target/48250
11427 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
11428 to use sign-magnitude offsets. Reject unsupported unaligned
11429 cases. Add detailed description in comments.
11430 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
11431 condition from TARGET_32BIT to TARGET_ARM.
11432
648a616b
NF
114332011-04-11 Nathan Froyd <froydnj@codesourcery.com>
11434
11435 * tree.h (struct typed_tree): New.
11436 (struct tree_common): Include it instead of tree_base.
11437 (TREE_TYPE): Update for new location of type field.
11438 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
11439 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
11440 (union tree_node): Add typed field.
11441 * treestruct.def (TS_TYPED): New.
11442 * lto-streamer.c (check_handled_ts_structures): Handle it.
11443 * tree.c (MARK_TS_TYPED): New macro.
11444 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
11445
1e6d1da0
EB
114462011-04-11 Eric Botcazou <ebotcazou@adacore.com>
11447
11448 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11449 (force_nonfallthru): Do not alter the loop nest if no basic block
11450 was created.
11451
114522011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
11453
11454 * config/i386/sse.md (VI): New mode iterator.
11455 (SSEMODEI): Remove.
11456 (AVX256MODEI): Ditto.
11457 (AVXMODEF4P): Ditto.
11458 (avxvecpsmode): Ditto.
11459 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
11460 (sse2_andnot<mode>3): New expander.
11461 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11462 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
11463 (<any_logic:code><mode>3): Use VI mode iterator.
11464 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11465 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
11466 (*andnottf3): Handle AVX three-operand constraints.
11467 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11468
b1372d5d 114692011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 11470 Robert Millan <rmh@gnu.org>
b1372d5d
JM
11471
11472 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11473 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11474 GNU_USER_DYNAMIC_LINKER64): Define.
11475 (REG_NAME): Don't undefine.
11476 (MD_UNWIND_SUPPORT): Undefine.
11477 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11478 (REG_NAME): Don't undefine.
11479 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 11480 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 11481
761c0c6e
JM
114822011-04-11 Joseph Myers <joseph@codesourcery.com>
11483
11484 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11485 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11486
26e0228f
XDL
114872011-04-11 Xinliang David Li <davidxl@google.com>
11488
11489 * value-profile.c (check_ic_target): New function.
11490 (gimple_ic_transform): Sanity check indirect call target.
11491 * gimple-low.c (gimple_check_call_args): Interface change.
11492 (gimple_check_call_matching_types): New function.
11493 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
11494
114952011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
11496
11497 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11498 tree-pretty-print.h & realmpfr.h.
11499
a58dfa49
VM
115002011-04-11 Vladimir Makarov <vmakarov@redhat.com>
11501
11502 PR middle-end/48464
11503 * ira.c (setup_pressure_classes): Fix typo in loop condition.
11504 (setup_allocno_and_important_classes): Ditto.
11505
107fd1c1
JM
115062011-04-11 Joseph Myers <joseph@codesourcery.com>
11507
11508 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11509 GNU_USER_DYNAMIC_LINKER.
11510 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11511 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11512 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11513 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11514 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11515 GNU_USER_TARGET_OS_CPP_BUILTINS.
11516 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11517 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11518 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11519 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11520 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11521 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11522 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11523 GNU_USER_TARGET_OS_CPP_BUILTINS.
11524 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11525 GNU_USER_DYNAMIC_LINKER.
11526 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11527 GNU_USER_TARGET_OS_CPP_BUILTINS.
11528 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11529 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11530 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11531 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11532 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11533 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11534 GNU_USER_DYNAMIC_LINKER64): Remove.
11535 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11536 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11537 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11538 GNU_USER_DYNAMIC_LINKER.
11539 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11540 GNU_USER_TARGET_OS_CPP_BUILTINS.
11541 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11542 GNU_USER_TARGET_OS_CPP_BUILTINS.
11543 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11544 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11545 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11546 GNU_USER_TARGET_OS_CPP_BUILTINS.
11547 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11548 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11549 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11550 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11551 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11552 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11553 GNU_USER_DYNAMIC_LINKER.
11554 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11555 GNU_USER_TARGET_OS_CPP_BUILTINS.
11556 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11557 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11558 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11559 GNU_USER_DYNAMIC_LINKER.
11560 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11561 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11562 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11563 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11564 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11565 GNU_USER_DYNAMIC_LINKER.
11566 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11567 GNU_USER_DYNAMIC_LINKERN32.
11568 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11569 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11570 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11571 GNU_USER_DYNAMIC_LINKER32.
11572 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11573 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11574 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11575 GNU_USER_DYNAMIC_LINKER.
11576 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11577 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11578 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 11580 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
11581 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11582 GNU_USER_DYNAMIC_LINKER32.
11583 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11584 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11585 GNU_USER_DYNAMIC_LINKER.
11586 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11587 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11588 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11589 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11590 GNU_USER_DYNAMIC_LINKER64.
11591 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11592 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11593 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11594 GNU_USER_DYNAMIC_LINKER.
11595 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11597 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11598 GNU_USER_DYNAMIC_LINKER.
11599 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11600 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11601 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11602 GNU_USER_DYNAMIC_LINKER32.
11603 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11604 GNU_USER_DYNAMIC_LINKER64.
11605 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11606 GNU_USER_DYNAMIC_LINKER64.
11607 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11608 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11609 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11610 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 11611 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 11612
e24609cf
JM
116132011-04-11 Joseph Myers <joseph@codesourcery.com>
11614
11615 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11616 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11617 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11618 GNU_USER_DYNAMIC_LINKER.
11619 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11620 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11621 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11622 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11623 GNU_USER_DYNAMIC_LINKER64.
11624 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11625 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11626 GNU_USER_LINK_EMULATION.
11627 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11628 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11629 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11630 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11631 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11632 CPP_SPEC, CC1_SPEC): Remove.
11633 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11634 (GNU_USER_DYNAMIC_LINKER): Define.
11635 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11636 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11637 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11638 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11639 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11640 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11641 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11642 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11643 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11644 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11645 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11646 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11647 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11648 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11649 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11650 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11651 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11652 GNU_USER_DYNAMIC_LINKER.
11653 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11654 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11655 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11656 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11657 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11658 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11659 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11660 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11661 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 11662 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 11663
b8ce4e94
KT
116642011-04-11 Kai Tietz <ktietz@redhat.com>
11665
11666 PR target/9601
11667 PR target/11772
11668 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11669 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11670 comment.
11671 (ix86_is_msabi_thiscall): Removed.
11672 (ix86_is_type_thiscall): Likewise.
11673 (ix86_get_callcvt): New function.
11674 (ix86_comp_type_attributes): Simplify check.
11675 (ix86_function_regparm): Use ix86_get_callcvt for calling
11676 convention attribute checks.
11677 (ix86_return_pops_args): Likewise.
11678 (ix86_static_chain): Likewise.
11679 (x86_this_parameter): Likewise.
11680 (x86_output_mi_thunk): Likewise.
11681 (ix86_function_type_abi): Optimize check for types without attributes.
11682 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11683 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11684 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11685 by flag-values.
11686 (IX86_BASE_CALLCVT): Helper macro.
11687 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11688 Use ix86_get_callcvt for calling convention attribute checks and avoid
11689 symbol-decoration for stdcall in TARGET_RTD case.
11690 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11691 Likewise.
11692 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11693 for declaration.
11694
798dd0ba
UB
116952011-04-11 Uros Bizjak <ubizjak@gmail.com>
11696
11697 * config/i386/sse.md (VI_128): New mode iterator.
11698 (VI12_128): Rename from SSEMODE12.
11699 (VI14_128): Rename from SSEMODE14.
11700 (VI124_128): New mode iterator.
11701 (VI24_128): Rename from SSEMODE248.
11702 (VI248_128): Rename from SSEMODE248.
11703 (SSEMODE124C8): Remove.
11704 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11705 (*sse2_<plusminus_insn><mode>3): Merge with
11706 *avx_<plusminus_insn><mode>3.
11707 (*mulv8hi3): Merge with *avx_mulv8hi3.
11708 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11709 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11710 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11711 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11712 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11713 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11714 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11715 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11716 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11717 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11718 (*<smaxmin:code>v8hi3): Ditto.
11719 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11720 (*<smaxmin:code>v16qi3): Ditto.
11721 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11722 (*sse2_eq<mode>3): Ditto.
11723 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11724 (*sse2_gt<mode>3): Ditto.
11725 (vcondv2di): Split out of vcond<mode>.
11726 (vconduv2di): Split out of vcondu<mode>.
11727
956011be
RG
117282011-04-11 Richard Guenther <rguenther@suse.de>
11729
11730 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11731 before calling tree_low_cst.
11732
e6313a78
RG
117332011-04-11 Richard Guenther <rguenther@suse.de>
11734
11735 * stor-layout.c (layout_type): Compute all array index size operations
11736 in the original type.
11737 (initialize_sizetypes): Add comment.
11738 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11739
e69d7376
JM
117402011-04-11 Joseph Myers <joseph@codesourcery.com>
11741
11742 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11743
9f9ebcdf
MJ
117442011-04-11 Martin Jambor <mjambor@suse.cz>
11745
11746 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11747 of cgraph_node, handle NULL return value.
11748 (cgraph_global_info): Likewise.
11749 (cgraph_rtl_info): Likewise.
11750 * tree-inline.c (estimate_num_insns): Likewise.
11751 * gimplify.c (unshare_body): Likewise.
11752 (unvisit_body): Likewise.
11753 (gimplify_body): Likewise.
11754 * predict.c (optimize_function_for_size_p): Likewise.
11755 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11756 (call_may_clobber_ref_p_1): Likewise.
11757 * varasm.c (function_section_1): Likewise.
11758 (assemble_start_function): Likewise.
11759
581985d7
MJ
117602011-04-11 Martin Jambor <mjambor@suse.cz>
11761
11762 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11763 of cgraph_node.
11764 * final.c (rest_of_clean_state): Likewise.
11765 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11766 * passes.c (pass_init_dump_file): Likewise.
11767 (execute_all_ipa_transforms): Likewise.
11768 (function_called_by_processed_nodes_p): Likewise.
11769 * predict.c (maybe_hot_frequency_p): Likewise.
11770 (probably_never_executed_bb_p): Likewise.
11771 (compute_function_frequency): Likewise.
11772 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11773 (unnest_nesting_tree_1): Likewise.
11774 (lower_nested_functions): Likewise.
11775 * tree-optimize.c (execute_fixup_cfg): Likewise.
11776 (tree_rest_of_compilation): Likewise.
11777 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11778 * tree-sra.c (ipa_early_sra): Likewise.
11779 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11780 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11781 * ipa.c (record_cdtor_fn): Likewise.
11782 * ipa-inline.c (cgraph_early_inlining): Likewise.
11783 (compute_inline_parameters_for_current): Likewise.
11784 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11785 * ipa-pure-const.c (local_pure_const): Likewise.
11786 * ipa-split.c (split_function): Likewise.
11787 (execute_split_functions): Likewise.
11788 * cgraphbuild.c (build_cgraph_edges): Likewise.
11789 (rebuild_cgraph_edges): Likewise.
11790 (cgraph_rebuild_references): Likewise.
11791 (remove_cgraph_callee_edges): Likewise.
11792 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11793 (verify_cgraph_node): Likewise.
11794 (cgraph_analyze_functions): Likewise.
11795 (cgraph_preserve_function_body_p): Likewise.
11796 (save_inline_function_body): Likewise.
11797 (save_inline_function_body): Likewise.
11798 * tree-inline.c (copy_bb): Likewise.
11799 (optimize_inline_calls): Likewise.
11800
57dbdc5a
MJ
118012011-04-11 Martin Jambor <mjambor@suse.cz>
11802
11803 PR tree-optimization/48195
11804 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11805 ipa_check_create_edge_args.
11806 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11807 ipa_check_create_edge_args.
11808 * ipa-inline.c (inline_generate_summary): Do not call
11809 ipa_check_create_node_params and ipa_check_create_edge_args.
11810 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11811 ipa_check_create_edge_args.
11812
d108e679
AS
118132011-04-09 Anatoly Sokolov <aesok@post.ru>
11814
11815 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11816 instead of loop.
11817 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11818 * function.c (record_hard_reg_sets): Likewise.
11819 * ira.c (compute_regs_asm_clobbered): Likewise.
11820 * sched-deps.c (sched_analyze_1): Likewise.
11821 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11822
3411bc59
XDL
118232011-04-09 Xinliang David Li <davidxl@google.com>
11824
11825 PR tree-optimization/PR48484
11826 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11827 has_valid_pred lazily
11828
b365495a
DS
118292011-04-09 Duncan Sands <baldrick@free.fr>
11830
11831 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11832
68bc509a
EB
118332011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11834
11835 * combine.c (combine_validate_cost): Adjust comments. Set registered
11836 cost of I0 to zero at the end, if any.
11837
041e059f
XDL
118382011-04-08 Xinliang David Li <davidxl@google.com>
11839
68bc509a
EB
11840 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11841 to insane profile data.
041e059f 11842
444b3995
XDL
118432011-04-08 Xinliang David Li <davidxl@google.com>
11844
11845 * ipa-cp.c (ipcp_update_profiling): Correct
11846 negative scale factor due to insane profile data.
11847
6a801cf2
XDL
118482011-04-08 Xinliang David Li <davidxl@google.com>
11849
11850 * final.c (dump_basic_block_info): New function.
11851 (final): Dump basic block.
11852 (final_scan_insn): Remove old dump.
11853
d5f3624e
SK
118542011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11855
68bc509a
EB
11856 PR target/47829
11857 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11858 crtbegin/crtend.
d5f3624e 11859
42821aff
MM
118602011-04-08 Michael Matz <matz@suse.de>
11861
11862 PR middle-end/48389
11863 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11864 functions.
11865 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11866 * rtl.h (rebuild_jump_labels_chain): Declare.
11867 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11868 insns inserted on edges.
11869
ad7be009
JM
118702011-04-08 Joseph Myers <joseph@codesourcery.com>
11871
11872 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11873 * config/arm/arm-arches.def: New.
11874 * config/arm/arm-opts.h: New.
11875 * config/arm/genopt.sh: New.
11876 * config/arm/arm-tables.opt: New (generated).
11877 * config/arm/arm.c (arm_handle_option, arm_target_help,
11878 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11879 (all_architectures): Get most table contents from arm-arches.def.
11880 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11881 arm_selected_tune here.
11882 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11883 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11884 (march=, mcpu=, mtune=): Use Enum and Var.
11885 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11886 (arm.o): Update dependencies.
ecbb6fb7 11887
42821aff 118882011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
11889
11890 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11891 of header_file.
11892 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11893 (write_typed_alloc_defns): Likewise.
11894 (main): Calls write_typed_alloc_defns with output_header.
11895
8d189b3f
VM
118962011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11897
68bc509a 11898 PR inline-asm/48435
8d189b3f
VM
11899 * ira-color.c (setup_profitable_hard_regs): Add comments.
11900 Don't take prohibited hard regs into account.
11901 (setup_conflict_profitable_regs): Rename to
11902 get_conflict_profitable_regs.
11903 (check_hard_reg_p): Check prohibited hard regs.
11904
44f370bf
NF
119052011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11906
11907 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11908 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11909 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11910
483d7ad3
JDA
119112011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11912
11913 PR target/48366
11914 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 11915 move from floating point to shift amount register.
483d7ad3
JDA
11916 (emit_move_sequence): Remove secondary reload support for floating
11917 point to shift amount amount register copies.
11918 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11919 amount register copies.
11920 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11921 register, return false if mode isn't a scalar integer mode.
11922 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11923
97e03fa1
RG
119242011-04-08 Richard Guenther <rguenther@suse.de>
11925
11926 * gimple.c (gimple_call_flags): Remove kludge.
11927
9d40778b
AM
119282011-04-08 Alexander Monakov <amonakov@ispras.ru>
11929
11930 * sel-sched.c (sel_region_init): Move call to
11931 sel_setup_region_sched_flags after setup_current_loop_nest.
11932
19ac7892
AB
119332011-04-08 Andrey Belevantsev <abel@ispras.ru>
11934
11935 PR rtl-optimization/48272
19ac7892
AB
11936 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11937 init_insn_reg_pressure_info. Adjust a caller.
11938 * sched-int.h (init_insn_reg_pressure_info): Declare.
11939 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11940 when sched-pressure is enabled.
11941
0f8c63cc
RG
119422011-04-08 Richard Guenther <rguenther@suse.de>
11943
11944 * gimple.c (gimple_set_modified): Do not queue calls to
11945 MODIFIED_NORETURN_CALLS here ...
11946 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11947
5e5a425e
RG
119482011-04-08 Richard Guenther <rguenther@suse.de>
11949
11950 PR lto/48467
11951 * toplev.c (lang_dependent_init): Do not open asm_out_file
11952 in WPA mode, nor perform debug machinery initialization.
11953 (finalize): Do not unlink asm_out_file in WPA mode.
11954
9bfc434b
RG
119552011-04-08 Richard Guenther <rguenther@suse.de>
11956
11957 * gimple.h (gimple_call_fntype): New function.
11958 (gimple_call_return_type): Use it.
11959 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11960 * gimple-low.c (gimple_check_call_args): Likewise.
11961 * gimple.c (gimple_call_flags): Likewise.
11962 (gimple_call_arg_flags): Likewise.
11963 (gimple_call_return_flags): Likewise.
11964 * tree-cfg.c (verify_gimple_call): Likewise.
11965 (do_warn_unused_result): Likewise.
11966 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11967 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11968
7c1f0b40
DM
119692011-04-08 Dmitry Melnik <dm@ispras.ru>
11970
11971 PR rtl-optimization/48235
11972 * sel-sched.c (code_motion_process_successors): Recompute the last
11973 insn in basic block if control flow changed.
11974 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11975 Update condition for ilist_remove.
11976
ea4d630f
AM
119772011-04-08 Alexander Monakov <amonakov@ispras.ru>
11978
11979 PR rtl-optimization/48302
11980 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11981 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11982 it to record added preheader blocks.
11983 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11984 on to sel_add_loop_preheaders.
11985 (sel_region_init): Move call to setup_current_loop_nest after
11986 sel_init_bbs.
11987
07643d76
AM
119882011-04-08 Alexander Monakov <amonakov@ispras.ru>
11989
11990 PR target/48273
11991 * cfgloop.h (loop_has_exit_edges): New helper.
11992 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11993 non-clonable.
11994 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11995 that have no exit edges.
11996
1f3b2b4e
AM
119972011-04-08 Alexander Monakov <amonakov@ispras.ru>
11998
11999 PR rtl-optimization/48442
12000 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
12001 all callers. Adjust assert.
12002
554f1948
JJ
120032011-04-08 Jakub Jelinek <jakub@redhat.com>
12004
12005 PR tree-optimization/48377
12006 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
12007 is_packed to true even for types with smaller TYPE_ALIGN than
12008 TYPE_SIZE.
12009
ddf72388
RG
120102011-04-08 Richard Guenther <rguenther@suse.de>
12011
12012 PR bootstrap/48513
12013 * doc/tm.texi: Re-generate.
12014
0c27e2d8
WG
120152011-04-08 Wei Guozhi <carrot@google.com>
12016
12017 PR target/47855
12018 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
12019 * config/arm/arm.c (arm_attr_length_push_multi): New function.
12020 * config/arm/arm.md (*push_multi): Change the length computation to
12021 call a C function.
12022
07c5f94e
AS
120232011-04-08 Anatoly Sokolov <aesok@post.ru>
12024
12025 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
12026 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
12027 * doc/tm.texi: Regenerate.
12028 * system.h (ASM_OUTPUT_BSS): Poison.
12029 * varasm.c (asm_output_bss): Remove function.
12030 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 12031
07c5f94e
AS
12032 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
12033 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
12034 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
12035 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12036 Likewise.
12037 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12038 Likewise.
12039 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
12040 Likewise.
12041 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12042
5f2c36e1
JM
120432011-04-07 Joseph Myers <joseph@codesourcery.com>
12044
12045 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
12046 EnumValue lines.
12047
39e7722b
JM
120482011-04-07 Joseph Myers <joseph@codesourcery.com>
12049
12050 * config/m68k/m68k.c (m68k_handle_option): Don't handle
12051 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
12052 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
12053 OPT_mcpu32.
12054 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12055 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
12056 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
12057 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
12058 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
12059 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
12060 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
12061 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
12062 options. Don't map other m68k options manually. Don't handle
12063 old-style options as canonical.
12064 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 12065 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 12066
cf103ca4
EB
120672011-04-07 Eric Botcazou <ebotcazou@adacore.com>
12068
12069 * basic-block.h (force_nonfallthru): Move to...
12070 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
12071 (force_nonfallthru): ...here.
12072 * cfghooks.c (force_nonfallthru): New function.
12073 * cfgrtl.c (force_nonfallthru): Rename into...
12074 (rtl_force_nonfallthru): ...this.
12075 (commit_one_edge_insertion): Do not set AUX field.
12076 (commit_edge_insertions): Do not discover new basic blocks.
12077 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
12078 (cfg_layout_rtl_cfg_hooks): Likewise.
12079 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
12080 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
12081 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
12082
14431f58
AS
120832011-04-07 Anatoly Sokolov <aesok@post.ru>
12084
12085 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
12086 Remove macros.
12087
3729983c
UB
120882011-04-07 Uros Bizjak <ubizjak@gmail.com>
12089
12090 * config/i386/sse.md: Update copyright year.
12091 (avxcvtvecmode): Remove.
12092 (sse_movhlps): Merge with *avx_movhlps.
12093 (sse_movlhps): Merge with *avx_movlhps.
12094 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
12095 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
12096 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
12097 (sse_loadhps): Merge with *avx_loadhps.
12098 (sse_storelps): Merge with *avx_storelps.
12099 (sse_loadlps): Merge with *avx_loadlps.
12100 (sse_movss): Merge with *avx_movss.
12101 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
12102 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
12103 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
12104 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
12105 (vec_set<mode>_0): Ditto.
12106 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
12107 (sse4_1_insertps): Merge with *avx_insertps.
12108 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
12109 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
12110 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
12111 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
12112 (sse2_storehpd): Merge with *avx_storehpd.
12113 (sse2_loadhpd): Merge with *avx_loadhpd.
12114 (sse2_loadlpd): Merge with *avx_loadlpd.
12115 (sse2_movsd): Merge with *avx_movsd.
12116 (*vec_concatv2df): Merge with *vec_concatv2df.
12117
4e626909
JJ
121182011-04-07 Jakub Jelinek <jakub@redhat.com>
12119
12120 PR debug/48343
12121 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 12122 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
12123 (try_combine): Add last_combined_insn parameter, pass it instead of
12124 i3 to propagate_for_debug.
12125
3729983c 121262011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
12127
12128 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
12129 to handle MDR <-> data register transfers.
12130 (movhi_internal): Likewise.
12131
20c03367
AM
121322011-04-07 Alan Modra <amodra@gmail.com>
12133
12134 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
12135 previous stack info.
12136
bf22920b
TV
121372011-04-07 Tom de Vries <tom@codesourcery.com>
12138
12139 PR target/43920
12140 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
12141 flow_find_cross_jump. Swap variables to implement backward replacement.
12142 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
12143
823918ae
TV
121442011-04-07 Tom de Vries <tom@codesourcery.com>
12145
12146 PR target/43920
12147 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
12148 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
12149 and bb2.
12150 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
12151 src1 or src2. Redirect edges to the last basic block. Update
12152 frequency and count on multiple basic blocks in case of fallthru.
823918ae 12153
472c95f5
TV
121542011-04-07 Tom de Vries <tom@codesourcery.com>
12155
12156 PR target/43920
12157 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
12158 function.
3729983c
UB
12159 (old_insns_match_p): Change return type. Replace return false/true
12160 with return dir_none/dir_both. Use can_replace_by.
12161 (flow_find_cross_jump): Add dir_p parameter. Init replacement
12162 direction from dir_p. Register replacement direction in dir, last_dir
12163 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
12164 merge_dir. Return replacement direction in dir_p.
12165 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
12166 return type of old_insns_match_p.
12167 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
12168 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
12169 flow_find_cross_jump.
12170 * basic-block.h (enum replace_direction): New type.
12171 (flow_find_cross_jump): Add parameter to declaration.
12172
a95d4000
UB
121732011-04-06 Uros Bizjak <ubizjak@gmail.com>
12174
12175 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
12176 (AVXMODEDCVTPS2DQ): Ditto.
12177 (VEC_FLOAT_MODE): Ditto.
12178 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
12179 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
12180 (<any_logic:code><mode>3): Use VF mode iterator.
12181 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
12182 Use VF mode iterator.
12183 (copysign<mode>3): Use VF mode iterator.
12184 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
12185 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
12186 (*<any_logic:code><MODEF:mode>3): Merge with
12187 *avx_<any_logic:code><MODEF:mode>3.
12188 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
12189 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
12190 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
12191 (avx_cvtdq2ps<avxmodesuffix>): Remove.
12192 (sse2_cvtdq2ps): Use %v modifier.
12193 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
12194 (avx_cvtps2dq<avxmodesuffix>): Remove.
12195 (sse2_cvtps2dq): Use %v modifier.
12196 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
12197 (avx_cvttps2dq<avxmodesuffix>): Remove.
12198 (sse2_cvttps2dq): Use %v modifier.
12199 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
12200 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
12201 (sse2_cvtsd2siq): Fix insn template.
12202 (sse2_cvtsd2siq_2): Ditto.
12203 (sse2_cvttsd2siq): Ditto.
12204 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
12205 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
12206
ad01c437
JM
122072011-04-06 Joseph Myers <joseph@codesourcery.com>
12208
12209 * gcov-io.c: Use GCC Runtime Library Exception.
12210
fe846284
JJ
122112011-04-06 Jakub Jelinek <jakub@redhat.com>
12212
12213 PR debug/48466
12214 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
12215 as base_reg whatever register reg has been eliminated to, instead
12216 of hardcoding STACK_POINTER_REGNUM.
12217
acce4e77
JM
122182011-04-06 Joseph Myers <joseph@codesourcery.com>
12219
12220 * doc/tm.texi.in: Document C target hooks as separate from general
12221 target hooks.
12222 * doc/tm.texi: Regenerate.
12223 * genhooks.c (struct hook_desc): Add docname field.
12224 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
12225 docname field.
12226 (hook_array): Include c-target.def.
12227 (emit_documentation): Use docname field in output.
12228 (emit_init_macros): Take docname argument. Only emit definitions
12229 for hooks matching docname.
12230 (main): Expect additional arguments in all cases. Pass argument
12231 to emit_init_macros.
12232 * target.def: Move initial macro definitions and comments to
12233 target-hooks-macros.h.
12234 (gcc_targetcm): Move to c-family/c-target.def.
12235 * target.h (targetcm): Move declaration to c-family/c-target.h.
12236 * targhooks.c (default_handle_c_option): Move to
12237 c-family/c-opts.c.
12238 * targhooks.h (default_handle_c_option): Move declaration to
12239 c-family/c-common.h.
12240 * target-hooks-macros.h: New file.
12241 * config.gcc (target_has_targetcm): Define and use to add to
12242 c_target_objs and cxx_target_objs.
12243 * config/default-c.c: New file.
12244 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
12245 of target.h and target-def.h.
12246 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
12247 (darwin_objc_construct_string, darwin_cfstring_ref_p,
12248 darwin_check_cfstring_format_arg): Make static.
12249 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12250 TARGET_STRING_OBJECT_REF_TYPE_P,
12251 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
12252 * config/darwin-protos.h (darwin_objc_construct_string,
12253 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
12254 declare.
12255 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
12256 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 12257 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
12258 * config/t-darwin (darwin-c.o): Update dependencies.
12259 * system.h (TARGET_HAS_TARGETCM): Poison.
12260 * Makefile.in (TARGET_H): Update.
12261 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
12262 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
12263 (default-c.o): New target.
12264 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 12265 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
12266 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
12267 c-target.def.
12268 (build/genhooks.o): Update dependencies.
12269
275b4baa 122702011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 12271
275b4baa
RG
12272 * ipa-inline.c (enum inlining_mode): Remove.
12273 (cgraph_flatten): Use some other token.
12274 (cgraph_edge_early_inlinable_p): New function, split out from ...
12275 (cgraph_perform_always_inlining): New function, split out from ...
12276 (cgraph_decide_inlining_incrementally): ... here.
12277 (cgraph_mark_inline_edge): Adjust.
12278 (cgraph_early_inlining): Re-structure.
12279 (pass_early_inline): Require SSA form.
12280
f15b8bdf 122812011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
12282 Julian Brown <julian@codesourcery.com>
12283 Mark Shinwell <shinwell@codesourcery.com>
12284
12285 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
12286 LO_REGS only for Thumb-1.
12287 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
12288 be used in short instructions when optimising for size on Thumb-2.
12289
516426da
EB
122902011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12291
12292 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
12293 associated with user returns to be preserved.
12294
96621ebf
TG
122952011-04-06 Tristan Gingold <gingold@adacore.com>
12296
f15b8bdf
EB
12297 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
12298 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
12299 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
12300 if XCOFF_DEBUGGING_INFO.
12301
07c0852e
UB
123022011-04-06 Uros Bizjak <ubizjak@gmail.com>
12303
12304 * config/i386/i386.md (attribute isa): New.
12305 (attribute enabled): New.
12306 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
12307 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
12308 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
12309 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
12310 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
12311 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12312 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
12313 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
12314
12315 * config/i386/sse.md (VF): New mode iterator.
12316 (VF1): Ditto.
12317 (VF2): Ditto.
12318 (VF_128): Ditto.
12319 (SSEMODEF4): Remove.
12320 (attribute sse): Handle V8SF and V4DF modes.
12321 (<absneg:code><mode>2): Use VF mode iterator.
12322 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
12323 mode iterator.
12324 (<plusminus_insn><mode>3): Use VF mode iterator.
12325 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12326 Use VF mode iterator.
12327 (<sse>_vm<plusminus_insn><mode>3): Merge with
12328 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
12329 (mul<mode>3): Use VF mode iterator.
12330 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
12331 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
12332 mode iterator.
12333 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
12334 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
12335 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
12336 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
12337 mode iterator.
12338 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
12339 Use VF1 mode iterator.
12340 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
12341 (sqrt<VF2:mode>2): New expander.
12342 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
12343 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
12344 and sqrtv2df2. Use VF mode iterator.
12345 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
12346 mode iterator.
12347 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
12348 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
12349 Use VF1 mode iterator.
12350 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
12351 (<smaxmin:code><mode>3): Use VF mode iterator.
12352 (*<smaxmin:code><mode>3_finite): Merge with
12353 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
12354 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12355 (<sse>_vm<smaxmin:code><mode>2): Merge with
12356 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
12357 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
12358 mode iterator.
12359 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
12360 mode iterator.
12361 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
12362 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
12363 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
12364 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
12365 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
12366 VF mode iterator.
12367 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
12368 Use VF_128 mode iterator.
12369 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
12370 mode iterator.
12371 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
12372 VF_128 mode iterator.
12373 (vcond<mode>): Use VF mode iterator.
12374 * config/i386/predicates.md (sse_comparison_operator): Merge with
12375 avx_comparison_float_operator. Do not declare as special_predicate.
12376 * config/i386/i386.c (struct builtin_description): Update for renamed
12377 compare patterns.
12378 (ix86_expand_args_builtin): Ditto.
12379 (ix86_expand_sse_compare_mask): Ditto.
12380
ff5d142c
RG
123812011-04-06 Richard Guenther <rguenther@suse.de>
12382
12383 * tree-inline.c (estimate_num_insns): For calls simply account
12384 for all passed arguments and a used return value.
12385
d7d1d041 123862011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 12387
d7d1d041
RG
12388 PR tree-optimization/47663
12389 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
12390 call_stmt_time fields.
12391 (cgraph_edge_inlinable_p): Declare.
12392 (cgraph_edge_recursive_p): New inline function.
12393 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
12394 (cgraph_clone_edge): Copy it.
12395 * ipa-inline.c (cgraph_estimate_edge_time): New function.
12396 Account for call stmt time.
12397 (cgraph_estimate_time_after_inlining): Take edge argument.
12398 (cgraph_estimate_edge_growth): Account call stmt size.
12399 (cgraph_estimate_size_after_inlining): Take edge argument.
12400 (cgraph_mark_inline_edge): Adjust.
12401 (cgraph_check_inline_limits): Likewise.
12402 (cgraph_recursive_inlining_p): Remove.
12403 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
12404 (cgraph_decide_recursive_inlining): Take edge argument and
12405 adjust.
12406 (cgraph_decide_inlining_of_small_functions): Do not avoid
12407 diags for recursive inlining here.
12408 (cgraph_flatten): Adjust.
12409 (cgraph_decide_inlining_incrementally): Likewise.
12410 (estimate_function_body_sizes): Remove call cost handling.
12411 (compute_inline_parameters): Initialize caller edge call costs.
12412 (cgraph_estimate_edge_growth): New function.
12413 (cgraph_estimate_growth): Use it.
12414 (cgraph_edge_badness): Likewise.
12415 (cgraph_check_inline_limits): Take an edge argument.
12416 (cgraph_decide_inlining_of_small_functions): Adjust.
12417 (cgraph_decide_inlining): Likewise.
12418 * tree-inline.c (estimate_num_insns): Only account for call
12419 return value if it is used.
12420 (expand_call_inline): Avoid diagnostics on recursive inline
12421 functions here.
12422 * lto-cgraph.c (lto_output_edge): Output edge call costs.
12423 (input_edge): Input edge call costs.
12424
2feb95f7
RO
124252011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12426
12427 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
12428
26fbd9c2
JW
124292011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
12430
12431 * doc/invoke.texi (Spec Files): Fix typo.
12432
694dc0ca
EB
124332011-04-06 Eric Botcazou <ebotcazou@adacore.com>
12434
12435 * profile.c (branch_prob): Move declaration of local variable. Remove
12436 obsolete ??? comment. Expand the location explicitly instead of using
12437 the LOCATION_FILE and LOCATION_LINE macros.
12438
4925d0d5
WG
124392011-04-06 Wei Guozhi <carrot@google.com>
12440
12441 PR target/47855
12442 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
12443 (arm_cond_branch): Likewise.
12444 (arm_cond_branch_reversed): Likewise.
12445 (arm_jump): Likewise.
12446 (push_multi): Likewise.
12447 * config/arm/constraints.md (Py): New constraint.
12448
f55dfa2f
NF
124492011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12450
12451 PR bootstrap/48471
12452 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12453 Move these...
12454 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12455 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12456 #ifdef DBX_DEBUGGING_INFO.
12457
fca96842
BS
124582011-04-05 Bernd Schmidt <bernds@codesourcery.com>
12459
12460 PR bootstrap/48403
12461 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12462 if old and new states differ.
12463
30b83e38
JM
124642011-04-05 Joseph Myers <joseph@codesourcery.com>
12465
12466 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12467 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12468 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12469 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12470 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12471 mcfv4e): Use Alias.
12472 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12473 ColdFire options to -mcpu= options.
12474
277a9aa5
JL
124752011-04-05 Jeff Law <law@redhat.com>
12476
12477 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12478 check if BB is a successor of LOOP->header and return
12479 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12480
c1e2610e
SB
124812011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12482
12483 * cprop.c (struct reg_use): Remove.
12484 (reg_use_table): Make an array of RTX.
12485 (find_used_regs, constprop_register, local_cprop_pass,
12486 bypass_block): Simplify users of reg_use_table.
12487 (cprop_insn): Likewise. Iterate if copy propagation succeeded
12488 on one of the uses found by find_used_regs.
12489
e532f586
NF
124902011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12491
12492 PR bootstrap/48469
12493 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12494 declaration.
12495
3fb7c055
NF
124962011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12497
12498 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12499 as an rtx.
12500 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12501
b71b43d9
SB
125022011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12503
12504 PR middle-end/48441
12505 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12506
b405b274
NF
125072011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12508
12509 * combine.c: Include obstack.h.
12510 (struct insn_link): Define.
12511 (uid_log_links): Adjust type.
12512 (FOR_EACH_LOG_LINK): New macro.
12513 (insn_link_obstack): Declare.
12514 (alloc_insn_link): Define.
12515 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12516 type of link variables.
12517 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12518 (try_combine, record_promoted_values, distribute_notes): Likewise.
12519 (distribute_links): Likewise. Tweak prototype.
12520 (clear_log_links): Delete.
12521 (adjust_for_new_dest): Call alloc_insn_link.
12522 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12523
6409abe3
NF
125242011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12525
12526 * gcse.c (modify_mem_list): Convert to an array of VECs.
12527 (canon_modify_mem_list, compute_transp): Tweak formatting.
12528 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12529 (load_killed_in_block_p): Likewise.
12530 (record_last_mem_set_info): Likewise.
12531 (clear_modify_mem_tables): Likewise.
12532
170d8157
TV
125332011-04-05 Tom de Vries <tom@codesourcery.com>
12534
12535 PR middle-end/48461
12536 * function.c (emit_use_return_register_into_block): Only define if
12537 HAVE_return.
12538
c5911a55
EB
125392011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12540
12541 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12542
abd016e6
JM
125432011-04-05 Joseph Myers <joseph@codesourcery.com>
12544
12545 * config/rx/rx-opts.h: New.
12546 * config/rx/rx.c (rx_cpu_type): Remove.
12547 (rx_handle_option): Don't assert that global structures are in
12548 use. Access variables via opts pointer. Defer most handling of
12549 OPT_mint_register_. Use error_at.
12550 (rx_option_override): Handle deferred OPT_mint_register_ here.
12551 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12552 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12553 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12554 (rx_cpu_types): New Enum and EnumValue entries.
12555 (mint-register=): Use Defer and use Var accordingly.
12556
1ed13f83
NF
125572011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12558
12559 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12560 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12561 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12562 Move these...
12563 (debug_free_queue, debug_nesting, symbol_queue_index):
12564 ...and these...
12565 * dbxout.c: ...to here. Make static.
12566
6ce1edcf
NF
125672011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12568
12569 * gcse.c (modify_pair): Define. Define a VEC of it.
12570 (canon_modify_mem_list): Convert to an array of VECs.
12571 (free_insn_expr_list_list): Delete.
12572 (clear_modify_mem_tables): Call VEC_free instead.
12573 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12574 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12575 (canon_list_insert, compute_transp): Likewise.
12576
c201ac94
TV
125772011-04-05 Tom de Vries <tom@codesourcery.com>
12578
12579 PR target/43920
12580 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12581 for size.
12582
4c029f40
TV
125832011-04-05 Tom de Vries <tom@codesourcery.com>
12584
12585 PR target/43920
12586 * function.c (emit_use_return_register_into_block): New function.
12587 (thread_prologue_and_epilogue_insns): Use
12588 emit_use_return_register_into_block.
12589
2a562b0a
TV
125902011-04-05 Tom de Vries <tom@codesourcery.com>
12591
12592 PR target/43920
12593 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12594 insn.
12595
0248bceb
TV
125962011-04-05 Tom de Vries <tom@codesourcery.com>
12597
12598 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12599
ffa94123
YZ
126002011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12601
798dd0ba
UB
12602 * config/arm/arm.md (define_constants for unspec): Replace with
12603 define_c_enum.
12604 (define_constants for unspecv): Replace with define_c_enum.
12605 * config/arm/neon.md (define_constants for unspec): Replace with
12606 define_c_enum.
ffa94123 12607
3b8f9b46
RH
126082011-04-04 Richard Henderson <rth@redhat.com>
12609
720cf80f 12610 PR bootstrap/48400
3b8f9b46
RH
12611 * dwarf2out.c (output_line_info): Always emit line info from
12612 at least one section.
12613 (dwarf2out_init): Create text_section_line_info here ...
12614 (set_cur_line_info_table): ... not here.
12615
720cf80f 126162011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
12617
12618 PR target/48380
12619 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 12620 not called.
e5b0e1ca 12621
720cf80f 12622 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 12623
196565d4
SB
126242011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12625
b77f9eab
SB
12626 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12627 (expr_equiv_p): Remove.
12628 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12629 (hash_scan_set): Update call to insert_set_in_table.
12630 (dump_hash_table): Dump <dest, src> pair.
12631 (lookup_set): Simplify. Lookup <dest, src> pair.
12632 (compute_transp): Remove, fold heavily simplified code into...
12633 (compute_local_properties): ...here. Expect COMP and TRANSP
12634 unconditionally.
12635 (find_avail_set): Take set directly from struct expr.
12636 (find_bypass-set): Likewise.
12637 (bypass_block): Likewise.
12638 (cprop_insn): Likewise. Remove redundant INSN_P test.
12639
384d7a55
SB
12640 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12641 checks on form of COND from find_implicit_sets to here.
12642 (find_implicit_sets): Cleanup control flow. Split critical edges
12643 if it exposes implicit sets. Allocate/resize implicit_sets as
12644 necessary.
12645 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12646 changed something. Run df_analyze after find_implicit_sets if any
12647 edges were split. Do not allocate implicit_sets here.
12648
3084ce69
SB
12649 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12650 (gcse_obstack): Renamed to cprop_obstack.
12651 (GNEW, GNEWVEC, GNEWVAR): Remove.
12652 (gmalloc): Remove.
12653 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12654 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12655 (gcse_alloc): Likewise, and rename to cprop_alloc.
12656 (alloc_gcse_men, free_gcse_mem): Remove.
12657 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12658 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12659 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12660
196565d4
SB
12661 * cprop.c (oprs_not_set_p): Remove.
12662 (mark_set, mark_clobber): Remove.
12663 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12664 (reg_not_set_p): New function.
12665 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12666 (cprop_insn): Likewise.
12667 (cprop_jump): Use FOR_EACH_EDGE.
12668
9b69cf83
BS
126692011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12670
12671 PR bootstrap/48403
12672 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12673 (rank_for_schedule): Use scheduled_insns vector instead of
12674 last_scheduled_insn.
12675 (ok_for_early_queue_removal): Likewise.
12676 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12677 we have a dbg_cnt.
12678 (choose_ready): Likewise.
12679 (commit_schedule): Use VEC_iterate.
12680 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12681 a dbg_cnt, use it and ensure the first insn is in the ready list.
12682 (haifa_sched_init): Allocate scheduled_insns.
12683 (sched_extend_ready_list): Don't allocate it; reserve space.
12684 (haifa_sched_finish): Free it.
12685
24f48c2f
JM
126862011-04-04 Joseph Myers <joseph@codesourcery.com>
12687
12688 * optc-gen.awk: Always remove type from Variable entry before
12689 recording in var_seen.
12690
8effe856
EB
126912011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12692
12693 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12694 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12695 call to tidy_fallthru_edges.
12696
413519ae
JM
126972011-04-04 Joseph Myers <joseph@codesourcery.com>
12698
12699 * doc/options.texi (ToLower): Document.
3729983c 12700 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
12701 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12702 * opts.h (cl_option): Add cl_tolower field.
12703 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12704 arguments with lowercase strings.
12705 * config/rx/rx.opt (mcpu=): Add ToLower.
12706 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12707 argument.
12708
7d34a1b0
RS
127092011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12710
12711 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12712
c30e7434
RS
127132011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12714
12715 * config/vax/vax.c: Include reload.h.
12716
112a861d
AS
127172011-04-04 Anatoly Sokolov <aesok@post.ru>
12718
12719 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12720 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12721 (sparc_preferred_reload_class): New function.
12722
e8c6bb74
JJ
127232011-04-04 Jakub Jelinek <jakub@redhat.com>
12724
2aeaa366 12725 PR debug/48401
e8c6bb74
JJ
12726 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12727 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12728
2c081caf
NF
127292011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12730
12731 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12732 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12733
53802f27
AS
127342011-04-03 Anatoly Sokolov <aesok@post.ru>
12735
12736 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12737 (ASM_OUTPUT_ALIGNED_BSS): Define.
12738
e89964e3
MM
127392011-04-03 Michael Matz <matz@suse.de>
12740
12741 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12742 and next_slot members.
12743 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12744 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12745 (lto_streamer_cache_append): Declare.
12746 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12747 unsigned index, remove offset parameter, ensure that we append
12748 or update existing entries.
12749 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12750 parameter, update next_slot for append.
12751 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12752 parameter.
12753 (lto_streamer_cache_insert_at): Likewise.
12754 (lto_streamer_cache_append): New function.
12755 (lto_streamer_cache_lookup): Use unsigned index.
12756 (lto_streamer_cache_get): Likewise.
12757 (lto_record_common_node): Don't test tree_node_can_be_shared.
12758 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12759 (lto_streamer_cache_delete): Don't free offsets member.
12760 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12761 (lto_output_string_with_length): Use lto_output_data_stream.
12762 (lto_output_tree_header): Remove ix parameter, don't write it.
12763 (lto_output_builtin_tree): Likewise.
12764 (lto_write_tree): Adjust callers to above, don't track and write
12765 offset, write unsigned index.
12766 (output_unreferenced_globals): Don't emit all global vars.
12767 (write_global_references): Use unsigned indices.
12768 (lto_output_decl_state_refs): Likewise.
12769 (write_symbol): Likewise.
12770 * lto-streamer-in.c (lto_input_chain): Move earlier.
12771 (input_function): Use unsigned index.
12772 (input_alias_pairs): Don't read and then ignore all global vars.
12773 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12774 don't pass it back, use lto_streamer_cache_append.
12775 (lto_register_var_decl_in_symtab): Use unsigned index.
12776 (lto_register_function_decl_in_symtab): Likewise.
12777 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12778 index.
12779 (lto_get_builtin_tree): Don't read index, use
12780 lto_streamer_cache_append.
12781 (lto_read_tree): Adjust call to lto_materialize_tree.
12782
12783 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12784 don't use function calls in arguments to MIN.
12785
12786 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12787 twice.
12788
12789 * gimple.c (gimple_type_leader_entry): Mark deletable.
12790
b9a5b5b2
AM
127912011-04-03 Alan Modra <amodra@gmail.com>
12792
12793 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12794
ac6a641b
MM
127952011-04-03 Michael Matz <matz@suse.de>
12796
12797 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12798 an integer.
12799 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12800
0038d4e0
MM
128012011-04-03 Michael Matz <matz@suse.de>
12802
e9c18386 12803 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
12804 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12805 without function context.
12806 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12807 current_function_decl and cfun.
12808
91f2fae8
MM
128092011-04-03 Michael Matz <matz@suse.de>
12810
12811 * tree.c (decl_init_priority_insert): Don't create entry for
12812 default priority.
12813 (decl_fini_priority_insert): Ditto.
12814 (fields_compatible_p, find_compatible_field): Remove.
12815 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12816 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12817
da29e070
EB
128182011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12819
12820 * combine.c (try_combine): Remove useless local variable.
12821
4979c28b 128222011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 12823 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
12824
12825 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12826 non-variable offsets and compare the remaining bases of the two
12827 accesses instead of looking for exact same data-ref.
12828
b4ddcaee
KT
128292011-04-02 Kai Tietz <ktietz@redhat.com>
12830
f90298e1
KT
12831 PR target/48416
12832 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12833
b4ddcaee
KT
12834 * i386.c (ix86_is_msabi_thiscall): New helper function.
12835 (ix86_is_type_thiscall): New helper function.
12836 (ix86_comp_type_attributes): Handle thiscall for method-functions
12837 special.
12838 (init_cumulative_args): Likewise.
12839 (find_drap_reg): Likewise.
12840 (ix86_static_chain): Likewise.
12841 (x86_this_parameter): Likewise.
12842 (x86_output_mi_thunk): Likewise.
12843
2a9d769a 128442011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
12845 Nicolas Setton <setton@adacore.com>
12846 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
12847
12848 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12849 (add_gnat_descriptive_type_attribute): New function.
12850 (gen_array_type_die): Call it.
12851 (gen_enumeration_type_die): Likewise.
12852 (gen_struct_or_union_type_die): Likewise.
12853 (modified_type_die): Likewise.
12854 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12855 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12856 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12857
15a03a11
JJ
128582011-04-01 Jakub Jelinek <jakub@redhat.com>
12859
12860 PR bootstrap/48148
12861 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12862 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12863
12864 Revert:
12865 2011-03-17 Richard Guenther <rguenther@suse.de>
12866
12867 PR bootstrap/48148
12868 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12869 origin for decls in other ltrans units.
12870 (input_varpool_node): Likewise.
12871
19228b93
JJ
128722011-04-01 Jakub Jelinek <jakub@redhat.com>
12873
12874 PR middle-end/48335
12875 * expr.c (expand_assignment): Handle all possibilities
12876 if TO_RTX is CONCAT.
e9c18386 12877 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
12878 (store_split_bit_field): If SUBREG_REG (op0) or
12879 op0 itself has smaller mode than word, return it
12880 for offset 0 and const0_rtx for out-of-bounds stores.
12881 If word is const0_rtx, skip it.
12882
88cb339e
N
128832011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12884
12885 * config/h8300/h8300.c (print_operand_address): Rename to...
12886 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12887 Call h8300_print_operand and h8300_print_operand_address instead of
12888 print_operand and print_operand_address. Declare.
12889 (print_operand): Renake to...
12890 (h8300_print_operand): ...this. Make static. Adjust comments.
12891 Call h8300_print_operand instead of print_operand. Declare.
12892 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12893 (h8300_register_move_cost): Likewise.
12894 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12895 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12896 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12897 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12898 * config/h8300/h8300-protos.h (print_operand): Delete.
12899 (print_operand_address): Delete.
12900
756d6ee9
RH
129012011-04-01 Richard Henderson <rth@redhat.com>
12902
12903 PR 48400
12904 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12905 in strict mode before dwarf4. Re-order tests to early out
12906 before switching sections.
12907
ceaaaeab
NF
129082011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12909
12910 * config/h8300/constraints.md: New file.
12911 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12912 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12913 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12914 * config/h8300/predicates.md (bit_operand): Likewise.
12915 (incdec_operand): Use satisfies_constraint_M and
12916 satisfies_constraint_O. Don't use C code block.
12917 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12918 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12919 (compute_mov_length): Use satisfies_constraint_G.
12920 (fix_bit_operand): Use satisfies_constraint_U.
12921 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12922 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12923 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12924 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12925 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12926 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12927 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12928 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12929 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12930 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12931 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12932 (EXTRA_MEMORY_CONSTRAINT): Delete.
12933
08ae38e0
AP
129342011-04-01 Andrew Pinski <pinskia@gmail.com>
12935 Michael Meissner <meissner@linux.vnet.ibm.com>
12936
12937 PR target/48262
12938 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12939 operands, as per the specifications.
12940
12941 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12942 (vec_extract_evenv4sf): Ditto.
12943 (vec_extract_evenv8hi): Ditto.
12944 (vec_extract_evenv16qi): Ditto.
12945 (vec_extract_oddv4si): Ditto.
12946
bdb0b0f6
MW
129472011-03-31 Mark Wielaard <mjw@redhat.com>
12948
12949 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12950 high_pc attribute if the CU has no associated code. Only output
12951 DW_AT_entry_pc for CU if not generating strict dwarf and
12952 dwarf_version < 4.
12953
722279e4
BS
129542011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12955
12956 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12957 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12958 out of ...
12959 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12960 * final.c (final_start_function): Call the new function rather
12961 than using a NULL argument for dwarf2out_frame_debug.
12962
c5dd277d
BS
12963 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12964 that contains the prologue.
12965
ec4efea9
BS
12966 * haifa-sched.c (queue_insn): New arg REASON. All callers
12967 changed. Print it in debugging output.
12968
2a6a0d80
BS
12969 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12970
86014d07
BS
12971 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12972 Split most of the code into...
12973 (begin_move_insn): ... here. New function.
12974 (ebb_sched_info): Add a pointer to it.
12975 * haifa-sched.c (scheduled_insns): New static variable.
12976 (sched_extend_ready_list): Allocate it.
12977 (schedule_block): Use it to record the order of scheduled insns.
12978 Perform RTL changes to move insns only after all scheduling
12979 decisions have been made.
12980 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12981 begin_move_insn field.
12982 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12983 * sched-int.h (struct haifa_sched_info): Remove second argument
12984 from begin_schedule_ready hook. Add new member begin_move_insn.
12985 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12986 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12987
9d701248
BS
12988 * haifa-sched.c (prune_ready_list): New function, broken out of
12989 schedule_block.
12990 (schedule_block): Use it.
12991
1ca1dad5
UW
129922011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12993
12994 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12995
49568e45
KT
129962011-04-01 Kai Tietz <ktietz@redhat.com>
12997
12998 * config.gcc (*-*-mingw*): Allow as option the
12999 posix threading model.
07c0852e 13000 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
13001 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
13002 definition.
13003 (CPP_SPEC): Add pthread/no-pthread handling.
13004 (LIB_SPEC): Likewise.
13005 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
13006 (LIB_SPEC): Likewise.
13007 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
13008 flag to pass -pthread option for shared libgcc build.
13009 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
13010 for shared libgcc build.
13011 * config/i386/t-mingw-pthread: New file.
13012 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
13013 New define to enable use of library pthread by default.
13014 * config/i386/mingw.opt (pthread): New driver option.
13015 (no-pthread): New driver option.
e9c18386 13016 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
13017 * config/i386/mingw-w64.opt: Likewise.
13018
748f7574 130192011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
13020
13021 * c-decl.c (grokdeclarator): Fix formatting.
13022
f04713ee
RS
130232011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13024
13025 * expr.c (emit_block_move_via_movmem): Use n_generator_args
13026 instead of n_operands.
13027 (set_storage_via_setmem): Likewise.
13028 * optabs.c (maybe_gen_insn): Likewise.
13029 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
13030 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
13031 (mips_expand_builtin_direct): Likewise.
13032 * config/spu/spu.c (expand_builtin_args): Likewise.
13033
b29387ee
RS
130342011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13035
13036 * recog.h (insn_data_d): Add n_generator_args.
13037 * genoutput.c (data): Likewise.
13038 (output_insn_data): Print it.
13039 (max_opno, num_dups): Delete.
13040 (scan_operands): Just fill in "d->operand[...]".
13041 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
13042
e792559a
RS
130432011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
13044
13045 * gensupport.h (pattern_stats): New structure.
13046 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
13047 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
13048 (max_operand_1, max_operand_vec): Delete.
13049 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
13050
e8110d6f
NF
130512011-03-31 Nathan Froyd <froydnj@codesourcery.com>
13052
13053 * emit-rtl.c (emit_pattern_after_setloc): New function.
13054 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
13055 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
13056 (emit_pattern_after): New function.
13057 (emit_insn_after, emit_jump_insn_after): Call it.
13058 (emit_call_insn_after, emit_debug_insn_after): Likewise.
13059 (emit_pattern_before_setloc): New function.
13060 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
13061 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
13062 Likewise.
13063 (emit_pattern_before): New function.
13064 (emit_insn_before, emit_jump_insn_before): Call it.
13065 (emit_call_insn_before, emit_debug_insn_before): Likewise.
13066
576f85f1
RH
130672011-03-31 Richard Henderson <rth@redhat.com>
13068
13069 * dwarf2out.c (dw_separate_line_info_ref): Remove.
13070 (dw_separate_line_info_entry): Remove.
13071 (enum dw_line_info_opcode): New.
13072 (dw_line_info_entry): Use it.
13073 (dw_line_info_table, dw_line_info_table_p): New.
13074 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
13075 (line_info_table, line_info_label_num): Remove.
13076 (line_info_table_in_use): Remove.
13077 (separate_line_info_table): Remove.
13078 (separate_line_info_table_allocated): Remove.
13079 (separate_line_info_table_in_use): Remove.
13080 (LINE_INFO_TABLE_INCREMENT): Remove.
13081 (line_info_label_num): New.
13082 (cur_line_info_table): New.
13083 (text_section_line_info, cold_text_section_line_info): New.
13084 (separate_line_info): New.
13085 (SEPARATE_LINE_CODE_LABEL): Remove.
13086 (print_dwarf_line_table): Remove.
13087 (debug_dwarf): Don't dump it.
13088 (output_one_line_info_table): New.
13089 (output_line_info): Use it.
13090 (new_line_info_table): New.
13091 (set_cur_line_info_table): New.
13092 (dwarf2out_switch_text_section): Use it.
13093 (dwarf2out_begin_function): Likewise.
13094 (push_dw_line_info_entry): New.
13095 (dwarf2out_source_line): Rewrite for new line info tables.
13096 (dwarf2out_init): Remove dead initailizations.
13097
300d83d9
JM
130982011-03-31 Joseph Myers <joseph@codesourcery.com>
13099
13100 * opts.h (cl_option): Add comments to fields. Add bit-fields for
13101 various flags.
13102 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
13103 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
13104 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
13105 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
13106 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
13107 * opt-functions.awk (flag_init, switch_bit_fields): New.
13108 (switch_flags): Don't handle flags moved to bit-fields. Don't
13109 generate CL_MISSING_OK or CL_SAVE.
13110 * optc-gen.awk: Update to generate bit-field output as well as
13111 flags field.
13112 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
13113 bit-field instead of CL_REJECT_DRIVER flag.
13114 * opts-common.c (generate_canonical_option,
13115 decode_cmdline_option): Use bit-fields instead of CL_* flags.
13116 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
13117 instead of CL_REJECT_NEGATIVE flag.
13118 * toplev.c (print_switch_values): Use cl_report bit-field instead
13119 of CL_REPORT flag.
13120
d4d73ce2
EB
131212011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13122
13123 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
13124 a zero minimum index only if it is redundant.
13125
b8faca75
VM
131262011-03-31 Vladimir Makarov <vmakarov@redhat.com>
13127
13128 PR rtl-optimization/48381
13129 * ira-color.c (assign_hard_reg): Use hard reg set intersection
13130 instead of ira_class_hard_reg_index for calculating conflicting
13131 hard registers.
13132
7d11cebe
SB
131332011-03-31 Steven Bosscher <steven@gcc.gnu.org>
13134
13135 * cprop.c: Clean up hash table building.
13136 (reg_avail_info): Remove.
13137 (oprs_available_p): Remove.
13138 (record_last_reg_set_info): Remove.
13139 (record_last_set_info): Remove.
13140 (reg_available_p): New function.
13141 (gcse_constant_p): Do not treat unfolded conditions as constants.
13142 (make_set_regs_unavailable): New function.
13143 (hash_scan_set): Simplify with new reg_available_p.
13144 (compute_hash_table_work): Traverse insns stream only once.
13145 Do not compute reg_avail_info. Traverse insns in reverse order.
13146 Record implicit sets after recording explicit sets from the block.
13147
98faf84f
MM
131482011-03-31 Michael Matz <matz@suse.de>
13149
e9c18386 13150 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 13151
f52d97da
AS
131522011-03-31 Anatoly Sokolov <aesok@post.ru>
13153
13154 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
13155 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
13156 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13157 (h8300_mode_dependent_address_p): New function.
13158 (h8300_get_index): Make static.
13159
e16b6fd0
JL
131602011-03-31 Jeff Law <law@redhat.com>
13161
10c51983
JL
13162 * reload1.c (elimination_effects): Fix typo in recent change.
13163
e9c18386 13164 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
13165 typo potentially leading to null pointer dereference.
13166
13167 * caller-save.c (new_saved_hard_reg): Eliminate return value.
13168 (setup_save_areas): Corresponding changes to avoid useless
13169 assignments.
13170
13171 * jump.c (reversed_comparison_code_parts): Avoid successive return
13172 statements when REVERSE_CONDITION is defined.
13173
13174 * expr.c (expand_assignment): Avoid useless assignments.
13175 (expand_expr_real_1): Likewise.
13176 (expand_expr_real_2): Avoid useless statements.
13177
13178 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
13179
13180 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13181
13182 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
13183 statements.
13184
13185 * stmt.c (expand_expr_stmt): Avoid useless assignment.
13186
eb1eb914
JM
131872011-03-31 Joseph Myers <joseph@codesourcery.com>
13188
13189 PR target/47109
13190 * doc/tm.texi.in (TARGET_VERSION): Remove.
13191 * doc/tm.texi: Regenerate.
13192 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
13193 * collect2.c (main): Don't use TARGET_VERSION.
13194 * mips-tdump.c (main): Don't use TARGET_VERSION.
13195 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 13196 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
13197 * config/rs6000/vxworksae.h: Remove.
13198 * config/alpha/alpha.h (TARGET_VERSION): Remove.
13199 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
13200 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
13201 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
13202 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13203 * config/arm/arm.h (TARGET_VERSION): Remove.
13204 * config/arm/coff.h (TARGET_VERSION): Remove.
13205 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
13206 * config/arm/elf.h (TARGET_VERSION): Remove.
13207 * config/arm/freebsd.h (TARGET_VERSION): Remove.
13208 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
13209 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
13210 * config/arm/pe.h (TARGET_VERSION): Remove.
13211 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
13212 * config/arm/semi.h (TARGET_VERSION): Remove.
13213 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
13214 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
13215 * config/arm/vxworks.h (TARGET_VERSION): Remove.
13216 * config/avr/avr.h (TARGET_VERSION): Remove.
13217 * config/bfin/bfin.h (TARGET_VERSION): Remove.
13218 * config/fr30/fr30.h (TARGET_VERSION): Remove.
13219 * config/frv/frv.h (TARGET_VERSION): Remove.
13220 * config/h8300/h8300.h (TARGET_VERSION): Remove.
13221 * config/i386/cygwin.h (TARGET_VERSION): Remove.
13222 * config/i386/darwin.h (TARGET_VERSION): Remove.
13223 * config/i386/darwin64.h (TARGET_VERSION): Remove.
13224 * config/i386/djgpp.h (TARGET_VERSION): Remove.
13225 * config/i386/freebsd.h (TARGET_VERSION): Remove.
13226 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
13227 * config/i386/gnu.h (TARGET_VERSION): Remove.
13228 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
13229 * config/i386/i386elf.h (TARGET_VERSION): Remove.
13230 * config/i386/linux.h (TARGET_VERSION): Remove.
13231 * config/i386/linux64.h (TARGET_VERSION): Remove.
13232 * config/i386/lynx.h (TARGET_VERSION): Remove.
13233 * config/i386/mingw32.h (TARGET_VERSION): Remove.
13234 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
13235 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
13236 * config/i386/netware.h (TARGET_VERSION): Remove.
13237 * config/i386/nto.h (TARGET_VERSION): Remove.
13238 * config/i386/openbsd.h (TARGET_VERSION): Remove.
13239 * config/i386/vxworks.h (TARGET_VERSION): Remove.
13240 * config/ia64/elf.h (TARGET_VERSION): Remove.
13241 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
13242 * config/ia64/hpux.h (TARGET_VERSION): Remove.
13243 * config/ia64/linux.h (TARGET_VERSION): Remove.
13244 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
13245 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
13246 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13247 * config/lm32/lm32.h (TARGET_VERSION): Remove.
13248 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
13249 * config/m32c/m32c.h (TARGET_VERSION): Remove.
13250 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
13251 * config/m32r/m32r.h (TARGET_VERSION): Remove.
13252 * config/m68k/linux.h (TARGET_VERSION): Remove.
13253 * config/m68k/m68k.h (TARGET_VERSION): Remove.
13254 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
13255 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
13256 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
13257 * config/mep/mep.h (TARGET_VERSION): Remove.
13258 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
13259 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
13260 * config/mips/iris6.h (MACHINE_TYPE): Remove.
13261 * config/mips/linux.h (TARGET_VERSION): Remove.
13262 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
13263 * config/mips/vxworks.h (TARGET_VERSION): Remove.
13264 * config/mmix/mmix.h (TARGET_VERSION): Remove.
13265 * config/mn10300/linux.h (TARGET_VERSION): Remove.
13266 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
13267 * config/pa/pa.h (TARGET_VERSION): Remove.
13268 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
13269 * config/picochip/picochip.h (TARGET_VERSION): Remove.
13270 * config/rs6000/aix.h (TARGET_VERSION): Remove.
13271 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
13272 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
13273 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
13274 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
13275 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
13276 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
13277 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
13278 * config/rs6000/linux.h (TARGET_VERSION): Remove.
13279 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
13280 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
13281 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
13282 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
13283 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
13284 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
13285 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
13286 * config/s390/linux.h (TARGET_VERSION): Remove.
13287 * config/s390/s390.h (TARGET_VERSION): Remove.
13288 * config/s390/tpf.h (TARGET_VERSION): Remove.
13289 * config/score/score.h (TARGET_VERSION): Remove.
13290 * config/sh/linux.h (TARGET_VERSION): Remove.
13291 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
13292 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
13293 * config/sh/sh.h (TARGET_VERSION): Remove.
13294 * config/sh/sh64.h (TARGET_VERSION): Remove.
13295 * config/sh/superh.h (TARGET_VERSION): Remove.
13296 * config/sh/vxworks.h (TARGET_VERSION): Remove.
13297 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
13298 * config/sparc/linux.h (TARGET_VERSION): Remove.
13299 * config/sparc/linux64.h (TARGET_VERSION): Remove.
13300 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
13301 TARGET_NAME32, TARGET_NAME): Remove.
13302 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
13303 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
13304 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
13305 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
13306 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
13307 * config/spu/spu.h (TARGET_VERSION): Remove.
13308 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
13309 * config/v850/v850.h (TARGET_VERSION): Remove.
13310 * config/vax/linux.h (TARGET_VERSION): Remove.
13311 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
13312 * config/xtensa/elf.h (TARGET_VERSION): Remove.
13313 * config/xtensa/linux.h (TARGET_VERSION): Remove.
13314
ace31bca
EB
133152011-03-31 Eric Botcazou <ebotcazou@adacore.com>
13316
13317 PR target/48142
13318 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
13319 frame-related from frame-unrelated adjustments to the stack pointer.
13320
76f9db36
JJ
133212011-03-31 Jakub Jelinek <jakub@redhat.com>
13322
13323 * common.opt (fdebug-types-section): Move earlier.
13324 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
13325
b7826465
AT
133262011-03-31 Andreas Tobler <andreast@fgznet.ch>
13327
13328 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
13329 var.
13330
1290e54c
NF
133312011-03-30 Nathan Froyd <froydnj@codesourcery.com>
13332
13333 * tree.h (CASE_CHAIN): Define.
13334 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
13335 (gimple_redirect_edge_and_branch): Likewise.
13336
bddc98e1
VM
133372011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13338
13339 PR middle-end/48367
13340 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
13341 calculation.
13342
c865e437
JL
133432011-03-30 Jeff Law <law@redhat.com>
13344
b3750213 13345 * PR bootstrap/48371
c865e437
JL
13346 * reload1.c (reload): Fix botch in last change.
13347
13348 * reload.h (struct reload): Fix typo introduced in last change.
13349
2cdf9574
JM
133502011-03-30 Joseph Myers <joseph@codesourcery.com>
13351
13352 * config/arm/arm.opt (mhard-float, msoft-float): Mark
13353 Undocumented. Remove help text.
13354 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
13355 -mhard-float.
13356
666a21a2
JM
133572011-03-30 Joseph Myers <joseph@codesourcery.com>
13358
13359 * doc/options.texi (NegativeAlias): Document.
13360 (Alias): Mention NegativeAlias.
13361 * opt-functions.awk: Handle NegativeAlias.
e9c18386 13362 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
13363 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
13364 * opts.h (CL_NEGATIVE_ALIAS): Define.
13365 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
13366 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
13367 OPT_mspe_.
13368 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
13369 Alias entries.
13370 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
13371 mno-spe and mno-isel instead of mspe=no and -misel=no.
13372
0fa4e351
MW
133732011-03-29 Mark Wielaard <mjw@redhat.com>
13374
13375 * common.opt (fdebug-types-section): New flag.
13376 * doc/invoke.texi: Document new -fno-debug-types-section flag.
13377 * dwarf2out.c (use_debug_types): New define.
13378 (struct die_struct): Mark die_id with GTY desc use_debug_types.
13379 (print_die): Guard output of type unit signatures using
13380 use_debug_types.
13381 (build_abbrev_table): Replace assert of dwarf_version >= 4
13382 with assert on use_debug_types.
13383 (size_of_die): Likewise.
13384 (unmark_dies): Likewise.
13385 (value_format): Decide AT_ref_external form on use_debug_types.
13386 (output_die): Replace dwarf_version version check guard with
13387 use_debug_types where appropriate.
13388 (modified_type_die): Likewise.
13389 (gen_reference_type_die): Likewise.
13390 (dwarf2out_start_source_file): Likewise.
13391 (dwarf2out_end_source_file): Likewise.
13392 (prune_unused_types_walk_attribs): Likewise.
13393 (dwarf2out_finish): Likewise.
13394
4648deb4
VM
133952011-03-30 Vladimir Makarov <vmakarov@redhat.com>
13396
13397 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
13398
4f431835
RS
133992011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13400
13401 PR rtl-optimization/48332
13402 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
13403 mode of input operand N and modeN to its actual mode.
13404
f2034d06
JL
134052011-03-30 Jeff Law <law@redhat.com>
13406
13407 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
13408 define accessor macro.
13409 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
13410 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
13411 (reg_equiv_init): Likewise.
13412 (reg_equivs_size): New variable.
13413 (reg_equiv_init_size): Remove.
13414 (allocate_initial_values): Move prototype to here from....
13415 * integrate.h (allocate_initial_values): Remove prototype.
13416 * integrate.c: Include reload.h.
13417 (allocate_initial_values): Corresponding changes.
13418 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
13419 (fix_reg_equiv_init, no_equiv): Corresponding changes.
13420 (update_equiv_regs): Corresponding changes.
13421 (ira): Corresponding changes.
13422 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
13423 (push_secondary_reload): Corresponding changes.
13424 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
13425 (make_memloc, find_reloads_address): Corresponding changes.
13426 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
13427 (find_reloads_address_1): Corresponding changes.
13428 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
13429 (refers_to_regno_for_reload_p): Corresponding changes.
13430 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
13431 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
13432 * reload1.c: Include ggc.h.
13433 (grow_reg_equivs): New function.
13434 (replace_pseudos_in, reload): Corresponding changes.
13435 (calculate_needs_all_insns, alter_regs): Corresponding changes.
13436 (eliminate_regs_1, elimination_effects): Corresponding changes.
13437 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
13438 (delete_output_reload): Likewise.
13439 * caller-save.c (mark_referenced_regs): Corresponding changes.
13440 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
13441 * frv/predicates.md (frv_load_operand): Corresponding changes.
13442 * microblaze/microblaze.c (double_memory_operand): Corresponding
13443 changes.
13444 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
13445 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 13446 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
13447 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13448 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13449 changes.
13450 * pa/pa.c (emit_move_sequence): Corresponding changes.
13451 * vax/vax.c (nonindexed_address_p): Corresponding changes.
13452
159b81b0
RS
134532011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13454
13455 PR target/47551
13456 * config/arm/arm.c (coproc_secondary_reload_class): Handle
13457 structure modes. Don't check neon_vector_mem_operand for
13458 vector or structure modes.
13459
a6217191
RS
134602011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13461 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13462
13463 PR target/43590
13464 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13465 operand 1 and reshuffle the operands to match.
13466 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13467
bd837408
CS
134682011-03-30 Christian Schüler <cschueler@gmx.de>
13469
6955d771 13470 PR driver/48208
bd837408 13471 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 13472
6955d771 13473 PR driver/48260
bd837408
CS
13474 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13475 handler function.
13476 * config/darwin.opt: Added '-arch' option.
13477
e9c0470a
NC
134782011-03-30 Nick Clifton <nickc@redhat.com>
13479
13480 * config/rx/rx.md: Add peepholes and patterns to combine
13481 extending loads and simple arithmetic instructions.
13482 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
13483 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13484 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 13485 modes to use pre-decrement and post-increment addressing.
e9c18386 13486 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 13487 addresses.
e9c18386
UB
13488 (rx_print_operand): Add support for %Q. Fix handling of %Q.
13489 (rx_memory_move_cost): Adjust cost of stores.
13490 (rx_adjust_insn_length): New function.
e9c0470a 13491
8a87e7ab
JJ
134922011-03-30 Jakub Jelinek <jakub@redhat.com>
13493
13494 PR c/48305
13495 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13496 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13497 matching arg00/arg01 types.
13498
12486e03
EB
134992011-03-30 Eric Botcazou <ebotcazou@adacore.com>
13500
13501 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13502 last_location to UNKNOWN_LOCATION.
13503
0b99eef6
L
135042011-03-30 H.J. Lu <hongjiu.lu@intel.com>
13505
13506 PR target/48349
13507 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13508 FLOAT_SSE_REGS.
13509
023592aa
JM
135102011-03-30 Joseph Myers <joseph@codesourcery.com>
13511 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13512
13513 PR bootstrap/48337
13514 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13515 Init(PROCESSOR_V7).
13516 (sparc_cpu): Likewise.
13517 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13518 PROCESSOR_V7.
13519
ad3b266b
VM
135202011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13521
13522 PR target/48336
13523 PR middle-end/48342
13524 PR rtl-optimization/48345
13525 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13526 hard regs for given mode from profitable regs when doing secondary
13527 allocation.
13528
633c9126
JL
135292011-03-29 Jeff Law <law@redhat.com>
13530
13531 PR bootstrap/48327
13532 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13533 do_not_duplicate field.
13534 (lookup_redirection_data): Corresponding changes.
13535 (create_duplicates): Always create a template block.
13536 (redirect_edges): Remove code which reused the original block
13537 when it was going to become unreachable code.
13538 (thread_block): Don't set do_not_duplicate field.
13539
eb50f63a
JM
135402011-03-29 Joseph Myers <joseph@codesourcery.com>
13541
13542 * lto-opts.c (register_user_option_p, lto_register_user_option):
13543 Make type argument unsigned.
13544 * lto-streamer.h (lto_register_user_option): Make type argument
13545 unsigned.
13546 * opth-gen.awk: Make CL_* macros unsigned.
13547 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13548 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13549 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13550 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13551 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13552 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13553 (find_opt): Make lang_mask argument unsigned.
13554
76763a6d
VM
135552011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13556
13557 PR rtl-optimization/48331
13558 PR rtl-optimization/48334
13559 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13560 for any used algorithm.
13561
5c82436e
VM
135622011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13563
13564 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13565 to parent_max.
13566
7a81008b
UB
135672011-03-29 Uros Bizjak <ubizjak@gmail.com>
13568
13569 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13570 (alpha_option_override): Don't set alpha_sr_alias_set.
13571 (emit_frame_store_1): Use gen_frame_mem rather than calling
13572 set_mem_alias_set.
13573 (alpha_expand_epilogue): Ditto.
13574
86c8d1f6
IR
135752011-03-29 Ira Rosen <ira.rosen@linaro.org>
13576
13577 PR tree-optimization/48290
13578 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13579 vectorization, check that relevant phis in the basic block after
13580 the inner loop are really inner loop's exit phis.
13581
0d12220f
RS
135822011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13583
e8cf17e7 13584 PR debug/48190
0d12220f
RS
13585 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13586 (cached_dw_loc_list_def): New structure.
13587 (cached_dw_loc_list): New typedef.
13588 (cached_dw_loc_list_table): New variable.
13589 (cached_dw_loc_list_table_hash): New function.
13590 (cached_dw_loc_list_table_eq): Likewise.
13591 (add_location_or_const_value_attribute): Take a bool cache_p.
13592 Cache the list when the parameter is true.
13593 (gen_formal_parameter_die): Update caller.
13594 (gen_variable_die): Likewise.
13595 (dwarf2out_finish): Likewise.
13596 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13597 while generating debug info for the decl.
13598 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13599 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13600 (resolve_addr): Cache the result of resolving a chain of
13601 location lists.
13602
1756cb66
VM
136032011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13604
13605 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13606 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 13607
1756cb66
VM
13608 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13609 after regstat_init_n_sets_and_refs.
13610
13611 * ira.c: Add more comments at the top.
13612 (setup_stack_reg_pressure_class, setup_pressure_classes):
13613 Add comments how we compute the register pressure classes.
13614 (setup_allocno_and_important_classes): Add more comments.
13615 (setup_class_translate_array, reorder_important_classes)
13616 (setup_reg_class_relations): Add comments.
13617
13618 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13619 start of the file.
13620
13621 * ira-color.c: Add 2011 to the Copyright line.
13622 (assign_hard_reg): Add more comments.
13623 (improve_allocation): Ditto.
13624
13625 * ira-costs.c: Add 2011 to the Copyright line.
13626 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13627 comments.
13628 (setup_regno_cost_classes_by_mode): Ditto.
13629
13630 Initial patches from ira-improv branch:
13631
13632 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13633
f60c2554 13634 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
13635 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13636 (ira_create_allocno): Remove initialization of
13637 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13638 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13639 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13640 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13641 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13642 Initialize ALLOCNO_ADD_DATA.
13643 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13644 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13645 ALLOCNO_REG.
13646 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13647 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13648
13649 * ira.c (ira_reallocate): Remove.
13650 (setup_pressure_classes): Call
13651 ira_init_register_move_cost_if_necessary. Use
13652 ira_register_move_cost instead of ira_get_register_move_cost.
13653 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13654 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13655
13656 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13657 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13658 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13659 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13660 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13661 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13662 Fix formatting.
7a81008b 13663 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
13664 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13665 (struct allocno_color_data): New.
13666 (allocno_color_data_t): New typedef.
13667 (allocno_color_data): New definition.
13668 (ALLOCNO_COLOR_DATA): New macro.
13669 (struct object_color_data): New.
13670 (object_color_data_t): New typedef.
13671 (object_color_data): New definition.
13672 (OBJECT_COLOR_DATA): New macro.
13673 (update_copy_costs, calculate_allocno_spill_cost): Call
13674 ira_init_register_move_cost_if_necessary. Use
13675 ira_register_move_cost instead of ira_get_register_move_cost.
13676 (move_spill_restore, update_curr_costs): Ditto.
13677 (allocno_spill_priority): Make it inline.
7a81008b 13678 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
13679 (struct coalesce_data, coalesce_data_t): New.
13680 (allocno_coalesce_data): New definition.
13681 (ALLOCNO_COALESCE_DATA): New macro.
13682 (merge_allocnos, coalesced_allocno_conflict_p): Use
13683 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13684 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13685 (coalesce_allocnos): Ditto.
13686 (setup_coalesced_allocno_costs_and_nums): Ditto.
13687 (collect_spilled_coalesced_allocnos): Ditto.
13688 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13689 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13690 (coalesce_spill_slots): Ditto.
13691 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13692 free allocno_coalesce_data.
13693
13694 * ira-conflicts.c: Fix formatting.
13695 (process_regs_for_copy): Call
13696 ira_init_register_move_cost_if_necessary. Use
13697 ira_register_move_cost instead of ira_get_register_move_cost.
13698 (build_object_conflicts): Optimize.
13699
13700 * ira-costs.c (record_reg_classes): Optimize. Call
13701 ira_init_register_move_cost_if_necessary. Use
13702 ira_register_move_cost, ira_may_move_in_cost, and
13703 ira_may_move_out_cost instead of ira_get_register_move_cost and
13704 ira_get_may_move_cost.
13705 (record_address_regs): Ditto.
13706 (scan_one_insn): Optimize.
13707 (find_costs_and_classes): Optimize.
13708 (process_bb_node_for_hard_reg_moves): Call
13709 ira_init_register_move_cost_if_necessary. Use
13710 ira_register_move_cost instead of ira_get_register_move_cost.
13711
13712 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13713 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13714 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13715 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13716 definitions.
13717 (ira_initiate_emit_data, ira_finish_emit_data)
13718 (create_new_allocno): New functions.
7a81008b 13719 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
13720 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13721 Use ira_register_move_cost instead of ira_get_register_move_cost.
13722
13723 * ira-int.h: Fix some comments.
7a81008b
UB
13724 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13725 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
13726 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13727 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13728 add_data.
13729 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13730 bitfield after mode. Make hard_regno a short int. Make
13731 hard_regno short. Remove first_coalesced_allocno and
13732 next_coalesced_allocno. Move mem_optimized_dest_p,
13733 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13734 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13735 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13736 temp, colorable_p. Add new member add_data.
13737 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13738 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13739 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13740 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13741 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13742 (ALLOCNO_ADD_DATA): New macro.
13743 (ira_emit_data_t): New typedef.
13744 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13745 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13746 from struct ira_allocno.
13747 (ALLOCNO_EMIT_DATA): New macro.
13748 (ira_allocno_emit_data, allocno_emit_reg): New.
13749 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 13750 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
13751 (OBJECT_ADD_DATA): New macro.
13752 (ira_reallocate): Remove.
13753 (ira_initiate_emit_data, ira_finish_emit_data): New.
13754 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13755 (ira_init_register_move_cost_if_necessary): New.
13756 (ira_object_conflict_iter_next): Merge into
13757 ira_object_conflict_iter_cond.
7a81008b 13758 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 13759
f60c2554 13760 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
13761 ira_init_register_move_cost_if_necessary. Use
13762 ira_register_move_cost instead of ira_get_register_move_cost.
13763
13764 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13765
13766 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13767
13768 * ira-costs.c: Fix formatting.
13769 (cost_classes, cost_classes_num): Remove.
13770 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13771 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13772 (cost_classes_del, cost_classes_htab): New.
13773 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13774 (initiate_regno_cost_classes, setup_cost_classes): New.
13775 (setup_regno_cost_classes_by_aclass): New.
7a81008b 13776 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
13777 (record_reg_classes): Use regno_cost_classes instead of
13778 cost_classes. Move checking opposite operand up.
13779 (record_address_regs): Use regno_cost_classes
13780 instead of cost_classes.
13781 (scan_one_insn): Ditto. Use always general register.
13782 (print_allocno_costs): Use regno_cost_classes instead of
13783 cost_classes.
13784 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13785 (find_costs_and_classes): Set up cost classes for each registers.
13786 Use also their mode for this. Use regno_cost_classes instead of
13787 cost_classes.
13788 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13789 cost_classes.
13790 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13791 (ira_costs, ira_set_pseudo_classes): Call
13792 initiate_regno_cost_classes and finish_regno_cost_classes.
13793
13794 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13795
13796 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13797
13798 * target.def (ira_cover_classes): Remove.
13799
7a81008b 13800 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
13801
13802 * doc/tm.texi.in: Ditto.
13803
13804 * ira-conflicts.c: Remove mentioning cover classes from the file.
13805 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 13806 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
13807
13808 * targhooks.c (default_ira_cover_classes): Remove.
13809
13810 * targhooks.h (default_ira_cover_classes): Ditto.
13811
13812 * haifa-sched.c: Remove mentioning cover classes from the file.
13813 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13814 ira_pressure_classes and ira_pressure_classes_num instead of
13815 ira_reg_class_cover_size and ira_reg_class_cover. Use
13816 sched_regno_pressure_class instead of sched_regno_cover_class.
13817 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13818 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13819
13820 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13821 classes from the file.
13822 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13823 (struct object_hard_regs, struct object_hard_regs_node): New.
13824 (struct ira_object): New members profitable_hard_regs,
13825 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13826 (struct ira_allocno): Rename cover_class to aclass. Rename
13827 cover_class_cost and updated_cover_class_cost to class_cost and
13828 updated_class_cost. Remove splay_removed_p and
13829 left_conflict_size. Add new members colorable_p.
13830 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13831 (ALLOCNO_COLORABLE_P): New macro.
13832 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13833 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13834 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13835 (OBJECT_...): Rename parameter C to O.
13836 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13837 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13838 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13839 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13840 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13841 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13842 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13843 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13844 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13845 x_ira_reg_class_subunion.
13846 (ira_max_memory_move_cost, ira_max_register_move_cost)
13847 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13848 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13849 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 13850 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
13851 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13852 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13853 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13854 (ira_tune_allocno_costs_and_cover_classes): Rename to
13855 ira_tune_allocno_costs.
13856 (ira_debug_hard_regs_forest): New.
13857 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13858 (ira_object_conflict_iter_next): Fix comments.
7a81008b 13859 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
13860 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13861 cover_class to aclass.
13862 (ira_allocate_and_accumulate_costs): Ditto.
13863 (ira_allocate_and_set_or_copy_costs): Ditto.
13864
13865 * opts.c (decode_options): Remove ira_cover_class check.
13866
13867 * ira-color.c: Remove mentioning cover classes from the file. Use
13868 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13869 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13870 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13871 (splay-tree.h): Remove include.
13872 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13873 before copy_freq_compare_func.
13874 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13875 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13876 New definitions.
13877 (hard_regs_roots, hard_regs_node_vec): Ditto.
13878 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13879 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13880 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13881 (create_new_object_hard_regs_node): Ditto.
13882 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 13883 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
13884 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13885 Ditto.
13886 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13887 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13888 (remove_unused_object_hard_regs_nodes): Ditto.
13889 (enumerate_object_hard_regs_nodes): Ditto.
13890 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13891 (object_hard_regs_subnode_t): Ditto.
13892 (struct object_hard_regs_subnode): Ditto.
13893 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13894 (setup_object_hard_regs_subnode_index): Ditto.
13895 (get_object_hard_regs_subnodes_num): Ditto.
13896 (form_object_hard_regs_nodes_forest): Ditto.
13897 (finish_object_hard_regs_nodes_tree): Ditto.
13898 (finish_object_hard_regs_nodes_forest): Ditto.
13899 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 13900 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
13901 (pseudos_have_intersected_live_ranges_p): Rename to
13902 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13903 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13904 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13905 (update_copy_costs): Remove assert. Skip cost update if the hard
13906 reg does not belong the class.
13907 (assign_hard_reg): Process only profitable hard regs.
13908 (uncolorable_allocnos_num): Make it scalar.
13909 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13910 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13911 and ira_reg_class_max_nregs.
13912 (bucket_allocno_compare_func): Check frequency first.
13913 (sort_bucket): Add compare function as a parameter.
13914 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13915 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13916 (push_allocno_to_stack): Rewrite for checking new allocno
13917 colorability.
7a81008b 13918 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
13919 (push_only_colorable): Pass new parameter to sort_bucket.
13920 (push_allocno_to_spill): Remove.
13921 (allocno_spill_priority_compare): Make it inline and rewrite.
13922 (splay_tree_allocate, splay_tree_free): Remove.
13923 (allocno_spill_sort_compare): New function.
13924 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13925 build and use splay tree. Choose first allocno in uncolorable
13926 allocno bucket to spill. Remove setting spill cost.
13927 (all_conflicting_hard_regs): Remove.
13928 (setup_allocno_available_regs_num): Check only profitable hard
13929 regs. Print info about hard regs nodes.
13930 (setup_allocno_left_conflicts_size): Remove.
13931 (put_allocno_into_bucket): Don't call
7a81008b 13932 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
13933 (improve_allocation): New.
13934 (color_allocnos): Call setup_profitable_hard_regs,
13935 form_object_hard_regs_nodes_forest, improve_allocation,
13936 finish_object_hard_regs_nodes_forest. Setup spill cost.
13937 (print_loop_title): Use pressure classes.
13938 (color_allocnso): Ditto.
13939 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13940 and allocnos_for_spilling.
13941 (ira_sort_regnos_for_alter_reg): Don't setup members
13942 {first,next}_coalesced_allocno.
13943 (color): Remove allocating and freeing removed_splay_allocno_vec.
13944 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13945 prohibited_class_mode_regs.
13946
13947 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13948 formatting.
13949 (update_allocno_pressure_excess_length): Use pressure classes.
13950 (inc_register_pressure, dec_register_pressure): Check for pressure
13951 class.
13952 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13953 pressure class. Use ira_reg_class_nregs instead of
13954 ira_reg_class_max_nregs.
13955 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13956 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13957 (single_reg_class): Use ira_reg_class_nregs instead of
13958 ira_reg_class_max_nregs.
13959 (process_bb_node_lives): Use pressure classes.
13960
13961 * ira-emit.c: Remove mentioning cover classes from the file. Use
13962 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13963 (change_loop): Use pressure classes.
13964 (modify_move_list): Call ira_set_allocno_class instead of
13965 ira_set_allocno_cover_class.
13966
13967 * ira-build.c: Remove mentioning cover classes from the file. Use
13968 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13969 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13970 ALLOCNO_UPDATED_CLASS_COST instead of
13971 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13972 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13973 (ira_create_allocno): Remove initialization of
13974 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13975 ALLOCNO_COLORABLE_P.
13976 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13977 Update conflict regs for the objects.
13978 (create_cap_allocno): Remove assert. Don't propagate
13979 ALLOCNO_AVAILABLE_REGS_NUM.
13980 (ira_free_allocno_costs): New function.
13981 (finish_allocno): Change a part of code into call of
13982 ira_free_allocno_costs.
13983 (low_pressure_loop_node_p): Use pressure classes.
13984 (object_range_compare_func): Don't compare classes.
13985 (setup_min_max_conflict_allocno_ids): Ditto.
13986
13987 * loop-invariant.c: Remove mentioning cover classes from the file.
13988 Use ira_pressure_classes and ira_pressure_classes_num instead of
13989 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
13990 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13991 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13992 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
13993 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13994 STACK_REG_COVER_CLASS.
13995 (get_regno_cover_class): Rename to get_regno_pressure_class.
13996 (move_loop_invariants): Initialize and finalize regstat.
13997
13998 * ira.c: Remove mentioning cover classes from the file. Add
13999 comments about coloring without cover classes. Use ALLOCNO_CLASS
14000 instead of ALLOCNO_COVER_CLASS. Fix formatting.
14001 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
14002 setup_class_subset_and_memory_move_costs.
14003 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
14004 (setup_cover_and_important_classes): Rename to
14005 setup_allocno_and_important_classes.
14006 (setup_class_translate_array): New.
14007 (setup_class_translate): Call it for allocno and pressure classes.
14008 (cover_class_order): Rename to allocno_class_order.
14009 (comp_reg_classes_func): Use ira_allocno_class_translate instead
14010 of ira_class_translate.
14011 (reorder_important_classes): Set up ira_important_class_nums.
14012 (setup_reg_class_relations): Set up ira_reg_class_superunion.
14013 (print_class_cover): Rename to print_classes. Add parameter.
14014 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
14015 Print pressure classes too.
14016 (find_reg_class_closure): Rename to find_reg_classes. Don't call
14017 setup_reg_subclasses.
7a81008b 14018 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
14019 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
14020 (setup_prohibited_class_mode_regs): Use
7a81008b 14021 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
14022 (clarify_prohibited_class_mode_regs): New function.
14023 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
14024 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
14025 (ira_init_once): Initialize them.
14026 (free_register_move_costs): Process them.
14027 (ira_init): Move calls of find_reg_classes and
14028 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
14029 Call clarify_prohibited_class_mode_regs.
14030 (ira_no_alloc_reg): Remove.
14031 (too_high_register_pressure_p): Use pressure classes.
14032
14033 * sched-deps.c: Remove mentioning cover classes from the file.
14034 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
14035 ira_pressure_classes and ira_pressure_classes_num instead of
14036 ira_reg_class_cover_size and ira_reg_class_cover.
14037 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
14038 sched_regno_pressure_class instead of sched_regno_cover_class.
14039 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
14040 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14041
14042 * ira.h: Add 2010 to Copyright.
14043 (ira_no_alloc_reg): Remove external.
14044 (struct target_ira): Rename x_ira_hard_regno_cover_class,
14045 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
14046 x_ira_class_translate to x_ira_hard_regno_allocno_class,
14047 x_ira_allocno_classes_num, x_ira_allocno_classes, and
14048 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
14049 x_ira_pressure_classes, x_ira_pressure_class_translate, and
14050 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
14051 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
14052 x_ira_no_alloc_regs.
7a81008b 14053 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
14054 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
14055 ira_allocno_classes_num and ira_allocno_classes.
14056 (ira_class_translate): Rename to ira_allocno_class_translate.
14057 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
14058 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
14059 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
14060 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
14061 (ira_no_alloc_regs): New.
14062
14063 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
14064 classes from the file. Use ALLOCNO_CLASS instead of
14065 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
14066 ALLOCNO_COVER_CLASS_COST.
14067 (regno_cover_class): Rename to regno_aclass.
14068 (record_reg_classes): Use ira_reg_class_subunion instead of
14069 ira_reg_class_union.
14070 (record_address_regs): Check overflow.
14071 (scan_one_insn): Ditto.
7a81008b 14072 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
14073 (print_pseudo_costs): Use REG_N_REFS.
14074 (find_costs_and_classes): Use classes intersected with them on the
14075 1st pass. Check overflow. Use ira_reg_class_subunion instead of
14076 ira_reg_class_union. Use ira_allocno_class_translate and
14077 regno_aclass instead of ira_class_translate and regno_cover_class.
14078 Modify code for finding regno_aclass. Setup preferred classes for
14079 the next pass.
14080 (setup_allocno_cover_class_and_costs): Rename to
14081 setup_allocno_class_and_costs. Use regno_aclass instead of
14082 regno_cover_class. Use ira_set_allocno_class instead of
14083 ira_set_allocno_cover_class.
14084 (init_costs, finish_costs): Use regno_aclass instead of
14085 regno_cover_class.
14086 (ira_costs): Use setup_allocno_class_and_costs instead of
14087 setup_allocno_cover_class_and_costs.
14088 (ira_tune_allocno_costs_and_cover_classes): Rename to
14089 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
14090 by processing objects. Use ira_reg_class_max_nregs instead of
14091 ira_reg_class_nregs.
14092
14093 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
14094
14095 * sched-int.h: Remove mentioning cover classes from the file.
14096 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
14097
14098 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
14099 classes from the file.
14100 (struct reg_pref): Rename coverclass into allocnoclass.
14101 (reg_cover_class): Rename to reg_allocno_class.
14102
7a81008b 14103 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
14104
14105 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
14106
14107 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
14108
14109 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
14110
14111 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
14112
14113 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
14114
14115 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
14116
14117 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
14118
14119 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
14120
14121 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
14122
14123 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
14124 (i386_ira_cover_classes): Ditto.
14125
14126 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
14127
14128 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
14129
14130 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
14131
14132 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
14133
14134 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
14135
14136 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
14137
14138 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
14139 (mips_ira_cover_classes): Ditto.
14140
14141 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
14142
14143 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
14144
14145 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
14146
14147 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
14148
14149 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
14150
14151 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
14152 (IRA_COVER_CLASSES_VSX): Ditto.
14153
14154 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
14155 (rs6000_ira_cover_classes): Ditto.
14156
14157 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
14158
14159 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
14160
14161 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
14162
14163 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
14164
14165 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
14166
14167 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
14168
14169 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
14170
14171 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
14172
14173 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
14174
14175 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
14176
2b80199f
JJ
141772011-03-29 Jakub Jelinek <jakub@redhat.com>
14178
71dae1fe
JJ
14179 PR debug/48253
14180 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
14181 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
14182 dw_fde_unlikely_section_end_label, cold_in_std_section,
14183 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
14184 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
14185 fields.
14186 (output_fde): Use dw_fde_second_{begin,end} if second is
14187 true, otherwise dw_fde_{begin,end}.
14188 (output_call_frame_info): Test dw_fde_second_begin != NULL
14189 instead of dw_fde_switched_sections.
14190 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
14191 fields, initialize new fields. Initialize in_std_section
14192 unconditionally from the first partition.
14193 (dwarf2out_end_epilogue): Don't override dw_fde_end when
14194 dw_fde_second_begin is non-NULL.
14195 (dwarf2out_switch_text_section): Stop initializing removed
14196 dw_fde_struct fields, initialize new fields, initialize
14197 also dw_fde_end here. Set dw_fde_switch_cfi even when
14198 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
14199 (struct var_loc_list_def): Add last_before_switch field.
14200 (arange_table, arange_table_allocated, arange_table_in_use,
14201 ARANGE_TABLE_INCREMENT, add_arange): Removed.
14202 (size_of_aranges): Count !in_std_section and !second_in_std_section
14203 hunks in fdes, instead of looking at arange_table_in_use.
14204 (output_aranges): Add aranges_length argument, don't call
14205 size_of_aranges here. Instead of using aranges_table*
14206 emit ranges for fdes when !in_std_section resp.
14207 !second_in_std_section.
14208 (dw_loc_list): Break ranges crossing section switch.
14209 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 14210 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
14211 (gen_subprogram_die): Don't call add_arange. Use
14212 dw_fde_{begin,end} for first partition and if switched
14213 section dw_fde_second_{begin,end} for the second.
14214 (var_location_switch_text_section_1,
14215 var_location_switch_text_section): New functions.
14216 (dwarf2out_begin_function): Initialize cold_text_section even
14217 when function_section () isn't text_section.
14218 (prune_unused_types): Don't walk arange_table.
14219 (dwarf2out_finish): Don't needlessly test
14220 flag_reorder_blocks_and_partition when testing cold_text_section_used.
14221 If info_section_emitted, call size_of_aranges and if it indicates
14222 non-empty .debug_aranges, call output_aranges with the computed
14223 size. Stop using removed dw_fde_struct fields, use
14224 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
14225 for second.
14226
2b80199f
JJ
14227 PR debug/48203
14228 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
14229 create ENTRY_VALUE if incoming or address of incoming's MEM
14230 is a hard REG.
14231 * dwarf2out.c (mem_loc_descriptor): Don't emit
14232 DW_OP_GNU_entry_value of DW_OP_fbreg.
14233 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
14234 on ENTRY_VALUE is able to find the canonical parameter VALUE.
14235 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
14236 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
14237 ENTRY_VALUE_EXPs.
14238 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
14239 is a REG_P or MEM_P with REG_P address, compute hash directly
14240 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
14241 (preserve_only_constants): Don't clear VALUES forwaring
14242 ENTRY_VALUE to some other VALUE.
14243
8a445129
RS
142442011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
14245
14246 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
14247 instead of GEN_INT.
14248
c82fee88
EB
142492011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14250
14251 * cfgexpand.c (expand_gimple_cond): Always set the source location and
14252 block before expanding the statement.
14253 (expand_gimple_stmt_1): Likewise. Set them here...
14254 (expand_gimple_stmt): ...and not here. Tidy.
14255 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
14256 unknown.
14257
e45425ec
SB
142582011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14259
14260 * Makefile.in: New rule for cprop.o.
14261 * gcse.c: Move constant/copy propagation to cprop.c.
14262 (compute_local_properties): Only handle expression tables.
14263 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
14264 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
14265 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
14266 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 14267 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
14268 compute_cprop_data, find_used_regs, try_replace_reg,
14269 find_avail_set, cprop_jump, constprop_register, cprop_insn,
14270 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
14271 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
14272 find_bypass_set, reg_killed_on_edge, bypass_block,
14273 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
14274 execute_rtl_cprop, pass_rtl_cprop): Move to...
14275 * cprop.c: ...here. New file, constant/copy propagation for RTL
14276 moved from gcse.c to here with minor cleanups in duplicated code.
14277
c09d5426
L
142782011-03-28 H.J. Lu <hongjiu.lu@intel.com>
14279
14280 * config/i386/i386.c (flag_opts): Fix a typo in
14281 -mavx256-split-unaligned-store.
14282
9eaa7740
AS
142832011-03-28 Anatoly Sokolov <aesok@post.ru>
14284
14285 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14286 LIBCALL_VALUE): Remove macros.
14287 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14288 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14289 (h8300_function_value, h8300_libcall_value,
14290 h8300_function_value_regno_p): New functions.
14291
dcec2be2
AS
142922011-03-28 Anatoly Sokolov <aesok@post.ru>
14293
14294 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
14295
520af9ec
JL
142962011-03-28 Jeff Law <law@redhat.com>
14297
14298 * tree-ssa-threadupdate.c (redirect_edges): Call
14299 create_edge_and_update_destination_phis as needed.
14300 (create_edge_and_update_destination_phis): Accept new BB argument.
14301 All callers updated.
14302 (thread_block): Do not update the profile when threading around
14303 intermediate blocks.
14304 (thread_single_edge): Likewise.
14305 (determine_bb_domination_status): If BB is not a successor of the
14306 loop header, return NONDOMINATING.
14307 (register_jump_thread): Note when we register a jump thread around
14308 an intermediate block.
14309 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
14310 (thread_across_edge): Use it.
14311
7450b54f
TG
143122011-03-28 Tristan Gingold <gingold@adacore.com>
14313
14314 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
14315 when for_return is 2.
14316
649beb33
JL
143172011-03-28 Jeff Law <law@redhat.com>
14318
14319 * var-tracking.c (canonicalize_values_mark): Delete unused
14320 lhs assignment.
14321 (canonicalize_values_star, set_variable_part): Likewise.
14322 (clobber_variable_part, delete_variable_part): Likewise.
14323
d5b8da97
SB
143242011-03-28 Steven Bosscher <steven@gcc.gnu.org>
14325
14326 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
14327
322dd859
MJ
143282011-03-28 Martin Jambor <mjambor@suse.cz>
14329
14330 * tree-inline.c (expand_call_inline): Do not check that destination
14331 node is analyzed.
14332 (optimize_inline_calls): Assert that destination node is analyzed.
14333 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
14334 not call tree_lowering_passes.
14335 * cgraph.h (cgraph_analyze_function): Declare.
14336 * cgraphunit.c (cgraph_analyze_function): Make public.
14337
aa53e58b
JM
143382011-03-28 Joseph Myers <joseph@codesourcery.com>
14339
14340 * config/sparc/sparc-opts.h: New.
14341 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
14342 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
14343 (sparc_option_override): Store processor_type enumeration rather
14344 than string in cpu_default. Remove name and enumeration from
14345 cpu_table. Directly default -mcpu then default -mtune from -mcpu
14346 without using sparc_select. Use target_flags_explicit instead of
14347 fpu_option_set.
14348 * config/sparc/sparc.h (enum processor_type): Move to
14349 sparc-opts.h.
14350 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
14351 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
14352 HeaderInclude entry.
14353 (mcpu=, mtune=): Use Var and Enum.
14354 (sparc_processor_type): New Enum and EnumValue entries.
14355
dd350eba
RO
143562011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14357 Iain Sandoe <iains@gcc.gnu.org>
14358
14359 PR target/48245
14360 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
14361
1b29f05e
EB
143622011-03-28 Eric Botcazou <ebotcazou@adacore.com>
14363
14364 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
14365 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
14366 Insert new statements at it in lieu of STMT.
14367 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
14368 * tree-vect-stmts.c (vectorizable_store): Likewise.
14369 (vectorizable_load): Likewise.
14370
506e6808
UB
143712011-03-28 Uros Bizjak <ubizjak@gmail.com>
14372
14373 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
14374 (divtf3): Ditto.
14375 (multf3): Ditto.
14376 (subtf3): Ditto.
14377
2e939ee9
L
143782011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14379
14380 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
14381 unaligned 256bit load/store.
14382 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
14383 (*avx_movdqu<avxmodesuffix>): Likewise.
14384
5e85ab88
JDA
143852011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14386
14387 PR target/48288
14388 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
14389 * config/pa/pa.md (iordi3): Use new predicate in expander.
14390 (iorsi3): Likewise.
14391
47be3d6d
AS
143922011-03-27 Anatoly Sokolov <aesok@post.ru>
14393
506e6808 14394 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 14395 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
14396 * config/mips/mips-protos.h (mips_function_value): Remove.
14397 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
14398 (mips_function_value_1): ... this. Make static. Handle receiving
14399 the function type in 'fn_decl_or_type' argument.
14400 (mips_function_value, mips_libcall_value,
14401 mips_function_value_regno_p): New function.
14402 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14403 TARGET_FUNCTION_VALUE_REGNO_P): Define.
14404
d253656a
L
144052011-03-27 H.J. Lu <hongjiu.lu@intel.com>
14406
14407 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
14408 and -mavx256-split-unaligned-store.
14409 (ix86_option_override_internal): Split 32-byte AVX unaligned
14410 load/store by default.
14411 (ix86_avx256_split_vector_move_misalign): New.
14412 (ix86_expand_vector_move_misalign): Use it.
14413
14414 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
14415 -mavx256-split-unaligned-store.
14416
14417 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
14418 256bit load/store. Generate unaligned store on misaligned memory
14419 operand.
14420 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
14421 256bit load/store.
14422 (*avx_movdqu<avxmodesuffix>): Likewise.
14423
14424 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
14425 -mavx256-split-unaligned-store.
14426
1ea9206a
RS
144272011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14428
14429 PR target/38598
14430 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
14431 Update commentary.
14432
b99ce2a8
RS
144332011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
14434
14435 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
14436 opno arguments with an expand_operand. Use create_input_operand.
14437 (mips_prepare_builtin_target): Delete.
14438 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
14439 functions.
14440 (mips_expand_builtin_direct): Use create_output_operand and
14441 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
14442 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
14443 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
14444
69d52339
IR
144452011-03-27 Ira Rosen <ira.rosen@linaro.org>
14446
14447 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14448 function.
14449 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14450
ba5e9aca
EB
144512011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14452
14453 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14454 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
14455 basic blocks and call commit_edge_insertions directly.
14456 (fixup_abnormal_edges): Move from here to...
14457 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
14458 on the edges and return whether some have actually been inserted.
14459 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14460 compensation code.
14461
5d369d58
AB
144622011-03-26 Andrey Belevantsev <abel@ispras.ru>
14463
14464 PR rtl-optimization/48144
14465 * sel-sched-ir.c (merge_history_vect): Factor out from ...
14466 (merge_expr_data): ... here.
14467 (av_set_intersect): Rename to av_set_code_motion_filter.
14468 Update all callers. Call merge_history_vect when an expression
14469 is found in both sets.
14470 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14471
f082c000
AM
144722011-03-26 Alan Modra <amodra@gmail.com>
14473
14474 * config/rs6000/predicates.md (word_offset_memref_op): Handle
14475 cmodel medium addresses.
14476 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14477 64-bit gpr loads and stores.
14478 (rs6000_secondary_reload_ppc64): New function.
14479 * config/rs6000/rs6000-protos.h: Declare it.
14480 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14481
8ac5e12e
AM
144822011-03-26 Alan Modra <amodra@gmail.com>
14483
14484 PR target/47487
14485 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14486 GNU Go in traceback table.
14487
c2654ded
RH
144882011-03-25 Richard Henderson <rth@redhat.com>
14489
14490 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14491 if there are exactly 6 operands.
14492 (set_storage_via_setmem): Similarly.
14493
ba78087b
KT
144942011-03-25 Kai Tietz <ktietz@redhat.com>
14495
14496 * collect2.c (write_c_file_stat): Handle backslash
14497 as right-hand directory separator.
14498 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14499 checking just for slash.
14500 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14501 instead of checking for trailing slash.
14502 * gcc.c (record_temp_file): Use filename_cmp instead
14503 of strcmp.
14504 (do_spec_1): Likewise.
14505 (replace_outfile_spec_function): Likewise.
14506 (is_directory): Use filename_ncmp instead of strncmp.
14507 (print_multilib_info): Likewise.
14508 * gcov.c (find_source): Use filename_cmp instead
14509 instead of strcmp.
14510 (make_gcov_file_name): Fix order of slash/backslash
14511 checks.
14512 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14513 (add_standard_paths): Likewise.
14514 * mips-tfile.c (saber_stop): Handle backslash.
14515 * prefix.c (update_path): Use filename_ncmp instead of
14516 strncmp.
14517 * profile.c (output_location): Use filename_cmp instead
14518 of strcmp.
14519 * read-md.c (handle_toplevel_file): Handle backslash.
14520 * tlink.c (frob_extension): Likewise.
14521 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14522 strcmp.
14523 * tree-dump.c (dequeue_and_dump): Handle backslash.
14524 * tree.c (get_file_function_name): Likewise.
14525 * gengtype.c (read_input_list): Likewise.
14526 (get_file_realbasename): Likewise.
14527 (get_output_file_with_visibility): Use filename_cmp
14528 instead of strcmp.
14529
75f6ec9a
RS
145302011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14531
14532 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14533 case to VFPv1.
14534
6c4e2997
NF
145352011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14536
14537 * fold-const.c (expr_location_or): New function.
14538 (fold_truth_not_expr): Call it.
14539
0edf1bb2
JL
145402011-03-25 Jeff Law <law@redhat.com>
14541
14542 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14543 va_end.
14544 * c-family/c-common.c (def_fn_type): Likewise.
14545 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14546 * emit-rtl.c (gen_rtvec): Likewise.
14547 * lto/lto-lang.c (def_fn_type): Likewise.
14548
fdc2de95
RG
145492011-03-25 Richard Guenther <rguenther@suse.de>
14550
14551 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14552 also generate copies.
14553 (fini_copy_prop): Handle constant values properly.
14554
21385db0
JJ
145552011-03-25 Jakub Jelinek <jakub@redhat.com>
14556
14557 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14558 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14559 (hash_loc_operands, compare_loc_operands): Handle
14560 DW_OP_GNU_entry_value.
14561
6510e8bb
KT
145622011-03-25 Kai Tietz <ktietz@redhat.com>
14563
14564 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14565 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14566 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14567 comment and use macro TARGET_64BIT_MS_ABI instead.
14568 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14569 and change default behavior for 32-bit MS_ABI.
14570 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14571 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14572 32-bit, too.
14573 (ix86_cfun_abi): Likewise.
14574 (ix86_maybe_switch_abi): Adjust comment.
14575 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14576 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14577 instead of checking for SYSV_ABI.
14578 (ix86_nsaved_sseregs): Likewise.
14579 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14580 to 16 bytes.
14581 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14582 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14583 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14584 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14585 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14586
34019e28
RG
145872011-03-25 Richard Guenther <rguenther@suse.de>
14588
14589 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14590 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14591 (verify_gimple): Remove.
14592 * tree-cfg.c (verify_gimple_call): Merge verification
14593 from verify_stmts.
14594 (verify_gimple_phi): Merge verification from verify_stmts.
14595 (verify_gimple_label): New function.
14596 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14597 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14598 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14599 (verify_stmts): Rename to verify_gimple_in_cfg.
14600 (verify_gimple_in_cfg): New function.
14601 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14602 * tree-ssa.c (verify_ssa): Likewise.
14603 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14604
605896f5
RG
146052011-03-25 Richard Guenther <rguenther@suse.de>
14606
14607 * passes.c (init_optimization_passes): Add FRE pass after
14608 early SRA.
14609
7baa7c13
BS
146102011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14611 Andrew Stubbs <ams@codesourcery.com>
14612
14613 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14614 for Cortex-A8.
14615 (arm_movdi_vfp_cortexa8): New pattern.
14616 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14617 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14618 instructions when tuning for Cortex-A8. Set attribute "arch".
14619 * config/arm/arm.md: Move include arm-tune.md up a bit.
14620 (define_attr "arch"): Add "onlya8" and "nota8" values.
14621 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14622
45dbce1b
NF
146232011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14624
4ff08abf 14625 PR bootstrap/48282
45dbce1b
NF
14626 Revert:
14627 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14628
14629 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14630 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14631 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14632 * passes.c (init_optimization_passes): Move
14633 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14634
ac9a30ae
KT
146352011-03-25 Kai Tietz <ktietz@redhat.com>
14636
14637 * c-typeck.c (comptypes_internal): Replace target
14638 hook call of comp_type_attributes by version in tree.c file.
14639 * gimple.c (gimple_types_compatible_p_1): Likewise.
14640 * tree-ssa.c (useless_type_conversion_p): Likewise.
14641 * tree.c (build_type_attribute_qual_variant): Likewise.
14642 (attribute_value_equal): New static helper function.
14643 (comp_type_attributes): New function.
14644 (merge_attributes): Use attribute_value_equal for comparison.
14645 (attribute_list_contained): Likewise.
14646 * tree.h (comp_type_attributes): New prototype.
14647
afdac116
RG
146482011-03-25 Richard Guenther <rguenther@suse.de>
14649
14650 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14651 of complex types at -O0.
14652 (verify_gimple_assign_binary): Likewise.
14653 (verify_gimple_assign_ternary): Likewise.
14654
ec6165f8
MW
146552011-03-24 Mark Wielaard <mjw@redhat.com>
14656
14657 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14658 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14659
2a5ac39a
MW
146602011-03-24 Mark Wielaard <mjw@redhat.com>
14661
14662 PR debug/48041
14663 * dwarf2out.c (output_abbrev_section): Only write table when
14664 abbrev_die_table_in_use > 1.
14665
e533b2a4
RH
146662011-02-24 Richard Henderson <rth@redhat.com>
14667
14668 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14669 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14670 (alpha_expand_unaligned_load_words): Use extql.
14671 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14672 (emit_insxl): Handle all modes for consistency.
14673
0b2a7367
RH
146742011-02-24 Richard Henderson <rth@redhat.com>
14675
14676 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14677 (alpha_expand_unaligned_load): Likewise.
14678 (alpha_expand_unaligned_store): Likewise.
14679 (alpha_expand_unaligned_load_words): Likewise.
14680 (alpha_expand_unaligned_store_words): Likewise.
14681 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14682 (alpha_split_lock_test_and_set_12): Likewise.
14683 (print_operand, alpha_fold_builtin_extxx): Likewise.
14684 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14685 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14686 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14687 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14688 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14689 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14690 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14691 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14692 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14693 (extwl, extll, extql): Similarly.
14694 (inswh, inslh, insqh): Similarly.
14695 (mskbl, mskwl, mskll, mskql): Similarly.
14696 (mskwh, msklh, mskqh): Similarly.
14697
315b2bef
RH
146982011-02-24 Richard Henderson <rth@redhat.com>
14699
14700 * config/alpha/alpha.md (attribute isa): Add er, ner.
14701 (attribute enabled): Handle them.
14702 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14703
67102517
RH
147042011-02-24 Richard Henderson <rth@redhat.com>
14705
14706 * config/alpha/alpha.md (attribute isa): Add vms.
14707 (attribute enabled): Handle it.
14708 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14709 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14710 (*movtf): Rename from *movtf_internal for consistency.
14711 (*movsi): Merge with *movsi_nt_vms.
14712 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14713 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14714 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14715 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14716
6aba5cb4
RH
147172011-02-24 Richard Henderson <rth@redhat.com>
14718
14719 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14720 (extendqisi2, extendhisi2): Likewise.
14721 (extendqidi2): Simplify BWX/non-BWX expansions.
14722 (extendhidi2): Similarly.
14723
bdfb351b
RH
147242011-02-24 Richard Henderson <rth@redhat.com>
14725
14726 * config/alpha/alpha.md (attribute isa): New.
14727 (attribute enabled): New.
14728 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14729 (zero_extendqisi2, zero_extendqidi2): Similarly.
14730 (zero_extendhisi2, zero_extendhidi2): Similarly.
14731 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14732
6abe71eb
RH
147332011-02-24 Richard Henderson <rth@redhat.com>
14734
14735 * config/alpha/predicates.md (input_operand): Revert last change;
14736 update comment to mention 32-bit VMS rather than Windows.
14737
7114321e
NF
147382011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14739
14740 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14741 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14742 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14743 * passes.c (init_optimization_passes): Move
14744 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14745
c8679567
EB
147462011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14747
14748 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14749
27173058
UB
147502011-03-24 Uros Bizjak <ubizjak@gmail.com>
14751
14752 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14753 correctly.
14754
6f0c9f06
JJ
147552011-03-24 Jakub Jelinek <jakub@redhat.com>
14756
14757 PR debug/48204
14758 * simplify-rtx.c (simplify_const_unary_operation): Call
14759 real_convert when changing mode class with FLOAT_EXTEND.
14760
662666e5
NC
147612011-03-24 Nick Clifton <nickc@redhat.com>
14762
14763 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14764 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14765 * config/rx/rx.c (rx_option_override): Set align_jumps,
14766 align_loops and align_labels if not set by the user.
14767 (rx_align_for_label): New function.
14768 (rx_max_skip_for_label): New function.
14769 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14770 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14771 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14772 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14773 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14774
2b99b2b8
RS
147752011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14776
14777 PR rtl-optimization/48263
14778 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14779 and original commutative_p handling. Use maybe_gen_insn.
14780
ccecd6ea
AK
147812011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14782
14783 * reload.c (find_reloads_subreg_address): Add address_reloaded
14784 parameter and return true there if the full address has been
14785 reloaded.
14786 (find_reloads_toplev): Pass address_reloaded flag.
14787 (find_reloads_address_1): Don't use address_reloaded parameter.
14788
67295642
JL
147892011-03-24 Jeff Law <law@redhat.com>
14790
14791 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14792 unused variable "ann".
14793 (remove_unused_locals): Likewise.
14794
14795 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14796 statement.
14797
14798 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14799 after it is freed.
14800
212aa74f
AK
148012011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14802
14803 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14804 for invalid symbolic addresses.
14805 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14806 larl operands.
14807
fe784e0d
EB
148082011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14809
14810 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14811 the argument in calls to fold_truth_not_expr.
14812
63ee8641
NF
148132011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14814
14815 * tree.c (record_node_allocation_statistics): New function.
14816 (make_node_stat, copy_node_stat, build_string): Call it.
14817 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14818 (build1_stat, build_omp_clause): Likewise.
14819
61be2a1c
RS
148202011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14821
14822 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14823 last commit.
14824
a881aaa7
RG
148252011-03-24 Richard Guenther <rguenther@suse.de>
14826
14827 PR tree-optimization/48271
14828 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14829 blocks that still exist.
14830
dbaa912c
RG
148312011-03-24 Richard Guenther <rguenther@suse.de>
14832
14833 PR tree-optimization/48270
14834 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14835 not free datarefs before ddrs.
14836
1d60cc55
EB
148372011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14838
14839 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14840 from the address built for a reference with variable offset.
14841
c78dd519
UB
148422011-03-24 Uros Bizjak <ubizjak@gmail.com>
14843
14844 PR target/48237
14845 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14846 alternatives that can be handled with movq or movabsq insn.
14847 (*movdf_internal): Disable for !TARGET_64BIT.
14848 (*movdf_internal_nointeger): Ditto.
14849 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14850
b25b9e8f
NF
148512011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14852
14853 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14854 (FUNCTION_ARG_ADVANCE): Likewise.
14855 * tm.texi.in: Change references to them to hook references.
14856 * tm.texi: Regenerate.
c78dd519 14857 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
14858 (default_function_incoming_arg): Likewise.
14859 (default_function_arg_advance): Likewise.
c78dd519 14860 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
14861 (function_arg_advance): Likewise.
14862 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14863
190b2187
RG
148642011-03-24 Richard Guenther <rguenther@suse.de>
14865
14866 PR middle-end/48269
14867 * tree-object-size.c (addr_object_size): Do not double-account
14868 for MEM_REF offsets.
14869
a183b5c7
DN
148702011-03-24 Diego Novillo <dnovillo@google.com>
14871
14872 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 14873 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
14874 (lto_input_data_block): Move from lto-opts.c. Make extern.
14875 Update all users.
14876 (lto_input_string): Rename from input_string. Make extern.
14877 Update all users.
14878 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14879 output_string_with_length.
14880 Output 0 to indicate a non-NULL string. Update all callers to
14881 not emit 0.
14882 (lto_output_string): Rename from output_string. Make extern.
14883 Update all users.
14884 (lto_output_decl_state_streams): Make extern.
14885 (lto_output_decl_state_refs): Make extern.
14886 * lto-streamer.h (lto_input_string): Declare.
14887 (lto_input_data_block): Declare.
14888 (lto_output_string): Declare.
14889 (lto_output_string_with_length): Declare.
14890 (lto_output_decl_state_streams): Declare.
14891 (lto_output_decl_state_refs): Declare.
14892
cfef45c8
RG
148932011-03-24 Richard Guenther <rguenther@suse.de>
14894
14895 PR tree-optimization/46562
14896 * tree.c (build_invariant_address): New function.
14897 * tree.h (build_invariant_address): Declare.
14898 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14899 a renamed function moved ...
14900 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14901 Take valueization callback parameter.
14902 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14903 * gimple-fold.h: New file.
14904 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14905 (ccp_fold, fold_const_aggregate_ref,
14906 fold_ctor_reference, fold_nonarray_ctor_reference,
14907 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14908 get_base_constructor): Move ...
14909 * gimple-fold.c: ... here.
14910 (gimple_fold_stmt_to_constant_1): New function
14911 split out from ccp_fold. Take a valueization callback parameter.
14912 Valueize all operands.
14913 (gimple_fold_stmt_to_constant): New wrapper function.
14914 (fold_const_aggregate_ref_1): New function split out from
14915 fold_const_aggregate_ref. Take a valueization callback parameter.
14916 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14917 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14918 invariant POINTER_PLUS_EXPRs to invariant form.
14919 (vn_valueize): New function.
14920 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14921 * tree-vrp.c (vrp_valueize): New function.
14922 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14923 to fold statements to constants.
14924 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14925 function declarations.
14926 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14927 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14928
5e0a7e40
RS
149292011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14930
14931 * config/h8300/predicates.md (jump_address_operand): Fix register
14932 mode check.
14933
bfe068c3
IR
149342011-03-24 Ira Rosen <ira.rosen@linaro.org>
14935
14936 * doc/invoke.texi (max-stores-to-sink): Document.
14937 * params.h (MAX_STORES_TO_SINK): Define.
14938 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14939 if either vectorization or if-conversion is disabled.
14940 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14941 tree-vect-data-refs.c vect_equal_offsets.
14942 (dr_equal_offsets_p): New function.
14943 (find_data_references_in_bb): Remove static.
14944 * tree-data-ref.h (find_data_references_in_bb): Declare.
14945 (dr_equal_offsets_p): Likewise.
14946 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14947 (vect_drs_dependent_in_basic_block): Update calls to
14948 vect_equal_offsets.
14949 (vect_check_interleaving): Likewise.
14950 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14951 (cond_if_else_store_replacement): Rename to...
14952 (cond_if_else_store_replacement_1): ... this. Change arguments and
14953 documentation.
14954 (cond_if_else_store_replacement): New function.
14955 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14956 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14957
4908b0bf
CLT
149582011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14959
14960 PR target/46934
14961 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14962 to subtract lower bound instead of GEN_INT().
14963
2be478a2
JW
149642011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14965
14966 PR other/48179
14967 PR other/48221
14968 PR other/48234
14969 * doc/extend.texi (Alignment): Move section to match order in TOC.
14970 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14971 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14972
0c617be4
JL
149732011-03-23 Jeff Law <law@redhat.com>
14974
14975 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14976 before removing the edge.
14977
14978 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14979 it may have been freed by redirect_branch_edge or
14980 redirect_edge_succ_nodup.
14981
58da96fe
RG
149822011-03-23 Richard Guenther <rguenther@suse.de>
14983
c78dd519 14984 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
14985 (check_va_list_escapes): Likewise.
14986 (check_all_va_list_escapes): Likewise.
14987
b8beb4d1
RG
149882011-03-23 Richard Guenther <rguenther@suse.de>
14989
14990 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14991 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14992 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14993 (alias.o): Likewise.
14994 (ipa-type-escape.o): Remove.
14995 (ipa-struct-reorg.o): Likewise.
14996 (GTFILES): Remove ipa-struct-reorg.c.
14997 * alias.c: Do not include ipa-type-escape.h.
14998 * tree-ssa-alias.c: Likewise.
14999 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
15000 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
15001 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
15002 and ipa-type-escape passes.
15003 * tree-pass.h (pass_ipa_type_escape): Remove.
15004 (pass_ipa_struct_reorg): Likewise.
15005 * ipa-struct-reorg.h: Remove.
15006 * ipa-struct-reorg.c: Likewise.
15007 * ipa-type-escape.h: Likewise.
15008 * ipa-type-escape.c: Likewise.
15009 * doc/invoke.texi (-fipa-struct-reorg): Remove.
15010 (--param struct-reorg-cold-struct-ratio): Likewise.
15011 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
15012 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
15013 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
15014
f137aa63
AK
150152011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15016
15017 * config/s390/2084.md: Enable all insn reservations also for z9_ec
15018 cpu attribute value.
15019 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
15020 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
15021 * config/s390/s390.c (processor_flags_table): New constant array.
15022 (s390_handle_arch_option): Remove.
15023 (s390_handle_option): Remove s390_handle_arch_option invocations
15024 and OPT_mwarn_framesize_ handling.
15025 (s390_option_override): Remove s390_handle_arch_option invocation.
15026 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
15027 warnings.
15028 * config/s390/s390.md (cpu attribute): Add z9_ec value.
15029 * config/s390/s390.opt (s390_tune, s390_arch)
15030 (march=): Replace s390_arch_option enum and values with
15031 processor_type. Set variable name to s390_arch. Set
15032 initialization value.
15033 (mtune=): Replace s390_arch_option with processor_type. Set
15034 variable name to s390_tune. Set initialization value.
15035
bf90208f
JB
150362011-03-23 Julian Brown <julian@codesourcery.com>
15037
15038 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
15039 accesses which are not naturally aligned.
15040
3460fdf3
RS
150412011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
15042
15043 PR target/47553
15044 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
15045
a5c7d693
RS
150462011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
15047
15048 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
15049 parameter from "int" to "enum insn_code".
15050 (expand_operand_type): New enum.
15051 (expand_operand): New structure.
15052 (create_expand_operand): New function.
15053 (create_fixed_operand, create_output_operand): Likewise
15054 (create_input_operand, create_convert_operand_to): Likewise.
15055 (create_convert_operand_from, create_address_operand): Likewise.
15056 (create_integer_operand): Likewise.
15057 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
15058 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
15059 (expand_insn, expand_jump_insn): Likewise.
15060 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
15061 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
15062 (expand_movstr, expand_builtin___clear_cache): Likewise.
15063 (expand_builtin_lock_release): Likewise.
15064 * explow.c (allocate_dynamic_stack_space): Likewise.
15065 (probe_stack_range): Likewise. Allow check_stack to FAIL,
15066 and use the default handling in that case.
15067 * expmed.c (check_predicate_volatile_ok): Delete.
15068 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
15069 (emit_cstore): Likewise.
15070 * expr.c (emit_block_move_via_movmem): Likewise.
15071 (set_storage_via_setmem, expand_assignment): Likewise.
15072 (emit_storent_insn, try_casesi): Likewise.
15073 (emit_single_push_insn): Likewise. Allow the expansion to fail.
15074 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
15075 (expand_vec_shift_expr, expand_binop_directly): Likewise.
15076 (expand_twoval_unop, expand_twoval_binop): Likewise.
15077 (expand_unop_direct, emit_indirect_jump): Likewise.
15078 (emit_conditional_move, vector_compare_rtx): Likewise.
15079 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
15080 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
15081 (expand_sync_lock_test_and_set): Likewise.
15082 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
15083 (emit_unop_insn): Likewise.
15084 (expand_copysign_absneg): Change icode to an insn_code.
15085 (create_convert_operand_from_type): New function.
15086 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
15087 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
15088 (expand_insn, expand_jump_insn): Likewise.
15089 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
15090 than const_int_operand for operand 2.
15091
78fadbab
AK
150922011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15093
15094 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
15095 if possible.
15096
5f02387d
NF
150972011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15098
15099 * emit-rtl.c (emit_pattern_before_noloc): New function.
15100 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
15101 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
15102 (emit_pattern_after_noloc): New function.
15103 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
15104 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
15105
fdf3e18a
NF
151062011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15107
15108 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
15109 (__ffsDI2): Likewise.
15110
42d085c1
RH
151112011-03-22 Richard Henderson <rth@redhat.com>
15112
15113 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
15114 of !TARGET_ABI_OPEN_VMS.
15115 (alpha_trampoline_init, alpha_start_function): Likewise.
15116 (alpha_expand_epilogue, alpha_file_start): Likewise.
15117 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
15118 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
15119 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
15120 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
15121 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
15122
cabbe12a
JM
151232011-03-22 Joseph Myers <joseph@codesourcery.com>
15124
15125 * config/s390/s390-opts.h: New.
15126 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
15127 s390_arch_flags, s390_warn_framesize, s390_stack_size,
15128 s390_stack_guard): Remove.
15129 (s390_handle_arch_option): Return void. Take enum
15130 s390_arch_option value instead of string and searching array.
15131 (s390_handle_option): Don't assert that global structures are in
15132 use. Access variables via opts pointer. Use error_at. Don't use
15133 sscanf for -mstack-guard= or -mstack-size=. Update call to
15134 s390_handle_arch_option.
15135 (s390_option_override): Update call to s390_handle_arch_option.
15136 (s390_emit_prologue): Use %d format for s390_stack_size in
15137 diagnostic. Use %wd for HOST_WIDE_INT.
15138 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
15139 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
15140 * config/s390/s390.opt (config/s390/s390-opts.h): New
15141 HeaderInclude entry.
15142 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
15143 s390_arch_flags, s390_warn_framesize): New Variable entries.
15144 (s390_arch_option): New Enum and EnumValue entries.
15145 (march=): Use Enum instead of Var.
15146 (mstack-guard=, mstack-size=): Use UInteger and Var.
15147 (mtune=): Use Enum.
15148
05b12036
JM
151492011-03-22 Joseph Myers <joseph@codesourcery.com>
15150
15151 * config/score/score.c (score_handle_option): Don't assert that
15152 global structures are in use. Access target_flags via opts
15153 pointer. Use value of -march= option to determine target_flags
15154 settings.
15155 * config/score/score.opt (march=): Use Enum.
15156 (score_arch): New Enum and EnumValue entries.
15157
dd51e35a
JM
151582011-03-22 Joseph Myers <joseph@codesourcery.com>
15159
15160 * config/mep/mep.c (option_mtiny_specified): Remove.
15161 (mep_option_override): Move register handling for -mivc2 from
15162 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
15163 instead of option_mtiny_specified.
15164 (mep_handle_option): Access target_flags via opts pointer. Don't
15165 assert that global structures are in use. Defer part of -mivc2
15166 handling and move it to mep_option_override.
15167 * config/mep/mep.opt (IVC2): New Mask entry.
15168 (mivc2): Use Var and Defer instead of Mask.
15169
4a8d3d91
JM
151702011-03-22 Joseph Myers <joseph@codesourcery.com>
15171
15172 * config/v850/v850-opts.h: New.
15173 * config/v850/v850.c (small_memory): Replace with
15174 small_memory_physical_max array. Make that array static const.
15175 (v850_handle_memory_option): Take integer value of argument. Take
15176 gcc_options pointer, option text and location. Return void.
15177 Update for changes to small memory structures.
15178 (v850_handle_option): Access target_flags via opts pointer. Don't
15179 assert that global structures are in use. Update calls to
15180 v850_handle_memory_option.
c78dd519
UB
15181 (v850_encode_data_area): Update references to small memory settings.
15182 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
15183 (enum small_memory_type): Move to v850-opts.h.
15184 * config/v850/v850.opt (config/v850/v850-opts.h): New
15185 HeaderInclude entry.
15186 (small_memory_max): New Variable entry.
15187 (msda): Replace by pair of options msda= and msda-. Use UInteger.
15188 (mtda, mzda): Likewise.
15189
117fdbfa
JM
151902011-03-22 Joseph Myers <joseph@codesourcery.com>
15191
15192 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
15193 pointer. Don't assert that global structures are in use.
15194
d715091c
JM
151952011-03-22 Joseph Myers <joseph@codesourcery.com>
15196
15197 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
15198 via opts pointer. Don't assert that global structures are in use.
15199
1bb721dc
JM
152002011-03-22 Joseph Myers <joseph@codesourcery.com>
15201
15202 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
15203 (munix=93): Use Var.
15204 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
15205 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
15206 * config/pa/pa-opts.h: New.
15207 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
15208 (pa_handle_option): Don't assert that global structures are in
15209 use. Access target_flags via opts pointer. Don't handle
15210 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
15211 OPT_munix_98 here.
15212 (pa_option_override): Handle deferred OPT_mfixed_range_.
15213
cd8d8754
JM
152142011-03-22 Joseph Myers <joseph@codesourcery.com>
15215
15216 * config/mn10300/mn10300-opts.h: New.
15217 * config/mn10300/mn10300.c (mn10300_processor,
15218 mn10300_tune_string): Remove.
15219 (mn10300_handle_option): Don't assert that global structures are
15220 in use. Access mn10300_processor via opts pointer. Don't handle
15221 OPT_mtune_ here.
15222 * config/mn10300/mn10300.h (enum processor_type): Move to
15223 mn10300-opts.h.
15224 (mn10300_processor): Remove.
15225 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
15226 HeaderInclude entry.
15227 (mn10300_processor): New Variable entry.
15228 (mtune=): Use Var.
15229
24e6e6b1
JM
152302011-03-22 Joseph Myers <joseph@codesourcery.com>
15231
15232 * config/microblaze/microblaze.c: Don't include opts.h.
15233 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
15234 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
15235 (mno-clearbss): Use Var and Warn.
15236
8a784afb
JM
152372011-03-22 Joseph Myers <joseph@codesourcery.com>
15238
15239 * config/m32r/m32r-opts.h: New.
15240 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
15241 (m32r_handle_option): Don't assert that global structures are in
15242 use. Access target_flags and m32r_cache_flush_func via opts
15243 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
15244 OPT_mno_flush_trap here.
15245 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
15246 include of m32r-opts.h.
15247 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
15248 HeaderInclude entry.
15249 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
15250 (mmodel=): Use Enum and Var.
15251 (m32r_model): New Enum and EnumValue entries.
15252 (mno-flush-trap): Use Var.
15253 (msdata=): Use Enum and Var.
15254 (m32r_sdata): New Enum and EnumValue entries.
15255
bbfc9a8c
JM
152562011-03-22 Joseph Myers <joseph@codesourcery.com>
15257
15258 * config/m32c/m32c.c: Don't include opts.h.
15259 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
15260 m32c_handle_option): Remove.
15261 (m32c_option_override): Check global_options_set.x_target_memregs
15262 instead of target_memregs_set.
15263 * config/m32c/m32c.h (target_memregs): Remove.
15264 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
15265 variable.
15266
e24b8335
JM
152672011-03-22 Joseph Myers <joseph@codesourcery.com>
15268
15269 * config/iq2000/iq2000-opts.h: New.
15270 * config/iq2000/iq2000.c: Don't include opts.h.
15271 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 15272 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
15273 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
15274 HeaderInclude entry.
15275 (iq2000_tune): New Variable entry.
15276 (march=): Add comment. Use Enum.
15277 (iq2000_arch): New Enum and EnumValue entries.
15278 (mcpu=): Use Enum and Var.
15279 (iq2000_tune): New Enum and EnumValue entries.
15280
e6cc0c98
JM
152812011-03-22 Joseph Myers <joseph@codesourcery.com>
15282
15283 * config/ia64/ia64-opts.h: New.
15284 * config/ia64/ia64.c (ia64_tune): Remove.
15285 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
15286 here. Use error_at.
15287 (ia64_option_override): Handle deferred OPT_mfixed_range_.
15288 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
15289 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
15290 HeaderInclude entry.
15291 (ia64_tune): New Variable entry.
15292 (mfixed-range=): Use Defer and Var.
15293 (mtune=): Use Enum and Var.
15294 (ia64_tune): New Enum and EnumValue entries.
15295
db25893c
JM
152962011-03-22 Joseph Myers <joseph@codesourcery.com>
15297
15298 * config/frv/frv-opts.h: New.
15299 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
15300 frv-opts.h.
15301 (frv_cpu_type): Remove.
15302 * config/frv/frv.c: Don't include opts.h.
15303 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 15304 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
15305 (frv_cpu_type): New Variable entry.
15306 (frv_cpu): New Enum and EnumValue entries.
15307
6c223f5d
JM
153082011-03-22 Joseph Myers <joseph@codesourcery.com>
15309
15310 * config/cris/cris.c (cris_handle_option): Access target_flags via
15311 opts pointer. Don't assert that global structures are in use.
15312 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
15313 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
15314
bbd399cf
JM
153152011-03-22 Joseph Myers <joseph@codesourcery.com>
15316
15317 * config/bfin/bfin-opts.h: New.
15318 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
15319 bfin_si_revision, bfin_workarounds): Remove.
15320 (bfin_cpus): Make static const.
15321 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
15322 not bfin_lib_id_given.
15323 (bfin_handle_option): Don't set bfin_lib_id_given. Access
15324 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 15325 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
15326 * config/bfin/bfin.h: Include bfin-opts.h.
15327 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
15328 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
15329 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
15330 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
15331 entries.
15332
5e1b4d5a
JM
153332011-03-22 Joseph Myers <joseph@codesourcery.com>
15334
15335 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
15336 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
15337 or -msoft-float here.
15338 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
15339 -msoft-float and -mhard-float.
c78dd519 15340 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
15341 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15342 msoft-float.
15343 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
15344 -msoft-float.
15345 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
15346 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
15347 not mhard-float.
15348 (LIBGCC_SPEC): Don't handle -msoft-float.
15349 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
15350 -mhard-float.
15351 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
15352 msoft-float.
15353 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
15354 -mfloat-abi=*, not -msoft-float and -mhard-float.
15355 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
15356 -msoft-float.
15357 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
15358 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
15359 mhard-float and msoft-float.
15360 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
15361 mfloat-abi=soft in comments, not mhard-float and msoft-float.
15362 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
15363 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
15364 mhard-float.
15365 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
15366 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
15367 msoft-float.
15368 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
15369 not mhard-float.
15370 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
15371 not msoft-float.
15372
800d1de1
RH
153732011-03-22 Richard Henderson <rth@redhat.com>
15374
15375 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
15376 TARGET_ABI_WINDOWS_NT.
15377 (alpha_output_function_end_prologue): Likewise.
15378 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
15379 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15380 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
15381 (trap, *movsi_nt_vms): Likewise.
15382 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
15383 (*tablejump_osf_nt_internal): Remove.
15384 * config/alpha/predicates.md (input_operand): Only test Pmode.
15385
c59ddd2b
JM
153862011-03-22 Joseph Myers <joseph@codesourcery.com>
15387
15388 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
15389 via opts pointer. Use error_at. Don't assert that global
15390 structures are in use.
15391
1333f97f
JM
153922011-03-22 Joseph Myers <joseph@codesourcery.com>
15393
15394 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
15395 (ix86_handle_option): Access ix86_isa_flags and
15396 ix86_isa_flags_explicit via opts pointer. Don't assert that
15397 global structures are in use.
15398 (ix86_function_specific_save, ix86_function_specific_restore):
15399 Update ix86_isa_flags_explicit field name.
c78dd519 15400 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
15401 (ix86_isa_flags_explicit): Rename TargetSave entry to
15402 x_ix86_isa_flags_explicit.
15403
75db85d8
RH
154042011-03-22 Richard Henderson <rth@redhat.com>
15405
15406 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
15407 (alpha_option_override, direct_return): Likewise.
15408 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
15409 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
15410 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
15411 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
15412 (alpha_expand_epilogue, alpha_end_function): Likewise.
15413 (alpha_init_libfuncs): Likewise.
15414 (struct machine_function): Remove unicosmk members.
15415 (print_operand) ['t']: Remove.
15416 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
15417 unicosmk_output_module_name, unicosmk_output_common,
15418 current_section_align, unicosmk_output_text_section_asm_op,
15419 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
15420 unicosmk_section_type_flags, unicosmk_unique_section,
15421 unicosmk_asm_named_section, unicosmk_insert_attributes,
15422 unicosmk_output_align, unicosmk_defer_case_vector,
15423 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
15424 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
15425 unicosmk_output_ssib, unicosmk_add_call_info_word,
15426 unicosmk_extern_head, unicosmk_output_default_externs,
15427 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
15428 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
15429 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
15430 * config/alpha/alpha-protos.h: Update.
15431 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
15432 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
15433 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
15434 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
15435 (*mulsi_se, mulvsi3): Likewise.
15436 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
15437 (*divmodsi_internal, call, call_value, realign): Likewise.
15438 (moddi3, umoddi3): Likewise; remove duplicate expander.
15439 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
15440 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
15441 (*movdi_nofix): Remove r/U alternative.
15442 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
15443 * config/alpha/constraints.md ("U"): Remove.
15444 * config/alpha/predicates.md (call_operand"): Don't test
15445 TARGET_ABI_UNICOSMK.
15446
96e45421
JM
154472011-03-22 Joseph Myers <joseph@codesourcery.com>
15448
15449 * target.def (handle_option): Take gcc_options and
15450 cl_decoded_option pointers and location_t.
15451 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15452 * doc/tm.texi: Regenerate.
15453 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15454 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15455 * lto-opts.c (lto_reissue_options): Generate option structure for
15456 targetm.handle_option call.
15457 * opts.c (target_handle_option): Update call to
15458 targetm.handle_option. Remove assertions about values now passed
15459 down to hook.
15460 * targhooks.c (default_target_handle_option): New.
15461 * targhooks.h (default_target_handle_option): Declare.
15462 * config/alpha/alpha.c: Include opts.h.
15463 (alpha_handle_option): Update to new hook interface.
15464 * config/arm/arm.c: Include opts.h.
15465 (arm_handle_option): Update to new hook interface.
15466 * config/arm/t-arm (arm.o): Update dependencies.
15467 * config/bfin/bfin.c: Include opts.h.
15468 (bfin_handle_option): Update to new hook interface.
15469 * config/cris/cris.c: Include opts.h.
15470 (cris_handle_option): Update to new hook interface.
15471 * config/frv/frv.c: Include opts.h.
15472 (frv_handle_option): Update to new hook interface.
15473 * config/i386/i386.c: Include opts.h.
15474 (ix86_handle_option): Update to new hook interface.
15475 (ix86_valid_target_attribute_inner_p): Generate option structure
15476 for call to ix86_handle_option.
15477 * config/i386/t-i386 (i386.o): Update dependencies.
15478 * config/ia64/ia64.c: Include opts.h.
15479 (ia64_handle_option): Update to new hook interface.
15480 * config/ia64/t-ia64 (ia64.o): Update dependencies.
15481 * config/iq2000/iq2000.c: Include opts.h.
15482 (iq2000_handle_option): Update to new hook interface.
15483 * config/m32c/m32c.c: Include opts.h.
15484 (m32c_handle_option): Update to new hook interface.
15485 * config/m32r/m32r.c: Include opts.h.
15486 (m32r_handle_option): Update to new hook interface.
15487 * config/m68k/m68k.c: Include opts.h.
15488 (m68k_handle_option): Update to new hook interface.
15489 * config/mep/mep.c: Include opts.h.
15490 (mep_handle_option): Update to new hook interface.
15491 * config/microblaze/microblaze.c: Include opts.h.
15492 (microblaze_handle_option): Update to new hook interface.
15493 * config/mips/mips.c: Include opts.h.
15494 (mips_handle_option): Update to new hook interface.
15495 * config/mn10300/mn10300.c: Include opts.h.
15496 (mn10300_handle_option): Update to new hook interface.
15497 * config/pa/pa.c: Include opts.h.
15498 (pa_handle_option): Update to new hook interface.
15499 * config/pdp11/pdp11.c: Include opts.h.
15500 (pdp11_handle_option): Update to new hook interface.
15501 * config/rs6000/rs6000.c: Include opts.h.
15502 (rs6000_handle_option): Update to new hook interface.
15503 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15504 * config/rx/rx.c: Include opts.h.
15505 (rx_handle_option): Update to new hook interface.
15506 * config/s390/s390.c: Include opts.h.
15507 (s390_handle_option): Update to new hook interface.
15508 * config/score/score.c: Include opts.h.
15509 (score_handle_option): Update to new hook interface.
15510 * config/sh/sh.c: Include opts.h.
15511 (sh_handle_option): Update to new hook interface.
15512 * config/sparc/sparc.c: Include opts.h.
15513 (sparc_handle_option): Update to new hook interface.
15514 * config/v850/v850.c: Include opts.h.
15515 (v850_handle_option): Update to new hook interface.
15516
66017846
JM
155172011-03-22 Joseph Myers <joseph@codesourcery.com>
15518
15519 * gcc.c (driver_unknown_option_callback): Only permit and save
15520 unknown -Wno- options.
15521 (driver_wrong_lang_callback): Save options directly instead of via
15522 driver_unknown_option_callback.
15523
e8b97ccd
EB
155242011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15525
15526 * combine.c (simplify_set): Try harder to find the best CC mode when
15527 simplifying a nested COMPARE on the RHS.
15528
ebb9f8b0
JM
155292011-03-22 Joseph Myers <joseph@codesourcery.com>
15530
15531 * config/alpha/gnu.h: Remove.
15532 * config/arc: Remove directory.
15533 * config/arm/netbsd.h: Remove.
15534 * config/arm/t-pe: Remove.
15535 * config/crx: Remove directory.
15536 * config/i386/netbsd.h: Remove.
15537 * config/m68hc11: Remove directory.
15538 * config/m68k/uclinux-oldabi.h: Remove.
15539 * config/mcore/mcore-pe.h: Remove.
15540 * config/mcore/t-mcore-pe: Remove.
15541 * config/netbsd-aout.h: Remove.
15542 * config/rs6000/gnu.h: Remove.
15543 * config/sh/sh-symbian.h: Remove.
15544 * config/sh/symbian-base.c: Remove.
15545 * config/sh/symbian-c.c: Remove.
15546 * config/sh/symbian-cxx.c: Remove.
15547 * config/sh/symbian-post.h: Remove.
15548 * config/sh/symbian-pre.h: Remove.
15549 * config/sh/t-symbian: Remove.
15550 * config/svr3.h: Remove.
15551 * config/vax/netbsd.h: Remove.
15552 * config.build: Don't handle i[34567]86-*-pe.
15553 * config.gcc: Remove handling of deprecations for most deprecated
15554 targets.
15555 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15556 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15557 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15558 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15559 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15560 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15561 Remove cases.
15562 * config.host: Don't handle i[34567]86-*-pe.
15563 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15564 (ASM_SPEC32): Don't handle -mcall-gnu.
15565 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15566 -mcall-gnu.
15567 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15568 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15569 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15570 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15571 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15572 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15573 conditional on SYMBIAN.
15574 * configure.ac: Don't handle powerpc*-*-gnu*.
15575 * configure: Regenerate.
15576 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15577 * doc/install-old.texi (m6811, m6812): Don't mention.
15578 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15579 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15580 (m68k-uclinuxoldabi): Don't mention.
15581 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15582 Remove.
15583 (-mcall-gnu): Remove.
15584 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15585 families): Remove constraint documentation.
15586
999a7d80
MS
155872011-03-22 Marius Strobl <marius@FreeBSD.org>
15588
15589 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15590 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15591 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15592
45540bcf
MM
155932011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15594
15595 PR target/48226
15596 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15597 vector when peeking at the next token for vector, don't expand the
15598 keywords.
15599
980a0ff4
GJL
156002011-03-21 Georg-Johann Lay <avr@gjlay.de>
15601
15602 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15603 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15604 * config/avr/avr.c (init_cumulative_args)
15605 (avr_function_arg_advance): Use it.
15606 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15607 sibcall epilogues.
15608 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15609 (avr_function_ok_for_sibcall): ...this new function.
15610 (avr_lookup_function_attribute1): New static Function.
15611 (avr_naked_function_p, interrupt_function_p)
15612 (signal_function_p, avr_OS_task_function_p)
15613 (avr_OS_main_function_p): Use it.
15614 * config/avr/avr.md ("sibcall", "sibcall_value")
15615 ("sibcall_epilogue"): New expander.
15616 ("*call_insn", "*call_value_insn"): New insn.
15617 ("call_insn", "call_value_insn"): Remove
15618 ("call", "call_value", "epilogue"): Change expander to handle
15619 sibling calls.
15620
49168734
NC
156212011-03-21 Nick Clifton <nickc@redhat.com>
15622
15623 * doc/invoke.texi (Overall Options): Move closing brace to end of
15624 options list.
15625 (Optimization Options): Add missing @gol.
15626 (Directory Options): Likewise.
15627 (i386 and x86-64 Options): Likewise.
15628 (RS6000 and PowerPC Options): Likewise.
15629 (i386 and x86-64 Windows Options): Likewise.
15630 (V850 Options): Add text missing from descriptions.
15631
bdfe906f
RH
156322011-03-22 Richard Henderson <rth@redhat.com>
15633
15634 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15635 (avr_incoming_return_addr_rtx): New.
15636 (emit_push_byte): New.
15637 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15638 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15639 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15640 (emit_pop_byte): New.
15641 (expand_epilogue): Use it. Pop frame pointer by bytes.
15642 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15643 (INCOMING_RETURN_ADDR_RTX): New.
15644 (INCOMING_FRAME_SP_OFFSET): New.
15645 (ARG_POINTER_CFA_OFFSET): New.
15646 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15647 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15648 (pophi): Remove.
15649
d090a5aa
RH
15650 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15651
fdf3e18a
NF
156522011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15653
15654 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15655 (FUNCTION_ARG_ADVANCE): Likewise.
15656 * tm.texi.in: Change references to them to hook references.
15657 * tm.texi: Regenerate.
15658 * targhooks.c (default_function_arg): Eliminate check for target
15659 macro.
15660 (default_function_incoming_arg): Likewise.
15661 (default_function_arg_advance): Likewise.
c78dd519 15662 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
15663 (function_arg_advance): Likewise.
15664 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15665
009d3fcf
NF
156662011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15667
15668 * tree.c (build_call_1): New function.
15669 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15670
7bec30e1
RG
156712011-03-22 Richard Guenther <rguenther@suse.de>
15672
15673 PR tree-optimization/48228
15674 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15675 for single-arg PHIs.
15676
0b7e851b
AB
156772011-03-22 Andrey Belevantsev <abel@ispras.ru>
15678
15679 PR rtl-optimization/48143
15680 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15681 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15682 sse2_cvtps2pd): Likewise.
15683
d89afca5
AK
156842011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15685
15686 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15687
f471fe72
RG
156882011-03-22 Richard Guenther <rguenther@suse.de>
15689
15690 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15691 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15692 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15693 and REALIGN_LOAD_EXPR.
15694 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15695 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15696 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15697 DOT_PROD_EXPR case ...
15698 (expand_expr_real_2): ... here.
15699 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15700 and REALIGN_LOAD_EXPR.
15701 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15702 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15703 (vect_create_epilog_for_reduction): Likewise.
15704 (vectorizable_reduction): Likewise.
15705 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15706 * tree-vect-stmts.c (vectorizable_load): Likewise.
15707
f2f81d57
EB
157082011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15709
15710 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15711
ab081dd6
AK
157122011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15713
15714 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15715 handling for PLTOFF/GOTOFF.
15716
6fd5332b
NC
157172011-03-22 Nick Clifton <nickc@redhat.com>
15718
15719 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15720 trailing backslash from the end of the macro definition.
15721
01841ac0
AK
157222011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15723
15724 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15725 and PLT unspecs.
15726
2ef6ce06
RS
157272011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15728
15729 * expr.h (prepare_operand): Move to...
15730 * optabs.h (prepare_operand): ...here and change the insn code
15731 parameter from "int" to "enum insn_code".
15732 (insn_operand_matches): Declare.
15733 * expr.c (init_expr_target): Use insn_operand_matches.
15734 (compress_float_constant): Likewise.
15735 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15736 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15737 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
15738 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15739 Likewise.
2ef6ce06
RS
15740 (gen_cond_trap): Likewise.
15741 (prepare_operand): Likewise. Change icode to an insn_code.
15742 (insn_operand_matches): New function.
15743 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15744 * reload1.c (gen_reload): Likewise.
15745 * targhooks.c (default_secondary_reload): Likewise.
15746
9e43ad68
UB
157472011-03-21 Uros Bizjak <ubizjak@gmail.com>
15748
9a96da32
UB
15749 * config/alpha/alpha.md (unspec): New define_c_enum.
15750 (unspecv): Ditto.
15751
157522011-03-21 Uros Bizjak <ubizjak@gmail.com>
15753
15754 PR debug/48214
9e43ad68
UB
15755 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15756 between a call and its CALL_ARG_LOCATION note.
15757
31408f60
EB
157582011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15759
15760 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15761
157622011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
15763
15764 PR c/42544
15765 PR c/48197
15766 * c-common.c (shorten_compare): If primopN is first sign-extended
15767 to opN and then zero-extended to result type, set primopN to opN.
15768
9dfd55f5
DJ
157692011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15770
15771 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15772 for barrier handlers.
15773
f3c33d9d
MM
157742011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15775
15776 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15777 UNSPEC constants to be in the unspec enumeration, and redefine
15778 all UNSPECV constants to be in the unspecv enumeration, so that
15779 dumps print which unspec/unspec_volatile this is.
15780 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15781 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15782 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15783 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15784 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15785
15786 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15787 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15788 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15789 * config/rs6000/sync.md (isync, lwsync): Ditto.
15790
ac43f774
RG
157912011-03-21 Richard Guenther <rguenther@suse.de>
15792
15793 * params.def (lto-min-partition): Fix typo.
15794
411cdbd8
RG
157952011-03-21 Richard Guenther <rguenther@suse.de>
15796
15797 PR c/47939
15798 * c-decl.c (grokdeclarator): Drop to the main variant only
15799 for array types. Drop flag_gen_aux_info check.
15800
1cd9e416
RG
158012011-03-21 Richard Guenther <rguenther@suse.de>
15802
15803 PR translation/47911
15804 * params.def (lto-partitions): Fix typo.
15805 (lto-min-partition): Fix wording.
15806
ada5ad67
AT
158072011-03-21 Andreas Tobler <andreast@fgznet.ch>
15808
15809 * config/rs6000/t-freebsd: Remove duplication from file.
15810
f9613c9a
RG
158112011-03-21 Richard Guenther <rguenther@suse.de>
15812
15813 PR middle-end/47661
15814 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15815
9bfbc1eb
RG
158162011-03-21 Richard Guenther <rguenther@suse.de>
15817
15818 PR lto/48210
15819 * params.def (lto-partitions): Require at least 1 partition.
15820
a2268084
RO
158212011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15822
15823 * gthr-solaris.h: Remove.
15824 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15825 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15826 (LIB_SPEC): Likewise.
15827 * config/sol2.opt (threads): Remove.
9e43ad68 15828 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
15829 (sparc*-*-solaris2*): Likewise.
15830 * configure.ac (enable_threads): Enable solaris support.
15831 * configure: Regenerate.
9e43ad68 15832 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
15833 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15834 solaris.
15835
c43d9a1b
RO
158362011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15837
15838 * config.gcc: Obsolete *-*-solaris2.8*.
15839 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15840
084239f4
RO
158412011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15842
15843 PR bootstrap/48135
15844 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15845 reference. Solaris 8 perl works.
15846
64cadbe7
RO
158472011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15848
15849 PR bootstrap/48135
15850 * doc/install.texi (Prerequisites): Move jar etc. up.
15851 Explain support library version requirements.
15852
eb975109
RO
158532011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15854
15855 PR bootstrap/48135
15856 * doc/install.texi (Prerequisites): Move Perl to build
15857 requirements. Always necessary on Solaris 2 with Sun ld.
15858
8a509ffd
RO
158592011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15860
15861 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15862 binutils 2.21.
15863 (Specific, i?86-*-solaris2.[89]): Likewise.
15864 (Specific, i?86-*-solaris2.10): Likewise.
15865 (Specific, mips-sgi-irix6): Likewise.
15866 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15867 Update for binutils 2.21.
15868
8fbc58a1
RO
158692011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15870
15871 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15872 Allow -fuse-linker-plugin for non-default plugin linker.
15873 * configure: Regenerate.
15874
7e84ad0b
NP
158752011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15876
15877 PR bootstrap/48167
15878 * gengtype.c (files_rules): Added rule for cp/parser.h.
15879
2f36e14b
JJ
158802011-03-21 Jakub Jelinek <jakub@redhat.com>
15881
15882 PR target/48213
15883 * config/s390/s390.c (s390_delegitimize_address): Don't call
15884 lowpart_subreg if orig_x has BLKmode.
15885
62d784f7
KT
158862011-03-21 Kai Tietz <ktietz@redhat.com>
15887
15888 PR target/12171
9e43ad68
UB
15889 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15890 * tree.h (attribute_spec): Add new member affects_type_identity.
15891 * attribs.c (empty_attribute_table): Adjust attribute_spec
15892 initializers.
62d784f7
KT
15893 * config/alpha/alpha.c: Likewise.
15894 * config/arc/arc.c: Likewise.
15895 * config/arm/arm.c: Likewise.
15896 * config/avr/avr.c: Likewise.
15897 * config/bfin/bfin.c: Likewise.
15898 * config/crx/crx.c: Likewise.
15899 * config/darwin.h: Likewise.
15900 * config/h8300/h8300.c: Likewise.
15901 * config/i386/cygming.h: Likewise.
15902 * config/i386/i386.c: Likewise.
15903 * config/ia64/ia64.c: Likewise.
15904 * config/m32c/m32c.c: Likewise.
15905 * config/m32r/m32r.c: Likewise.
15906 * config/m68hc11/m68hc11.c: Likewise.
15907 * config/m68k/m68k.c: Likewise.
15908 * config/mcore/mcore.c: Likewise.
15909 * config/mep/mep.c: Likewise.
15910 * config/microblaze/microblaze.c: Likewise.
15911 * config/mips/mips.c: Likewise.
15912 * config/rs6000/rs6000.c: Likewise.
15913 * config/rx/rx.c: Likewise.
15914 * config/sh/sh.c: Likewise.
15915 * config/sol2.h: Likewise.
15916 * config/sparc/sparc.c: Likewise.
15917 * config/spu/spu.c: Likewise.
15918 * config/stormy16/stormy16.c: Likewise.
15919 * config/v850/v850.c: Likewise.
15920
54833ec0
CLT
159212011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15922
15923 * simplify-rtx.c (simplify_binary_operation_1): Handle
15924 (xor (and A B) C) case when B and C are both constants.
15925
14a41392
MX
159262011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15927
15928 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15929
806c3492
EB
159302011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15931
15932 PR bootstrap/48168
15933 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15934
65e0a0f3
JJ
159352011-03-20 Jakub Jelinek <jakub@redhat.com>
15936
15937 PR rtl-optimization/48156
15938 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15939 assume df and df_lr are not NULL.
15940
b6a75dda
RR
159412011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15942
15943 PR debug/48023
15944 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15945 between a call and its CALL_ARG_LOCATION note.
15946
5969b52d
KK
159472011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15948
15949 PR debug/48178
15950 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15951 between a call and its corresponding CALL_ARG_LOCATION note.
15952
f773c2bd
AS
159532011-03-19 Anatoly Sokolov <aesok@post.ru>
15954
15955 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15956 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15957 * haifa-sched.c (setup_ref_regs): Ditto.
15958 * caller-save.c (add_used_regs_1): Ditto.
15959 * dse.c (look_for_hardregs): Ditto.
15960 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15961 * sched-rgn.c (check_live_1): Ditto.
15962
8bf872f9
JM
159632011-03-18 Joseph Myers <joseph@codesourcery.com>
15964
15965 * c-decl.c (diagnose_mismatched_decls): Give an error for
15966 redefining a typedef with variably modified type.
15967
ff8e2159
JM
159682011-03-18 Joseph Myers <joseph@codesourcery.com>
15969
15970 * c-decl.c (grokfield): Don't allow typedefs for structures or
15971 unions with no tag by default.
15972 * doc/extend.texi (Unnamed Fields): Update.
15973
16cc4440
UB
159742011-03-18 Uros Bizjak <ubizjak@gmail.com>
15975
15976 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15977 Rewrite using indirect functions.
15978 (lwp_slwpcb): Ditto.
15979 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15980 (avx_vinsertf128<mode>): Ditto.
15981
e101e12e
AK
159822011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15983
15984 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15985 unspecs.
15986
4627c7fb
AK
159872011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15988
15989 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 15990 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 15991
2d36b47f
MK
159922011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15993
15994 PR rtl-optimization/48170
15995 * gcse.c (hoist_code): Remove bogus asserts.
15996
2a3d7659
JL
159972011-03-18 Georg-Johann Lay <avr@gjlay.de>
15998
15999 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
16000 computation for prologue/epilogue.
16001
34c3ef05
RO
160022011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16003
16004 * Makefile.in (check-consistency): Remove.
16005
81f2b976
JJ
160062011-03-18 Jakub Jelinek <jakub@redhat.com>
16007
16008 PR debug/48176
16009 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
16010 arange_table_in_use is 0, but either text_section_used or
16011 cold_text_section_used is true. Don't call it if
16012 !info_section_emitted.
16013
68fd7765
AS
160142011-03-18 Anatoly Sokolov <aesok@post.ru>
16015
16016 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
16017 FUNCTION_VALUE_REGNO_P): Remove.
16018 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
16019 Remove.
16020 * config/avr/avr.c (avr_ret_register): Make static inline.
16021 (avr_function_value_regno_p): New function.
16022 (avr_libcall_value): Make static. Add 'func' argument.
16023 (avr_function_value): Make static. Rename 'func' argument to
16024 'fn_decl_or_type', forward it to avr_libcall_value. Call
16025 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 16026 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 16027
b4ef8aac
JM
160282011-03-18 Jason Merrill <jason@redhat.com>
16029
16030 PR c++/23372
16031 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
16032
09a52fc3
RG
160332011-03-18 Richard Guenther <rguenther@suse.de>
16034
16035 * doc/install.texi (--enable-gold): Remove.
16036 (--with-plugin-ld): Document.
16037 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
16038
2a3d7659 160392011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
16040
16041 PR middle-end/47790
16042 * expr.c (optimize_bitfield_assignment_op): Revamp to work
16043 again after expansion changes.
16044
2abbb0fe
CLT
160452011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
16046
16047 * combine.c (try_combine): Do simplification only call of
16048 subst() on i2 even when i1 is present. Update comments.
16049
2efd0aa6
KK
160502011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
16051
16052 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
16053 and UNSPEC_PCREL_SYMOFF.
16054
30a49b23
AK
160552011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16056
16057 * config/s390/s390.md: Use define_c_enum for the unspec constant
16058 definitions.
16059
419e1853
JJ
160602011-03-18 Richard Henderson <rth@redhat.com>
16061 Jakub Jelinek <jakub@redhat.com>
16062
16063 PR bootstrap/48161
16064 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
16065 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
16066
37875856
L
160672011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16068
16069 PR middle-end/47725
16070 * combine.c (cant_combine_insn_p): Don't check zero/sign
16071 extended hard registers.
16072
76069764
L
160732011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16074
16075 PR middle-end/47725
16076 * combine.c (cant_combine_insn_p): Check zero/sign extended
16077 hard registers.
16078
24da2019
AS
160792011-03-17 Anatoly Sokolov <aesok@post.ru>
16080
16081 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16082 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
16083 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
16084 Change return type to bool.
16085 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16086
a82ff31f
JJ
160872011-03-17 Jakub Jelinek <jakub@redhat.com>
16088
8b29c87a
JJ
16089 PR debug/48163
16090 * var-tracking.c (prepare_call_arguments): If CALL target
16091 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
16092 pc instead of looking it up using cselib_lookup and use
16093 Pmode for it if x has VOIDmode.
16094 * dwarf2out.c (gen_subprogram_die): If also both first and
16095 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
16096
a82ff31f
JJ
16097 PR debug/48163
16098 * function.c (assign_parms): For data.passed_pointer parms
16099 use MEM of data.entry_parm instead of data.entry_parm itself
16100 as DECL_INCOMING_RTL.
16101 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
16102 also when passed and declared mode is the same, DECL_RTL
16103 is a MEM with pseudo as address and DECL_INCOMING_RTL is
16104 a MEM too.
16105
82ce305c
JL
161062011-03-16 Jeff Law <law@redhat.com>
16107
16108 PR rtl-optimization/37273
16109 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16110 handle them like argument loads from stack slots. Do not double
16111 count memory for memory constants and argument loads from stack slots.
16112
fe58e02b
L
161132011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16114
16115 PR debug/48160
16116 * var-tracking.c (prepare_call_arguments): Check SUBREG.
16117
6fc4dbc7
L
161182011-03-17 H.J. Lu <hongjiu.lu@intel.com>
16119
16120 PR target/48171
16121 * config/i386/i386.opt: Add Save to -mavx and -mfma.
16122
db3ed0b3
JJ
161232011-03-17 Jakub Jelinek <jakub@redhat.com>
16124
8054a389
JJ
16125 PR bootstrap/48153
16126 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
16127 if dwarf_strict.
16128 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
16129 Clear call_arg_locations and call_arg_loc_last always.
16130
db3ed0b3
JJ
16131 PR middle-end/48152
16132 * var-tracking.c (prepare_call_arguments): If argument needs to be
16133 passed by reference, adjust argtype and mode.
16134
1bce4ff3
RG
161352011-03-17 Richard Guenther <rguenther@suse.de>
16136
16137 PR middle-end/48134
16138 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
16139 a value make sure to fold the statement.
16140
7c71147d
CLT
161412011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
16142
16143 PR target/43872
16144 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
16145 return condition with !cfun->calls_alloca.
16146
0e1ee172
RG
161472011-03-17 Richard Guenther <rguenther@suse.de>
16148
16149 PR bootstrap/48148
16150 * lto-cgraph.c (input_overwrite_node): Clear the abstract
16151 origin for decls in other ltrans units.
16152 (input_varpool_node): Likewise.
16153
f8bce518
RG
161542011-03-17 Richard Guenther <rguenther@suse.de>
16155
16156 PR middle-end/48165
16157 * tree-object-size.c (compute_object_offset): Properly return
16158 the offset operand of MEM_REFs as sizetype.
16159
1b6fa860
JJ
161602011-03-17 Jakub Jelinek <jakub@redhat.com>
16161
dabd47e7
JJ
16162 PR rtl-optimization/48141
16163 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
16164 * dse.c: Include params.h.
16165 (active_local_stores_len): New variable.
16166 (add_wild_read, dse_step1): Clear it when setting active_local_stores
16167 to NULL.
16168 (record_store, check_mem_read_rtx): Decrease it when removing
16169 from the chain.
16170 (scan_insn): Likewise. Increase it when adding to chain, if it
16171 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
16172 set active_local_stores to NULL before the addition.
16173 * Makefile.in (dse.o): Depend on $(PARAMS_H).
16174
1b6fa860
JJ
16175 PR rtl-optimization/48141
16176 * dse.c (record_store): If no positions are needed in an insn
16177 that cannot be deleted, at least unchain it from active_local_stores.
16178
7b5cb7d6
DS
161792011-03-16 Dodji Seketeli <dodji@redhat.com>
16180
16181 PR debug/47510
16182 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
16183 (lookup_type_die_strip_naming_typedef): ... here.
16184 (get_context_die): Use it.
16185 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
16186 the anonymous struct named by the naming typedef.
16187
585e9d9d
L
161882011-03-16 H.J. Lu <hongjiu.lu@intel.com>
16189
16190 PR target/48154
16191 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
16192 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16193
6261ab0e
JL
161942011-03-16 Jeff Law <law@redhat.com>
16195
16196 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 16197 check for operands of conditional. Allow type to be a pointer.
6261ab0e 16198
0b0081ec
RG
161992011-03-16 Richard Guenther <rguenther@suse.de>
16200
16201 PR tree-optimization/48149
16202 * fold-const.c (fold_binary_loc): Fold
16203 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
16204
64a3d647
RG
162052011-03-16 Richard Guenther <rguenther@suse.de>
16206
16207 PR tree-optimization/26134
16208 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
16209 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
16210 (non_rewritable_mem_ref_base): Handle complex type component
16211 accesses, constrain offsets for vector and complex extracts
16212 more properly.
16213
ef13324e
RG
162142011-03-16 Richard Guenther <rguenther@suse.de>
16215
16216 PR tree-optimization/48146
16217 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
16218 operands avoiding the need for renaming.
16219
f0eddb90
RG
162202011-03-16 Richard Guenther <rguenther@suse.de>
16221
16222 * gimple-fold.c (maybe_fold_reference): Open-code relevant
16223 constant folding. Move MEM_REF canonicalization first.
16224 Rely on fold_const_aggregate_ref for initializer folding.
16225 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
16226
e42348b8
JJ
162272011-03-16 Jakub Jelinek <jakub@redhat.com>
16228
29f10e71
JJ
16229 PR middle-end/48136
16230 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
16231 arg0/arg1 or their arguments are always fold converted to matching
16232 types.
16233
e42348b8
JJ
16234 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
16235 to nargs.
16236
55b46574
RO
162372011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16238
16239 PR lto/46944
16240 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
16241 Handle in-tree gold.
16242 (ld_vers): Extract binutils version for gold.
16243 (gcc_cv_ld_hidden): Handle gold here.
16244 (gcc_cv_lto_plugin): Determine level of linker plugin support.
16245 * configure: Regenerate.
16246 * config.in: Regenerate.
16247 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
16248 -fuse-linker-plugin otherwise.
16249 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
16250 (LINK_COMMAND_SPEC): Use it.
16251 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
16252
2b1c5433
JJ
162532011-03-16 Jakub Jelinek <jakub@redhat.com>
16254
c2969d8e
JJ
16255 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
16256 * calls.c: Remove debug.h include.
16257 (emit_call_1): Don't call virtual_call_token debug hook.
16258 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
16259 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
16260 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
16261 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
16262 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
16263 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
16264 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
16265 dwarf2out_virtual_call): Remove.
16266 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
16267 copy_call_info and virtual_call hooks.
16268 (dwarf2out_init): Don't initialize vcall_insn_table,
16269 debug_dcall_section and debug_vcall_section.
16270 (prune_unused_types): Don't mark nodes from dcall_table.
16271 (dwarf2out_finish): Don't output dcall or vcall tables.
16272 * final.c (final_scan_insn): Don't call direct_call or
16273 virtual_call debug hooks.
16274 * debug.h (struct gcc_debug_hooks): Remove direct_call,
16275 virtual_call_token, copy_call_info and virtual_call hooks.
16276 (debug_nothing_uid): Remove prototype.
16277 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
16278 copy_call_info and virtual_call hooks.
16279 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
16280 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
16281 * debug.c (do_nothing_debug_hooks): Likewise.
16282 (debug_nothing_uid): Remove.
16283 * doc/invoke.texi (-fenable-icf-debug): Remove.
16284 * common.opt (-fenable-icf-debug): Likewise.
16285
325f5379
JJ
16286 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
16287 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
16288 call's MEM. Handle functions returning aggregate through a hidden
16289 first pointer. For virtual calls add clobbered pc to call arguments
16290 chain.
16291 * dwarf2out.c (gen_subprogram_die): Emit
16292 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
16293 can't be emitted.
16294
a58a8e4b
JJ
16295 PR debug/45882
16296 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
16297 * rtl.h (ENTRY_VALUE_EXP): Define.
16298 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
16299 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
16300 * print-rtl.c (print_rtx): Likewise.
16301 * gengtype.c (adjust_field_rtx_def): Likewise.
16302 * var-tracking.c (vt_add_function_parameter): Adjust
16303 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
16304 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
16305 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
16306 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
16307 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
16308
2b1c5433
JJ
16309 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
16310 Call var_location debug hook even on CALL_INSNs.
16311 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
16312 * rtl.def (ENTRY_VALUE): New.
16313 * dwarf2out.c: Include cfglayout.h.
16314 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
16315 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
16316 (struct call_arg_loc_node): New type.
16317 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
16318 tail_call_site_count): New variables.
16319 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
16320 DW_TAG_GNU_call_site_parameter.
16321 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
16322 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
16323 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
16324 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
16325 and DW_AT_GNU_all_source_call_sites.
16326 (mem_loc_descriptor): Handle ENTRY_VALUE.
16327 (add_src_coords_attributes): Don't add enything if
16328 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
16329 (dwarf2out_abstract_function): Save and clear call_arg_location,
16330 call_site_count and tail_call_site_count around dwarf2out_decl call.
16331 (gen_call_site_die): New function.
16332 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
16333 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
16334 (dwarf2out_function_decl): Clear call_arg_locations,
16335 call_arg_loc_last, set call_site_count and tail_call_site_count
16336 to -1 and free block_map.
16337 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
16338 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
16339 followed by any real instructions.
16340 (dwarf2out_begin_function): Set call_site_count and
16341 tail_call_site_count to 0.
16342 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
16343 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
16344 attempt to force a DIE for it and worst case remove the attribute.
16345 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
16346 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
16347 the decl itself.
16348 * var-tracking.c: Include tm_p.h.
16349 (vt_stack_adjustments): For calls call note_register_arguments.
16350 (argument_reg_set): New variable.
16351 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
16352 ensure the VALUE is resolved.
16353 (call_arguments): New variable.
16354 (prepare_call_arguments): New function.
16355 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
16356 (struct expand_loc_callback_data): Add ignore_cur_loc field.
16357 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
16358 always use the best expression.
16359 (vt_expand_loc): Add ignore_cur_loc argument.
16360 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
16361 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
16362 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
16363 note for all calls.
16364 (vt_add_function_parameter): Use cselib_lookup_from_insn.
16365 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
16366 argument. Don't call cselib_preserve_only_values and
16367 cselib_reset_table.
16368 (note_register_arguments): New function.
16369 (vt_initialize): Compute argument_reg_set. Call
16370 vt_add_function_parameters before processing basic blocks instead of
16371 afterwards. For calls call prepare_call_arguments before calling
16372 cselib_process_insn.
16373 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
16374 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
16375 (var-tracking.o): Depend on $(TM_P_H).
16376 * cfglayout.h (insn_scope): New prototype.
16377 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
16378 * cfglayout.c (insn_scope): No longer static.
16379 * insn-notes.def (CALL_ARG_LOCATION): New.
16380 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
16381 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
16382 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
16383 nothing for DECL_EXTERNAL BLOCK_VARS.
16384
9ef13bd0
AM
163852011-03-16 Alan Modra <amodra@gmail.com>
16386
16387 PR target/45844
16388 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
16389 create invalid offset address for vsx splat insn.
16390 * config/rs6000/predicates.md (splat_input_operand): New.
16391 * config/rs6000/vsx.md (vsx_splat_*): Use it.
16392
56b67510
XDL
163932011-03-15 Xinliang David Li <davidxl@google.com>
16394
16395 PR c/47837
16396 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
16397 (normalize_preds): New function.
16398 (is_use_properly_guarded): Normalize def predicates.
16399
80fffdef
RR
164002011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16401
732f37c6 16402 PR target/46788
80fffdef
RR
16403 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
16404 in the output template.
16405
930672ad
RG
164062011-03-15 Richard Guenther <rguenther@suse.de>
16407
16408 PR middle-end/47650
16409 * tree-pretty-print.c (dump_function_declaration): Properly
16410 dump unprototyped and varargs function types.
16411
c7ee7b45
RG
164122011-03-15 Richard Guenther <rguenther@suse.de>
16413
16414 PR tree-optimization/13954
16415 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
16416 and friends.
16417
b2ad5e37
RG
164182011-03-15 Richard Guenther <rguenther@suse.de>
16419
16420 PR tree-optimization/48037
16421 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
16422 selects into BIT_FIELD_REFs.
16423 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
16424 vector select.
16425
7ee93d4e
JJ
164262011-03-15 Jakub Jelinek <jakub@redhat.com>
16427
16428 PR tree-optimization/48129
16429 * builtins.c (fold_builtin_snprintf): Convert to type of
16430 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
16431 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
16432
e106efc7
RG
164332011-03-15 Richard Guenther <rguenther@suse.de>
16434
16435 PR tree-optimization/41490
16436 * tree-ssa-dce.c (propagate_necessity): Handle returns without
16437 value but with VUSE.
16438 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
16439 return statements.
16440 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
16441 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
16442 * tree-tailcall.c (find_tail_calls): Ignore returns.
16443
17dea42f
RG
164442011-03-15 Richard Guenther <rguenther@suse.de>
16445
16446 PR middle-end/48031
16447 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16448 or variable-indexed array accesses when in gimple form.
16449
01c77a60
RG
164502011-03-15 Richard Guenther <rguenther@suse.de>
16451
16cc4440 16452 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 16453
77b0791e
AM
164542011-03-15 Alan Modra <amodra@gmail.com>
16455
16456 PR target/48032
16457 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16458 presume symbol_refs without a symbol_ref_decl are suitably
16459 aligned, nor other trees we may see here. Handle anchor symbols.
16460 (legitimate_constant_pool_address_p): Comment. Add mode param.
16461 Check cmodel=medium addresses. Adjust all calls.
16462 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16463 creating cmodel=medium optimized access to locals.
16464 * config/rs6000/constraints.md (R): Pass QImode to
16465 legitimate_constant_pool_address_p.
16466 * config/rs6000/predicates.md (input_operand): Pass mode to
16467 legitimate_constant_pool_address_p.
16468 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16469 Update prototype.
16470
35f61ba4
MM
164712011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16472
16473 PR target/48053
16474 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16475 64-bit constants being loaded into registers other than GPRs such
16476 as loading 0 into a VSX register.
16477
07332e6d
RO
164782011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16479
16cc4440 16480 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 16481
de888d90
JJ
164822011-03-14 Jakub Jelinek <jakub@redhat.com>
16483
ba3ceb2d
JJ
16484 PR middle-end/47917
16485 * builtins.c (fold_builtin_snprintf): New function.
16486 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16487 (fold_builtin_4): Likewise.
16488
2e64f8b8
JJ
16489 PR middle-end/38878
16490 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16491 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
16492 and C - X == X also strip nops from +/-/p+ operand.
16493 When optimizing -X == C, fold C to arg0's type.
16494
de888d90
JJ
16495 PR debug/47946
16496 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16497 emit it as add_AT_int instead of add_AT_unsigned.
16498
164992011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
16500
16501 * unwind-dw2.c: Include sys/sdt.h if it exists.
16502 (_Unwind_DebugHook): Use STAP_PROBE2.
16503 * config.in, configure: Rebuild.
16504 * configure.ac: Check for sys/sdt.h.
16505
d34abfd2
UB
165062011-03-14 Uros Bizjak <ubizjak@gmail.com>
16507
16508 * config/i386/i386.md (ROUND_FLOOR): New constant.
16509 (ROUND_CEIL): Ditto.
16510 (ROUND_TRUNC): Ditto.
16511 (ROUND_MXCSR): Ditto.
16512 (ROUND_NO_EXC): Ditto.
16513 (rint<mode>2): Use new defines instead of numerical constants.
16514 (floor<mode>2): Ditto.
16515 (ceil<mode>2): Ditto.
16516 (btrunc<mode>2): Ditto.
16517 * config/i386/i386-builtin-types.def: Define ROUND function type
16518 aliases.
16519 * config/i386/i386.c (enum ix86_builtins): Add
16520 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16521 (struct builtin_description): Add
16522 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16523 (ix86_expand_sse_round): New static function.
16524 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16525 function types.
16526 (ix86_builtin_vectorized_function): Handle
16527 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16528
87f9e23d
TT
165292011-03-14 Tom Tromey <tromey@redhat.com>
16530
16531 * c-parser.c (c_parser_asm_string_literal): Clear
16532 warn_overlength_strings.
16533
b3ab9ea2
TT
165342011-03-14 Tom Tromey <tromey@redhat.com>
16535
16536 * c-parser.c (disable_extension_diagnostics): Save
16537 warn_overlength_strings.
16538 (restore_extension_diagnostics): Restore warn_overlength_strings.
16539
6bd73dd8
JJ
165402011-03-14 Jakub Jelinek <jakub@redhat.com>
16541
16542 * BASE-VER: Change to 4.7.0.
16543
7f4d6e1b
RG
165442011-03-14 Richard Guenther <rguenther@suse.de>
16545
16546 PR middle-end/48098
16547 * tree.c (build_vector_from_val): Adjust assert to requirements
16548 and reality.
16549
c6104ef1
JJ
165502011-03-14 Jakub Jelinek <jakub@redhat.com>
16551
16552 PR bootstrap/48102
d34abfd2 16553 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 16554
dfa95e19
AT
165552011-03-14 Andreas Tobler <andreast@fgznet.ch>
16556
f60c2554 16557 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
16558 terms of target_flags_explicit. Adjust copyright year.
16559
16560 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16561 * config/rs6000/t-freebsd: New file. Add override for
16562 LIB2FUNCS_EXTRA.
16563
bb322018
CD
165642011-03-13 Chris Demetriou <cgd@google.com>
16565
16566 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16567 (-fno-diagnostics-show-option): this, to reflect current default.
16568 (-Werror=): Update text about -fno-diagnostics-show-option.
16569
12b1c80b
PB
165702011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16571
16572 PR target/48053
16573 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16574 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16575 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16576 mode is not V2DImode or V2DFmode.
16577 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16578 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16579 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16580 registers to 0.
16581 (movdi_internal64): Likewise.
16582
57d598f7
SP
165832011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16584
16585 PR tree-optimization/47127
16586 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16587 parameter.
16588 (set_cloog_options): Same.
16589 (scop_to_clast): Same.
16590 (print_clast_stmt): Do not call cloog_state_malloc and
16591 cloog_state_free.
16592 (print_generated_program): Same.
16593 (gloog): Same.
16594 * graphite-clast-to-gimple.h (cloog_state): Declared.
16595 (scop_to_clast): Adjust declaration.
16596 * graphite.c (cloog_state): Defined here.
16597 (graphite_initialize): Call cloog_state_malloc.
16598 (graphite_finalize): Call cloog_state_free.
16599
f231b5ff
JM
166002011-03-11 Jason Merrill <jason@redhat.com>
16601
16602 * attribs.c (lookup_attribute_spec): Take const_tree.
16603 * tree.h: Adjust.
16604
6a4e2bd5
JM
166052011-03-11 Joseph Myers <joseph@codesourcery.com>
16606
16607 * config/sparc/sparc.c (sparc_option_override): Use
16608 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16609
a758fd67
RG
166102011-03-11 Richard Guenther <rguenther@suse.de>
16611
16612 PR tree-optimization/48067
16613 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16614 multiplication result will be only used once on the target
16615 stmt.
16616
03dfda54
RG
166172011-03-11 Richard Guenther <rguenther@suse.de>
16618
16619 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16620
5f11a50a
RG
166212011-03-11 Richard Guenther <rguenther@suse.de>
16622
16623 PR lto/48073
16624 * tree.c (find_decls_types_r): Do not walk types only reachable
16625 from IDENTIFIER_NODEs.
16626
4074f163
JJ
166272011-03-11 Jakub Jelinek <jakub@redhat.com>
16628
16629 PR middle-end/48044
16630 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16631 all vnode->force_output nodes as needed.
16632
30f7cdcd
JM
166332011-03-11 Jason Merrill <jason@redhat.com>
16634
16635 PR c++/48069
16636 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16637 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16638
62ecfeb8
MJ
166392011-03-11 Martin Jambor <mjambor@suse.cz>
16640
16641 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16642 cgraph_node.
16643
e89e03ab
JJ
166442011-03-11 Jakub Jelinek <jakub@redhat.com>
16645
16646 PR tree-optimization/48063
16647 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16648 inline functions called once if !tree_can_inline_p (node->callers).
16649
efbe978b 166502011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 16651
efbe978b
EB
16652 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16653 extra_objs.
9d6193a7
CL
16654 * config/score/score3.c: Delete.
16655 * config/score/score3.h: Delete.
16656 * config/score/mul-div.S: Delete.
16657 * config/score/sfp-machine.h: Add new file.
16658 * config/score/constraints.md: Add new file.
16659 * config/score/t-score-softfp: Add new file.
efbe978b 16660 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
16661 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16662 (score7_extra_constraint): Delete.
efbe978b 16663 (score7_option_override): Remove unused code.
9d6193a7
CL
16664 * config/score/score.c: Remove score3 and score5 define and code.
16665 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 16666 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
16667 * config/score/score.opt: Remove score3 and score5 options.
16668
5de27cca
JDA
166692011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16670
16671 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16672 when _HPUX_SOURCE is defined.
16673 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16674
18d92053
JM
166752011-03-10 Jason Merrill <jason@redhat.com>
16676
16677 PR c++/48029
16678 * stor-layout.c (layout_type): Don't set structural equality
16679 on arrays of incomplete type.
16680 * tree.c (type_hash_eq): Handle comparing them properly.
16681
67a2f76d
JJ
166822011-03-10 Jakub Jelinek <jakub@redhat.com>
16683
16684 PR debug/48043
18d92053 16685 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
16686 result mode matches original rtl mode.
16687
d845b2f9
NC
166882011-03-10 Nick Clifton <nickc@redhat.com>
16689
16690 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 16691 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 16692
db7ec035
JJ
166932011-03-09 Jakub Jelinek <jakub@redhat.com>
16694
16695 PR rtl-optimization/47866
16696 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16697 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16698 if target wasn't scalar.
16699 * function.c (assign_stack_temp_for_type): Assert that neither
16700 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16701 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16702 macro.
16703 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16704
5d304e47
AK
167052011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16706
16707 * config/s390/s390-protos.h (s390_label_align): New prototype.
16708 * config/s390/s390.c (s390_label_align): New function.
16709 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16710
93b826f0
MM
167112011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16712
16713 PR target/47755
16714 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16715 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16716 (output_vec_const_move): Ditto.
16717
ef78aed6
AS
167182011-03-08 Anatoly Sokolov <aesok@post.ru>
16719
16720 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16721 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16722 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16723 Change 'rclass' argument and result type to reg_class_t.
16724 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16725
5f892aa0
GJL
167262011-03-08 Georg-Johann Lay <avr@gjlay.de>
16727
9e43ad68
UB
16728 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16729 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16730 (TARGET_MEMORY_MOVE_COST): Define.
16731 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 16732
32bd2409
JJ
167332011-03-08 Jakub Jelinek <jakub@redhat.com>
16734
530a4800
JJ
16735 PR debug/47881
16736 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16737 removed anything.
16738
32bd2409
JJ
16739 PR tree-optimization/48022
16740 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16741 for EQ/NE_EXPR.
16742
c7148991
JJ
167432011-03-07 Jakub Jelinek <jakub@redhat.com>
16744
16745 PR debug/47991
16746 * var-tracking.c (find_use_val): Return NULL for
16747 cui->sets && cui->store_p BLKmode MEMs.
16748
43070a6e
AS
167492011-03-07 Anatoly Sokolov <aesok@post.ru>
16750
16751 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16752 Remove.
16753 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16754 xstormy16_print_operand_address): Remove.
16755 * config/stormy16/stormy16.c (xstormy16_print_operand,
16756 xstormy16_print_operand_address): Make static.
16757 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16758
efbe978b 167592011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
16760
16761 PR target/47862
16762 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16763 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16764 before definition.
16765
cec8ac0b
ZD
167662011-03-07 Zdenek Dvorak <ook@ucw.cz>
16767
16768 PR bootstrap/48000
16769 * cfgloopmanip.c (fix_bb_placements): Return immediately
16770 if FROM is BASE_LOOP's header.
16771
59527282
PW
167722011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16773
16774 * gimplify.c (gimplify_function_tree): Fix building calls
16775 to __builtin_return_address.
16776
617718f7
AM
167772011-03-07 Alan Modra <amodra@gmail.com>
16778
16779 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16780 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16781 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16782 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16783 return_mode args.
16784 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16785 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16786 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16787 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16788 * config/rs6000/rs6000.c
16789 (rs6000_elf_end_indicate_exec_stack): Rename to..
16790 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16791 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16792 (rs6000_file_start): ..here.
16793 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16794 file scope variables.
16795 (call_ABI_of_interest): New function.
16796 (init_cumulative_args): Set above vars when function return value
16797 is a float, vector, or small struct.
16798 (rs6000_function_arg_advance_1): Likewise for function args.
16799 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16800 references float args.
16801
38528d50
MX
168022011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16803
16804 * doc/cfg.texi: Remove "See" before @ref.
16805 * doc/invoke.texi: Likewise.
16806
f42cf4f4
JM
168072011-03-05 Jason Merrill <jason@redhat.com>
16808
16809 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16810
804a304d
AG
168112011-03-05 Anthony Green <green@moxielogic.com>
16812
16813 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16814
634ee309
ZD
168152011-03-05 Zdenek Dvorak <ook@ucw.cz>
16816
16817 PR rtl-optimization/47899
16818 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16819 to flow_loop_nested_p when moving the loop upward.
16820
6fe471c8
RE
168212011-03-05 Richard Earnshaw <rearnsha@arm.com>
16822
16823 PR target/47719
16824 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16825
cc58ceee
JJ
168262011-03-05 Jakub Jelinek <jakub@redhat.com>
16827
16828 PR tree-optimization/47967
16829 * ipa-cp.c (build_const_val): Return NULL instead of creating
16830 VIEW_CONVERT_EXPR for mismatching sizes.
16831 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16832 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16833 give up on versioning.
16834
ea868305
AM
168352011-03-05 Alan Modra <amodra@gmail.com>
16836
16837 PR target/47986
16838 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16839 full cmodel medium/large lo_sum + high addresses.
16840
bc6ce334
AK
168412011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16842
16843 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16844 pool references in UNSPEC_LTREL_OFFSET.
16845
87e7b310
JH
168462011-03-04 Jan Hubicka <jh@suse.cz>
16847
16848 PR lto/47497
16849 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16850 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
16851 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16852 Add node pointers.
87e7b310
JH
16853 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16854 cgraph_add_thunk): Add node pointers.
16855 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16856 associated to right node.
16857 (input_node): Update use of cgraph_same_body_alias
16858 and cgraph_add_thunk.
16859
d9c64246
CF
168602011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16861
16862 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
16863 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16864 modes when the flag -mprefer-avx128 is on.
d9c64246 16865
08707076
RS
168662011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16867
16868 * dwarf2out.c (compare_loc_operands): Fix address handling.
16869
52517c81
AM
168702011-03-04 Alan Modra <amodra@gmail.com>
16871
16872 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16873
b147c5b9
RG
168742011-03-04 Richard Guenther <rguenther@suse.de>
16875
16876 PR middle-end/47968
16877 * expmed.c (extract_bit_field_1): Prefer vector modes that
16878 vec_extract patterns can handle.
16879
8750672f
RG
168802011-03-04 Richard Guenther <rguenther@suse.de>
16881
16882 PR middle-end/47975
16883 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16884
9eac0f2a
RH
168852011-03-04 Richard Henderson <rth@redhat.com>
16886
16887 * explow.c (emit_stack_save): Remove 'after' parameter.
16888 (emit_stack_restore): Likewise.
16889 * expr.h: Update to match.
16890 * builtins.c, calls.c, stmt.c: Likewise.
16891 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16892 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16893 * function.c (expand_function_end): Insert the emit_stack_save
16894 sequence before parm_birth_insn instead of after.
16895
dfee1406
UB
168962011-03-03 Uros Bizjak <ubizjak@gmail.com>
16897
16898 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16899 (ssse3_pmaddubsw128): Ditto.
16900 (ssse3_pmaddubsw): Ditto.
16901
f1d4c3de
SE
169022011-03-03 Steve Ellcey <sje@cup.hp.com>
16903
16904 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16905
71f3a3f5
JJ
169062011-03-03 Jakub Jelinek <jakub@redhat.com>
16907
423ed416
JJ
16908 PR c/47963
16909 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16910 on TYPE_SIZE_UNIT if it is a DECL.
16911
71f3a3f5
JJ
16912 PR debug/47283
16913 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16914 first operand is not is_gimple_mem_ref_addr, try to fold it.
16915 If the operand still isn't is_gimple_mem_ref_addr, clear
16916 MEM_EXPR on op0.
16917
4b1a5c0d
RG
169182011-03-03 Richard Guenther <rguenther@suse.de>
16919
16920 PR middle-end/47283
16921 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16922 match comment.
16923 (refs_may_alias_p_1): For release branches return true if
16924 we are confused by our input.
16925
b46616fd
AK
169262011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16927
16928 * config/s390/s390.c (s390_function_value): Rename to ...
16929 (s390_function_and_libcall_value): ... this.
16930 (s390_function_value): New function.
16931 (s390_libcall_value): New function.
dfee1406 16932 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
16933 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16934 target macro definitions.
16935 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16936
46d8fabb
JM
169372011-03-02 Joseph Myers <joseph@codesourcery.com>
16938
16939 * config/i386/freebsd64.h (CC1_SPEC): Define.
16940 * config/i386/linux64.h (CC1_SPEC): Define.
16941 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16942
6b1ce545
AS
169432011-03-02 Anatoly Sokolov <aesok@post.ru>
16944
16945 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16946 Remove.
16947 * config/stormy16/stormy16.c: Include reload.h.
16948 (xstormy16_memory_move_cost): New function.
16949 (TARGET_MEMORY_MOVE_COST): Define.
16950
34161e98
RS
169512011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16952
16953 PR rtl-optimization/47925
16954 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16955 with side effects. Remove the more-specific check for volatile asms.
16956
f60a97cf
AM
169572011-03-02 Alan Modra <amodra@gmail.com>
16958
16959 PR target/47935
16960 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16961 toc relative addresses for valid offsets.
16962
f2ca11ca
RG
169632011-03-01 Richard Guenther <rguenther@suse.de>
16964
16965 PR tree-optimization/47890
16966 * tree-vect-loop.c (get_initial_def_for_induction): Set
16967 related stmt properly.
16968
7a00d9ea
RG
169692011-03-01 Richard Guenther <rguenther@suse.de>
16970
16971 PR lto/47924
16972 * lto-streamer.c (lto_record_common_node): Also register
16973 the canonical type.
16974
06c7edcc
RG
169752011-03-01 Richard Guenther <rguenther@suse.de>
16976
16977 PR lto/46911
16978 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16979 Do not stream DECL_ABSTRACT_ORIGIN.
16980 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16981 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16982 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16983 Do not stream DECL_ABSTRACT_ORIGIN.
16984 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16985 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16986
998871e9
AS
169872011-02-28 Anatoly Sokolov <aesok@post.ru>
16988
16989 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16990 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 16991 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
16992 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16993 Add 'outgoing' argument.
16994 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16995 function.
16996 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16997 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16998
94369251
KT
169992011-02-28 Kai Tietz <kai.tietz@onevision.com>
17000
17001 PR debug/28047
17002 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
17003 (lookup_filename): Likewise.
b2e2ea67 17004 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 17005
80a832cd
JJ
170062011-02-28 Bernd Schmidt <bernds@codesourcery.com>
17007 Jakub Jelinek <jakub@redhat.com>
17008
17009 PR middle-end/47893
17010 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
17011 (assign_stack_local_1): Change last argument type to int.
17012 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
17013 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 17014 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
17015 (assign_stack_local): Adjust caller.
17016 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
17017 of assign_stack_local, pass 0 as last argument.
17018 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
17019 callers.
17020
1b500976
JJ
170212011-02-28 Jakub Jelinek <jakub@redhat.com>
17022
f61c6f34
JJ
17023 PR debug/47283
17024 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
17025 Use target address_mode and pointer_mode hooks instead of hardcoded
17026 Pmode and ptr_mode. Handle some simple cases of extending if
17027 POINTERS_EXTEND_UNSIGNED < 0.
17028 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
17029 Call convert_debug_memory_address.
17030 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
17031 convert_debug_memory_address.
17032
1b500976
JJ
17033 PR middle-end/46790
17034 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
17035 * configure: Regenerated.
17036 * config.in: Regenerated.
17037 * varasm.c (default_function_section): Return NULL
b2e2ea67 17038 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 17039
2f2935b6
MJ
170402011-02-28 Martin Jambor <mjambor@suse.cz>
17041
17042 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
17043 the description to match the printed values.
17044
474086eb
RG
170452011-02-28 Richard Guenther <rguenther@suse.de>
17046
17047 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
17048 of the copied scope tree.
17049
15bf6f3a
RW
170502011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17051
17052 * doc/extend.texi (Function Attributes): Avoid deeply (and
17053 wrongly) nested tables.
17054
f6b439c9
JJ
170552011-02-27 Jakub Jelinek <jakub@redhat.com>
17056
17057 PR middle-end/47903
17058 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
17059 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
17060 r isn't op0 nor op1.
17061
1d8ca2c7
GJL
170622011-02-23 Georg-Johann Lay <avr@gjlay.de>
17063
17064 * config/avr/avr.md: Remove magic comment for emacs.
17065
593fca4b
GJL
170662011-02-23 Georg-Johann Lay <avr@gjlay.de>
17067
17068 PR target/45261
17069 * config/avr/avr.c (avr_option_override): Use error on bad options.
17070 (avr_help): New function.
17071 (TARGET_HELP): Define.
17072
6609216e
GJL
170732011-02-22 Georg-Johann Lay <avr@gjlay.de>
17074
17075 PR target/42240
17076 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
17077 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
17078
03d458af
GP
170792011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
17080
17081 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
17082 (ARM Options): Ditto.
17083 (i386 and x86-64 Options): Ditto.
17084 (RX Options): Ditto.
17085 (SPARC Options): Ditto.
17086
1c379b78
TC
170872011-02-26 Tijl Coosemans <tijl@coosemans.org>
17088
17089 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
17090 FreeBSD 6 and later. Generally use cpu generic.
17091
d5ed058c 170922011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 17093
d5ed058c
GP
17094 * doc/cpp.texi: Update copyright years.
17095
509d65dd 170962011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 17097
509d65dd 17098 PR target/46898
308d39cd
SB
17099 * config/lm32/lm32.md (ashrsi3): Added needed variable.
17100
509d65dd 171012011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 17102
509d65dd 17103 PR target/46898
308d39cd
SB
17104 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
17105 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
17106 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
17107 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 17108 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
17109 (gen_int_relational): Move declarations to start of function.
17110
822ba6d7
EB
171112011-02-25 Eric Botcazou <ebotcazou@adacore.com>
17112
17113 PR tree-optimization/45470
17114 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
17115 can throw internally only.
17116 * tree-vect-stmts.c (vectorizable_call): Likewise.
17117
ef795fc2
AS
171182011-02-24 Anatoly Sokolov <aesok@post.ru>
17119
17120 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
17121 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17122 * config/stormy16/stormy16-protos.h
17123 (xstormy16_preferred_reload_class): Remove.
17124 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
17125 static. Change 'rclass' argument and return type to reg_class_t.
17126 (TARGET_PREFERRED_RELOAD_CLASS,
17127 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17128
1c3277ee
RG
171292011-02-24 Richard Guenther <rguenther@suse.de>
17130
17131 * lto-streamer-in.c (input_bb): Do not find referenced vars
17132 in debug statements.
17133
67e18edb
JM
171342011-02-23 Jason Merrill <jason@redhat.com>
17135
17136 * common.opt (fabi-version): Document v5 and v6.
17137
b14fad9d
RG
171382011-02-23 Richard Guenther <rguenther@suse.de>
17139
17140 PR tree-optimization/47849
17141 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
17142
7fcf46f5
JZ
171432011-02-23 Jie Zhang <jie@codesourcery.com>
17144
17145 * opts-common.c (decode_cmdline_option): Print empty string
17146 argument as "" in decoded->orig_option_with_args_text.
17147 * gcc.c (execute): Print empty string argument as ""
17148 in the verbose output.
17149 (do_spec_1): Keep empty string argument.
17150
f85b70fd
NF
171512011-02-23 Nathan Froyd <froydnj@codesourcery.com>
17152
17153 * config.gcc: Declare score-* and crx-* obsolete.
17154
b152a615
JZ
171552011-02-23 Jie Zhang <jie@codesourcery.com>
17156
17157 PR rtl-optimization/47763
17158 * web.c (web_main): Ignore naked clobber when replacing register.
17159
bb6e77bc
AS
171602011-02-22 Anatoly Sokolov <aesok@post.ru>
17161
17162 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17163 Remove.
17164
68bf6491
SP
171652011-02-22 Sebastian Pop <sebastian.pop@amd.com>
17166
17167 PR doc/47848
17168 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
17169
88ee1fc7
MS
171702011-02-22 Mike Stump <mikestump@comcast.net>
17171
17172 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
17173 assembler.
17174 * configure: Regenerate.
17175
6042d1dd
CLT
171762011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
17177
17178 PR rtl-optimization/46002
17179 * ira-color.c (update_copy_costs): Change class intersection
17180 test to reg_class_contents[] test of 'hard_regno'.
17181
7de97f9e
JM
171822011-02-21 Joseph Myers <joseph@codesourcery.com>
17183
17184 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
17185 than Driver option.
17186 * config/hpux11.opt (mt): Likewise.
17187 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
17188 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
17189 * config/vax/elf.opt (mno-asm-pic): Likewise.
17190 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
17191
d1d46f9f
MS
171922011-02-21 Mike Stump <mikestump@comcast.net>
17193
17194 PR target/47822
17195 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
17196 tree so we can get save the type.
17197 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
17198 for CFString instead of trying to use past the end of the builtins.
17199 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
17200 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
17201 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
17202 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
17203 Rename to darwin_builtin_cfstring.
17204 (darwin_init_cfstring_builtins): Return the built type.
17205
23e0d930
UB
172062011-02-21 Uros Bizjak <ubizjak@gmail.com>
17207
17208 PR target/47840
17209 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
17210 (_mm256_insert_epi64): Use _mm_insert_epi64.
17211
192997cf
AS
172122011-02-21 Anatoly Sokolov <aesok@post.ru>
17213
17214 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17215 * config/stormy16/stormy16-protos.h
17216 (xstormy16_mode_dependent_address_p): Remove.
17217 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
17218 Make static. Change return type to bool. Change argument type to
17219 const_rtx. Remove dead code.
17220 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17221
e292d003
RG
172222011-02-21 Richard Guenther <rguenther@suse.de>
17223
17224 PR lto/47820
17225 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
17226 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17227 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
17228 TUs context.
23e0d930 17229 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
17230 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
17231
77f846e9
RG
172322011-02-20 Richard Guenther <rguenther@suse.de>
17233
17234 PR lto/47822
17235 * tree.c (free_lang_data_in_decl): Clean builtins from
17236 the TU decl BLOCK_VARS.
23e0d930 17237
b2cddfc8
AO
172382011-02-19 Alexandre Oliva <aoliva@redhat.com>
17239
17240 PR debug/47620
17241 PR debug/47630
17242 * haifa-sched.c (fix_tick_ready): Skip tick computation
17243 for debug insns.
17244
becf4c11
RG
172452011-02-19 Richard Guenther <rguenther@suse.de>
17246
17247 PR lto/47647
17248 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
17249 Remove lazy BLOCK_VARS streaming.
17250 (lto_input_ts_block_tree_pointers): Likewise.
17251 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
17252
27f98305
JM
172532011-02-19 Joseph Myers <joseph@codesourcery.com>
17254
17255 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
17256
064bf3f4
JM
172572011-02-19 Joseph Myers <joseph@codesourcery.com>
17258
17259 * config/i386/biarch32.h, config/i386/mach.h,
17260 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
17261
9215ddc3
JJ
172622011-02-19 Jakub Jelinek <jakub@redhat.com>
17263
17264 PR target/47800
17265 * config/i386/i386.md (peephole2 for shift and plus): Use
17266 operands[1] original mode in the first insn.
17267
8b021004
MS
172682011-02-18 Mike Stump <mikestump@comcast.net>
17269
65ded153 17270 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 17271
f84ae14c
JH
172722011-02-18 Jan Hubicka <jh@suse.cz>
17273
17274 PR middle-end/47788
65ded153
EB
17275 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
17276 to zero when the function is not inlinable at all.
f84ae14c 17277
eddabc80
JDA
172782011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17279
17280 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
17281 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17282 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
17283 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
17284 * config/pa/t-pa64: Likewise.
17285 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
17286
ca3da783
JJ
172872011-02-18 Jakub Jelinek <jakub@redhat.com>
17288
17289 PR driver/47787
17290 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
17291
430aa868
JDA
172922011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17293
17294 PR target/47792
17295 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
17296
4bf7ff7e
AS
172972011-02-18 Anatoly Sokolov <aesok@post.ru>
17298
17299 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17300 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
17301 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
17302 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17303 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
17304 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
17305 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
17306 m32r_load_postinc_p, m32r_store_preinc_predec_p,
17307 m32r_legitimate_address_p): New functions.
17308 * config/m32r/constraints.md (constraint "S"): Don't use
17309 STORE_PREINC_PREDEC_P.
17310 (constraint "U"): Don't use LOAD_POSTINC_P.
17311
7efcf910
CLT
173122011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
17313
17314 PR rtl-optimization/46178
17315 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
17316 compute ira_hard_regno_cover_class[].
17317
237d6259
RG
173182011-02-18 Richard Guenther <rguenther@suse.de>
17319
17320 PR lto/47798
17321 * lto-streamer.h (lto_global_var_decls): Declare.
17322 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
17323 statics for global var processing.
17324
12d80acc
RG
173252011-02-18 Richard Guenther <rguenther@suse.de>
17326
17327 PR tree-optimization/47737
17328 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
17329 edge dominance check.
17330
abfea58d
JJ
173312011-02-18 Jakub Jelinek <jakub@redhat.com>
17332
17333 PR debug/47780
17334 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
17335 avoid invalid rtx sharing.
17336
f73c8882
GP
173372011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
17338
17339 * doc/cpp.texi (Obsolete Features): Add background on the
17340 origin of assertions.
17341
d764a8e6
IS
173422011-02-17 Iain Sandoe <iains@gcc.gnu.org>
17343
17344 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 17345 objc_abi == 2.
d764a8e6
IS
17346 * config/darwin.c (output_objc_section_asm_op): Added support for
17347 ABI v1 and v2.
17348 (is_objc_metadata): New.
17349 (darwin_objc2_section): New.
17350 (darwin_objc1_section): New.
17351 (machopic_select_section): Added support for ABI v1 and v2.
17352 (darwin_emit_objc_zeroed): New.
17353 (darwin_output_aligned_bss): Detect objc metadata and treat it
17354 appropriately.
17355 (darwin_asm_output_aligned_decl_common): Same.
17356 (darwin_asm_output_aligned_decl_local): Same.
17357 * config/darwin-sections.def: Updated for ABI v1 and v2.
17358 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
17359 compiling Objective-C code for the NeXT runtime, default to using
17360 ABI version 0 for 32-bit, and version 2 for 64-bit.
17361
0a8134ca
JM
173622011-02-17 Joseph Myers <joseph@codesourcery.com>
17363
17364 * common.opt (optimize_fast): New Variable.
17365 * opts.c (default_options_optimization): Use opts->x_optimize_fast
17366 instead of local variable ofast.
17367
0a256240
NP
173682011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
17369
17370 * doc/invoke.texi (fobjc-abi-version): Documented.
17371 (fobjc-nilcheck): Documented.
17372 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
17373 version.
17374
fa381cb2
JM
173752011-02-17 Joseph Myers <joseph@codesourcery.com>
17376
17377 PR driver/47390
17378 * common.opt (export-dynamic): New Driver option.
17379 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
17380
5437eaa6
JM
173812011-02-17 Joseph Myers <joseph@codesourcery.com>
17382
17383 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
17384
bb7e6d55
AO
173852011-02-17 Alexandre Oliva <aoliva@redhat.com>
17386 Jan Hubicka <jh@suse.cz>
17387
17388 PR debug/47106
17389 PR debug/47402
17390 * cfgexpand.c (account_used_vars_for_block): Remove.
17391 (estimated_stack_frame_size): Use referenced vars.
17392 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
17393 that were referenced in the original function. Test src_fn
17394 rather than cfun. Drop redundant get_var_ann.
17395 (setup_one_parameter): Drop redundant get_var_ann.
17396 (declare_return_variable): Likewise.
17397 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
17398 (copy_arguments_for_versioning): Drop redundant get_var_ann.
17399 * ipa-inline.c (compute_inline_parameters): Do not compute
17400 disregard_inline_limits here.
bb7e6d55
AO
17401 (compute_inlinable_for_current, pass_inlinable): New.
17402 (pass_inline_parameters): Require PROP_referenced_vars.
17403 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 17404 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
17405 (cgraph_analyze_function): Set .disregard_inline_limits.
17406 * tree-sra.c (convert_callers): Compute inliner parameters
17407 only for functions already in SSA form.
17408
f181a8a7
JM
174092011-02-17 Joseph Myers <joseph@codesourcery.com>
17410
17411 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
17412 -mlittle-endian-data.
17413
c6869789
JM
174142011-02-17 Joseph Myers <joseph@codesourcery.com>
17415
17416 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
17417 -mno-fpu, not -fpu and -no-fpu.
17418 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
17419 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
17420
fbf4bfd3
UB
174212011-02-17 Uros Bizjak <ubizjak@gmail.com>
17422
17423 PR target/43653
17424 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
17425 input reload with PLUS RTX.
17426
70be5dc7
JM
174272011-02-16 Joseph Myers <joseph@codesourcery.com>
17428
17429 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
17430 of InverseVar(MDMX).
17431
30b1646e
JM
174322011-02-16 Joseph Myers <joseph@codesourcery.com>
17433
17434 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
17435 --m4-340.
17436
ab7b71e9
JM
174372011-02-16 Joseph Myers <joseph@codesourcery.com>
17438
17439 * config/mn10300/mn10300.opt (mno-crt0): New.
17440
466f3f08
JM
174412011-02-16 Joseph Myers <joseph@codesourcery.com>
17442
17443 * config/m68k/uclinux.opt (static-libc): New Driver option.
17444
8226cd7b
JM
174452011-02-16 Joseph Myers <joseph@codesourcery.com>
17446
17447 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17448
45cab1d7
JM
174492011-02-16 Joseph Myers <joseph@codesourcery.com>
17450
17451 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17452 %{muser-extend-enabled}.
17453
65aab64f
RG
174542011-02-16 Richard Guenther <rguenther@suse.de>
17455
17456 PR tree-optimization/47738
17457 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17458 the TODO from tree_predictive_commoning.
17459
fc2fa4fb
JL
174602011-02-15 Jeff Law <law@redhat.com>
17461
17462 Revert
17463 2011-01-25 Jeff Law <law@redhat.com>
17464
17465 PR rtl-optimization/37273
17466 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17467 handle them like argument loads from stack slots. Do not double
17468 count memory for memory constants and argument loads from stack slots.
17469
4e380b8e
L
174702011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17471
17472 PR middle-end/47725
17473 * combine.c (cant_combine_insn_p): Revert the last change.
17474
e3a69bb4
MM
174752011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17476
17477 PR target/47755
17478 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17479 mode for vector constants. Remove code that checks for TImode.
17480
de650422
AO
174812011-02-15 Alexandre Oliva <aoliva@redhat.com>
17482
17483 PR debug/47106
17484 PR debug/47402
17485 * cgraph.h (compute_inline_parameters): Return void.
17486 * ipa-inline.c (compute_inline_parameters): Adjust.
17487
30925d94
AO
174882011-02-15 Alexandre Oliva <aoliva@redhat.com>
17489
17490 PR debug/47106
17491 PR debug/47402
17492 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17493 rather than decl.
17494 * cfgexpand.c (estimated_stack_frame_size): Likewise.
17495 * ipa-inline.c (compute_inline_parameters): Adjust.
17496
1b9a784a
AO
174972011-02-15 Alexandre Oliva <aoliva@redhat.com>
17498
17499 PR debug/47106
17500 PR debug/47402
17501 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17502 Adjust all users. Pass FN to...
17503 * tree-flow-inline.h (first_referenced_var): ... this. Add
17504 fn argument.
17505 * ipa-struct-reorg.c: Adjust.
17506 * tree-dfa.c: Adjust.
17507 * tree-into-ssa.c: Adjust.
17508 * tree-sra.c: Adjust.
17509 * tree-ssa-alias.c: Adjust.
17510 * tree-ssa-live.c: Adjust.
17511 * tree-ssa.c: Adjust.
17512 * tree-ssanames.c: Adjust.
17513 * tree-tailcall.c: Adjust.
17514
27c6b086
AO
175152011-02-15 Alexandre Oliva <aoliva@redhat.com>
17516
17517 PR debug/47106
17518 PR debug/47402
17519 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17520 Adjust all callers.
17521 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17522 * tree-flow-inline.h: Adjust.
17523 * gimple-pretty-print.c: Adjust.
17524 * tree-into-ssa.c: Adjust.
17525 * tree-ssa.c: Adjust.
17526 * cfgexpand.c: Adjust.
17527
679e8183
NF
175282011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17529
fbf4bfd3
UB
17530 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17531 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17532 (EXTRA_CONSTRAINT): Delete.
17533 * config/iq2000/constraints.md: New file.
17534 * config/iq2000/iq2000.md: Include it.
679e8183
NF
17535 (define_insn ""): Delete.
17536 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17537 unsupported constraint letters from patterns.
17538 (call_value, call_value_internal1): Likewise.
17539 (call_value_multiple_internal1): Likewise.
17540
a45d420a
NC
175412011-02-15 Nick Clifton <nickc@redhat.com>
17542
17543 * config/mn10300/mn10300.c: Include tm-constrs.h.
17544 (struct liw_data): New data structure describing an LIW candidate
17545 instruction.
17546 (extract_bundle): Use struct liw_data. Allow small integer
17547 operands for some instructions.
17548 (check_liw_constraints): Use struct liw_data. Remove swapped
17549 parameter. Add comments describing the checks. Fix bug when
17550 assigning the source of liw1 to the source of liw2.
17551 (liw_candidate): Delete. Code moved into extract_bundle.
17552 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17553 before swapping.
17554 * config/mn10300/predicates.md (liw_operand): New predicate.
17555 Allows registers and small integer constants.
17556 * config/mn10300/constraints.md (O): New constraint. Accetps
17557 integers in the range -8 to +7 inclusive.
17558 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17559 for moving a small integer into a register. Give this alternative
17560 LIW attributes.
17561 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17562 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17563 using the J,K,L and M constraints,
17564 (liw): Remove SI mode on second operands to allow for HI and QI
17565 mode values.
17566 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17567 instruction.
17568
8a73faf1
L
175692011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17570
17571 PR middle-end/47725
17572 * combine.c (cant_combine_insn_p): Check zero/sign extended
17573 hard registers.
17574
48feba28
RG
175752011-02-15 Richard Guenther <rguenther@suse.de>
17576
17577 PR tree-optimization/47743
17578 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17579 for a non-type-compatible VN lookup bail out.
17580
ad1c1eeb
NF
175812011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17582
17583 * config/fr30/constraints.md: New file.
17584 * config/fr30/fr30.md: Include it.
17585 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17586 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17587 (EXTRA_CONSTRAINT): Delete.
17588
49ac143d
NF
175892011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17590
17591 * config/frv/constraints.md: New file.
17592 * config/frv/predicates.md: Include it.
17593 * config/frv/frv.c (reg_class_from_letter): Delete.
17594 (frv_option_override): Don't initialize it.
17595 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17596 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17597 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17598 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17599 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17600 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17601 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17602 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17603 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17604 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17605 (REG_CLASS_FROM_CONSTRAINT): Delete.
17606
c95f9494
JJ
176072011-02-15 Jakub Jelinek <jakub@redhat.com>
17608
17609 PR middle-end/47581
17610 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17611 if frame size is 0 in a leaf function.
17612
13aed611
RO
176132011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17614
17615 PR pch/14940
17616 * config/alpha/host-osf.c: New file.
17617 * config/alpha/x-osf: New file.
17618 * config.host (alpha*-dec-osf*): Use it.
17619
b09c3081
AS
176202011-02-14 Anatoly Sokolov <aesok@post.ru>
17621
17622 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17623 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17624 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17625 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17626 type to const_rtx.
17627 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17628
d634083b
NF
176292011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17630
17631 * config/stormy16/constraints.md: New file.
17632 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17633 Use satisfies_constraint_Q and satisfies_constraint_R.
17634 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17635 Delete.
17636 (xstormy16_legitiamte_address_p): Declare.
17637 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17638 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17639 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 17640 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
17641 Un-staticize.
17642 (xstormy16_extra_constraint_p): Delete.
17643
c7dd803e
EB
176442011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17645
17646 PR tree-optimization/46494
17647 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17648 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17649 (pass_rtl_loop_done): Add TODO_verify_flow.
17650 * fwprop.c (pass_rtl_fwprop): Likewise.
17651 * modulo-sched.c (pass_sms): Likewise.
17652 * tree-ssa-dom.c (pass_dominator): Likewise.
17653 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17654 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17655 (pass_tree_loop_done): Likewise.
17656 * tree-ssa-pre.c (execute_pre): Likewise.
17657 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17658 * tree-ssa-sink.c (pass_sink_code): Likewise.
17659 * tree-vrp.c (pass_vrp): Likewise.
17660
c6150df6
NF
176612011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17662
c7dd803e
EB
17663 * config/v850/constraints.md: New file.
17664 * config/v850/v850.md: Include it.
17665 * config/v850/predicates.md (reg_or_0_operand): Use
17666 satisfies_constraint_G.
17667 (special_symbolref_operand): Use satisfies_constraint_K.
17668 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17669 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17670 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17671 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17672 (EXTRA_CONSTRAINT): Delete.
17673 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17674 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17675 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 17676
30dd1ea3
AS
176772011-02-14 Anatoly Sokolov <aesok@post.ru>
17678
17679 PR target/47696
17680 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17681 description.
17682
944f4bb3
NF
176832011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17684
17685 * config/mcore/constraints.md: New file.
17686 * config/mcore/mcore.md: Include it.
17687 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17688 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17689 (REG_CLASS_FROM_LETTER): Delete.
17690 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17691 insn_const_int_ok_for_constraint.
17692 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17693 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17694 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17695 (EXTRA_CONSTRAINT): Delete.
17696
ad56a54c
RO
176972011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17698
17699 PR ada/41929
17700 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17701 (IS_SIGHANDLER): Define.
17702 (sparc64_is_sighandler): New function, split off from
17703 sparc64_fallback_frame_state.
17704 (sparc_is_sighandler): New function, split off from
17705 sparc_fallback_frame_state.
17706 (sparc64_fallback_frame_state): Merge with ...
17707 (sparc_fallback_frame_state): ... this into ...
17708 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
17709 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17710 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17711 stack instead of hardcoded offsets.
ad56a54c 17712
fbf4bfd3 177132011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
17714
17715 PR target/45808
17716 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17717
029c8f3e
RW
177182011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17719
17720 * configure: Regenerate.
17721
a016dc83
JM
177222011-02-12 Joseph Myers <joseph@codesourcery.com>
17723
17724 PR driver/45731
17725 * gcc.c (asm_options): Correct spec matching --target-help.
17726
8957a0ec
MJ
177272011-02-12 Martin Jambor <mjambor@suse.cz>
17728
17729 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17730 to gimple call error.
17731
6ef828bc
MS
177322011-02-12 Mike Stump <mikestump@comcast.net>
17733
17734 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17735 comments in backslash regions.
17736
a4015be5
MS
177372011-02-12 Mike Stump <mikestump@comcast.net>
17738 Jakub Jelinek <jakub@redhat.com>
17739 Iain Sandoe <iains@gcc.gnu.org>
17740
17741 PR target/47324
17742 * dwarf2out.c (output_cfa_loc): When required, apply the
17743 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17744 (output_loc_sequence): Likewise.
17745 (output_loc_operands_raw): Likewise.
17746 (output_loc_sequence_raw): Likewise.
17747 (output_cfa_loc): Likewise.
17748 (output_loc_list): Suppress register number adjustment when
17749 calling output_loc_sequence()
17750 (output_die): Likewise.
17751
5378dda2
AS
177522011-02-12 Anatoly Sokolov <aesok@post.ru>
17753
17754 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17755 Remove macros.
17756 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17757 xtensa_memory_move_cost): New functions.
17758 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17759
f3d533d3
AO
177602011-02-12 Alexandre Oliva <aoliva@redhat.com>
17761
17762 PR lto/47225
17763 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17764 in the current directory.
17765 * configure: Rebuilt.
17766
9d53403c
IS
177672011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17768
17769 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 17770 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
17771 correct indents of the preceding block.
17772
a350a6c8
IS
177732011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17774
17775 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17776 the switch.
17777
bab79a40
JM
177782011-02-11 Joseph Myers <joseph@codesourcery.com>
17779
17780 * common.opt (nostartfiles): New Driver option.
17781
1bbc6693
XDL
177822011-02-11 Xinliang David Li <davidxl@google.com>
17783
17784 PR tree-optimization/47707
17785 * tree-chrec.c (convert_affine_scev): Keep type precision.
17786
1da7d8c0
EB
177872011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17788
17789 PR tree-optimization/47420
17790 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17791
177922011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
17793
17794 PR rtl-optimization/47614
17795 * rtl.h (check_for_inc_dec): Declare.
17796 * dse.c (check_for_inc_dec): Externalize...
17797 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17798 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17799
4df47bca
JM
178002011-02-11 Joseph Myers <joseph@codesourcery.com>
17801
17802 PR driver/47678
17803 * gcc.c (main): Do not compile inputs if there were errors in
17804 option handling.
17805 * opts-common.c (read_cmdline_option): Check for wrong language
17806 after other error checks.
17807
61502ca8
NF
178082011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17809
17810 * cgraph.c: Fix comment typos.
17811 * cgraph.h: Likewise.
17812 * cgraphunit.c: Likewise.
17813 * ipa-cp.c: Likewise.
17814 * ipa-inline.c: Likewise.
17815 * ipa-prop.c: Likewise.
17816 * ipa-pure-const.c: Likewise.
17817 * ipa-ref.c: Likewise.
17818 * ipa-reference.c: Likewise.
17819
b63f974e
JJ
178202011-02-11 Jakub Jelinek <jakub@redhat.com>
17821
d50c5e0c
JJ
17822 PR debug/47684
17823 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 17824
6dd2a13c
RO
178252011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17826
17827 PR testsuite/47400
17828 * doc/sourcebuild.texi (Require Support): Document
17829 dg-require-ascii-locale.
17830
4a087ccf
MX
178312011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17832
17833 * doc/lto.texi (Write summary): Fix missing parentheses.
17834
a4403164
DD
178352011-02-10 DJ Delorie <dj@redhat.com>
17836
17837 * config/m32c/m32c.c (m32c_option_override): Disable
17838 -fcombine-stack-adjustments until flag value tracking and compare
17839 optimization can be rewritten.
17840
4fac45bd
PB
178412011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17842
17843 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17844 PROCESSOR_POWER7.
17845 (PROCESSOR_DEFAULT64): Likewise.
17846
72602cd1
RH
178472011-02-10 Richard Henderson <rth@redhat.com>
17848
17849 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17850 change from 2011-02-03.
17851 * config/rx/rx.c (flags_from_code): Likewise.
17852 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17853 is valid, n/pz otherwise.
17854 (rx_select_cc_mode): Return CCmode if Y is not zero.
17855
ea57f573
RG
178562011-02-10 Richard Guenther <rguenther@suse.de>
17857
ea4c3e65 17858 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 17859
92b1d23b
RG
178602011-02-10 Richard Guenther <rguenther@suse.de>
17861
17862 PR tree-optimization/47677
17863 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17864
525a2d06
JJ
178652011-02-10 Jakub Jelinek <jakub@redhat.com>
17866
17867 PR target/47665
17868 * combine.c (make_compound_operation): Only change shifts into
17869 multiplication for SCALAR_INT_MODE_P.
17870
06c969bd
JZ
178712011-02-10 Jie Zhang <jie@codesourcery.com>
17872
17873 PR testsuite/47622
17874 Revert
17875 2011-02-05 Jie Zhang <jie@codesourcery.com>
17876 PR debug/42631
17877 * web.c (entry_register): Don't clobber the number of the
17878 first uninitialized reference in used[].
17879
282ec48e
RG
178802011-02-09 Richard Guenther <rguenther@suse.de>
17881
17882 PR tree-optimization/47664
17883 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17884 all edges again.
17885
df98c3e8
DE
178862011-02-09 David Edelsohn <dje.gcc@gmail.com>
17887
d0f21cd6
DE
17888 PR target/46481
17889 PR target/47032
df98c3e8
DE
17890 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17891 PROCESSOR_POWER7.
17892 (PROCESSOR_DEFAULT64): Same.
17893 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17894
67b6839f
RO
178952011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17896
17897 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17898
4fd73214
MJ
178992011-02-09 Martin Jambor <mjambor@suse.cz>
17900
17901 PR middle-end/45505
17902 * tree-sra.c (struct access): New flags grp_scalar_read and
17903 grp_scalar_write. Changed description of assignment read and write
17904 flags.
17905 (dump_access): Dump new flags, reorder all of them.
17906 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17907 to detect multiple scalar reads.
17908 (analyze_access_subtree): Use the new scalar read write flags instead
17909 of the old flags. Adjusted comments.
17910
91140cd3
DD
179112011-02-08 DJ Delorie <dj@redhat.com>
17912
17913 PR target/47548
17914 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17915 patterns.
17916
4254bbfe
JM
179172011-02-08 Joseph Myers <joseph@codesourcery.com>
17918
17919 * config/m68k/uclinux.opt: New.
17920 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17921
f1fda84e
JM
179222011-02-08 Joseph Myers <joseph@codesourcery.com>
17923
17924 * config/cris/elf.opt (sim): New Driver option.
17925
4933ae74
JM
179262011-02-08 Joseph Myers <joseph@codesourcery.com>
17927
17928 * config/xtensa/elf.opt: New.
17929 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17930
4ad70280
JM
179312011-02-08 Joseph Myers <joseph@codesourcery.com>
17932
17933 * config/vax/elf.opt: New.
17934 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17935
20893707
JM
179362011-02-08 Joseph Myers <joseph@codesourcery.com>
17937
17938 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17939
b8e7038e
JM
179402011-02-08 Joseph Myers <joseph@codesourcery.com>
17941
17942 * config/gnu-user.opt: New.
17943 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17944 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17945 *-*-uclinux*): Use gnu-user.opt.
17946
e1c5225a
TS
179472011-02-08 Thomas Schwinge <thomas@schwinge.name>
17948
17949 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17950 * config/i386/gnu.h (CPP_SPEC): Likewise.
17951
5e46b0c6
ILT
179522011-02-08 Ian Lance Taylor <iant@google.com>
17953
17954 * common.opt (fcx-limited-range): Add SetByCombined flag.
17955 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17956 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17957 (fassociative-math, freciprocal-math): Likewise.
17958 (funsafe-math-optimizations): Likewise.
17959 * opth-gen.awk: Handle SetByCombined.
17960 * optc-gen.awk: Likewise.
ea4c3e65 17961 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
17962 (set_unsafe_math_optimizations_flags): Likewise.
17963 * doc/options.texi (Option properties): Document SetByCombined.
17964
32243d46
JM
179652011-02-08 Joseph Myers <joseph@codesourcery.com>
17966
17967 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17968 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17969 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17970 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17971 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17972
479c1fb3
SP
179732011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17974
17975 PR tree-optimization/46834
17976 PR tree-optimization/46994
17977 PR tree-optimization/46995
17978 * graphite-sese-to-poly.c (used_outside_reduction): New.
17979 (detect_commutative_reduction): Call used_outside_reduction.
17980 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17981 translate_scalar_reduction_to_array only when at least one
17982 loop-phi/close-phi tuple has been detected.
17983
3865a06f
RG
179842011-02-08 Richard Guenther <rguenther@suse.de>
17985
17986 PR middle-end/47639
17987 * tree-vect-generic.c (expand_vector_operations_1): Update
17988 stmts here ...
17989 (expand_vector_operations): ... not here. Cleanup EH info
17990 and the CFG if required.
17991
62902f3f
RG
179922011-02-08 Richard Guenther <rguenther@suse.de>
17993
17994 PR tree-optimization/47641
17995 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17996 require type compatibility.
17997
0efb9d64
AK
179982011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17999
18000 * gimple-low.c (lower_function_body): Don't remove the location of
18001 the return statement here.
18002 (lower_gimple_return): Do it here instead but only if the return
18003 statement is actually used twice.
18004
034b8ae4
RG
180052011-02-08 Richard Guenther <rguenther@suse.de>
18006
18007 PR tree-optimization/47632
18008 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
18009 unused up_to_stmt parameter, return whether cfg-cleanup is
18010 necessary, remove EH info properly.
18011 (forward_propagate_into_gimple_cond): Adjust caller.
18012 (forward_propagate_into_cond): Likewise.
18013 (forward_propagate_comparison): Likewise.
18014 (tree_ssa_forward_propagate_single_use_vars): Make
18015 forward_propagate_comparison case similar to the two others.
18016
298362c8
NC
180172011-02-08 Nick Clifton <nickc@redhat.com>
18018
18019 * config/mn10300/mn10300.opt (mliw): New command line option.
18020 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
18021 (liw_bundling): New automaton.
18022 (liw): New attribute.
18023 (liw_op): New attribute.
18024 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
18025 (movsi_internal): Add LIW attributes.
18026 (andsi3): Likewise.
18027 (iorsi3): Likewise.
18028 (xorsi3): Likewise.
18029 (addsi3): Separate register and immediate alternatives.
18030 Add LIW attributes.
18031 (subsi3): Likewise.
18032 (cmpsi): Likewise.
18033 (aslsi3): Likewise.
18034 (lshrsi3): Likewise.
18035 (ashrsi3): Likewise.
18036 (liw): New pattern.
18037 * config/mn10300/mn10300.c (liw_op_names): New
18038 (mn10300_print_operand): Handle 'W' operand descriptor.
18039 (extract_bundle): New function.
18040 (check_liw_constraints): New function.
18041 (liw_candidate): New function.
18042 (mn10300_bundle_liw): New function.
18043 (mn10300_reorg): New function.
18044 (TARGET_MACHINE_DEPENDENT_REORG): Define.
18045 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
18046 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
18047 __LIW__ or __NO_LIW__.
18048 * doc/invoke.texi: Describe the -mliw command line option.
18049
90488014
JDA
180502011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18051
18052 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
18053 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18054 pthread_mutex_unlock): Remove.
18055 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
18056 * config/pa/t-pa64: Likewise.
18057 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
18058 shared libc if not linking against libpthread.
18059 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18060
689ff841
IS
180612011-02-07 Iain Sandoe <iains@gcc.gnu.org>
18062
18063 PR target/47558
18064 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
18065 on 10.6 and later to ensure that we always use the unwinder from
18066 the system. Only add -no_compact_unwind when tarteting darwin
18067 10.6 or later.
18068
821014aa
SE
180692011-02-07 Steve Ellcey <sje@cup.hp.com>
18070
18071 PR target/46997
18072 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
18073 (vec_interleave_lowv2sf): Ditto.
18074 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
18075 (vec_extract_oddv2sf): Ditto.
18076
41cf94fb
MS
180772011-02-07 Mike Stump <mikestump@comcast.net>
18078
62dea57d 18079 PR target/42333
41cf94fb
MS
18080 Add __ieee_divdc3 entry point.
18081 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
18082 entry point.
18083 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
18084 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
18085 * config/darwin.c (darwin_rename_builtins): Add.
18086 * config/darwin-protos.h (darwin_rename_builtins): Add.
18087
ee09a3dd
MM
180882011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
18089
18090 PR target/47636
18091 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
18092 for the condition.
18093
83296cd0
MS
180942011-02-07 Mike Stump <mikestump@comcast.net>
18095
ea4c3e65 18096 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 18097
0f4e946f
DC
180982011-02-07 Denis Chertykov <chertykov@gmail.com>
18099
18100 PR target/47534
18101 * config/avr/libgcc.S (exit): Move .endfunc
18102
1ec87690
RG
181032011-02-07 Richard Guenther <rguenther@suse.de>
18104
18105 PR tree-optimization/47615
18106 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
18107 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
18108 (run_scc_vn): Initialize it.
18109 (visit_reference_op_load): Use it.
18110 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
18111
b46ae6da
UW
181122011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18113
18114 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
18115 DImode trapping arithmetic libfuncs.
18116
c0aae19c
RG
181172011-02-07 Richard Guenther <rguenther@suse.de>
18118
18119 PR tree-optimization/47621
18120 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
18121 two duplicates ...
18122 (execute_update_addresses_taken): ... here. Make it more
18123 conservative in what we accept.
18124
295d926b
JM
181252011-02-06 Joseph Myers <joseph@codesourcery.com>
18126
18127 * config/sparc/freebsd.h (ASM_SPEC): Define.
18128 * config/sparc/vxworks.h (ASM_SPEC): Define.
18129
bdeb2471
JM
181302011-02-06 Joseph Myers <joseph@codesourcery.com>
18131
18132 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
18133
d5d3781a
SB
181342011-02-06 Steven Bosscher <steven@gcc.gnu.org>
18135
18136 * doc/invoke.texi: Remove reference to compiler internals from
18137 user documentation.
18138
18139 * reg-notes.def: Remove REG_VALUE_PROFILE.
18140 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
18141
c42c09fc
JJ
181422011-02-05 Jakub Jelinek <jakub@redhat.com>
18143
18144 PR middle-end/47610
18145 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 18146 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 18147
beea2755
JZ
181482011-02-05 Jie Zhang <jie@codesourcery.com>
18149
18150 PR debug/42631
18151 * web.c (entry_register): Don't clobber the number of the
18152 first uninitialized reference in used[].
18153
a130584a
SP
181542011-02-04 Sebastian Pop <sebastian.pop@amd.com>
18155
18156 PR tree-optimization/46194
18157 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
18158 (build_classic_dist_vector_1): Do not represent classic distance
18159 vectors when the access functions are variating in different loops.
18160
962101ac
JM
181612011-02-04 Joseph Myers <joseph@codesourcery.com>
18162
18163 * config/mips/iris6.opt: New.
18164 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
18165
55eaaa5b
RH
181662011-02-04 Richard Henderson <rth@redhat.com>
18167 Steve Ellcey <sje@cup.hp.com>
18168
18169 PR target/46997
18170 * config/ia64/predicates.md (mux1_brcst_element): New.
18171 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
18172 * config/ia64/ia64.c (ia64_unpack_assemble): New.
18173 (ia64_unpack_sign): New.
18174 (ia64_expand_unpack): Rewrite using new routines.
18175 (ia64_expand_widen_sum): Ditto.
18176 (ia64_expand_dot_prod_v8qi): Ditto.
18177 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
18178 routines, add endian check.
18179 (pmpy2_even): Rename from pmpy2_r, add endian check.
18180 (pmpy2_odd): Rename from pmpy2_l, add endian check.
18181 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
18182 (vec_widen_smult_hi_v4hi): Ditto.
18183 (vec_widen_umult_lo_v4hi): Ditto.
18184 (vec_widen_umult_hi_v4hi): Ditto.
18185 (mulv2si3): Change endian checks.
18186 (sdot_prodv4hi): Rewrite with new calls.
18187 (udot_prodv4hi): New.
18188 (vec_pack_ssat_v4hi): Add endian check.
18189 (vec_pack_usat_v4hi): Ditto.
18190 (vec_pack_ssat_v2si): Ditto.
18191 (max1_even): Rename from max1_r, add endian check.
18192 (max1_odd): Rename from max1_l, add endian check.
18193 (*mux1_rev): Format change.
18194 (*mux1_mix): Ditto.
18195 (*mux1_shuf): Ditto.
18196 (*mux1_alt): Ditto.
18197 (*mux1_brcst_v8qi): Use new predicate.
18198 (vec_extract_evenv8qi): Remove endian check.
18199 (vec_extract_oddv8qi): Ditto.
18200 (vec_interleave_lowv4hi): Format change.
18201 (vec_interleave_highv4hi): Ditto.
18202 (mix2_even): Rename from mix2_r, add endian check.
18203 (mix2_odd): Rename from mux2_l, add endian check.
18204 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
18205 (vec_extract_evenodd_helper): Format change.
18206 (vec_extract_evenv4hi): Remove endian check.
18207 (vec_extract_oddv4hi): Remove endian check.
18208 (vec_interleave_lowv2si): Format change.
18209 (vec_interleave_highv2si): Format change.
18210 (vec_initv2si): Remove endian check.
18211 (vecinit_v2si): Add endian check.
18212 (reduc_splus_v2sf): Add endian check.
18213 (reduc_smax_v2sf): Ditto.
18214 (reduc_smin_v2sf): Ditto.
18215 (vec_initv2sf): Remove endian check.
18216 (fpack): Add endian check.
18217 (fswap): Add endian check.
18218 (vec_interleave_highv2sf): Add endian check.
18219 (vec_interleave_lowv2sf): Add endian check.
18220 (fmix_lr): Add endian check.
18221 (vec_setv2sf): Format change.
18222 (*vec_extractv2sf_0_be): Use shift to extract operand.
18223 (*vec_extractv2sf_1_be): New.
18224 (vec_pack_trunc_v4hi): Add endian check.
18225 (vec_pack_trunc_v2si): Format change.
18226
dcde5957
JJ
182272011-02-04 Jakub Jelinek <jakub@redhat.com>
18228
18229 PR inline-asm/23200
18230 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 18231 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
18232 (stmt_is_replaceable_p): New function.
18233 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
18234 callers.
18235 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
18236 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
18237 SSA_NAME_DEF_STMT.
18238 * tree-flow.h (stmt_is_replaceable_p): New prototype.
18239
a64a8e5a
JM
182402011-02-04 Joseph Myers <joseph@codesourcery.com>
18241
18242 * config/rs6000/xilinx.opt: New.
18243 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
18244
4da2ed2f
JM
182452011-02-04 Joseph Myers <joseph@codesourcery.com>
18246
18247 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
18248
a6e508f9
AS
182492011-02-03 Anatoly Sokolov <aesok@post.ru>
18250
18251 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
18252 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18253 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
18254 secondary_reload_info, xtensa_secondary_reload): Remove.
18255 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
18256 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18257 (xtensa_preferred_reload_class): Make static. Change return and
18258 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
18259 Use CONST_DOUBLE_P predicate.
18260 (xtensa_preferred_output_reload_class): New function.
18261 (xtensa_secondary_reload): Make static.
18262
82dc0de3
JM
182632011-02-03 Joseph Myers <joseph@codesourcery.com>
18264
18265 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
18266 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
18267 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
18268
7fece979
JJ
182692011-02-03 Jakub Jelinek <jakub@redhat.com>
18270
18271 PR middle-end/31490
18272 * output.h (SECTION_RELRO): Define.
18273 (SECTION_MACH_DEP): Adjust.
18274 (get_variable_section): New prototype.
18275 * varpool.c (varpool_finalize_named_section_flags): New function.
18276 (varpool_assemble_pending_decls): Call it.
18277 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
18278 * cgraphunit.c (cgraph_output_in_order): Call
18279 varpool_finalize_named_section_flags.
18280 * varasm.c (get_section): Allow section flags conflicts between
18281 relro and read-only sections if the section hasn't been declared yet.
18282 Set SECTION_OVERRIDE after diagnosing section type conflict.
18283 (get_variable_section): No longer static.
18284 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
18285 readonly sections that need relocations.
18286 (decl_readonly_section_1): New function.
18287 (decl_readonly_section): Use it.
18288
18289 Revert:
509d65dd 18290 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
18291 Steve Ellcey <sje@cup.hp.com>
18292
18293 PR middle-end/31490
18294 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
18295 if section attribute used.
18296
d18d5478
JJ
182972011-02-03 Jakub Jelinek <jakub@redhat.com>
18298
18299 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
18300 * config/darwin.c (SECTION_NO_ANCHOR): Define.
18301 (darwin_init_sections): Remove assertion.
18302
6479ed4b
NC
183032011-02-03 Nick Clifton <nickc@redhat.com>
18304
18305 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
18306 lt and ge.
38be4072 18307 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
18308 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
18309 instead of "n" and "pz".
18310 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
18311 CC_FLAG_S.
18312
89843f5d
JJ
183132011-02-03 Jakub Jelinek <jakub@redhat.com>
18314
65450d64
JJ
18315 PR target/47312
18316 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
18317 fma, expand FMA_EXPR as fma{,f,l} call.
18318
7d58701c
JJ
18319 PR lto/47274
18320 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
18321 copy them into a unsigned char variable and pass address of it to
18322 lto_output_data_stream.
18323
89843f5d
JJ
18324 PR target/47564
18325 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
18326 around backend_init_target and lang_dependent_init_target calls.
18327 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
18328 (verify_cgraph_node): Don't call set_cfun here. Use
18329 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
18330 Set error_found for incorrectly represented calls to thunks.
18331
4deef538
AO
183322011-02-03 Alexandre Oliva <aoliva@redhat.com>
18333
18334 PR debug/43092
18335 PR rtl-optimization/43494
18336 * rtl.h (for_each_inc_dec_fn): New type.
18337 (for_each_inc_dec): Declare.
18338 * rtlanal.c (struct for_each_inc_dec_ops): New type.
18339 (for_each_inc_dec_find_inc_dec): New fn.
18340 (for_each_inc_dec_find_mem): New fn.
18341 (for_each_inc_dec): New fn.
18342 * dse.c (struct insn_size): Remove.
18343 (replace_inc_dec, replace_inc_dec_mem): Remove.
18344 (emit_inc_dec_insn_before): New fn.
18345 (check_for_inc_dec): Use it, along with for_each_inc_dec.
18346 (canon_address): Pass mem modes to cselib_lookup.
18347 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
18348 (cselib_lookup_from_insn): Likewise.
18349 (cselib_subst_to_values): Likewise.
18350 * cselib.c (find_slot_memmode): New var.
18351 (cselib_find_slot): New fn. Use it instead of
18352 htab_find_slot_with_hash everywhere.
18353 (entry_and_rtx_equal_p): Use find_slot_memmode.
18354 (autoinc_split): New fn.
18355 (rtx_equal_for_cselib_p): Rename and implement in terms of...
18356 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
18357 Deal with autoinc. Special-case recursion into MEMs.
18358 (cselib_hash_rtx): Likewise.
18359 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
18360 address and MEM modes.
18361 (cselib_subst_to_values): Add memmode, pass it on.
18362 Deal with autoinc.
18363 (cselib_lookup): Add memmode argument, pass it on.
18364 (cselib_lookup_from_insn): Add memmode.
18365 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
18366 (struct cselib_record_autoinc_data): New.
18367 (cselib_record_autoinc_cb): New fn.
18368 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
18369 mode to cselib_lookup. Reset autoinced REGs here instead of...
18370 (cselib_process_insn): ... here.
18371 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
18372 to cselib_lookup.
18373 (add_uses): Likewise, also to cselib_subst_to_values.
18374 (add_stores): Likewise.
18375 * sched-deps.c (add_insn_mem_dependence): Pass mode to
18376 cselib_subst_to_values.
18377 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
18378 * gcse.c (do_local_cprop): Adjusted.
18379 * postreload.c (reload_cse_simplify_set): Adjusted.
18380 (reload_cse_simplify_operands): Adjusted.
18381 * sel-sched-dump (debug_mem_addr_value): Pass mode.
18382
1551d44a
AO
183832011-02-03 Alexandre Oliva <aoliva@redhat.com>
18384
18385 PR tree-optimization/45122
18386 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
18387 unsafe assumptions when there's more than one loop exit.
18388
c9485473
MM
183892011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18390
18391 PR target/47272
18392 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
18393 Document using vector double with the load/store builtins, and
18394 that the load/store builtins always use Altivec instructions.
18395
18396 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
18397 to use altivec memory instructions, even on VSX.
18398 (vector_altivec_store_<mode>): Ditto.
18399
18400 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
18401 function.
18402
18403 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18404 V2DF, V2DI support to load/store overloaded builtins.
18405
18406 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
18407 altivec load/store builtins for V2DF/V2DI types.
18408
18409 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
18410 set avoid indexed addresses on power6 if -maltivec.
18411 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
18412 vector_altivec_load/vector_altivec_store builtins.
18413 (altivec_expand_st_builtin): Ditto.
18414 (altivec_expand_builtin): Add VSX memory builtins.
18415 (rs6000_init_builtins): Add V2DI types to internal types.
18416 (altivec_init_builtins): Add support for V2DF/V2DI altivec
18417 load/store builtins.
18418 (rs6000_address_for_altivec): Insure memory address is appropriate
18419 for Altivec.
18420
18421 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
18422 vec_vsx_ld and vec_vsx_st.
18423 (vsx_store_<mode>): Ditto.
18424
18425 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
18426 variables to hold long long types for VSX vector memory builtins.
18427 (RS6000_BTI_unsigned_long_long): Ditto.
18428 (long_long_integer_type_internal_node): Ditti.
18429 (long_long_unsigned_type_internal_node): Ditti.
18430
18431 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
18432 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
18433 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
18434
18435 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
18436 short cuts.
18437 (vec_vsx_st): Ditto.
18438
b24d1acf
JM
184392011-02-02 Joseph Myers <joseph@codesourcery.com>
18440
18441 * config/pa/pa-hpux10.opt: New.
18442 * config/hpux11.opt (pthread): New Driver option.
18443 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
18444 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
18445
aa18dd0f
JM
184462011-02-02 Joseph Myers <joseph@codesourcery.com>
18447
18448 * config/ia64/vms.opt: New.
18449 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18450
28fc3eee
MM
184512011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18452
18453 PR target/47580
18454 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18455 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18456 generator functions.
18457 (vsx_floatuns<VSi><mode>2): Ditto.
18458 (vsx_fix_trunc<mode><VSi>2): Ditto.
18459 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18460
b5838b1f
JM
184612011-02-02 Joseph Myers <joseph@codesourcery.com>
18462
18463 * config/i386/djgpp.opt (posix): New Driver option.
18464
0db8fa89
GP
184652011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18466
18467 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18468 Move to the unsupported targets list.
18469
9cd4f22a
PB
184702011-02-02 Peter Bergner <bergner@vnet.ibm.com>
18471
18472 PR rtl-optimization/47525
18473 * df-scan.c: Update copyright years.
18474 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18475 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18476
9ed8059c
RO
184772011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18478
18479 * config/i386/sysv4.h (TARGET_VERSION): Remove.
18480 (SUBTARGET_RETURN_IN_MEMORY): Remove.
18481 (ASM_OUTPUT_ASCII): Remove.
18482 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18483
2a737389
JL
184842011-02-02 Jeff Law <law@redhat.com>
18485
18486 PR middle-end/47543
18487 * reload.c (find_reloads_address): Handle reg+d address where both
18488 components are invalid by reloading the entire address.
18489
9dac82c4
SP
184902011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18491 Richard Guenther <rguenther@suse.de>
18492
18493 PR tree-optimization/40979
18494 PR bootstrap/47044
18495 * passes.c (init_optimization_passes): After LIM call copy_prop
18496 and DCE to clean up.
18497 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18498
14dd9aab
SP
184992011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18500
18501 PR tree-optimization/47576
18502 PR tree-optimization/47555
18503 * doc/invoke.texi (scev-max-expr-complexity): Documented.
18504 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18505 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18506 * tree-scalar-evolution.c (follow_ssa_edge): Use
18507 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18508
5cbf5c20
RG
185092011-02-02 Richard Guenther <rguenther@suse.de>
18510
18511 PR tree-optimization/47566
18512 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18513
83d70792
AO
185142011-02-02 Alexandre Oliva <aoliva@redhat.com>
18515
e829c321
AO
18516 PR debug/47106
18517 PR debug/47402
18518 * tree-inline.c (declare_return_variable): Remove unused caller
18519 variable.
18520
83d70792
AO
18521 PR debug/47106
18522 PR debug/47402
18523 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18524 * cfgexpand.c (account_used_vars_for_block): Use them.
18525 * tree-nrv.c (tree_nrv): Likewise.
18526 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18527 (dump_scope_block): Likewise.
18528 (remove_unused_locals): Likewise.
18529
aaa2ac93
AO
18530 PR debug/47106
18531 PR debug/47402
18532 * tree-inline.c (declare_return_variable): Add result decl to
18533 local decls only once.
18534 * gimple-low.c (record_vars_into): Mark newly-created variables
18535 as referenced.
18536
a59d15cf
AO
185372011-02-02 Alexandre Oliva <aoliva@redhat.com>
18538
18539 PR debug/47498
18540 PR debug/47501
18541 PR debug/45136
18542 PR debug/45130
18543 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18544 debug insns.
18545 (no_real_insns_p, schedule_block, set_priorities): Drop special
18546 treatment of boundary debug insns.
38be4072 18547 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
18548 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18549 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18550 (BOUNDARY_DEBUG_INSN_P): Likewise.
18551 (SCHEDULE_DEBUG_INSN_P): Likewise.
18552 * sched-rgn.c (init_ready_list): Drop special treatment of
18553 boundary debug insns.
18554 * final.c (rest_of_clean_state): Clear notes' BB.
18555
6fc2f091
JM
185562011-02-01 Joseph Myers <joseph@codesourcery.com>
18557
18558 * config/openbsd.opt (assert=): New Driver option.
18559
fc523387
JM
185602011-02-01 Joseph Myers <joseph@codesourcery.com>
18561
18562 * config/i386/nto.opt: New.
18563 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18564
6d9821e5
JM
185652011-02-01 Joseph Myers <joseph@codesourcery.com>
18566
18567 * config/i386/netware.opt: New.
18568 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18569
cef932d4
JM
185702011-02-01 Joseph Myers <joseph@codesourcery.com>
18571
18572 * config/interix.opt (posix): New Driver option.
18573
22843acd
DD
185742011-02-01 DJ Delorie <dj@redhat.com>
18575
56490b74
DD
18576 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18577
22843acd
DD
18578 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18579 class for A0/A1.
18580
199c8f2f
SP
185812011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18582
18583 PR tree-optimization/47561
18584 * toplev.c (process_options): Print the Graphite flags. Add
18585 flag_loop_flatten to the list of options requiring Graphite.
18586
926bcf22
JM
185872011-02-01 Joseph Myers <joseph@codesourcery.com>
18588
18589 * config/i386/cygming.opt (posix): New Driver option.
18590
59793c51
JM
185912011-02-01 Joseph Myers <joseph@codesourcery.com>
18592
18593 * config/arm/vxworks.opt: New.
18594 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18595
183c38a4
JM
185962011-02-01 Joseph Myers <joseph@codesourcery.com>
18597
18598 * config/alpha/elf.opt: New.
18599 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18600 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18601
9939e416
RG
186022011-02-01 Richard Guenther <rguenther@suse.de>
18603
18604 PR tree-optimization/47559
18605 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18606 store-motion on references that can throw.
18607
4a3c9687
BS
186082011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18609
18610 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18611 * tree-pass.h (TDF_CSELIB): New macro.
18612 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18613 cselib_lookup): Check for it rather than for TDF_DETAILS.
18614
dd3b31fb
L
186152011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18616
18617 PR driver/47547
18618 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18619 is HOST_BIT_BUCKET.
18620
18621 * opts.c (finish_options): Don't add x_aux_base_name if it is
18622 HOST_BIT_BUCKET.
18623
34c1de79
RG
186242011-02-01 Richard Guenther <rguenther@suse.de>
18625
18626 PR tree-optimization/47555
18627 Revert
18628 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18629
18630 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18631
dd2804d2
SB
186322011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18633
18634 PR gcc/46692
18635 * config/lm32/t-lm32: Add multilib for all CPU options.
18636
3fd3b156
RG
186372011-02-01 Richard Guenther <rguenther@suse.de>
18638
18639 PR tree-optimization/47541
18640 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18641 sure to have a field at offset zero.
18642
f16072b6
JM
186432011-01-31 Joseph Myers <joseph@codesourcery.com>
18644
18645 * config/arc/arc.opt (EB, EL): New Driver options.
18646
6456cf2e
JM
186472011-01-31 Joseph Myers <joseph@codesourcery.com>
18648
18649 * config/alpha/osf5.opt: New.
18650 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18651
cdde6ab4
JM
186522011-01-31 Joseph Myers <joseph@codesourcery.com>
18653
18654 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18655
7633415c
SP
186562011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18657
18658 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18659 -floop-interchange.
18660 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18661 is an alias of -floop-interchange and that it requires the
18662 Graphite infrastructure.
18663 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18664 flag_loop_interchange based on the value of flag_tree_loop_linear.
18665
0425d6f5
JJ
186662011-01-31 Jakub Jelinek <jakub@redhat.com>
18667 Richard Guenther <rguenther@suse.de>
18668
18669 PR tree-optimization/47538
18670 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18671 type instead of r1type, except for comparisons. For right
18672 shifts and comparisons punt if there are mismatches in
18673 sizetype vs. non-sizetype types.
18674
500b16c3
RO
186752011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18676
18677 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18678 avx_runtime.
18679
e279edb0
RO
186802011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18681
18682 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18683 version number.
18684 * configure: Regenerate.
18685
c6092243
RO
186862011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18687
18688 * configure.ac (gcc_cv_ld_static_option): Define.
18689 (gcc_cv_ld_dynamic_option): Define.
18690 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18691 instead.
18692 (HAVE_LD_STATIC_DYNAMIC): Update message.
18693 (LD_STATIC_OPTION): Define.
18694 (LD_DYNAMIC_OPTION): Define.
18695 * configure: Regenerate.
18696 * config.in: Regenerate.
18697 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18698 HAVE_LD_STATIC_DYNAMIC]: Use them.
18699
d7862be3
NC
187002011-01-31 Nick Clifton <nickc@redhat.com>
18701
18702 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18703 registers inside interrupt handlers if the handler is not a leaf
18704 function.
18705
ba4ec0e0
NC
187062011-01-31 Nick Clifton <nickc@redhat.com>
18707
18708 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18709 reg_renumber returning an INVALID_REGNUM.
18710
29a63921
AO
187112011-01-31 Alexandre Oliva <aoliva@redhat.com>
18712
18713 PR libgcj/44341
18714 * doc/install.texi: Document host options discarded when cross
18715 configuring target libraries.
18716
ef591d3f
AO
187172011-01-31 Alexandre Oliva <aoliva@redhat.com>
18718
18719 Reverted:
18720 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18721 PR debug/45136
18722 PR debug/45130
18723 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18724 debug insns.
18725 (no_real_insns_p, schedule_block, set_priorities): Drop special
18726 treatment of boundary debug insns.
38be4072 18727 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
18728 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18729 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18730 (BOUNDARY_DEBUG_INSN_P): Likewise.
18731 (SCHEDULE_DEBUG_INSN_P): Likewise.
18732 * sched-rgn.c (init_ready_list): Drop special treatment of
18733 boundary debug insns.
18734 * final.c (rest_of_clean-state): Clear notes' BB.
18735
61052244
AM
187362011-01-31 Alan Modra <amodra@gmail.com>
18737
18738 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18739 toc relative expressions as we do in print_operand_address.
18740
c4c8962b
KH
187412011-01-30 Kazu Hirata <kazu@codesourcery.com>
18742
18743 * doc/extend.texi: Follow spelling conventions.
18744 * doc/invoke.texi: Fix a typo.
18745
e543b94c
JM
187462011-01-30 Joseph Myers <joseph@codesourcery.com>
18747
18748 * config/hpux11.opt: New.
18749 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18750 ia64*-*-hpux*): Use hpux11.opt.
18751
509d65dd 187522011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
18753
18754 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18755 to tmake_file.
18756
7be03a0e
GP
187572011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18758
18759 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18760 support sites.
18761
419d1d37
GP
187622011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18763
b596ed64
GP
18764 * doc/install.texi (Binaries): Remove outdated reference for
18765 Motorola 68HC11/68HC12 downloads.
18766
187672011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 18768
419d1d37
GP
18769 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18770 Drepper's paper.
18771
4406d0e9
JW
187722011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18773
18774 PR bootstrap/47147
18775 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18776 used by NetBSD.
18777
38be4072 187782011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
18779
18780 * value-prof.c (check_counter): Corrected error message.
18781
0cd98787
JZ
187822011-01-29 Jie Zhang <jie@codesourcery.com>
18783
18784 * config/arm/arm.c (arm_legitimize_reload_address): New.
18785 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18786 arm_legitimize_reload_address.
38be4072 18787 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 18788
9b798ac5
ILT
187892011-01-28 Ian Lance Taylor <iant@google.com>
18790
18791 * godump.c (go_define): Ignore macros whose definitions include
18792 two adjacent operands.
18793
591e29d9
JJ
187942011-01-28 Jakub Jelinek <jakub@redhat.com>
18795
18796 PR target/42894
18797 * varasm.c (force_const_mem): Store copy of x in desc->constant
18798 instead of x itself.
18799 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18800 itself into REG_EQUAL note.
18801
62dcc44a
JM
188022011-01-28 Joseph Myers <joseph@codesourcery.com>
18803
18804 * config/freebsd.opt (posix, rdynamic): New Driver options.
18805
c9f58b9a
RO
188062011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18807
18808 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18809 -Bstatic/-Bdynamic.
18810 * configure: Regenerate.
18811
5f02b9db
JM
188122011-01-27 Joseph Myers <joseph@codesourcery.com>
18813
18814 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18815 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18816
5df97412
AS
188172011-01-27 Anatoly Sokolov <aesok@post.ru>
18818
18819 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18820 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18821 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18822 (s390_preferred_reload_class): Make static. Change return and
18823 'rclass' argument type to reg_class_t.
18824
779d4b91
JH
188252011-01-27 Jan Hubicka <jh@suse.cz>
18826
18827 PR middle-end/46949
18828 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18829 (process_function_and_variable_attributes): Check defined weakrefs.
18830
e80b21ed
MJ
188312011-01-27 Martin Jambor <mjambor@suse.cz>
18832
18833 PR tree-optimization/47228
18834 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18835 build_ref_for_offset.
18836
6dcc4f31
UW
188372011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18838
18839 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18840
509d65dd 188412011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
18842
18843 PR rtl-optimization/46856
18844 * postreload.c (reload_combine_recognize_const_pattern): Do not
18845 separate cc0 setter and user on cc0 targets.
18846
04af8788
NP
188472011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18848
18849 PR c/43082
18850 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18851 passed a VOID_TYPE expression, immediately emit an error and
18852 return error_mark_node.
18853
f7a60085
JL
188542011-01-26 Jeff Law <law@redhat.com>
18855
18856 PR rtl-optimization/47464
18857 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18858 rather than may_trap_p as needed.
18859
5c2917ec
DD
188602011-01-26 DJ Delorie <dj@redhat.com>
18861
18862 PR rtl-optimization/46878
18863 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18864 setter/user dependency as well.
18865
bef16e87
EB
188662011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18867
18868 PR rtl-optimization/44469
18869 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18870 after removing trivially dead basic blocks.
18871
c75d884b
JM
188722011-01-26 Joseph Myers <joseph@codesourcery.com>
18873
18874 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18875 * config/frv/frv.h (LINK_SPEC): Likewise.
18876 * config/i386/netware.h (LINK_SPEC): Likewise.
18877 * config/m68k/linux.h (ASM_SPEC): Likewise.
18878 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18879 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18880 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18881 * config/sparc/linux.h (ASM_SPEC): Likewise.
18882 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18883 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18884
d3153553
JM
188852011-01-26 Joseph Myers <joseph@codesourcery.com>
18886
18887 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18888 * config/frv/frv.h (ASM_SPEC): Likewise.
18889 * config/m68k/linux.h (ASM_SPEC): Likewise.
18890 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18891 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18892 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18893 * config/sparc/linux.h (ASM_SPEC): Likewise.
18894 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18895 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18896
b89b1e9d
JM
188972011-01-26 Joseph Myers <joseph@codesourcery.com>
18898
18899 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18900 * config/frv/frv.h (LINK_SPEC): Likewise.
18901 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18902
12eb1a9c
JM
189032011-01-26 Joseph Myers <joseph@codesourcery.com>
18904
18905 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18906 * config/frv/frv.h (ASM_SPEC): Likewise.
18907 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18908 * config/m68k/linux.h (ASM_SPEC): Likewise.
18909 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18910 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18911 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18912 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18913 * config/sparc/linux.h (ASM_SPEC): Likewise.
18914 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18915 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18916 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18917
e435f098
SE
189182011-01-26 Steve Ellcey <sje@cup.hp.com>
18919
18920 PR target/46997
18921 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18922 (*mux2): Ditto.
18923 (vec_extract_evenodd_help): Ditto.
18924 (vec_extract_evenv4hi): Ditto.
18925 (vec_extract_oddv4hi): Ditto.
18926 (vec_interleave_lowv2si): Ditto.
18927 (vec_interleave_highv2si): Ditto.
18928 (vec_extract_evenv2si): Ditto.
18929 (vec_extract_oddv2si: Ditto.
18930 (vec_pack_trunc_v2si): Ditto.
18931
34f0eee0
JH
189322011-01-22 Jan Hubicka <jh@suse.cz>
18933
18934 PR target/47237
18935 * cgraph.h (cgraph_local_info): New field can_change_signature.
18936 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18937 signature can change.
18938 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18939 can change.
18940 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18941 (cgraph_function_versioning): We can not change signature of functions
18942 that don't allow that.
18943 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18944 (lto_input_node): Likewise.
38be4072
UB
18945 * ipa-inline.c (compute_inline_parameters): Compute
18946 local.can_change_signature.
34f0eee0 18947 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
18948 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18949 functions that can not change signature.
34f0eee0 18950 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
18951 init_cumulative_args): Do not use local calling conventions
18952 for functions that can not change signature.
34f0eee0 18953
980ca891
JH
189542011-01-22 Jan Hubicka <jh@suse.cz>
18955
18956 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18957
768e3c60
RG
189582011-01-26 Richard Guenther <rguenther@suse.de>
18959
18960 PR tree-optimization/47190
61052244
AM
18961 * cgraphunit.c (process_common_attributes): New function.
18962 (process_function_and_variable_attributes): Use it.
768e3c60 18963
21d6a1c7
RG
189642011-01-26 Richard Guenther <rguenther@suse.de>
18965
18966 PR lto/47423
18967 * cgraphbuild.c (record_eh_tables): Record reference to personality
18968 function.
18969
48bb58b1
AO
189702011-01-26 Alexandre Oliva <aoliva@redhat.com>
18971
18972 PR debug/45454
18973 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18974 non-debug insns from moving up.
18975
58c741a6
DK
189762011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18977
18978 PR target/40125
18979 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18980 t-dlldir{,-x} fragment for build and add it to tmake_file.
18981 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18982 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18983 * config/i386/t-dlldir: New file.
18984 (SHLIB_DLLDIR): Define.
18985 * config/i386/t-dlldir-x: New file.
18986 (SHLIB_DLLDIR): Define.
18987 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18988 (SHLIB_INSTALL): Use it.
18989
bff99262
CLT
189902011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18991
18992 PR target/47246
18993 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18994 lower bound of the allowed Thumb-2 coprocessor load/store
18995 index range to -256. Add explaining comment.
18996
82c03907
ILT
189972011-01-25 Ian Lance Taylor <iant@google.com>
18998
18999 * godump.c (go_define): Improve lexing of macro expansion to only
19000 accept expressions which match Go spec.
19001
47ea1edf
DK
190022011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
19003
d4dba752 19004 PR c++/43601
47ea1edf
DK
19005 * tree.c (handle_dll_attribute): Handle it.
19006 * doc/extend.texi (@item dllexport): Mention it.
19007 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
19008
744f0946
ILT
190092011-01-25 Ian Lance Taylor <iant@google.com>
19010
19011 PR tree-optimization/26854
19012 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
19013 (decl_jump_unsafe): Move higher in file, with no other change.
19014 (bind): Set has_jump_unsafe_decl if appropriate.
19015 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
19016 (check_earlier_gotos): Likewise.
19017 (c_check_switch_jump_warnings): Likewise.
19018
5734f2b3
JW
190192011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
19020
19021 * doc/invoke.texi (Warning Options): Add missing hyphen.
19022 (-fprofile-dir): Minor grammatical fixes.
19023 (-fbranch-probabilities): Likewise.
19024
9bdbdcef
AO
190252011-01-25 Alexandre Oliva <aoliva@redhat.com>
19026
19027 PR debug/45136
19028 PR debug/45130
19029 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19030 debug insns.
19031 (no_real_insns_p, schedule_block, set_priorities): Drop special
19032 treatment of boundary debug insns.
38be4072 19033 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
19034 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19035 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19036 (BOUNDARY_DEBUG_INSN_P): Likewise.
19037 (SCHEDULE_DEBUG_INSN_P): Likewise.
19038 * sched-rgn.c (init_ready_list): Drop special treatment of
19039 boundary debug insns.
19040 * final.c (rest_of_clean-state): Clear notes' BB.
19041
b305e3da
SP
190422011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19043
19044 * Makefile.in (LAMBDA_H): Removed.
19045 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
19046 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
19047 lambda-trans.o, and tree-loop-linear.o.
19048 (lto-symtab.o): Remove dependence on LAMBDA_H.
19049 (tree-loop-linear.o): Remove rule.
19050 (lambda-mat.o): Same.
19051 (lambda-trans.o): Same.
19052 (lambda-code.o): Same.
19053 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
19054 (tree-vect-slp.o): Same.
19055 * hwint.h (gcd): Moved here.
19056 (least_common_multiple): Same.
19057 * lambda-code.c: Removed.
19058 * lambda-mat.c: Removed.
19059 * lambda-trans.c: Removed.
19060 * lambda.h: Removed.
19061 * tree-loop-linear.c: Removed.
19062 * lto-symtab.c: Do not include lambda.h.
19063 * omega.c (gcd): Removed.
19064 * passes.c (init_optimization_passes): Remove pass_linear_transform.
19065 * tree-data-ref.c (print_lambda_vector): Moved here.
19066 (lambda_vector_copy): Same.
19067 (lambda_matrix_copy): Same.
19068 (lambda_matrix_id): Same.
19069 (lambda_vector_first_nz): Same.
19070 (lambda_matrix_row_add): Same.
19071 (lambda_matrix_row_exchange): Same.
19072 (lambda_vector_mult_const): Same.
19073 (lambda_vector_negate): Same.
19074 (lambda_matrix_row_negate): Same.
19075 (lambda_vector_equal): Same.
19076 (lambda_matrix_right_hermite): Same.
19077 * tree-data-ref.h: Do not include lambda.h.
19078 (lambda_vector): Moved here.
19079 (lambda_matrix): Same.
19080 (dependence_level): Same.
19081 (lambda_transform_legal_p): Removed declaration.
19082 (lambda_collect_parameters): Same.
19083 (lambda_compute_access_matrices): Same.
19084 (lambda_vector_gcd): Same.
19085 (lambda_vector_new): Same.
19086 (lambda_vector_clear): Same.
19087 (lambda_vector_lexico_pos): Same.
19088 (lambda_vector_zerop): Same.
19089 (lambda_matrix_new): Same.
19090 * tree-flow.h (least_common_multiple): Removed declaration.
19091 * tree-parloops.c (lambda_trans_matrix): Moved here.
19092 (LTM_MATRIX): Same.
19093 (LTM_ROWSIZE): Same.
19094 (LTM_COLSIZE): Same.
19095 (LTM_DENOMINATOR): Same.
19096 (lambda_trans_matrix_new): Same.
19097 (lambda_matrix_vector_mult): Same.
19098 (lambda_transform_legal_p): Same.
19099 * tree-pass.h (pass_linear_transform): Removed declaration.
19100 * tree-ssa-loop.c (tree_linear_transform): Removed.
19101 (gate_tree_linear_transform): Removed.
19102 (pass_linear_transform): Removed.
19103 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
19104 flag_loop_interchange.
19105
6bdfdb96
JJ
191062011-01-25 Jakub Jelinek <jakub@redhat.com>
19107
19108 PR tree-optimization/47265
19109 PR tree-optimization/47443
19110 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
19111 if name still has some uses.
19112
e4cba915
MJ
191132011-01-25 Martin Jambor <mjambor@suse.cz>
19114
19115 PR tree-optimization/47382
19116 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
19117 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
19118
509d65dd 191192011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
19120
19121 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
19122 sjlj_except_unwind_info.
19123
194313e2
RG
191242011-01-25 Richard Guenther <rguenther@suse.de>
19125
19126 PR tree-optimization/47426
19127 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
19128 visible functions results escape.
19129
147a0bcf
JJ
191302011-01-25 Jakub Jelinek <jakub@redhat.com>
19131
19132 PR target/45701
19133 * config/arm/arm.c (any_sibcall_uses_r3): New function.
19134 (arm_get_frame_offsets): Use it.
19135
db963b52
SP
191362011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19137 Jakub Jelinek <jakub@redhat.com>
19138
19139 PR tree-optimization/47271
19140 * tree-if-conv.c (bb_postdominates_preds): New.
19141 (if_convertible_bb_p): Call bb_postdominates_preds.
19142 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
19143 (predicate_scalar_phi): Call bb_postdominates_preds.
19144
bcddd3b9
NC
191452011-01-25 Nick Clifton <nickc@redhat.com>
19146
19147 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
19148 * config/rx/rx.c (rx_function_value): Likewise.
19149 (rx_promote_function_mode): Likewise.
19150 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
19151 in order to make it legitimate.
38be4072
UB
19152 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
19153 make sure that the first operand is the same as the result register.
bcddd3b9
NC
19154 (addsi3_unspec): Delete.
19155 (subdi3): Do not accept immediate operands.
19156 (subdi3_internal): Likewise.
19157
7e6cb022
JL
191582011-01-25 Jeff Law <law@redhat.com>
19159
19160 PR rtl-optimization/37273
19161 * ira-costs.c (scan_one_insn): Detect constants living in memory and
19162 handle them like argument loads from stack slots. Do not double
19163 count memory for memory constants and argument loads from stack slots.
19164
9ffa621e
JJ
191652011-01-25 Jakub Jelinek <jakub@redhat.com>
19166
19167 PR tree-optimization/47427
19168 PR tree-optimization/47428
19169 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
19170 coalesce if the new root var would be TREE_READONLY.
19171
5bd6e652
RG
191722011-01-25 Richard Guenther <rguenther@suse.de>
19173
19174 PR middle-end/47414
19175 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
19176 correct type for TBAA.
19177
7c48ea69
SP
191782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19179
19180 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
19181 (close_phi_written_to_memory): Call for_each_index with
19182 dr_indices_valid_in_loop.
19183
38013f25
SP
191842011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19185
19186 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
19187 when it is initialized.
19188
5c640e29
SP
191892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19190
19191 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
19192 call to graphite_find_data_references_in_stmt.
19193 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
19194 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
19195 call to graphite_find_data_references_in_stmt.
19196 (analyze_drs_in_stmts): Same.
19197 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
19198 in which the scalar analysis of indices is performed.
19199 (create_data_ref): Same. Update call to dr_analyze_indices.
19200 (find_data_references_in_stmt): Update call to create_data_ref.
19201 (graphite_find_data_references_in_stmt): Same.
19202 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
19203 declaration.
19204 (create_data_ref): Same.
19205 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
19206 call to create_data_ref.
19207
ac53c069
SP
192082011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19209
19210 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 19211 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 19212
3d17df15
SP
192132011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19214
19215 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
19216 VAR_DECL, PARM_DECL, and RESULT_DECL.
19217
c513da01
SP
192182011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19219
19220 * graphite-dependences.c (reduction_dr_1): Allow several reductions
19221 in a reduction PBB.
19222 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
19223 that have already been marked as PBB_IS_REDUCTION.
19224
3a292d59
SP
192252011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19226
19227 * graphite-scop-detection.c (same_close_phi_node): New.
19228 (remove_duplicate_close_phi): New.
19229 (make_close_phi_nodes_unique): New.
19230 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
19231
ba858447
SP
192322011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19233
19234 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
19235 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
19236 of both data references to be the same.
19237
8d865c56
SP
192382011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19239
38be4072
UB
19240 * graphite-dependences.c (build_lexicographical_constraint): Remove
19241 the gdim parameter.
19242 (build_lexicographical_constraint): Adjust call to
19243 ppl_powerset_is_empty.
8d865c56
SP
19244 (dependence_polyhedron): Same.
19245 (graphite_legal_transform_dr): Same.
19246 (graphite_carried_dependence_level_k): Same.
38be4072
UB
19247 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
19248 parameter.
8d865c56
SP
19249 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
19250
50034a36
SP
192512011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19252
19253 * graphite-sese-to-poly.c
19254 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
19255 (close_phi_written_to_memory): New.
19256 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
19257 and unshare_expr.
19258
0deada9e
SP
192592011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19260
19261 * doc/install.texi: Update the expected version number of PPL to 0.11.
19262 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
19263 #if PPL_VERSION_MINOR < 11.
19264
d7d3d6af
SP
192652011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19266
19267 * graphite-dependences.c: Include graphite-cloog-util.h.
19268 (new_poly_ddr): Inlined into dependence_polyhedron.
19269 (free_poly_ddr): Moved close by new_poly_ddr.
19270 (dependence_polyhedron_1): Renamed dependence_polyhedron.
19271 Early return NULL when ppl_powerset_is_empty returns true.
19272 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
19273 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
19274 (graphite_legal_transform_dr): Call new_poly_ddr.
19275 (graphite_carried_dependence_level_k): Same.
19276 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
19277 (dot_transformed_deps_stmt_1): Removed.
19278 (dot_deps_stmt_1): Call dot_deps_stmt_2.
19279 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
19280 (dot_deps_1): Call dot_deps_2.
19281 * Makefile.in (graphite-dependences.o): Add missing dependence on
19282 graphite-cloog-util.h.
19283
28c5db57
SP
192842011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19285
19286 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
19287 (build_lexicographical_constraint): Same.
19288 (dependence_polyhedron_1): Same.
19289 (graphite_legal_transform_dr): Same.
19290 (graphite_carried_dependence_level_k): Same.
19291 * graphite-ppl.c (ppl_powerset_is_empty): New.
19292 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
19293 * tree-data-ref.c (dump_data_reference): Print the basic block index.
19294
5168d98f
SP
192952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19296
19297 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
19298 the "a followed by b" relation and document it.
19299
4a40293a
SP
193002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19301
19302 * graphite-dependences.c (build_lexicographical_constraint): Stop the
19303 iteration when the bag of constraints is empty.
19304
271fb6fa
SP
193052011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19306
19307 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
19308
92d23680
SP
193092011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19310
19311 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
19312 nest and two loop depths as parameters.
19313 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
19314 lst_perfect_nestify.
19315
2f51deff
SP
193162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19317
19318 * graphite-dependences.c (print_pddr): Call
19319 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
19320
07f3593c
SP
193212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
19322
19323 * graphite-ppl.c (debug_gmp_value): New.
19324 * graphite-ppl.h (debug_gmp_value): Declared.
19325
3fae6099
TG
193262011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
19327
19328 * doc/install.texi: Document availability of cloog-0.16.
19329
1c3ba85b
SP
193302011-01-25 Vladimir Kargov <kargov@gmail.com>
19331
19332 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
19333 invalid postdominance info.
19334
e8ba94fc
JH
193352011-01-24 Jan Hubicka <jh@suse.cz>
19336
19337 PR c/21659
19338 * doc/extend.texi (weak pragma): Drop claim that it must
19339 appear before definition.
19340 * varasm.c (merge_weak, declare_weak): Only sanity check
19341 that DECL is not output at a time it is declared weak.
19342
2b6e2d13
KZ
193432011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
19344
19345 * machmode.def: Fixed comments.
1c3ba85b 19346
9841210f
KT
193472011-01-24 Kai Tietz <kai.tietz@onevision.com>
19348
19349 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
19350
193512011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
19352
19353 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 19354 WORDS_BIG_ENDIAN.
e046112d 19355
a6c5070a
L
193562011-01-24 H.J. Lu <hongjiu.lu@intel.com>
19357
19358 PR target/46519
19359 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
19360 (block_info): Add scanned and prev.
19361 (move_or_delete_vzeroupper_2): Return if the basic block
19362 has been scanned and the upper 128bit state is unchanged
19363 from the last scan.
19364 (move_or_delete_vzeroupper_1): Return true if the exit
19365 state is changed.
19366 (move_or_delete_vzeroupper): Visit basic blocks using the
19367 work-list based algorithm based on vt_find_locations in
19368 var-tracking.c.
19369
19370 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
19371
a40d79d7
NC
193722011-01-24 Nick Clifton <nickc@redhat.com>
19373
19374 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
19375 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
19376 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
19377 then define __v850e1__.
19378 * doc/invoke.texi: Document -mv850es.
19379
440eb8de
RH
193802011-01-24 Richard Henderson <rth@redhat.com>
19381
19382 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
19383 compound unordered comparisons.
19384 * config/rx/rx.c (rx_split_fp_compare): Remove.
19385 * config/rx/rx-protos.h: Update.
19386 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
19387 (cbranchsf4): Don't call rx_split_fp_compare.
19388 (*cbranchsf4): Use rx_split_cbranch.
19389 (*cmpsf): Don't accept "i" constraint.
19390 (*conditional_branch): Only valid after reload.
19391 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
19392
3ff79f99
MM
193932011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
19394
19395 PR target/47385
19396 * config/rs6000/altivec.md (vector constant splitters): Add
19397 support for creating vector single precision constants if -mvsx is
19398 used and we would create the constant using Altivec primitives.
19399
ff3d9d08
BS
194002011-01-23 Bernd Schmidt <bernds@codesourcery.com>
19401 Richard Sandiford <rdsandiford@googlemail.com>
19402
19403 PR rtl-optimization/47166
19404 * reload1.c (emit_reload_insns): Disable the spill_reg_store
19405 mechanism for PRE_MODIFY and POST_MODIFY.
19406 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
19407 reloadreg.
19408
7fcaf152
AS
194092011-01-23 Andreas Schwab <schwab@linux-m68k.org>
19410
8788adb6 19411 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 19412
d09b58c4
JH
194132011-01-22 Jan Hubicka <jh@suse.cz>
19414
19415 PR lto/47333
19416 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
19417
e8ff8c5a
JH
194182011-01-22 Jan Hubicka <jh@suse.cz>
19419
19420 PR tree-optimization/43884
19421 PR lto/44334
8788adb6 19422 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
19423 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
19424
ccaed3ba
AS
194252011-01-22 Anatoly Sokolov <aesok@post.ru>
19426
19427 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
19428 * config/s390/s390.c (s390_register_move_cost,
19429 s390_memory_move_cost): New.
19430 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
19431
0cecee06
UW
194322011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19433
19434 PR middle-end/47401
19435 * except.c (sjlj_assign_call_site_values): Move setting the
19436 crtl->uses_eh_lsda flag to ...
19437 (sjlj_mark_call_sites): ... here.
19438 (sjlj_emit_function_enter): Support NULL dispatch label.
19439 (sjlj_build_landing_pads): In a function with no landing pads
19440 that still has must-not-throw regions, generate code to register
19441 a personality function with empty LSDA.
19442
e692f276
RH
194432011-01-21 Richard Henderson <rth@redhat.com>
19444
1b7ae0b7
RH
19445 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
19446
3843787f
RH
19447 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19448
e692f276
RH
19449 * compare-elim.c: New file.
19450 * Makefile.in (OBJS-common): Add it.
19451 (compare-elim.o): New.
19452 * common.opt (fcompare-elim): New.
19453 * opts.c (default_options_table): Add OPT_fcompare_elim.
19454 * tree-pass.h (pass_compare_elim_after_reload): New.
19455 * passes.c (init_optimization_passes): Add it.
19456 * recog.h: Protect against re-inclusion.
19457 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19458 * doc/invoke.texi (-fcompare-elim): Document it.
19459 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19460 * doc/tm.texi: Rebuild.
19461
9a7c2050
NC
194622011-01-22 Nick Clifton <nickc@redhat.com>
19463
19464 * config/rx/rx.md (cstoresf4): Pass comparison operator to
19465 rx_split_fp_compare.
19466
15ba5696
NC
194672011-01-22 Nick Clifton <nickc@redhat.com>
19468
19469 * config/rx/rx.md (UNSPEC_CONST): New.
19470 (deallocate_and_return): Wrap the amount popped off the stack in
19471 an UNSPEC_CONST in order to stop it being rejected by
19472 -mmax-constant-size.
19473 (pop_and_return): Add a "(return)" rtx.
19474 (call): Drop the immediate operand.
19475 (call_internal): Likewise.
19476 (call_value): Likewise.
19477 (call_value_internal): Likewise.
19478 (sibcall_internal): Likewise.
19479 (sibcall_value_internal): Likewise.
19480 (sibcall): Likewise. Generate an explicit call using
19481 sibcall_internal.
19482 (sibcall_value): Likewise.
19483 (mov<>): FAIL if a constant operand is not legitimate.
19484 (addsi3_unpsec): New pattern.
9a7c2050 19485
38be4072 19486 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
19487 (ok_for_max_constant): New function.
19488 (gen_safe_add): New function.
19489 (rx_expand_prologue): Use gen_safe_add.
19490 (rx_expand_epilogue): Likewise.
19491 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
19492 UNSPEC CONSTs.
19493
caaf13d3
JL
194942011-01-21 Jeff Law <law@redhat.com>
19495
19496 PR tree-optimization/47053
19497 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19498 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19499 statements are deleted.
19500 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
19501 is nonempty, then purge dead edges and cleanup the CFG.
19502
12c30f2f
AO
195032011-01-21 Alexandre Oliva <aoliva@redhat.com>
19504
19505 PR debug/47402
19506 Temporarily revert:
19507 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19508 PR debug/47106
19509 * tree-dfa.c (create_var_ann): Mark variable as used.
19510
7360d2ac
JJ
195112011-01-21 Jakub Jelinek <jakub@redhat.com>
19512
aaa52a96
JJ
19513 PR middle-end/45566
19514 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19515 notes from other section in hot/cold partitioning even if
19516 last_action is -3. Increment call_site_base.
19517
7360d2ac
JJ
19518 PR rtl-optimization/47366
19519 * fwprop.c (forward_propagate_into): Return bool. If
19520 any changes are made, -fnon-call-exceptions is used and
19521 REG_EH_REGION note is present, call purge_dead_edges
19522 and return true if it purged anything.
19523 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19524 any EH edges were purged.
19525
e90b336f
JL
195262011-01-21 Jeff Law <law@redhat.com>
19527
19528 PR rtl-optimization/41619
19529 * caller-save.c (setup_save_areas): Break out code to determine
19530 which hard regs are live across calls by examining the reload chains
19531 so that it is always used.
19532 Eliminate code which checked REG_N_CALLS_CROSSED.
19533
3ffe07e1
JJ
195342011-01-21 Jakub Jelinek <jakub@redhat.com>
19535
19536 PR tree-optimization/47355
19537 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19538 NOP has non-debug uses beyond PHIs in new_bb.
19539
1c7d0b34
AO
195402011-01-21 Alexandre Oliva <aoliva@redhat.com>
19541
19542 PR debug/47106
19543 * cfgexpand.c (account_used_vars_for_block): Only account vars
19544 that are annotated as used.
19545 (estimated_stack_frame_size): Don't set TREE_USED.
19546 * tree-dfa.c (create_var_ann): Mark variable as used.
19547
f99cc488
RG
195482011-01-21 Richard Guenther <rguenther@suse.de>
19549
19550 PR middle-end/47395
19551 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19552
3bc27de7
RG
195532011-01-21 Richard Guenther <rguenther@suse.de>
19554
19555 PR tree-optimization/47365
19556 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19557 (vn_reference_lookup_pieces): Adjust.
19558 (vn_reference_lookup): Likewise.
19559 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19560 (vn_reference_lookup_3): Only look through kills if in
19561 VN_WALKREWRITE mode.
19562 (vn_reference_lookup_pieces): Adjust.
19563 (vn_reference_lookup): Likewise.
19564 (visit_reference_op_load): Likewise.
19565 (visit_reference_op_store): Likewise.
19566 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19567 (compute_avail): Likewise.
19568 (eliminate): Likewise.
19569
d8debb1d
JJ
195702011-01-21 Jakub Jelinek <jakub@redhat.com>
19571
19572 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19573 DECL_IGNORED_P non-reg vars if they are used.
19574
3a2df831
JJ
19575 PR tree-optimization/47391
19576 * varpool.c (const_value_known_p): Return false if
19577 decl is volatile.
19578
1dd584a2
KT
195792011-01-21 Kai Tietz <kai.tietz@onevision.com>
19580
19581 PR bootstrap/47215
19582 * config/i386/i386.c (ix86_local_alignment): Handle
19583 case for va_list_type_node is nil.
19584 (ix86_canonical_va_list_type): Likewise.
19585
7f9f095e
AM
195862011-01-21 Alan Modra <amodra@gmail.com>
19587
19588 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19589 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19590
837b01f6
RR
195912011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19592
19593 * config/arm/arm.md (define_attr type): Rename f_load
19594 and f_store to f_fpa_load and f_fpa_store. Update.
19595 (write_conflict): Deal with rename fallout.
19596 (*push_fp_multi): Likewise.
19597 * config/arm/fpa.md (f_load): Use f_fpa_load.
19598 (f_store): Use f_fpa_store.
19599 (*movsf_fpa): Likewise.
19600 (*movdf_fpa): Likewise.
19601 (*movxf_fpa): Likewise.
19602 (*thumb2_movsf_fpa): Likewise.
19603 (*thumb2_movdf_fpa): Likewise.
19604 (*thumb2_movxf_fpa): Likewise.
19605 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19606 f_loadd and f_stored.
19607 (*thumb2_movdi_vfp): Likewise.
19608 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19609 (*thumb2_movsi_vfp): Likewise.
19610 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19611 Use f_loads instead of f_load.
19612 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19613
a1a79768
AS
196142011-01-20 Anatoly Sokolov <aesok@post.ru>
19615
19616 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19617 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19618 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19619 (xtensa_mode_dependent_address_p): New function.
19620 (constantpool_address_p): Make static. Change return type to bool.
19621 Change argument type to const_rtx. Use CONST_INT_P predicate.
19622
427f6cec
AO
196232011-01-20 Alexandre Oliva <aoliva@redhat.com>
19624
19625 PR debug/46583
19626 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19627
583ac69c
JJ
196282011-01-20 Jakub Jelinek <jakub@redhat.com>
19629
19630 PR debug/47283
19631 * cfgexpand.c (expand_debug_expr): Instead of generating
19632 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19633 etc. handling.
19634
93e452ed
RG
196352011-01-20 Richard Guenther <rguenther@suse.de>
19636
19637 PR middle-end/47370
19638 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19639 the pointer operand of MEM_REFs.
19640
28fc44f3
JJ
196412011-01-20 Jakub Jelinek <jakub@redhat.com>
19642
19643 PR tree-optimization/46130
19644 * ipa-split.c (consider_split): If return_bb contains non-virtual
19645 PHIs other than for retval or if split_function would not adjust it,
19646 refuse to split.
19647
ddd268f2
RG
196482011-01-20 Richard Guenther <rguenther@suse.de>
19649
19650 PR tree-optimization/47167
19651 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19652 Revert previous change, only avoid enumeral type changes.
19653
882020aa
MS
196542011-01-19 Mike Stump <mikestump@comcast.net>
19655
19656 * doc/tm.texi.in (BRANCH_COST): Englishify.
19657 * doc/tm.texi (BRANCH_COST): Likewise.
19658
7edb6247
DS
196592011-01-19 Dodji Seketeli <dodji@redhat.com>
19660
19661 PR c++/47291
19662 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
19663 (gen_scheduled_generic_parms_dies): New functions.
19664 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19665 generation for the end of CU compilation.
19666 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 19667
23d5ed5d
AO
196682011-01-19 Alexandre Oliva <aoliva@redhat.com>
19669
19670 PR debug/46240
19671 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19672 debug bind stmt on merge edges.
19673
37d6a488
AO
196742011-01-19 Alexandre Oliva <aoliva@redhat.com>
19675
19676 PR debug/47079
19677 PR debug/46724
19678 * function.c (instantiate_expr): Instantiate incoming rtl of
19679 implicit arguments, and recurse on VALUE_EXPRs.
19680 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19681 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19682
689f2c82
AO
196832011-01-19 Alexandre Oliva <aoliva@redhat.com>
19684
19685 * c-parser.c (c_parser_for_statement): Initialize
19686 collection_expression.
19687
03029de4
JM
196882011-01-19 Joseph Myers <joseph@codesourcery.com>
19689
19690 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19691
3e03217e
JM
196922011-01-19 Joseph Myers <joseph@codesourcery.com>
19693
19694 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19695 (LINK_SHLIB_SPEC): Don't use %(link_path).
19696 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19697
5bbe9b3f
JM
196982011-01-19 Joseph Myers <joseph@codesourcery.com>
19699
19700 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19701 (NO_SHARED_LIB_SUPPORT): Remove.
19702 (LINK_SHLIB_SPEC): Remove one conditional definition.
19703
368e0b39
JM
197042011-01-19 Joseph Myers <joseph@codesourcery.com>
19705
19706 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19707 %{call_shared}.
19708 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19709 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19710 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19711 %{call_shared} and conditionals on these options not being passed.
19712 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19713 %{call_shared}.
19714
ed7656f6
JJ
197152011-01-19 Jakub Jelinek <jakub@redhat.com>
19716
68457901
JJ
19717 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19718 simplify.
19719
ed7656f6
JJ
19720 * ipa-split.c: Spelling fixes.
19721
e0d1958f
RH
197222011-01-19 Richard Henderson <rth@redhat.com>
19723
19724 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19725 (*mulsi3): Likewise.
19726
27098b6b
RH
19727 * longlong.h [__mn10300__] (count_leading_zeros): New.
19728 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19729 [__mn10300__] (add_ssaaaa, subddmmss): New.
19730 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19731 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19732
d6be7c36
UW
197332011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19734
19735 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19736
b1efde2a
RH
197372011-01-19 Richard Henderson <rth@redhat.com>
19738
44217823
RH
19739 * config/mn10300/mn10300.md (addsi3_flags): New.
19740 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19741 (subsi3_flags, subc_internal, subdi3): New.
19742 (subdi3_internal, *subdi3_degenerate): New.
19743 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19744
37a185d7
RH
19745 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19746 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19747 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19748 * config/mn10300/mn10300-protos.h: Update.
19749 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19750 (return_ret): Likewise. Rename from return_internal_regs.
19751 (return_internal): Remove.
19752
040c5757
RH
19753 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19754 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19755 (mn10300_legitimate_constant_p): Likewise.
19756 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19757 (mn10300_frame_size): New.
19758 (mn10300_expand_prologue): Use it.
19759 (mn10300_expand_epilogue): Likewise.
19760 (mn10300_initial_offset): Likewise.
19761 * config/mn10300/mn10300-protos.h: Update.
19762 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19763 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19764 (prologue, epilogue, return_internal): Tidy output code.
19765 (mn10300_store_multiple_operation, return): Likewise.
19766 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19767 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19768 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19769 (load_pic, am33_load_pic): New.
19770 (mn10300_load_pic0, mn10300_load_pic1): New.
19771
bad41521
RH
19772 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19773 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19774 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19775 (cc_flags_for_mode, cc_flags_for_code): New.
19776 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19777 overflow flag is not valid. Validate that the flags we need
19778 for the comparison are valid.
19779 (mn10300_output_cmp): Remove.
19780 (mn10300_output_add): New.
19781 (mn10300_select_cc_mode): Use cc_flags_for_code.
19782 (mn10300_split_cbranch): New.
19783 (mn10300_match_ccmode): New.
19784 (mn10300_split_and_operand_count): New.
19785 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19786 to the function.
19787 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19788 (addsi3): ... here. Use mn10300_output_add.
19789 (*addsi3_flags): New.
19790 (*am33_subsi3, *mn10300_subsi3): Merge...
19791 (subsi3): ... here. Use attribute isa.
19792 (*subsi3_flags): New.
19793 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19794 when possible.
19795 (*am33_andsi3, *mn10300_andsi3): Merge...
19796 (andsi3): ... here.
19797 (*andsi3_flags): New.
19798 (andsi3 splitters): New.
19799 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19800 (iorsi3): ... here.
19801 (*iorsi3_flags): New.
19802 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19803 (xorsi3): ... here.
19804 (*xorsi3_flags): New.
19805 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19806 (one_cmplsi2): ... here.
19807 (*one_cmplsi2_flags): New.
19808 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19809 instead of "dax" in constraints. Use mn10300_split_cbranch.
19810 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19811 use matching constraints to eliminate a self-comparison.
19812 (*integer_conditional_branch): Rename from integer_conditional_branch.
19813 Use int_mode_flags to match CC_REG.
19814 (*cbranchsi4_btst, *btstsi): New.
19815 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19816 mn10300_split_cbranch.
19817 (*am33_cmpsf): Rename from am33_cmpsf.
19818 (*float_conditional_branch): Rename from float_conditional_branch.
19819 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19820 (zero_extendqisi2): ... here.
19821 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19822 (zero_extendhisi2): ... here.
19823 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19824 (extendqisi2): ... here.
19825 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19826 (extendhisi2): ... here.
19827 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19828 (ashlsi3): ... here.
19829 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19830 (lshrsi3): ... here.
19831 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19832 (ashrsi3): ... here.
19833 (consecutive add peephole): Remove.
19834 * config/mn10300/predicates.md (label_ref_operand): New.
19835 (int_mode_flags): New.
19836 (CCZN_comparison_operator): New.
19837
9efb4993
RH
19838 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19839 (throughput_42_latency_43): New reservation.
19840 (mulsidi3, umulsidi3): New expanders.
19841 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19842 the MDR register to allocation; separately allocate the low and
19843 high parts of the DImode result.
19844 (umulsidi3_internal): Similarly.
19845 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19846 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19847 (udivsi3, umodsi3): Remove.
19848 (udivmodsi4, divmodsi4): New expanders.
19849 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19850 (*divmodsi4): Simiarly.
19851 (ext_internal): New.
19852
c25a21f5
RH
19853 * config/mn10300/constraints.md ("z"): New constraint.
19854 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19855 (FIXED_REGISTERS): Don't fix MDR.
19856 (CALL_USED_REGSITERS): Reformat nicely.
19857 (REG_ALLOC_ORDER): Add MDR.
19858 (enum regclass): Add MDR_REGS.
19859 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19860 (IRA_COVER_CLASSES): Add MDR_REGS.
19861 (REGNO_REG_CLASS): Handle MDR_REG.
19862 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19863 (mn10300_register_move_cost): Likewise.
19864 * config/mn10300/mn10300.md (MDR_REG): New.
19865 (*movsi_internal): Handle moves to/from MDR_REGS.
19866
36846b26
RH
19867 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19868 POST_MODIFY.
19869 (mn10300_secondary_reload): Tidy combination reload classes.
19870 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19871 addresses for AM33. Allow symbolic offsets for reg+imm.
19872 (mn10300_regno_in_class_p): New.
19873 (mn10300_legitimize_reload_address): New.
19874 * config/mn10300/mn10300.h (enum reg_class): Remove
19875 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19876 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19877 SP_OR_GENERAL_REGS.
19878 (REG_CLASS_NAMES): Update to match.
19879 (REG_CLASS_CONTENTS): Likewise.
19880 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19881 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19882 (REGNO_IN_RANGE_P): Remove.
19883 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19884 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19885 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19886 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19887 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19888 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19889 (REGNO_GENERAL_P): New.
19890 (HAVE_POST_MODIFY_DISP): New.
19891 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19892 (LEGITIMIZE_RELOAD_ADDRESS): New.
19893 * config/mn10300/mn10300-protos.h: Update.
19894
8b119bb6
RH
19895 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19896 DATA_REGS for AM33 stack-pointer destination.
19897 (mn10300_preferred_output_reload_class): Likewise.
19898 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19899 into a form appropriate for ...
19900 (TARGET_SECONDARY_RELOAD): New.
19901 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19902 * config/mn10300/mn10300-protos.h: Update.
19903 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19904 reload_insi; use the "A" constraint for the scratch; handle AM33
19905 moves of sp to non-address registers.
19906
b1efde2a
RH
19907 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19908 (*movqi_internal): ... here.
19909 (*am33_movhi, *mn10300_movhi): Merge into...
19910 (*movhi_internal): ... here.
19911 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19912 as the source/destination of moves from/to SP.
19913 (movsf): Only allow for AM33-2.
1c3ba85b 19914 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
19915 any integer constant constraint. Only allow for AM33-2. Tidy
19916 all of the alternative outputs.
19917 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19918 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19919 for MN103.
19920 (udivsi3, umodsi3): New patterns for MN103 only.
19921
b899fd78
JR
199222011-01-19 Joern Rennecke <amylaar@spamcop.net>
19923
19924 * doc/tm.texi.in: Spell out that a lack of register class unions
19925 can lead to ICEs.
19926 * doc/tm.texi: Regenerate.
19927
afaaa67d
JJ
199282011-01-19 Jakub Jelinek <jakub@redhat.com>
19929
2e0642cd
JJ
19930 PR rtl-optimization/47337
19931 * dce.c (check_argument_store): New function.
19932 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19933
afaaa67d
JJ
19934 PR tree-optimization/47290
19935 * tree-eh.c (infinite_empty_loop_p): New function.
19936 (cleanup_empty_eh): Use it.
19937
d2cd871f
SE
199382011-01-18 Steve Ellcey <sje@cup.hp.com>
19939
19940 PR target/46997
19941 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19942 (a64_expand_widen_sum): Ditto.
19943 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19944 (vec_extract_evenodd_help): Ditto.
19945 (vec_extract_evenv4hi): Ditto.
19946 (vec_extract_oddv4hi): Ditto.
19947 (vec_extract_evenv2si): Ditto.
19948 (vec_extract_oddv2si): Ditto.
19949 (vec_extract_evenv2sf): Ditto.
19950 (vec_extract_oddv2sf): Ditto.
19951 (vec_pack_trunc_v4hi: Ditto.
19952 (vec_pack_trunc_v2si): Ditto.
19953 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19954 (vec_interleave_highv8qi): Ditto.
19955 (mix1_r): Ditto.
19956 (vec_extract_oddv8qi): Ditto.
19957 (vec_interleave_lowv4hi): Ditto.
19958 (vec_interleave_highv4hi): Ditto.
19959 (vec_interleave_lowv2si): Ditto.
19960 (vec_interleave_highv2si): Ditto.
19961
41a1208a
JDA
199622011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19963
19964 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19965 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19966 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19967 (pa_c_mode_for_suffix): New.
19968 (TARGET_EXPAND_BUILTIN): Define.
19969 (TARGET_C_MODE_FOR_SUFFIX): Define.
19970 (pa_builtins): Define.
19971 (pa_init_builtins): Register __float128 type and init new support
19972 builtins.
19973 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19974 * config/pa/quadlib.c (_U_Qfcopysign): New.
19975
1ecad98e
EB
199762011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19977
19978 PR middle-end/46894
19979 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19980 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19981 are defined.
19982
d4f2460a
UW
199832011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19984
19985 PR tree-optimization/47179
19986 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19987 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19988
4994da65
RG
199892011-01-18 Richard Guenther <rguenther@suse.de>
19990
19991 PR rtl-optimization/47216
19992 * emit-rtl.c: Include tree-flow.h.
19993 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19994 of replicating it with different semantics.
19995 * Makefile.in (emit-rtl.o): Adjust.
19996
1eb458d1
RR
199972011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19998
38be4072 19999 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 20000 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 20001
e7ef91dc
JJ
200022011-01-18 Jakub Jelinek <jakub@redhat.com>
20003
20004 PR rtl-optimization/47299
20005 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 20006 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
20007 * expmed.c (expand_widening_mult): Don't try to optimize constant
20008 multiplication if op0 has VOIDmode. Convert op1 constant to mode
20009 before using it.
20010
535b7874
RW
200112011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20012
20013 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
20014 spacing after 'e.g.', typos, comma, hyphenation.
20015
27bf36f3
RH
200162011-01-17 Richard Henderson <rth@redhat.com>
20017
8a5b5449
RH
20018 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
20019 (rx_restricted_mem_operand): New.
20020 (rx_shift_operand): Use register_operand.
20021 (rx_source_operand, rx_compare_operand): Likewise.
20022 * config/rx/rx.md (addsi3_flags): New expander.
20023 (adddi3): Rewrite as expander.
20024 (adc_internal, *adc_flags, adddi3_internal): New patterns.
20025 (subsi3_flags): New expander.
20026 (subdi3): Rewrite as expander.
20027 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
20028
784f69be
RH
20029 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
20030 (rx_init_builtins): Remove sat builtin.
20031 (rx_expand_builtin): Likewise.
20032 * config/rx/rx.md (ssaddsi3): New.
20033 (*sat): Rename from sat. Represent the CC_REG input.
20034
f033541c
RH
20035 * config/rx/predicates.md (rshift_operator): New.
20036 * config/rx/rx.c (rx_expand_insv): Remove.
20037 * config/rx/rx-protos.h: Update.
20038 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
20039 operand to the canonical position.
20040 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
20041 (*bitclr, *bitclr_in_memory): Similarly.
20042 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
20043 (insv): Retain the zero_extract in the expansion.
20044
34fee389
RH
20045 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
20046 (bswaphi2, bitinvert, revw): Likewise.
20047
265c835f
RH
20048 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
20049 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
20050 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
20051 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
20052 (bitset, bitset_in_memory): Likewise.
20053 (bitinvert, bitinvert_in_memory): Likewise.
20054 (bitclr, bitclr_in_memory): Likewise.
20055 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
20056 (rx_strend, rx_cmpstrn): Likewise.
20057 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
20058 (bitop peep2 patterns): Remove.
20059
b4d83be3
RH
20060 * config/rx/rx.c (rx_match_ccmode): New.
20061 * config/rx/rx-protos.h: Update.
20062 * config/rx/rx.md (abssi2): Clobber, don't set flags.
20063 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
20064 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
20065 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
20066 (fix_truncsfsi2, floatsisf2): Likewise.
20067 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
20068 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
20069 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
20070 (*subsi3_flags, *xorsi3_flags): New.
20071
d0acb939
RH
20072 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
20073
c06fc3d9
RH
20074 * config/rx/rx.c (rx_print_operand): Remove workaround for
20075 unsplit comparison operations.
20076
2882702b
RH
20077 * config/rx/rx.md (movsicc): Split after reload.
20078 (*movsicc): Merge *movsieq and *movsine via match_operator.
20079 (*stcc): New pattern.
20080
6f7310f2
RH
20081 * config/rx/rx.c (rx_float_compare_mode): Remove.
20082 * config/rx/rx.h (rx_float_compare_mode): Remove.
20083 * config/rx/rx.md (cstoresi4): Split after reload.
20084 (*sccc): New pattern.
20085
e963cb1a
RH
20086 * config/rx/predicates.md (label_ref_operand): New.
20087 (rx_z_comparison_operator): New.
20088 (rx_zs_comparison_operator): New.
20089 (rx_fp_comparison_operator): New.
20090 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
20091 Validate that the flags are set properly for the comparison.
20092 (rx_gen_cond_branch_template): Remove.
20093 (rx_cc_modes_compatible): Remove.
20094 (mode_from_flags): New.
20095 (flags_from_code): Rename from flags_needed_for_conditional.
20096 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
20097 (rx_select_cc_mode): Likewise.
20098 (rx_split_fp_compare): New.
20099 (rx_split_cbranch): New.
20100 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
20101 (*cbranchsi4): Use match_operator and rx_split_cbranch.
20102 (*cbranchsf4): Similarly.
20103 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
20104 match_operator and rx_split_cbranch.
20105 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
20106 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
20107 (*cmpsi): Rename from cmpsi.
20108 (*tstsi): Rename from tstsi.
20109 (*cmpsf): Rename from cmpsf; use CC_Fmode.
20110 (*conditional_branch): Rename from conditional_branch.
20111 (*reveresed_conditional_branch): Remove.
20112 (b<code>): Remove expander.
20113 * config/rx/rx-protos.h: Update.
20114
af530bb4
RH
20115 * config/rx/rx.c (rx_compare_redundant): Remove.
20116 * config/rx/rx.md (cmpsi): Don't use it.
20117 * config/rx/rx-protos.h: Update.
20118
27bf36f3
RH
20119 * config/rx/rx-modes.def (CC_F): New mode.
20120 * config/rx/rx.c (rx_select_cc_mode): New.
20121 * config/rx/rx.h (SELECT_CC_MODE): Use it.
20122 * config/rx/rx-protos.h: Update.
20123
d7fde127
RH
201242011-01-17 Richard Henderson <rth@redhat.com>
20125
20126 * except.c (dump_eh_tree): Fix stray ; after for statement.
20127
6ff38230
RG
201282011-01-17 Richard Guenther <rguenther@suse.de>
20129
20130 PR tree-optimization/47313
20131 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
20132 handling before copying the body. Properly deal with
20133 by-reference result in SSA form.
20134
114ce554
ILT
201352011-01-17 Ian Lance Taylor <iant@google.com>
20136
bf5cd92b 20137 PR target/47219
114ce554
ILT
20138 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
20139 (struct_value_alias_set): Don't define.
20140 (sparc_option_override): Don't set sparc_sr_alias_set and
20141 struct_value_alias_set.
20142 (save_or_restore_regs): Use gen_frame_mem rather than calling
20143 set_mem_alias_set.
20144 (sparc_struct_value_rtx): Likewise.
20145
98c6d93c
L
201462011-01-17 H.J. Lu <hongjiu.lu@intel.com>
20147
20148 PR target/47318
7a81008b 20149 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
20150 (_mm_maskstore_pd): Likewise.
20151 (_mm_maskload_ps): Likewise.
20152 (_mm_maskstore_ps): Likewise.
20153 (_mm256_maskload_pd): Change mask to __m256i.
20154 (_mm256_maskstore_pd): Likewise.
20155 (_mm256_maskload_ps): Likewise.
20156 (_mm256_maskstore_ps): Likewise.
20157
20158 * config/i386/i386-builtin-types.def: Updated.
20159 (ix86_expand_special_args_builtin): Likewise.
20160
20161 * config/i386/i386.c (bdesc_special_args): Update
20162 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
20163 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
20164 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
20165 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
20166
20167 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
20168 Use <avxpermvecmode> on mask register.
20169 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
20170
b9361af2 201712011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
20172 Michael Haubenwallner <michael.haubenwallner@salomon.at>
20173 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
20174
20175 PR target/46655
20176 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
20177 if <= USHRT_MAX in 32-bit mode.
20178
b7ae9eb5
RW
201792011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20180
20181 * doc/install.texi (Configuration, Specific): Wrap long
20182 lines in examples. Allow line wrapping in long options
20183 and URLs where beneficial for PDF output.
20184
4377fad9
RS
201852011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
20186
20187 * config/mips/mips.c (mips_classify_symbol): Don't return
20188 SYMBOL_PC_RELATIVE for nonlocal labels.
20189
55959ffa 201902011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 20191
55959ffa
EB
20192 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
20193
201942011-01-15 Jan Hubicka <jh@suse.cz>
20195
20196 PR tree-optimization/47276
be46831f
JH
20197 * ipa.c (function_and_variable_visibility): Do not try to mark alias
20198 declarations as needed.
20199
05842ff5
MJ
202002011-01-15 Martin Jambor <mjambor@suse.cz>
20201
20202 * common.opt (fdevirtualize): New flag.
20203 * doc/invoke.texi (Option Summary): Document it.
20204 * opts.c (default_options_table): Add devirtualize flag.
20205 * ipa-prop.c (detect_type_change): Return immediately if
20206 devirtualize flag is not set.
20207 (detect_type_change_ssa): Likewise.
20208 (compute_known_type_jump_func): Likewise.
20209 (ipa_analyze_virtual_call_uses): Likewise.
20210
f65cf2b7
MJ
202112011-01-14 Martin Jambor <mjambor@suse.cz>
20212
20213 PR tree-optimization/45934
20214 PR tree-optimization/46302
20215 * ipa-prop.c (type_change_info): New type.
20216 (stmt_may_be_vtbl_ptr_store): New function.
20217 (check_stmt_for_type_change): Likewise.
20218 (detect_type_change): Likewise.
20219 (detect_type_change_ssa): Likewise.
20220 (compute_complex_assign_jump_func): Check for dynamic type change.
20221 (compute_complex_ancestor_jump_func): Likewise.
20222 (compute_known_type_jump_func): Likewise.
20223 (compute_scalar_jump_functions): Likewise.
20224 (ipa_analyze_virtual_call_uses): Likewise.
20225 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
20226
eb5bb0fd
JM
202272011-01-14 Joseph Myers <joseph@codesourcery.com>
20228
20229 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
20230 * config/i386/i386.opt (msse5): New Alias.
20231
f2060fbe
JM
202322011-01-14 Joseph Myers <joseph@codesourcery.com>
20233
20234 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
20235 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20236 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20237 * config/sparc/sparc.h (CC1_SPEC): Likewise.
20238
3a7b4385
JM
202392011-01-14 Joseph Myers <joseph@codesourcery.com>
20240
20241 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
20242 -mcpu options.
20243 * config/sparc/linux64.h (CC1_SPEC): Likewise.
20244 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
20245 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
20246 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
20247 Likewise.
20248 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
20249
a7b778f8
JM
202502011-01-14 Joseph Myers <joseph@codesourcery.com>
20251
38be4072 20252 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 20253
a7edae0a
MS
202542011-01-14 Mike Stump <mikestump@comcast.net>
20255
20256 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
20257 * config/fr30/fr30.md: Likweise
20258 (movsi_push): Likewise.
20259 (movsi_pop): Likewise.
20260 (enter_func): Likewise.
20261 * config/moxie/moxie.md (movsi_push): Likewise.
20262 (movsi_pop): Likewise.
20263
cbabf03f
JM
202642011-01-14 Joseph Myers <joseph@codesourcery.com>
20265
20266 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
20267 %{no_archive} %{exact_version}.
20268 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
20269 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
20270 %{no_archive} %{exact_version}.
20271 * config/mips/openbsd.h (LINK_SPEC): Likewise.
20272 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
20273 * config/mips/vxworks.h: Likewise.
20274
438da41a
JM
202752011-01-14 Joseph Myers <joseph@codesourcery.com>
20276
38be4072 20277 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 20278
da290a42
JM
202792011-01-14 Joseph Myers <joseph@codesourcery.com>
20280
20281 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
20282 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
20283
8989d00e
JM
202842011-01-14 Joseph Myers <joseph@codesourcery.com>
20285
20286 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
20287 -nodefaultlib.
20288
a3010a69
JM
202892011-01-14 Joseph Myers <joseph@codesourcery.com>
20290
20291 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
20292 for mcpu not cpu.
20293 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
20294 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
20295 not cpu.
20296 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
20297 Don't handle -shlib.
20298
e7f2f537
JM
202992011-01-14 Joseph Myers <joseph@codesourcery.com>
20300
20301 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
20302 (CC1_SPEC): Don't handle -profile.
20303
34830bfd
JM
203042011-01-14 Joseph Myers <joseph@codesourcery.com>
20305
20306 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
20307 * config/mips/mips.h (CC1_SPEC): Likewise.
20308
b2d36e74
JM
203092011-01-14 Joseph Myers <joseph@codesourcery.com>
20310
20311 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
20312 * config/mips/mips.h (CC1_SPEC): Likewise.
20313
dabadc52
JM
203142011-01-14 Joseph Myers <joseph@codesourcery.com>
20315
20316 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
20317 * config/m32r/linux.h (LINK_SPEC): Likewise.
20318 * config/mips/linux.h (LINK_SPEC): Likewise.
20319 * config/mips/linux64.h (LINK_SPEC): Likewise.
20320 * config/sparc/linux.h (LINK_SPEC): Likewise.
20321 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
20322 LINK_SPEC): Likewise.
20323 * config/xtensa/linux.h (LINK_SPEC): Likewise.
20324
43ee6785
JM
203252011-01-14 Joseph Myers <joseph@codesourcery.com>
20326
20327 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
20328 %{version:-v}.
20329 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
20330
45e79dfd
JM
203312011-01-14 Joseph Myers <joseph@codesourcery.com>
20332
20333 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
20334 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20335
37e9e71d
JM
203362011-01-14 Joseph Myers <joseph@codesourcery.com>
20337
20338 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
20339
bb127cd8
RO
203402011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20341
20342 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
20343 supports -Bstatic/-Bdynamic.
20344 * configure: Regenerate.
20345
89a012ea 203462011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 20347 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
20348
20349 PR target/46037
20350 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
20351 when checking debug_info_level. Test write_symbols instead of
20352 debug_hooks->var_location when setting flag_var_tracking_uninit.
20353
7352c013
RG
203542011-01-14 Richard Guenther <rguenther@suse.de>
20355
20356 PR tree-optimization/47179
20357 * target.def (ref_may_alias_errno): New target hook.
20358 * targhooks.h (default_ref_may_alias_errno): Declare.
20359 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
20360 (default_ref_may_alias_errno): New function.
20361 * target.h (struct ao_ref_s): Declare.
20362 * tree-ssa-alias.c: Include target.h.
20363 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
20364 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
20365 (targhooks.o): Likewise.
20366 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
20367 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
20368
9a6c9288
RG
203692011-01-14 Richard Guenther <rguenther@suse.de>
20370
20371 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
20372
0fdb0d27
RG
203732011-01-14 Richard Guenther <rguenther@suse.de>
20374
20375 PR tree-optimization/47280
20376 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
20377 return CFG changes.
20378 (tree_ssa_forward_propagate_single_use_vars): Deal with
20379 CFG changes from associate_plusminus.
20380
8f66db3b
RG
203812011-01-14 Richard Guenther <rguenther@suse.de>
20382
20383 PR middle-end/47281
20384 Revert
20385 2011-01-11 Richard Guenther <rguenther@suse.de>
20386
280d9630
EB
20387 PR tree-optimization/46076
20388 * tree-ssa.c (useless_type_conversion_p): Conversions from
20389 unprototyped to empty argument list function types are useless.
8f66db3b 20390
6c0c92e6
RG
203912011-01-14 Richard Guenther <rguenther@suse.de>
20392
20393 PR tree-optimization/47286
280d9630 20394 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 20395
db09f943
MJ
203962011-01-14 Martin Jambor <mjambor@suse.cz>
20397
20398 PR middle-end/46823
20399 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
20400
dde8a3a4
AS
204012011-01-13 Anatoly Sokolov <aesok@post.ru>
20402
20403 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
20404 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20405 * config/xtensa/xtensa.c (xtensa_libcall_value,
20406 xtensa_function_value_regno_p): New functions.
20407 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20408
a2b63a20
KT
204092011-01-13 Kai Tietz <kai.tietz@onevision.com>
20410
20411 PR c++/47213
20412 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
20413 PE specific hook.
20414 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
20415 New function prototype.
20416 * config/i386/winnt.c (i386_pe_assemble_visibility):
20417 Warn only if attribute was specified by user.
20418
b41f0b34
MM
204192011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
20420
20421 PR target/47251
20422 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
20423 floating point.
20424 (floatunsdidf2_fcfidu): Ditto.
20425
3f3c098d
AK
204262011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20427
20428 * config/s390/s390.c (print_operand_address): Replace 'error' with
20429 'output_operand_lossage'.
20430 (print_operand): Likewise.
20431
29fa95ed
JL
204322011-01-13 Jeff Law <law@redhat.com>
20433
280d9630 20434 PR rtl-optimization/39077
29fa95ed
JL
20435 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
20436 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
20437 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
20438 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
20439 * gcse.c (prune_insertions_deletions): New function.
20440 (compute_pre_data): Use it.
20441
71d12276
DS
204422011-01-13 Dodji Seketeli <dodji@redhat.com>
20443
20444 PR debug/PR46973
20445 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
20446 static function.
61052244 20447 (prune_unused_types_mark): Use it.
71d12276 20448
9b0f04e7
AB
204492011-01-13 Andrey Belevantsev <abel@ispras.ru>
20450
20451 PR rtl-optimization/45352
1c3ba85b 20452 * sel-sched.c: Update copyright years.
9b0f04e7 20453 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 20454 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 20455
d6a3e264
RH
204562011-01-12 Richard Henderson <rth@redhat.com>
20457
a49b692a
RH
20458 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20459 (TARGET_MD_ASM_CLOBBERS): New.
20460
126b1483
RH
20461 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20462 (TARGET_DELEGITIMIZE_ADDRESS): New.
20463
f3d9d2e0
RH
20464 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20465 (clzsi2, *bsch): New patterns.
20466
d84760c9
RH
20467 * config/mn10300/mn10300.md (INT): New mode iterator.
20468 (*mov<INT>_clr): New pattern, and peep2 to generate it.
20469
ec815d65
RH
20470 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20471 flag_split_wide_types.
20472
d6a3e264
RH
20473 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20474 (mn10300_trampoline_init): Rewrite without a template, an immediate
20475 load and a direct branch.
20476 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20477
0f8ab434
AS
204782011-01-12 Anatoly Sokolov <aesok@post.ru>
20479
20480 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20481 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20482 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20483 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20484
d8a24b65
KT
204852011-01-12 Kai Tietz <kai.tietz@onevision.com>
20486
20487 PR debug/47209
20488 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20489 of type.
20490
56e22cab
JH
204912011-01-12 Jan Hubicka <jh@suse.cz>
20492
20493 PR driver/47244
20494 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20495 (PLUGIN_COND_CLOSE): New macro.
20496 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20497
4b18b3c2
RG
204982011-01-12 Richard Guenther <rguenther@suse.de>
20499
20500 PR lto/47259
20501 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20502 register variables in a MEM_REF.
20503
8e38461c
JM
205042011-01-12 Joseph Myers <joseph@codesourcery.com>
20505
20506 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20507 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20508 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20509 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20510 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20511 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20512 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20513 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20514 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20515 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20516 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20517 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20518 * config/gnu-user.h: New. Copied from linux.h.
20519 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20520 GNU_USER_TARGET_STARTFILE_SPEC.
20521 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20522 GNU_USER_TARGET_ENDFILE_SPEC.
20523 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20524 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20525 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20526 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20527 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20528 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20529 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20530 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20531 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20532 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20533 * config/arm/linux-eabi.h (CC1_SPEC): Use
20534 GNU_USER_TARGET_CC1_SPEC.
20535 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20536 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20537 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20538 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20539 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20540 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20541 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20542 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20543
a570fc16
RG
205442011-01-12 Richard Guenther <rguenther@suse.de>
20545
20546 PR other/46946
20547 * doc/invoke.texi (ffast-math): Document it is turned on
20548 with -Ofast.
20549
b0223c3e
JH
205502011-01-12 Jan Hubicka <jh@suse.cz>
20551
20552 PR tree-optimization/47233
ca1e00b3
EB
20553 * opts.c (common_handle_option): Disable ipa-reference with profile
20554 feedback.
b0223c3e 20555
1c3ba85b 205562011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
20557
20558 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
20559 error message.
20560
d853ee42
NP
205612011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20562
20563 * c-parser.c (c_lex_one_token): Updated and reindented some
20564 comments. No changes in code.
20565
4053a5a0
ILT
205662011-01-11 Ian Lance Taylor <iant@google.com>
20567
20568 * godump.c (go_output_var): Don't output the variable if there is
20569 already a type with the same name.
20570
fa3e04d2
ILT
205712011-01-11 Ian Lance Taylor <iant@google.com>
20572
20573 * godump.c (go_format_type): Don't generate float80.
20574
885fe07c
RH
205752011-01-11 Richard Henderson <rth@redhat.com>
20576
72d6e3c5
RH
20577 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20578 declaration. Rewrite for both speed and size.
20579 (mn10300_address_cost_1): Remove.
20580 (mn10300_register_move_cost): New.
20581 (mn10300_memory_move_cost): New.
20582 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20583 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20584 extensions, shifts, BSWAP, CLZ.
20585 (mn10300_wide_const_load_uses_clr): Remove.
20586 (TARGET_REGISTER_MOVE_COST): New.
20587 (TARGET_MEMORY_MOVE_COST): New.
20588 * config/mn10300/mn10300-protos.h: Update.
20589 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20590
df37c023
RH
20591 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20592 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20593 * config/mn10300/mn10300-protos.h: Update.
20594 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20595 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20596 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20597 (*test_int_bitfield, *test_byte_bitfield): Remove.
20598 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 20599 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 20600
85a337b5
RH
20601 * config/mn10300/constraints.md ("c"): Rename from "A".
20602 ("A", "D"): New constraint letters.
20603 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20604 (fmssf4, fnmasf4, fnmssf4): Likewise.
20605
a5c727e3
RH
20606 * config/mn10300/mn10300.md (isa): New attribute.
20607 (enabled): New attribute.
20608
0d9e23f4
RH
20609 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20610 (abssf2, negsf2): Define only for hardware fp.
20611 (sqrtsf2): Reformat.
20612 (addsf3, subsf3, mulsf3): Merge expander and insn.
20613
c157b3f0
RH
20614 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20615 (DEBUGGER_AUTO_OFFSET): Remove.
20616 (DEBUGGER_ARG_OFFSET): Remove.
20617
cc909bba
RH
20618 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20619 Emit register stores with the same offsets as the hardware.
20620 (mn10300_store_multiple_operation): Don't check that the register
20621 save offsets are monotonic.
20622 * config/mn10300/mn10300-protos.h: Update.
20623
e3b5c2f3
RH
20624 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20625
885fe07c
RH
20626 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20627 in terms of the value on the stack, not the MDR register.
20628
6e701822
JH
206292011-01-11 Jan Hubicka <jh@suse.cz>
20630
20631 PR lto/45721
20632 PR lto/45375
20633 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20634 (symbol_alias_set_destroy, symbol_alias_set_contains,
20635 propagate_aliases_backward): Declare.
20636 * lto-streamer-out.c (struct sets): New sturcture.
20637 (trivally_defined_alias): New function.
20638 (output_alias_pair_p): Rewrite.
20639 (output_unreferenced_globals): Fix output of alias pairs.
20640 (produce_symtab): Likewise.
20641 * ipa.c (function_and_variable_visibility): Set weak alias destination
20642 as needed in lto.
20643 * varasm.c (symbol_alias_set_t): Remove.
20644 (symbol_alias_set_destroy): Export.
20645 (propagate_aliases_forward, propagate_aliases_backward): New functions
20646 based on ...
20647 (compute_visible_aliases): ... this one; remove.
20648 (trivially_visible_alias): New
20649 (trivially_defined_alias): New.
20650 (remove_unreachable_alias_pairs): Rewrite.
20651 (finish_aliases_1): Reorganize code checking if alias is defined.
20652 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20653 in LTO mode.
20654
1b248907
RG
206552011-01-11 Richard Guenther <rguenther@suse.de>
20656
20657 PR tree-optimization/46076
20658 * tree-ssa.c (useless_type_conversion_p): Conversions from
20659 unprototyped to empty argument list function types are useless.
20660
b1923f0a
RG
206612011-01-11 Richard Guenther <rguenther@suse.de>
20662
20663 PR middle-end/45235
20664 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20665 volatile MEMs as MEM_READONLY_P.
20666
e98965af
RG
206672011-01-11 Richard Guenther <rguenther@suse.de>
20668
20669 PR tree-optimization/47239
20670 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20671
9f9ca914
JL
206722011-01-11 Jeff Law <law@redhat.com>
20673
1ee3ea05 20674 PR tree-optimization/47086
9f9ca914
JL
20675 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20676 IVs from statements that might throw.
20677
345fdcb7
JH
206782011-01-10 Jan Hubicka <jh@suse.cz>
20679
20680 PR lto/45375
20681 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20682
c459c97b
JH
206832011-01-10 Jan Hubicka <jh@suse.cz>
20684
20685 PR lto/45375
20686 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20687 when correcting profile.
20688
06c9eb51
JH
206892011-01-10 Jan Hubicka <jh@suse.cz>
20690
20691 PR lto/46083
20692 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20693 DECL_FINI_PRIORITY.
20694 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20695 Restore DECL_FINI_PRIORITY.
20696
ae9fd815
RW
206972011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20698
20699 * doc/gimple.texi: Fix quoting of multi-word return values in
20700 @deftypefn statements. Ensure presence of return value. Wrap
20701 overlong @deftypefn lines.
20702 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20703 descriptions of removed functions.
20704 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20705 of multi-word return value in @deftypefn statement.
20706
0ecb4a7c
RW
207072011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20708
20709 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20710 (Conditional Expressions, Logical Operators)
20711 (Statement and operand traversals): Do not indent smallexample
20712 code. Fix duplicate function argument in example.
20713
2e5e346d
JL
207142011-01-10 Jeff Law <law@redhat.com>
20715
1ee3ea05 20716 PR tree-optimization/47141
2e5e346d
JL
20717 * ipa-split.c (split_function): Handle case where we are
20718 returning a value and the return block has a virtual operand phi.
20719
cf9712cc
JH
207202011-01-10 Jan Hubicka <jh@suse.cz>
20721
1c3ba85b 20722 PR tree-optimization/47234
cf9712cc
JH
20723 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20724 (pass_feedback_split_functions): Declare.
20725 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20726 tree-profile.
20727 * ipa-split.c (gate_split_functions): Update comments; disable
20728 split-functions for profile_arc_flag and branch_probabilities.
20729 (gate_feedback_split_functions): New function.
20730 (execute_feedback_split_functions): New function.
20731 (pass_feedback_split_functions): New global var.
20732
94cd932c
L
207332011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20734
20735 PR lto/46760
20736 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20737 calling gimple_call_set_cannot_inline.
20738
fbbfcaf1
IS
207392011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20740
20741 * config/darwin-sections.def: Remove unused section.
20742
d06865bf
DK
207432011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20744
20745 PR c++/47218
20746 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20747
96bbfbac
NP
207482011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20749
20750 PR objc/47232
20751 * c-parser.c (c_parser_declaration_or_fndef): Improved
20752 error message.
20753
1ba6516f
KT
207542011-01-09 Kai Tietz <kai.tietz@onevision.com>
20755
20756 * config/i386/winnt.c (i386_pe_start_function): Make sure
20757 to switch back to function's section.
20758
0c5d770e
IS
207592011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20760
20761 PR gcc/46902
20762 PR testsuite/46912
20763 * plugin.c: Move include of dlfcn.h from here...
20764 * system.h: ... to here.
20765
207662011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
20767
20768 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20769 file name.
20770 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20771 two extra empty pages in PDF output.
20772
046608a3
NP
207732011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20774
20775 PR objc/47078
20776 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20777 for error recovery purposes behave as if it was not specified so
20778 that the default type is usd.
20779
8cb114b9
JH
207802011-01-07 Jan Hubicka <jh@suse.cz>
20781
20782 PR tree-optmization/46469
20783 * ipa.c (function_and_variable_visibility): Clear needed flags on
20784 nodes with external decls; handle weakrefs merging correctly.
20785
b294a75e
JM
207862011-01-07 Joseph Myers <joseph@codesourcery.com>
20787
20788 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20789 not false.
20790
96bdf9b4
JH
207912011-01-07 Jan Hubicka <jh@suse.cz>
20792
f60c2554 20793 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
20794 and no longer claim that gold is required for linker plugin.
20795 * configure: Regenerate.
20796 * gcc.c (PLUGIN_COND): New macro.
20797 (LINK_COMMAND_SPEC): Use it.
20798 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20799 * config.in (HAVE_LTO_PLUGIN): New.
20800 * configure.ac (--with-lto-plugin): New parameter; autodetect
20801 HAVE_LTO_PLUGIN.
20802
17afc0fe
JH
208032011-01-07 Jan Hubicka <jh@suse.cz>
20804
20805 PR tree-optimization/46367
20806 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20807 when we can update original.
20808 (cgraph_mark_inline_edge): Sanity check.
20809 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20810
d4c48c0f
UW
208112011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20812
20813 * config/spu/spu.h (ASM_COMMENT_START): Define.
20814
96f5b137
L
208152011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20816
20817 PR driver/42445
20818 * gcc.c (%>S): New.
20819 (SWITCH_KEEP_FOR_GCC): Likewise.
20820 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20821 (do_spec_1): Handle "%>".
20822
20823 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20824
c6a8f6de
JJ
208252011-01-07 Jakub Jelinek <jakub@redhat.com>
20826
c21bbd7a
JJ
20827 PR target/47201
20828 * config/i386/i386.c (ix86_delegitimize_address): If
20829 simplify_gen_subreg fails, return orig_x.
20830
c6a8f6de
JJ
20831 PR bootstrap/47187
20832 * value-prof.c (gimple_stringop_fixed_value): Handle
20833 lhs of the call properly.
20834
fe95fbf9
JH
208352011-01-07 Jan Hubicka <jh@suse.cz>
20836
20837 PR lto/45375
20838 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20839
14d11d40
IS
208402011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20841
72e961c8
EB
20842 * target.def (function_switched_text_sections): New hook.
20843 * doc/tm.texi: Regenerated.
20844 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 20845 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
20846 (final_scan_insn): Call function_switched_text_sections when a
20847 mid-function section change occurs.
14d11d40 20848 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
20849 * config/darwin-protos.h (darwin_function_switched_text_sections):
20850 Likewise.
14d11d40 20851 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 20852 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 20853
0b764288
IS
208542011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20855
20856 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20857 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20858 the secondary code fragment when outputting for DWARF == 2.
20859
2ac6bb04
AS
208602011-01-07 Anatoly Sokolov <aesok@post.ru>
20861
20862 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20863 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20864 Remove.
20865 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20866 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20867
9f82de11
EB
208682011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20869
20870 PR debug/46704
280d9630
EB
20871 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20872 when it is not empty.
9f82de11
EB
20873
208742011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 20875
1ed72abf 20876 Bobcat Enablement
14b52538 20877 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 20878 (case ${target}): Add btver1.
14b52538 20879 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 20880 -march=native recognize btver1 processors.
14b52538 20881 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 20882 btver1 def_and_undef
14b52538 20883 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
20884 btver1 cost table.
20885 (m_BTVER1): New definition.
20886 (m_AMD_MULTIPLE): Includes m_BTVER1.
20887 (initial_ix86_tune_features): Add btver1 tune.
20888 (processor_target_table): Add btver1 entry.
20889 (static const char *const cpu_names): Add btver1 entry.
20890 (software_prefetching_beneficial_p): Add btver1.
20891 (ix86_option_override_internal): Add btver1 instruction sets.
20892 (ix86_issue_rate): Add btver1.
20893 (ix86_adjust_cost): Add btver1.
14b52538 20894 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
20895 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20896 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
20897 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20898
e1a973d8
RO
208992011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20900
20901 PR target/43309
20902 * config/i386/i386.c (legitimize_tls_address)
20903 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20904 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20905 (tls_initial_exec_64_sun): New pattern.
20906
c73f67c5
GP
209072011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20908
20909 * doc/invoke.texi (Overall Options): Improve wording and markup
20910 of the description of -wrapper.
20911
bc4c6f9c
JM
209122011-01-06 Joseph Myers <joseph@codesourcery.com>
20913
20914 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20915 rdynamic, threads): New Driver options.
20916
adb75db0
RO
209172011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20918
20919 PR target/38118
20920 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20921 if coming from .tdata.
20922 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20923
402c1cb4
JH
209242011-01-06 Jan Hubicka <jh@suse.cz>
20925
20926 PR lto/47188
20927 * collect2.c (main): Do not enable LTOmode when plugin is active.
20928
a4da6485
RO
209292011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20930
20931 PR other/45915
20932 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20933 --version output if supported.
20934 * configure: Regenerate.
20935
028dbdf4
JM
209362011-01-06 Joseph Myers <joseph@codesourcery.com>
20937
20938 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20939 Driver options.
20940
dfe776dd
JJ
209412011-01-06 Jakub Jelinek <jakub@redhat.com>
20942
20943 PR c/47150
20944 * c-convert.c (convert): When converting a complex expression
20945 other than COMPLEX_EXPR to a different complex type, ensure
20946 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20947 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20948 when converting COMPLEX_TYPE.
20949
210dedfe
IR
209502011-01-06 Ira Rosen <irar@il.ibm.com>
20951
20952 PR tree-optimization/47139
20953 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20954 only the last reduction value is used outside the loop. Update
20955 documentation.
20956
cd33a412
JM
209572011-01-05 Joseph Myers <joseph@codesourcery.com>
20958
20959 * config/rtems.opt: New.
20960 * config.gcc (*-*-rtems*): Use rtems.opt.
20961
819edd94
CF
209622011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20963
20964 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20965 processors do not support 3DNow instructions.
20966
dc242c4a
UW
209672011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20968
20969 * config/spu/spu.c (spu_option_override): Set parameter
20970 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20971
be286227
JH
209722011-01-05 Jan Hubicka <jh@suse.cz>
20973
20974 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20975 at the command line.
20976
644e637f
MJ
209772011-01-05 Martin Jambor <mjambor@suse.cz>
20978
20979 PR lto/47162
20980 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20981 deltas on streamed outgoing edges.
20982 (output_node_opt_summary): Output info for outgoing edges only when
20983 the node is in new parameter set.
20984 (output_cgraph_opt_summary): New parameter set, passed to the two
20985 aforementioned functions. Update its forward declaration and its
20986 callee too.
20987
7bd11157
TT
209882011-01-05 Tom Tromey <tromey@redhat.com>
20989
20990 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20991 operator to c_finish_omp_atomic.
20992 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20993 (build_unary_op): Update.
20994 (build_modify_expr): Update.
20995 (build_asm_expr): Update.
20996
f626b979
UW
209972011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20998
20999 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
21000 newly inserted insns.
21001 (pad_bb): Likewise.
21002 (spu_emit_branch_hint): Likewise.
21003 (insert_hbrp_for_ilb_runout): Likewise.
21004 (spu_machine_dependent_reorg): Call df_finish_pass after
21005 schedule_insns returns.
21006
4c825c02
UW
210072011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21008
21009 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
21010
5e9fba51
EB
210112011-01-05 Eric Botcazou <ebotcazou@adacore.com>
21012
21013 PR tree-optimization/47005
21014 * tree-sra.c (struct access): Add 'non_addressable' bit.
21015 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
21016 (decide_one_param_reduction): Return 0 if the parameter is passed by
21017 reference and one of the accesses in the group is non_addressable.
21018
3ebb5ca6
EB
210192011-01-04 Eric Botcazou <ebotcazou@adacore.com>
21020
21021 PR tree-optimization/47056
21022 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
21023 (mark_load): Likewise. Handle FUNCTION_DECL specially.
21024 (mark_store): Likewise. Pass STMT to ipa_record_reference.
21025
d5d4d14e
EB
210262011-01-04 Eric Botcazou <ebotcazou@adacore.com>
21027
21028 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
21029 initializer. Skip view conversions from aggregate types.
21030
d996ef70
KT
210312011-01-04 Kai Tietz <kai.tietz@onevision.com>
21032
21033 PR bootstrap/47055
21034 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
21035
509d65dd 210362011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
21037
21038 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
21039 obvious typo.
21040
55c623b5
UW
210412011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21042
21043 * function.c (thread_prologue_and_epilogue_insns): Do not crash
21044 on empty epilogue sequences.
21045
b98d6b35
JM
210462011-01-04 Joseph Myers <joseph@codesourcery.com>
21047
21048 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
21049 non-static): New Driver options.
21050
a0d43bac
JZ
210512011-01-04 Jie Zhang <jie@codesourcery.com>
21052
21053 PR driver/47137
21054 * gcc.c (default_compilers[]): Set combinable field to 0
21055 for all assembly languages.
21056
2b18eb32
MX
210572011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
21058
21059 * config/mips/loongson3a.md: New file.
21060 * config/mips/mips.md: Include loongson3a.md.
21061 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
21062 TUNE_LOONGSON_3A.
21063
42a48c4f
EB
210642011-01-03 Eric Botcazou <ebotcazou@adacore.com>
21065
21066 PR middle-end/47017
21067 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
21068 instead of convert_memory_address_addr_space on the base expression.
21069
9c1732c4
UW
210702011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21071
21072 * config/spu/spu.c (spu_option_override): Update error text
21073 for bad -march= / -mtune= values.
21074
aa474365
UW
210752011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21076
21077 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
21078 if branch-hint optimization will be performed.
21079
9766135b
JJ
210802011-01-03 Jakub Jelinek <jakub@redhat.com>
21081
371556ee
JJ
21082 PR tree-optimization/47148
21083 * ipa-split.c (split_function): Convert arguments to
21084 DECL_ARG_TYPE if possible.
21085
1ac12fa2
JJ
21086 PR tree-optimization/47155
21087 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
21088 when computing uns.
21089
9766135b
JJ
21090 PR rtl-optimization/47157
21091 * combine.c (try_combine): If undobuf.other_insn becomes
21092 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
21093 and set *new_direct_jump_p too.
21094
f4a2e571
SP
210952011-01-03 Sebastian Pop <sebastian.pop@amd.com>
21096
21097 PR tree-optimization/47021
21098 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
21099
9f8e43c0
JJ
211002011-01-03 Jakub Jelinek <jakub@redhat.com>
21101
21102 * gcc.c (process_command): Update copyright notice dates.
21103 * gcov.c (print_version): Likewise.
21104 * gcov-dump.c (print_version): Likewise.
21105 * mips-tfile.c (main): Likewise.
21106 * mips-tdump.c (main): Likewise.
21107
1a2e38f3
MJ
211082011-01-03 Martin Jambor <mjambor@suse.cz>
21109
21110 PR tree-optimization/46801
21111 * tree-sra.c (type_internals_preclude_sra_p): Check whether
21112 aggregate fields start at byte boundary instead of the bit-field flag.
21113
56b721c5
L
211142011-01-03 H.J. Lu <hongjiu.lu@intel.com>
21115
21116 PR driver/47137
21117 * gcc.c (main): Revert revision 168407.
21118
839d549b
MJ
211192011-01-03 Martin Jambor <mjambor@suse.cz>
21120
21121 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
21122
4ce99a20 211232011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
21124
21125 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
21126 vector optab to expand vector/scalar shift, update gimple to vector.
21127
76df0ae6
MJ
211282011-01-03 Martin Jambor <mjambor@suse.cz>
21129
21130 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
21131 a thunk.
21132
ce47fda3
MJ
211332011-01-03 Martin Jambor <mjambor@suse.cz>
21134
21135 PR tree-optimization/46984
21136 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
21137 HOST_WIDE_INT.
21138 (cgraph_create_indirect_edge): Fixed line length.
21139 (cgraph_indirect_call_info): Declare.
21140 (cgraph_make_edge_direct) Update declaration.
21141 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
21142 (cgraph_create_indirect_edge): Use it.
21143 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
21144 callees.
21145 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
21146 the new thunk_delta representation.
21147 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
21148 HOST_WIDE_INT.
21149 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
21150 (ipa_read_indirect_edge_info): Likewise.
21151 * lto-cgraph.c (output_edge_opt_summary): New function.
21152 (output_node_opt_summary): Call it on all outgoing edges.
21153 (input_edge_opt_summary): New function.
21154 (input_node_opt_summary): Call it on all outgoing edges.
21155
1e67fa1f
L
211562011-01-02 H.J. Lu <hongjiu.lu@intel.com>
21157
21158 PR driver/47137
21159 * gcc.c (main): Don't check have_o when settting combine_inputs.
21160
6656b2ac
EB
211612011-01-02 Eric Botcazou <ebotcazou@adacore.com>
21162
21163 * regrename.c: Add general comment describing the pass.
21164 (struct du_head): Remove 'length' field.
21165 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
21166 (regrename_optimize): Do not sort chains. Rework comments, add others.
21167 Force renaming to the preferred class (if any) in the first pass and do
21168 not consider registers that belong to it in the second pass.
21169 (create_new_chain): Do not set 'length' field.
21170 (scan_rtx_reg): Likewise.
21171
bc470c24
JJ
211722011-01-02 Jakub Jelinek <jakub@redhat.com>
21173
4e996296
JJ
21174 PR tree-optimization/47140
21175 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
21176 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
21177 to bit_value_binop.
21178
bc470c24 21179 PR rtl-optimization/47028
6656b2ac
EB
21180 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
21181 parm_birth_insn instead of at the beginning of first bb.
bc470c24 21182
5af62fcd 211832011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
21184
21185 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
21186 Remove the word "see" before "@pxref".
21187 * doc/rtl.texi: Remove the word "see" before "@pxref".
21188
0e20c89f
JH
211892011-01-01 Jan Hubicka <jh@suse.cz>
21190
6656b2ac
EB
21191 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
21192 memory.
0e20c89f 21193
220e83ca
KT
211942011-01-01 Kai Tietz <kai.tietz@onevision.com>
21195
21196 PR target/38662
6656b2ac 21197 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 21198
ad41bd84 21199\f
797103eb 21200Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
21201
21202Copying and distribution of this file, with or without modification,
21203are permitted in any medium without royalty provided the copyright
21204notice and this notice are preserved.