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