]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
dwarf2out.h (dwarf2out_frame_debug_init): Declare.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
722279e4
BS
12011-04-01 Bernd Schmidt <bernds@codesourcery.com>
2
3 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
4 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5 out of ...
6 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7 * final.c (final_start_function): Call the new function rather
8 than using a NULL argument for dwarf2out_frame_debug.
9
1ca1dad5
UW
102011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11
12 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
13
49568e45
KT
142011-04-01 Kai Tietz <ktietz@redhat.com>
15
16 * config.gcc (*-*-mingw*): Allow as option the
17 posix threading model.
18 * config/i386/mingw32.h ( SPEC_PTHREAD1, SPEC_PTHREAD2):
19 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
20 definition.
21 (CPP_SPEC): Add pthread/no-pthread handling.
22 (LIB_SPEC): Likewise.
23 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
24 (LIB_SPEC): Likewise.
25 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
26 flag to pass -pthread option for shared libgcc build.
27 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
28 for shared libgcc build.
29 * config/i386/t-mingw-pthread: New file.
30 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
31 New define to enable use of library pthread by default.
32 * config/i386/mingw.opt (pthread): New driver option.
33 (no-pthread): New driver option.
34 * config/i386/cygming.opt: Make sure trailing empty line
35 is retained.
36 * config/i386/mingw-w64.opt: Likewise.
37
636b4106
GF
382011-04-01 Gary Funck <gary@intrepid.com>
39
40 * c-decl.c (grokdeclarator): Fix formatting.
41
f04713ee
RS
422011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
43
44 * expr.c (emit_block_move_via_movmem): Use n_generator_args
45 instead of n_operands.
46 (set_storage_via_setmem): Likewise.
47 * optabs.c (maybe_gen_insn): Likewise.
48 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
49 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
50 (mips_expand_builtin_direct): Likewise.
51 * config/spu/spu.c (expand_builtin_args): Likewise.
52
b29387ee
RS
532011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
54
55 * recog.h (insn_data_d): Add n_generator_args.
56 * genoutput.c (data): Likewise.
57 (output_insn_data): Print it.
58 (max_opno, num_dups): Delete.
59 (scan_operands): Just fill in "d->operand[...]".
60 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
61
e792559a
RS
622011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
63
64 * gensupport.h (pattern_stats): New structure.
65 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
66 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
67 (max_operand_1, max_operand_vec): Delete.
68 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
69
e8110d6f
NF
702011-03-31 Nathan Froyd <froydnj@codesourcery.com>
71
72 * emit-rtl.c (emit_pattern_after_setloc): New function.
73 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
74 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
75 (emit_pattern_after): New function.
76 (emit_insn_after, emit_jump_insn_after): Call it.
77 (emit_call_insn_after, emit_debug_insn_after): Likewise.
78 (emit_pattern_before_setloc): New function.
79 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
80 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
81 Likewise.
82 (emit_pattern_before): New function.
83 (emit_insn_before, emit_jump_insn_before): Call it.
84 (emit_call_insn_before, emit_debug_insn_before): Likewise.
85
576f85f1
RH
862011-03-31 Richard Henderson <rth@redhat.com>
87
88 * dwarf2out.c (dw_separate_line_info_ref): Remove.
89 (dw_separate_line_info_entry): Remove.
90 (enum dw_line_info_opcode): New.
91 (dw_line_info_entry): Use it.
92 (dw_line_info_table, dw_line_info_table_p): New.
93 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
94 (line_info_table, line_info_label_num): Remove.
95 (line_info_table_in_use): Remove.
96 (separate_line_info_table): Remove.
97 (separate_line_info_table_allocated): Remove.
98 (separate_line_info_table_in_use): Remove.
99 (LINE_INFO_TABLE_INCREMENT): Remove.
100 (line_info_label_num): New.
101 (cur_line_info_table): New.
102 (text_section_line_info, cold_text_section_line_info): New.
103 (separate_line_info): New.
104 (SEPARATE_LINE_CODE_LABEL): Remove.
105 (print_dwarf_line_table): Remove.
106 (debug_dwarf): Don't dump it.
107 (output_one_line_info_table): New.
108 (output_line_info): Use it.
109 (new_line_info_table): New.
110 (set_cur_line_info_table): New.
111 (dwarf2out_switch_text_section): Use it.
112 (dwarf2out_begin_function): Likewise.
113 (push_dw_line_info_entry): New.
114 (dwarf2out_source_line): Rewrite for new line info tables.
115 (dwarf2out_init): Remove dead initailizations.
116
300d83d9
JM
1172011-03-31 Joseph Myers <joseph@codesourcery.com>
118
119 * opts.h (cl_option): Add comments to fields. Add bit-fields for
120 various flags.
121 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
122 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
123 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
124 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
125 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
126 * opt-functions.awk (flag_init, switch_bit_fields): New.
127 (switch_flags): Don't handle flags moved to bit-fields. Don't
128 generate CL_MISSING_OK or CL_SAVE.
129 * optc-gen.awk: Update to generate bit-field output as well as
130 flags field.
131 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
132 bit-field instead of CL_REJECT_DRIVER flag.
133 * opts-common.c (generate_canonical_option,
134 decode_cmdline_option): Use bit-fields instead of CL_* flags.
135 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
136 instead of CL_REJECT_NEGATIVE flag.
137 * toplev.c (print_switch_values): Use cl_report bit-field instead
138 of CL_REPORT flag.
139
d4d73ce2
EB
1402011-03-31 Eric Botcazou <ebotcazou@adacore.com>
141
142 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
143 a zero minimum index only if it is redundant.
144
b8faca75
VM
1452011-03-31 Vladimir Makarov <vmakarov@redhat.com>
146
147 PR rtl-optimization/48381
148 * ira-color.c (assign_hard_reg): Use hard reg set intersection
149 instead of ira_class_hard_reg_index for calculating conflicting
150 hard registers.
151
7d11cebe
SB
1522011-03-31 Steven Bosscher <steven@gcc.gnu.org>
153
154 * cprop.c: Clean up hash table building.
155 (reg_avail_info): Remove.
156 (oprs_available_p): Remove.
157 (record_last_reg_set_info): Remove.
158 (record_last_set_info): Remove.
159 (reg_available_p): New function.
160 (gcse_constant_p): Do not treat unfolded conditions as constants.
161 (make_set_regs_unavailable): New function.
162 (hash_scan_set): Simplify with new reg_available_p.
163 (compute_hash_table_work): Traverse insns stream only once.
164 Do not compute reg_avail_info. Traverse insns in reverse order.
165 Record implicit sets after recording explicit sets from the block.
166
98faf84f
MM
1672011-03-31 Michael Matz <matz@suse.de>
168
169 * builtins.c (build_va_arg_indirect_ref): Use
170 build_simple_mem_ref_loc.
171
f52d97da
AS
1722011-03-31 Anatoly Sokolov <aesok@post.ru>
173
174 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
175 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
176 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
177 (h8300_mode_dependent_address_p): New function.
178 (h8300_get_index): Make static.
179
e16b6fd0
JL
1802011-03-31 Jeff Law <law@redhat.com>
181
10c51983
JL
182 * reload1.c (elimination_effects): Fix typo in recent change.
183
e16b6fd0
JL
184 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
185 typo potentially leading to null pointer dereference.
186
187 * caller-save.c (new_saved_hard_reg): Eliminate return value.
188 (setup_save_areas): Corresponding changes to avoid useless
189 assignments.
190
191 * jump.c (reversed_comparison_code_parts): Avoid successive return
192 statements when REVERSE_CONDITION is defined.
193
194 * expr.c (expand_assignment): Avoid useless assignments.
195 (expand_expr_real_1): Likewise.
196 (expand_expr_real_2): Avoid useless statements.
197
198 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
199
200 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
201
202 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
203 statements.
204
205 * stmt.c (expand_expr_stmt): Avoid useless assignment.
206
eb1eb914
JM
2072011-03-31 Joseph Myers <joseph@codesourcery.com>
208
209 PR target/47109
210 * doc/tm.texi.in (TARGET_VERSION): Remove.
211 * doc/tm.texi: Regenerate.
212 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
213 * collect2.c (main): Don't use TARGET_VERSION.
214 * mips-tdump.c (main): Don't use TARGET_VERSION.
215 * mips-tfile.c (main): Don't use TARGET_VERSION.
216 * config.gcc (powerpc-wrs-vxworksae): Don't use
217 rs6000/vxworksae.h.
218 * config/rs6000/vxworksae.h: Remove.
219 * config/alpha/alpha.h (TARGET_VERSION): Remove.
220 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
221 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
222 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
223 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
224 * config/arm/arm.h (TARGET_VERSION): Remove.
225 * config/arm/coff.h (TARGET_VERSION): Remove.
226 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
227 * config/arm/elf.h (TARGET_VERSION): Remove.
228 * config/arm/freebsd.h (TARGET_VERSION): Remove.
229 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
230 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
231 * config/arm/pe.h (TARGET_VERSION): Remove.
232 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
233 * config/arm/semi.h (TARGET_VERSION): Remove.
234 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
235 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
236 * config/arm/vxworks.h (TARGET_VERSION): Remove.
237 * config/avr/avr.h (TARGET_VERSION): Remove.
238 * config/bfin/bfin.h (TARGET_VERSION): Remove.
239 * config/fr30/fr30.h (TARGET_VERSION): Remove.
240 * config/frv/frv.h (TARGET_VERSION): Remove.
241 * config/h8300/h8300.h (TARGET_VERSION): Remove.
242 * config/i386/cygwin.h (TARGET_VERSION): Remove.
243 * config/i386/darwin.h (TARGET_VERSION): Remove.
244 * config/i386/darwin64.h (TARGET_VERSION): Remove.
245 * config/i386/djgpp.h (TARGET_VERSION): Remove.
246 * config/i386/freebsd.h (TARGET_VERSION): Remove.
247 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
248 * config/i386/gnu.h (TARGET_VERSION): Remove.
249 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
250 * config/i386/i386elf.h (TARGET_VERSION): Remove.
251 * config/i386/linux.h (TARGET_VERSION): Remove.
252 * config/i386/linux64.h (TARGET_VERSION): Remove.
253 * config/i386/lynx.h (TARGET_VERSION): Remove.
254 * config/i386/mingw32.h (TARGET_VERSION): Remove.
255 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
256 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
257 * config/i386/netware.h (TARGET_VERSION): Remove.
258 * config/i386/nto.h (TARGET_VERSION): Remove.
259 * config/i386/openbsd.h (TARGET_VERSION): Remove.
260 * config/i386/vxworks.h (TARGET_VERSION): Remove.
261 * config/ia64/elf.h (TARGET_VERSION): Remove.
262 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
263 * config/ia64/hpux.h (TARGET_VERSION): Remove.
264 * config/ia64/linux.h (TARGET_VERSION): Remove.
265 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
266 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
267 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
268 * config/lm32/lm32.h (TARGET_VERSION): Remove.
269 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
270 * config/m32c/m32c.h (TARGET_VERSION): Remove.
271 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
272 * config/m32r/m32r.h (TARGET_VERSION): Remove.
273 * config/m68k/linux.h (TARGET_VERSION): Remove.
274 * config/m68k/m68k.h (TARGET_VERSION): Remove.
275 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
276 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
277 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
278 * config/mep/mep.h (TARGET_VERSION): Remove.
279 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
280 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
281 * config/mips/iris6.h (MACHINE_TYPE): Remove.
282 * config/mips/linux.h (TARGET_VERSION): Remove.
283 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
284 * config/mips/vxworks.h (TARGET_VERSION): Remove.
285 * config/mmix/mmix.h (TARGET_VERSION): Remove.
286 * config/mn10300/linux.h (TARGET_VERSION): Remove.
287 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
288 * config/pa/pa.h (TARGET_VERSION): Remove.
289 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
290 * config/picochip/picochip.h (TARGET_VERSION): Remove.
291 * config/rs6000/aix.h (TARGET_VERSION): Remove.
292 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
293 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
294 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
295 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
296 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
297 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
298 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
299 * config/rs6000/linux.h (TARGET_VERSION): Remove.
300 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
301 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
302 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
303 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
304 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
305 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
306 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
307 * config/s390/linux.h (TARGET_VERSION): Remove.
308 * config/s390/s390.h (TARGET_VERSION): Remove.
309 * config/s390/tpf.h (TARGET_VERSION): Remove.
310 * config/score/score.h (TARGET_VERSION): Remove.
311 * config/sh/linux.h (TARGET_VERSION): Remove.
312 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
313 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
314 * config/sh/sh.h (TARGET_VERSION): Remove.
315 * config/sh/sh64.h (TARGET_VERSION): Remove.
316 * config/sh/superh.h (TARGET_VERSION): Remove.
317 * config/sh/vxworks.h (TARGET_VERSION): Remove.
318 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
319 * config/sparc/linux.h (TARGET_VERSION): Remove.
320 * config/sparc/linux64.h (TARGET_VERSION): Remove.
321 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
322 TARGET_NAME32, TARGET_NAME): Remove.
323 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
324 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
325 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
326 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
327 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
328 * config/spu/spu.h (TARGET_VERSION): Remove.
329 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
330 * config/v850/v850.h (TARGET_VERSION): Remove.
331 * config/vax/linux.h (TARGET_VERSION): Remove.
332 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
333 * config/xtensa/elf.h (TARGET_VERSION): Remove.
334 * config/xtensa/linux.h (TARGET_VERSION): Remove.
335
ace31bca
EB
3362011-03-31 Eric Botcazou <ebotcazou@adacore.com>
337
338 PR target/48142
339 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
340 frame-related from frame-unrelated adjustments to the stack pointer.
341
76f9db36
JJ
3422011-03-31 Jakub Jelinek <jakub@redhat.com>
343
344 * common.opt (fdebug-types-section): Move earlier.
345 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
346
b7826465
AT
3472011-03-31 Andreas Tobler <andreast@fgznet.ch>
348
349 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
350 var.
351
1290e54c
NF
3522011-03-30 Nathan Froyd <froydnj@codesourcery.com>
353
354 * tree.h (CASE_CHAIN): Define.
355 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
356 (gimple_redirect_edge_and_branch): Likewise.
357
bddc98e1
VM
3582011-03-30 Vladimir Makarov <vmakarov@redhat.com>
359
360 PR middle-end/48367
361 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
362 calculation.
363
c865e437
JL
3642011-03-30 Jeff Law <law@redhat.com>
365
b3750213 366 * PR bootstrap/48371
c865e437
JL
367 * reload1.c (reload): Fix botch in last change.
368
369 * reload.h (struct reload): Fix typo introduced in last change.
370
2cdf9574
JM
3712011-03-30 Joseph Myers <joseph@codesourcery.com>
372
373 * config/arm/arm.opt (mhard-float, msoft-float): Mark
374 Undocumented. Remove help text.
375 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
376 -mhard-float.
377
666a21a2
JM
3782011-03-30 Joseph Myers <joseph@codesourcery.com>
379
380 * doc/options.texi (NegativeAlias): Document.
381 (Alias): Mention NegativeAlias.
382 * opt-functions.awk: Handle NegativeAlias.
383 * optc-gen.awk: Disallow NegativeAlias with multiple Alias
384 arguments.
385 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
386 * opts.h (CL_NEGATIVE_ALIAS): Define.
387 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
388 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
389 OPT_mspe_.
390 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
391 Alias entries.
392 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
393 mno-spe and mno-isel instead of mspe=no and -misel=no.
394
0fa4e351
MW
3952011-03-29 Mark Wielaard <mjw@redhat.com>
396
397 * common.opt (fdebug-types-section): New flag.
398 * doc/invoke.texi: Document new -fno-debug-types-section flag.
399 * dwarf2out.c (use_debug_types): New define.
400 (struct die_struct): Mark die_id with GTY desc use_debug_types.
401 (print_die): Guard output of type unit signatures using
402 use_debug_types.
403 (build_abbrev_table): Replace assert of dwarf_version >= 4
404 with assert on use_debug_types.
405 (size_of_die): Likewise.
406 (unmark_dies): Likewise.
407 (value_format): Decide AT_ref_external form on use_debug_types.
408 (output_die): Replace dwarf_version version check guard with
409 use_debug_types where appropriate.
410 (modified_type_die): Likewise.
411 (gen_reference_type_die): Likewise.
412 (dwarf2out_start_source_file): Likewise.
413 (dwarf2out_end_source_file): Likewise.
414 (prune_unused_types_walk_attribs): Likewise.
415 (dwarf2out_finish): Likewise.
416
4648deb4
VM
4172011-03-30 Vladimir Makarov <vmakarov@redhat.com>
418
419 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
420
4f431835
RS
4212011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
422
423 PR rtl-optimization/48332
424 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
425 mode of input operand N and modeN to its actual mode.
426
f2034d06
JL
4272011-03-30 Jeff Law <law@redhat.com>
428
429 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
430 define accessor macro.
431 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
432 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
433 (reg_equiv_init): Likewise.
434 (reg_equivs_size): New variable.
435 (reg_equiv_init_size): Remove.
436 (allocate_initial_values): Move prototype to here from....
437 * integrate.h (allocate_initial_values): Remove prototype.
438 * integrate.c: Include reload.h.
439 (allocate_initial_values): Corresponding changes.
440 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
441 (fix_reg_equiv_init, no_equiv): Corresponding changes.
442 (update_equiv_regs): Corresponding changes.
443 (ira): Corresponding changes.
444 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
445 (push_secondary_reload): Corresponding changes.
446 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
447 (make_memloc, find_reloads_address): Corresponding changes.
448 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
449 (find_reloads_address_1): Corresponding changes.
450 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
451 (refers_to_regno_for_reload_p): Corresponding changes.
452 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
453 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
454 * reload1.c: Include ggc.h.
455 (grow_reg_equivs): New function.
456 (replace_pseudos_in, reload): Corresponding changes.
457 (calculate_needs_all_insns, alter_regs): Corresponding changes.
458 (eliminate_regs_1, elimination_effects): Corresponding changes.
459 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
460 (delete_output_reload): Likewise.
461 * caller-save.c (mark_referenced_regs): Corresponding changes.
462 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
463 * frv/predicates.md (frv_load_operand): Corresponding changes.
464 * microblaze/microblaze.c (double_memory_operand): Corresponding
465 changes.
466 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
467 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
468 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding
469 changes.
470 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
471 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
472 changes.
473 * pa/pa.c (emit_move_sequence): Corresponding changes.
474 * vax/vax.c (nonindexed_address_p): Corresponding changes.
475
159b81b0
RS
4762011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
477
478 PR target/47551
479 * config/arm/arm.c (coproc_secondary_reload_class): Handle
480 structure modes. Don't check neon_vector_mem_operand for
481 vector or structure modes.
482
a6217191
RS
4832011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
484 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
485
486 PR target/43590
487 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
488 operand 1 and reshuffle the operands to match.
489 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
490
bd837408
CS
4912011-03-30 Christian Schüler <cschueler@gmx.de>
492
6955d771 493 PR driver/48208
bd837408 494 * config/c.opt (F): Added 'Driver' to -F option.
6955d771 495 PR driver/48260
bd837408
CS
496 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
497 handler function.
498 * config/darwin.opt: Added '-arch' option.
499
e9c0470a
NC
5002011-03-30 Nick Clifton <nickc@redhat.com>
501
502 * config/rx/rx.md: Add peepholes and patterns to combine
503 extending loads and simple arithmetic instructions.
504 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
505 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
506 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
507 modes to use pre-decrement and post-increment addressing.
508 (rx_is_restricted_memory_address): Add range checking of REG+INT
509 addresses.
510 (rx_print_operand): Add support for %Q.
511 Fix handling of %Q.
512 (rx_memory_move_cost): Adjust cost of stores.
513 (rx_adjust_insn_length): New function.
514
8a87e7ab
JJ
5152011-03-30 Jakub Jelinek <jakub@redhat.com>
516
517 PR c/48305
518 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
519 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
520 matching arg00/arg01 types.
521
12486e03
EB
5222011-03-30 Eric Botcazou <ebotcazou@adacore.com>
523
524 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
525 last_location to UNKNOWN_LOCATION.
526
0b99eef6
L
5272011-03-30 H.J. Lu <hongjiu.lu@intel.com>
528
529 PR target/48349
530 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
531 FLOAT_SSE_REGS.
532
023592aa
JM
5332011-03-30 Joseph Myers <joseph@codesourcery.com>
534 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
535
536 PR bootstrap/48337
537 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
538 Init(PROCESSOR_V7).
539 (sparc_cpu): Likewise.
540 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
541 PROCESSOR_V7.
542
ad3b266b
VM
5432011-03-29 Vladimir Makarov <vmakarov@redhat.com>
544
545 PR target/48336
546 PR middle-end/48342
547 PR rtl-optimization/48345
548 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
549 hard regs for given mode from profitable regs when doing secondary
550 allocation.
551
633c9126
JL
5522011-03-29 Jeff Law <law@redhat.com>
553
554 PR bootstrap/48327
555 * tree-ssa-threadupdate.c (struct redirection_data): Remove
556 do_not_duplicate field.
557 (lookup_redirection_data): Corresponding changes.
558 (create_duplicates): Always create a template block.
559 (redirect_edges): Remove code which reused the original block
560 when it was going to become unreachable code.
561 (thread_block): Don't set do_not_duplicate field.
562
eb50f63a
JM
5632011-03-29 Joseph Myers <joseph@codesourcery.com>
564
565 * lto-opts.c (register_user_option_p, lto_register_user_option):
566 Make type argument unsigned.
567 * lto-streamer.h (lto_register_user_option): Make type argument
568 unsigned.
569 * opth-gen.awk: Make CL_* macros unsigned.
570 * opts-common.c (find_opt): Make lang_mask argument unsigned.
571 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
572 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
573 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
574 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
575 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
576 (find_opt): Make lang_mask argument unsigned.
577
76763a6d
VM
5782011-03-29 Vladimir Makarov <vmakarov@redhat.com>
579
580 PR rtl-optimization/48331
581 PR rtl-optimization/48334
582 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
583 for any used algorithm.
584
5c82436e
VM
5852011-03-29 Vladimir Makarov <vmakarov@redhat.com>
586
587 * ira-conflicts.c (build_object_conflicts): Add unused attribute
588 to parent_max.
589
7a81008b
UB
5902011-03-29 Uros Bizjak <ubizjak@gmail.com>
591
592 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
593 (alpha_option_override): Don't set alpha_sr_alias_set.
594 (emit_frame_store_1): Use gen_frame_mem rather than calling
595 set_mem_alias_set.
596 (alpha_expand_epilogue): Ditto.
597
86c8d1f6
IR
5982011-03-29 Ira Rosen <ira.rosen@linaro.org>
599
600 PR tree-optimization/48290
601 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
602 vectorization, check that relevant phis in the basic block after
603 the inner loop are really inner loop's exit phis.
604
0d12220f
RS
6052011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
606
e8cf17e7 607 PR debug/48190
0d12220f
RS
608 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
609 (cached_dw_loc_list_def): New structure.
610 (cached_dw_loc_list): New typedef.
611 (cached_dw_loc_list_table): New variable.
612 (cached_dw_loc_list_table_hash): New function.
613 (cached_dw_loc_list_table_eq): Likewise.
614 (add_location_or_const_value_attribute): Take a bool cache_p.
615 Cache the list when the parameter is true.
616 (gen_formal_parameter_die): Update caller.
617 (gen_variable_die): Likewise.
618 (dwarf2out_finish): Likewise.
619 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
620 while generating debug info for the decl.
621 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
622 (dwarf2out_init): Initialize cached_dw_loc_list_table.
623 (resolve_addr): Cache the result of resolving a chain of
624 location lists.
625
1756cb66
VM
6262011-03-28 Vladimir Makarov <vmakarov@redhat.com>
627
628 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
629 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 630
1756cb66
VM
631 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
632 after regstat_init_n_sets_and_refs.
633
634 * ira.c: Add more comments at the top.
635 (setup_stack_reg_pressure_class, setup_pressure_classes):
636 Add comments how we compute the register pressure classes.
637 (setup_allocno_and_important_classes): Add more comments.
638 (setup_class_translate_array, reorder_important_classes)
639 (setup_reg_class_relations): Add comments.
640
641 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
642 start of the file.
643
644 * ira-color.c: Add 2011 to the Copyright line.
645 (assign_hard_reg): Add more comments.
646 (improve_allocation): Ditto.
647
648 * ira-costs.c: Add 2011 to the Copyright line.
649 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
650 comments.
651 (setup_regno_cost_classes_by_mode): Ditto.
652
653 Initial patches from ira-improv branch:
654
655 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
656
657 * ira-build.c: (ira_create_object): Remove initialization of
658 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
659 (ira_create_allocno): Remove initialization of
660 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
661 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
662 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
663 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
664 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
665 Initialize ALLOCNO_ADD_DATA.
666 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
667 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
668 ALLOCNO_REG.
669 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
670 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
671
672 * ira.c (ira_reallocate): Remove.
673 (setup_pressure_classes): Call
674 ira_init_register_move_cost_if_necessary. Use
675 ira_register_move_cost instead of ira_get_register_move_cost.
676 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
677 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
678
679 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
680 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
681 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
682 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
683 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
684 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
685 Fix formatting.
7a81008b 686 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
687 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
688 (struct allocno_color_data): New.
689 (allocno_color_data_t): New typedef.
690 (allocno_color_data): New definition.
691 (ALLOCNO_COLOR_DATA): New macro.
692 (struct object_color_data): New.
693 (object_color_data_t): New typedef.
694 (object_color_data): New definition.
695 (OBJECT_COLOR_DATA): New macro.
696 (update_copy_costs, calculate_allocno_spill_cost): Call
697 ira_init_register_move_cost_if_necessary. Use
698 ira_register_move_cost instead of ira_get_register_move_cost.
699 (move_spill_restore, update_curr_costs): Ditto.
700 (allocno_spill_priority): Make it inline.
7a81008b 701 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
702 (struct coalesce_data, coalesce_data_t): New.
703 (allocno_coalesce_data): New definition.
704 (ALLOCNO_COALESCE_DATA): New macro.
705 (merge_allocnos, coalesced_allocno_conflict_p): Use
706 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
707 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
708 (coalesce_allocnos): Ditto.
709 (setup_coalesced_allocno_costs_and_nums): Ditto.
710 (collect_spilled_coalesced_allocnos): Ditto.
711 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
712 (setup_slot_coalesced_allocno_live_ranges): Ditto.
713 (coalesce_spill_slots): Ditto.
714 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
715 free allocno_coalesce_data.
716
717 * ira-conflicts.c: Fix formatting.
718 (process_regs_for_copy): Call
719 ira_init_register_move_cost_if_necessary. Use
720 ira_register_move_cost instead of ira_get_register_move_cost.
721 (build_object_conflicts): Optimize.
722
723 * ira-costs.c (record_reg_classes): Optimize. Call
724 ira_init_register_move_cost_if_necessary. Use
725 ira_register_move_cost, ira_may_move_in_cost, and
726 ira_may_move_out_cost instead of ira_get_register_move_cost and
727 ira_get_may_move_cost.
728 (record_address_regs): Ditto.
729 (scan_one_insn): Optimize.
730 (find_costs_and_classes): Optimize.
731 (process_bb_node_for_hard_reg_moves): Call
732 ira_init_register_move_cost_if_necessary. Use
733 ira_register_move_cost instead of ira_get_register_move_cost.
734
735 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
736 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
737 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
738 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
739 definitions.
740 (ira_initiate_emit_data, ira_finish_emit_data)
741 (create_new_allocno): New functions.
7a81008b 742 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
743 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
744 Use ira_register_move_cost instead of ira_get_register_move_cost.
745
746 * ira-int.h: Fix some comments.
7a81008b
UB
747 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
748 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
749 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
750 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
751 add_data.
752 (struct ira_allocno): Make mode and aclass a bitfield. Move other
753 bitfield after mode. Make hard_regno a short int. Make
754 hard_regno short. Remove first_coalesced_allocno and
755 next_coalesced_allocno. Move mem_optimized_dest_p,
756 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
757 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
758 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
759 temp, colorable_p. Add new member add_data.
760 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
761 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
762 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
763 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
764 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
765 (ALLOCNO_ADD_DATA): New macro.
766 (ira_emit_data_t): New typedef.
767 (struct ira_emit_data): New. Move mem_optimized_dest_p,
768 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
769 from struct ira_allocno.
770 (ALLOCNO_EMIT_DATA): New macro.
771 (ira_allocno_emit_data, allocno_emit_reg): New.
772 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 773 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
774 (OBJECT_ADD_DATA): New macro.
775 (ira_reallocate): Remove.
776 (ira_initiate_emit_data, ira_finish_emit_data): New.
777 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
778 (ira_init_register_move_cost_if_necessary): New.
779 (ira_object_conflict_iter_next): Merge into
780 ira_object_conflict_iter_cond.
7a81008b 781 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66
VM
782
783 * ira-live.c: (process_single_reg_class_operands): Call
784 ira_init_register_move_cost_if_necessary. Use
785 ira_register_move_cost instead of ira_get_register_move_cost.
786
787 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
788
789 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
790
791 * ira-costs.c: Fix formatting.
792 (cost_classes, cost_classes_num): Remove.
793 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
794 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
795 (cost_classes_del, cost_classes_htab): New.
796 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
797 (initiate_regno_cost_classes, setup_cost_classes): New.
798 (setup_regno_cost_classes_by_aclass): New.
7a81008b 799 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
800 (record_reg_classes): Use regno_cost_classes instead of
801 cost_classes. Move checking opposite operand up.
802 (record_address_regs): Use regno_cost_classes
803 instead of cost_classes.
804 (scan_one_insn): Ditto. Use always general register.
805 (print_allocno_costs): Use regno_cost_classes instead of
806 cost_classes.
807 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
808 (find_costs_and_classes): Set up cost classes for each registers.
809 Use also their mode for this. Use regno_cost_classes instead of
810 cost_classes.
811 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
812 cost_classes.
813 (free_ira_costs, ira_init_costs): Don't use cost_classes.
814 (ira_costs, ira_set_pseudo_classes): Call
815 initiate_regno_cost_classes and finish_regno_cost_classes.
816
817 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
818
819 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
820
821 * target.def (ira_cover_classes): Remove.
822
7a81008b 823 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
824
825 * doc/tm.texi.in: Ditto.
826
827 * ira-conflicts.c: Remove mentioning cover classes from the file.
828 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 829 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
830
831 * targhooks.c (default_ira_cover_classes): Remove.
832
833 * targhooks.h (default_ira_cover_classes): Ditto.
834
835 * haifa-sched.c: Remove mentioning cover classes from the file.
836 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
837 ira_pressure_classes and ira_pressure_classes_num instead of
838 ira_reg_class_cover_size and ira_reg_class_cover. Use
839 sched_regno_pressure_class instead of sched_regno_cover_class.
840 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
841 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
842
843 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
844 classes from the file.
845 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
846 (struct object_hard_regs, struct object_hard_regs_node): New.
847 (struct ira_object): New members profitable_hard_regs,
848 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
849 (struct ira_allocno): Rename cover_class to aclass. Rename
850 cover_class_cost and updated_cover_class_cost to class_cost and
851 updated_class_cost. Remove splay_removed_p and
852 left_conflict_size. Add new members colorable_p.
853 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
854 (ALLOCNO_COLORABLE_P): New macro.
855 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
856 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
857 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
858 (OBJECT_...): Rename parameter C to O.
859 (OBJECT_PROFITABLE_HARD_REGS): New macro.
860 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
861 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
862 (struct target_ira_int): New members x_ira_max_memory_move_cost,
863 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
864 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
865 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
866 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
867 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
868 x_ira_reg_class_subunion.
869 (ira_max_memory_move_cost, ira_max_register_move_cost)
870 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
871 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
872 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 873 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
874 (ira_reg_class_union): Rename to ira_reg_class_subunion.
875 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
876 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
877 (ira_tune_allocno_costs_and_cover_classes): Rename to
878 ira_tune_allocno_costs.
879 (ira_debug_hard_regs_forest): New.
880 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
881 (ira_object_conflict_iter_next): Fix comments.
7a81008b 882 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
883 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
884 cover_class to aclass.
885 (ira_allocate_and_accumulate_costs): Ditto.
886 (ira_allocate_and_set_or_copy_costs): Ditto.
887
888 * opts.c (decode_options): Remove ira_cover_class check.
889
890 * ira-color.c: Remove mentioning cover classes from the file. Use
891 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
892 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
893 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
894 (splay-tree.h): Remove include.
895 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
896 before copy_freq_compare_func.
897 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
898 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
899 New definitions.
900 (hard_regs_roots, hard_regs_node_vec): Ditto.
901 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
902 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
903 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
904 (create_new_object_hard_regs_node): Ditto.
905 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 906 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
907 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
908 Ditto.
909 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
910 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
911 (remove_unused_object_hard_regs_nodes): Ditto.
912 (enumerate_object_hard_regs_nodes): Ditto.
913 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
914 (object_hard_regs_subnode_t): Ditto.
915 (struct object_hard_regs_subnode): Ditto.
916 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
917 (setup_object_hard_regs_subnode_index): Ditto.
918 (get_object_hard_regs_subnodes_num): Ditto.
919 (form_object_hard_regs_nodes_forest): Ditto.
920 (finish_object_hard_regs_nodes_tree): Ditto.
921 (finish_object_hard_regs_nodes_forest): Ditto.
922 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 923 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
924 (pseudos_have_intersected_live_ranges_p): Rename to
925 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
926 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
927 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
928 (update_copy_costs): Remove assert. Skip cost update if the hard
929 reg does not belong the class.
930 (assign_hard_reg): Process only profitable hard regs.
931 (uncolorable_allocnos_num): Make it scalar.
932 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
933 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
934 and ira_reg_class_max_nregs.
935 (bucket_allocno_compare_func): Check frequency first.
936 (sort_bucket): Add compare function as a parameter.
937 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
938 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
939 (push_allocno_to_stack): Rewrite for checking new allocno
940 colorability.
7a81008b 941 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
942 (push_only_colorable): Pass new parameter to sort_bucket.
943 (push_allocno_to_spill): Remove.
944 (allocno_spill_priority_compare): Make it inline and rewrite.
945 (splay_tree_allocate, splay_tree_free): Remove.
946 (allocno_spill_sort_compare): New function.
947 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
948 build and use splay tree. Choose first allocno in uncolorable
949 allocno bucket to spill. Remove setting spill cost.
950 (all_conflicting_hard_regs): Remove.
951 (setup_allocno_available_regs_num): Check only profitable hard
952 regs. Print info about hard regs nodes.
953 (setup_allocno_left_conflicts_size): Remove.
954 (put_allocno_into_bucket): Don't call
7a81008b 955 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
956 (improve_allocation): New.
957 (color_allocnos): Call setup_profitable_hard_regs,
958 form_object_hard_regs_nodes_forest, improve_allocation,
959 finish_object_hard_regs_nodes_forest. Setup spill cost.
960 (print_loop_title): Use pressure classes.
961 (color_allocnso): Ditto.
962 (do_coloring): Remove allocation and freeing splay_tree_node_pool
963 and allocnos_for_spilling.
964 (ira_sort_regnos_for_alter_reg): Don't setup members
965 {first,next}_coalesced_allocno.
966 (color): Remove allocating and freeing removed_splay_allocno_vec.
967 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
968 prohibited_class_mode_regs.
969
970 * ira-lives.c: Remove mentioning cover classes from the file. Fix
971 formatting.
972 (update_allocno_pressure_excess_length): Use pressure classes.
973 (inc_register_pressure, dec_register_pressure): Check for pressure
974 class.
975 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
976 pressure class. Use ira_reg_class_nregs instead of
977 ira_reg_class_max_nregs.
978 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
979 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
980 (single_reg_class): Use ira_reg_class_nregs instead of
981 ira_reg_class_max_nregs.
982 (process_bb_node_lives): Use pressure classes.
983
984 * ira-emit.c: Remove mentioning cover classes from the file. Use
985 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
986 (change_loop): Use pressure classes.
987 (modify_move_list): Call ira_set_allocno_class instead of
988 ira_set_allocno_cover_class.
989
990 * ira-build.c: Remove mentioning cover classes from the file. Use
991 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
992 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
993 ALLOCNO_UPDATED_CLASS_COST instead of
994 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
995 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
996 (ira_create_allocno): Remove initialization of
997 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
998 ALLOCNO_COLORABLE_P.
999 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
1000 Update conflict regs for the objects.
1001 (create_cap_allocno): Remove assert. Don't propagate
1002 ALLOCNO_AVAILABLE_REGS_NUM.
1003 (ira_free_allocno_costs): New function.
1004 (finish_allocno): Change a part of code into call of
1005 ira_free_allocno_costs.
1006 (low_pressure_loop_node_p): Use pressure classes.
1007 (object_range_compare_func): Don't compare classes.
1008 (setup_min_max_conflict_allocno_ids): Ditto.
1009
1010 * loop-invariant.c: Remove mentioning cover classes from the file.
1011 Use ira_pressure_classes and ira_pressure_classes_num instead of
1012 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
1013 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
1014 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1015 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
1016 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
1017 STACK_REG_COVER_CLASS.
1018 (get_regno_cover_class): Rename to get_regno_pressure_class.
1019 (move_loop_invariants): Initialize and finalize regstat.
1020
1021 * ira.c: Remove mentioning cover classes from the file. Add
1022 comments about coloring without cover classes. Use ALLOCNO_CLASS
1023 instead of ALLOCNO_COVER_CLASS. Fix formatting.
1024 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
1025 setup_class_subset_and_memory_move_costs.
1026 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
1027 (setup_cover_and_important_classes): Rename to
1028 setup_allocno_and_important_classes.
1029 (setup_class_translate_array): New.
1030 (setup_class_translate): Call it for allocno and pressure classes.
1031 (cover_class_order): Rename to allocno_class_order.
1032 (comp_reg_classes_func): Use ira_allocno_class_translate instead
1033 of ira_class_translate.
1034 (reorder_important_classes): Set up ira_important_class_nums.
1035 (setup_reg_class_relations): Set up ira_reg_class_superunion.
1036 (print_class_cover): Rename to print_classes. Add parameter.
1037 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
1038 Print pressure classes too.
1039 (find_reg_class_closure): Rename to find_reg_classes. Don't call
1040 setup_reg_subclasses.
7a81008b 1041 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
1042 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1043 (setup_prohibited_class_mode_regs): Use
7a81008b 1044 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
1045 (clarify_prohibited_class_mode_regs): New function.
1046 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
1047 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
1048 (ira_init_once): Initialize them.
1049 (free_register_move_costs): Process them.
1050 (ira_init): Move calls of find_reg_classes and
1051 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
1052 Call clarify_prohibited_class_mode_regs.
1053 (ira_no_alloc_reg): Remove.
1054 (too_high_register_pressure_p): Use pressure classes.
1055
1056 * sched-deps.c: Remove mentioning cover classes from the file.
1057 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
1058 ira_pressure_classes and ira_pressure_classes_num instead of
1059 ira_reg_class_cover_size and ira_reg_class_cover.
1060 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
1061 sched_regno_pressure_class instead of sched_regno_cover_class.
1062 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
1063 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
1064
1065 * ira.h: Add 2010 to Copyright.
1066 (ira_no_alloc_reg): Remove external.
1067 (struct target_ira): Rename x_ira_hard_regno_cover_class,
1068 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
1069 x_ira_class_translate to x_ira_hard_regno_allocno_class,
1070 x_ira_allocno_classes_num, x_ira_allocno_classes, and
1071 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
1072 x_ira_pressure_classes, x_ira_pressure_class_translate, and
1073 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
1074 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
1075 x_ira_no_alloc_regs.
7a81008b 1076 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
1077 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
1078 ira_allocno_classes_num and ira_allocno_classes.
1079 (ira_class_translate): Rename to ira_allocno_class_translate.
1080 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
1081 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
1082 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
1083 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
1084 (ira_no_alloc_regs): New.
1085
1086 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
1087 classes from the file. Use ALLOCNO_CLASS instead of
1088 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
1089 ALLOCNO_COVER_CLASS_COST.
1090 (regno_cover_class): Rename to regno_aclass.
1091 (record_reg_classes): Use ira_reg_class_subunion instead of
1092 ira_reg_class_union.
1093 (record_address_regs): Check overflow.
1094 (scan_one_insn): Ditto.
7a81008b 1095 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
1096 (print_pseudo_costs): Use REG_N_REFS.
1097 (find_costs_and_classes): Use classes intersected with them on the
1098 1st pass. Check overflow. Use ira_reg_class_subunion instead of
1099 ira_reg_class_union. Use ira_allocno_class_translate and
1100 regno_aclass instead of ira_class_translate and regno_cover_class.
1101 Modify code for finding regno_aclass. Setup preferred classes for
1102 the next pass.
1103 (setup_allocno_cover_class_and_costs): Rename to
1104 setup_allocno_class_and_costs. Use regno_aclass instead of
1105 regno_cover_class. Use ira_set_allocno_class instead of
1106 ira_set_allocno_cover_class.
1107 (init_costs, finish_costs): Use regno_aclass instead of
1108 regno_cover_class.
1109 (ira_costs): Use setup_allocno_class_and_costs instead of
1110 setup_allocno_cover_class_and_costs.
1111 (ira_tune_allocno_costs_and_cover_classes): Rename to
1112 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
1113 by processing objects. Use ira_reg_class_max_nregs instead of
1114 ira_reg_class_nregs.
1115
1116 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
1117
1118 * sched-int.h: Remove mentioning cover classes from the file.
1119 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
1120
1121 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
1122 classes from the file.
1123 (struct reg_pref): Rename coverclass into allocnoclass.
1124 (reg_cover_class): Rename to reg_allocno_class.
1125
7a81008b 1126 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
1127
1128 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
1129
1130 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
1131
1132 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
1133
1134 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
1135
1136 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
1137
1138 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
1139
1140 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
1141
1142 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
1143
1144 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
1145
1146 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
1147 (i386_ira_cover_classes): Ditto.
1148
1149 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
1150
1151 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
1152
1153 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
1154
1155 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
1156
1157 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
1158
1159 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
1160
1161 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
1162 (mips_ira_cover_classes): Ditto.
1163
1164 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
1165
1166 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
1167
1168 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
1169
1170 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
1171
1172 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
1173
1174 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
1175 (IRA_COVER_CLASSES_VSX): Ditto.
1176
1177 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
1178 (rs6000_ira_cover_classes): Ditto.
1179
1180 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
1181
1182 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
1183
1184 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
1185
1186 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
1187
1188 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
1189
1190 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
1191
1192 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
1193
1194 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
1195
1196 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
1197
1198 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
1199
2b80199f
JJ
12002011-03-29 Jakub Jelinek <jakub@redhat.com>
1201
71dae1fe
JJ
1202 PR debug/48253
1203 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
1204 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
1205 dw_fde_unlikely_section_end_label, cold_in_std_section,
1206 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
1207 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
1208 fields.
1209 (output_fde): Use dw_fde_second_{begin,end} if second is
1210 true, otherwise dw_fde_{begin,end}.
1211 (output_call_frame_info): Test dw_fde_second_begin != NULL
1212 instead of dw_fde_switched_sections.
1213 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
1214 fields, initialize new fields. Initialize in_std_section
1215 unconditionally from the first partition.
1216 (dwarf2out_end_epilogue): Don't override dw_fde_end when
1217 dw_fde_second_begin is non-NULL.
1218 (dwarf2out_switch_text_section): Stop initializing removed
1219 dw_fde_struct fields, initialize new fields, initialize
1220 also dw_fde_end here. Set dw_fde_switch_cfi even when
1221 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
1222 (struct var_loc_list_def): Add last_before_switch field.
1223 (arange_table, arange_table_allocated, arange_table_in_use,
1224 ARANGE_TABLE_INCREMENT, add_arange): Removed.
1225 (size_of_aranges): Count !in_std_section and !second_in_std_section
1226 hunks in fdes, instead of looking at arange_table_in_use.
1227 (output_aranges): Add aranges_length argument, don't call
1228 size_of_aranges here. Instead of using aranges_table*
1229 emit ranges for fdes when !in_std_section resp.
1230 !second_in_std_section.
1231 (dw_loc_list): Break ranges crossing section switch.
1232 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 1233 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
1234 (gen_subprogram_die): Don't call add_arange. Use
1235 dw_fde_{begin,end} for first partition and if switched
1236 section dw_fde_second_{begin,end} for the second.
1237 (var_location_switch_text_section_1,
1238 var_location_switch_text_section): New functions.
1239 (dwarf2out_begin_function): Initialize cold_text_section even
1240 when function_section () isn't text_section.
1241 (prune_unused_types): Don't walk arange_table.
1242 (dwarf2out_finish): Don't needlessly test
1243 flag_reorder_blocks_and_partition when testing cold_text_section_used.
1244 If info_section_emitted, call size_of_aranges and if it indicates
1245 non-empty .debug_aranges, call output_aranges with the computed
1246 size. Stop using removed dw_fde_struct fields, use
1247 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
1248 for second.
1249
2b80199f
JJ
1250 PR debug/48203
1251 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
1252 create ENTRY_VALUE if incoming or address of incoming's MEM
1253 is a hard REG.
1254 * dwarf2out.c (mem_loc_descriptor): Don't emit
1255 DW_OP_GNU_entry_value of DW_OP_fbreg.
1256 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
1257 on ENTRY_VALUE is able to find the canonical parameter VALUE.
1258 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
1259 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
1260 ENTRY_VALUE_EXPs.
1261 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
1262 is a REG_P or MEM_P with REG_P address, compute hash directly
1263 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
1264 (preserve_only_constants): Don't clear VALUES forwaring
1265 ENTRY_VALUE to some other VALUE.
1266
8a445129
RS
12672011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
1268
1269 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
1270 instead of GEN_INT.
1271
c82fee88
EB
12722011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1273
1274 * cfgexpand.c (expand_gimple_cond): Always set the source location and
1275 block before expanding the statement.
1276 (expand_gimple_stmt_1): Likewise. Set them here...
1277 (expand_gimple_stmt): ...and not here. Tidy.
1278 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
1279 unknown.
1280
e45425ec
SB
12812011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1282
1283 * Makefile.in: New rule for cprop.o.
1284 * gcse.c: Move constant/copy propagation to cprop.c.
1285 (compute_local_properties): Only handle expression tables.
1286 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
1287 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
1288 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
1289 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 1290 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
1291 compute_cprop_data, find_used_regs, try_replace_reg,
1292 find_avail_set, cprop_jump, constprop_register, cprop_insn,
1293 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
1294 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
1295 find_bypass_set, reg_killed_on_edge, bypass_block,
1296 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
1297 execute_rtl_cprop, pass_rtl_cprop): Move to...
1298 * cprop.c: ...here. New file, constant/copy propagation for RTL
1299 moved from gcse.c to here with minor cleanups in duplicated code.
1300
c09d5426
L
13012011-03-28 H.J. Lu <hongjiu.lu@intel.com>
1302
1303 * config/i386/i386.c (flag_opts): Fix a typo in
1304 -mavx256-split-unaligned-store.
1305
9eaa7740
AS
13062011-03-28 Anatoly Sokolov <aesok@post.ru>
1307
1308 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1309 LIBCALL_VALUE): Remove macros.
1310 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1311 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1312 (h8300_function_value, h8300_libcall_value,
1313 h8300_function_value_regno_p): New functions.
1314
dcec2be2
AS
13152011-03-28 Anatoly Sokolov <aesok@post.ru>
1316
1317 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
1318
520af9ec
JL
13192011-03-28 Jeff Law <law@redhat.com>
1320
1321 * tree-ssa-threadupdate.c (redirect_edges): Call
1322 create_edge_and_update_destination_phis as needed.
1323 (create_edge_and_update_destination_phis): Accept new BB argument.
1324 All callers updated.
1325 (thread_block): Do not update the profile when threading around
1326 intermediate blocks.
1327 (thread_single_edge): Likewise.
1328 (determine_bb_domination_status): If BB is not a successor of the
1329 loop header, return NONDOMINATING.
1330 (register_jump_thread): Note when we register a jump thread around
1331 an intermediate block.
1332 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
1333 (thread_across_edge): Use it.
1334
7450b54f
TG
13352011-03-28 Tristan Gingold <gingold@adacore.com>
1336
1337 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
1338 when for_return is 2.
1339
649beb33
JL
13402011-03-28 Jeff Law <law@redhat.com>
1341
1342 * var-tracking.c (canonicalize_values_mark): Delete unused
1343 lhs assignment.
1344 (canonicalize_values_star, set_variable_part): Likewise.
1345 (clobber_variable_part, delete_variable_part): Likewise.
1346
d5b8da97
SB
13472011-03-28 Steven Bosscher <steven@gcc.gnu.org>
1348
1349 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
1350
322dd859
MJ
13512011-03-28 Martin Jambor <mjambor@suse.cz>
1352
1353 * tree-inline.c (expand_call_inline): Do not check that destination
1354 node is analyzed.
1355 (optimize_inline_calls): Assert that destination node is analyzed.
1356 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
1357 not call tree_lowering_passes.
1358 * cgraph.h (cgraph_analyze_function): Declare.
1359 * cgraphunit.c (cgraph_analyze_function): Make public.
1360
aa53e58b
JM
13612011-03-28 Joseph Myers <joseph@codesourcery.com>
1362
1363 * config/sparc/sparc-opts.h: New.
1364 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
1365 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
1366 (sparc_option_override): Store processor_type enumeration rather
1367 than string in cpu_default. Remove name and enumeration from
1368 cpu_table. Directly default -mcpu then default -mtune from -mcpu
1369 without using sparc_select. Use target_flags_explicit instead of
1370 fpu_option_set.
1371 * config/sparc/sparc.h (enum processor_type): Move to
1372 sparc-opts.h.
1373 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
1374 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
1375 HeaderInclude entry.
1376 (mcpu=, mtune=): Use Var and Enum.
1377 (sparc_processor_type): New Enum and EnumValue entries.
1378
dd350eba
RO
13792011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1380 Iain Sandoe <iains@gcc.gnu.org>
1381
1382 PR target/48245
1383 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
1384
1b29f05e
EB
13852011-03-28 Eric Botcazou <ebotcazou@adacore.com>
1386
1387 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
1388 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
1389 Insert new statements at it in lieu of STMT.
1390 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
1391 * tree-vect-stmts.c (vectorizable_store): Likewise.
1392 (vectorizable_load): Likewise.
1393
506e6808
UB
13942011-03-28 Uros Bizjak <ubizjak@gmail.com>
1395
1396 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
1397 (divtf3): Ditto.
1398 (multf3): Ditto.
1399 (subtf3): Ditto.
1400
2e939ee9
L
14012011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1402
1403 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
1404 unaligned 256bit load/store.
1405 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
1406 (*avx_movdqu<avxmodesuffix>): Likewise.
1407
5e85ab88
JDA
14082011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1409
1410 PR target/48288
1411 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
1412 * config/pa/pa.md (iordi3): Use new predicate in expander.
1413 (iorsi3): Likewise.
1414
47be3d6d
AS
14152011-03-27 Anatoly Sokolov <aesok@post.ru>
1416
506e6808 1417 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 1418 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
1419 * config/mips/mips-protos.h (mips_function_value): Remove.
1420 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
1421 (mips_function_value_1): ... this. Make static. Handle receiving
1422 the function type in 'fn_decl_or_type' argument.
1423 (mips_function_value, mips_libcall_value,
1424 mips_function_value_regno_p): New function.
1425 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1426 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1427
d253656a
L
14282011-03-27 H.J. Lu <hongjiu.lu@intel.com>
1429
1430 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
1431 and -mavx256-split-unaligned-store.
1432 (ix86_option_override_internal): Split 32-byte AVX unaligned
1433 load/store by default.
1434 (ix86_avx256_split_vector_move_misalign): New.
1435 (ix86_expand_vector_move_misalign): Use it.
1436
1437 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
1438 -mavx256-split-unaligned-store.
1439
1440 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
1441 256bit load/store. Generate unaligned store on misaligned memory
1442 operand.
1443 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
1444 256bit load/store.
1445 (*avx_movdqu<avxmodesuffix>): Likewise.
1446
1447 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
1448 -mavx256-split-unaligned-store.
1449
1ea9206a
RS
14502011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1451
1452 PR target/38598
1453 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
1454 Update commentary.
1455
b99ce2a8
RS
14562011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
1457
1458 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
1459 opno arguments with an expand_operand. Use create_input_operand.
1460 (mips_prepare_builtin_target): Delete.
1461 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
1462 functions.
1463 (mips_expand_builtin_direct): Use create_output_operand and
1464 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
1465 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
1466 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
1467
69d52339
IR
14682011-03-27 Ira Rosen <ira.rosen@linaro.org>
1469
1470 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
1471 function.
1472 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1473
ba5e9aca
EB
14742011-03-26 Eric Botcazou <ebotcazou@adacore.com>
1475
1476 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
1477 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
1478 basic blocks and call commit_edge_insertions directly.
1479 (fixup_abnormal_edges): Move from here to...
1480 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
1481 on the edges and return whether some have actually been inserted.
1482 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
1483 compensation code.
1484
5d369d58
AB
14852011-03-26 Andrey Belevantsev <abel@ispras.ru>
1486
1487 PR rtl-optimization/48144
1488 * sel-sched-ir.c (merge_history_vect): Factor out from ...
1489 (merge_expr_data): ... here.
1490 (av_set_intersect): Rename to av_set_code_motion_filter.
1491 Update all callers. Call merge_history_vect when an expression
1492 is found in both sets.
1493 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
1494
f082c000
AM
14952011-03-26 Alan Modra <amodra@gmail.com>
1496
1497 * config/rs6000/predicates.md (word_offset_memref_op): Handle
1498 cmodel medium addresses.
1499 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
1500 64-bit gpr loads and stores.
1501 (rs6000_secondary_reload_ppc64): New function.
1502 * config/rs6000/rs6000-protos.h: Declare it.
1503 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
1504
8ac5e12e
AM
15052011-03-26 Alan Modra <amodra@gmail.com>
1506
1507 PR target/47487
1508 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
1509 GNU Go in traceback table.
1510
c2654ded
RH
15112011-03-25 Richard Henderson <rth@redhat.com>
1512
1513 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
1514 if there are exactly 6 operands.
1515 (set_storage_via_setmem): Similarly.
1516
ba78087b
KT
15172011-03-25 Kai Tietz <ktietz@redhat.com>
1518
1519 * collect2.c (write_c_file_stat): Handle backslash
1520 as right-hand directory separator.
1521 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
1522 checking just for slash.
1523 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
1524 instead of checking for trailing slash.
1525 * gcc.c (record_temp_file): Use filename_cmp instead
1526 of strcmp.
1527 (do_spec_1): Likewise.
1528 (replace_outfile_spec_function): Likewise.
1529 (is_directory): Use filename_ncmp instead of strncmp.
1530 (print_multilib_info): Likewise.
1531 * gcov.c (find_source): Use filename_cmp instead
1532 instead of strcmp.
1533 (make_gcov_file_name): Fix order of slash/backslash
1534 checks.
1535 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
1536 (add_standard_paths): Likewise.
1537 * mips-tfile.c (saber_stop): Handle backslash.
1538 * prefix.c (update_path): Use filename_ncmp instead of
1539 strncmp.
1540 * profile.c (output_location): Use filename_cmp instead
1541 of strcmp.
1542 * read-md.c (handle_toplevel_file): Handle backslash.
1543 * tlink.c (frob_extension): Likewise.
1544 * tree-cfg.c (same_line_p): Use filename_cmp instead of
1545 strcmp.
1546 * tree-dump.c (dequeue_and_dump): Handle backslash.
1547 * tree.c (get_file_function_name): Likewise.
1548 * gengtype.c (read_input_list): Likewise.
1549 (get_file_realbasename): Likewise.
1550 (get_output_file_with_visibility): Use filename_cmp
1551 instead of strcmp.
1552
75f6ec9a
RS
15532011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
1554
1555 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
1556 case to VFPv1.
1557
6c4e2997
NF
15582011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1559
1560 * fold-const.c (expr_location_or): New function.
1561 (fold_truth_not_expr): Call it.
1562
0edf1bb2
JL
15632011-03-25 Jeff Law <law@redhat.com>
1564
1565 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
1566 va_end.
1567 * c-family/c-common.c (def_fn_type): Likewise.
1568 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
1569 * emit-rtl.c (gen_rtvec): Likewise.
1570 * lto/lto-lang.c (def_fn_type): Likewise.
1571
fdc2de95
RG
15722011-03-25 Richard Guenther <rguenther@suse.de>
1573
1574 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
1575 also generate copies.
1576 (fini_copy_prop): Handle constant values properly.
1577
21385db0
JJ
15782011-03-25 Jakub Jelinek <jakub@redhat.com>
1579
1580 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
1581 mode size instead of bitsize with DWARF2_ADDR_SIZE.
1582 (hash_loc_operands, compare_loc_operands): Handle
1583 DW_OP_GNU_entry_value.
1584
6510e8bb
KT
15852011-03-25 Kai Tietz <ktietz@redhat.com>
1586
1587 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
1588 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
1589 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
1590 comment and use macro TARGET_64BIT_MS_ABI instead.
1591 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
1592 and change default behavior for 32-bit MS_ABI.
1593 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
1594 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
1595 32-bit, too.
1596 (ix86_cfun_abi): Likewise.
1597 (ix86_maybe_switch_abi): Adjust comment.
1598 (init_cumulative_args): Check for bit-ness in MS_ABI case.
1599 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
1600 instead of checking for SYSV_ABI.
1601 (ix86_nsaved_sseregs): Likewise.
1602 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
1603 to 16 bytes.
1604 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
1605 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
1606 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
1607 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
1608 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
1609
34019e28
RG
16102011-03-25 Richard Guenther <rguenther@suse.de>
1611
1612 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
1613 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1614 (verify_gimple): Remove.
1615 * tree-cfg.c (verify_gimple_call): Merge verification
1616 from verify_stmts.
1617 (verify_gimple_phi): Merge verification from verify_stmts.
1618 (verify_gimple_label): New function.
1619 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
1620 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
1621 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
1622 (verify_stmts): Rename to verify_gimple_in_cfg.
1623 (verify_gimple_in_cfg): New function.
1624 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
1625 * tree-ssa.c (verify_ssa): Likewise.
1626 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
1627
605896f5
RG
16282011-03-25 Richard Guenther <rguenther@suse.de>
1629
1630 * passes.c (init_optimization_passes): Add FRE pass after
1631 early SRA.
1632
7baa7c13
BS
16332011-03-25 Bernd Schmidt <bernds@codesourcery.com>
1634 Andrew Stubbs <ams@codesourcery.com>
1635
1636 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
1637 for Cortex-A8.
1638 (arm_movdi_vfp_cortexa8): New pattern.
1639 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
1640 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
1641 instructions when tuning for Cortex-A8. Set attribute "arch".
1642 * config/arm/arm.md: Move include arm-tune.md up a bit.
1643 (define_attr "arch"): Add "onlya8" and "nota8" values.
1644 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
1645
45dbce1b
NF
16462011-03-25 Nathan Froyd <froydnj@codesourcery.com>
1647
4ff08abf 1648 PR bootstrap/48282
45dbce1b
NF
1649 Revert:
1650 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1651
1652 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1653 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
1654 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1655 * passes.c (init_optimization_passes): Move
1656 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1657
ac9a30ae
KT
16582011-03-25 Kai Tietz <ktietz@redhat.com>
1659
1660 * c-typeck.c (comptypes_internal): Replace target
1661 hook call of comp_type_attributes by version in tree.c file.
1662 * gimple.c (gimple_types_compatible_p_1): Likewise.
1663 * tree-ssa.c (useless_type_conversion_p): Likewise.
1664 * tree.c (build_type_attribute_qual_variant): Likewise.
1665 (attribute_value_equal): New static helper function.
1666 (comp_type_attributes): New function.
1667 (merge_attributes): Use attribute_value_equal for comparison.
1668 (attribute_list_contained): Likewise.
1669 * tree.h (comp_type_attributes): New prototype.
1670
afdac116
RG
16712011-03-25 Richard Guenther <rguenther@suse.de>
1672
1673 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
1674 of complex types at -O0.
1675 (verify_gimple_assign_binary): Likewise.
1676 (verify_gimple_assign_ternary): Likewise.
1677
ec6165f8
MW
16782011-03-24 Mark Wielaard <mjw@redhat.com>
1679
1680 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
1681 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1682
2a5ac39a
MW
16832011-03-24 Mark Wielaard <mjw@redhat.com>
1684
1685 PR debug/48041
1686 * dwarf2out.c (output_abbrev_section): Only write table when
1687 abbrev_die_table_in_use > 1.
1688
e533b2a4
RH
16892011-02-24 Richard Henderson <rth@redhat.com>
1690
1691 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
1692 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
1693 (alpha_expand_unaligned_load_words): Use extql.
1694 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
1695 (emit_insxl): Handle all modes for consistency.
1696
0b2a7367
RH
16972011-02-24 Richard Henderson <rth@redhat.com>
1698
1699 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
1700 (alpha_expand_unaligned_load): Likewise.
1701 (alpha_expand_unaligned_store): Likewise.
1702 (alpha_expand_unaligned_load_words): Likewise.
1703 (alpha_expand_unaligned_store_words): Likewise.
1704 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
1705 (alpha_split_lock_test_and_set_12): Likewise.
1706 (print_operand, alpha_fold_builtin_extxx): Likewise.
1707 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
1708 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
1709 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
1710 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
1711 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
1712 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
1713 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
1714 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
1715 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
1716 (extwl, extll, extql): Similarly.
1717 (inswh, inslh, insqh): Similarly.
1718 (mskbl, mskwl, mskll, mskql): Similarly.
1719 (mskwh, msklh, mskqh): Similarly.
1720
315b2bef
RH
17212011-02-24 Richard Henderson <rth@redhat.com>
1722
1723 * config/alpha/alpha.md (attribute isa): Add er, ner.
1724 (attribute enabled): Handle them.
1725 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
1726
67102517
RH
17272011-02-24 Richard Henderson <rth@redhat.com>
1728
1729 * config/alpha/alpha.md (attribute isa): Add vms.
1730 (attribute enabled): Handle it.
1731 (*movsf): Merge *movsf_{nofix,fix,nofp}.
1732 (*movdf): Merge *movdf_{nofix,fix,nofp}.
1733 (*movtf): Rename from *movtf_internal for consistency.
1734 (*movsi): Merge with *movsi_nt_vms.
1735 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
1736 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
1737 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
1738 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
1739
6aba5cb4
RH
17402011-02-24 Richard Henderson <rth@redhat.com>
1741
1742 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
1743 (extendqisi2, extendhisi2): Likewise.
1744 (extendqidi2): Simplify BWX/non-BWX expansions.
1745 (extendhidi2): Similarly.
1746
bdfb351b
RH
17472011-02-24 Richard Henderson <rth@redhat.com>
1748
1749 * config/alpha/alpha.md (attribute isa): New.
1750 (attribute enabled): New.
1751 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
1752 (zero_extendqisi2, zero_extendqidi2): Similarly.
1753 (zero_extendhisi2, zero_extendhidi2): Similarly.
1754 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
1755
6abe71eb
RH
17562011-02-24 Richard Henderson <rth@redhat.com>
1757
1758 * config/alpha/predicates.md (input_operand): Revert last change;
1759 update comment to mention 32-bit VMS rather than Windows.
1760
7114321e
NF
17612011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1762
1763 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
1764 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
1765 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
1766 * passes.c (init_optimization_passes): Move
1767 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
1768
c8679567
EB
17692011-03-24 Eric Botcazou <ebotcazou@adacore.com>
1770
1771 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
1772
27173058
UB
17732011-03-24 Uros Bizjak <ubizjak@gmail.com>
1774
1775 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
1776 correctly.
1777
6f0c9f06
JJ
17782011-03-24 Jakub Jelinek <jakub@redhat.com>
1779
1780 PR debug/48204
1781 * simplify-rtx.c (simplify_const_unary_operation): Call
1782 real_convert when changing mode class with FLOAT_EXTEND.
1783
662666e5
NC
17842011-03-24 Nick Clifton <nickc@redhat.com>
1785
1786 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
1787 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
1788 * config/rx/rx.c (rx_option_override): Set align_jumps,
1789 align_loops and align_labels if not set by the user.
1790 (rx_align_for_label): New function.
1791 (rx_max_skip_for_label): New function.
1792 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
1793 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
1794 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
1795 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
1796 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
1797
2b99b2b8
RS
17982011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
1799
1800 PR rtl-optimization/48263
1801 * optabs.c (expand_binop_directly): Reinstate convert_modes code
1802 and original commutative_p handling. Use maybe_gen_insn.
1803
ccecd6ea
AK
18042011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1805
1806 * reload.c (find_reloads_subreg_address): Add address_reloaded
1807 parameter and return true there if the full address has been
1808 reloaded.
1809 (find_reloads_toplev): Pass address_reloaded flag.
1810 (find_reloads_address_1): Don't use address_reloaded parameter.
1811
67295642
JL
18122011-03-24 Jeff Law <law@redhat.com>
1813
1814 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
1815 unused variable "ann".
1816 (remove_unused_locals): Likewise.
1817
1818 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
1819 statement.
1820
1821 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
1822 after it is freed.
1823
212aa74f
AK
18242011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1825
1826 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
1827 for invalid symbolic addresses.
1828 (s390_secondary_reload): Don't use s390_check_symref_alignment for
1829 larl operands.
1830
fe784e0d
EB
18312011-03-24 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
1834 the argument in calls to fold_truth_not_expr.
1835
63ee8641
NF
18362011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1837
1838 * tree.c (record_node_allocation_statistics): New function.
1839 (make_node_stat, copy_node_stat, build_string): Call it.
1840 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
1841 (build1_stat, build_omp_clause): Likewise.
1842
61be2a1c
RS
18432011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
1844
1845 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
1846 last commit.
1847
a881aaa7
RG
18482011-03-24 Richard Guenther <rguenther@suse.de>
1849
1850 PR tree-optimization/48271
1851 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
1852 blocks that still exist.
1853
dbaa912c
RG
18542011-03-24 Richard Guenther <rguenther@suse.de>
1855
1856 PR tree-optimization/48270
1857 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
1858 not free datarefs before ddrs.
1859
1d60cc55
EB
18602011-03-24 Eric Botcazou <ebotcazou@adacore.com>
1861
1862 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
1863 from the address built for a reference with variable offset.
1864
c78dd519
UB
18652011-03-24 Uros Bizjak <ubizjak@gmail.com>
1866
1867 PR target/48237
1868 * config/i386/i386.md (*movdf_internal_rex64): Do not split
1869 alternatives that can be handled with movq or movabsq insn.
1870 (*movdf_internal): Disable for !TARGET_64BIT.
1871 (*movdf_internal_nointeger): Ditto.
1872 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
1873
b25b9e8f
NF
18742011-03-24 Nathan Froyd <froydnj@codesourcery.com>
1875
1876 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
1877 (FUNCTION_ARG_ADVANCE): Likewise.
1878 * tm.texi.in: Change references to them to hook references.
1879 * tm.texi: Regenerate.
c78dd519 1880 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
1881 (default_function_incoming_arg): Likewise.
1882 (default_function_arg_advance): Likewise.
c78dd519 1883 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
1884 (function_arg_advance): Likewise.
1885 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
1886
190b2187
RG
18872011-03-24 Richard Guenther <rguenther@suse.de>
1888
1889 PR middle-end/48269
1890 * tree-object-size.c (addr_object_size): Do not double-account
1891 for MEM_REF offsets.
1892
a183b5c7
DN
18932011-03-24 Diego Novillo <dnovillo@google.com>
1894
1895 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 1896 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
1897 (lto_input_data_block): Move from lto-opts.c. Make extern.
1898 Update all users.
1899 (lto_input_string): Rename from input_string. Make extern.
1900 Update all users.
1901 * lto-streamer-out.c (lto_output_string_with_length): Rename from
1902 output_string_with_length.
1903 Output 0 to indicate a non-NULL string. Update all callers to
1904 not emit 0.
1905 (lto_output_string): Rename from output_string. Make extern.
1906 Update all users.
1907 (lto_output_decl_state_streams): Make extern.
1908 (lto_output_decl_state_refs): Make extern.
1909 * lto-streamer.h (lto_input_string): Declare.
1910 (lto_input_data_block): Declare.
1911 (lto_output_string): Declare.
1912 (lto_output_string_with_length): Declare.
1913 (lto_output_decl_state_streams): Declare.
1914 (lto_output_decl_state_refs): Declare.
1915
cfef45c8
RG
19162011-03-24 Richard Guenther <rguenther@suse.de>
1917
1918 PR tree-optimization/46562
1919 * tree.c (build_invariant_address): New function.
1920 * tree.h (build_invariant_address): Declare.
1921 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
1922 a renamed function moved ...
1923 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
1924 Take valueization callback parameter.
1925 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
1926 * gimple-fold.h: New file.
1927 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
1928 (ccp_fold, fold_const_aggregate_ref,
1929 fold_ctor_reference, fold_nonarray_ctor_reference,
1930 fold_array_ctor_reference, fold_string_cst_ctor_reference,
1931 get_base_constructor): Move ...
1932 * gimple-fold.c: ... here.
1933 (gimple_fold_stmt_to_constant_1): New function
1934 split out from ccp_fold. Take a valueization callback parameter.
1935 Valueize all operands.
1936 (gimple_fold_stmt_to_constant): New wrapper function.
1937 (fold_const_aggregate_ref_1): New function split out from
1938 fold_const_aggregate_ref. Take a valueization callback parameter.
1939 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
1940 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
1941 invariant POINTER_PLUS_EXPRs to invariant form.
1942 (vn_valueize): New function.
1943 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
1944 * tree-vrp.c (vrp_valueize): New function.
1945 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
1946 to fold statements to constants.
1947 * tree-ssa-pre.c (eliminate): Properly guard propagation of
1948 function declarations.
1949 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
1950 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
1951
5e0a7e40
RS
19522011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
1953
1954 * config/h8300/predicates.md (jump_address_operand): Fix register
1955 mode check.
1956
bfe068c3
IR
19572011-03-24 Ira Rosen <ira.rosen@linaro.org>
1958
1959 * doc/invoke.texi (max-stores-to-sink): Document.
1960 * params.h (MAX_STORES_TO_SINK): Define.
1961 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
1962 if either vectorization or if-conversion is disabled.
1963 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
1964 tree-vect-data-refs.c vect_equal_offsets.
1965 (dr_equal_offsets_p): New function.
1966 (find_data_references_in_bb): Remove static.
1967 * tree-data-ref.h (find_data_references_in_bb): Declare.
1968 (dr_equal_offsets_p): Likewise.
1969 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
1970 (vect_drs_dependent_in_basic_block): Update calls to
1971 vect_equal_offsets.
1972 (vect_check_interleaving): Likewise.
1973 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
1974 (cond_if_else_store_replacement): Rename to...
1975 (cond_if_else_store_replacement_1): ... this. Change arguments and
1976 documentation.
1977 (cond_if_else_store_replacement): New function.
1978 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
1979 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
1980
4908b0bf
CLT
19812011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
1982
1983 PR target/46934
1984 * config/arm/arm.md (casesi): Use the gen_int_mode() function
1985 to subtract lower bound instead of GEN_INT().
1986
2be478a2
JW
19872011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
1988
1989 PR other/48179
1990 PR other/48221
1991 PR other/48234
1992 * doc/extend.texi (Alignment): Move section to match order in TOC.
1993 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
1994 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
1995
0c617be4
JL
19962011-03-23 Jeff Law <law@redhat.com>
1997
1998 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
1999 before removing the edge.
2000
2001 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
2002 it may have been freed by redirect_branch_edge or
2003 redirect_edge_succ_nodup.
2004
58da96fe
RG
20052011-03-23 Richard Guenther <rguenther@suse.de>
2006
c78dd519 2007 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
2008 (check_va_list_escapes): Likewise.
2009 (check_all_va_list_escapes): Likewise.
2010
b8beb4d1
RG
20112011-03-23 Richard Guenther <rguenther@suse.de>
2012
2013 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
2014 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
2015 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
2016 (alias.o): Likewise.
2017 (ipa-type-escape.o): Remove.
2018 (ipa-struct-reorg.o): Likewise.
2019 (GTFILES): Remove ipa-struct-reorg.c.
2020 * alias.c: Do not include ipa-type-escape.h.
2021 * tree-ssa-alias.c: Likewise.
2022 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
2023 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
2024 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
2025 and ipa-type-escape passes.
2026 * tree-pass.h (pass_ipa_type_escape): Remove.
2027 (pass_ipa_struct_reorg): Likewise.
2028 * ipa-struct-reorg.h: Remove.
2029 * ipa-struct-reorg.c: Likewise.
2030 * ipa-type-escape.h: Likewise.
2031 * ipa-type-escape.c: Likewise.
2032 * doc/invoke.texi (-fipa-struct-reorg): Remove.
2033 (--param struct-reorg-cold-struct-ratio): Likewise.
2034 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2035 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
2036 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
2037
f137aa63
AK
20382011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2039
2040 * config/s390/2084.md: Enable all insn reservations also for z9_ec
2041 cpu attribute value.
2042 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
2043 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
2044 * config/s390/s390.c (processor_flags_table): New constant array.
2045 (s390_handle_arch_option): Remove.
2046 (s390_handle_option): Remove s390_handle_arch_option invocations
2047 and OPT_mwarn_framesize_ handling.
2048 (s390_option_override): Remove s390_handle_arch_option invocation.
2049 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
2050 warnings.
2051 * config/s390/s390.md (cpu attribute): Add z9_ec value.
2052 * config/s390/s390.opt (s390_tune, s390_arch)
2053 (march=): Replace s390_arch_option enum and values with
2054 processor_type. Set variable name to s390_arch. Set
2055 initialization value.
2056 (mtune=): Replace s390_arch_option with processor_type. Set
2057 variable name to s390_tune. Set initialization value.
2058
bf90208f
JB
20592011-03-23 Julian Brown <julian@codesourcery.com>
2060
2061 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
2062 accesses which are not naturally aligned.
2063
3460fdf3
RS
20642011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2065
2066 PR target/47553
2067 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
2068
a5c7d693
RS
20692011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
2070
2071 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
2072 parameter from "int" to "enum insn_code".
2073 (expand_operand_type): New enum.
2074 (expand_operand): New structure.
2075 (create_expand_operand): New function.
2076 (create_fixed_operand, create_output_operand): Likewise
2077 (create_input_operand, create_convert_operand_to): Likewise.
2078 (create_convert_operand_from, create_address_operand): Likewise.
2079 (create_integer_operand): Likewise.
2080 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
2081 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2082 (expand_insn, expand_jump_insn): Likewise.
2083 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
2084 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
2085 (expand_movstr, expand_builtin___clear_cache): Likewise.
2086 (expand_builtin_lock_release): Likewise.
2087 * explow.c (allocate_dynamic_stack_space): Likewise.
2088 (probe_stack_range): Likewise. Allow check_stack to FAIL,
2089 and use the default handling in that case.
2090 * expmed.c (check_predicate_volatile_ok): Delete.
2091 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
2092 (emit_cstore): Likewise.
2093 * expr.c (emit_block_move_via_movmem): Likewise.
2094 (set_storage_via_setmem, expand_assignment): Likewise.
2095 (emit_storent_insn, try_casesi): Likewise.
2096 (emit_single_push_insn): Likewise. Allow the expansion to fail.
2097 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
2098 (expand_vec_shift_expr, expand_binop_directly): Likewise.
2099 (expand_twoval_unop, expand_twoval_binop): Likewise.
2100 (expand_unop_direct, emit_indirect_jump): Likewise.
2101 (emit_conditional_move, vector_compare_rtx): Likewise.
2102 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
2103 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
2104 (expand_sync_lock_test_and_set): Likewise.
2105 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
2106 (emit_unop_insn): Likewise.
2107 (expand_copysign_absneg): Change icode to an insn_code.
2108 (create_convert_operand_from_type): New function.
2109 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
2110 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
2111 (expand_insn, expand_jump_insn): Likewise.
2112 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
2113 than const_int_operand for operand 2.
2114
78fadbab
AK
21152011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2116
2117 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
2118 if possible.
2119
5f02387d
NF
21202011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2121
2122 * emit-rtl.c (emit_pattern_before_noloc): New function.
2123 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
2124 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
2125 (emit_pattern_after_noloc): New function.
2126 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
2127 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
2128
fdf3e18a
NF
21292011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2130
2131 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
2132 (__ffsDI2): Likewise.
2133
42d085c1
RH
21342011-03-22 Richard Henderson <rth@redhat.com>
2135
2136 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
2137 of !TARGET_ABI_OPEN_VMS.
2138 (alpha_trampoline_init, alpha_start_function): Likewise.
2139 (alpha_expand_epilogue, alpha_file_start): Likewise.
2140 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
2141 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
2142 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
2143 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
2144 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
2145
cabbe12a
JM
21462011-03-22 Joseph Myers <joseph@codesourcery.com>
2147
2148 * config/s390/s390-opts.h: New.
2149 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
2150 s390_arch_flags, s390_warn_framesize, s390_stack_size,
2151 s390_stack_guard): Remove.
2152 (s390_handle_arch_option): Return void. Take enum
2153 s390_arch_option value instead of string and searching array.
2154 (s390_handle_option): Don't assert that global structures are in
2155 use. Access variables via opts pointer. Use error_at. Don't use
2156 sscanf for -mstack-guard= or -mstack-size=. Update call to
2157 s390_handle_arch_option.
2158 (s390_option_override): Update call to s390_handle_arch_option.
2159 (s390_emit_prologue): Use %d format for s390_stack_size in
2160 diagnostic. Use %wd for HOST_WIDE_INT.
2161 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
2162 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
2163 * config/s390/s390.opt (config/s390/s390-opts.h): New
2164 HeaderInclude entry.
2165 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
2166 s390_arch_flags, s390_warn_framesize): New Variable entries.
2167 (s390_arch_option): New Enum and EnumValue entries.
2168 (march=): Use Enum instead of Var.
2169 (mstack-guard=, mstack-size=): Use UInteger and Var.
2170 (mtune=): Use Enum.
2171
05b12036
JM
21722011-03-22 Joseph Myers <joseph@codesourcery.com>
2173
2174 * config/score/score.c (score_handle_option): Don't assert that
2175 global structures are in use. Access target_flags via opts
2176 pointer. Use value of -march= option to determine target_flags
2177 settings.
2178 * config/score/score.opt (march=): Use Enum.
2179 (score_arch): New Enum and EnumValue entries.
2180
dd51e35a
JM
21812011-03-22 Joseph Myers <joseph@codesourcery.com>
2182
2183 * config/mep/mep.c (option_mtiny_specified): Remove.
2184 (mep_option_override): Move register handling for -mivc2 from
2185 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
2186 instead of option_mtiny_specified.
2187 (mep_handle_option): Access target_flags via opts pointer. Don't
2188 assert that global structures are in use. Defer part of -mivc2
2189 handling and move it to mep_option_override.
2190 * config/mep/mep.opt (IVC2): New Mask entry.
2191 (mivc2): Use Var and Defer instead of Mask.
2192
4a8d3d91
JM
21932011-03-22 Joseph Myers <joseph@codesourcery.com>
2194
2195 * config/v850/v850-opts.h: New.
2196 * config/v850/v850.c (small_memory): Replace with
2197 small_memory_physical_max array. Make that array static const.
2198 (v850_handle_memory_option): Take integer value of argument. Take
2199 gcc_options pointer, option text and location. Return void.
2200 Update for changes to small memory structures.
2201 (v850_handle_option): Access target_flags via opts pointer. Don't
2202 assert that global structures are in use. Update calls to
2203 v850_handle_memory_option.
c78dd519
UB
2204 (v850_encode_data_area): Update references to small memory settings.
2205 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
2206 (enum small_memory_type): Move to v850-opts.h.
2207 * config/v850/v850.opt (config/v850/v850-opts.h): New
2208 HeaderInclude entry.
2209 (small_memory_max): New Variable entry.
2210 (msda): Replace by pair of options msda= and msda-. Use UInteger.
2211 (mtda, mzda): Likewise.
2212
117fdbfa
JM
22132011-03-22 Joseph Myers <joseph@codesourcery.com>
2214
2215 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
2216 pointer. Don't assert that global structures are in use.
2217
d715091c
JM
22182011-03-22 Joseph Myers <joseph@codesourcery.com>
2219
2220 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
2221 via opts pointer. Don't assert that global structures are in use.
2222
1bb721dc
JM
22232011-03-22 Joseph Myers <joseph@codesourcery.com>
2224
2225 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
2226 (munix=93): Use Var.
2227 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
2228 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
2229 * config/pa/pa-opts.h: New.
2230 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
2231 (pa_handle_option): Don't assert that global structures are in
2232 use. Access target_flags via opts pointer. Don't handle
2233 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
2234 OPT_munix_98 here.
2235 (pa_option_override): Handle deferred OPT_mfixed_range_.
2236
cd8d8754
JM
22372011-03-22 Joseph Myers <joseph@codesourcery.com>
2238
2239 * config/mn10300/mn10300-opts.h: New.
2240 * config/mn10300/mn10300.c (mn10300_processor,
2241 mn10300_tune_string): Remove.
2242 (mn10300_handle_option): Don't assert that global structures are
2243 in use. Access mn10300_processor via opts pointer. Don't handle
2244 OPT_mtune_ here.
2245 * config/mn10300/mn10300.h (enum processor_type): Move to
2246 mn10300-opts.h.
2247 (mn10300_processor): Remove.
2248 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
2249 HeaderInclude entry.
2250 (mn10300_processor): New Variable entry.
2251 (mtune=): Use Var.
2252
24e6e6b1
JM
22532011-03-22 Joseph Myers <joseph@codesourcery.com>
2254
2255 * config/microblaze/microblaze.c: Don't include opts.h.
2256 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
2257 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
2258 (mno-clearbss): Use Var and Warn.
2259
8a784afb
JM
22602011-03-22 Joseph Myers <joseph@codesourcery.com>
2261
2262 * config/m32r/m32r-opts.h: New.
2263 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
2264 (m32r_handle_option): Don't assert that global structures are in
2265 use. Access target_flags and m32r_cache_flush_func via opts
2266 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
2267 OPT_mno_flush_trap here.
2268 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
2269 include of m32r-opts.h.
2270 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
2271 HeaderInclude entry.
2272 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
2273 (mmodel=): Use Enum and Var.
2274 (m32r_model): New Enum and EnumValue entries.
2275 (mno-flush-trap): Use Var.
2276 (msdata=): Use Enum and Var.
2277 (m32r_sdata): New Enum and EnumValue entries.
2278
bbfc9a8c
JM
22792011-03-22 Joseph Myers <joseph@codesourcery.com>
2280
2281 * config/m32c/m32c.c: Don't include opts.h.
2282 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
2283 m32c_handle_option): Remove.
2284 (m32c_option_override): Check global_options_set.x_target_memregs
2285 instead of target_memregs_set.
2286 * config/m32c/m32c.h (target_memregs): Remove.
2287 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
2288 variable.
2289
e24b8335
JM
22902011-03-22 Joseph Myers <joseph@codesourcery.com>
2291
2292 * config/iq2000/iq2000-opts.h: New.
2293 * config/iq2000/iq2000.c: Don't include opts.h.
2294 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 2295 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
2296 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
2297 HeaderInclude entry.
2298 (iq2000_tune): New Variable entry.
2299 (march=): Add comment. Use Enum.
2300 (iq2000_arch): New Enum and EnumValue entries.
2301 (mcpu=): Use Enum and Var.
2302 (iq2000_tune): New Enum and EnumValue entries.
2303
e6cc0c98
JM
23042011-03-22 Joseph Myers <joseph@codesourcery.com>
2305
2306 * config/ia64/ia64-opts.h: New.
2307 * config/ia64/ia64.c (ia64_tune): Remove.
2308 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
2309 here. Use error_at.
2310 (ia64_option_override): Handle deferred OPT_mfixed_range_.
2311 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
2312 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
2313 HeaderInclude entry.
2314 (ia64_tune): New Variable entry.
2315 (mfixed-range=): Use Defer and Var.
2316 (mtune=): Use Enum and Var.
2317 (ia64_tune): New Enum and EnumValue entries.
2318
db25893c
JM
23192011-03-22 Joseph Myers <joseph@codesourcery.com>
2320
2321 * config/frv/frv-opts.h: New.
2322 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
2323 frv-opts.h.
2324 (frv_cpu_type): Remove.
2325 * config/frv/frv.c: Don't include opts.h.
2326 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 2327 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
2328 (frv_cpu_type): New Variable entry.
2329 (frv_cpu): New Enum and EnumValue entries.
2330
6c223f5d
JM
23312011-03-22 Joseph Myers <joseph@codesourcery.com>
2332
2333 * config/cris/cris.c (cris_handle_option): Access target_flags via
2334 opts pointer. Don't assert that global structures are in use.
2335 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
2336 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
2337
bbd399cf
JM
23382011-03-22 Joseph Myers <joseph@codesourcery.com>
2339
2340 * config/bfin/bfin-opts.h: New.
2341 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
2342 bfin_si_revision, bfin_workarounds): Remove.
2343 (bfin_cpus): Make static const.
2344 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
2345 not bfin_lib_id_given.
2346 (bfin_handle_option): Don't set bfin_lib_id_given. Access
2347 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 2348 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
2349 * config/bfin/bfin.h: Include bfin-opts.h.
2350 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
2351 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
2352 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
2353 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
2354 entries.
2355
5e1b4d5a
JM
23562011-03-22 Joseph Myers <joseph@codesourcery.com>
2357
2358 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
2359 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
2360 or -msoft-float here.
2361 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
2362 -msoft-float and -mhard-float.
c78dd519 2363 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
2364 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2365 msoft-float.
2366 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
2367 -msoft-float.
2368 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
2369 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
2370 not mhard-float.
2371 (LIBGCC_SPEC): Don't handle -msoft-float.
2372 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
2373 -mhard-float.
2374 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
2375 msoft-float.
2376 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
2377 -mfloat-abi=*, not -msoft-float and -mhard-float.
2378 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
2379 -msoft-float.
2380 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
2381 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
2382 mhard-float and msoft-float.
2383 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
2384 mfloat-abi=soft in comments, not mhard-float and msoft-float.
2385 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2386 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
2387 mhard-float.
2388 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
2389 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
2390 msoft-float.
2391 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
2392 not mhard-float.
2393 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
2394 not msoft-float.
2395
800d1de1
RH
23962011-03-22 Richard Henderson <rth@redhat.com>
2397
2398 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
2399 TARGET_ABI_WINDOWS_NT.
2400 (alpha_output_function_end_prologue): Likewise.
2401 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
2402 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
2403 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
2404 (trap, *movsi_nt_vms): Likewise.
2405 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
2406 (*tablejump_osf_nt_internal): Remove.
2407 * config/alpha/predicates.md (input_operand): Only test Pmode.
2408
c59ddd2b
JM
24092011-03-22 Joseph Myers <joseph@codesourcery.com>
2410
2411 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
2412 via opts pointer. Use error_at. Don't assert that global
2413 structures are in use.
2414
1333f97f
JM
24152011-03-22 Joseph Myers <joseph@codesourcery.com>
2416
2417 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
2418 (ix86_handle_option): Access ix86_isa_flags and
2419 ix86_isa_flags_explicit via opts pointer. Don't assert that
2420 global structures are in use.
2421 (ix86_function_specific_save, ix86_function_specific_restore):
2422 Update ix86_isa_flags_explicit field name.
c78dd519 2423 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
2424 (ix86_isa_flags_explicit): Rename TargetSave entry to
2425 x_ix86_isa_flags_explicit.
2426
75db85d8
RH
24272011-03-22 Richard Henderson <rth@redhat.com>
2428
2429 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
2430 (alpha_option_override, direct_return): Likewise.
2431 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
2432 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
2433 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
2434 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
2435 (alpha_expand_epilogue, alpha_end_function): Likewise.
2436 (alpha_init_libfuncs): Likewise.
2437 (struct machine_function): Remove unicosmk members.
2438 (print_operand) ['t']: Remove.
2439 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
2440 unicosmk_output_module_name, unicosmk_output_common,
2441 current_section_align, unicosmk_output_text_section_asm_op,
2442 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
2443 unicosmk_section_type_flags, unicosmk_unique_section,
2444 unicosmk_asm_named_section, unicosmk_insert_attributes,
2445 unicosmk_output_align, unicosmk_defer_case_vector,
2446 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
2447 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
2448 unicosmk_output_ssib, unicosmk_add_call_info_word,
2449 unicosmk_extern_head, unicosmk_output_default_externs,
2450 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
2451 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
2452 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
2453 * config/alpha/alpha-protos.h: Update.
2454 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
2455 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
2456 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
2457 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
2458 (*mulsi_se, mulvsi3): Likewise.
2459 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
2460 (*divmodsi_internal, call, call_value, realign): Likewise.
2461 (moddi3, umoddi3): Likewise; remove duplicate expander.
2462 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
2463 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
2464 (*movdi_nofix): Remove r/U alternative.
2465 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
2466 * config/alpha/constraints.md ("U"): Remove.
2467 * config/alpha/predicates.md (call_operand"): Don't test
2468 TARGET_ABI_UNICOSMK.
2469
96e45421
JM
24702011-03-22 Joseph Myers <joseph@codesourcery.com>
2471
2472 * target.def (handle_option): Take gcc_options and
2473 cl_decoded_option pointers and location_t.
2474 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
2475 * doc/tm.texi: Regenerate.
2476 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
2477 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
2478 * lto-opts.c (lto_reissue_options): Generate option structure for
2479 targetm.handle_option call.
2480 * opts.c (target_handle_option): Update call to
2481 targetm.handle_option. Remove assertions about values now passed
2482 down to hook.
2483 * targhooks.c (default_target_handle_option): New.
2484 * targhooks.h (default_target_handle_option): Declare.
2485 * config/alpha/alpha.c: Include opts.h.
2486 (alpha_handle_option): Update to new hook interface.
2487 * config/arm/arm.c: Include opts.h.
2488 (arm_handle_option): Update to new hook interface.
2489 * config/arm/t-arm (arm.o): Update dependencies.
2490 * config/bfin/bfin.c: Include opts.h.
2491 (bfin_handle_option): Update to new hook interface.
2492 * config/cris/cris.c: Include opts.h.
2493 (cris_handle_option): Update to new hook interface.
2494 * config/frv/frv.c: Include opts.h.
2495 (frv_handle_option): Update to new hook interface.
2496 * config/i386/i386.c: Include opts.h.
2497 (ix86_handle_option): Update to new hook interface.
2498 (ix86_valid_target_attribute_inner_p): Generate option structure
2499 for call to ix86_handle_option.
2500 * config/i386/t-i386 (i386.o): Update dependencies.
2501 * config/ia64/ia64.c: Include opts.h.
2502 (ia64_handle_option): Update to new hook interface.
2503 * config/ia64/t-ia64 (ia64.o): Update dependencies.
2504 * config/iq2000/iq2000.c: Include opts.h.
2505 (iq2000_handle_option): Update to new hook interface.
2506 * config/m32c/m32c.c: Include opts.h.
2507 (m32c_handle_option): Update to new hook interface.
2508 * config/m32r/m32r.c: Include opts.h.
2509 (m32r_handle_option): Update to new hook interface.
2510 * config/m68k/m68k.c: Include opts.h.
2511 (m68k_handle_option): Update to new hook interface.
2512 * config/mep/mep.c: Include opts.h.
2513 (mep_handle_option): Update to new hook interface.
2514 * config/microblaze/microblaze.c: Include opts.h.
2515 (microblaze_handle_option): Update to new hook interface.
2516 * config/mips/mips.c: Include opts.h.
2517 (mips_handle_option): Update to new hook interface.
2518 * config/mn10300/mn10300.c: Include opts.h.
2519 (mn10300_handle_option): Update to new hook interface.
2520 * config/pa/pa.c: Include opts.h.
2521 (pa_handle_option): Update to new hook interface.
2522 * config/pdp11/pdp11.c: Include opts.h.
2523 (pdp11_handle_option): Update to new hook interface.
2524 * config/rs6000/rs6000.c: Include opts.h.
2525 (rs6000_handle_option): Update to new hook interface.
2526 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2527 * config/rx/rx.c: Include opts.h.
2528 (rx_handle_option): Update to new hook interface.
2529 * config/s390/s390.c: Include opts.h.
2530 (s390_handle_option): Update to new hook interface.
2531 * config/score/score.c: Include opts.h.
2532 (score_handle_option): Update to new hook interface.
2533 * config/sh/sh.c: Include opts.h.
2534 (sh_handle_option): Update to new hook interface.
2535 * config/sparc/sparc.c: Include opts.h.
2536 (sparc_handle_option): Update to new hook interface.
2537 * config/v850/v850.c: Include opts.h.
2538 (v850_handle_option): Update to new hook interface.
2539
66017846
JM
25402011-03-22 Joseph Myers <joseph@codesourcery.com>
2541
2542 * gcc.c (driver_unknown_option_callback): Only permit and save
2543 unknown -Wno- options.
2544 (driver_wrong_lang_callback): Save options directly instead of via
2545 driver_unknown_option_callback.
2546
e8b97ccd
EB
25472011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2548
2549 * combine.c (simplify_set): Try harder to find the best CC mode when
2550 simplifying a nested COMPARE on the RHS.
2551
ebb9f8b0
JM
25522011-03-22 Joseph Myers <joseph@codesourcery.com>
2553
2554 * config/alpha/gnu.h: Remove.
2555 * config/arc: Remove directory.
2556 * config/arm/netbsd.h: Remove.
2557 * config/arm/t-pe: Remove.
2558 * config/crx: Remove directory.
2559 * config/i386/netbsd.h: Remove.
2560 * config/m68hc11: Remove directory.
2561 * config/m68k/uclinux-oldabi.h: Remove.
2562 * config/mcore/mcore-pe.h: Remove.
2563 * config/mcore/t-mcore-pe: Remove.
2564 * config/netbsd-aout.h: Remove.
2565 * config/rs6000/gnu.h: Remove.
2566 * config/sh/sh-symbian.h: Remove.
2567 * config/sh/symbian-base.c: Remove.
2568 * config/sh/symbian-c.c: Remove.
2569 * config/sh/symbian-cxx.c: Remove.
2570 * config/sh/symbian-post.h: Remove.
2571 * config/sh/symbian-pre.h: Remove.
2572 * config/sh/t-symbian: Remove.
2573 * config/svr3.h: Remove.
2574 * config/vax/netbsd.h: Remove.
2575 * config.build: Don't handle i[34567]86-*-pe.
2576 * config.gcc: Remove handling of deprecations for most deprecated
2577 targets.
2578 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
2579 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
2580 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
2581 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
2582 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
2583 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
2584 Remove cases.
2585 * config.host: Don't handle i[34567]86-*-pe.
2586 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
2587 (ASM_SPEC32): Don't handle -mcall-gnu.
2588 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
2589 -mcall-gnu.
2590 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
2591 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
2592 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
2593 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
2594 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
2595 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
2596 conditional on SYMBIAN.
2597 * configure.ac: Don't handle powerpc*-*-gnu*.
2598 * configure: Regenerate.
2599 * doc/extend.texi (interrupt attribute): Don't mention CRX.
2600 * doc/install-old.texi (m6811, m6812): Don't mention.
2601 * doc/install.texi (arc-*-elf*): Don't document multilib option.
2602 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
2603 (m68k-uclinuxoldabi): Don't mention.
2604 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
2605 Remove.
2606 (-mcall-gnu): Remove.
2607 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
2608 families): Remove constraint documentation.
2609
999a7d80
MS
26102011-03-22 Marius Strobl <marius@FreeBSD.org>
2611
2612 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
2613 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
2614 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2615
980a0ff4
GJL
26162011-03-21 Georg-Johann Lay <avr@gjlay.de>
2617
2618 * config/avr/avr-protos.h (expand_epilogue): Change prototype
2619 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
2620 * config/avr/avr.c (init_cumulative_args)
2621 (avr_function_arg_advance): Use it.
2622 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
2623 sibcall epilogues.
2624 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
2625 (avr_function_ok_for_sibcall): ...this new function.
2626 (avr_lookup_function_attribute1): New static Function.
2627 (avr_naked_function_p, interrupt_function_p)
2628 (signal_function_p, avr_OS_task_function_p)
2629 (avr_OS_main_function_p): Use it.
2630 * config/avr/avr.md ("sibcall", "sibcall_value")
2631 ("sibcall_epilogue"): New expander.
2632 ("*call_insn", "*call_value_insn"): New insn.
2633 ("call_insn", "call_value_insn"): Remove
2634 ("call", "call_value", "epilogue"): Change expander to handle
2635 sibling calls.
2636
49168734
NC
26372011-03-21 Nick Clifton <nickc@redhat.com>
2638
2639 * doc/invoke.texi (Overall Options): Move closing brace to end of
2640 options list.
2641 (Optimization Options): Add missing @gol.
2642 (Directory Options): Likewise.
2643 (i386 and x86-64 Options): Likewise.
2644 (RS6000 and PowerPC Options): Likewise.
2645 (i386 and x86-64 Windows Options): Likewise.
2646 (V850 Options): Add text missing from descriptions.
2647
bdfe906f
RH
26482011-03-22 Richard Henderson <rth@redhat.com>
2649
2650 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
2651 (avr_incoming_return_addr_rtx): New.
2652 (emit_push_byte): New.
2653 (expand_prologue): Use it. Remove incorrect dwarf annotation for
2654 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
2655 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
2656 (emit_pop_byte): New.
2657 (expand_epilogue): Use it. Pop frame pointer by bytes.
2658 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
2659 (INCOMING_RETURN_ADDR_RTX): New.
2660 (INCOMING_FRAME_SP_OFFSET): New.
2661 (ARG_POINTER_CFA_OFFSET): New.
2662 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
2663 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
2664 (pophi): Remove.
2665
d090a5aa
RH
2666 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
2667
fdf3e18a
NF
26682011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2669
2670 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
2671 (FUNCTION_ARG_ADVANCE): Likewise.
2672 * tm.texi.in: Change references to them to hook references.
2673 * tm.texi: Regenerate.
2674 * targhooks.c (default_function_arg): Eliminate check for target
2675 macro.
2676 (default_function_incoming_arg): Likewise.
2677 (default_function_arg_advance): Likewise.
c78dd519 2678 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
2679 (function_arg_advance): Likewise.
2680 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
2681
009d3fcf
NF
26822011-03-22 Nathan Froyd <froydnj@codesourcery.com>
2683
2684 * tree.c (build_call_1): New function.
2685 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
2686
7bec30e1
RG
26872011-03-22 Richard Guenther <rguenther@suse.de>
2688
2689 PR tree-optimization/48228
2690 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
2691 for single-arg PHIs.
2692
0b7e851b
AB
26932011-03-22 Andrey Belevantsev <abel@ispras.ru>
2694
2695 PR rtl-optimization/48143
2696 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
2697 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
2698 sse2_cvtps2pd): Likewise.
2699
d89afca5
AK
27002011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2701
2702 * recog.c (canonicalize_change_group): Use validate_unshare_change.
2703
f471fe72
RG
27042011-03-22 Richard Guenther <rguenther@suse.de>
2705
2706 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
2707 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
2708 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
2709 and REALIGN_LOAD_EXPR.
2710 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
2711 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
2712 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
2713 DOT_PROD_EXPR case ...
2714 (expand_expr_real_2): ... here.
2715 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
2716 and REALIGN_LOAD_EXPR.
2717 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
2718 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
2719 (vect_create_epilog_for_reduction): Likewise.
2720 (vectorizable_reduction): Likewise.
2721 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
2722 * tree-vect-stmts.c (vectorizable_load): Likewise.
2723
f2f81d57
EB
27242011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2725
2726 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
2727
ab081dd6
AK
27282011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2729
2730 * config/s390/s390.c (s390_delegitimize_address): Fix offset
2731 handling for PLTOFF/GOTOFF.
2732
6fd5332b
NC
27332011-03-22 Nick Clifton <nickc@redhat.com>
2734
2735 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
2736 trailing backslash from the end of the macro definition.
2737
01841ac0
AK
27382011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2739
2740 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
2741 and PLT unspecs.
2742
2ef6ce06
RS
27432011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
2744
2745 * expr.h (prepare_operand): Move to...
2746 * optabs.h (prepare_operand): ...here and change the insn code
2747 parameter from "int" to "enum insn_code".
2748 (insn_operand_matches): Declare.
2749 * expr.c (init_expr_target): Use insn_operand_matches.
2750 (compress_float_constant): Likewise.
2751 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
2752 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
2753 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
2754 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
2755 Likewise.
2ef6ce06
RS
2756 (gen_cond_trap): Likewise.
2757 (prepare_operand): Likewise. Change icode to an insn_code.
2758 (insn_operand_matches): New function.
2759 * reload.c (find_reloads_address_1): Use insn_operand_matches.
2760 * reload1.c (gen_reload): Likewise.
2761 * targhooks.c (default_secondary_reload): Likewise.
2762
9e43ad68
UB
27632011-03-21 Uros Bizjak <ubizjak@gmail.com>
2764
9a96da32
UB
2765 * config/alpha/alpha.md (unspec): New define_c_enum.
2766 (unspecv): Ditto.
2767
27682011-03-21 Uros Bizjak <ubizjak@gmail.com>
2769
2770 PR debug/48214
9e43ad68
UB
2771 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
2772 between a call and its CALL_ARG_LOCATION note.
2773
31408f60
EB
27742011-03-21 Eric Botcazou <ebotcazou@adacore.com>
2775
2776 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
2777
27782011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
2779
2780 PR c/42544
2781 PR c/48197
2782 * c-common.c (shorten_compare): If primopN is first sign-extended
2783 to opN and then zero-extended to result type, set primopN to opN.
2784
9dfd55f5
DJ
27852011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
2786
2787 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
2788 for barrier handlers.
2789
f3c33d9d
MM
27902011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
2791
2792 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
2793 UNSPEC constants to be in the unspec enumeration, and redefine
2794 all UNSPECV constants to be in the unspecv enumeration, so that
2795 dumps print which unspec/unspec_volatile this is.
2796 * config/rs6000/vector.md (UNSPEC_*): Ditto.
2797 * config/rs6000/paired.md (UNSPEC_*): Ditto.
2798 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
2799 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
2800 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
2801
2802 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
2803 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
2804 UNSPECV_LWSYNC, since these are used as unspec_volatile.
2805 * config/rs6000/sync.md (isync, lwsync): Ditto.
2806
ac43f774
RG
28072011-03-21 Richard Guenther <rguenther@suse.de>
2808
2809 * params.def (lto-min-partition): Fix typo.
2810
411cdbd8
RG
28112011-03-21 Richard Guenther <rguenther@suse.de>
2812
2813 PR c/47939
2814 * c-decl.c (grokdeclarator): Drop to the main variant only
2815 for array types. Drop flag_gen_aux_info check.
2816
1cd9e416
RG
28172011-03-21 Richard Guenther <rguenther@suse.de>
2818
2819 PR translation/47911
2820 * params.def (lto-partitions): Fix typo.
2821 (lto-min-partition): Fix wording.
2822
ada5ad67
AT
28232011-03-21 Andreas Tobler <andreast@fgznet.ch>
2824
2825 * config/rs6000/t-freebsd: Remove duplication from file.
2826
f9613c9a
RG
28272011-03-21 Richard Guenther <rguenther@suse.de>
2828
2829 PR middle-end/47661
2830 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
2831
9bfbc1eb
RG
28322011-03-21 Richard Guenther <rguenther@suse.de>
2833
2834 PR lto/48210
2835 * params.def (lto-partitions): Require at least 1 partition.
2836
a2268084
RO
28372011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2838
2839 * gthr-solaris.h: Remove.
2840 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
2841 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
2842 (LIB_SPEC): Likewise.
2843 * config/sol2.opt (threads): Remove.
9e43ad68 2844 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
2845 (sparc*-*-solaris2*): Likewise.
2846 * configure.ac (enable_threads): Enable solaris support.
2847 * configure: Regenerate.
9e43ad68 2848 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
2849 * doc/install.texi (Configuration, --enable-threads=lib): Remove
2850 solaris.
2851
c43d9a1b
RO
28522011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2853
2854 * config.gcc: Obsolete *-*-solaris2.8*.
2855 * doc/install.texi (Specific, *-*-solaris2*): Document it.
2856
084239f4
RO
28572011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2858
2859 PR bootstrap/48135
2860 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
2861 reference. Solaris 8 perl works.
2862
64cadbe7
RO
28632011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2864
2865 PR bootstrap/48135
2866 * doc/install.texi (Prerequisites): Move jar etc. up.
2867 Explain support library version requirements.
2868
eb975109
RO
28692011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2870
2871 PR bootstrap/48135
2872 * doc/install.texi (Prerequisites): Move Perl to build
2873 requirements. Always necessary on Solaris 2 with Sun ld.
2874
8a509ffd
RO
28752011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2876
2877 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
2878 binutils 2.21.
2879 (Specific, i?86-*-solaris2.[89]): Likewise.
2880 (Specific, i?86-*-solaris2.10): Likewise.
2881 (Specific, mips-sgi-irix6): Likewise.
2882 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
2883 Update for binutils 2.21.
2884
8fbc58a1
RO
28852011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2886
2887 * configure.ac (gcc_cv_lto_plugin): Fix typo.
2888 Allow -fuse-linker-plugin for non-default plugin linker.
2889 * configure: Regenerate.
2890
7e84ad0b
NP
28912011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
2892
2893 PR bootstrap/48167
2894 * gengtype.c (files_rules): Added rule for cp/parser.h.
2895
2f36e14b
JJ
28962011-03-21 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR target/48213
2899 * config/s390/s390.c (s390_delegitimize_address): Don't call
2900 lowpart_subreg if orig_x has BLKmode.
2901
62d784f7
KT
29022011-03-21 Kai Tietz <ktietz@redhat.com>
2903
2904 PR target/12171
9e43ad68
UB
2905 * doc/plugins.texi: Adjust documentation for plugin register_callback.
2906 * tree.h (attribute_spec): Add new member affects_type_identity.
2907 * attribs.c (empty_attribute_table): Adjust attribute_spec
2908 initializers.
62d784f7
KT
2909 * config/alpha/alpha.c: Likewise.
2910 * config/arc/arc.c: Likewise.
2911 * config/arm/arm.c: Likewise.
2912 * config/avr/avr.c: Likewise.
2913 * config/bfin/bfin.c: Likewise.
2914 * config/crx/crx.c: Likewise.
2915 * config/darwin.h: Likewise.
2916 * config/h8300/h8300.c: Likewise.
2917 * config/i386/cygming.h: Likewise.
2918 * config/i386/i386.c: Likewise.
2919 * config/ia64/ia64.c: Likewise.
2920 * config/m32c/m32c.c: Likewise.
2921 * config/m32r/m32r.c: Likewise.
2922 * config/m68hc11/m68hc11.c: Likewise.
2923 * config/m68k/m68k.c: Likewise.
2924 * config/mcore/mcore.c: Likewise.
2925 * config/mep/mep.c: Likewise.
2926 * config/microblaze/microblaze.c: Likewise.
2927 * config/mips/mips.c: Likewise.
2928 * config/rs6000/rs6000.c: Likewise.
2929 * config/rx/rx.c: Likewise.
2930 * config/sh/sh.c: Likewise.
2931 * config/sol2.h: Likewise.
2932 * config/sparc/sparc.c: Likewise.
2933 * config/spu/spu.c: Likewise.
2934 * config/stormy16/stormy16.c: Likewise.
2935 * config/v850/v850.c: Likewise.
2936
54833ec0
CLT
29372011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
2938
2939 * simplify-rtx.c (simplify_binary_operation_1): Handle
2940 (xor (and A B) C) case when B and C are both constants.
2941
14a41392
MX
29422011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
2943
2944 * tree-dfa.c (add_referenced_var): Fix typo in comment.
2945
806c3492
EB
29462011-03-20 Eric Botcazou <ebotcazou@adacore.com>
2947
2948 PR bootstrap/48168
2949 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
2950
65e0a0f3
JJ
29512011-03-20 Jakub Jelinek <jakub@redhat.com>
2952
2953 PR rtl-optimization/48156
2954 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
2955 assume df and df_lr are not NULL.
2956
b6a75dda
RR
29572011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2958
2959 PR debug/48023
2960 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
2961 between a call and its CALL_ARG_LOCATION note.
2962
5969b52d
KK
29632011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
2964
2965 PR debug/48178
2966 * config/sh/sh.c (find_barrier): Don't emit a constant pool
2967 between a call and its corresponding CALL_ARG_LOCATION note.
2968
f773c2bd
AS
29692011-03-19 Anatoly Sokolov <aesok@post.ru>
2970
2971 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
2972 instead of loop. Use HARD_REGISTER_NUM_P predicate.
2973 * haifa-sched.c (setup_ref_regs): Ditto.
2974 * caller-save.c (add_used_regs_1): Ditto.
2975 * dse.c (look_for_hardregs): Ditto.
2976 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
2977 * sched-rgn.c (check_live_1): Ditto.
2978
8bf872f9
JM
29792011-03-18 Joseph Myers <joseph@codesourcery.com>
2980
2981 * c-decl.c (diagnose_mismatched_decls): Give an error for
2982 redefining a typedef with variably modified type.
2983
ff8e2159
JM
29842011-03-18 Joseph Myers <joseph@codesourcery.com>
2985
2986 * c-decl.c (grokfield): Don't allow typedefs for structures or
2987 unions with no tag by default.
2988 * doc/extend.texi (Unnamed Fields): Update.
2989
16cc4440
UB
29902011-03-18 Uros Bizjak <ubizjak@gmail.com>
2991
2992 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
2993 Rewrite using indirect functions.
2994 (lwp_slwpcb): Ditto.
2995 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
2996 (avx_vinsertf128<mode>): Ditto.
2997
e101e12e
AK
29982011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2999
3000 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
3001 unspecs.
3002
4627c7fb
AK
30032011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3004
3005 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 3006 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 3007
2d36b47f
MK
30082011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3009
3010 PR rtl-optimization/48170
3011 * gcse.c (hoist_code): Remove bogus asserts.
3012
2a3d7659
JL
30132011-03-18 Georg-Johann Lay <avr@gjlay.de>
3014
3015 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
3016 computation for prologue/epilogue.
3017
34c3ef05
RO
30182011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3019
3020 * Makefile.in (check-consistency): Remove.
3021
81f2b976
JJ
30222011-03-18 Jakub Jelinek <jakub@redhat.com>
3023
3024 PR debug/48176
3025 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
3026 arange_table_in_use is 0, but either text_section_used or
3027 cold_text_section_used is true. Don't call it if
3028 !info_section_emitted.
3029
68fd7765
AS
30302011-03-18 Anatoly Sokolov <aesok@post.ru>
3031
3032 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
3033 FUNCTION_VALUE_REGNO_P): Remove.
3034 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
3035 Remove.
3036 * config/avr/avr.c (avr_ret_register): Make static inline.
3037 (avr_function_value_regno_p): New function.
3038 (avr_libcall_value): Make static. Add 'func' argument.
3039 (avr_function_value): Make static. Rename 'func' argument to
3040 'fn_decl_or_type', forward it to avr_libcall_value. Call
3041 avr_ret_register function instead of RET_REGISTER macro.
3042 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3043
b4ef8aac
JM
30442011-03-18 Jason Merrill <jason@redhat.com>
3045
3046 PR c++/23372
3047 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
3048
09a52fc3
RG
30492011-03-18 Richard Guenther <rguenther@suse.de>
3050
3051 * doc/install.texi (--enable-gold): Remove.
3052 (--with-plugin-ld): Document.
3053 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
3054
2a3d7659 30552011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
3056
3057 PR middle-end/47790
3058 * expr.c (optimize_bitfield_assignment_op): Revamp to work
3059 again after expansion changes.
3060
2abbb0fe
CLT
30612011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
3062
3063 * combine.c (try_combine): Do simplification only call of
3064 subst() on i2 even when i1 is present. Update comments.
3065
2efd0aa6
KK
30662011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
3067
3068 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
3069 and UNSPEC_PCREL_SYMOFF.
3070
30a49b23
AK
30712011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3072
3073 * config/s390/s390.md: Use define_c_enum for the unspec constant
3074 definitions.
3075
419e1853
JJ
30762011-03-18 Richard Henderson <rth@redhat.com>
3077 Jakub Jelinek <jakub@redhat.com>
3078
3079 PR bootstrap/48161
3080 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
3081 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
3082
37875856
L
30832011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3084
3085 PR middle-end/47725
3086 * combine.c (cant_combine_insn_p): Don't check zero/sign
3087 extended hard registers.
3088
76069764
L
30892011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3090
3091 PR middle-end/47725
3092 * combine.c (cant_combine_insn_p): Check zero/sign extended
3093 hard registers.
3094
24da2019
AS
30952011-03-17 Anatoly Sokolov <aesok@post.ru>
3096
3097 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3098 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
3099 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
3100 Change return type to bool.
3101 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3102
a82ff31f
JJ
31032011-03-17 Jakub Jelinek <jakub@redhat.com>
3104
8b29c87a
JJ
3105 PR debug/48163
3106 * var-tracking.c (prepare_call_arguments): If CALL target
3107 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
3108 pc instead of looking it up using cselib_lookup and use
3109 Pmode for it if x has VOIDmode.
3110 * dwarf2out.c (gen_subprogram_die): If also both first and
3111 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
3112
a82ff31f
JJ
3113 PR debug/48163
3114 * function.c (assign_parms): For data.passed_pointer parms
3115 use MEM of data.entry_parm instead of data.entry_parm itself
3116 as DECL_INCOMING_RTL.
3117 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
3118 also when passed and declared mode is the same, DECL_RTL
3119 is a MEM with pseudo as address and DECL_INCOMING_RTL is
3120 a MEM too.
3121
82ce305c
JL
31222011-03-16 Jeff Law <law@redhat.com>
3123
3124 PR rtl-optimization/37273
3125 * ira-costs.c (scan_one_insn): Detect constants living in memory and
3126 handle them like argument loads from stack slots. Do not double
3127 count memory for memory constants and argument loads from stack slots.
3128
fe58e02b
L
31292011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3130
3131 PR debug/48160
3132 * var-tracking.c (prepare_call_arguments): Check SUBREG.
3133
6fc4dbc7
L
31342011-03-17 H.J. Lu <hongjiu.lu@intel.com>
3135
3136 PR target/48171
3137 * config/i386/i386.opt: Add Save to -mavx and -mfma.
3138
db3ed0b3
JJ
31392011-03-17 Jakub Jelinek <jakub@redhat.com>
3140
8054a389
JJ
3141 PR bootstrap/48153
3142 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
3143 if dwarf_strict.
3144 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
3145 Clear call_arg_locations and call_arg_loc_last always.
3146
db3ed0b3
JJ
3147 PR middle-end/48152
3148 * var-tracking.c (prepare_call_arguments): If argument needs to be
3149 passed by reference, adjust argtype and mode.
3150
1bce4ff3
RG
31512011-03-17 Richard Guenther <rguenther@suse.de>
3152
3153 PR middle-end/48134
3154 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
3155 a value make sure to fold the statement.
3156
7c71147d
CLT
31572011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
3158
3159 PR target/43872
3160 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
3161 return condition with !cfun->calls_alloca.
3162
0e1ee172
RG
31632011-03-17 Richard Guenther <rguenther@suse.de>
3164
3165 PR bootstrap/48148
3166 * lto-cgraph.c (input_overwrite_node): Clear the abstract
3167 origin for decls in other ltrans units.
3168 (input_varpool_node): Likewise.
3169
f8bce518
RG
31702011-03-17 Richard Guenther <rguenther@suse.de>
3171
3172 PR middle-end/48165
3173 * tree-object-size.c (compute_object_offset): Properly return
3174 the offset operand of MEM_REFs as sizetype.
3175
1b6fa860
JJ
31762011-03-17 Jakub Jelinek <jakub@redhat.com>
3177
dabd47e7
JJ
3178 PR rtl-optimization/48141
3179 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
3180 * dse.c: Include params.h.
3181 (active_local_stores_len): New variable.
3182 (add_wild_read, dse_step1): Clear it when setting active_local_stores
3183 to NULL.
3184 (record_store, check_mem_read_rtx): Decrease it when removing
3185 from the chain.
3186 (scan_insn): Likewise. Increase it when adding to chain, if it
3187 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
3188 set active_local_stores to NULL before the addition.
3189 * Makefile.in (dse.o): Depend on $(PARAMS_H).
3190
1b6fa860
JJ
3191 PR rtl-optimization/48141
3192 * dse.c (record_store): If no positions are needed in an insn
3193 that cannot be deleted, at least unchain it from active_local_stores.
3194
7b5cb7d6
DS
31952011-03-16 Dodji Seketeli <dodji@redhat.com>
3196
3197 PR debug/47510
3198 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
3199 (lookup_type_die_strip_naming_typedef): ... here.
3200 (get_context_die): Use it.
3201 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
3202 the anonymous struct named by the naming typedef.
3203
585e9d9d
L
32042011-03-16 H.J. Lu <hongjiu.lu@intel.com>
3205
3206 PR target/48154
3207 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
3208 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3209
6261ab0e
JL
32102011-03-16 Jeff Law <law@redhat.com>
3211
3212 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 3213 check for operands of conditional. Allow type to be a pointer.
6261ab0e 3214
0b0081ec
RG
32152011-03-16 Richard Guenther <rguenther@suse.de>
3216
3217 PR tree-optimization/48149
3218 * fold-const.c (fold_binary_loc): Fold
3219 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
3220
64a3d647
RG
32212011-03-16 Richard Guenther <rguenther@suse.de>
3222
3223 PR tree-optimization/26134
3224 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
3225 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
3226 (non_rewritable_mem_ref_base): Handle complex type component
3227 accesses, constrain offsets for vector and complex extracts
3228 more properly.
3229
ef13324e
RG
32302011-03-16 Richard Guenther <rguenther@suse.de>
3231
3232 PR tree-optimization/48146
3233 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
3234 operands avoiding the need for renaming.
3235
f0eddb90
RG
32362011-03-16 Richard Guenther <rguenther@suse.de>
3237
3238 * gimple-fold.c (maybe_fold_reference): Open-code relevant
3239 constant folding. Move MEM_REF canonicalization first.
3240 Rely on fold_const_aggregate_ref for initializer folding.
3241 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
3242
e42348b8
JJ
32432011-03-16 Jakub Jelinek <jakub@redhat.com>
3244
29f10e71
JJ
3245 PR middle-end/48136
3246 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
3247 arg0/arg1 or their arguments are always fold converted to matching
3248 types.
3249
e42348b8
JJ
3250 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
3251 to nargs.
3252
55b46574
RO
32532011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3254
3255 PR lto/46944
3256 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
3257 Handle in-tree gold.
3258 (ld_vers): Extract binutils version for gold.
3259 (gcc_cv_ld_hidden): Handle gold here.
3260 (gcc_cv_lto_plugin): Determine level of linker plugin support.
3261 * configure: Regenerate.
3262 * config.in: Regenerate.
3263 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
3264 -fuse-linker-plugin otherwise.
3265 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
3266 (LINK_COMMAND_SPEC): Use it.
3267 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
3268
2b1c5433
JJ
32692011-03-16 Jakub Jelinek <jakub@redhat.com>
3270
c2969d8e
JJ
3271 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
3272 * calls.c: Remove debug.h include.
3273 (emit_call_1): Don't call virtual_call_token debug hook.
3274 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
3275 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
3276 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
3277 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
3278 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
3279 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
3280 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
3281 dwarf2out_virtual_call): Remove.
3282 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
3283 copy_call_info and virtual_call hooks.
3284 (dwarf2out_init): Don't initialize vcall_insn_table,
3285 debug_dcall_section and debug_vcall_section.
3286 (prune_unused_types): Don't mark nodes from dcall_table.
3287 (dwarf2out_finish): Don't output dcall or vcall tables.
3288 * final.c (final_scan_insn): Don't call direct_call or
3289 virtual_call debug hooks.
3290 * debug.h (struct gcc_debug_hooks): Remove direct_call,
3291 virtual_call_token, copy_call_info and virtual_call hooks.
3292 (debug_nothing_uid): Remove prototype.
3293 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
3294 copy_call_info and virtual_call hooks.
3295 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
3296 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
3297 * debug.c (do_nothing_debug_hooks): Likewise.
3298 (debug_nothing_uid): Remove.
3299 * doc/invoke.texi (-fenable-icf-debug): Remove.
3300 * common.opt (-fenable-icf-debug): Likewise.
3301
325f5379
JJ
3302 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
3303 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
3304 call's MEM. Handle functions returning aggregate through a hidden
3305 first pointer. For virtual calls add clobbered pc to call arguments
3306 chain.
3307 * dwarf2out.c (gen_subprogram_die): Emit
3308 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
3309 can't be emitted.
3310
a58a8e4b
JJ
3311 PR debug/45882
3312 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
3313 * rtl.h (ENTRY_VALUE_EXP): Define.
3314 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
3315 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3316 * print-rtl.c (print_rtx): Likewise.
3317 * gengtype.c (adjust_field_rtx_def): Likewise.
3318 * var-tracking.c (vt_add_function_parameter): Adjust
3319 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
3320 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
3321 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
3322 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
3323 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
3324
2b1c5433
JJ
3325 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
3326 Call var_location debug hook even on CALL_INSNs.
3327 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
3328 * rtl.def (ENTRY_VALUE): New.
3329 * dwarf2out.c: Include cfglayout.h.
3330 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3331 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
3332 (struct call_arg_loc_node): New type.
3333 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
3334 tail_call_site_count): New variables.
3335 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
3336 DW_TAG_GNU_call_site_parameter.
3337 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
3338 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
3339 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
3340 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
3341 and DW_AT_GNU_all_source_call_sites.
3342 (mem_loc_descriptor): Handle ENTRY_VALUE.
3343 (add_src_coords_attributes): Don't add enything if
3344 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
3345 (dwarf2out_abstract_function): Save and clear call_arg_location,
3346 call_site_count and tail_call_site_count around dwarf2out_decl call.
3347 (gen_call_site_die): New function.
3348 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
3349 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
3350 (dwarf2out_function_decl): Clear call_arg_locations,
3351 call_arg_loc_last, set call_site_count and tail_call_site_count
3352 to -1 and free block_map.
3353 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
3354 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
3355 followed by any real instructions.
3356 (dwarf2out_begin_function): Set call_site_count and
3357 tail_call_site_count to 0.
3358 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
3359 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
3360 attempt to force a DIE for it and worst case remove the attribute.
3361 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
3362 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
3363 the decl itself.
3364 * var-tracking.c: Include tm_p.h.
3365 (vt_stack_adjustments): For calls call note_register_arguments.
3366 (argument_reg_set): New variable.
3367 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
3368 ensure the VALUE is resolved.
3369 (call_arguments): New variable.
3370 (prepare_call_arguments): New function.
3371 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
3372 (struct expand_loc_callback_data): Add ignore_cur_loc field.
3373 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
3374 always use the best expression.
3375 (vt_expand_loc): Add ignore_cur_loc argument.
3376 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
3377 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
3378 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
3379 note for all calls.
3380 (vt_add_function_parameter): Use cselib_lookup_from_insn.
3381 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
3382 argument. Don't call cselib_preserve_only_values and
3383 cselib_reset_table.
3384 (note_register_arguments): New function.
3385 (vt_initialize): Compute argument_reg_set. Call
3386 vt_add_function_parameters before processing basic blocks instead of
3387 afterwards. For calls call prepare_call_arguments before calling
3388 cselib_process_insn.
3389 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
3390 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
3391 (var-tracking.o): Depend on $(TM_P_H).
3392 * cfglayout.h (insn_scope): New prototype.
3393 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
3394 * cfglayout.c (insn_scope): No longer static.
3395 * insn-notes.def (CALL_ARG_LOCATION): New.
3396 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
3397 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
3398 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
3399 nothing for DECL_EXTERNAL BLOCK_VARS.
3400
9ef13bd0
AM
34012011-03-16 Alan Modra <amodra@gmail.com>
3402
3403 PR target/45844
3404 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
3405 create invalid offset address for vsx splat insn.
3406 * config/rs6000/predicates.md (splat_input_operand): New.
3407 * config/rs6000/vsx.md (vsx_splat_*): Use it.
3408
56b67510
XDL
34092011-03-15 Xinliang David Li <davidxl@google.com>
3410
3411 PR c/47837
3412 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
3413 (normalize_preds): New function.
3414 (is_use_properly_guarded): Normalize def predicates.
3415
80fffdef
RR
34162011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3417
732f37c6 3418 PR target/46788
80fffdef
RR
3419 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
3420 in the output template.
3421
930672ad
RG
34222011-03-15 Richard Guenther <rguenther@suse.de>
3423
3424 PR middle-end/47650
3425 * tree-pretty-print.c (dump_function_declaration): Properly
3426 dump unprototyped and varargs function types.
3427
c7ee7b45
RG
34282011-03-15 Richard Guenther <rguenther@suse.de>
3429
3430 PR tree-optimization/13954
3431 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
3432 and friends.
3433
b2ad5e37
RG
34342011-03-15 Richard Guenther <rguenther@suse.de>
3435
3436 PR tree-optimization/48037
3437 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
3438 selects into BIT_FIELD_REFs.
3439 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
3440 vector select.
3441
7ee93d4e
JJ
34422011-03-15 Jakub Jelinek <jakub@redhat.com>
3443
3444 PR tree-optimization/48129
3445 * builtins.c (fold_builtin_snprintf): Convert to type of
3446 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
3447 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
3448
e106efc7
RG
34492011-03-15 Richard Guenther <rguenther@suse.de>
3450
3451 PR tree-optimization/41490
3452 * tree-ssa-dce.c (propagate_necessity): Handle returns without
3453 value but with VUSE.
3454 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
3455 return statements.
3456 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
3457 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
3458 * tree-tailcall.c (find_tail_calls): Ignore returns.
3459
17dea42f
RG
34602011-03-15 Richard Guenther <rguenther@suse.de>
3461
3462 PR middle-end/48031
3463 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
3464 or variable-indexed array accesses when in gimple form.
3465
01c77a60
RG
34662011-03-15 Richard Guenther <rguenther@suse.de>
3467
16cc4440 3468 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 3469
77b0791e
AM
34702011-03-15 Alan Modra <amodra@gmail.com>
3471
3472 PR target/48032
3473 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
3474 presume symbol_refs without a symbol_ref_decl are suitably
3475 aligned, nor other trees we may see here. Handle anchor symbols.
3476 (legitimate_constant_pool_address_p): Comment. Add mode param.
3477 Check cmodel=medium addresses. Adjust all calls.
3478 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
3479 creating cmodel=medium optimized access to locals.
3480 * config/rs6000/constraints.md (R): Pass QImode to
3481 legitimate_constant_pool_address_p.
3482 * config/rs6000/predicates.md (input_operand): Pass mode to
3483 legitimate_constant_pool_address_p.
3484 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
3485 Update prototype.
3486
35f61ba4
MM
34872011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3488
3489 PR target/48053
3490 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
3491 64-bit constants being loaded into registers other than GPRs such
3492 as loading 0 into a VSX register.
3493
07332e6d
RO
34942011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3495
16cc4440 3496 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 3497
de888d90
JJ
34982011-03-14 Jakub Jelinek <jakub@redhat.com>
3499
ba3ceb2d
JJ
3500 PR middle-end/47917
3501 * builtins.c (fold_builtin_snprintf): New function.
3502 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
3503 (fold_builtin_4): Likewise.
3504
2e64f8b8
JJ
3505 PR middle-end/38878
3506 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
3507 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
3508 and C - X == X also strip nops from +/-/p+ operand.
3509 When optimizing -X == C, fold C to arg0's type.
3510
de888d90
JJ
3511 PR debug/47946
3512 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
3513 emit it as add_AT_int instead of add_AT_unsigned.
3514
35152011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
3516
3517 * unwind-dw2.c: Include sys/sdt.h if it exists.
3518 (_Unwind_DebugHook): Use STAP_PROBE2.
3519 * config.in, configure: Rebuild.
3520 * configure.ac: Check for sys/sdt.h.
3521
d34abfd2
UB
35222011-03-14 Uros Bizjak <ubizjak@gmail.com>
3523
3524 * config/i386/i386.md (ROUND_FLOOR): New constant.
3525 (ROUND_CEIL): Ditto.
3526 (ROUND_TRUNC): Ditto.
3527 (ROUND_MXCSR): Ditto.
3528 (ROUND_NO_EXC): Ditto.
3529 (rint<mode>2): Use new defines instead of numerical constants.
3530 (floor<mode>2): Ditto.
3531 (ceil<mode>2): Ditto.
3532 (btrunc<mode>2): Ditto.
3533 * config/i386/i386-builtin-types.def: Define ROUND function type
3534 aliases.
3535 * config/i386/i386.c (enum ix86_builtins): Add
3536 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
3537 (struct builtin_description): Add
3538 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
3539 (ix86_expand_sse_round): New static function.
3540 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
3541 function types.
3542 (ix86_builtin_vectorized_function): Handle
3543 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
3544
87f9e23d
TT
35452011-03-14 Tom Tromey <tromey@redhat.com>
3546
3547 * c-parser.c (c_parser_asm_string_literal): Clear
3548 warn_overlength_strings.
3549
b3ab9ea2
TT
35502011-03-14 Tom Tromey <tromey@redhat.com>
3551
3552 * c-parser.c (disable_extension_diagnostics): Save
3553 warn_overlength_strings.
3554 (restore_extension_diagnostics): Restore warn_overlength_strings.
3555
6bd73dd8
JJ
35562011-03-14 Jakub Jelinek <jakub@redhat.com>
3557
3558 * BASE-VER: Change to 4.7.0.
3559
7f4d6e1b
RG
35602011-03-14 Richard Guenther <rguenther@suse.de>
3561
3562 PR middle-end/48098
3563 * tree.c (build_vector_from_val): Adjust assert to requirements
3564 and reality.
3565
c6104ef1
JJ
35662011-03-14 Jakub Jelinek <jakub@redhat.com>
3567
3568 PR bootstrap/48102
d34abfd2 3569 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 3570
dfa95e19
AT
35712011-03-14 Andreas Tobler <andreast@fgznet.ch>
3572
3573 * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
3574 terms of target_flags_explicit. Adjust copyright year.
3575
3576 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
3577 * config/rs6000/t-freebsd: New file. Add override for
3578 LIB2FUNCS_EXTRA.
3579
bb322018
CD
35802011-03-13 Chris Demetriou <cgd@google.com>
3581
3582 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
3583 (-fno-diagnostics-show-option): this, to reflect current default.
3584 (-Werror=): Update text about -fno-diagnostics-show-option.
3585
12b1c80b
PB
35862011-03-12 Peter Bergner <bergner@vnet.ibm.com>
3587
3588 PR target/48053
3589 * config/rs6000/predicates.md (easy_vector_constant_add_self,
3590 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
3591 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
3592 mode is not V2DImode or V2DFmode.
3593 (vspltis_constant): Do not handle V2DImode and V2DFmode.
3594 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
3595 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
3596 registers to 0.
3597 (movdi_internal64): Likewise.
3598
57d598f7
SP
35992011-03-12 Sebastian Pop <sebastian.pop@amd.com>
3600
3601 PR tree-optimization/47127
3602 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
3603 parameter.
3604 (set_cloog_options): Same.
3605 (scop_to_clast): Same.
3606 (print_clast_stmt): Do not call cloog_state_malloc and
3607 cloog_state_free.
3608 (print_generated_program): Same.
3609 (gloog): Same.
3610 * graphite-clast-to-gimple.h (cloog_state): Declared.
3611 (scop_to_clast): Adjust declaration.
3612 * graphite.c (cloog_state): Defined here.
3613 (graphite_initialize): Call cloog_state_malloc.
3614 (graphite_finalize): Call cloog_state_free.
3615
f231b5ff
JM
36162011-03-11 Jason Merrill <jason@redhat.com>
3617
3618 * attribs.c (lookup_attribute_spec): Take const_tree.
3619 * tree.h: Adjust.
3620
6a4e2bd5
JM
36212011-03-11 Joseph Myers <joseph@codesourcery.com>
3622
3623 * config/sparc/sparc.c (sparc_option_override): Use
3624 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
3625
a758fd67
RG
36262011-03-11 Richard Guenther <rguenther@suse.de>
3627
3628 PR tree-optimization/48067
3629 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
3630 multiplication result will be only used once on the target
3631 stmt.
3632
03dfda54
RG
36332011-03-11 Richard Guenther <rguenther@suse.de>
3634
3635 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
3636
5f11a50a
RG
36372011-03-11 Richard Guenther <rguenther@suse.de>
3638
3639 PR lto/48073
3640 * tree.c (find_decls_types_r): Do not walk types only reachable
3641 from IDENTIFIER_NODEs.
3642
4074f163
JJ
36432011-03-11 Jakub Jelinek <jakub@redhat.com>
3644
3645 PR middle-end/48044
3646 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
3647 all vnode->force_output nodes as needed.
3648
30f7cdcd
JM
36492011-03-11 Jason Merrill <jason@redhat.com>
3650
3651 PR c++/48069
3652 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
3653 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
3654
62ecfeb8
MJ
36552011-03-11 Martin Jambor <mjambor@suse.cz>
3656
3657 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
3658 cgraph_node.
3659
e89e03ab
JJ
36602011-03-11 Jakub Jelinek <jakub@redhat.com>
3661
3662 PR tree-optimization/48063
3663 * ipa-inline.c (cgraph_decide_inlining): Don't try to
3664 inline functions called once if !tree_can_inline_p (node->callers).
3665
efbe978b 36662011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 3667
efbe978b
EB
3668 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
3669 extra_objs.
9d6193a7
CL
3670 * config/score/score3.c: Delete.
3671 * config/score/score3.h: Delete.
3672 * config/score/mul-div.S: Delete.
3673 * config/score/sfp-machine.h: Add new file.
3674 * config/score/constraints.md: Add new file.
3675 * config/score/t-score-softfp: Add new file.
efbe978b 3676 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
3677 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
3678 (score7_extra_constraint): Delete.
efbe978b 3679 (score7_option_override): Remove unused code.
9d6193a7
CL
3680 * config/score/score.c: Remove score3 and score5 define and code.
3681 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 3682 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
3683 * config/score/score.opt: Remove score3 and score5 options.
3684
5de27cca
JDA
36852011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3686
3687 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
3688 when _HPUX_SOURCE is defined.
3689 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
3690
18d92053
JM
36912011-03-10 Jason Merrill <jason@redhat.com>
3692
3693 PR c++/48029
3694 * stor-layout.c (layout_type): Don't set structural equality
3695 on arrays of incomplete type.
3696 * tree.c (type_hash_eq): Handle comparing them properly.
3697
67a2f76d
JJ
36982011-03-10 Jakub Jelinek <jakub@redhat.com>
3699
3700 PR debug/48043
18d92053 3701 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
3702 result mode matches original rtl mode.
3703
d845b2f9
NC
37042011-03-10 Nick Clifton <nickc@redhat.com>
3705
3706 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 3707 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 3708
db7ec035
JJ
37092011-03-09 Jakub Jelinek <jakub@redhat.com>
3710
3711 PR rtl-optimization/47866
3712 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
3713 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
3714 if target wasn't scalar.
3715 * function.c (assign_stack_temp_for_type): Assert that neither
3716 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
3717 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
3718 macro.
3719 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
3720
5d304e47
AK
37212011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3722
3723 * config/s390/s390-protos.h (s390_label_align): New prototype.
3724 * config/s390/s390.c (s390_label_align): New function.
3725 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
3726
93b826f0
MM
37272011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3728
3729 PR target/47755
3730 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
3731 V2DI/V2DF constants. Only all 0's or all 1's are easy.
3732 (output_vec_const_move): Ditto.
3733
ef78aed6
AS
37342011-03-08 Anatoly Sokolov <aesok@post.ru>
3735
3736 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
3737 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
3738 * config/mips/mips.c (mips_preferred_reload_class): Make static.
3739 Change 'rclass' argument and result type to reg_class_t.
3740 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3741
5f892aa0
GJL
37422011-03-08 Georg-Johann Lay <avr@gjlay.de>
3743
9e43ad68
UB
3744 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3745 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
3746 (TARGET_MEMORY_MOVE_COST): Define.
3747 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 3748
32bd2409
JJ
37492011-03-08 Jakub Jelinek <jakub@redhat.com>
3750
530a4800
JJ
3751 PR debug/47881
3752 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
3753 removed anything.
3754
32bd2409
JJ
3755 PR tree-optimization/48022
3756 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
3757 for EQ/NE_EXPR.
3758
c7148991
JJ
37592011-03-07 Jakub Jelinek <jakub@redhat.com>
3760
3761 PR debug/47991
3762 * var-tracking.c (find_use_val): Return NULL for
3763 cui->sets && cui->store_p BLKmode MEMs.
3764
43070a6e
AS
37652011-03-07 Anatoly Sokolov <aesok@post.ru>
3766
3767 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
3768 Remove.
3769 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
3770 xstormy16_print_operand_address): Remove.
3771 * config/stormy16/stormy16.c (xstormy16_print_operand,
3772 xstormy16_print_operand_address): Make static.
3773 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3774
efbe978b 37752011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
3776
3777 PR target/47862
3778 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3779 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
3780 before definition.
3781
cec8ac0b
ZD
37822011-03-07 Zdenek Dvorak <ook@ucw.cz>
3783
3784 PR bootstrap/48000
3785 * cfgloopmanip.c (fix_bb_placements): Return immediately
3786 if FROM is BASE_LOOP's header.
3787
59527282
PW
37882011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
3789
3790 * gimplify.c (gimplify_function_tree): Fix building calls
3791 to __builtin_return_address.
3792
617718f7
AM
37932011-03-07 Alan Modra <amodra@gmail.com>
3794
3795 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
3796 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
3797 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
3798 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
3799 return_mode args.
3800 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
3801 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
3802 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
3803 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
3804 * config/rs6000/rs6000.c
3805 (rs6000_elf_end_indicate_exec_stack): Rename to..
3806 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
3807 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
3808 (rs6000_file_start): ..here.
3809 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
3810 file scope variables.
3811 (call_ABI_of_interest): New function.
3812 (init_cumulative_args): Set above vars when function return value
3813 is a float, vector, or small struct.
3814 (rs6000_function_arg_advance_1): Likewise for function args.
3815 (rs6000_va_start): Set rs6000_passes_float if variable arg function
3816 references float args.
3817
38528d50
MX
38182011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
3819
3820 * doc/cfg.texi: Remove "See" before @ref.
3821 * doc/invoke.texi: Likewise.
3822
f42cf4f4
JM
38232011-03-05 Jason Merrill <jason@redhat.com>
3824
3825 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
3826
804a304d
AG
38272011-03-05 Anthony Green <green@moxielogic.com>
3828
3829 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
3830
634ee309
ZD
38312011-03-05 Zdenek Dvorak <ook@ucw.cz>
3832
3833 PR rtl-optimization/47899
3834 * cfgloopmanip.c (fix_bb_placements): Fix first argument
3835 to flow_loop_nested_p when moving the loop upward.
3836
6fe471c8
RE
38372011-03-05 Richard Earnshaw <rearnsha@arm.com>
3838
3839 PR target/47719
3840 * arm.md (movhi_insn_arch4): Accept any immediate constant.
3841
cc58ceee
JJ
38422011-03-05 Jakub Jelinek <jakub@redhat.com>
3843
3844 PR tree-optimization/47967
3845 * ipa-cp.c (build_const_val): Return NULL instead of creating
3846 VIEW_CONVERT_EXPR for mismatching sizes.
3847 (ipcp_create_replace_map): Return NULL if build_const_val failed.
3848 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
3849 give up on versioning.
3850
ea868305
AM
38512011-03-05 Alan Modra <amodra@gmail.com>
3852
3853 PR target/47986
3854 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3855 full cmodel medium/large lo_sum + high addresses.
3856
bc6ce334
AK
38572011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3858
3859 * config/s390/s390.c (s390_decompose_address): Reject non-literal
3860 pool references in UNSPEC_LTREL_OFFSET.
3861
87e7b310
JH
38622011-03-04 Jan Hubicka <jh@suse.cz>
3863
3864 PR lto/47497
3865 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
3866 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
3867 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
3868 Add node pointers.
87e7b310
JH
3869 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
3870 cgraph_add_thunk): Add node pointers.
3871 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
3872 associated to right node.
3873 (input_node): Update use of cgraph_same_body_alias
3874 and cgraph_add_thunk.
3875
d9c64246
CF
38762011-03-04 Changpeng Fang <changpeng.fang@amd.com>
3877
3878 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
3879 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
3880 modes when the flag -mprefer-avx128 is on.
d9c64246 3881
08707076
RS
38822011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
3883
3884 * dwarf2out.c (compare_loc_operands): Fix address handling.
3885
52517c81
AM
38862011-03-04 Alan Modra <amodra@gmail.com>
3887
3888 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
3889
b147c5b9
RG
38902011-03-04 Richard Guenther <rguenther@suse.de>
3891
3892 PR middle-end/47968
3893 * expmed.c (extract_bit_field_1): Prefer vector modes that
3894 vec_extract patterns can handle.
3895
8750672f
RG
38962011-03-04 Richard Guenther <rguenther@suse.de>
3897
3898 PR middle-end/47975
3899 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
3900
9eac0f2a
RH
39012011-03-04 Richard Henderson <rth@redhat.com>
3902
3903 * explow.c (emit_stack_save): Remove 'after' parameter.
3904 (emit_stack_restore): Likewise.
3905 * expr.h: Update to match.
3906 * builtins.c, calls.c, stmt.c: Likewise.
3907 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
3908 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
3909 * function.c (expand_function_end): Insert the emit_stack_save
3910 sequence before parm_birth_insn instead of after.
3911
dfee1406
UB
39122011-03-03 Uros Bizjak <ubizjak@gmail.com>
3913
3914 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
3915 (ssse3_pmaddubsw128): Ditto.
3916 (ssse3_pmaddubsw): Ditto.
3917
f1d4c3de
SE
39182011-03-03 Steve Ellcey <sje@cup.hp.com>
3919
3920 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
3921
71f3a3f5
JJ
39222011-03-03 Jakub Jelinek <jakub@redhat.com>
3923
423ed416
JJ
3924 PR c/47963
3925 * gimplify.c (omp_add_variable): Only call omp_notice_variable
3926 on TYPE_SIZE_UNIT if it is a DECL.
3927
71f3a3f5
JJ
3928 PR debug/47283
3929 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
3930 first operand is not is_gimple_mem_ref_addr, try to fold it.
3931 If the operand still isn't is_gimple_mem_ref_addr, clear
3932 MEM_EXPR on op0.
3933
4b1a5c0d
RG
39342011-03-03 Richard Guenther <rguenther@suse.de>
3935
3936 PR middle-end/47283
3937 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
3938 match comment.
3939 (refs_may_alias_p_1): For release branches return true if
3940 we are confused by our input.
3941
b46616fd
AK
39422011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3943
3944 * config/s390/s390.c (s390_function_value): Rename to ...
3945 (s390_function_and_libcall_value): ... this.
3946 (s390_function_value): New function.
3947 (s390_libcall_value): New function.
dfee1406 3948 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
3949 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
3950 target macro definitions.
3951 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
3952
46d8fabb
JM
39532011-03-02 Joseph Myers <joseph@codesourcery.com>
3954
3955 * config/i386/freebsd64.h (CC1_SPEC): Define.
3956 * config/i386/linux64.h (CC1_SPEC): Define.
3957 * config/i386/x86-64.h (CC1_SPEC): Don't define.
3958
6b1ce545
AS
39592011-03-02 Anatoly Sokolov <aesok@post.ru>
3960
3961 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3962 Remove.
3963 * config/stormy16/stormy16.c: Include reload.h.
3964 (xstormy16_memory_move_cost): New function.
3965 (TARGET_MEMORY_MOVE_COST): Define.
3966
34161e98
RS
39672011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
3968
3969 PR rtl-optimization/47925
3970 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
3971 with side effects. Remove the more-specific check for volatile asms.
3972
f60a97cf
AM
39732011-03-02 Alan Modra <amodra@gmail.com>
3974
3975 PR target/47935
3976 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
3977 toc relative addresses for valid offsets.
3978
f2ca11ca
RG
39792011-03-01 Richard Guenther <rguenther@suse.de>
3980
3981 PR tree-optimization/47890
3982 * tree-vect-loop.c (get_initial_def_for_induction): Set
3983 related stmt properly.
3984
7a00d9ea
RG
39852011-03-01 Richard Guenther <rguenther@suse.de>
3986
3987 PR lto/47924
3988 * lto-streamer.c (lto_record_common_node): Also register
3989 the canonical type.
3990
06c7edcc
RG
39912011-03-01 Richard Guenther <rguenther@suse.de>
3992
3993 PR lto/46911
3994 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3995 Do not stream DECL_ABSTRACT_ORIGIN.
3996 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
3997 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
3998 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3999 Do not stream DECL_ABSTRACT_ORIGIN.
4000 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
4001 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
4002
998871e9
AS
40032011-02-28 Anatoly Sokolov <aesok@post.ru>
4004
4005 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
4006 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 4007 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
4008 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
4009 Add 'outgoing' argument.
4010 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
4011 function.
4012 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4013 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4014
94369251
KT
40152011-02-28 Kai Tietz <kai.tietz@onevision.com>
4016
4017 PR debug/28047
4018 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
4019 (lookup_filename): Likewise.
b2e2ea67 4020 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 4021
80a832cd
JJ
40222011-02-28 Bernd Schmidt <bernds@codesourcery.com>
4023 Jakub Jelinek <jakub@redhat.com>
4024
4025 PR middle-end/47893
4026 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
4027 (assign_stack_local_1): Change last argument type to int.
4028 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
4029 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 4030 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
4031 (assign_stack_local): Adjust caller.
4032 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
4033 of assign_stack_local, pass 0 as last argument.
4034 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
4035 callers.
4036
1b500976
JJ
40372011-02-28 Jakub Jelinek <jakub@redhat.com>
4038
f61c6f34
JJ
4039 PR debug/47283
4040 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
4041 Use target address_mode and pointer_mode hooks instead of hardcoded
4042 Pmode and ptr_mode. Handle some simple cases of extending if
4043 POINTERS_EXTEND_UNSIGNED < 0.
4044 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
4045 Call convert_debug_memory_address.
4046 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
4047 convert_debug_memory_address.
4048
1b500976
JJ
4049 PR middle-end/46790
4050 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
4051 * configure: Regenerated.
4052 * config.in: Regenerated.
4053 * varasm.c (default_function_section): Return NULL
b2e2ea67 4054 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 4055
2f2935b6
MJ
40562011-02-28 Martin Jambor <mjambor@suse.cz>
4057
4058 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
4059 the description to match the printed values.
4060
474086eb
RG
40612011-02-28 Richard Guenther <rguenther@suse.de>
4062
4063 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
4064 of the copied scope tree.
4065
15bf6f3a
RW
40662011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4067
4068 * doc/extend.texi (Function Attributes): Avoid deeply (and
4069 wrongly) nested tables.
4070
f6b439c9
JJ
40712011-02-27 Jakub Jelinek <jakub@redhat.com>
4072
4073 PR middle-end/47903
4074 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
4075 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
4076 r isn't op0 nor op1.
4077
1d8ca2c7
GJL
40782011-02-23 Georg-Johann Lay <avr@gjlay.de>
4079
4080 * config/avr/avr.md: Remove magic comment for emacs.
4081
593fca4b
GJL
40822011-02-23 Georg-Johann Lay <avr@gjlay.de>
4083
4084 PR target/45261
4085 * config/avr/avr.c (avr_option_override): Use error on bad options.
4086 (avr_help): New function.
4087 (TARGET_HELP): Define.
4088
6609216e
GJL
40892011-02-22 Georg-Johann Lay <avr@gjlay.de>
4090
4091 PR target/42240
4092 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
4093 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
4094
03d458af
GP
40952011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
4096
4097 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
4098 (ARM Options): Ditto.
4099 (i386 and x86-64 Options): Ditto.
4100 (RX Options): Ditto.
4101 (SPARC Options): Ditto.
4102
1c379b78
TC
41032011-02-26 Tijl Coosemans <tijl@coosemans.org>
4104
4105 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
4106 FreeBSD 6 and later. Generally use cpu generic.
4107
d5ed058c 41082011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 4109
d5ed058c
GP
4110 * doc/cpp.texi: Update copyright years.
4111
509d65dd 41122011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 4113
509d65dd 4114 PR target/46898
308d39cd
SB
4115 * config/lm32/lm32.md (ashrsi3): Added needed variable.
4116
509d65dd 41172011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 4118
509d65dd 4119 PR target/46898
308d39cd
SB
4120 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
4121 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
4122 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
4123 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 4124 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
4125 (gen_int_relational): Move declarations to start of function.
4126
822ba6d7
EB
41272011-02-25 Eric Botcazou <ebotcazou@adacore.com>
4128
4129 PR tree-optimization/45470
4130 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
4131 can throw internally only.
4132 * tree-vect-stmts.c (vectorizable_call): Likewise.
4133
ef795fc2
AS
41342011-02-24 Anatoly Sokolov <aesok@post.ru>
4135
4136 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
4137 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
4138 * config/stormy16/stormy16-protos.h
4139 (xstormy16_preferred_reload_class): Remove.
4140 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
4141 static. Change 'rclass' argument and return type to reg_class_t.
4142 (TARGET_PREFERRED_RELOAD_CLASS,
4143 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4144
1c3277ee
RG
41452011-02-24 Richard Guenther <rguenther@suse.de>
4146
4147 * lto-streamer-in.c (input_bb): Do not find referenced vars
4148 in debug statements.
4149
67e18edb
JM
41502011-02-23 Jason Merrill <jason@redhat.com>
4151
4152 * common.opt (fabi-version): Document v5 and v6.
4153
b14fad9d
RG
41542011-02-23 Richard Guenther <rguenther@suse.de>
4155
4156 PR tree-optimization/47849
4157 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
4158
7fcf46f5
JZ
41592011-02-23 Jie Zhang <jie@codesourcery.com>
4160
4161 * opts-common.c (decode_cmdline_option): Print empty string
4162 argument as "" in decoded->orig_option_with_args_text.
4163 * gcc.c (execute): Print empty string argument as ""
4164 in the verbose output.
4165 (do_spec_1): Keep empty string argument.
4166
f85b70fd
NF
41672011-02-23 Nathan Froyd <froydnj@codesourcery.com>
4168
4169 * config.gcc: Declare score-* and crx-* obsolete.
4170
b152a615
JZ
41712011-02-23 Jie Zhang <jie@codesourcery.com>
4172
4173 PR rtl-optimization/47763
4174 * web.c (web_main): Ignore naked clobber when replacing register.
4175
bb6e77bc
AS
41762011-02-22 Anatoly Sokolov <aesok@post.ru>
4177
4178 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4179 Remove.
4180
68bf6491
SP
41812011-02-22 Sebastian Pop <sebastian.pop@amd.com>
4182
4183 PR doc/47848
4184 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
4185
88ee1fc7
MS
41862011-02-22 Mike Stump <mikestump@comcast.net>
4187
4188 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
4189 assembler.
4190 * configure: Regenerate.
4191
6042d1dd
CLT
41922011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
4193
4194 PR rtl-optimization/46002
4195 * ira-color.c (update_copy_costs): Change class intersection
4196 test to reg_class_contents[] test of 'hard_regno'.
4197
7de97f9e
JM
41982011-02-21 Joseph Myers <joseph@codesourcery.com>
4199
4200 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
4201 than Driver option.
4202 * config/hpux11.opt (mt): Likewise.
4203 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
4204 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
4205 * config/vax/elf.opt (mno-asm-pic): Likewise.
4206 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
4207
d1d46f9f
MS
42082011-02-21 Mike Stump <mikestump@comcast.net>
4209
4210 PR target/47822
4211 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
4212 tree so we can get save the type.
4213 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
4214 for CFString instead of trying to use past the end of the builtins.
4215 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
4216 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
4217 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
4218 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
4219 Rename to darwin_builtin_cfstring.
4220 (darwin_init_cfstring_builtins): Return the built type.
4221
23e0d930
UB
42222011-02-21 Uros Bizjak <ubizjak@gmail.com>
4223
4224 PR target/47840
4225 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
4226 (_mm256_insert_epi64): Use _mm_insert_epi64.
4227
192997cf
AS
42282011-02-21 Anatoly Sokolov <aesok@post.ru>
4229
4230 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4231 * config/stormy16/stormy16-protos.h
4232 (xstormy16_mode_dependent_address_p): Remove.
4233 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
4234 Make static. Change return type to bool. Change argument type to
4235 const_rtx. Remove dead code.
4236 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4237
e292d003
RG
42382011-02-21 Richard Guenther <rguenther@suse.de>
4239
4240 PR lto/47820
4241 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
4242 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4243 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
4244 TUs context.
23e0d930 4245 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
4246 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
4247
77f846e9
RG
42482011-02-20 Richard Guenther <rguenther@suse.de>
4249
4250 PR lto/47822
4251 * tree.c (free_lang_data_in_decl): Clean builtins from
4252 the TU decl BLOCK_VARS.
23e0d930 4253
b2cddfc8
AO
42542011-02-19 Alexandre Oliva <aoliva@redhat.com>
4255
4256 PR debug/47620
4257 PR debug/47630
4258 * haifa-sched.c (fix_tick_ready): Skip tick computation
4259 for debug insns.
4260
becf4c11
RG
42612011-02-19 Richard Guenther <rguenther@suse.de>
4262
4263 PR lto/47647
4264 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4265 Remove lazy BLOCK_VARS streaming.
4266 (lto_input_ts_block_tree_pointers): Likewise.
4267 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4268
27f98305
JM
42692011-02-19 Joseph Myers <joseph@codesourcery.com>
4270
4271 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
4272
064bf3f4
JM
42732011-02-19 Joseph Myers <joseph@codesourcery.com>
4274
4275 * config/i386/biarch32.h, config/i386/mach.h,
4276 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
4277
9215ddc3
JJ
42782011-02-19 Jakub Jelinek <jakub@redhat.com>
4279
4280 PR target/47800
4281 * config/i386/i386.md (peephole2 for shift and plus): Use
4282 operands[1] original mode in the first insn.
4283
8b021004
MS
42842011-02-18 Mike Stump <mikestump@comcast.net>
4285
65ded153 4286 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 4287
f84ae14c
JH
42882011-02-18 Jan Hubicka <jh@suse.cz>
4289
4290 PR middle-end/47788
65ded153
EB
4291 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
4292 to zero when the function is not inlinable at all.
f84ae14c 4293
eddabc80
JDA
42942011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4295
4296 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
4297 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
4298 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
4299 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
4300 * config/pa/t-pa64: Likewise.
4301 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
4302
ca3da783
JJ
43032011-02-18 Jakub Jelinek <jakub@redhat.com>
4304
4305 PR driver/47787
4306 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
4307
430aa868
JDA
43082011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4309
4310 PR target/47792
4311 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
4312
4bf7ff7e
AS
43132011-02-18 Anatoly Sokolov <aesok@post.ru>
4314
4315 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4316 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
4317 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
4318 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4319 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
4320 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
4321 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
4322 m32r_load_postinc_p, m32r_store_preinc_predec_p,
4323 m32r_legitimate_address_p): New functions.
4324 * config/m32r/constraints.md (constraint "S"): Don't use
4325 STORE_PREINC_PREDEC_P.
4326 (constraint "U"): Don't use LOAD_POSTINC_P.
4327
7efcf910
CLT
43282011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
4329
4330 PR rtl-optimization/46178
4331 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
4332 compute ira_hard_regno_cover_class[].
4333
237d6259
RG
43342011-02-18 Richard Guenther <rguenther@suse.de>
4335
4336 PR lto/47798
4337 * lto-streamer.h (lto_global_var_decls): Declare.
4338 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
4339 statics for global var processing.
4340
12d80acc
RG
43412011-02-18 Richard Guenther <rguenther@suse.de>
4342
4343 PR tree-optimization/47737
4344 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
4345 edge dominance check.
4346
abfea58d
JJ
43472011-02-18 Jakub Jelinek <jakub@redhat.com>
4348
4349 PR debug/47780
4350 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
4351 avoid invalid rtx sharing.
4352
f73c8882
GP
43532011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
4354
4355 * doc/cpp.texi (Obsolete Features): Add background on the
4356 origin of assertions.
4357
d764a8e6
IS
43582011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4359
4360 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 4361 objc_abi == 2.
d764a8e6
IS
4362 * config/darwin.c (output_objc_section_asm_op): Added support for
4363 ABI v1 and v2.
4364 (is_objc_metadata): New.
4365 (darwin_objc2_section): New.
4366 (darwin_objc1_section): New.
4367 (machopic_select_section): Added support for ABI v1 and v2.
4368 (darwin_emit_objc_zeroed): New.
4369 (darwin_output_aligned_bss): Detect objc metadata and treat it
4370 appropriately.
4371 (darwin_asm_output_aligned_decl_common): Same.
4372 (darwin_asm_output_aligned_decl_local): Same.
4373 * config/darwin-sections.def: Updated for ABI v1 and v2.
4374 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
4375 compiling Objective-C code for the NeXT runtime, default to using
4376 ABI version 0 for 32-bit, and version 2 for 64-bit.
4377
0a8134ca
JM
43782011-02-17 Joseph Myers <joseph@codesourcery.com>
4379
4380 * common.opt (optimize_fast): New Variable.
4381 * opts.c (default_options_optimization): Use opts->x_optimize_fast
4382 instead of local variable ofast.
4383
0a256240
NP
43842011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
4385
4386 * doc/invoke.texi (fobjc-abi-version): Documented.
4387 (fobjc-nilcheck): Documented.
4388 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
4389 version.
4390
fa381cb2
JM
43912011-02-17 Joseph Myers <joseph@codesourcery.com>
4392
4393 PR driver/47390
4394 * common.opt (export-dynamic): New Driver option.
4395 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
4396
5437eaa6
JM
43972011-02-17 Joseph Myers <joseph@codesourcery.com>
4398
4399 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
4400
bb7e6d55
AO
44012011-02-17 Alexandre Oliva <aoliva@redhat.com>
4402 Jan Hubicka <jh@suse.cz>
4403
4404 PR debug/47106
4405 PR debug/47402
4406 * cfgexpand.c (account_used_vars_for_block): Remove.
4407 (estimated_stack_frame_size): Use referenced vars.
4408 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
4409 that were referenced in the original function. Test src_fn
4410 rather than cfun. Drop redundant get_var_ann.
4411 (setup_one_parameter): Drop redundant get_var_ann.
4412 (declare_return_variable): Likewise.
4413 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
4414 (copy_arguments_for_versioning): Drop redundant get_var_ann.
4415 * ipa-inline.c (compute_inline_parameters): Do not compute
4416 disregard_inline_limits here.
bb7e6d55
AO
4417 (compute_inlinable_for_current, pass_inlinable): New.
4418 (pass_inline_parameters): Require PROP_referenced_vars.
4419 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 4420 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
4421 (cgraph_analyze_function): Set .disregard_inline_limits.
4422 * tree-sra.c (convert_callers): Compute inliner parameters
4423 only for functions already in SSA form.
4424
f181a8a7
JM
44252011-02-17 Joseph Myers <joseph@codesourcery.com>
4426
4427 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
4428 -mlittle-endian-data.
4429
c6869789
JM
44302011-02-17 Joseph Myers <joseph@codesourcery.com>
4431
4432 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
4433 -mno-fpu, not -fpu and -no-fpu.
4434 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
4435 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
4436
fbf4bfd3
UB
44372011-02-17 Uros Bizjak <ubizjak@gmail.com>
4438
4439 PR target/43653
4440 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
4441 input reload with PLUS RTX.
4442
70be5dc7
JM
44432011-02-16 Joseph Myers <joseph@codesourcery.com>
4444
4445 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
4446 of InverseVar(MDMX).
4447
30b1646e
JM
44482011-02-16 Joseph Myers <joseph@codesourcery.com>
4449
4450 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
4451 --m4-340.
4452
ab7b71e9
JM
44532011-02-16 Joseph Myers <joseph@codesourcery.com>
4454
4455 * config/mn10300/mn10300.opt (mno-crt0): New.
4456
466f3f08
JM
44572011-02-16 Joseph Myers <joseph@codesourcery.com>
4458
4459 * config/m68k/uclinux.opt (static-libc): New Driver option.
4460
8226cd7b
JM
44612011-02-16 Joseph Myers <joseph@codesourcery.com>
4462
4463 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
4464
45cab1d7
JM
44652011-02-16 Joseph Myers <joseph@codesourcery.com>
4466
4467 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
4468 %{muser-extend-enabled}.
4469
65aab64f
RG
44702011-02-16 Richard Guenther <rguenther@suse.de>
4471
4472 PR tree-optimization/47738
4473 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
4474 the TODO from tree_predictive_commoning.
4475
fc2fa4fb
JL
44762011-02-15 Jeff Law <law@redhat.com>
4477
4478 Revert
4479 2011-01-25 Jeff Law <law@redhat.com>
4480
4481 PR rtl-optimization/37273
4482 * ira-costs.c (scan_one_insn): Detect constants living in memory and
4483 handle them like argument loads from stack slots. Do not double
4484 count memory for memory constants and argument loads from stack slots.
4485
4e380b8e
L
44862011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4487
4488 PR middle-end/47725
4489 * combine.c (cant_combine_insn_p): Revert the last change.
4490
e3a69bb4
MM
44912011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
4492
4493 PR target/47755
4494 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
4495 mode for vector constants. Remove code that checks for TImode.
4496
de650422
AO
44972011-02-15 Alexandre Oliva <aoliva@redhat.com>
4498
4499 PR debug/47106
4500 PR debug/47402
4501 * cgraph.h (compute_inline_parameters): Return void.
4502 * ipa-inline.c (compute_inline_parameters): Adjust.
4503
30925d94
AO
45042011-02-15 Alexandre Oliva <aoliva@redhat.com>
4505
4506 PR debug/47106
4507 PR debug/47402
4508 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
4509 rather than decl.
4510 * cfgexpand.c (estimated_stack_frame_size): Likewise.
4511 * ipa-inline.c (compute_inline_parameters): Adjust.
4512
1b9a784a
AO
45132011-02-15 Alexandre Oliva <aoliva@redhat.com>
4514
4515 PR debug/47106
4516 PR debug/47402
4517 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
4518 Adjust all users. Pass FN to...
4519 * tree-flow-inline.h (first_referenced_var): ... this. Add
4520 fn argument.
4521 * ipa-struct-reorg.c: Adjust.
4522 * tree-dfa.c: Adjust.
4523 * tree-into-ssa.c: Adjust.
4524 * tree-sra.c: Adjust.
4525 * tree-ssa-alias.c: Adjust.
4526 * tree-ssa-live.c: Adjust.
4527 * tree-ssa.c: Adjust.
4528 * tree-ssanames.c: Adjust.
4529 * tree-tailcall.c: Adjust.
4530
27c6b086
AO
45312011-02-15 Alexandre Oliva <aoliva@redhat.com>
4532
4533 PR debug/47106
4534 PR debug/47402
4535 * tree-flow.h (referenced_var_lookup): Add fn parameter.
4536 Adjust all callers.
4537 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
4538 * tree-flow-inline.h: Adjust.
4539 * gimple-pretty-print.c: Adjust.
4540 * tree-into-ssa.c: Adjust.
4541 * tree-ssa.c: Adjust.
4542 * cfgexpand.c: Adjust.
4543
679e8183
NF
45442011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4545
fbf4bfd3
UB
4546 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
4547 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4548 (EXTRA_CONSTRAINT): Delete.
4549 * config/iq2000/constraints.md: New file.
4550 * config/iq2000/iq2000.md: Include it.
679e8183
NF
4551 (define_insn ""): Delete.
4552 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
4553 unsupported constraint letters from patterns.
4554 (call_value, call_value_internal1): Likewise.
4555 (call_value_multiple_internal1): Likewise.
4556
a45d420a
NC
45572011-02-15 Nick Clifton <nickc@redhat.com>
4558
4559 * config/mn10300/mn10300.c: Include tm-constrs.h.
4560 (struct liw_data): New data structure describing an LIW candidate
4561 instruction.
4562 (extract_bundle): Use struct liw_data. Allow small integer
4563 operands for some instructions.
4564 (check_liw_constraints): Use struct liw_data. Remove swapped
4565 parameter. Add comments describing the checks. Fix bug when
4566 assigning the source of liw1 to the source of liw2.
4567 (liw_candidate): Delete. Code moved into extract_bundle.
4568 (mn10300_bundle_liw): Use struct liw_data. Check constraints
4569 before swapping.
4570 * config/mn10300/predicates.md (liw_operand): New predicate.
4571 Allows registers and small integer constants.
4572 * config/mn10300/constraints.md (O): New constraint. Accetps
4573 integers in the range -8 to +7 inclusive.
4574 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
4575 for moving a small integer into a register. Give this alternative
4576 LIW attributes.
4577 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
4578 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
4579 using the J,K,L and M constraints,
4580 (liw): Remove SI mode on second operands to allow for HI and QI
4581 mode values.
4582 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
4583 instruction.
4584
8a73faf1
L
45852011-02-15 H.J. Lu <hongjiu.lu@intel.com>
4586
4587 PR middle-end/47725
4588 * combine.c (cant_combine_insn_p): Check zero/sign extended
4589 hard registers.
4590
48feba28
RG
45912011-02-15 Richard Guenther <rguenther@suse.de>
4592
4593 PR tree-optimization/47743
4594 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
4595 for a non-type-compatible VN lookup bail out.
4596
ad1c1eeb
NF
45972011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4598
4599 * config/fr30/constraints.md: New file.
4600 * config/fr30/fr30.md: Include it.
4601 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
4602 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4603 (EXTRA_CONSTRAINT): Delete.
4604
49ac143d
NF
46052011-02-15 Nathan Froyd <froydnj@codesourcery.com>
4606
4607 * config/frv/constraints.md: New file.
4608 * config/frv/predicates.md: Include it.
4609 * config/frv/frv.c (reg_class_from_letter): Delete.
4610 (frv_option_override): Don't initialize it.
4611 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
4612 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
4613 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
4614 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4615 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
4616 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4617 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
4618 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
4619 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
4620 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
4621 (REG_CLASS_FROM_CONSTRAINT): Delete.
4622
c95f9494
JJ
46232011-02-15 Jakub Jelinek <jakub@redhat.com>
4624
4625 PR middle-end/47581
4626 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
4627 if frame size is 0 in a leaf function.
4628
13aed611
RO
46292011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4630
4631 PR pch/14940
4632 * config/alpha/host-osf.c: New file.
4633 * config/alpha/x-osf: New file.
4634 * config.host (alpha*-dec-osf*): Use it.
4635
b09c3081
AS
46362011-02-14 Anatoly Sokolov <aesok@post.ru>
4637
4638 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4639 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
4640 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
4641 (rx_mode_dependent_address_p): ...this. Make static. Change argument
4642 type to const_rtx.
4643 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
4644
d634083b
NF
46452011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4646
4647 * config/stormy16/constraints.md: New file.
4648 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
4649 Use satisfies_constraint_Q and satisfies_constraint_R.
4650 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
4651 Delete.
4652 (xstormy16_legitiamte_address_p): Declare.
4653 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
4654 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4655 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 4656 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
4657 Un-staticize.
4658 (xstormy16_extra_constraint_p): Delete.
4659
c7dd803e
EB
46602011-02-14 Eric Botcazou <ebotcazou@adacore.com>
4661
4662 PR tree-optimization/46494
4663 * loop-unroll.c (split_edge_and_insert): Adjust comment.
4664 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
4665 (pass_rtl_loop_done): Add TODO_verify_flow.
4666 * fwprop.c (pass_rtl_fwprop): Likewise.
4667 * modulo-sched.c (pass_sms): Likewise.
4668 * tree-ssa-dom.c (pass_dominator): Likewise.
4669 * tree-ssa-loop-ch.c (pass_ch): Likewise.
4670 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
4671 (pass_tree_loop_done): Likewise.
4672 * tree-ssa-pre.c (execute_pre): Likewise.
4673 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
4674 * tree-ssa-sink.c (pass_sink_code): Likewise.
4675 * tree-vrp.c (pass_vrp): Likewise.
4676
c6150df6
NF
46772011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4678
c7dd803e
EB
4679 * config/v850/constraints.md: New file.
4680 * config/v850/v850.md: Include it.
4681 * config/v850/predicates.md (reg_or_0_operand): Use
4682 satisfies_constraint_G.
4683 (special_symbolref_operand): Use satisfies_constraint_K.
4684 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
4685 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4686 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
4687 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
4688 (EXTRA_CONSTRAINT): Delete.
4689 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
4690 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
4691 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 4692
30dd1ea3
AS
46932011-02-14 Anatoly Sokolov <aesok@post.ru>
4694
4695 PR target/47696
4696 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
4697 description.
4698
944f4bb3
NF
46992011-02-14 Nathan Froyd <froydnj@codesourcery.com>
4700
4701 * config/mcore/constraints.md: New file.
4702 * config/mcore/mcore.md: Include it.
4703 * config/mcore/mcore.c (reg_class_from_letter): Delete.
4704 * config/mcore/mcore.h (reg_class_from_letter): Delete.
4705 (REG_CLASS_FROM_LETTER): Delete.
4706 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
4707 insn_const_int_ok_for_constraint.
4708 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
4709 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
4710 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
4711 (EXTRA_CONSTRAINT): Delete.
4712
ad56a54c
RO
47132011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4714
4715 PR ada/41929
4716 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
4717 (IS_SIGHANDLER): Define.
4718 (sparc64_is_sighandler): New function, split off from
4719 sparc64_fallback_frame_state.
4720 (sparc_is_sighandler): New function, split off from
4721 sparc_fallback_frame_state.
4722 (sparc64_fallback_frame_state): Merge with ...
4723 (sparc_fallback_frame_state): ... this into ...
4724 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
4725 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
4726 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
4727 stack instead of hardcoded offsets.
ad56a54c 4728
fbf4bfd3 47292011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
4730
4731 PR target/45808
4732 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
4733
029c8f3e
RW
47342011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4735
4736 * configure: Regenerate.
4737
a016dc83
JM
47382011-02-12 Joseph Myers <joseph@codesourcery.com>
4739
4740 PR driver/45731
4741 * gcc.c (asm_options): Correct spec matching --target-help.
4742
8957a0ec
MJ
47432011-02-12 Martin Jambor <mjambor@suse.cz>
4744
4745 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
4746 to gimple call error.
4747
6ef828bc
MS
47482011-02-12 Mike Stump <mikestump@comcast.net>
4749
4750 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
4751 comments in backslash regions.
4752
a4015be5
MS
47532011-02-12 Mike Stump <mikestump@comcast.net>
4754 Jakub Jelinek <jakub@redhat.com>
4755 Iain Sandoe <iains@gcc.gnu.org>
4756
4757 PR target/47324
4758 * dwarf2out.c (output_cfa_loc): When required, apply the
4759 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
4760 (output_loc_sequence): Likewise.
4761 (output_loc_operands_raw): Likewise.
4762 (output_loc_sequence_raw): Likewise.
4763 (output_cfa_loc): Likewise.
4764 (output_loc_list): Suppress register number adjustment when
4765 calling output_loc_sequence()
4766 (output_die): Likewise.
4767
5378dda2
AS
47682011-02-12 Anatoly Sokolov <aesok@post.ru>
4769
4770 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
4771 Remove macros.
4772 * config/xtensa/xtensa.c (xtensa_register_move_cost,
4773 xtensa_memory_move_cost): New functions.
4774 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
4775
f3d533d3
AO
47762011-02-12 Alexandre Oliva <aoliva@redhat.com>
4777
4778 PR lto/47225
4779 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
4780 in the current directory.
4781 * configure: Rebuilt.
4782
9d53403c
IS
47832011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4784
4785 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 4786 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
4787 correct indents of the preceding block.
4788
a350a6c8
IS
47892011-02-12 Iain Sandoe <iains@gcc.gnu.org>
4790
4791 * gcc.c (driver_handle_option): Concatenate the argument to -F with
4792 the switch.
4793
bab79a40
JM
47942011-02-11 Joseph Myers <joseph@codesourcery.com>
4795
4796 * common.opt (nostartfiles): New Driver option.
4797
1bbc6693
XDL
47982011-02-11 Xinliang David Li <davidxl@google.com>
4799
4800 PR tree-optimization/47707
4801 * tree-chrec.c (convert_affine_scev): Keep type precision.
4802
1da7d8c0
EB
48032011-02-11 Eric Botcazou <ebotcazou@adacore.com>
4804
4805 PR tree-optimization/47420
4806 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
4807
48082011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
4809
4810 PR rtl-optimization/47614
4811 * rtl.h (check_for_inc_dec): Declare.
4812 * dse.c (check_for_inc_dec): Externalize...
4813 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
4814 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
4815
4df47bca
JM
48162011-02-11 Joseph Myers <joseph@codesourcery.com>
4817
4818 PR driver/47678
4819 * gcc.c (main): Do not compile inputs if there were errors in
4820 option handling.
4821 * opts-common.c (read_cmdline_option): Check for wrong language
4822 after other error checks.
4823
61502ca8
NF
48242011-02-11 Nathan Froyd <froydnj@codesourcery.com>
4825
4826 * cgraph.c: Fix comment typos.
4827 * cgraph.h: Likewise.
4828 * cgraphunit.c: Likewise.
4829 * ipa-cp.c: Likewise.
4830 * ipa-inline.c: Likewise.
4831 * ipa-prop.c: Likewise.
4832 * ipa-pure-const.c: Likewise.
4833 * ipa-ref.c: Likewise.
4834 * ipa-reference.c: Likewise.
4835
b63f974e
JJ
48362011-02-11 Jakub Jelinek <jakub@redhat.com>
4837
d50c5e0c
JJ
4838 PR debug/47684
4839 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 4840
6dd2a13c
RO
48412011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4842
4843 PR testsuite/47400
4844 * doc/sourcebuild.texi (Require Support): Document
4845 dg-require-ascii-locale.
4846
4a087ccf
MX
48472011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
4848
4849 * doc/lto.texi (Write summary): Fix missing parentheses.
4850
a4403164
DD
48512011-02-10 DJ Delorie <dj@redhat.com>
4852
4853 * config/m32c/m32c.c (m32c_option_override): Disable
4854 -fcombine-stack-adjustments until flag value tracking and compare
4855 optimization can be rewritten.
4856
4fac45bd
PB
48572011-02-10 Peter Bergner <bergner@vnet.ibm.com>
4858
4859 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
4860 PROCESSOR_POWER7.
4861 (PROCESSOR_DEFAULT64): Likewise.
4862
72602cd1
RH
48632011-02-10 Richard Henderson <rth@redhat.com>
4864
4865 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
4866 change from 2011-02-03.
4867 * config/rx/rx.c (flags_from_code): Likewise.
4868 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
4869 is valid, n/pz otherwise.
4870 (rx_select_cc_mode): Return CCmode if Y is not zero.
4871
ea57f573
RG
48722011-02-10 Richard Guenther <rguenther@suse.de>
4873
ea4c3e65 4874 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 4875
92b1d23b
RG
48762011-02-10 Richard Guenther <rguenther@suse.de>
4877
4878 PR tree-optimization/47677
4879 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
4880
525a2d06
JJ
48812011-02-10 Jakub Jelinek <jakub@redhat.com>
4882
4883 PR target/47665
4884 * combine.c (make_compound_operation): Only change shifts into
4885 multiplication for SCALAR_INT_MODE_P.
4886
06c969bd
JZ
48872011-02-10 Jie Zhang <jie@codesourcery.com>
4888
4889 PR testsuite/47622
4890 Revert
4891 2011-02-05 Jie Zhang <jie@codesourcery.com>
4892 PR debug/42631
4893 * web.c (entry_register): Don't clobber the number of the
4894 first uninitialized reference in used[].
4895
282ec48e
RG
48962011-02-09 Richard Guenther <rguenther@suse.de>
4897
4898 PR tree-optimization/47664
4899 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
4900 all edges again.
4901
df98c3e8
DE
49022011-02-09 David Edelsohn <dje.gcc@gmail.com>
4903
d0f21cd6
DE
4904 PR target/46481
4905 PR target/47032
df98c3e8
DE
4906 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
4907 PROCESSOR_POWER7.
4908 (PROCESSOR_DEFAULT64): Same.
4909 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
4910
67b6839f
RO
49112011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4912
4913 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
4914
4fd73214
MJ
49152011-02-09 Martin Jambor <mjambor@suse.cz>
4916
4917 PR middle-end/45505
4918 * tree-sra.c (struct access): New flags grp_scalar_read and
4919 grp_scalar_write. Changed description of assignment read and write
4920 flags.
4921 (dump_access): Dump new flags, reorder all of them.
4922 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
4923 to detect multiple scalar reads.
4924 (analyze_access_subtree): Use the new scalar read write flags instead
4925 of the old flags. Adjusted comments.
4926
91140cd3
DD
49272011-02-08 DJ Delorie <dj@redhat.com>
4928
4929 PR target/47548
4930 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
4931 patterns.
4932
4254bbfe
JM
49332011-02-08 Joseph Myers <joseph@codesourcery.com>
4934
4935 * config/m68k/uclinux.opt: New.
4936 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
4937
f1fda84e
JM
49382011-02-08 Joseph Myers <joseph@codesourcery.com>
4939
4940 * config/cris/elf.opt (sim): New Driver option.
4941
4933ae74
JM
49422011-02-08 Joseph Myers <joseph@codesourcery.com>
4943
4944 * config/xtensa/elf.opt: New.
4945 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
4946
4ad70280
JM
49472011-02-08 Joseph Myers <joseph@codesourcery.com>
4948
4949 * config/vax/elf.opt: New.
4950 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
4951
20893707
JM
49522011-02-08 Joseph Myers <joseph@codesourcery.com>
4953
4954 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
4955
b8e7038e
JM
49562011-02-08 Joseph Myers <joseph@codesourcery.com>
4957
4958 * config/gnu-user.opt: New.
4959 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4960 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
4961 *-*-uclinux*): Use gnu-user.opt.
4962
e1c5225a
TS
49632011-02-08 Thomas Schwinge <thomas@schwinge.name>
4964
4965 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
4966 * config/i386/gnu.h (CPP_SPEC): Likewise.
4967
5e46b0c6
ILT
49682011-02-08 Ian Lance Taylor <iant@google.com>
4969
4970 * common.opt (fcx-limited-range): Add SetByCombined flag.
4971 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
4972 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
4973 (fassociative-math, freciprocal-math): Likewise.
4974 (funsafe-math-optimizations): Likewise.
4975 * opth-gen.awk: Handle SetByCombined.
4976 * optc-gen.awk: Likewise.
ea4c3e65 4977 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
4978 (set_unsafe_math_optimizations_flags): Likewise.
4979 * doc/options.texi (Option properties): Document SetByCombined.
4980
32243d46
JM
49812011-02-08 Joseph Myers <joseph@codesourcery.com>
4982
4983 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
4984 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
4985 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
4986 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
4987 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
4988
479c1fb3
SP
49892011-02-08 Sebastian Pop <sebastian.pop@amd.com>
4990
4991 PR tree-optimization/46834
4992 PR tree-optimization/46994
4993 PR tree-optimization/46995
4994 * graphite-sese-to-poly.c (used_outside_reduction): New.
4995 (detect_commutative_reduction): Call used_outside_reduction.
4996 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
4997 translate_scalar_reduction_to_array only when at least one
4998 loop-phi/close-phi tuple has been detected.
4999
3865a06f
RG
50002011-02-08 Richard Guenther <rguenther@suse.de>
5001
5002 PR middle-end/47639
5003 * tree-vect-generic.c (expand_vector_operations_1): Update
5004 stmts here ...
5005 (expand_vector_operations): ... not here. Cleanup EH info
5006 and the CFG if required.
5007
62902f3f
RG
50082011-02-08 Richard Guenther <rguenther@suse.de>
5009
5010 PR tree-optimization/47641
5011 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
5012 require type compatibility.
5013
0efb9d64
AK
50142011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5015
5016 * gimple-low.c (lower_function_body): Don't remove the location of
5017 the return statement here.
5018 (lower_gimple_return): Do it here instead but only if the return
5019 statement is actually used twice.
5020
034b8ae4
RG
50212011-02-08 Richard Guenther <rguenther@suse.de>
5022
5023 PR tree-optimization/47632
5024 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
5025 unused up_to_stmt parameter, return whether cfg-cleanup is
5026 necessary, remove EH info properly.
5027 (forward_propagate_into_gimple_cond): Adjust caller.
5028 (forward_propagate_into_cond): Likewise.
5029 (forward_propagate_comparison): Likewise.
5030 (tree_ssa_forward_propagate_single_use_vars): Make
5031 forward_propagate_comparison case similar to the two others.
5032
298362c8
NC
50332011-02-08 Nick Clifton <nickc@redhat.com>
5034
5035 * config/mn10300/mn10300.opt (mliw): New command line option.
5036 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
5037 (liw_bundling): New automaton.
5038 (liw): New attribute.
5039 (liw_op): New attribute.
5040 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
5041 (movsi_internal): Add LIW attributes.
5042 (andsi3): Likewise.
5043 (iorsi3): Likewise.
5044 (xorsi3): Likewise.
5045 (addsi3): Separate register and immediate alternatives.
5046 Add LIW attributes.
5047 (subsi3): Likewise.
5048 (cmpsi): Likewise.
5049 (aslsi3): Likewise.
5050 (lshrsi3): Likewise.
5051 (ashrsi3): Likewise.
5052 (liw): New pattern.
5053 * config/mn10300/mn10300.c (liw_op_names): New
5054 (mn10300_print_operand): Handle 'W' operand descriptor.
5055 (extract_bundle): New function.
5056 (check_liw_constraints): New function.
5057 (liw_candidate): New function.
5058 (mn10300_bundle_liw): New function.
5059 (mn10300_reorg): New function.
5060 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5061 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
5062 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
5063 __LIW__ or __NO_LIW__.
5064 * doc/invoke.texi: Describe the -mliw command line option.
5065
90488014
JDA
50662011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5067
5068 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
5069 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5070 pthread_mutex_unlock): Remove.
5071 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
5072 * config/pa/t-pa64: Likewise.
5073 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
5074 shared libc if not linking against libpthread.
5075 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5076
689ff841
IS
50772011-02-07 Iain Sandoe <iains@gcc.gnu.org>
5078
5079 PR target/47558
5080 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
5081 on 10.6 and later to ensure that we always use the unwinder from
5082 the system. Only add -no_compact_unwind when tarteting darwin
5083 10.6 or later.
5084
821014aa
SE
50852011-02-07 Steve Ellcey <sje@cup.hp.com>
5086
5087 PR target/46997
5088 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
5089 (vec_interleave_lowv2sf): Ditto.
5090 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
5091 (vec_extract_oddv2sf): Ditto.
5092
41cf94fb
MS
50932011-02-07 Mike Stump <mikestump@comcast.net>
5094
62dea57d 5095 PR target/42333
41cf94fb
MS
5096 Add __ieee_divdc3 entry point.
5097 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
5098 entry point.
5099 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
5100 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
5101 * config/darwin.c (darwin_rename_builtins): Add.
5102 * config/darwin-protos.h (darwin_rename_builtins): Add.
5103
ee09a3dd
MM
51042011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5105
5106 PR target/47636
5107 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
5108 for the condition.
5109
83296cd0
MS
51102011-02-07 Mike Stump <mikestump@comcast.net>
5111
ea4c3e65 5112 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 5113
0f4e946f
DC
51142011-02-07 Denis Chertykov <chertykov@gmail.com>
5115
5116 PR target/47534
5117 * config/avr/libgcc.S (exit): Move .endfunc
5118
1ec87690
RG
51192011-02-07 Richard Guenther <rguenther@suse.de>
5120
5121 PR tree-optimization/47615
5122 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
5123 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
5124 (run_scc_vn): Initialize it.
5125 (visit_reference_op_load): Use it.
5126 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
5127
b46ae6da
UW
51282011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5129
5130 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
5131 DImode trapping arithmetic libfuncs.
5132
c0aae19c
RG
51332011-02-07 Richard Guenther <rguenther@suse.de>
5134
5135 PR tree-optimization/47621
5136 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
5137 two duplicates ...
5138 (execute_update_addresses_taken): ... here. Make it more
5139 conservative in what we accept.
5140
295d926b
JM
51412011-02-06 Joseph Myers <joseph@codesourcery.com>
5142
5143 * config/sparc/freebsd.h (ASM_SPEC): Define.
5144 * config/sparc/vxworks.h (ASM_SPEC): Define.
5145
bdeb2471
JM
51462011-02-06 Joseph Myers <joseph@codesourcery.com>
5147
5148 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
5149
d5d3781a
SB
51502011-02-06 Steven Bosscher <steven@gcc.gnu.org>
5151
5152 * doc/invoke.texi: Remove reference to compiler internals from
5153 user documentation.
5154
5155 * reg-notes.def: Remove REG_VALUE_PROFILE.
5156 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
5157
c42c09fc
JJ
51582011-02-05 Jakub Jelinek <jakub@redhat.com>
5159
5160 PR middle-end/47610
5161 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 5162 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 5163
beea2755
JZ
51642011-02-05 Jie Zhang <jie@codesourcery.com>
5165
5166 PR debug/42631
5167 * web.c (entry_register): Don't clobber the number of the
5168 first uninitialized reference in used[].
5169
a130584a
SP
51702011-02-04 Sebastian Pop <sebastian.pop@amd.com>
5171
5172 PR tree-optimization/46194
5173 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
5174 (build_classic_dist_vector_1): Do not represent classic distance
5175 vectors when the access functions are variating in different loops.
5176
962101ac
JM
51772011-02-04 Joseph Myers <joseph@codesourcery.com>
5178
5179 * config/mips/iris6.opt: New.
5180 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
5181
55eaaa5b
RH
51822011-02-04 Richard Henderson <rth@redhat.com>
5183 Steve Ellcey <sje@cup.hp.com>
5184
5185 PR target/46997
5186 * config/ia64/predicates.md (mux1_brcst_element): New.
5187 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
5188 * config/ia64/ia64.c (ia64_unpack_assemble): New.
5189 (ia64_unpack_sign): New.
5190 (ia64_expand_unpack): Rewrite using new routines.
5191 (ia64_expand_widen_sum): Ditto.
5192 (ia64_expand_dot_prod_v8qi): Ditto.
5193 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
5194 routines, add endian check.
5195 (pmpy2_even): Rename from pmpy2_r, add endian check.
5196 (pmpy2_odd): Rename from pmpy2_l, add endian check.
5197 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
5198 (vec_widen_smult_hi_v4hi): Ditto.
5199 (vec_widen_umult_lo_v4hi): Ditto.
5200 (vec_widen_umult_hi_v4hi): Ditto.
5201 (mulv2si3): Change endian checks.
5202 (sdot_prodv4hi): Rewrite with new calls.
5203 (udot_prodv4hi): New.
5204 (vec_pack_ssat_v4hi): Add endian check.
5205 (vec_pack_usat_v4hi): Ditto.
5206 (vec_pack_ssat_v2si): Ditto.
5207 (max1_even): Rename from max1_r, add endian check.
5208 (max1_odd): Rename from max1_l, add endian check.
5209 (*mux1_rev): Format change.
5210 (*mux1_mix): Ditto.
5211 (*mux1_shuf): Ditto.
5212 (*mux1_alt): Ditto.
5213 (*mux1_brcst_v8qi): Use new predicate.
5214 (vec_extract_evenv8qi): Remove endian check.
5215 (vec_extract_oddv8qi): Ditto.
5216 (vec_interleave_lowv4hi): Format change.
5217 (vec_interleave_highv4hi): Ditto.
5218 (mix2_even): Rename from mix2_r, add endian check.
5219 (mix2_odd): Rename from mux2_l, add endian check.
5220 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
5221 (vec_extract_evenodd_helper): Format change.
5222 (vec_extract_evenv4hi): Remove endian check.
5223 (vec_extract_oddv4hi): Remove endian check.
5224 (vec_interleave_lowv2si): Format change.
5225 (vec_interleave_highv2si): Format change.
5226 (vec_initv2si): Remove endian check.
5227 (vecinit_v2si): Add endian check.
5228 (reduc_splus_v2sf): Add endian check.
5229 (reduc_smax_v2sf): Ditto.
5230 (reduc_smin_v2sf): Ditto.
5231 (vec_initv2sf): Remove endian check.
5232 (fpack): Add endian check.
5233 (fswap): Add endian check.
5234 (vec_interleave_highv2sf): Add endian check.
5235 (vec_interleave_lowv2sf): Add endian check.
5236 (fmix_lr): Add endian check.
5237 (vec_setv2sf): Format change.
5238 (*vec_extractv2sf_0_be): Use shift to extract operand.
5239 (*vec_extractv2sf_1_be): New.
5240 (vec_pack_trunc_v4hi): Add endian check.
5241 (vec_pack_trunc_v2si): Format change.
5242
dcde5957
JJ
52432011-02-04 Jakub Jelinek <jakub@redhat.com>
5244
5245 PR inline-asm/23200
5246 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 5247 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
5248 (stmt_is_replaceable_p): New function.
5249 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
5250 callers.
5251 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
5252 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
5253 SSA_NAME_DEF_STMT.
5254 * tree-flow.h (stmt_is_replaceable_p): New prototype.
5255
a64a8e5a
JM
52562011-02-04 Joseph Myers <joseph@codesourcery.com>
5257
5258 * config/rs6000/xilinx.opt: New.
5259 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
5260
4da2ed2f
JM
52612011-02-04 Joseph Myers <joseph@codesourcery.com>
5262
5263 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
5264
a6e508f9
AS
52652011-02-03 Anatoly Sokolov <aesok@post.ru>
5266
5267 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
5268 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
5269 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
5270 secondary_reload_info, xtensa_secondary_reload): Remove.
5271 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
5272 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
5273 (xtensa_preferred_reload_class): Make static. Change return and
5274 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
5275 Use CONST_DOUBLE_P predicate.
5276 (xtensa_preferred_output_reload_class): New function.
5277 (xtensa_secondary_reload): Make static.
5278
82dc0de3
JM
52792011-02-03 Joseph Myers <joseph@codesourcery.com>
5280
5281 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
5282 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
5283 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
5284
7fece979
JJ
52852011-02-03 Jakub Jelinek <jakub@redhat.com>
5286
5287 PR middle-end/31490
5288 * output.h (SECTION_RELRO): Define.
5289 (SECTION_MACH_DEP): Adjust.
5290 (get_variable_section): New prototype.
5291 * varpool.c (varpool_finalize_named_section_flags): New function.
5292 (varpool_assemble_pending_decls): Call it.
5293 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
5294 * cgraphunit.c (cgraph_output_in_order): Call
5295 varpool_finalize_named_section_flags.
5296 * varasm.c (get_section): Allow section flags conflicts between
5297 relro and read-only sections if the section hasn't been declared yet.
5298 Set SECTION_OVERRIDE after diagnosing section type conflict.
5299 (get_variable_section): No longer static.
5300 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
5301 readonly sections that need relocations.
5302 (decl_readonly_section_1): New function.
5303 (decl_readonly_section): Use it.
5304
5305 Revert:
509d65dd 5306 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
5307 Steve Ellcey <sje@cup.hp.com>
5308
5309 PR middle-end/31490
5310 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
5311 if section attribute used.
5312
d18d5478
JJ
53132011-02-03 Jakub Jelinek <jakub@redhat.com>
5314
5315 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
5316 * config/darwin.c (SECTION_NO_ANCHOR): Define.
5317 (darwin_init_sections): Remove assertion.
5318
6479ed4b
NC
53192011-02-03 Nick Clifton <nickc@redhat.com>
5320
5321 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
5322 lt and ge.
38be4072 5323 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
5324 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
5325 instead of "n" and "pz".
5326 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
5327 CC_FLAG_S.
5328
89843f5d
JJ
53292011-02-03 Jakub Jelinek <jakub@redhat.com>
5330
65450d64
JJ
5331 PR target/47312
5332 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
5333 fma, expand FMA_EXPR as fma{,f,l} call.
5334
7d58701c
JJ
5335 PR lto/47274
5336 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
5337 copy them into a unsigned char variable and pass address of it to
5338 lto_output_data_stream.
5339
89843f5d
JJ
5340 PR target/47564
5341 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
5342 around backend_init_target and lang_dependent_init_target calls.
5343 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
5344 (verify_cgraph_node): Don't call set_cfun here. Use
5345 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
5346 Set error_found for incorrectly represented calls to thunks.
5347
4deef538
AO
53482011-02-03 Alexandre Oliva <aoliva@redhat.com>
5349
5350 PR debug/43092
5351 PR rtl-optimization/43494
5352 * rtl.h (for_each_inc_dec_fn): New type.
5353 (for_each_inc_dec): Declare.
5354 * rtlanal.c (struct for_each_inc_dec_ops): New type.
5355 (for_each_inc_dec_find_inc_dec): New fn.
5356 (for_each_inc_dec_find_mem): New fn.
5357 (for_each_inc_dec): New fn.
5358 * dse.c (struct insn_size): Remove.
5359 (replace_inc_dec, replace_inc_dec_mem): Remove.
5360 (emit_inc_dec_insn_before): New fn.
5361 (check_for_inc_dec): Use it, along with for_each_inc_dec.
5362 (canon_address): Pass mem modes to cselib_lookup.
5363 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
5364 (cselib_lookup_from_insn): Likewise.
5365 (cselib_subst_to_values): Likewise.
5366 * cselib.c (find_slot_memmode): New var.
5367 (cselib_find_slot): New fn. Use it instead of
5368 htab_find_slot_with_hash everywhere.
5369 (entry_and_rtx_equal_p): Use find_slot_memmode.
5370 (autoinc_split): New fn.
5371 (rtx_equal_for_cselib_p): Rename and implement in terms of...
5372 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
5373 Deal with autoinc. Special-case recursion into MEMs.
5374 (cselib_hash_rtx): Likewise.
5375 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
5376 address and MEM modes.
5377 (cselib_subst_to_values): Add memmode, pass it on.
5378 Deal with autoinc.
5379 (cselib_lookup): Add memmode argument, pass it on.
5380 (cselib_lookup_from_insn): Add memmode.
5381 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
5382 (struct cselib_record_autoinc_data): New.
5383 (cselib_record_autoinc_cb): New fn.
5384 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
5385 mode to cselib_lookup. Reset autoinced REGs here instead of...
5386 (cselib_process_insn): ... here.
5387 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
5388 to cselib_lookup.
5389 (add_uses): Likewise, also to cselib_subst_to_values.
5390 (add_stores): Likewise.
5391 * sched-deps.c (add_insn_mem_dependence): Pass mode to
5392 cselib_subst_to_values.
5393 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
5394 * gcse.c (do_local_cprop): Adjusted.
5395 * postreload.c (reload_cse_simplify_set): Adjusted.
5396 (reload_cse_simplify_operands): Adjusted.
5397 * sel-sched-dump (debug_mem_addr_value): Pass mode.
5398
1551d44a
AO
53992011-02-03 Alexandre Oliva <aoliva@redhat.com>
5400
5401 PR tree-optimization/45122
5402 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
5403 unsafe assumptions when there's more than one loop exit.
5404
c9485473
MM
54052011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5406
5407 PR target/47272
5408 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
5409 Document using vector double with the load/store builtins, and
5410 that the load/store builtins always use Altivec instructions.
5411
5412 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
5413 to use altivec memory instructions, even on VSX.
5414 (vector_altivec_store_<mode>): Ditto.
5415
5416 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
5417 function.
5418
5419 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5420 V2DF, V2DI support to load/store overloaded builtins.
5421
5422 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
5423 altivec load/store builtins for V2DF/V2DI types.
5424
5425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5426 set avoid indexed addresses on power6 if -maltivec.
5427 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
5428 vector_altivec_load/vector_altivec_store builtins.
5429 (altivec_expand_st_builtin): Ditto.
5430 (altivec_expand_builtin): Add VSX memory builtins.
5431 (rs6000_init_builtins): Add V2DI types to internal types.
5432 (altivec_init_builtins): Add support for V2DF/V2DI altivec
5433 load/store builtins.
5434 (rs6000_address_for_altivec): Insure memory address is appropriate
5435 for Altivec.
5436
5437 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
5438 vec_vsx_ld and vec_vsx_st.
5439 (vsx_store_<mode>): Ditto.
5440
5441 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
5442 variables to hold long long types for VSX vector memory builtins.
5443 (RS6000_BTI_unsigned_long_long): Ditto.
5444 (long_long_integer_type_internal_node): Ditti.
5445 (long_long_unsigned_type_internal_node): Ditti.
5446
5447 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
5448 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
5449 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
5450
5451 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
5452 short cuts.
5453 (vec_vsx_st): Ditto.
5454
b24d1acf
JM
54552011-02-02 Joseph Myers <joseph@codesourcery.com>
5456
5457 * config/pa/pa-hpux10.opt: New.
5458 * config/hpux11.opt (pthread): New Driver option.
5459 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
5460 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
5461
aa18dd0f
JM
54622011-02-02 Joseph Myers <joseph@codesourcery.com>
5463
5464 * config/ia64/vms.opt: New.
5465 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
5466
28fc3eee
MM
54672011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
5468
5469 PR target/47580
5470 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
5471 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
5472 generator functions.
5473 (vsx_floatuns<VSi><mode>2): Ditto.
5474 (vsx_fix_trunc<mode><VSi>2): Ditto.
5475 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
5476
b5838b1f
JM
54772011-02-02 Joseph Myers <joseph@codesourcery.com>
5478
5479 * config/i386/djgpp.opt (posix): New Driver option.
5480
0db8fa89
GP
54812011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
5482
5483 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
5484 Move to the unsupported targets list.
5485
9cd4f22a
PB
54862011-02-02 Peter Bergner <bergner@vnet.ibm.com>
5487
5488 PR rtl-optimization/47525
5489 * df-scan.c: Update copyright years.
5490 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
5491 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
5492
9ed8059c
RO
54932011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5494
5495 * config/i386/sysv4.h (TARGET_VERSION): Remove.
5496 (SUBTARGET_RETURN_IN_MEMORY): Remove.
5497 (ASM_OUTPUT_ASCII): Remove.
5498 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
5499
2a737389
JL
55002011-02-02 Jeff Law <law@redhat.com>
5501
5502 PR middle-end/47543
5503 * reload.c (find_reloads_address): Handle reg+d address where both
5504 components are invalid by reloading the entire address.
5505
9dac82c4
SP
55062011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5507 Richard Guenther <rguenther@suse.de>
5508
5509 PR tree-optimization/40979
5510 PR bootstrap/47044
5511 * passes.c (init_optimization_passes): After LIM call copy_prop
5512 and DCE to clean up.
5513 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
5514
14dd9aab
SP
55152011-02-02 Sebastian Pop <sebastian.pop@amd.com>
5516
5517 PR tree-optimization/47576
5518 PR tree-optimization/47555
5519 * doc/invoke.texi (scev-max-expr-complexity): Documented.
5520 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5521 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
5522 * tree-scalar-evolution.c (follow_ssa_edge): Use
5523 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
5524
5cbf5c20
RG
55252011-02-02 Richard Guenther <rguenther@suse.de>
5526
5527 PR tree-optimization/47566
5528 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
5529
83d70792
AO
55302011-02-02 Alexandre Oliva <aoliva@redhat.com>
5531
e829c321
AO
5532 PR debug/47106
5533 PR debug/47402
5534 * tree-inline.c (declare_return_variable): Remove unused caller
5535 variable.
5536
83d70792
AO
5537 PR debug/47106
5538 PR debug/47402
5539 * tree-flow-inline.h (clear_is_used, is_used_p): New.
5540 * cfgexpand.c (account_used_vars_for_block): Use them.
5541 * tree-nrv.c (tree_nrv): Likewise.
5542 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
5543 (dump_scope_block): Likewise.
5544 (remove_unused_locals): Likewise.
5545
aaa2ac93
AO
5546 PR debug/47106
5547 PR debug/47402
5548 * tree-inline.c (declare_return_variable): Add result decl to
5549 local decls only once.
5550 * gimple-low.c (record_vars_into): Mark newly-created variables
5551 as referenced.
5552
a59d15cf
AO
55532011-02-02 Alexandre Oliva <aoliva@redhat.com>
5554
5555 PR debug/47498
5556 PR debug/47501
5557 PR debug/45136
5558 PR debug/45130
5559 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5560 debug insns.
5561 (no_real_insns_p, schedule_block, set_priorities): Drop special
5562 treatment of boundary debug insns.
38be4072 5563 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
5564 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
5565 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5566 (BOUNDARY_DEBUG_INSN_P): Likewise.
5567 (SCHEDULE_DEBUG_INSN_P): Likewise.
5568 * sched-rgn.c (init_ready_list): Drop special treatment of
5569 boundary debug insns.
5570 * final.c (rest_of_clean_state): Clear notes' BB.
5571
6fc2f091
JM
55722011-02-01 Joseph Myers <joseph@codesourcery.com>
5573
5574 * config/openbsd.opt (assert=): New Driver option.
5575
fc523387
JM
55762011-02-01 Joseph Myers <joseph@codesourcery.com>
5577
5578 * config/i386/nto.opt: New.
5579 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
5580
6d9821e5
JM
55812011-02-01 Joseph Myers <joseph@codesourcery.com>
5582
5583 * config/i386/netware.opt: New.
5584 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
5585
cef932d4
JM
55862011-02-01 Joseph Myers <joseph@codesourcery.com>
5587
5588 * config/interix.opt (posix): New Driver option.
5589
22843acd
DD
55902011-02-01 DJ Delorie <dj@redhat.com>
5591
56490b74
DD
5592 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
5593
22843acd
DD
5594 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
5595 class for A0/A1.
5596
199c8f2f
SP
55972011-02-01 Sebastian Pop <sebastian.pop@amd.com>
5598
5599 PR tree-optimization/47561
5600 * toplev.c (process_options): Print the Graphite flags. Add
5601 flag_loop_flatten to the list of options requiring Graphite.
5602
926bcf22
JM
56032011-02-01 Joseph Myers <joseph@codesourcery.com>
5604
5605 * config/i386/cygming.opt (posix): New Driver option.
5606
59793c51
JM
56072011-02-01 Joseph Myers <joseph@codesourcery.com>
5608
5609 * config/arm/vxworks.opt: New.
5610 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
5611
183c38a4
JM
56122011-02-01 Joseph Myers <joseph@codesourcery.com>
5613
5614 * config/alpha/elf.opt: New.
5615 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
5616 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
5617
9939e416
RG
56182011-02-01 Richard Guenther <rguenther@suse.de>
5619
5620 PR tree-optimization/47559
5621 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
5622 store-motion on references that can throw.
5623
4a3c9687
BS
56242011-02-01 Bernd Schmidt <bernds@codesourcery.com>
5625
5626 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
5627 * tree-pass.h (TDF_CSELIB): New macro.
5628 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
5629 cselib_lookup): Check for it rather than for TDF_DETAILS.
5630
dd3b31fb
L
56312011-02-01 H.J. Lu <hongjiu.lu@intel.com>
5632
5633 PR driver/47547
5634 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
5635 is HOST_BIT_BUCKET.
5636
5637 * opts.c (finish_options): Don't add x_aux_base_name if it is
5638 HOST_BIT_BUCKET.
5639
34c1de79
RG
56402011-02-01 Richard Guenther <rguenther@suse.de>
5641
5642 PR tree-optimization/47555
5643 Revert
5644 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
5645
5646 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
5647
dd2804d2
SB
56482011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
5649
5650 PR gcc/46692
5651 * config/lm32/t-lm32: Add multilib for all CPU options.
5652
3fd3b156
RG
56532011-02-01 Richard Guenther <rguenther@suse.de>
5654
5655 PR tree-optimization/47541
5656 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5657 sure to have a field at offset zero.
5658
f16072b6
JM
56592011-01-31 Joseph Myers <joseph@codesourcery.com>
5660
5661 * config/arc/arc.opt (EB, EL): New Driver options.
5662
6456cf2e
JM
56632011-01-31 Joseph Myers <joseph@codesourcery.com>
5664
5665 * config/alpha/osf5.opt: New.
5666 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
5667
cdde6ab4
JM
56682011-01-31 Joseph Myers <joseph@codesourcery.com>
5669
5670 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
5671
7633415c
SP
56722011-01-31 Sebastian Pop <sebastian.pop@amd.com>
5673
5674 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
5675 -floop-interchange.
5676 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
5677 is an alias of -floop-interchange and that it requires the
5678 Graphite infrastructure.
5679 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
5680 flag_loop_interchange based on the value of flag_tree_loop_linear.
5681
0425d6f5
JJ
56822011-01-31 Jakub Jelinek <jakub@redhat.com>
5683 Richard Guenther <rguenther@suse.de>
5684
5685 PR tree-optimization/47538
5686 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
5687 type instead of r1type, except for comparisons. For right
5688 shifts and comparisons punt if there are mismatches in
5689 sizetype vs. non-sizetype types.
5690
500b16c3
RO
56912011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5692
5693 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5694 avx_runtime.
5695
e279edb0
RO
56962011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5697
5698 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
5699 version number.
5700 * configure: Regenerate.
5701
c6092243
RO
57022011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5703
5704 * configure.ac (gcc_cv_ld_static_option): Define.
5705 (gcc_cv_ld_dynamic_option): Define.
5706 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
5707 instead.
5708 (HAVE_LD_STATIC_DYNAMIC): Update message.
5709 (LD_STATIC_OPTION): Define.
5710 (LD_DYNAMIC_OPTION): Define.
5711 * configure: Regenerate.
5712 * config.in: Regenerate.
5713 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
5714 HAVE_LD_STATIC_DYNAMIC]: Use them.
5715
d7862be3
NC
57162011-01-31 Nick Clifton <nickc@redhat.com>
5717
5718 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
5719 registers inside interrupt handlers if the handler is not a leaf
5720 function.
5721
ba4ec0e0
NC
57222011-01-31 Nick Clifton <nickc@redhat.com>
5723
5724 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
5725 reg_renumber returning an INVALID_REGNUM.
5726
29a63921
AO
57272011-01-31 Alexandre Oliva <aoliva@redhat.com>
5728
5729 PR libgcj/44341
5730 * doc/install.texi: Document host options discarded when cross
5731 configuring target libraries.
5732
ef591d3f
AO
57332011-01-31 Alexandre Oliva <aoliva@redhat.com>
5734
5735 Reverted:
5736 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
5737 PR debug/45136
5738 PR debug/45130
5739 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
5740 debug insns.
5741 (no_real_insns_p, schedule_block, set_priorities): Drop special
5742 treatment of boundary debug insns.
38be4072 5743 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
5744 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
5745 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
5746 (BOUNDARY_DEBUG_INSN_P): Likewise.
5747 (SCHEDULE_DEBUG_INSN_P): Likewise.
5748 * sched-rgn.c (init_ready_list): Drop special treatment of
5749 boundary debug insns.
5750 * final.c (rest_of_clean-state): Clear notes' BB.
5751
61052244
AM
57522011-01-31 Alan Modra <amodra@gmail.com>
5753
5754 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
5755 toc relative expressions as we do in print_operand_address.
5756
c4c8962b
KH
57572011-01-30 Kazu Hirata <kazu@codesourcery.com>
5758
5759 * doc/extend.texi: Follow spelling conventions.
5760 * doc/invoke.texi: Fix a typo.
5761
e543b94c
JM
57622011-01-30 Joseph Myers <joseph@codesourcery.com>
5763
5764 * config/hpux11.opt: New.
5765 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
5766 ia64*-*-hpux*): Use hpux11.opt.
5767
509d65dd 57682011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
5769
5770 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
5771 to tmake_file.
5772
7be03a0e
GP
57732011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5774
5775 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
5776 support sites.
5777
419d1d37
GP
57782011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
5779
b596ed64
GP
5780 * doc/install.texi (Binaries): Remove outdated reference for
5781 Motorola 68HC11/68HC12 downloads.
5782
57832011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 5784
419d1d37
GP
5785 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
5786 Drepper's paper.
5787
4406d0e9
JW
57882011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
5789
5790 PR bootstrap/47147
5791 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
5792 used by NetBSD.
5793
38be4072 57942011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
5795
5796 * value-prof.c (check_counter): Corrected error message.
5797
0cd98787
JZ
57982011-01-29 Jie Zhang <jie@codesourcery.com>
5799
5800 * config/arm/arm.c (arm_legitimize_reload_address): New.
5801 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
5802 arm_legitimize_reload_address.
38be4072 5803 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 5804
9b798ac5
ILT
58052011-01-28 Ian Lance Taylor <iant@google.com>
5806
5807 * godump.c (go_define): Ignore macros whose definitions include
5808 two adjacent operands.
5809
591e29d9
JJ
58102011-01-28 Jakub Jelinek <jakub@redhat.com>
5811
5812 PR target/42894
5813 * varasm.c (force_const_mem): Store copy of x in desc->constant
5814 instead of x itself.
5815 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
5816 itself into REG_EQUAL note.
5817
62dcc44a
JM
58182011-01-28 Joseph Myers <joseph@codesourcery.com>
5819
5820 * config/freebsd.opt (posix, rdynamic): New Driver options.
5821
c9f58b9a
RO
58222011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5823
5824 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
5825 -Bstatic/-Bdynamic.
5826 * configure: Regenerate.
5827
5f02b9db
JM
58282011-01-27 Joseph Myers <joseph@codesourcery.com>
5829
5830 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
5831 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
5832
5df97412
AS
58332011-01-27 Anatoly Sokolov <aesok@post.ru>
5834
5835 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
5836 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
5837 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5838 (s390_preferred_reload_class): Make static. Change return and
5839 'rclass' argument type to reg_class_t.
5840
779d4b91
JH
58412011-01-27 Jan Hubicka <jh@suse.cz>
5842
5843 PR middle-end/46949
5844 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
5845 (process_function_and_variable_attributes): Check defined weakrefs.
5846
e80b21ed
MJ
58472011-01-27 Martin Jambor <mjambor@suse.cz>
5848
5849 PR tree-optimization/47228
5850 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
5851 build_ref_for_offset.
5852
6dcc4f31
UW
58532011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5854
5855 * config/spu/spu-elf.h (ASM_SPEC): Remove.
5856
509d65dd 58572011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
5858
5859 PR rtl-optimization/46856
5860 * postreload.c (reload_combine_recognize_const_pattern): Do not
5861 separate cc0 setter and user on cc0 targets.
5862
04af8788
NP
58632011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
5864
5865 PR c/43082
5866 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
5867 passed a VOID_TYPE expression, immediately emit an error and
5868 return error_mark_node.
5869
f7a60085
JL
58702011-01-26 Jeff Law <law@redhat.com>
5871
5872 PR rtl-optimization/47464
5873 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
5874 rather than may_trap_p as needed.
5875
5c2917ec
DD
58762011-01-26 DJ Delorie <dj@redhat.com>
5877
5878 PR rtl-optimization/46878
5879 * combine.c (insn_a_feeds_b): Check for the implicit cc0
5880 setter/user dependency as well.
5881
bef16e87
EB
58822011-01-26 Eric Botcazou <ebotcazou@adacore.com>
5883
5884 PR rtl-optimization/44469
5885 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
5886 after removing trivially dead basic blocks.
5887
c75d884b
JM
58882011-01-26 Joseph Myers <joseph@codesourcery.com>
5889
5890 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
5891 * config/frv/frv.h (LINK_SPEC): Likewise.
5892 * config/i386/netware.h (LINK_SPEC): Likewise.
5893 * config/m68k/linux.h (ASM_SPEC): Likewise.
5894 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
5895 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5896 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5897 * config/sparc/linux.h (ASM_SPEC): Likewise.
5898 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5899 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5900
d3153553
JM
59012011-01-26 Joseph Myers <joseph@codesourcery.com>
5902
5903 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
5904 * config/frv/frv.h (ASM_SPEC): Likewise.
5905 * config/m68k/linux.h (ASM_SPEC): Likewise.
5906 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5907 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
5908 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5909 * config/sparc/linux.h (ASM_SPEC): Likewise.
5910 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5911 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5912
b89b1e9d
JM
59132011-01-26 Joseph Myers <joseph@codesourcery.com>
5914
5915 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
5916 * config/frv/frv.h (LINK_SPEC): Likewise.
5917 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
5918
12eb1a9c
JM
59192011-01-26 Joseph Myers <joseph@codesourcery.com>
5920
5921 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
5922 * config/frv/frv.h (ASM_SPEC): Likewise.
5923 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
5924 * config/m68k/linux.h (ASM_SPEC): Likewise.
5925 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
5926 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
5927 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
5928 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
5929 * config/sparc/linux.h (ASM_SPEC): Likewise.
5930 * config/sparc/linux64.h (ASM_SPEC): Likewise.
5931 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
5932 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
5933
e435f098
SE
59342011-01-26 Steve Ellcey <sje@cup.hp.com>
5935
5936 PR target/46997
5937 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
5938 (*mux2): Ditto.
5939 (vec_extract_evenodd_help): Ditto.
5940 (vec_extract_evenv4hi): Ditto.
5941 (vec_extract_oddv4hi): Ditto.
5942 (vec_interleave_lowv2si): Ditto.
5943 (vec_interleave_highv2si): Ditto.
5944 (vec_extract_evenv2si): Ditto.
5945 (vec_extract_oddv2si: Ditto.
5946 (vec_pack_trunc_v2si): Ditto.
5947
34f0eee0
JH
59482011-01-22 Jan Hubicka <jh@suse.cz>
5949
5950 PR target/47237
5951 * cgraph.h (cgraph_local_info): New field can_change_signature.
5952 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
5953 signature can change.
5954 (ipcp_estimate_growth): Call sequence simplify only if calle signature
5955 can change.
5956 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
5957 (cgraph_function_versioning): We can not change signature of functions
5958 that don't allow that.
5959 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
5960 (lto_input_node): Likewise.
38be4072
UB
5961 * ipa-inline.c (compute_inline_parameters): Compute
5962 local.can_change_signature.
34f0eee0 5963 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
5964 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
5965 functions that can not change signature.
34f0eee0 5966 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
5967 init_cumulative_args): Do not use local calling conventions
5968 for functions that can not change signature.
34f0eee0 5969
980ca891
JH
59702011-01-22 Jan Hubicka <jh@suse.cz>
5971
5972 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
5973
768e3c60
RG
59742011-01-26 Richard Guenther <rguenther@suse.de>
5975
5976 PR tree-optimization/47190
61052244
AM
5977 * cgraphunit.c (process_common_attributes): New function.
5978 (process_function_and_variable_attributes): Use it.
768e3c60 5979
21d6a1c7
RG
59802011-01-26 Richard Guenther <rguenther@suse.de>
5981
5982 PR lto/47423
5983 * cgraphbuild.c (record_eh_tables): Record reference to personality
5984 function.
5985
48bb58b1
AO
59862011-01-26 Alexandre Oliva <aoliva@redhat.com>
5987
5988 PR debug/45454
5989 * sel-sched.c (moveup_expr): Don't let debug insns prevent
5990 non-debug insns from moving up.
5991
58c741a6
DK
59922011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5993
5994 PR target/40125
5995 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
5996 t-dlldir{,-x} fragment for build and add it to tmake_file.
5997 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
5998 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
5999 * config/i386/t-dlldir: New file.
6000 (SHLIB_DLLDIR): Define.
6001 * config/i386/t-dlldir-x: New file.
6002 (SHLIB_DLLDIR): Define.
6003 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
6004 (SHLIB_INSTALL): Use it.
6005
bff99262
CLT
60062011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
6007
6008 PR target/47246
6009 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
6010 lower bound of the allowed Thumb-2 coprocessor load/store
6011 index range to -256. Add explaining comment.
6012
82c03907
ILT
60132011-01-25 Ian Lance Taylor <iant@google.com>
6014
6015 * godump.c (go_define): Improve lexing of macro expansion to only
6016 accept expressions which match Go spec.
6017
47ea1edf
DK
60182011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
6019
d4dba752 6020 PR c++/43601
47ea1edf
DK
6021 * tree.c (handle_dll_attribute): Handle it.
6022 * doc/extend.texi (@item dllexport): Mention it.
6023 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
6024
744f0946
ILT
60252011-01-25 Ian Lance Taylor <iant@google.com>
6026
6027 PR tree-optimization/26854
6028 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
6029 (decl_jump_unsafe): Move higher in file, with no other change.
6030 (bind): Set has_jump_unsafe_decl if appropriate.
6031 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
6032 (check_earlier_gotos): Likewise.
6033 (c_check_switch_jump_warnings): Likewise.
6034
5734f2b3
JW
60352011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
6036
6037 * doc/invoke.texi (Warning Options): Add missing hyphen.
6038 (-fprofile-dir): Minor grammatical fixes.
6039 (-fbranch-probabilities): Likewise.
6040
9bdbdcef
AO
60412011-01-25 Alexandre Oliva <aoliva@redhat.com>
6042
6043 PR debug/45136
6044 PR debug/45130
6045 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
6046 debug insns.
6047 (no_real_insns_p, schedule_block, set_priorities): Drop special
6048 treatment of boundary debug insns.
38be4072 6049 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
6050 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
6051 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
6052 (BOUNDARY_DEBUG_INSN_P): Likewise.
6053 (SCHEDULE_DEBUG_INSN_P): Likewise.
6054 * sched-rgn.c (init_ready_list): Drop special treatment of
6055 boundary debug insns.
6056 * final.c (rest_of_clean-state): Clear notes' BB.
6057
b305e3da
SP
60582011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6059
6060 * Makefile.in (LAMBDA_H): Removed.
6061 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
6062 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6063 lambda-trans.o, and tree-loop-linear.o.
6064 (lto-symtab.o): Remove dependence on LAMBDA_H.
6065 (tree-loop-linear.o): Remove rule.
6066 (lambda-mat.o): Same.
6067 (lambda-trans.o): Same.
6068 (lambda-code.o): Same.
6069 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
6070 (tree-vect-slp.o): Same.
6071 * hwint.h (gcd): Moved here.
6072 (least_common_multiple): Same.
6073 * lambda-code.c: Removed.
6074 * lambda-mat.c: Removed.
6075 * lambda-trans.c: Removed.
6076 * lambda.h: Removed.
6077 * tree-loop-linear.c: Removed.
6078 * lto-symtab.c: Do not include lambda.h.
6079 * omega.c (gcd): Removed.
6080 * passes.c (init_optimization_passes): Remove pass_linear_transform.
6081 * tree-data-ref.c (print_lambda_vector): Moved here.
6082 (lambda_vector_copy): Same.
6083 (lambda_matrix_copy): Same.
6084 (lambda_matrix_id): Same.
6085 (lambda_vector_first_nz): Same.
6086 (lambda_matrix_row_add): Same.
6087 (lambda_matrix_row_exchange): Same.
6088 (lambda_vector_mult_const): Same.
6089 (lambda_vector_negate): Same.
6090 (lambda_matrix_row_negate): Same.
6091 (lambda_vector_equal): Same.
6092 (lambda_matrix_right_hermite): Same.
6093 * tree-data-ref.h: Do not include lambda.h.
6094 (lambda_vector): Moved here.
6095 (lambda_matrix): Same.
6096 (dependence_level): Same.
6097 (lambda_transform_legal_p): Removed declaration.
6098 (lambda_collect_parameters): Same.
6099 (lambda_compute_access_matrices): Same.
6100 (lambda_vector_gcd): Same.
6101 (lambda_vector_new): Same.
6102 (lambda_vector_clear): Same.
6103 (lambda_vector_lexico_pos): Same.
6104 (lambda_vector_zerop): Same.
6105 (lambda_matrix_new): Same.
6106 * tree-flow.h (least_common_multiple): Removed declaration.
6107 * tree-parloops.c (lambda_trans_matrix): Moved here.
6108 (LTM_MATRIX): Same.
6109 (LTM_ROWSIZE): Same.
6110 (LTM_COLSIZE): Same.
6111 (LTM_DENOMINATOR): Same.
6112 (lambda_trans_matrix_new): Same.
6113 (lambda_matrix_vector_mult): Same.
6114 (lambda_transform_legal_p): Same.
6115 * tree-pass.h (pass_linear_transform): Removed declaration.
6116 * tree-ssa-loop.c (tree_linear_transform): Removed.
6117 (gate_tree_linear_transform): Removed.
6118 (pass_linear_transform): Removed.
6119 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
6120 flag_loop_interchange.
6121
6bdfdb96
JJ
61222011-01-25 Jakub Jelinek <jakub@redhat.com>
6123
6124 PR tree-optimization/47265
6125 PR tree-optimization/47443
6126 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
6127 if name still has some uses.
6128
e4cba915
MJ
61292011-01-25 Martin Jambor <mjambor@suse.cz>
6130
6131 PR tree-optimization/47382
6132 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
6133 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
6134
509d65dd 61352011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
6136
6137 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
6138 sjlj_except_unwind_info.
6139
194313e2
RG
61402011-01-25 Richard Guenther <rguenther@suse.de>
6141
6142 PR tree-optimization/47426
6143 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
6144 visible functions results escape.
6145
147a0bcf
JJ
61462011-01-25 Jakub Jelinek <jakub@redhat.com>
6147
6148 PR target/45701
6149 * config/arm/arm.c (any_sibcall_uses_r3): New function.
6150 (arm_get_frame_offsets): Use it.
6151
db963b52
SP
61522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6153 Jakub Jelinek <jakub@redhat.com>
6154
6155 PR tree-optimization/47271
6156 * tree-if-conv.c (bb_postdominates_preds): New.
6157 (if_convertible_bb_p): Call bb_postdominates_preds.
6158 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
6159 (predicate_scalar_phi): Call bb_postdominates_preds.
6160
bcddd3b9
NC
61612011-01-25 Nick Clifton <nickc@redhat.com>
6162
6163 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
6164 * config/rx/rx.c (rx_function_value): Likewise.
6165 (rx_promote_function_mode): Likewise.
6166 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
6167 in order to make it legitimate.
38be4072
UB
6168 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
6169 make sure that the first operand is the same as the result register.
bcddd3b9
NC
6170 (addsi3_unspec): Delete.
6171 (subdi3): Do not accept immediate operands.
6172 (subdi3_internal): Likewise.
6173
7e6cb022
JL
61742011-01-25 Jeff Law <law@redhat.com>
6175
6176 PR rtl-optimization/37273
6177 * ira-costs.c (scan_one_insn): Detect constants living in memory and
6178 handle them like argument loads from stack slots. Do not double
6179 count memory for memory constants and argument loads from stack slots.
6180
9ffa621e
JJ
61812011-01-25 Jakub Jelinek <jakub@redhat.com>
6182
6183 PR tree-optimization/47427
6184 PR tree-optimization/47428
6185 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
6186 coalesce if the new root var would be TREE_READONLY.
6187
5bd6e652
RG
61882011-01-25 Richard Guenther <rguenther@suse.de>
6189
6190 PR middle-end/47414
6191 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
6192 correct type for TBAA.
6193
7c48ea69
SP
61942011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6195
6196 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
6197 (close_phi_written_to_memory): Call for_each_index with
6198 dr_indices_valid_in_loop.
6199
38013f25
SP
62002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6201
6202 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
6203 when it is initialized.
6204
5c640e29
SP
62052011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6206
6207 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
6208 call to graphite_find_data_references_in_stmt.
6209 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
6210 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
6211 call to graphite_find_data_references_in_stmt.
6212 (analyze_drs_in_stmts): Same.
6213 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
6214 in which the scalar analysis of indices is performed.
6215 (create_data_ref): Same. Update call to dr_analyze_indices.
6216 (find_data_references_in_stmt): Update call to create_data_ref.
6217 (graphite_find_data_references_in_stmt): Same.
6218 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
6219 declaration.
6220 (create_data_ref): Same.
6221 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
6222 call to create_data_ref.
6223
ac53c069
SP
62242011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6225
6226 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 6227 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 6228
3d17df15
SP
62292011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6230
6231 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
6232 VAR_DECL, PARM_DECL, and RESULT_DECL.
6233
c513da01
SP
62342011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6235
6236 * graphite-dependences.c (reduction_dr_1): Allow several reductions
6237 in a reduction PBB.
6238 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
6239 that have already been marked as PBB_IS_REDUCTION.
6240
3a292d59
SP
62412011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6242
6243 * graphite-scop-detection.c (same_close_phi_node): New.
6244 (remove_duplicate_close_phi): New.
6245 (make_close_phi_nodes_unique): New.
6246 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
6247
ba858447
SP
62482011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6249
6250 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
6251 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
6252 of both data references to be the same.
6253
8d865c56
SP
62542011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6255
38be4072
UB
6256 * graphite-dependences.c (build_lexicographical_constraint): Remove
6257 the gdim parameter.
6258 (build_lexicographical_constraint): Adjust call to
6259 ppl_powerset_is_empty.
8d865c56
SP
6260 (dependence_polyhedron): Same.
6261 (graphite_legal_transform_dr): Same.
6262 (graphite_carried_dependence_level_k): Same.
38be4072
UB
6263 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
6264 parameter.
8d865c56
SP
6265 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
6266
50034a36
SP
62672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6268
6269 * graphite-sese-to-poly.c
6270 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
6271 (close_phi_written_to_memory): New.
6272 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
6273 and unshare_expr.
6274
0deada9e
SP
62752011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6276
6277 * doc/install.texi: Update the expected version number of PPL to 0.11.
6278 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
6279 #if PPL_VERSION_MINOR < 11.
6280
d7d3d6af
SP
62812011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6282
6283 * graphite-dependences.c: Include graphite-cloog-util.h.
6284 (new_poly_ddr): Inlined into dependence_polyhedron.
6285 (free_poly_ddr): Moved close by new_poly_ddr.
6286 (dependence_polyhedron_1): Renamed dependence_polyhedron.
6287 Early return NULL when ppl_powerset_is_empty returns true.
6288 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
6289 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
6290 (graphite_legal_transform_dr): Call new_poly_ddr.
6291 (graphite_carried_dependence_level_k): Same.
6292 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
6293 (dot_transformed_deps_stmt_1): Removed.
6294 (dot_deps_stmt_1): Call dot_deps_stmt_2.
6295 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
6296 (dot_deps_1): Call dot_deps_2.
6297 * Makefile.in (graphite-dependences.o): Add missing dependence on
6298 graphite-cloog-util.h.
6299
28c5db57
SP
63002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6301
6302 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
6303 (build_lexicographical_constraint): Same.
6304 (dependence_polyhedron_1): Same.
6305 (graphite_legal_transform_dr): Same.
6306 (graphite_carried_dependence_level_k): Same.
6307 * graphite-ppl.c (ppl_powerset_is_empty): New.
6308 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
6309 * tree-data-ref.c (dump_data_reference): Print the basic block index.
6310
5168d98f
SP
63112011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6312
6313 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
6314 the "a followed by b" relation and document it.
6315
4a40293a
SP
63162011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6317
6318 * graphite-dependences.c (build_lexicographical_constraint): Stop the
6319 iteration when the bag of constraints is empty.
6320
271fb6fa
SP
63212011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6322
6323 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
6324
92d23680
SP
63252011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6326
6327 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
6328 nest and two loop depths as parameters.
6329 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
6330 lst_perfect_nestify.
6331
2f51deff
SP
63322011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6333
6334 * graphite-dependences.c (print_pddr): Call
6335 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
6336
07f3593c
SP
63372011-01-25 Sebastian Pop <sebastian.pop@amd.com>
6338
6339 * graphite-ppl.c (debug_gmp_value): New.
6340 * graphite-ppl.h (debug_gmp_value): Declared.
6341
3fae6099
TG
63422011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
6343
6344 * doc/install.texi: Document availability of cloog-0.16.
6345
1c3ba85b
SP
63462011-01-25 Vladimir Kargov <kargov@gmail.com>
6347
6348 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
6349 invalid postdominance info.
6350
e8ba94fc
JH
63512011-01-24 Jan Hubicka <jh@suse.cz>
6352
6353 PR c/21659
6354 * doc/extend.texi (weak pragma): Drop claim that it must
6355 appear before definition.
6356 * varasm.c (merge_weak, declare_weak): Only sanity check
6357 that DECL is not output at a time it is declared weak.
6358
2b6e2d13
KZ
63592011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
6360
6361 * machmode.def: Fixed comments.
1c3ba85b 6362
9841210f
KT
63632011-01-24 Kai Tietz <kai.tietz@onevision.com>
6364
6365 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
6366
63672011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
6368
6369 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 6370 WORDS_BIG_ENDIAN.
e046112d 6371
a6c5070a
L
63722011-01-24 H.J. Lu <hongjiu.lu@intel.com>
6373
6374 PR target/46519
6375 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
6376 (block_info): Add scanned and prev.
6377 (move_or_delete_vzeroupper_2): Return if the basic block
6378 has been scanned and the upper 128bit state is unchanged
6379 from the last scan.
6380 (move_or_delete_vzeroupper_1): Return true if the exit
6381 state is changed.
6382 (move_or_delete_vzeroupper): Visit basic blocks using the
6383 work-list based algorithm based on vt_find_locations in
6384 var-tracking.c.
6385
6386 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
6387
a40d79d7
NC
63882011-01-24 Nick Clifton <nickc@redhat.com>
6389
6390 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
6391 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
6392 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
6393 then define __v850e1__.
6394 * doc/invoke.texi: Document -mv850es.
6395
440eb8de
RH
63962011-01-24 Richard Henderson <rth@redhat.com>
6397
6398 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
6399 compound unordered comparisons.
6400 * config/rx/rx.c (rx_split_fp_compare): Remove.
6401 * config/rx/rx-protos.h: Update.
6402 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
6403 (cbranchsf4): Don't call rx_split_fp_compare.
6404 (*cbranchsf4): Use rx_split_cbranch.
6405 (*cmpsf): Don't accept "i" constraint.
6406 (*conditional_branch): Only valid after reload.
6407 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
6408
3ff79f99
MM
64092011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6410
6411 PR target/47385
6412 * config/rs6000/altivec.md (vector constant splitters): Add
6413 support for creating vector single precision constants if -mvsx is
6414 used and we would create the constant using Altivec primitives.
6415
ff3d9d08
BS
64162011-01-23 Bernd Schmidt <bernds@codesourcery.com>
6417 Richard Sandiford <rdsandiford@googlemail.com>
6418
6419 PR rtl-optimization/47166
6420 * reload1.c (emit_reload_insns): Disable the spill_reg_store
6421 mechanism for PRE_MODIFY and POST_MODIFY.
6422 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
6423 reloadreg.
6424
7fcaf152
AS
64252011-01-23 Andreas Schwab <schwab@linux-m68k.org>
6426
8788adb6 6427 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 6428
d09b58c4
JH
64292011-01-22 Jan Hubicka <jh@suse.cz>
6430
6431 PR lto/47333
6432 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
6433
e8ff8c5a
JH
64342011-01-22 Jan Hubicka <jh@suse.cz>
6435
6436 PR tree-optimization/43884
6437 PR lto/44334
8788adb6 6438 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
6439 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
6440
ccaed3ba
AS
64412011-01-22 Anatoly Sokolov <aesok@post.ru>
6442
6443 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6444 * config/s390/s390.c (s390_register_move_cost,
6445 s390_memory_move_cost): New.
6446 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6447
0cecee06
UW
64482011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6449
6450 PR middle-end/47401
6451 * except.c (sjlj_assign_call_site_values): Move setting the
6452 crtl->uses_eh_lsda flag to ...
6453 (sjlj_mark_call_sites): ... here.
6454 (sjlj_emit_function_enter): Support NULL dispatch label.
6455 (sjlj_build_landing_pads): In a function with no landing pads
6456 that still has must-not-throw regions, generate code to register
6457 a personality function with empty LSDA.
6458
e692f276
RH
64592011-01-21 Richard Henderson <rth@redhat.com>
6460
1b7ae0b7
RH
6461 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
6462
3843787f
RH
6463 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
6464
e692f276
RH
6465 * compare-elim.c: New file.
6466 * Makefile.in (OBJS-common): Add it.
6467 (compare-elim.o): New.
6468 * common.opt (fcompare-elim): New.
6469 * opts.c (default_options_table): Add OPT_fcompare_elim.
6470 * tree-pass.h (pass_compare_elim_after_reload): New.
6471 * passes.c (init_optimization_passes): Add it.
6472 * recog.h: Protect against re-inclusion.
6473 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
6474 * doc/invoke.texi (-fcompare-elim): Document it.
6475 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
6476 * doc/tm.texi: Rebuild.
6477
9a7c2050
NC
64782011-01-22 Nick Clifton <nickc@redhat.com>
6479
6480 * config/rx/rx.md (cstoresf4): Pass comparison operator to
6481 rx_split_fp_compare.
6482
15ba5696
NC
64832011-01-22 Nick Clifton <nickc@redhat.com>
6484
6485 * config/rx/rx.md (UNSPEC_CONST): New.
6486 (deallocate_and_return): Wrap the amount popped off the stack in
6487 an UNSPEC_CONST in order to stop it being rejected by
6488 -mmax-constant-size.
6489 (pop_and_return): Add a "(return)" rtx.
6490 (call): Drop the immediate operand.
6491 (call_internal): Likewise.
6492 (call_value): Likewise.
6493 (call_value_internal): Likewise.
6494 (sibcall_internal): Likewise.
6495 (sibcall_value_internal): Likewise.
6496 (sibcall): Likewise. Generate an explicit call using
6497 sibcall_internal.
6498 (sibcall_value): Likewise.
6499 (mov<>): FAIL if a constant operand is not legitimate.
6500 (addsi3_unpsec): New pattern.
9a7c2050 6501
38be4072 6502 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
6503 (ok_for_max_constant): New function.
6504 (gen_safe_add): New function.
6505 (rx_expand_prologue): Use gen_safe_add.
6506 (rx_expand_epilogue): Likewise.
6507 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
6508 UNSPEC CONSTs.
6509
caaf13d3
JL
65102011-01-21 Jeff Law <law@redhat.com>
6511
6512 PR tree-optimization/47053
6513 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
6514 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
6515 statements are deleted.
6516 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
6517 is nonempty, then purge dead edges and cleanup the CFG.
6518
12c30f2f
AO
65192011-01-21 Alexandre Oliva <aoliva@redhat.com>
6520
6521 PR debug/47402
6522 Temporarily revert:
6523 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
6524 PR debug/47106
6525 * tree-dfa.c (create_var_ann): Mark variable as used.
6526
7360d2ac
JJ
65272011-01-21 Jakub Jelinek <jakub@redhat.com>
6528
aaa52a96
JJ
6529 PR middle-end/45566
6530 * except.c (convert_to_eh_region_ranges): Emit queued no-region
6531 notes from other section in hot/cold partitioning even if
6532 last_action is -3. Increment call_site_base.
6533
7360d2ac
JJ
6534 PR rtl-optimization/47366
6535 * fwprop.c (forward_propagate_into): Return bool. If
6536 any changes are made, -fnon-call-exceptions is used and
6537 REG_EH_REGION note is present, call purge_dead_edges
6538 and return true if it purged anything.
6539 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
6540 any EH edges were purged.
6541
e90b336f
JL
65422011-01-21 Jeff Law <law@redhat.com>
6543
6544 PR rtl-optimization/41619
6545 * caller-save.c (setup_save_areas): Break out code to determine
6546 which hard regs are live across calls by examining the reload chains
6547 so that it is always used.
6548 Eliminate code which checked REG_N_CALLS_CROSSED.
6549
3ffe07e1
JJ
65502011-01-21 Jakub Jelinek <jakub@redhat.com>
6551
6552 PR tree-optimization/47355
6553 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
6554 NOP has non-debug uses beyond PHIs in new_bb.
6555
1c7d0b34
AO
65562011-01-21 Alexandre Oliva <aoliva@redhat.com>
6557
6558 PR debug/47106
6559 * cfgexpand.c (account_used_vars_for_block): Only account vars
6560 that are annotated as used.
6561 (estimated_stack_frame_size): Don't set TREE_USED.
6562 * tree-dfa.c (create_var_ann): Mark variable as used.
6563
f99cc488
RG
65642011-01-21 Richard Guenther <rguenther@suse.de>
6565
6566 PR middle-end/47395
6567 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
6568
3bc27de7
RG
65692011-01-21 Richard Guenther <rguenther@suse.de>
6570
6571 PR tree-optimization/47365
6572 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
6573 (vn_reference_lookup_pieces): Adjust.
6574 (vn_reference_lookup): Likewise.
6575 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
6576 (vn_reference_lookup_3): Only look through kills if in
6577 VN_WALKREWRITE mode.
6578 (vn_reference_lookup_pieces): Adjust.
6579 (vn_reference_lookup): Likewise.
6580 (visit_reference_op_load): Likewise.
6581 (visit_reference_op_store): Likewise.
6582 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
6583 (compute_avail): Likewise.
6584 (eliminate): Likewise.
6585
d8debb1d
JJ
65862011-01-21 Jakub Jelinek <jakub@redhat.com>
6587
6588 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
6589 DECL_IGNORED_P non-reg vars if they are used.
6590
3a2df831
JJ
6591 PR tree-optimization/47391
6592 * varpool.c (const_value_known_p): Return false if
6593 decl is volatile.
6594
1dd584a2
KT
65952011-01-21 Kai Tietz <kai.tietz@onevision.com>
6596
6597 PR bootstrap/47215
6598 * config/i386/i386.c (ix86_local_alignment): Handle
6599 case for va_list_type_node is nil.
6600 (ix86_canonical_va_list_type): Likewise.
6601
7f9f095e
AM
66022011-01-21 Alan Modra <amodra@gmail.com>
6603
6604 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
6605 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
6606
837b01f6
RR
66072011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6608
6609 * config/arm/arm.md (define_attr type): Rename f_load
6610 and f_store to f_fpa_load and f_fpa_store. Update.
6611 (write_conflict): Deal with rename fallout.
6612 (*push_fp_multi): Likewise.
6613 * config/arm/fpa.md (f_load): Use f_fpa_load.
6614 (f_store): Use f_fpa_store.
6615 (*movsf_fpa): Likewise.
6616 (*movdf_fpa): Likewise.
6617 (*movxf_fpa): Likewise.
6618 (*thumb2_movsf_fpa): Likewise.
6619 (*thumb2_movdf_fpa): Likewise.
6620 (*thumb2_movxf_fpa): Likewise.
6621 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
6622 f_loadd and f_stored.
6623 (*thumb2_movdi_vfp): Likewise.
6624 (*thumb2_movsf_vfp): Fix attribute to f_loads.
6625 (*thumb2_movsi_vfp): Likewise.
6626 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
6627 Use f_loads instead of f_load.
6628 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
6629
a1a79768
AS
66302011-01-20 Anatoly Sokolov <aesok@post.ru>
6631
6632 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6633 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
6634 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6635 (xtensa_mode_dependent_address_p): New function.
6636 (constantpool_address_p): Make static. Change return type to bool.
6637 Change argument type to const_rtx. Use CONST_INT_P predicate.
6638
427f6cec
AO
66392011-01-20 Alexandre Oliva <aoliva@redhat.com>
6640
6641 PR debug/46583
6642 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
6643
583ac69c
JJ
66442011-01-20 Jakub Jelinek <jakub@redhat.com>
6645
6646 PR debug/47283
6647 * cfgexpand.c (expand_debug_expr): Instead of generating
6648 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
6649 etc. handling.
6650
93e452ed
RG
66512011-01-20 Richard Guenther <rguenther@suse.de>
6652
6653 PR middle-end/47370
6654 * tree-inline.c (remap_gimple_op_r): Recurse manually for
6655 the pointer operand of MEM_REFs.
6656
28fc44f3
JJ
66572011-01-20 Jakub Jelinek <jakub@redhat.com>
6658
6659 PR tree-optimization/46130
6660 * ipa-split.c (consider_split): If return_bb contains non-virtual
6661 PHIs other than for retval or if split_function would not adjust it,
6662 refuse to split.
6663
ddd268f2
RG
66642011-01-20 Richard Guenther <rguenther@suse.de>
6665
6666 PR tree-optimization/47167
6667 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
6668 Revert previous change, only avoid enumeral type changes.
6669
882020aa
MS
66702011-01-19 Mike Stump <mikestump@comcast.net>
6671
6672 * doc/tm.texi.in (BRANCH_COST): Englishify.
6673 * doc/tm.texi (BRANCH_COST): Likewise.
6674
7edb6247
DS
66752011-01-19 Dodji Seketeli <dodji@redhat.com>
6676
6677 PR c++/47291
6678 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
6679 (gen_scheduled_generic_parms_dies): New functions.
6680 (gen_struct_or_union_type_die): Schedule template parameters DIEs
6681 generation for the end of CU compilation.
6682 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 6683
23d5ed5d
AO
66842011-01-19 Alexandre Oliva <aoliva@redhat.com>
6685
6686 PR debug/46240
6687 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
6688 debug bind stmt on merge edges.
6689
37d6a488
AO
66902011-01-19 Alexandre Oliva <aoliva@redhat.com>
6691
6692 PR debug/47079
6693 PR debug/46724
6694 * function.c (instantiate_expr): Instantiate incoming rtl of
6695 implicit arguments, and recurse on VALUE_EXPRs.
6696 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
6697 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
6698
689f2c82
AO
66992011-01-19 Alexandre Oliva <aoliva@redhat.com>
6700
6701 * c-parser.c (c_parser_for_statement): Initialize
6702 collection_expression.
6703
03029de4
JM
67042011-01-19 Joseph Myers <joseph@codesourcery.com>
6705
6706 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
6707
3e03217e
JM
67082011-01-19 Joseph Myers <joseph@codesourcery.com>
6709
6710 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
6711 (LINK_SHLIB_SPEC): Don't use %(link_path).
6712 (SUBTARGET_EXTRA_SPECS): Remove link_path.
6713
5bbe9b3f
JM
67142011-01-19 Joseph Myers <joseph@codesourcery.com>
6715
6716 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
6717 (NO_SHARED_LIB_SUPPORT): Remove.
6718 (LINK_SHLIB_SPEC): Remove one conditional definition.
6719
368e0b39
JM
67202011-01-19 Joseph Myers <joseph@codesourcery.com>
6721
6722 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
6723 %{call_shared}.
6724 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
6725 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
6726 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
6727 %{call_shared} and conditionals on these options not being passed.
6728 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
6729 %{call_shared}.
6730
ed7656f6
JJ
67312011-01-19 Jakub Jelinek <jakub@redhat.com>
6732
68457901
JJ
6733 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
6734 simplify.
6735
ed7656f6
JJ
6736 * ipa-split.c: Spelling fixes.
6737
e0d1958f
RH
67382011-01-19 Richard Henderson <rth@redhat.com>
6739
6740 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
6741 (*mulsi3): Likewise.
6742
27098b6b
RH
6743 * longlong.h [__mn10300__] (count_leading_zeros): New.
6744 [__mn10300__] (umul_ppmm, smul_ppmm): New.
6745 [__mn10300__] (add_ssaaaa, subddmmss): New.
6746 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
6747 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
6748
d6be7c36
UW
67492011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6750
6751 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
6752
b1efde2a
RH
67532011-01-19 Richard Henderson <rth@redhat.com>
6754
44217823
RH
6755 * config/mn10300/mn10300.md (addsi3_flags): New.
6756 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
6757 (subsi3_flags, subc_internal, subdi3): New.
6758 (subdi3_internal, *subdi3_degenerate): New.
6759 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
6760
37a185d7
RH
6761 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
6762 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
6763 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
6764 * config/mn10300/mn10300-protos.h: Update.
6765 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
6766 (return_ret): Likewise. Rename from return_internal_regs.
6767 (return_internal): Remove.
6768
040c5757
RH
6769 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
6770 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
6771 (mn10300_legitimate_constant_p): Likewise.
6772 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
6773 (mn10300_frame_size): New.
6774 (mn10300_expand_prologue): Use it.
6775 (mn10300_expand_epilogue): Likewise.
6776 (mn10300_initial_offset): Likewise.
6777 * config/mn10300/mn10300-protos.h: Update.
6778 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
6779 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
6780 (prologue, epilogue, return_internal): Tidy output code.
6781 (mn10300_store_multiple_operation, return): Likewise.
6782 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
6783 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
6784 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
6785 (load_pic, am33_load_pic): New.
6786 (mn10300_load_pic0, mn10300_load_pic1): New.
6787
bad41521
RH
6788 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
6789 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
6790 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
6791 (cc_flags_for_mode, cc_flags_for_code): New.
6792 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
6793 overflow flag is not valid. Validate that the flags we need
6794 for the comparison are valid.
6795 (mn10300_output_cmp): Remove.
6796 (mn10300_output_add): New.
6797 (mn10300_select_cc_mode): Use cc_flags_for_code.
6798 (mn10300_split_cbranch): New.
6799 (mn10300_match_ccmode): New.
6800 (mn10300_split_and_operand_count): New.
6801 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
6802 to the function.
6803 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
6804 (addsi3): ... here. Use mn10300_output_add.
6805 (*addsi3_flags): New.
6806 (*am33_subsi3, *mn10300_subsi3): Merge...
6807 (subsi3): ... here. Use attribute isa.
6808 (*subsi3_flags): New.
6809 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
6810 when possible.
6811 (*am33_andsi3, *mn10300_andsi3): Merge...
6812 (andsi3): ... here.
6813 (*andsi3_flags): New.
6814 (andsi3 splitters): New.
6815 (*am33_iorsi3, *mn10300_iorsi3): Merge...
6816 (iorsi3): ... here.
6817 (*iorsi3_flags): New.
6818 (*am33_xorsi3, *mn10300_xorsi3): Merge...
6819 (xorsi3): ... here.
6820 (*xorsi3_flags): New.
6821 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
6822 (one_cmplsi2): ... here.
6823 (*one_cmplsi2_flags): New.
6824 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
6825 instead of "dax" in constraints. Use mn10300_split_cbranch.
6826 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
6827 use matching constraints to eliminate a self-comparison.
6828 (*integer_conditional_branch): Rename from integer_conditional_branch.
6829 Use int_mode_flags to match CC_REG.
6830 (*cbranchsi4_btst, *btstsi): New.
6831 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
6832 mn10300_split_cbranch.
6833 (*am33_cmpsf): Rename from am33_cmpsf.
6834 (*float_conditional_branch): Rename from float_conditional_branch.
6835 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
6836 (zero_extendqisi2): ... here.
6837 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
6838 (zero_extendhisi2): ... here.
6839 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
6840 (extendqisi2): ... here.
6841 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
6842 (extendhisi2): ... here.
6843 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
6844 (ashlsi3): ... here.
6845 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
6846 (lshrsi3): ... here.
6847 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
6848 (ashrsi3): ... here.
6849 (consecutive add peephole): Remove.
6850 * config/mn10300/predicates.md (label_ref_operand): New.
6851 (int_mode_flags): New.
6852 (CCZN_comparison_operator): New.
6853
9efb4993
RH
6854 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
6855 (throughput_42_latency_43): New reservation.
6856 (mulsidi3, umulsidi3): New expanders.
6857 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
6858 the MDR register to allocation; separately allocate the low and
6859 high parts of the DImode result.
6860 (umulsidi3_internal): Similarly.
6861 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
6862 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
6863 (udivsi3, umodsi3): Remove.
6864 (udivmodsi4, divmodsi4): New expanders.
6865 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
6866 (*divmodsi4): Simiarly.
6867 (ext_internal): New.
6868
c25a21f5
RH
6869 * config/mn10300/constraints.md ("z"): New constraint.
6870 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
6871 (FIXED_REGISTERS): Don't fix MDR.
6872 (CALL_USED_REGSITERS): Reformat nicely.
6873 (REG_ALLOC_ORDER): Add MDR.
6874 (enum regclass): Add MDR_REGS.
6875 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
6876 (IRA_COVER_CLASSES): Add MDR_REGS.
6877 (REGNO_REG_CLASS): Handle MDR_REG.
6878 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
6879 (mn10300_register_move_cost): Likewise.
6880 * config/mn10300/mn10300.md (MDR_REG): New.
6881 (*movsi_internal): Handle moves to/from MDR_REGS.
6882
36846b26
RH
6883 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
6884 POST_MODIFY.
6885 (mn10300_secondary_reload): Tidy combination reload classes.
6886 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
6887 addresses for AM33. Allow symbolic offsets for reg+imm.
6888 (mn10300_regno_in_class_p): New.
6889 (mn10300_legitimize_reload_address): New.
6890 * config/mn10300/mn10300.h (enum reg_class): Remove
6891 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
6892 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
6893 SP_OR_GENERAL_REGS.
6894 (REG_CLASS_NAMES): Update to match.
6895 (REG_CLASS_CONTENTS): Likewise.
6896 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
6897 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
6898 (REGNO_IN_RANGE_P): Remove.
6899 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
6900 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
6901 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
6902 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
6903 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
6904 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
6905 (REGNO_GENERAL_P): New.
6906 (HAVE_POST_MODIFY_DISP): New.
6907 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
6908 (LEGITIMIZE_RELOAD_ADDRESS): New.
6909 * config/mn10300/mn10300-protos.h: Update.
6910
8b119bb6
RH
6911 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
6912 DATA_REGS for AM33 stack-pointer destination.
6913 (mn10300_preferred_output_reload_class): Likewise.
6914 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
6915 into a form appropriate for ...
6916 (TARGET_SECONDARY_RELOAD): New.
6917 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
6918 * config/mn10300/mn10300-protos.h: Update.
6919 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
6920 reload_insi; use the "A" constraint for the scratch; handle AM33
6921 moves of sp to non-address registers.
6922
b1efde2a
RH
6923 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
6924 (*movqi_internal): ... here.
6925 (*am33_movhi, *mn10300_movhi): Merge into...
6926 (*movhi_internal): ... here.
6927 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
6928 as the source/destination of moves from/to SP.
6929 (movsf): Only allow for AM33-2.
1c3ba85b 6930 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
6931 any integer constant constraint. Only allow for AM33-2. Tidy
6932 all of the alternative outputs.
6933 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
6934 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
6935 for MN103.
6936 (udivsi3, umodsi3): New patterns for MN103 only.
6937
b899fd78
JR
69382011-01-19 Joern Rennecke <amylaar@spamcop.net>
6939
6940 * doc/tm.texi.in: Spell out that a lack of register class unions
6941 can lead to ICEs.
6942 * doc/tm.texi: Regenerate.
6943
afaaa67d
JJ
69442011-01-19 Jakub Jelinek <jakub@redhat.com>
6945
2e0642cd
JJ
6946 PR rtl-optimization/47337
6947 * dce.c (check_argument_store): New function.
6948 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
6949
afaaa67d
JJ
6950 PR tree-optimization/47290
6951 * tree-eh.c (infinite_empty_loop_p): New function.
6952 (cleanup_empty_eh): Use it.
6953
d2cd871f
SE
69542011-01-18 Steve Ellcey <sje@cup.hp.com>
6955
6956 PR target/46997
6957 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
6958 (a64_expand_widen_sum): Ditto.
6959 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
6960 (vec_extract_evenodd_help): Ditto.
6961 (vec_extract_evenv4hi): Ditto.
6962 (vec_extract_oddv4hi): Ditto.
6963 (vec_extract_evenv2si): Ditto.
6964 (vec_extract_oddv2si): Ditto.
6965 (vec_extract_evenv2sf): Ditto.
6966 (vec_extract_oddv2sf): Ditto.
6967 (vec_pack_trunc_v4hi: Ditto.
6968 (vec_pack_trunc_v2si): Ditto.
6969 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
6970 (vec_interleave_highv8qi): Ditto.
6971 (mix1_r): Ditto.
6972 (vec_extract_oddv8qi): Ditto.
6973 (vec_interleave_lowv4hi): Ditto.
6974 (vec_interleave_highv4hi): Ditto.
6975 (vec_interleave_lowv2si): Ditto.
6976 (vec_interleave_highv2si): Ditto.
6977
41a1208a
JDA
69782011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6979
6980 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
6981 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
6982 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
6983 (pa_c_mode_for_suffix): New.
6984 (TARGET_EXPAND_BUILTIN): Define.
6985 (TARGET_C_MODE_FOR_SUFFIX): Define.
6986 (pa_builtins): Define.
6987 (pa_init_builtins): Register __float128 type and init new support
6988 builtins.
6989 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
6990 * config/pa/quadlib.c (_U_Qfcopysign): New.
6991
1ecad98e
EB
69922011-01-18 Eric Botcazou <ebotcazou@adacore.com>
6993
6994 PR middle-end/46894
6995 * explow.c (allocate_dynamic_stack_space): Do not assume more than
6996 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
6997 are defined.
6998
d4f2460a
UW
69992011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7000
7001 PR tree-optimization/47179
7002 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
7003 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
7004
4994da65
RG
70052011-01-18 Richard Guenther <rguenther@suse.de>
7006
7007 PR rtl-optimization/47216
7008 * emit-rtl.c: Include tree-flow.h.
7009 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
7010 of replicating it with different semantics.
7011 * Makefile.in (emit-rtl.o): Adjust.
7012
1eb458d1
RR
70132011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7014
38be4072 7015 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 7016 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 7017
e7ef91dc
JJ
70182011-01-18 Jakub Jelinek <jakub@redhat.com>
7019
7020 PR rtl-optimization/47299
7021 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 7022 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
7023 * expmed.c (expand_widening_mult): Don't try to optimize constant
7024 multiplication if op0 has VOIDmode. Convert op1 constant to mode
7025 before using it.
7026
535b7874
RW
70272011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7028
7029 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
7030 spacing after 'e.g.', typos, comma, hyphenation.
7031
27bf36f3
RH
70322011-01-17 Richard Henderson <rth@redhat.com>
7033
8a5b5449
RH
7034 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
7035 (rx_restricted_mem_operand): New.
7036 (rx_shift_operand): Use register_operand.
7037 (rx_source_operand, rx_compare_operand): Likewise.
7038 * config/rx/rx.md (addsi3_flags): New expander.
7039 (adddi3): Rewrite as expander.
7040 (adc_internal, *adc_flags, adddi3_internal): New patterns.
7041 (subsi3_flags): New expander.
7042 (subdi3): Rewrite as expander.
7043 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
7044
784f69be
RH
7045 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
7046 (rx_init_builtins): Remove sat builtin.
7047 (rx_expand_builtin): Likewise.
7048 * config/rx/rx.md (ssaddsi3): New.
7049 (*sat): Rename from sat. Represent the CC_REG input.
7050
f033541c
RH
7051 * config/rx/predicates.md (rshift_operator): New.
7052 * config/rx/rx.c (rx_expand_insv): Remove.
7053 * config/rx/rx-protos.h: Update.
7054 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
7055 operand to the canonical position.
7056 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
7057 (*bitclr, *bitclr_in_memory): Similarly.
7058 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
7059 (insv): Retain the zero_extract in the expansion.
7060
34fee389
RH
7061 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
7062 (bswaphi2, bitinvert, revw): Likewise.
7063
265c835f
RH
7064 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
7065 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
7066 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
7067 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
7068 (bitset, bitset_in_memory): Likewise.
7069 (bitinvert, bitinvert_in_memory): Likewise.
7070 (bitclr, bitclr_in_memory): Likewise.
7071 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
7072 (rx_strend, rx_cmpstrn): Likewise.
7073 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
7074 (bitop peep2 patterns): Remove.
7075
b4d83be3
RH
7076 * config/rx/rx.c (rx_match_ccmode): New.
7077 * config/rx/rx-protos.h: Update.
7078 * config/rx/rx.md (abssi2): Clobber, don't set flags.
7079 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
7080 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
7081 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
7082 (fix_truncsfsi2, floatsisf2): Likewise.
7083 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
7084 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
7085 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
7086 (*subsi3_flags, *xorsi3_flags): New.
7087
d0acb939
RH
7088 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
7089
c06fc3d9
RH
7090 * config/rx/rx.c (rx_print_operand): Remove workaround for
7091 unsplit comparison operations.
7092
2882702b
RH
7093 * config/rx/rx.md (movsicc): Split after reload.
7094 (*movsicc): Merge *movsieq and *movsine via match_operator.
7095 (*stcc): New pattern.
7096
6f7310f2
RH
7097 * config/rx/rx.c (rx_float_compare_mode): Remove.
7098 * config/rx/rx.h (rx_float_compare_mode): Remove.
7099 * config/rx/rx.md (cstoresi4): Split after reload.
7100 (*sccc): New pattern.
7101
e963cb1a
RH
7102 * config/rx/predicates.md (label_ref_operand): New.
7103 (rx_z_comparison_operator): New.
7104 (rx_zs_comparison_operator): New.
7105 (rx_fp_comparison_operator): New.
7106 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
7107 Validate that the flags are set properly for the comparison.
7108 (rx_gen_cond_branch_template): Remove.
7109 (rx_cc_modes_compatible): Remove.
7110 (mode_from_flags): New.
7111 (flags_from_code): Rename from flags_needed_for_conditional.
7112 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
7113 (rx_select_cc_mode): Likewise.
7114 (rx_split_fp_compare): New.
7115 (rx_split_cbranch): New.
7116 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
7117 (*cbranchsi4): Use match_operator and rx_split_cbranch.
7118 (*cbranchsf4): Similarly.
7119 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
7120 match_operator and rx_split_cbranch.
7121 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
7122 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
7123 (*cmpsi): Rename from cmpsi.
7124 (*tstsi): Rename from tstsi.
7125 (*cmpsf): Rename from cmpsf; use CC_Fmode.
7126 (*conditional_branch): Rename from conditional_branch.
7127 (*reveresed_conditional_branch): Remove.
7128 (b<code>): Remove expander.
7129 * config/rx/rx-protos.h: Update.
7130
af530bb4
RH
7131 * config/rx/rx.c (rx_compare_redundant): Remove.
7132 * config/rx/rx.md (cmpsi): Don't use it.
7133 * config/rx/rx-protos.h: Update.
7134
27bf36f3
RH
7135 * config/rx/rx-modes.def (CC_F): New mode.
7136 * config/rx/rx.c (rx_select_cc_mode): New.
7137 * config/rx/rx.h (SELECT_CC_MODE): Use it.
7138 * config/rx/rx-protos.h: Update.
7139
d7fde127
RH
71402011-01-17 Richard Henderson <rth@redhat.com>
7141
7142 * except.c (dump_eh_tree): Fix stray ; after for statement.
7143
6ff38230
RG
71442011-01-17 Richard Guenther <rguenther@suse.de>
7145
7146 PR tree-optimization/47313
7147 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
7148 handling before copying the body. Properly deal with
7149 by-reference result in SSA form.
7150
114ce554
ILT
71512011-01-17 Ian Lance Taylor <iant@google.com>
7152
bf5cd92b 7153 PR target/47219
114ce554
ILT
7154 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
7155 (struct_value_alias_set): Don't define.
7156 (sparc_option_override): Don't set sparc_sr_alias_set and
7157 struct_value_alias_set.
7158 (save_or_restore_regs): Use gen_frame_mem rather than calling
7159 set_mem_alias_set.
7160 (sparc_struct_value_rtx): Likewise.
7161
98c6d93c
L
71622011-01-17 H.J. Lu <hongjiu.lu@intel.com>
7163
7164 PR target/47318
7a81008b 7165 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
7166 (_mm_maskstore_pd): Likewise.
7167 (_mm_maskload_ps): Likewise.
7168 (_mm_maskstore_ps): Likewise.
7169 (_mm256_maskload_pd): Change mask to __m256i.
7170 (_mm256_maskstore_pd): Likewise.
7171 (_mm256_maskload_ps): Likewise.
7172 (_mm256_maskstore_ps): Likewise.
7173
7174 * config/i386/i386-builtin-types.def: Updated.
7175 (ix86_expand_special_args_builtin): Likewise.
7176
7177 * config/i386/i386.c (bdesc_special_args): Update
7178 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
7179 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
7180 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
7181 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
7182
7183 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
7184 Use <avxpermvecmode> on mask register.
7185 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
7186
b9361af2 71872011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
7188 Michael Haubenwallner <michael.haubenwallner@salomon.at>
7189 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
7190
7191 PR target/46655
7192 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
7193 if <= USHRT_MAX in 32-bit mode.
7194
b7ae9eb5
RW
71952011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7196
7197 * doc/install.texi (Configuration, Specific): Wrap long
7198 lines in examples. Allow line wrapping in long options
7199 and URLs where beneficial for PDF output.
7200
4377fad9
RS
72012011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
7202
7203 * config/mips/mips.c (mips_classify_symbol): Don't return
7204 SYMBOL_PC_RELATIVE for nonlocal labels.
7205
55959ffa 72062011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 7207
55959ffa
EB
7208 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
7209
72102011-01-15 Jan Hubicka <jh@suse.cz>
7211
7212 PR tree-optimization/47276
be46831f
JH
7213 * ipa.c (function_and_variable_visibility): Do not try to mark alias
7214 declarations as needed.
7215
05842ff5
MJ
72162011-01-15 Martin Jambor <mjambor@suse.cz>
7217
7218 * common.opt (fdevirtualize): New flag.
7219 * doc/invoke.texi (Option Summary): Document it.
7220 * opts.c (default_options_table): Add devirtualize flag.
7221 * ipa-prop.c (detect_type_change): Return immediately if
7222 devirtualize flag is not set.
7223 (detect_type_change_ssa): Likewise.
7224 (compute_known_type_jump_func): Likewise.
7225 (ipa_analyze_virtual_call_uses): Likewise.
7226
f65cf2b7
MJ
72272011-01-14 Martin Jambor <mjambor@suse.cz>
7228
7229 PR tree-optimization/45934
7230 PR tree-optimization/46302
7231 * ipa-prop.c (type_change_info): New type.
7232 (stmt_may_be_vtbl_ptr_store): New function.
7233 (check_stmt_for_type_change): Likewise.
7234 (detect_type_change): Likewise.
7235 (detect_type_change_ssa): Likewise.
7236 (compute_complex_assign_jump_func): Check for dynamic type change.
7237 (compute_complex_ancestor_jump_func): Likewise.
7238 (compute_known_type_jump_func): Likewise.
7239 (compute_scalar_jump_functions): Likewise.
7240 (ipa_analyze_virtual_call_uses): Likewise.
7241 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
7242
eb5bb0fd
JM
72432011-01-14 Joseph Myers <joseph@codesourcery.com>
7244
7245 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
7246 * config/i386/i386.opt (msse5): New Alias.
7247
f2060fbe
JM
72482011-01-14 Joseph Myers <joseph@codesourcery.com>
7249
7250 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7251 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7252 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7253 * config/sparc/sparc.h (CC1_SPEC): Likewise.
7254
3a7b4385
JM
72552011-01-14 Joseph Myers <joseph@codesourcery.com>
7256
7257 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
7258 -mcpu options.
7259 * config/sparc/linux64.h (CC1_SPEC): Likewise.
7260 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
7261 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
7262 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
7263 Likewise.
7264 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
7265
a7b778f8
JM
72662011-01-14 Joseph Myers <joseph@codesourcery.com>
7267
38be4072 7268 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 7269
a7edae0a
MS
72702011-01-14 Mike Stump <mikestump@comcast.net>
7271
7272 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
7273 * config/fr30/fr30.md: Likweise
7274 (movsi_push): Likewise.
7275 (movsi_pop): Likewise.
7276 (enter_func): Likewise.
7277 * config/moxie/moxie.md (movsi_push): Likewise.
7278 (movsi_pop): Likewise.
7279
cbabf03f
JM
72802011-01-14 Joseph Myers <joseph@codesourcery.com>
7281
7282 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
7283 %{no_archive} %{exact_version}.
7284 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
7285 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
7286 %{no_archive} %{exact_version}.
7287 * config/mips/openbsd.h (LINK_SPEC): Likewise.
7288 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
7289 * config/mips/vxworks.h: Likewise.
7290
438da41a
JM
72912011-01-14 Joseph Myers <joseph@codesourcery.com>
7292
38be4072 7293 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 7294
da290a42
JM
72952011-01-14 Joseph Myers <joseph@codesourcery.com>
7296
7297 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
7298 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
7299
8989d00e
JM
73002011-01-14 Joseph Myers <joseph@codesourcery.com>
7301
7302 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
7303 -nodefaultlib.
7304
a3010a69
JM
73052011-01-14 Joseph Myers <joseph@codesourcery.com>
7306
7307 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
7308 for mcpu not cpu.
7309 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
7310 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
7311 not cpu.
7312 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
7313 Don't handle -shlib.
7314
e7f2f537
JM
73152011-01-14 Joseph Myers <joseph@codesourcery.com>
7316
7317 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
7318 (CC1_SPEC): Don't handle -profile.
7319
34830bfd
JM
73202011-01-14 Joseph Myers <joseph@codesourcery.com>
7321
7322 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
7323 * config/mips/mips.h (CC1_SPEC): Likewise.
7324
b2d36e74
JM
73252011-01-14 Joseph Myers <joseph@codesourcery.com>
7326
7327 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
7328 * config/mips/mips.h (CC1_SPEC): Likewise.
7329
dabadc52
JM
73302011-01-14 Joseph Myers <joseph@codesourcery.com>
7331
7332 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
7333 * config/m32r/linux.h (LINK_SPEC): Likewise.
7334 * config/mips/linux.h (LINK_SPEC): Likewise.
7335 * config/mips/linux64.h (LINK_SPEC): Likewise.
7336 * config/sparc/linux.h (LINK_SPEC): Likewise.
7337 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7338 LINK_SPEC): Likewise.
7339 * config/xtensa/linux.h (LINK_SPEC): Likewise.
7340
43ee6785
JM
73412011-01-14 Joseph Myers <joseph@codesourcery.com>
7342
7343 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
7344 %{version:-v}.
7345 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
7346
45e79dfd
JM
73472011-01-14 Joseph Myers <joseph@codesourcery.com>
7348
7349 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
7350 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
7351
37e9e71d
JM
73522011-01-14 Joseph Myers <joseph@codesourcery.com>
7353
7354 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
7355
bb127cd8
RO
73562011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7357
7358 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
7359 supports -Bstatic/-Bdynamic.
7360 * configure: Regenerate.
7361
89a012ea 73622011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 7363 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
7364
7365 PR target/46037
7366 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
7367 when checking debug_info_level. Test write_symbols instead of
7368 debug_hooks->var_location when setting flag_var_tracking_uninit.
7369
7352c013
RG
73702011-01-14 Richard Guenther <rguenther@suse.de>
7371
7372 PR tree-optimization/47179
7373 * target.def (ref_may_alias_errno): New target hook.
7374 * targhooks.h (default_ref_may_alias_errno): Declare.
7375 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
7376 (default_ref_may_alias_errno): New function.
7377 * target.h (struct ao_ref_s): Declare.
7378 * tree-ssa-alias.c: Include target.h.
7379 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
7380 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
7381 (targhooks.o): Likewise.
7382 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
7383 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
7384
9a6c9288
RG
73852011-01-14 Richard Guenther <rguenther@suse.de>
7386
7387 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
7388
0fdb0d27
RG
73892011-01-14 Richard Guenther <rguenther@suse.de>
7390
7391 PR tree-optimization/47280
7392 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
7393 return CFG changes.
7394 (tree_ssa_forward_propagate_single_use_vars): Deal with
7395 CFG changes from associate_plusminus.
7396
8f66db3b
RG
73972011-01-14 Richard Guenther <rguenther@suse.de>
7398
7399 PR middle-end/47281
7400 Revert
7401 2011-01-11 Richard Guenther <rguenther@suse.de>
7402
280d9630
EB
7403 PR tree-optimization/46076
7404 * tree-ssa.c (useless_type_conversion_p): Conversions from
7405 unprototyped to empty argument list function types are useless.
8f66db3b 7406
6c0c92e6
RG
74072011-01-14 Richard Guenther <rguenther@suse.de>
7408
7409 PR tree-optimization/47286
280d9630 7410 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 7411
db09f943
MJ
74122011-01-14 Martin Jambor <mjambor@suse.cz>
7413
7414 PR middle-end/46823
7415 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
7416
dde8a3a4
AS
74172011-01-13 Anatoly Sokolov <aesok@post.ru>
7418
7419 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
7420 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7421 * config/xtensa/xtensa.c (xtensa_libcall_value,
7422 xtensa_function_value_regno_p): New functions.
7423 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
7424
a2b63a20
KT
74252011-01-13 Kai Tietz <kai.tietz@onevision.com>
7426
7427 PR c++/47213
7428 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
7429 PE specific hook.
7430 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
7431 New function prototype.
7432 * config/i386/winnt.c (i386_pe_assemble_visibility):
7433 Warn only if attribute was specified by user.
7434
b41f0b34
MM
74352011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
7436
7437 PR target/47251
7438 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
7439 floating point.
7440 (floatunsdidf2_fcfidu): Ditto.
7441
3f3c098d
AK
74422011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7443
7444 * config/s390/s390.c (print_operand_address): Replace 'error' with
7445 'output_operand_lossage'.
7446 (print_operand): Likewise.
7447
29fa95ed
JL
74482011-01-13 Jeff Law <law@redhat.com>
7449
280d9630 7450 PR rtl-optimization/39077
29fa95ed
JL
7451 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
7452 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
7453 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
7454 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
7455 * gcse.c (prune_insertions_deletions): New function.
7456 (compute_pre_data): Use it.
7457
71d12276
DS
74582011-01-13 Dodji Seketeli <dodji@redhat.com>
7459
7460 PR debug/PR46973
7461 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
7462 static function.
61052244 7463 (prune_unused_types_mark): Use it.
71d12276 7464
9b0f04e7
AB
74652011-01-13 Andrey Belevantsev <abel@ispras.ru>
7466
7467 PR rtl-optimization/45352
1c3ba85b 7468 * sel-sched.c: Update copyright years.
9b0f04e7 7469 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 7470 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 7471
d6a3e264
RH
74722011-01-12 Richard Henderson <rth@redhat.com>
7473
a49b692a
RH
7474 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
7475 (TARGET_MD_ASM_CLOBBERS): New.
7476
126b1483
RH
7477 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
7478 (TARGET_DELEGITIMIZE_ADDRESS): New.
7479
f3d9d2e0
RH
7480 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
7481 (clzsi2, *bsch): New patterns.
7482
d84760c9
RH
7483 * config/mn10300/mn10300.md (INT): New mode iterator.
7484 (*mov<INT>_clr): New pattern, and peep2 to generate it.
7485
ec815d65
RH
7486 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
7487 flag_split_wide_types.
7488
d6a3e264
RH
7489 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
7490 (mn10300_trampoline_init): Rewrite without a template, an immediate
7491 load and a direct branch.
7492 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
7493
0f8ab434
AS
74942011-01-12 Anatoly Sokolov <aesok@post.ru>
7495
7496 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7497 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
7498 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
7499 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7500
d8a24b65
KT
75012011-01-12 Kai Tietz <kai.tietz@onevision.com>
7502
7503 PR debug/47209
7504 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
7505 of type.
7506
56e22cab
JH
75072011-01-12 Jan Hubicka <jh@suse.cz>
7508
7509 PR driver/47244
7510 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
7511 (PLUGIN_COND_CLOSE): New macro.
7512 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
7513
4b18b3c2
RG
75142011-01-12 Richard Guenther <rguenther@suse.de>
7515
7516 PR lto/47259
7517 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
7518 register variables in a MEM_REF.
7519
8e38461c
JM
75202011-01-12 Joseph Myers <joseph@codesourcery.com>
7521
7522 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
7523 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
7524 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
7525 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
7526 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
7527 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
7528 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
7529 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
7530 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
7531 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
7532 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
7533 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
7534 * config/gnu-user.h: New. Copied from linux.h.
7535 (LINUX_TARGET_STARTFILE_SPEC): Rename to
7536 GNU_USER_TARGET_STARTFILE_SPEC.
7537 (LINUX_TARGET_ENDFILE_SPEC): Rename to
7538 GNU_USER_TARGET_ENDFILE_SPEC.
7539 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
7540 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
7541 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
7542 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
7543 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
7544 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
7545 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
7546 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
7547 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
7548 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
7549 * config/arm/linux-eabi.h (CC1_SPEC): Use
7550 GNU_USER_TARGET_CC1_SPEC.
7551 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
7552 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
7553 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
7554 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
7555 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
7556 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
7557 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
7558 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
7559
a570fc16
RG
75602011-01-12 Richard Guenther <rguenther@suse.de>
7561
7562 PR other/46946
7563 * doc/invoke.texi (ffast-math): Document it is turned on
7564 with -Ofast.
7565
b0223c3e
JH
75662011-01-12 Jan Hubicka <jh@suse.cz>
7567
7568 PR tree-optimization/47233
ca1e00b3
EB
7569 * opts.c (common_handle_option): Disable ipa-reference with profile
7570 feedback.
b0223c3e 7571
1c3ba85b 75722011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
7573
7574 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
7575 error message.
7576
d853ee42
NP
75772011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
7578
7579 * c-parser.c (c_lex_one_token): Updated and reindented some
7580 comments. No changes in code.
7581
4053a5a0
ILT
75822011-01-11 Ian Lance Taylor <iant@google.com>
7583
7584 * godump.c (go_output_var): Don't output the variable if there is
7585 already a type with the same name.
7586
fa3e04d2
ILT
75872011-01-11 Ian Lance Taylor <iant@google.com>
7588
7589 * godump.c (go_format_type): Don't generate float80.
7590
885fe07c
RH
75912011-01-11 Richard Henderson <rth@redhat.com>
7592
72d6e3c5
RH
7593 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
7594 declaration. Rewrite for both speed and size.
7595 (mn10300_address_cost_1): Remove.
7596 (mn10300_register_move_cost): New.
7597 (mn10300_memory_move_cost): New.
7598 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
7599 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
7600 extensions, shifts, BSWAP, CLZ.
7601 (mn10300_wide_const_load_uses_clr): Remove.
7602 (TARGET_REGISTER_MOVE_COST): New.
7603 (TARGET_MEMORY_MOVE_COST): New.
7604 * config/mn10300/mn10300-protos.h: Update.
7605 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
7606
df37c023
RH
7607 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
7608 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
7609 * config/mn10300/mn10300-protos.h: Update.
7610 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
7611 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
7612 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
7613 (*test_int_bitfield, *test_byte_bitfield): Remove.
7614 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 7615 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 7616
85a337b5
RH
7617 * config/mn10300/constraints.md ("c"): Rename from "A".
7618 ("A", "D"): New constraint letters.
7619 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
7620 (fmssf4, fnmasf4, fnmssf4): Likewise.
7621
a5c727e3
RH
7622 * config/mn10300/mn10300.md (isa): New attribute.
7623 (enabled): New attribute.
7624
0d9e23f4
RH
7625 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
7626 (abssf2, negsf2): Define only for hardware fp.
7627 (sqrtsf2): Reformat.
7628 (addsf3, subsf3, mulsf3): Merge expander and insn.
7629
c157b3f0
RH
7630 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
7631 (DEBUGGER_AUTO_OFFSET): Remove.
7632 (DEBUGGER_ARG_OFFSET): Remove.
7633
cc909bba
RH
7634 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
7635 Emit register stores with the same offsets as the hardware.
7636 (mn10300_store_multiple_operation): Don't check that the register
7637 save offsets are monotonic.
7638 * config/mn10300/mn10300-protos.h: Update.
7639
e3b5c2f3
RH
7640 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
7641
885fe07c
RH
7642 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
7643 in terms of the value on the stack, not the MDR register.
7644
6e701822
JH
76452011-01-11 Jan Hubicka <jh@suse.cz>
7646
7647 PR lto/45721
7648 PR lto/45375
7649 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
7650 (symbol_alias_set_destroy, symbol_alias_set_contains,
7651 propagate_aliases_backward): Declare.
7652 * lto-streamer-out.c (struct sets): New sturcture.
7653 (trivally_defined_alias): New function.
7654 (output_alias_pair_p): Rewrite.
7655 (output_unreferenced_globals): Fix output of alias pairs.
7656 (produce_symtab): Likewise.
7657 * ipa.c (function_and_variable_visibility): Set weak alias destination
7658 as needed in lto.
7659 * varasm.c (symbol_alias_set_t): Remove.
7660 (symbol_alias_set_destroy): Export.
7661 (propagate_aliases_forward, propagate_aliases_backward): New functions
7662 based on ...
7663 (compute_visible_aliases): ... this one; remove.
7664 (trivially_visible_alias): New
7665 (trivially_defined_alias): New.
7666 (remove_unreachable_alias_pairs): Rewrite.
7667 (finish_aliases_1): Reorganize code checking if alias is defined.
7668 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
7669 in LTO mode.
7670
1b248907
RG
76712011-01-11 Richard Guenther <rguenther@suse.de>
7672
7673 PR tree-optimization/46076
7674 * tree-ssa.c (useless_type_conversion_p): Conversions from
7675 unprototyped to empty argument list function types are useless.
7676
b1923f0a
RG
76772011-01-11 Richard Guenther <rguenther@suse.de>
7678
7679 PR middle-end/45235
7680 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
7681 volatile MEMs as MEM_READONLY_P.
7682
e98965af
RG
76832011-01-11 Richard Guenther <rguenther@suse.de>
7684
7685 PR tree-optimization/47239
7686 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
7687
9f9ca914
JL
76882011-01-11 Jeff Law <law@redhat.com>
7689
1ee3ea05 7690 PR tree-optimization/47086
9f9ca914
JL
7691 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
7692 IVs from statements that might throw.
7693
345fdcb7
JH
76942011-01-10 Jan Hubicka <jh@suse.cz>
7695
7696 PR lto/45375
7697 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
7698
c459c97b
JH
76992011-01-10 Jan Hubicka <jh@suse.cz>
7700
7701 PR lto/45375
7702 * profile.c (read_profile_edge_counts): Ignore profile inconistency
7703 when correcting profile.
7704
06c9eb51
JH
77052011-01-10 Jan Hubicka <jh@suse.cz>
7706
7707 PR lto/46083
7708 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
7709 DECL_FINI_PRIORITY.
7710 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
7711 Restore DECL_FINI_PRIORITY.
7712
ae9fd815
RW
77132011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7714
7715 * doc/gimple.texi: Fix quoting of multi-word return values in
7716 @deftypefn statements. Ensure presence of return value. Wrap
7717 overlong @deftypefn lines.
7718 (is_gimple_operand, is_gimple_min_invariant_address): Remove
7719 descriptions of removed functions.
7720 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
7721 of multi-word return value in @deftypefn statement.
7722
0ecb4a7c
RW
77232011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7724
7725 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
7726 (Conditional Expressions, Logical Operators)
7727 (Statement and operand traversals): Do not indent smallexample
7728 code. Fix duplicate function argument in example.
7729
2e5e346d
JL
77302011-01-10 Jeff Law <law@redhat.com>
7731
1ee3ea05 7732 PR tree-optimization/47141
2e5e346d
JL
7733 * ipa-split.c (split_function): Handle case where we are
7734 returning a value and the return block has a virtual operand phi.
7735
cf9712cc
JH
77362011-01-10 Jan Hubicka <jh@suse.cz>
7737
1c3ba85b 7738 PR tree-optimization/47234
cf9712cc
JH
7739 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
7740 (pass_feedback_split_functions): Declare.
7741 * passes.c (init_optimization_passes): Add ipa-split as subpass of
7742 tree-profile.
7743 * ipa-split.c (gate_split_functions): Update comments; disable
7744 split-functions for profile_arc_flag and branch_probabilities.
7745 (gate_feedback_split_functions): New function.
7746 (execute_feedback_split_functions): New function.
7747 (pass_feedback_split_functions): New global var.
7748
94cd932c
L
77492011-01-10 H.J. Lu <hongjiu.lu@intel.com>
7750
7751 PR lto/46760
7752 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
7753 calling gimple_call_set_cannot_inline.
7754
fbbfcaf1
IS
77552011-01-10 Iain Sandoe <iains@gcc.gnu.org>
7756
7757 * config/darwin-sections.def: Remove unused section.
7758
d06865bf
DK
77592011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
7760
7761 PR c++/47218
7762 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
7763
96bbfbac
NP
77642011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
7765
7766 PR objc/47232
7767 * c-parser.c (c_parser_declaration_or_fndef): Improved
7768 error message.
7769
1ba6516f
KT
77702011-01-09 Kai Tietz <kai.tietz@onevision.com>
7771
7772 * config/i386/winnt.c (i386_pe_start_function): Make sure
7773 to switch back to function's section.
7774
0c5d770e
IS
77752011-01-09 Iain Sandoe <iains@gcc.gnu.org>
7776
7777 PR gcc/46902
7778 PR testsuite/46912
7779 * plugin.c: Move include of dlfcn.h from here...
7780 * system.h: ... to here.
7781
77822011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
7783
7784 * doc/cpp.texi (C++ Named Operators): Fix markup for header
7785 file name.
7786 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
7787 two extra empty pages in PDF output.
7788
046608a3
NP
77892011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
7790
7791 PR objc/47078
7792 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
7793 for error recovery purposes behave as if it was not specified so
7794 that the default type is usd.
7795
8cb114b9
JH
77962011-01-07 Jan Hubicka <jh@suse.cz>
7797
7798 PR tree-optmization/46469
7799 * ipa.c (function_and_variable_visibility): Clear needed flags on
7800 nodes with external decls; handle weakrefs merging correctly.
7801
b294a75e
JM
78022011-01-07 Joseph Myers <joseph@codesourcery.com>
7803
7804 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
7805 not false.
7806
96bdf9b4
JH
78072011-01-07 Jan Hubicka <jh@suse.cz>
7808
7809 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
7810 and no longer claim that gold is required for linker plugin.
7811 * configure: Regenerate.
7812 * gcc.c (PLUGIN_COND): New macro.
7813 (LINK_COMMAND_SPEC): Use it.
7814 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
7815 * config.in (HAVE_LTO_PLUGIN): New.
7816 * configure.ac (--with-lto-plugin): New parameter; autodetect
7817 HAVE_LTO_PLUGIN.
7818
17afc0fe
JH
78192011-01-07 Jan Hubicka <jh@suse.cz>
7820
7821 PR tree-optimization/46367
7822 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
7823 when we can update original.
7824 (cgraph_mark_inline_edge): Sanity check.
7825 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
7826
d4c48c0f
UW
78272011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7828
7829 * config/spu/spu.h (ASM_COMMENT_START): Define.
7830
96f5b137
L
78312011-01-07 H.J. Lu <hongjiu.lu@intel.com>
7832
7833 PR driver/42445
7834 * gcc.c (%>S): New.
7835 (SWITCH_KEEP_FOR_GCC): Likewise.
7836 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
7837 (do_spec_1): Handle "%>".
7838
7839 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
7840
c6a8f6de
JJ
78412011-01-07 Jakub Jelinek <jakub@redhat.com>
7842
c21bbd7a
JJ
7843 PR target/47201
7844 * config/i386/i386.c (ix86_delegitimize_address): If
7845 simplify_gen_subreg fails, return orig_x.
7846
c6a8f6de
JJ
7847 PR bootstrap/47187
7848 * value-prof.c (gimple_stringop_fixed_value): Handle
7849 lhs of the call properly.
7850
fe95fbf9
JH
78512011-01-07 Jan Hubicka <jh@suse.cz>
7852
7853 PR lto/45375
7854 * lto-opt.c (lto_reissue_options): Set flag_shlib.
7855
14d11d40
IS
78562011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7857
72e961c8
EB
7858 * target.def (function_switched_text_sections): New hook.
7859 * doc/tm.texi: Regenerated.
7860 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 7861 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
7862 (final_scan_insn): Call function_switched_text_sections when a
7863 mid-function section change occurs.
14d11d40 7864 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
7865 * config/darwin-protos.h (darwin_function_switched_text_sections):
7866 Likewise.
14d11d40 7867 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 7868 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 7869
0b764288
IS
78702011-01-07 Iain Sandoe <iains@gcc.gnu.org>
7871
7872 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
7873 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
7874 the secondary code fragment when outputting for DWARF == 2.
7875
2ac6bb04
AS
78762011-01-07 Anatoly Sokolov <aesok@post.ru>
7877
7878 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7879 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
7880 Remove.
7881 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
7882 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7883
9f82de11
EB
78842011-01-06 Eric Botcazou <ebotcazou@adacore.com>
7885
7886 PR debug/46704
280d9630
EB
7887 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
7888 when it is not empty.
9f82de11
EB
7889
78902011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 7891
1ed72abf 7892 Bobcat Enablement
14b52538 7893 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 7894 (case ${target}): Add btver1.
14b52538 7895 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 7896 -march=native recognize btver1 processors.
14b52538 7897 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 7898 btver1 def_and_undef
14b52538 7899 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
7900 btver1 cost table.
7901 (m_BTVER1): New definition.
7902 (m_AMD_MULTIPLE): Includes m_BTVER1.
7903 (initial_ix86_tune_features): Add btver1 tune.
7904 (processor_target_table): Add btver1 entry.
7905 (static const char *const cpu_names): Add btver1 entry.
7906 (software_prefetching_beneficial_p): Add btver1.
7907 (ix86_option_override_internal): Add btver1 instruction sets.
7908 (ix86_issue_rate): Add btver1.
7909 (ix86_adjust_cost): Add btver1.
14b52538 7910 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
7911 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
7912 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
7913 * config/i386/i386.md (define_attr "cpu"): Add btver1.
7914
e1a973d8
RO
79152011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7916
7917 PR target/43309
7918 * config/i386/i386.c (legitimize_tls_address)
7919 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
7920 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
7921 (tls_initial_exec_64_sun): New pattern.
7922
c73f67c5
GP
79232011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
7924
7925 * doc/invoke.texi (Overall Options): Improve wording and markup
7926 of the description of -wrapper.
7927
bc4c6f9c
JM
79282011-01-06 Joseph Myers <joseph@codesourcery.com>
7929
7930 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
7931 rdynamic, threads): New Driver options.
7932
adb75db0
RO
79332011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7934
7935 PR target/38118
7936 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
7937 if coming from .tdata.
7938 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
7939
402c1cb4
JH
79402011-01-06 Jan Hubicka <jh@suse.cz>
7941
7942 PR lto/47188
7943 * collect2.c (main): Do not enable LTOmode when plugin is active.
7944
a4da6485
RO
79452011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7946
7947 PR other/45915
7948 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
7949 --version output if supported.
7950 * configure: Regenerate.
7951
028dbdf4
JM
79522011-01-06 Joseph Myers <joseph@codesourcery.com>
7953
7954 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
7955 Driver options.
7956
dfe776dd
JJ
79572011-01-06 Jakub Jelinek <jakub@redhat.com>
7958
7959 PR c/47150
7960 * c-convert.c (convert): When converting a complex expression
7961 other than COMPLEX_EXPR to a different complex type, ensure
7962 c_save_expr is called instead of save_expr, unless in_late_binary_op.
7963 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
7964 when converting COMPLEX_TYPE.
7965
210dedfe
IR
79662011-01-06 Ira Rosen <irar@il.ibm.com>
7967
7968 PR tree-optimization/47139
7969 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
7970 only the last reduction value is used outside the loop. Update
7971 documentation.
7972
cd33a412
JM
79732011-01-05 Joseph Myers <joseph@codesourcery.com>
7974
7975 * config/rtems.opt: New.
7976 * config.gcc (*-*-rtems*): Use rtems.opt.
7977
819edd94
CF
79782011-01-05 Changpeng Fang <changpeng.fang@amd.com>
7979
7980 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
7981 processors do not support 3DNow instructions.
7982
dc242c4a
UW
79832011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7984
7985 * config/spu/spu.c (spu_option_override): Set parameter
7986 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
7987
be286227
JH
79882011-01-05 Jan Hubicka <jh@suse.cz>
7989
7990 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
7991 at the command line.
7992
644e637f
MJ
79932011-01-05 Martin Jambor <mjambor@suse.cz>
7994
7995 PR lto/47162
7996 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
7997 deltas on streamed outgoing edges.
7998 (output_node_opt_summary): Output info for outgoing edges only when
7999 the node is in new parameter set.
8000 (output_cgraph_opt_summary): New parameter set, passed to the two
8001 aforementioned functions. Update its forward declaration and its
8002 callee too.
8003
7bd11157
TT
80042011-01-05 Tom Tromey <tromey@redhat.com>
8005
8006 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
8007 operator to c_finish_omp_atomic.
8008 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
8009 (build_unary_op): Update.
8010 (build_modify_expr): Update.
8011 (build_asm_expr): Update.
8012
f626b979
UW
80132011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8014
8015 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
8016 newly inserted insns.
8017 (pad_bb): Likewise.
8018 (spu_emit_branch_hint): Likewise.
8019 (insert_hbrp_for_ilb_runout): Likewise.
8020 (spu_machine_dependent_reorg): Call df_finish_pass after
8021 schedule_insns returns.
8022
4c825c02
UW
80232011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8024
8025 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
8026
5e9fba51
EB
80272011-01-05 Eric Botcazou <ebotcazou@adacore.com>
8028
8029 PR tree-optimization/47005
8030 * tree-sra.c (struct access): Add 'non_addressable' bit.
8031 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
8032 (decide_one_param_reduction): Return 0 if the parameter is passed by
8033 reference and one of the accesses in the group is non_addressable.
8034
3ebb5ca6
EB
80352011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8036
8037 PR tree-optimization/47056
8038 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
8039 (mark_load): Likewise. Handle FUNCTION_DECL specially.
8040 (mark_store): Likewise. Pass STMT to ipa_record_reference.
8041
d5d4d14e
EB
80422011-01-04 Eric Botcazou <ebotcazou@adacore.com>
8043
8044 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
8045 initializer. Skip view conversions from aggregate types.
8046
d996ef70
KT
80472011-01-04 Kai Tietz <kai.tietz@onevision.com>
8048
8049 PR bootstrap/47055
8050 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
8051
509d65dd 80522011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
8053
8054 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
8055 obvious typo.
8056
55c623b5
UW
80572011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8058
8059 * function.c (thread_prologue_and_epilogue_insns): Do not crash
8060 on empty epilogue sequences.
8061
b98d6b35
JM
80622011-01-04 Joseph Myers <joseph@codesourcery.com>
8063
8064 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
8065 non-static): New Driver options.
8066
a0d43bac
JZ
80672011-01-04 Jie Zhang <jie@codesourcery.com>
8068
8069 PR driver/47137
8070 * gcc.c (default_compilers[]): Set combinable field to 0
8071 for all assembly languages.
8072
2b18eb32
MX
80732011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
8074
8075 * config/mips/loongson3a.md: New file.
8076 * config/mips/mips.md: Include loongson3a.md.
8077 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
8078 TUNE_LOONGSON_3A.
8079
42a48c4f
EB
80802011-01-03 Eric Botcazou <ebotcazou@adacore.com>
8081
8082 PR middle-end/47017
8083 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
8084 instead of convert_memory_address_addr_space on the base expression.
8085
9c1732c4
UW
80862011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8087
8088 * config/spu/spu.c (spu_option_override): Update error text
8089 for bad -march= / -mtune= values.
8090
aa474365
UW
80912011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8092
8093 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
8094 if branch-hint optimization will be performed.
8095
9766135b
JJ
80962011-01-03 Jakub Jelinek <jakub@redhat.com>
8097
371556ee
JJ
8098 PR tree-optimization/47148
8099 * ipa-split.c (split_function): Convert arguments to
8100 DECL_ARG_TYPE if possible.
8101
1ac12fa2
JJ
8102 PR tree-optimization/47155
8103 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
8104 when computing uns.
8105
9766135b
JJ
8106 PR rtl-optimization/47157
8107 * combine.c (try_combine): If undobuf.other_insn becomes
8108 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
8109 and set *new_direct_jump_p too.
8110
f4a2e571
SP
81112011-01-03 Sebastian Pop <sebastian.pop@amd.com>
8112
8113 PR tree-optimization/47021
8114 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
8115
9f8e43c0
JJ
81162011-01-03 Jakub Jelinek <jakub@redhat.com>
8117
8118 * gcc.c (process_command): Update copyright notice dates.
8119 * gcov.c (print_version): Likewise.
8120 * gcov-dump.c (print_version): Likewise.
8121 * mips-tfile.c (main): Likewise.
8122 * mips-tdump.c (main): Likewise.
8123
1a2e38f3
MJ
81242011-01-03 Martin Jambor <mjambor@suse.cz>
8125
8126 PR tree-optimization/46801
8127 * tree-sra.c (type_internals_preclude_sra_p): Check whether
8128 aggregate fields start at byte boundary instead of the bit-field flag.
8129
56b721c5
L
81302011-01-03 H.J. Lu <hongjiu.lu@intel.com>
8131
8132 PR driver/47137
8133 * gcc.c (main): Revert revision 168407.
8134
839d549b
MJ
81352011-01-03 Martin Jambor <mjambor@suse.cz>
8136
8137 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
8138
4ce99a20 81392011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
8140
8141 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
8142 vector optab to expand vector/scalar shift, update gimple to vector.
8143
76df0ae6
MJ
81442011-01-03 Martin Jambor <mjambor@suse.cz>
8145
8146 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
8147 a thunk.
8148
ce47fda3
MJ
81492011-01-03 Martin Jambor <mjambor@suse.cz>
8150
8151 PR tree-optimization/46984
8152 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
8153 HOST_WIDE_INT.
8154 (cgraph_create_indirect_edge): Fixed line length.
8155 (cgraph_indirect_call_info): Declare.
8156 (cgraph_make_edge_direct) Update declaration.
8157 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
8158 (cgraph_create_indirect_edge): Use it.
8159 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
8160 callees.
8161 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
8162 the new thunk_delta representation.
8163 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
8164 HOST_WIDE_INT.
8165 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
8166 (ipa_read_indirect_edge_info): Likewise.
8167 * lto-cgraph.c (output_edge_opt_summary): New function.
8168 (output_node_opt_summary): Call it on all outgoing edges.
8169 (input_edge_opt_summary): New function.
8170 (input_node_opt_summary): Call it on all outgoing edges.
8171
1e67fa1f
L
81722011-01-02 H.J. Lu <hongjiu.lu@intel.com>
8173
8174 PR driver/47137
8175 * gcc.c (main): Don't check have_o when settting combine_inputs.
8176
6656b2ac
EB
81772011-01-02 Eric Botcazou <ebotcazou@adacore.com>
8178
8179 * regrename.c: Add general comment describing the pass.
8180 (struct du_head): Remove 'length' field.
8181 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
8182 (regrename_optimize): Do not sort chains. Rework comments, add others.
8183 Force renaming to the preferred class (if any) in the first pass and do
8184 not consider registers that belong to it in the second pass.
8185 (create_new_chain): Do not set 'length' field.
8186 (scan_rtx_reg): Likewise.
8187
bc470c24
JJ
81882011-01-02 Jakub Jelinek <jakub@redhat.com>
8189
4e996296
JJ
8190 PR tree-optimization/47140
8191 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
8192 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
8193 to bit_value_binop.
8194
bc470c24 8195 PR rtl-optimization/47028
6656b2ac
EB
8196 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
8197 parm_birth_insn instead of at the beginning of first bb.
bc470c24 8198
5af62fcd 81992011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
8200
8201 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
8202 Remove the word "see" before "@pxref".
8203 * doc/rtl.texi: Remove the word "see" before "@pxref".
8204
0e20c89f
JH
82052011-01-01 Jan Hubicka <jh@suse.cz>
8206
6656b2ac
EB
8207 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
8208 memory.
0e20c89f 8209
220e83ca
KT
82102011-01-01 Kai Tietz <kai.tietz@onevision.com>
8211
8212 PR target/38662
6656b2ac 8213 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 8214
ad41bd84 8215\f
797103eb 8216Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
8217
8218Copying and distribution of this file, with or without modification,
8219are permitted in any medium without royalty provided the copyright
8220notice and this notice are preserved.