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