]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR lto/48086 (bootstrap-lto creates c-common.s with too many sections on x86_64...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
bb322018
CD
12011-03-13 Chris Demetriou <cgd@google.com>
2
3 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
4 (-fno-diagnostics-show-option): this, to reflect current default.
5 (-Werror=): Update text about -fno-diagnostics-show-option.
6
12b1c80b
PB
72011-03-12 Peter Bergner <bergner@vnet.ibm.com>
8
9 PR target/48053
10 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13 mode is not V2DImode or V2DFmode.
14 (vspltis_constant): Do not handle V2DImode and V2DFmode.
15 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17 registers to 0.
18 (movdi_internal64): Likewise.
19
57d598f7
SP
202011-03-12 Sebastian Pop <sebastian.pop@amd.com>
21
22 PR tree-optimization/47127
23 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
24 parameter.
25 (set_cloog_options): Same.
26 (scop_to_clast): Same.
27 (print_clast_stmt): Do not call cloog_state_malloc and
28 cloog_state_free.
29 (print_generated_program): Same.
30 (gloog): Same.
31 * graphite-clast-to-gimple.h (cloog_state): Declared.
32 (scop_to_clast): Adjust declaration.
33 * graphite.c (cloog_state): Defined here.
34 (graphite_initialize): Call cloog_state_malloc.
35 (graphite_finalize): Call cloog_state_free.
36
f231b5ff
JM
372011-03-11 Jason Merrill <jason@redhat.com>
38
39 * attribs.c (lookup_attribute_spec): Take const_tree.
40 * tree.h: Adjust.
41
6a4e2bd5
JM
422011-03-11 Joseph Myers <joseph@codesourcery.com>
43
44 * config/sparc/sparc.c (sparc_option_override): Use
45 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
46
a758fd67
RG
472011-03-11 Richard Guenther <rguenther@suse.de>
48
49 PR tree-optimization/48067
50 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
51 multiplication result will be only used once on the target
52 stmt.
53
03dfda54
RG
542011-03-11 Richard Guenther <rguenther@suse.de>
55
56 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
57
5f11a50a
RG
582011-03-11 Richard Guenther <rguenther@suse.de>
59
60 PR lto/48073
61 * tree.c (find_decls_types_r): Do not walk types only reachable
62 from IDENTIFIER_NODEs.
63
4074f163
JJ
642011-03-11 Jakub Jelinek <jakub@redhat.com>
65
66 PR middle-end/48044
67 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
68 all vnode->force_output nodes as needed.
69
30f7cdcd
JM
702011-03-11 Jason Merrill <jason@redhat.com>
71
72 PR c++/48069
73 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
74 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
75
62ecfeb8
MJ
762011-03-11 Martin Jambor <mjambor@suse.cz>
77
78 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
79 cgraph_node.
80
e89e03ab
JJ
812011-03-11 Jakub Jelinek <jakub@redhat.com>
82
83 PR tree-optimization/48063
84 * ipa-inline.c (cgraph_decide_inlining): Don't try to
85 inline functions called once if !tree_can_inline_p (node->callers).
86
efbe978b 872011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 88
efbe978b
EB
89 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
90 extra_objs.
9d6193a7
CL
91 * config/score/score3.c: Delete.
92 * config/score/score3.h: Delete.
93 * config/score/mul-div.S: Delete.
94 * config/score/sfp-machine.h: Add new file.
95 * config/score/constraints.md: Add new file.
96 * config/score/t-score-softfp: Add new file.
efbe978b 97 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
98 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
99 (score7_extra_constraint): Delete.
efbe978b 100 (score7_option_override): Remove unused code.
9d6193a7
CL
101 * config/score/score.c: Remove score3 and score5 define and code.
102 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 103 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
104 * config/score/score.opt: Remove score3 and score5 options.
105
5de27cca
JDA
1062011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
107
108 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
109 when _HPUX_SOURCE is defined.
110 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
111
18d92053
JM
1122011-03-10 Jason Merrill <jason@redhat.com>
113
114 PR c++/48029
115 * stor-layout.c (layout_type): Don't set structural equality
116 on arrays of incomplete type.
117 * tree.c (type_hash_eq): Handle comparing them properly.
118
67a2f76d
JJ
1192011-03-10 Jakub Jelinek <jakub@redhat.com>
120
121 PR debug/48043
18d92053 122 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
123 result mode matches original rtl mode.
124
d845b2f9
NC
1252011-03-10 Nick Clifton <nickc@redhat.com>
126
127 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 128 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 129
db7ec035
JJ
1302011-03-09 Jakub Jelinek <jakub@redhat.com>
131
132 PR rtl-optimization/47866
133 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
134 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
135 if target wasn't scalar.
136 * function.c (assign_stack_temp_for_type): Assert that neither
137 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
138 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
139 macro.
140 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
141
5d304e47
AK
1422011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
143
144 * config/s390/s390-protos.h (s390_label_align): New prototype.
145 * config/s390/s390.c (s390_label_align): New function.
146 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
147
93b826f0
MM
1482011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
149
150 PR target/47755
151 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
152 V2DI/V2DF constants. Only all 0's or all 1's are easy.
153 (output_vec_const_move): Ditto.
154
ef78aed6
AS
1552011-03-08 Anatoly Sokolov <aesok@post.ru>
156
157 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
158 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
159 * config/mips/mips.c (mips_preferred_reload_class): Make static.
160 Change 'rclass' argument and result type to reg_class_t.
161 (TARGET_PREFERRED_RELOAD_CLASS): Define.
162
5f892aa0
GJL
1632011-03-08 Georg-Johann Lay <avr@gjlay.de>
164
165 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
166 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST,
167 TARGET_MEMORY_MOVE_COST): Define.
168 (avr_register_move_cost, avr_memory_move_cost): New Functions.
169
32bd2409
JJ
1702011-03-08 Jakub Jelinek <jakub@redhat.com>
171
530a4800
JJ
172 PR debug/47881
173 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
174 removed anything.
175
32bd2409
JJ
176 PR tree-optimization/48022
177 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
178 for EQ/NE_EXPR.
179
c7148991
JJ
1802011-03-07 Jakub Jelinek <jakub@redhat.com>
181
182 PR debug/47991
183 * var-tracking.c (find_use_val): Return NULL for
184 cui->sets && cui->store_p BLKmode MEMs.
185
43070a6e
AS
1862011-03-07 Anatoly Sokolov <aesok@post.ru>
187
188 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
189 Remove.
190 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
191 xstormy16_print_operand_address): Remove.
192 * config/stormy16/stormy16.c (xstormy16_print_operand,
193 xstormy16_print_operand_address): Make static.
194 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
195
efbe978b 1962011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
197
198 PR target/47862
199 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
200 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
201 before definition.
202
cec8ac0b
ZD
2032011-03-07 Zdenek Dvorak <ook@ucw.cz>
204
205 PR bootstrap/48000
206 * cfgloopmanip.c (fix_bb_placements): Return immediately
207 if FROM is BASE_LOOP's header.
208
59527282
PW
2092011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
210
211 * gimplify.c (gimplify_function_tree): Fix building calls
212 to __builtin_return_address.
213
617718f7
AM
2142011-03-07 Alan Modra <amodra@gmail.com>
215
216 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
217 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
218 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
219 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
220 return_mode args.
221 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
222 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
223 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
224 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
225 * config/rs6000/rs6000.c
226 (rs6000_elf_end_indicate_exec_stack): Rename to..
227 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
228 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
229 (rs6000_file_start): ..here.
230 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
231 file scope variables.
232 (call_ABI_of_interest): New function.
233 (init_cumulative_args): Set above vars when function return value
234 is a float, vector, or small struct.
235 (rs6000_function_arg_advance_1): Likewise for function args.
236 (rs6000_va_start): Set rs6000_passes_float if variable arg function
237 references float args.
238
38528d50
MX
2392011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
240
241 * doc/cfg.texi: Remove "See" before @ref.
242 * doc/invoke.texi: Likewise.
243
f42cf4f4
JM
2442011-03-05 Jason Merrill <jason@redhat.com>
245
246 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
247
804a304d
AG
2482011-03-05 Anthony Green <green@moxielogic.com>
249
250 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
251
634ee309
ZD
2522011-03-05 Zdenek Dvorak <ook@ucw.cz>
253
254 PR rtl-optimization/47899
255 * cfgloopmanip.c (fix_bb_placements): Fix first argument
256 to flow_loop_nested_p when moving the loop upward.
257
6fe471c8
RE
2582011-03-05 Richard Earnshaw <rearnsha@arm.com>
259
260 PR target/47719
261 * arm.md (movhi_insn_arch4): Accept any immediate constant.
262
cc58ceee
JJ
2632011-03-05 Jakub Jelinek <jakub@redhat.com>
264
265 PR tree-optimization/47967
266 * ipa-cp.c (build_const_val): Return NULL instead of creating
267 VIEW_CONVERT_EXPR for mismatching sizes.
268 (ipcp_create_replace_map): Return NULL if build_const_val failed.
269 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
270 give up on versioning.
271
ea868305
AM
2722011-03-05 Alan Modra <amodra@gmail.com>
273
274 PR target/47986
275 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
276 full cmodel medium/large lo_sum + high addresses.
277
bc6ce334
AK
2782011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
279
280 * config/s390/s390.c (s390_decompose_address): Reject non-literal
281 pool references in UNSPEC_LTREL_OFFSET.
282
87e7b310
JH
2832011-03-04 Jan Hubicka <jh@suse.cz>
284
285 PR lto/47497
286 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
287 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
288 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk): Add node pointers.
289 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
290 cgraph_add_thunk): Add node pointers.
291 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
292 associated to right node.
293 (input_node): Update use of cgraph_same_body_alias
294 and cgraph_add_thunk.
295
d9c64246
CF
2962011-03-04 Changpeng Fang <changpeng.fang@amd.com>
297
298 * config/i386/i386.opt (mprefer-avx128): New flag.
299 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit mode
300 when the flag -mprefer-avx128 is on.
301
08707076
RS
3022011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
303
304 * dwarf2out.c (compare_loc_operands): Fix address handling.
305
52517c81
AM
3062011-03-04 Alan Modra <amodra@gmail.com>
307
308 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
309
b147c5b9
RG
3102011-03-04 Richard Guenther <rguenther@suse.de>
311
312 PR middle-end/47968
313 * expmed.c (extract_bit_field_1): Prefer vector modes that
314 vec_extract patterns can handle.
315
8750672f
RG
3162011-03-04 Richard Guenther <rguenther@suse.de>
317
318 PR middle-end/47975
319 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
320
9eac0f2a
RH
3212011-03-04 Richard Henderson <rth@redhat.com>
322
323 * explow.c (emit_stack_save): Remove 'after' parameter.
324 (emit_stack_restore): Likewise.
325 * expr.h: Update to match.
326 * builtins.c, calls.c, stmt.c: Likewise.
327 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
328 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
329 * function.c (expand_function_end): Insert the emit_stack_save
330 sequence before parm_birth_insn instead of after.
331
dfee1406
UB
3322011-03-03 Uros Bizjak <ubizjak@gmail.com>
333
334 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
335 (ssse3_pmaddubsw128): Ditto.
336 (ssse3_pmaddubsw): Ditto.
337
f1d4c3de
SE
3382011-03-03 Steve Ellcey <sje@cup.hp.com>
339
340 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
341
71f3a3f5
JJ
3422011-03-03 Jakub Jelinek <jakub@redhat.com>
343
423ed416
JJ
344 PR c/47963
345 * gimplify.c (omp_add_variable): Only call omp_notice_variable
346 on TYPE_SIZE_UNIT if it is a DECL.
347
71f3a3f5
JJ
348 PR debug/47283
349 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
350 first operand is not is_gimple_mem_ref_addr, try to fold it.
351 If the operand still isn't is_gimple_mem_ref_addr, clear
352 MEM_EXPR on op0.
353
4b1a5c0d
RG
3542011-03-03 Richard Guenther <rguenther@suse.de>
355
356 PR middle-end/47283
357 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
358 match comment.
359 (refs_may_alias_p_1): For release branches return true if
360 we are confused by our input.
361
b46616fd
AK
3622011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
363
364 * config/s390/s390.c (s390_function_value): Rename to ...
365 (s390_function_and_libcall_value): ... this.
366 (s390_function_value): New function.
367 (s390_libcall_value): New function.
dfee1406 368 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
369 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
370 target macro definitions.
371 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
372
46d8fabb
JM
3732011-03-02 Joseph Myers <joseph@codesourcery.com>
374
375 * config/i386/freebsd64.h (CC1_SPEC): Define.
376 * config/i386/linux64.h (CC1_SPEC): Define.
377 * config/i386/x86-64.h (CC1_SPEC): Don't define.
378
6b1ce545
AS
3792011-03-02 Anatoly Sokolov <aesok@post.ru>
380
381 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
382 Remove.
383 * config/stormy16/stormy16.c: Include reload.h.
384 (xstormy16_memory_move_cost): New function.
385 (TARGET_MEMORY_MOVE_COST): Define.
386
34161e98
RS
3872011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
388
389 PR rtl-optimization/47925
390 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
391 with side effects. Remove the more-specific check for volatile asms.
392
f60a97cf
AM
3932011-03-02 Alan Modra <amodra@gmail.com>
394
395 PR target/47935
396 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
397 toc relative addresses for valid offsets.
398
f2ca11ca
RG
3992011-03-01 Richard Guenther <rguenther@suse.de>
400
401 PR tree-optimization/47890
402 * tree-vect-loop.c (get_initial_def_for_induction): Set
403 related stmt properly.
404
7a00d9ea
RG
4052011-03-01 Richard Guenther <rguenther@suse.de>
406
407 PR lto/47924
408 * lto-streamer.c (lto_record_common_node): Also register
409 the canonical type.
410
06c7edcc
RG
4112011-03-01 Richard Guenther <rguenther@suse.de>
412
413 PR lto/46911
414 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
415 Do not stream DECL_ABSTRACT_ORIGIN.
416 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
417 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
418 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
419 Do not stream DECL_ABSTRACT_ORIGIN.
420 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
421 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
422
998871e9
AS
4232011-02-28 Anatoly Sokolov <aesok@post.ru>
424
425 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
426 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 427 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
428 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
429 Add 'outgoing' argument.
430 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
431 function.
432 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
433 TARGET_FUNCTION_VALUE_REGNO_P): Define.
434
94369251
KT
4352011-02-28 Kai Tietz <kai.tietz@onevision.com>
436
437 PR debug/28047
438 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
439 (lookup_filename): Likewise.
b2e2ea67 440 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 441
80a832cd
JJ
4422011-02-28 Bernd Schmidt <bernds@codesourcery.com>
443 Jakub Jelinek <jakub@redhat.com>
444
445 PR middle-end/47893
446 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
447 (assign_stack_local_1): Change last argument type to int.
448 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
449 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 450 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
451 (assign_stack_local): Adjust caller.
452 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
453 of assign_stack_local, pass 0 as last argument.
454 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
455 callers.
456
1b500976
JJ
4572011-02-28 Jakub Jelinek <jakub@redhat.com>
458
f61c6f34
JJ
459 PR debug/47283
460 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
461 Use target address_mode and pointer_mode hooks instead of hardcoded
462 Pmode and ptr_mode. Handle some simple cases of extending if
463 POINTERS_EXTEND_UNSIGNED < 0.
464 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
465 Call convert_debug_memory_address.
466 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
467 convert_debug_memory_address.
468
1b500976
JJ
469 PR middle-end/46790
470 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
471 * configure: Regenerated.
472 * config.in: Regenerated.
473 * varasm.c (default_function_section): Return NULL
b2e2ea67 474 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 475
2f2935b6
MJ
4762011-02-28 Martin Jambor <mjambor@suse.cz>
477
478 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
479 the description to match the printed values.
480
474086eb
RG
4812011-02-28 Richard Guenther <rguenther@suse.de>
482
483 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
484 of the copied scope tree.
485
15bf6f3a
RW
4862011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
487
488 * doc/extend.texi (Function Attributes): Avoid deeply (and
489 wrongly) nested tables.
490
f6b439c9
JJ
4912011-02-27 Jakub Jelinek <jakub@redhat.com>
492
493 PR middle-end/47903
494 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
495 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
496 r isn't op0 nor op1.
497
1d8ca2c7
GJL
4982011-02-23 Georg-Johann Lay <avr@gjlay.de>
499
500 * config/avr/avr.md: Remove magic comment for emacs.
501
593fca4b
GJL
5022011-02-23 Georg-Johann Lay <avr@gjlay.de>
503
504 PR target/45261
505 * config/avr/avr.c (avr_option_override): Use error on bad options.
506 (avr_help): New function.
507 (TARGET_HELP): Define.
508
6609216e
GJL
5092011-02-22 Georg-Johann Lay <avr@gjlay.de>
510
511 PR target/42240
512 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
513 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
514
03d458af
GP
5152011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
516
517 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
518 (ARM Options): Ditto.
519 (i386 and x86-64 Options): Ditto.
520 (RX Options): Ditto.
521 (SPARC Options): Ditto.
522
1c379b78
TC
5232011-02-26 Tijl Coosemans <tijl@coosemans.org>
524
525 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
526 FreeBSD 6 and later. Generally use cpu generic.
527
d5ed058c 5282011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 529
d5ed058c
GP
530 * doc/cpp.texi: Update copyright years.
531
509d65dd 5322011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 533
509d65dd 534 PR target/46898
308d39cd
SB
535 * config/lm32/lm32.md (ashrsi3): Added needed variable.
536
509d65dd 5372011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 538
509d65dd 539 PR target/46898
308d39cd
SB
540 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
541 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
542 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
543 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 544 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
545 (gen_int_relational): Move declarations to start of function.
546
822ba6d7
EB
5472011-02-25 Eric Botcazou <ebotcazou@adacore.com>
548
549 PR tree-optimization/45470
550 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
551 can throw internally only.
552 * tree-vect-stmts.c (vectorizable_call): Likewise.
553
ef795fc2
AS
5542011-02-24 Anatoly Sokolov <aesok@post.ru>
555
556 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
557 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
558 * config/stormy16/stormy16-protos.h
559 (xstormy16_preferred_reload_class): Remove.
560 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
561 static. Change 'rclass' argument and return type to reg_class_t.
562 (TARGET_PREFERRED_RELOAD_CLASS,
563 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
564
1c3277ee
RG
5652011-02-24 Richard Guenther <rguenther@suse.de>
566
567 * lto-streamer-in.c (input_bb): Do not find referenced vars
568 in debug statements.
569
67e18edb
JM
5702011-02-23 Jason Merrill <jason@redhat.com>
571
572 * common.opt (fabi-version): Document v5 and v6.
573
b14fad9d
RG
5742011-02-23 Richard Guenther <rguenther@suse.de>
575
576 PR tree-optimization/47849
577 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
578
7fcf46f5
JZ
5792011-02-23 Jie Zhang <jie@codesourcery.com>
580
581 * opts-common.c (decode_cmdline_option): Print empty string
582 argument as "" in decoded->orig_option_with_args_text.
583 * gcc.c (execute): Print empty string argument as ""
584 in the verbose output.
585 (do_spec_1): Keep empty string argument.
586
f85b70fd
NF
5872011-02-23 Nathan Froyd <froydnj@codesourcery.com>
588
589 * config.gcc: Declare score-* and crx-* obsolete.
590
b152a615
JZ
5912011-02-23 Jie Zhang <jie@codesourcery.com>
592
593 PR rtl-optimization/47763
594 * web.c (web_main): Ignore naked clobber when replacing register.
595
bb6e77bc
AS
5962011-02-22 Anatoly Sokolov <aesok@post.ru>
597
598 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
599 Remove.
600
68bf6491
SP
6012011-02-22 Sebastian Pop <sebastian.pop@amd.com>
602
603 PR doc/47848
604 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
605
88ee1fc7
MS
6062011-02-22 Mike Stump <mikestump@comcast.net>
607
608 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
609 assembler.
610 * configure: Regenerate.
611
6042d1dd
CLT
6122011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
613
614 PR rtl-optimization/46002
615 * ira-color.c (update_copy_costs): Change class intersection
616 test to reg_class_contents[] test of 'hard_regno'.
617
7de97f9e
JM
6182011-02-21 Joseph Myers <joseph@codesourcery.com>
619
620 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
621 than Driver option.
622 * config/hpux11.opt (mt): Likewise.
623 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
624 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
625 * config/vax/elf.opt (mno-asm-pic): Likewise.
626 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
627
d1d46f9f
MS
6282011-02-21 Mike Stump <mikestump@comcast.net>
629
630 PR target/47822
631 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
632 tree so we can get save the type.
633 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
634 for CFString instead of trying to use past the end of the builtins.
635 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
636 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
637 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
638 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
639 Rename to darwin_builtin_cfstring.
640 (darwin_init_cfstring_builtins): Return the built type.
641
23e0d930
UB
6422011-02-21 Uros Bizjak <ubizjak@gmail.com>
643
644 PR target/47840
645 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
646 (_mm256_insert_epi64): Use _mm_insert_epi64.
647
192997cf
AS
6482011-02-21 Anatoly Sokolov <aesok@post.ru>
649
650 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
651 * config/stormy16/stormy16-protos.h
652 (xstormy16_mode_dependent_address_p): Remove.
653 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
654 Make static. Change return type to bool. Change argument type to
655 const_rtx. Remove dead code.
656 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
657
e292d003
RG
6582011-02-21 Richard Guenther <rguenther@suse.de>
659
660 PR lto/47820
661 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
662 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
663 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
664 TUs context.
23e0d930 665 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
666 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
667
77f846e9
RG
6682011-02-20 Richard Guenther <rguenther@suse.de>
669
670 PR lto/47822
671 * tree.c (free_lang_data_in_decl): Clean builtins from
672 the TU decl BLOCK_VARS.
23e0d930 673
b2cddfc8
AO
6742011-02-19 Alexandre Oliva <aoliva@redhat.com>
675
676 PR debug/47620
677 PR debug/47630
678 * haifa-sched.c (fix_tick_ready): Skip tick computation
679 for debug insns.
680
becf4c11
RG
6812011-02-19 Richard Guenther <rguenther@suse.de>
682
683 PR lto/47647
684 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
685 Remove lazy BLOCK_VARS streaming.
686 (lto_input_ts_block_tree_pointers): Likewise.
687 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
688
27f98305
JM
6892011-02-19 Joseph Myers <joseph@codesourcery.com>
690
691 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
692
064bf3f4
JM
6932011-02-19 Joseph Myers <joseph@codesourcery.com>
694
695 * config/i386/biarch32.h, config/i386/mach.h,
696 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
697
9215ddc3
JJ
6982011-02-19 Jakub Jelinek <jakub@redhat.com>
699
700 PR target/47800
701 * config/i386/i386.md (peephole2 for shift and plus): Use
702 operands[1] original mode in the first insn.
703
8b021004
MS
7042011-02-18 Mike Stump <mikestump@comcast.net>
705
65ded153 706 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 707
f84ae14c
JH
7082011-02-18 Jan Hubicka <jh@suse.cz>
709
710 PR middle-end/47788
65ded153
EB
711 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
712 to zero when the function is not inlinable at all.
f84ae14c 713
eddabc80
JDA
7142011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
715
716 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
717 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
718 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
719 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
720 * config/pa/t-pa64: Likewise.
721 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
722
ca3da783
JJ
7232011-02-18 Jakub Jelinek <jakub@redhat.com>
724
725 PR driver/47787
726 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
727
430aa868
JDA
7282011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
729
730 PR target/47792
731 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
732
4bf7ff7e
AS
7332011-02-18 Anatoly Sokolov <aesok@post.ru>
734
735 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
736 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
737 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
738 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
739 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
740 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
741 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
742 m32r_load_postinc_p, m32r_store_preinc_predec_p,
743 m32r_legitimate_address_p): New functions.
744 * config/m32r/constraints.md (constraint "S"): Don't use
745 STORE_PREINC_PREDEC_P.
746 (constraint "U"): Don't use LOAD_POSTINC_P.
747
7efcf910
CLT
7482011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
749
750 PR rtl-optimization/46178
751 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
752 compute ira_hard_regno_cover_class[].
753
237d6259
RG
7542011-02-18 Richard Guenther <rguenther@suse.de>
755
756 PR lto/47798
757 * lto-streamer.h (lto_global_var_decls): Declare.
758 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
759 statics for global var processing.
760
12d80acc
RG
7612011-02-18 Richard Guenther <rguenther@suse.de>
762
763 PR tree-optimization/47737
764 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
765 edge dominance check.
766
abfea58d
JJ
7672011-02-18 Jakub Jelinek <jakub@redhat.com>
768
769 PR debug/47780
770 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
771 avoid invalid rtx sharing.
772
f73c8882
GP
7732011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
774
775 * doc/cpp.texi (Obsolete Features): Add background on the
776 origin of assertions.
777
d764a8e6
IS
7782011-02-17 Iain Sandoe <iains@gcc.gnu.org>
779
780 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 781 objc_abi == 2.
d764a8e6
IS
782 * config/darwin.c (output_objc_section_asm_op): Added support for
783 ABI v1 and v2.
784 (is_objc_metadata): New.
785 (darwin_objc2_section): New.
786 (darwin_objc1_section): New.
787 (machopic_select_section): Added support for ABI v1 and v2.
788 (darwin_emit_objc_zeroed): New.
789 (darwin_output_aligned_bss): Detect objc metadata and treat it
790 appropriately.
791 (darwin_asm_output_aligned_decl_common): Same.
792 (darwin_asm_output_aligned_decl_local): Same.
793 * config/darwin-sections.def: Updated for ABI v1 and v2.
794 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
795 compiling Objective-C code for the NeXT runtime, default to using
796 ABI version 0 for 32-bit, and version 2 for 64-bit.
797
0a8134ca
JM
7982011-02-17 Joseph Myers <joseph@codesourcery.com>
799
800 * common.opt (optimize_fast): New Variable.
801 * opts.c (default_options_optimization): Use opts->x_optimize_fast
802 instead of local variable ofast.
803
0a256240
NP
8042011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
805
806 * doc/invoke.texi (fobjc-abi-version): Documented.
807 (fobjc-nilcheck): Documented.
808 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
809 version.
810
fa381cb2
JM
8112011-02-17 Joseph Myers <joseph@codesourcery.com>
812
813 PR driver/47390
814 * common.opt (export-dynamic): New Driver option.
815 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
816
5437eaa6
JM
8172011-02-17 Joseph Myers <joseph@codesourcery.com>
818
819 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
820
bb7e6d55
AO
8212011-02-17 Alexandre Oliva <aoliva@redhat.com>
822 Jan Hubicka <jh@suse.cz>
823
824 PR debug/47106
825 PR debug/47402
826 * cfgexpand.c (account_used_vars_for_block): Remove.
827 (estimated_stack_frame_size): Use referenced vars.
828 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
829 that were referenced in the original function. Test src_fn
830 rather than cfun. Drop redundant get_var_ann.
831 (setup_one_parameter): Drop redundant get_var_ann.
832 (declare_return_variable): Likewise.
833 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
834 (copy_arguments_for_versioning): Drop redundant get_var_ann.
835 * ipa-inline.c (compute_inline_parameters): Do not compute
836 disregard_inline_limits here.
bb7e6d55
AO
837 (compute_inlinable_for_current, pass_inlinable): New.
838 (pass_inline_parameters): Require PROP_referenced_vars.
839 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 840 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
841 (cgraph_analyze_function): Set .disregard_inline_limits.
842 * tree-sra.c (convert_callers): Compute inliner parameters
843 only for functions already in SSA form.
844
f181a8a7
JM
8452011-02-17 Joseph Myers <joseph@codesourcery.com>
846
847 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
848 -mlittle-endian-data.
849
c6869789
JM
8502011-02-17 Joseph Myers <joseph@codesourcery.com>
851
852 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
853 -mno-fpu, not -fpu and -no-fpu.
854 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
855 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
856
fbf4bfd3
UB
8572011-02-17 Uros Bizjak <ubizjak@gmail.com>
858
859 PR target/43653
860 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
861 input reload with PLUS RTX.
862
70be5dc7
JM
8632011-02-16 Joseph Myers <joseph@codesourcery.com>
864
865 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
866 of InverseVar(MDMX).
867
30b1646e
JM
8682011-02-16 Joseph Myers <joseph@codesourcery.com>
869
870 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
871 --m4-340.
872
ab7b71e9
JM
8732011-02-16 Joseph Myers <joseph@codesourcery.com>
874
875 * config/mn10300/mn10300.opt (mno-crt0): New.
876
466f3f08
JM
8772011-02-16 Joseph Myers <joseph@codesourcery.com>
878
879 * config/m68k/uclinux.opt (static-libc): New Driver option.
880
8226cd7b
JM
8812011-02-16 Joseph Myers <joseph@codesourcery.com>
882
883 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
884
45cab1d7
JM
8852011-02-16 Joseph Myers <joseph@codesourcery.com>
886
887 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
888 %{muser-extend-enabled}.
889
65aab64f
RG
8902011-02-16 Richard Guenther <rguenther@suse.de>
891
892 PR tree-optimization/47738
893 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
894 the TODO from tree_predictive_commoning.
895
fc2fa4fb
JL
8962011-02-15 Jeff Law <law@redhat.com>
897
898 Revert
899 2011-01-25 Jeff Law <law@redhat.com>
900
901 PR rtl-optimization/37273
902 * ira-costs.c (scan_one_insn): Detect constants living in memory and
903 handle them like argument loads from stack slots. Do not double
904 count memory for memory constants and argument loads from stack slots.
905
4e380b8e
L
9062011-02-15 H.J. Lu <hongjiu.lu@intel.com>
907
908 PR middle-end/47725
909 * combine.c (cant_combine_insn_p): Revert the last change.
910
e3a69bb4
MM
9112011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
912
913 PR target/47755
914 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
915 mode for vector constants. Remove code that checks for TImode.
916
de650422
AO
9172011-02-15 Alexandre Oliva <aoliva@redhat.com>
918
919 PR debug/47106
920 PR debug/47402
921 * cgraph.h (compute_inline_parameters): Return void.
922 * ipa-inline.c (compute_inline_parameters): Adjust.
923
30925d94
AO
9242011-02-15 Alexandre Oliva <aoliva@redhat.com>
925
926 PR debug/47106
927 PR debug/47402
928 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
929 rather than decl.
930 * cfgexpand.c (estimated_stack_frame_size): Likewise.
931 * ipa-inline.c (compute_inline_parameters): Adjust.
932
1b9a784a
AO
9332011-02-15 Alexandre Oliva <aoliva@redhat.com>
934
935 PR debug/47106
936 PR debug/47402
937 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
938 Adjust all users. Pass FN to...
939 * tree-flow-inline.h (first_referenced_var): ... this. Add
940 fn argument.
941 * ipa-struct-reorg.c: Adjust.
942 * tree-dfa.c: Adjust.
943 * tree-into-ssa.c: Adjust.
944 * tree-sra.c: Adjust.
945 * tree-ssa-alias.c: Adjust.
946 * tree-ssa-live.c: Adjust.
947 * tree-ssa.c: Adjust.
948 * tree-ssanames.c: Adjust.
949 * tree-tailcall.c: Adjust.
950
27c6b086
AO
9512011-02-15 Alexandre Oliva <aoliva@redhat.com>
952
953 PR debug/47106
954 PR debug/47402
955 * tree-flow.h (referenced_var_lookup): Add fn parameter.
956 Adjust all callers.
957 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
958 * tree-flow-inline.h: Adjust.
959 * gimple-pretty-print.c: Adjust.
960 * tree-into-ssa.c: Adjust.
961 * tree-ssa.c: Adjust.
962 * cfgexpand.c: Adjust.
963
679e8183
NF
9642011-02-15 Nathan Froyd <froydnj@codesourcery.com>
965
fbf4bfd3
UB
966 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
967 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
968 (EXTRA_CONSTRAINT): Delete.
969 * config/iq2000/constraints.md: New file.
970 * config/iq2000/iq2000.md: Include it.
679e8183
NF
971 (define_insn ""): Delete.
972 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
973 unsupported constraint letters from patterns.
974 (call_value, call_value_internal1): Likewise.
975 (call_value_multiple_internal1): Likewise.
976
a45d420a
NC
9772011-02-15 Nick Clifton <nickc@redhat.com>
978
979 * config/mn10300/mn10300.c: Include tm-constrs.h.
980 (struct liw_data): New data structure describing an LIW candidate
981 instruction.
982 (extract_bundle): Use struct liw_data. Allow small integer
983 operands for some instructions.
984 (check_liw_constraints): Use struct liw_data. Remove swapped
985 parameter. Add comments describing the checks. Fix bug when
986 assigning the source of liw1 to the source of liw2.
987 (liw_candidate): Delete. Code moved into extract_bundle.
988 (mn10300_bundle_liw): Use struct liw_data. Check constraints
989 before swapping.
990 * config/mn10300/predicates.md (liw_operand): New predicate.
991 Allows registers and small integer constants.
992 * config/mn10300/constraints.md (O): New constraint. Accetps
993 integers in the range -8 to +7 inclusive.
994 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
995 for moving a small integer into a register. Give this alternative
996 LIW attributes.
997 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
998 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
999 using the J,K,L and M constraints,
1000 (liw): Remove SI mode on second operands to allow for HI and QI
1001 mode values.
1002 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
1003 instruction.
1004
8a73faf1
L
10052011-02-15 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 PR middle-end/47725
1008 * combine.c (cant_combine_insn_p): Check zero/sign extended
1009 hard registers.
1010
48feba28
RG
10112011-02-15 Richard Guenther <rguenther@suse.de>
1012
1013 PR tree-optimization/47743
1014 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
1015 for a non-type-compatible VN lookup bail out.
1016
ad1c1eeb
NF
10172011-02-15 Nathan Froyd <froydnj@codesourcery.com>
1018
1019 * config/fr30/constraints.md: New file.
1020 * config/fr30/fr30.md: Include it.
1021 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
1022 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1023 (EXTRA_CONSTRAINT): Delete.
1024
49ac143d
NF
10252011-02-15 Nathan Froyd <froydnj@codesourcery.com>
1026
1027 * config/frv/constraints.md: New file.
1028 * config/frv/predicates.md: Include it.
1029 * config/frv/frv.c (reg_class_from_letter): Delete.
1030 (frv_option_override): Don't initialize it.
1031 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
1032 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
1033 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
1034 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1035 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
1036 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1037 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
1038 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
1039 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
1040 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
1041 (REG_CLASS_FROM_CONSTRAINT): Delete.
1042
c95f9494
JJ
10432011-02-15 Jakub Jelinek <jakub@redhat.com>
1044
1045 PR middle-end/47581
1046 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
1047 if frame size is 0 in a leaf function.
1048
13aed611
RO
10492011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1050
1051 PR pch/14940
1052 * config/alpha/host-osf.c: New file.
1053 * config/alpha/x-osf: New file.
1054 * config.host (alpha*-dec-osf*): Use it.
1055
b09c3081
AS
10562011-02-14 Anatoly Sokolov <aesok@post.ru>
1057
1058 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1059 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
1060 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
1061 (rx_mode_dependent_address_p): ...this. Make static. Change argument
1062 type to const_rtx.
1063 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1064
d634083b
NF
10652011-02-14 Nathan Froyd <froydnj@codesourcery.com>
1066
1067 * config/stormy16/constraints.md: New file.
1068 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
1069 Use satisfies_constraint_Q and satisfies_constraint_R.
1070 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
1071 Delete.
1072 (xstormy16_legitiamte_address_p): Declare.
1073 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
1074 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1075 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 1076 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
1077 Un-staticize.
1078 (xstormy16_extra_constraint_p): Delete.
1079
c7dd803e
EB
10802011-02-14 Eric Botcazou <ebotcazou@adacore.com>
1081
1082 PR tree-optimization/46494
1083 * loop-unroll.c (split_edge_and_insert): Adjust comment.
1084 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
1085 (pass_rtl_loop_done): Add TODO_verify_flow.
1086 * fwprop.c (pass_rtl_fwprop): Likewise.
1087 * modulo-sched.c (pass_sms): Likewise.
1088 * tree-ssa-dom.c (pass_dominator): Likewise.
1089 * tree-ssa-loop-ch.c (pass_ch): Likewise.
1090 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
1091 (pass_tree_loop_done): Likewise.
1092 * tree-ssa-pre.c (execute_pre): Likewise.
1093 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
1094 * tree-ssa-sink.c (pass_sink_code): Likewise.
1095 * tree-vrp.c (pass_vrp): Likewise.
1096
c6150df6
NF
10972011-02-14 Nathan Froyd <froydnj@codesourcery.com>
1098
c7dd803e
EB
1099 * config/v850/constraints.md: New file.
1100 * config/v850/v850.md: Include it.
1101 * config/v850/predicates.md (reg_or_0_operand): Use
1102 satisfies_constraint_G.
1103 (special_symbolref_operand): Use satisfies_constraint_K.
1104 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
1105 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
1106 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
1107 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
1108 (EXTRA_CONSTRAINT): Delete.
1109 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
1110 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
1111 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 1112
30dd1ea3
AS
11132011-02-14 Anatoly Sokolov <aesok@post.ru>
1114
1115 PR target/47696
1116 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
1117 description.
1118
944f4bb3
NF
11192011-02-14 Nathan Froyd <froydnj@codesourcery.com>
1120
1121 * config/mcore/constraints.md: New file.
1122 * config/mcore/mcore.md: Include it.
1123 * config/mcore/mcore.c (reg_class_from_letter): Delete.
1124 * config/mcore/mcore.h (reg_class_from_letter): Delete.
1125 (REG_CLASS_FROM_LETTER): Delete.
1126 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
1127 insn_const_int_ok_for_constraint.
1128 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
1129 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
1130 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1131 (EXTRA_CONSTRAINT): Delete.
1132
ad56a54c
RO
11332011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1134
1135 PR ada/41929
1136 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
1137 (IS_SIGHANDLER): Define.
1138 (sparc64_is_sighandler): New function, split off from
1139 sparc64_fallback_frame_state.
1140 (sparc_is_sighandler): New function, split off from
1141 sparc_fallback_frame_state.
1142 (sparc64_fallback_frame_state): Merge with ...
1143 (sparc_fallback_frame_state): ... this into ...
1144 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
1145 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
1146 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
1147 stack instead of hardcoded offsets.
ad56a54c 1148
fbf4bfd3 11492011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
1150
1151 PR target/45808
1152 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
1153
029c8f3e
RW
11542011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1155
1156 * configure: Regenerate.
1157
a016dc83
JM
11582011-02-12 Joseph Myers <joseph@codesourcery.com>
1159
1160 PR driver/45731
1161 * gcc.c (asm_options): Correct spec matching --target-help.
1162
8957a0ec
MJ
11632011-02-12 Martin Jambor <mjambor@suse.cz>
1164
1165 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
1166 to gimple call error.
1167
6ef828bc
MS
11682011-02-12 Mike Stump <mikestump@comcast.net>
1169
1170 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
1171 comments in backslash regions.
1172
a4015be5
MS
11732011-02-12 Mike Stump <mikestump@comcast.net>
1174 Jakub Jelinek <jakub@redhat.com>
1175 Iain Sandoe <iains@gcc.gnu.org>
1176
1177 PR target/47324
1178 * dwarf2out.c (output_cfa_loc): When required, apply the
1179 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
1180 (output_loc_sequence): Likewise.
1181 (output_loc_operands_raw): Likewise.
1182 (output_loc_sequence_raw): Likewise.
1183 (output_cfa_loc): Likewise.
1184 (output_loc_list): Suppress register number adjustment when
1185 calling output_loc_sequence()
1186 (output_die): Likewise.
1187
5378dda2
AS
11882011-02-12 Anatoly Sokolov <aesok@post.ru>
1189
1190 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
1191 Remove macros.
1192 * config/xtensa/xtensa.c (xtensa_register_move_cost,
1193 xtensa_memory_move_cost): New functions.
1194 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
1195
f3d533d3
AO
11962011-02-12 Alexandre Oliva <aoliva@redhat.com>
1197
1198 PR lto/47225
1199 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
1200 in the current directory.
1201 * configure: Rebuilt.
1202
9d53403c
IS
12032011-02-12 Iain Sandoe <iains@gcc.gnu.org>
1204
1205 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 1206 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
1207 correct indents of the preceding block.
1208
a350a6c8
IS
12092011-02-12 Iain Sandoe <iains@gcc.gnu.org>
1210
1211 * gcc.c (driver_handle_option): Concatenate the argument to -F with
1212 the switch.
1213
bab79a40
JM
12142011-02-11 Joseph Myers <joseph@codesourcery.com>
1215
1216 * common.opt (nostartfiles): New Driver option.
1217
1bbc6693
XDL
12182011-02-11 Xinliang David Li <davidxl@google.com>
1219
1220 PR tree-optimization/47707
1221 * tree-chrec.c (convert_affine_scev): Keep type precision.
1222
1da7d8c0
EB
12232011-02-11 Eric Botcazou <ebotcazou@adacore.com>
1224
1225 PR tree-optimization/47420
1226 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
1227
12282011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
1229
1230 PR rtl-optimization/47614
1231 * rtl.h (check_for_inc_dec): Declare.
1232 * dse.c (check_for_inc_dec): Externalize...
1233 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
1234 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
1235
4df47bca
JM
12362011-02-11 Joseph Myers <joseph@codesourcery.com>
1237
1238 PR driver/47678
1239 * gcc.c (main): Do not compile inputs if there were errors in
1240 option handling.
1241 * opts-common.c (read_cmdline_option): Check for wrong language
1242 after other error checks.
1243
61502ca8
NF
12442011-02-11 Nathan Froyd <froydnj@codesourcery.com>
1245
1246 * cgraph.c: Fix comment typos.
1247 * cgraph.h: Likewise.
1248 * cgraphunit.c: Likewise.
1249 * ipa-cp.c: Likewise.
1250 * ipa-inline.c: Likewise.
1251 * ipa-prop.c: Likewise.
1252 * ipa-pure-const.c: Likewise.
1253 * ipa-ref.c: Likewise.
1254 * ipa-reference.c: Likewise.
1255
b63f974e
JJ
12562011-02-11 Jakub Jelinek <jakub@redhat.com>
1257
d50c5e0c
JJ
1258 PR debug/47684
1259 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 1260
6dd2a13c
RO
12612011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1262
1263 PR testsuite/47400
1264 * doc/sourcebuild.texi (Require Support): Document
1265 dg-require-ascii-locale.
1266
4a087ccf
MX
12672011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
1268
1269 * doc/lto.texi (Write summary): Fix missing parentheses.
1270
a4403164
DD
12712011-02-10 DJ Delorie <dj@redhat.com>
1272
1273 * config/m32c/m32c.c (m32c_option_override): Disable
1274 -fcombine-stack-adjustments until flag value tracking and compare
1275 optimization can be rewritten.
1276
4fac45bd
PB
12772011-02-10 Peter Bergner <bergner@vnet.ibm.com>
1278
1279 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
1280 PROCESSOR_POWER7.
1281 (PROCESSOR_DEFAULT64): Likewise.
1282
72602cd1
RH
12832011-02-10 Richard Henderson <rth@redhat.com>
1284
1285 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
1286 change from 2011-02-03.
1287 * config/rx/rx.c (flags_from_code): Likewise.
1288 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
1289 is valid, n/pz otherwise.
1290 (rx_select_cc_mode): Return CCmode if Y is not zero.
1291
ea57f573
RG
12922011-02-10 Richard Guenther <rguenther@suse.de>
1293
ea4c3e65 1294 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 1295
92b1d23b
RG
12962011-02-10 Richard Guenther <rguenther@suse.de>
1297
1298 PR tree-optimization/47677
1299 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
1300
525a2d06
JJ
13012011-02-10 Jakub Jelinek <jakub@redhat.com>
1302
1303 PR target/47665
1304 * combine.c (make_compound_operation): Only change shifts into
1305 multiplication for SCALAR_INT_MODE_P.
1306
06c969bd
JZ
13072011-02-10 Jie Zhang <jie@codesourcery.com>
1308
1309 PR testsuite/47622
1310 Revert
1311 2011-02-05 Jie Zhang <jie@codesourcery.com>
1312 PR debug/42631
1313 * web.c (entry_register): Don't clobber the number of the
1314 first uninitialized reference in used[].
1315
282ec48e
RG
13162011-02-09 Richard Guenther <rguenther@suse.de>
1317
1318 PR tree-optimization/47664
1319 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
1320 all edges again.
1321
df98c3e8
DE
13222011-02-09 David Edelsohn <dje.gcc@gmail.com>
1323
d0f21cd6
DE
1324 PR target/46481
1325 PR target/47032
df98c3e8
DE
1326 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
1327 PROCESSOR_POWER7.
1328 (PROCESSOR_DEFAULT64): Same.
1329 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
1330
67b6839f
RO
13312011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1332
1333 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
1334
4fd73214
MJ
13352011-02-09 Martin Jambor <mjambor@suse.cz>
1336
1337 PR middle-end/45505
1338 * tree-sra.c (struct access): New flags grp_scalar_read and
1339 grp_scalar_write. Changed description of assignment read and write
1340 flags.
1341 (dump_access): Dump new flags, reorder all of them.
1342 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
1343 to detect multiple scalar reads.
1344 (analyze_access_subtree): Use the new scalar read write flags instead
1345 of the old flags. Adjusted comments.
1346
91140cd3
DD
13472011-02-08 DJ Delorie <dj@redhat.com>
1348
1349 PR target/47548
1350 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
1351 patterns.
1352
4254bbfe
JM
13532011-02-08 Joseph Myers <joseph@codesourcery.com>
1354
1355 * config/m68k/uclinux.opt: New.
1356 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
1357
f1fda84e
JM
13582011-02-08 Joseph Myers <joseph@codesourcery.com>
1359
1360 * config/cris/elf.opt (sim): New Driver option.
1361
4933ae74
JM
13622011-02-08 Joseph Myers <joseph@codesourcery.com>
1363
1364 * config/xtensa/elf.opt: New.
1365 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
1366
4ad70280
JM
13672011-02-08 Joseph Myers <joseph@codesourcery.com>
1368
1369 * config/vax/elf.opt: New.
1370 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
1371
20893707
JM
13722011-02-08 Joseph Myers <joseph@codesourcery.com>
1373
1374 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
1375
b8e7038e
JM
13762011-02-08 Joseph Myers <joseph@codesourcery.com>
1377
1378 * config/gnu-user.opt: New.
1379 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
1380 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
1381 *-*-uclinux*): Use gnu-user.opt.
1382
e1c5225a
TS
13832011-02-08 Thomas Schwinge <thomas@schwinge.name>
1384
1385 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
1386 * config/i386/gnu.h (CPP_SPEC): Likewise.
1387
5e46b0c6
ILT
13882011-02-08 Ian Lance Taylor <iant@google.com>
1389
1390 * common.opt (fcx-limited-range): Add SetByCombined flag.
1391 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
1392 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
1393 (fassociative-math, freciprocal-math): Likewise.
1394 (funsafe-math-optimizations): Likewise.
1395 * opth-gen.awk: Handle SetByCombined.
1396 * optc-gen.awk: Likewise.
ea4c3e65 1397 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
1398 (set_unsafe_math_optimizations_flags): Likewise.
1399 * doc/options.texi (Option properties): Document SetByCombined.
1400
32243d46
JM
14012011-02-08 Joseph Myers <joseph@codesourcery.com>
1402
1403 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
1404 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
1405 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
1406 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
1407 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
1408
479c1fb3
SP
14092011-02-08 Sebastian Pop <sebastian.pop@amd.com>
1410
1411 PR tree-optimization/46834
1412 PR tree-optimization/46994
1413 PR tree-optimization/46995
1414 * graphite-sese-to-poly.c (used_outside_reduction): New.
1415 (detect_commutative_reduction): Call used_outside_reduction.
1416 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
1417 translate_scalar_reduction_to_array only when at least one
1418 loop-phi/close-phi tuple has been detected.
1419
3865a06f
RG
14202011-02-08 Richard Guenther <rguenther@suse.de>
1421
1422 PR middle-end/47639
1423 * tree-vect-generic.c (expand_vector_operations_1): Update
1424 stmts here ...
1425 (expand_vector_operations): ... not here. Cleanup EH info
1426 and the CFG if required.
1427
62902f3f
RG
14282011-02-08 Richard Guenther <rguenther@suse.de>
1429
1430 PR tree-optimization/47641
1431 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
1432 require type compatibility.
1433
0efb9d64
AK
14342011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1435
1436 * gimple-low.c (lower_function_body): Don't remove the location of
1437 the return statement here.
1438 (lower_gimple_return): Do it here instead but only if the return
1439 statement is actually used twice.
1440
034b8ae4
RG
14412011-02-08 Richard Guenther <rguenther@suse.de>
1442
1443 PR tree-optimization/47632
1444 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
1445 unused up_to_stmt parameter, return whether cfg-cleanup is
1446 necessary, remove EH info properly.
1447 (forward_propagate_into_gimple_cond): Adjust caller.
1448 (forward_propagate_into_cond): Likewise.
1449 (forward_propagate_comparison): Likewise.
1450 (tree_ssa_forward_propagate_single_use_vars): Make
1451 forward_propagate_comparison case similar to the two others.
1452
298362c8
NC
14532011-02-08 Nick Clifton <nickc@redhat.com>
1454
1455 * config/mn10300/mn10300.opt (mliw): New command line option.
1456 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
1457 (liw_bundling): New automaton.
1458 (liw): New attribute.
1459 (liw_op): New attribute.
1460 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
1461 (movsi_internal): Add LIW attributes.
1462 (andsi3): Likewise.
1463 (iorsi3): Likewise.
1464 (xorsi3): Likewise.
1465 (addsi3): Separate register and immediate alternatives.
1466 Add LIW attributes.
1467 (subsi3): Likewise.
1468 (cmpsi): Likewise.
1469 (aslsi3): Likewise.
1470 (lshrsi3): Likewise.
1471 (ashrsi3): Likewise.
1472 (liw): New pattern.
1473 * config/mn10300/mn10300.c (liw_op_names): New
1474 (mn10300_print_operand): Handle 'W' operand descriptor.
1475 (extract_bundle): New function.
1476 (check_liw_constraints): New function.
1477 (liw_candidate): New function.
1478 (mn10300_bundle_liw): New function.
1479 (mn10300_reorg): New function.
1480 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1481 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
1482 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
1483 __LIW__ or __NO_LIW__.
1484 * doc/invoke.texi: Describe the -mliw command line option.
1485
90488014
JDA
14862011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1487
1488 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
1489 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
1490 pthread_mutex_unlock): Remove.
1491 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
1492 * config/pa/t-pa64: Likewise.
1493 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
1494 shared libc if not linking against libpthread.
1495 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
1496
689ff841
IS
14972011-02-07 Iain Sandoe <iains@gcc.gnu.org>
1498
1499 PR target/47558
1500 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
1501 on 10.6 and later to ensure that we always use the unwinder from
1502 the system. Only add -no_compact_unwind when tarteting darwin
1503 10.6 or later.
1504
821014aa
SE
15052011-02-07 Steve Ellcey <sje@cup.hp.com>
1506
1507 PR target/46997
1508 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
1509 (vec_interleave_lowv2sf): Ditto.
1510 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
1511 (vec_extract_oddv2sf): Ditto.
1512
41cf94fb
MS
15132011-02-07 Mike Stump <mikestump@comcast.net>
1514
62dea57d 1515 PR target/42333
41cf94fb
MS
1516 Add __ieee_divdc3 entry point.
1517 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
1518 entry point.
1519 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
1520 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
1521 * config/darwin.c (darwin_rename_builtins): Add.
1522 * config/darwin-protos.h (darwin_rename_builtins): Add.
1523
ee09a3dd
MM
15242011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1525
1526 PR target/47636
1527 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
1528 for the condition.
1529
83296cd0
MS
15302011-02-07 Mike Stump <mikestump@comcast.net>
1531
ea4c3e65 1532 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 1533
0f4e946f
DC
15342011-02-07 Denis Chertykov <chertykov@gmail.com>
1535
1536 PR target/47534
1537 * config/avr/libgcc.S (exit): Move .endfunc
1538
1ec87690
RG
15392011-02-07 Richard Guenther <rguenther@suse.de>
1540
1541 PR tree-optimization/47615
1542 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
1543 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
1544 (run_scc_vn): Initialize it.
1545 (visit_reference_op_load): Use it.
1546 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
1547
b46ae6da
UW
15482011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1549
1550 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
1551 DImode trapping arithmetic libfuncs.
1552
c0aae19c
RG
15532011-02-07 Richard Guenther <rguenther@suse.de>
1554
1555 PR tree-optimization/47621
1556 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
1557 two duplicates ...
1558 (execute_update_addresses_taken): ... here. Make it more
1559 conservative in what we accept.
1560
295d926b
JM
15612011-02-06 Joseph Myers <joseph@codesourcery.com>
1562
1563 * config/sparc/freebsd.h (ASM_SPEC): Define.
1564 * config/sparc/vxworks.h (ASM_SPEC): Define.
1565
bdeb2471
JM
15662011-02-06 Joseph Myers <joseph@codesourcery.com>
1567
1568 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1569
d5d3781a
SB
15702011-02-06 Steven Bosscher <steven@gcc.gnu.org>
1571
1572 * doc/invoke.texi: Remove reference to compiler internals from
1573 user documentation.
1574
1575 * reg-notes.def: Remove REG_VALUE_PROFILE.
1576 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
1577
c42c09fc
JJ
15782011-02-05 Jakub Jelinek <jakub@redhat.com>
1579
1580 PR middle-end/47610
1581 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 1582 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 1583
beea2755
JZ
15842011-02-05 Jie Zhang <jie@codesourcery.com>
1585
1586 PR debug/42631
1587 * web.c (entry_register): Don't clobber the number of the
1588 first uninitialized reference in used[].
1589
a130584a
SP
15902011-02-04 Sebastian Pop <sebastian.pop@amd.com>
1591
1592 PR tree-optimization/46194
1593 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
1594 (build_classic_dist_vector_1): Do not represent classic distance
1595 vectors when the access functions are variating in different loops.
1596
962101ac
JM
15972011-02-04 Joseph Myers <joseph@codesourcery.com>
1598
1599 * config/mips/iris6.opt: New.
1600 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
1601
55eaaa5b
RH
16022011-02-04 Richard Henderson <rth@redhat.com>
1603 Steve Ellcey <sje@cup.hp.com>
1604
1605 PR target/46997
1606 * config/ia64/predicates.md (mux1_brcst_element): New.
1607 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
1608 * config/ia64/ia64.c (ia64_unpack_assemble): New.
1609 (ia64_unpack_sign): New.
1610 (ia64_expand_unpack): Rewrite using new routines.
1611 (ia64_expand_widen_sum): Ditto.
1612 (ia64_expand_dot_prod_v8qi): Ditto.
1613 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
1614 routines, add endian check.
1615 (pmpy2_even): Rename from pmpy2_r, add endian check.
1616 (pmpy2_odd): Rename from pmpy2_l, add endian check.
1617 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
1618 (vec_widen_smult_hi_v4hi): Ditto.
1619 (vec_widen_umult_lo_v4hi): Ditto.
1620 (vec_widen_umult_hi_v4hi): Ditto.
1621 (mulv2si3): Change endian checks.
1622 (sdot_prodv4hi): Rewrite with new calls.
1623 (udot_prodv4hi): New.
1624 (vec_pack_ssat_v4hi): Add endian check.
1625 (vec_pack_usat_v4hi): Ditto.
1626 (vec_pack_ssat_v2si): Ditto.
1627 (max1_even): Rename from max1_r, add endian check.
1628 (max1_odd): Rename from max1_l, add endian check.
1629 (*mux1_rev): Format change.
1630 (*mux1_mix): Ditto.
1631 (*mux1_shuf): Ditto.
1632 (*mux1_alt): Ditto.
1633 (*mux1_brcst_v8qi): Use new predicate.
1634 (vec_extract_evenv8qi): Remove endian check.
1635 (vec_extract_oddv8qi): Ditto.
1636 (vec_interleave_lowv4hi): Format change.
1637 (vec_interleave_highv4hi): Ditto.
1638 (mix2_even): Rename from mix2_r, add endian check.
1639 (mix2_odd): Rename from mux2_l, add endian check.
1640 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
1641 (vec_extract_evenodd_helper): Format change.
1642 (vec_extract_evenv4hi): Remove endian check.
1643 (vec_extract_oddv4hi): Remove endian check.
1644 (vec_interleave_lowv2si): Format change.
1645 (vec_interleave_highv2si): Format change.
1646 (vec_initv2si): Remove endian check.
1647 (vecinit_v2si): Add endian check.
1648 (reduc_splus_v2sf): Add endian check.
1649 (reduc_smax_v2sf): Ditto.
1650 (reduc_smin_v2sf): Ditto.
1651 (vec_initv2sf): Remove endian check.
1652 (fpack): Add endian check.
1653 (fswap): Add endian check.
1654 (vec_interleave_highv2sf): Add endian check.
1655 (vec_interleave_lowv2sf): Add endian check.
1656 (fmix_lr): Add endian check.
1657 (vec_setv2sf): Format change.
1658 (*vec_extractv2sf_0_be): Use shift to extract operand.
1659 (*vec_extractv2sf_1_be): New.
1660 (vec_pack_trunc_v4hi): Add endian check.
1661 (vec_pack_trunc_v2si): Format change.
1662
dcde5957
JJ
16632011-02-04 Jakub Jelinek <jakub@redhat.com>
1664
1665 PR inline-asm/23200
1666 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 1667 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
1668 (stmt_is_replaceable_p): New function.
1669 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
1670 callers.
1671 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
1672 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
1673 SSA_NAME_DEF_STMT.
1674 * tree-flow.h (stmt_is_replaceable_p): New prototype.
1675
a64a8e5a
JM
16762011-02-04 Joseph Myers <joseph@codesourcery.com>
1677
1678 * config/rs6000/xilinx.opt: New.
1679 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
1680
4da2ed2f
JM
16812011-02-04 Joseph Myers <joseph@codesourcery.com>
1682
1683 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
1684
a6e508f9
AS
16852011-02-03 Anatoly Sokolov <aesok@post.ru>
1686
1687 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
1688 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1689 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
1690 secondary_reload_info, xtensa_secondary_reload): Remove.
1691 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
1692 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1693 (xtensa_preferred_reload_class): Make static. Change return and
1694 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
1695 Use CONST_DOUBLE_P predicate.
1696 (xtensa_preferred_output_reload_class): New function.
1697 (xtensa_secondary_reload): Make static.
1698
82dc0de3
JM
16992011-02-03 Joseph Myers <joseph@codesourcery.com>
1700
1701 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
1702 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
1703 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
1704
7fece979
JJ
17052011-02-03 Jakub Jelinek <jakub@redhat.com>
1706
1707 PR middle-end/31490
1708 * output.h (SECTION_RELRO): Define.
1709 (SECTION_MACH_DEP): Adjust.
1710 (get_variable_section): New prototype.
1711 * varpool.c (varpool_finalize_named_section_flags): New function.
1712 (varpool_assemble_pending_decls): Call it.
1713 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
1714 * cgraphunit.c (cgraph_output_in_order): Call
1715 varpool_finalize_named_section_flags.
1716 * varasm.c (get_section): Allow section flags conflicts between
1717 relro and read-only sections if the section hasn't been declared yet.
1718 Set SECTION_OVERRIDE after diagnosing section type conflict.
1719 (get_variable_section): No longer static.
1720 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
1721 readonly sections that need relocations.
1722 (decl_readonly_section_1): New function.
1723 (decl_readonly_section): Use it.
1724
1725 Revert:
509d65dd 1726 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
1727 Steve Ellcey <sje@cup.hp.com>
1728
1729 PR middle-end/31490
1730 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1731 if section attribute used.
1732
d18d5478
JJ
17332011-02-03 Jakub Jelinek <jakub@redhat.com>
1734
1735 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
1736 * config/darwin.c (SECTION_NO_ANCHOR): Define.
1737 (darwin_init_sections): Remove assertion.
1738
6479ed4b
NC
17392011-02-03 Nick Clifton <nickc@redhat.com>
1740
1741 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
1742 lt and ge.
38be4072 1743 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
1744 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
1745 instead of "n" and "pz".
1746 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
1747 CC_FLAG_S.
1748
89843f5d
JJ
17492011-02-03 Jakub Jelinek <jakub@redhat.com>
1750
65450d64
JJ
1751 PR target/47312
1752 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
1753 fma, expand FMA_EXPR as fma{,f,l} call.
1754
7d58701c
JJ
1755 PR lto/47274
1756 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
1757 copy them into a unsigned char variable and pass address of it to
1758 lto_output_data_stream.
1759
89843f5d
JJ
1760 PR target/47564
1761 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
1762 around backend_init_target and lang_dependent_init_target calls.
1763 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
1764 (verify_cgraph_node): Don't call set_cfun here. Use
1765 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
1766 Set error_found for incorrectly represented calls to thunks.
1767
4deef538
AO
17682011-02-03 Alexandre Oliva <aoliva@redhat.com>
1769
1770 PR debug/43092
1771 PR rtl-optimization/43494
1772 * rtl.h (for_each_inc_dec_fn): New type.
1773 (for_each_inc_dec): Declare.
1774 * rtlanal.c (struct for_each_inc_dec_ops): New type.
1775 (for_each_inc_dec_find_inc_dec): New fn.
1776 (for_each_inc_dec_find_mem): New fn.
1777 (for_each_inc_dec): New fn.
1778 * dse.c (struct insn_size): Remove.
1779 (replace_inc_dec, replace_inc_dec_mem): Remove.
1780 (emit_inc_dec_insn_before): New fn.
1781 (check_for_inc_dec): Use it, along with for_each_inc_dec.
1782 (canon_address): Pass mem modes to cselib_lookup.
1783 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
1784 (cselib_lookup_from_insn): Likewise.
1785 (cselib_subst_to_values): Likewise.
1786 * cselib.c (find_slot_memmode): New var.
1787 (cselib_find_slot): New fn. Use it instead of
1788 htab_find_slot_with_hash everywhere.
1789 (entry_and_rtx_equal_p): Use find_slot_memmode.
1790 (autoinc_split): New fn.
1791 (rtx_equal_for_cselib_p): Rename and implement in terms of...
1792 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
1793 Deal with autoinc. Special-case recursion into MEMs.
1794 (cselib_hash_rtx): Likewise.
1795 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
1796 address and MEM modes.
1797 (cselib_subst_to_values): Add memmode, pass it on.
1798 Deal with autoinc.
1799 (cselib_lookup): Add memmode argument, pass it on.
1800 (cselib_lookup_from_insn): Add memmode.
1801 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
1802 (struct cselib_record_autoinc_data): New.
1803 (cselib_record_autoinc_cb): New fn.
1804 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
1805 mode to cselib_lookup. Reset autoinced REGs here instead of...
1806 (cselib_process_insn): ... here.
1807 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
1808 to cselib_lookup.
1809 (add_uses): Likewise, also to cselib_subst_to_values.
1810 (add_stores): Likewise.
1811 * sched-deps.c (add_insn_mem_dependence): Pass mode to
1812 cselib_subst_to_values.
1813 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
1814 * gcse.c (do_local_cprop): Adjusted.
1815 * postreload.c (reload_cse_simplify_set): Adjusted.
1816 (reload_cse_simplify_operands): Adjusted.
1817 * sel-sched-dump (debug_mem_addr_value): Pass mode.
1818
1551d44a
AO
18192011-02-03 Alexandre Oliva <aoliva@redhat.com>
1820
1821 PR tree-optimization/45122
1822 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
1823 unsafe assumptions when there's more than one loop exit.
1824
c9485473
MM
18252011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1826
1827 PR target/47272
1828 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1829 Document using vector double with the load/store builtins, and
1830 that the load/store builtins always use Altivec instructions.
1831
1832 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
1833 to use altivec memory instructions, even on VSX.
1834 (vector_altivec_store_<mode>): Ditto.
1835
1836 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
1837 function.
1838
1839 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1840 V2DF, V2DI support to load/store overloaded builtins.
1841
1842 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
1843 altivec load/store builtins for V2DF/V2DI types.
1844
1845 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1846 set avoid indexed addresses on power6 if -maltivec.
1847 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
1848 vector_altivec_load/vector_altivec_store builtins.
1849 (altivec_expand_st_builtin): Ditto.
1850 (altivec_expand_builtin): Add VSX memory builtins.
1851 (rs6000_init_builtins): Add V2DI types to internal types.
1852 (altivec_init_builtins): Add support for V2DF/V2DI altivec
1853 load/store builtins.
1854 (rs6000_address_for_altivec): Insure memory address is appropriate
1855 for Altivec.
1856
1857 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
1858 vec_vsx_ld and vec_vsx_st.
1859 (vsx_store_<mode>): Ditto.
1860
1861 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
1862 variables to hold long long types for VSX vector memory builtins.
1863 (RS6000_BTI_unsigned_long_long): Ditto.
1864 (long_long_integer_type_internal_node): Ditti.
1865 (long_long_unsigned_type_internal_node): Ditti.
1866
1867 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
1868 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
1869 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
1870
1871 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
1872 short cuts.
1873 (vec_vsx_st): Ditto.
1874
b24d1acf
JM
18752011-02-02 Joseph Myers <joseph@codesourcery.com>
1876
1877 * config/pa/pa-hpux10.opt: New.
1878 * config/hpux11.opt (pthread): New Driver option.
1879 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
1880 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
1881
aa18dd0f
JM
18822011-02-02 Joseph Myers <joseph@codesourcery.com>
1883
1884 * config/ia64/vms.opt: New.
1885 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
1886
28fc3eee
MM
18872011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1888
1889 PR target/47580
1890 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
1891 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
1892 generator functions.
1893 (vsx_floatuns<VSi><mode>2): Ditto.
1894 (vsx_fix_trunc<mode><VSi>2): Ditto.
1895 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
1896
b5838b1f
JM
18972011-02-02 Joseph Myers <joseph@codesourcery.com>
1898
1899 * config/i386/djgpp.opt (posix): New Driver option.
1900
0db8fa89
GP
19012011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1902
1903 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
1904 Move to the unsupported targets list.
1905
9cd4f22a
PB
19062011-02-02 Peter Bergner <bergner@vnet.ibm.com>
1907
1908 PR rtl-optimization/47525
1909 * df-scan.c: Update copyright years.
1910 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
1911 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
1912
9ed8059c
RO
19132011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1914
1915 * config/i386/sysv4.h (TARGET_VERSION): Remove.
1916 (SUBTARGET_RETURN_IN_MEMORY): Remove.
1917 (ASM_OUTPUT_ASCII): Remove.
1918 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
1919
2a737389
JL
19202011-02-02 Jeff Law <law@redhat.com>
1921
1922 PR middle-end/47543
1923 * reload.c (find_reloads_address): Handle reg+d address where both
1924 components are invalid by reloading the entire address.
1925
9dac82c4
SP
19262011-02-02 Sebastian Pop <sebastian.pop@amd.com>
1927 Richard Guenther <rguenther@suse.de>
1928
1929 PR tree-optimization/40979
1930 PR bootstrap/47044
1931 * passes.c (init_optimization_passes): After LIM call copy_prop
1932 and DCE to clean up.
1933 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
1934
14dd9aab
SP
19352011-02-02 Sebastian Pop <sebastian.pop@amd.com>
1936
1937 PR tree-optimization/47576
1938 PR tree-optimization/47555
1939 * doc/invoke.texi (scev-max-expr-complexity): Documented.
1940 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1941 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
1942 * tree-scalar-evolution.c (follow_ssa_edge): Use
1943 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
1944
5cbf5c20
RG
19452011-02-02 Richard Guenther <rguenther@suse.de>
1946
1947 PR tree-optimization/47566
1948 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
1949
83d70792
AO
19502011-02-02 Alexandre Oliva <aoliva@redhat.com>
1951
e829c321
AO
1952 PR debug/47106
1953 PR debug/47402
1954 * tree-inline.c (declare_return_variable): Remove unused caller
1955 variable.
1956
83d70792
AO
1957 PR debug/47106
1958 PR debug/47402
1959 * tree-flow-inline.h (clear_is_used, is_used_p): New.
1960 * cfgexpand.c (account_used_vars_for_block): Use them.
1961 * tree-nrv.c (tree_nrv): Likewise.
1962 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
1963 (dump_scope_block): Likewise.
1964 (remove_unused_locals): Likewise.
1965
aaa2ac93
AO
1966 PR debug/47106
1967 PR debug/47402
1968 * tree-inline.c (declare_return_variable): Add result decl to
1969 local decls only once.
1970 * gimple-low.c (record_vars_into): Mark newly-created variables
1971 as referenced.
1972
a59d15cf
AO
19732011-02-02 Alexandre Oliva <aoliva@redhat.com>
1974
1975 PR debug/47498
1976 PR debug/47501
1977 PR debug/45136
1978 PR debug/45130
1979 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1980 debug insns.
1981 (no_real_insns_p, schedule_block, set_priorities): Drop special
1982 treatment of boundary debug insns.
38be4072 1983 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
1984 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
1985 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1986 (BOUNDARY_DEBUG_INSN_P): Likewise.
1987 (SCHEDULE_DEBUG_INSN_P): Likewise.
1988 * sched-rgn.c (init_ready_list): Drop special treatment of
1989 boundary debug insns.
1990 * final.c (rest_of_clean_state): Clear notes' BB.
1991
6fc2f091
JM
19922011-02-01 Joseph Myers <joseph@codesourcery.com>
1993
1994 * config/openbsd.opt (assert=): New Driver option.
1995
fc523387
JM
19962011-02-01 Joseph Myers <joseph@codesourcery.com>
1997
1998 * config/i386/nto.opt: New.
1999 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
2000
6d9821e5
JM
20012011-02-01 Joseph Myers <joseph@codesourcery.com>
2002
2003 * config/i386/netware.opt: New.
2004 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
2005
cef932d4
JM
20062011-02-01 Joseph Myers <joseph@codesourcery.com>
2007
2008 * config/interix.opt (posix): New Driver option.
2009
22843acd
DD
20102011-02-01 DJ Delorie <dj@redhat.com>
2011
56490b74
DD
2012 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
2013
22843acd
DD
2014 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
2015 class for A0/A1.
2016
199c8f2f
SP
20172011-02-01 Sebastian Pop <sebastian.pop@amd.com>
2018
2019 PR tree-optimization/47561
2020 * toplev.c (process_options): Print the Graphite flags. Add
2021 flag_loop_flatten to the list of options requiring Graphite.
2022
926bcf22
JM
20232011-02-01 Joseph Myers <joseph@codesourcery.com>
2024
2025 * config/i386/cygming.opt (posix): New Driver option.
2026
59793c51
JM
20272011-02-01 Joseph Myers <joseph@codesourcery.com>
2028
2029 * config/arm/vxworks.opt: New.
2030 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
2031
183c38a4
JM
20322011-02-01 Joseph Myers <joseph@codesourcery.com>
2033
2034 * config/alpha/elf.opt: New.
2035 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
2036 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
2037
9939e416
RG
20382011-02-01 Richard Guenther <rguenther@suse.de>
2039
2040 PR tree-optimization/47559
2041 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
2042 store-motion on references that can throw.
2043
4a3c9687
BS
20442011-02-01 Bernd Schmidt <bernds@codesourcery.com>
2045
2046 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
2047 * tree-pass.h (TDF_CSELIB): New macro.
2048 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
2049 cselib_lookup): Check for it rather than for TDF_DETAILS.
2050
dd3b31fb
L
20512011-02-01 H.J. Lu <hongjiu.lu@intel.com>
2052
2053 PR driver/47547
2054 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
2055 is HOST_BIT_BUCKET.
2056
2057 * opts.c (finish_options): Don't add x_aux_base_name if it is
2058 HOST_BIT_BUCKET.
2059
34c1de79
RG
20602011-02-01 Richard Guenther <rguenther@suse.de>
2061
2062 PR tree-optimization/47555
2063 Revert
2064 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
2065
2066 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
2067
dd2804d2
SB
20682011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
2069
2070 PR gcc/46692
2071 * config/lm32/t-lm32: Add multilib for all CPU options.
2072
3fd3b156
RG
20732011-02-01 Richard Guenther <rguenther@suse.de>
2074
2075 PR tree-optimization/47541
2076 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2077 sure to have a field at offset zero.
2078
f16072b6
JM
20792011-01-31 Joseph Myers <joseph@codesourcery.com>
2080
2081 * config/arc/arc.opt (EB, EL): New Driver options.
2082
6456cf2e
JM
20832011-01-31 Joseph Myers <joseph@codesourcery.com>
2084
2085 * config/alpha/osf5.opt: New.
2086 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
2087
cdde6ab4
JM
20882011-01-31 Joseph Myers <joseph@codesourcery.com>
2089
2090 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
2091
7633415c
SP
20922011-01-31 Sebastian Pop <sebastian.pop@amd.com>
2093
2094 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
2095 -floop-interchange.
2096 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
2097 is an alias of -floop-interchange and that it requires the
2098 Graphite infrastructure.
2099 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
2100 flag_loop_interchange based on the value of flag_tree_loop_linear.
2101
0425d6f5
JJ
21022011-01-31 Jakub Jelinek <jakub@redhat.com>
2103 Richard Guenther <rguenther@suse.de>
2104
2105 PR tree-optimization/47538
2106 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
2107 type instead of r1type, except for comparisons. For right
2108 shifts and comparisons punt if there are mismatches in
2109 sizetype vs. non-sizetype types.
2110
500b16c3
RO
21112011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2112
2113 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2114 avx_runtime.
2115
e279edb0
RO
21162011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2117
2118 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
2119 version number.
2120 * configure: Regenerate.
2121
c6092243
RO
21222011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2123
2124 * configure.ac (gcc_cv_ld_static_option): Define.
2125 (gcc_cv_ld_dynamic_option): Define.
2126 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
2127 instead.
2128 (HAVE_LD_STATIC_DYNAMIC): Update message.
2129 (LD_STATIC_OPTION): Define.
2130 (LD_DYNAMIC_OPTION): Define.
2131 * configure: Regenerate.
2132 * config.in: Regenerate.
2133 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
2134 HAVE_LD_STATIC_DYNAMIC]: Use them.
2135
d7862be3
NC
21362011-01-31 Nick Clifton <nickc@redhat.com>
2137
2138 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
2139 registers inside interrupt handlers if the handler is not a leaf
2140 function.
2141
ba4ec0e0
NC
21422011-01-31 Nick Clifton <nickc@redhat.com>
2143
2144 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
2145 reg_renumber returning an INVALID_REGNUM.
2146
29a63921
AO
21472011-01-31 Alexandre Oliva <aoliva@redhat.com>
2148
2149 PR libgcj/44341
2150 * doc/install.texi: Document host options discarded when cross
2151 configuring target libraries.
2152
ef591d3f
AO
21532011-01-31 Alexandre Oliva <aoliva@redhat.com>
2154
2155 Reverted:
2156 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
2157 PR debug/45136
2158 PR debug/45130
2159 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2160 debug insns.
2161 (no_real_insns_p, schedule_block, set_priorities): Drop special
2162 treatment of boundary debug insns.
38be4072 2163 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
2164 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
2165 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2166 (BOUNDARY_DEBUG_INSN_P): Likewise.
2167 (SCHEDULE_DEBUG_INSN_P): Likewise.
2168 * sched-rgn.c (init_ready_list): Drop special treatment of
2169 boundary debug insns.
2170 * final.c (rest_of_clean-state): Clear notes' BB.
2171
61052244
AM
21722011-01-31 Alan Modra <amodra@gmail.com>
2173
2174 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
2175 toc relative expressions as we do in print_operand_address.
2176
c4c8962b
KH
21772011-01-30 Kazu Hirata <kazu@codesourcery.com>
2178
2179 * doc/extend.texi: Follow spelling conventions.
2180 * doc/invoke.texi: Fix a typo.
2181
e543b94c
JM
21822011-01-30 Joseph Myers <joseph@codesourcery.com>
2183
2184 * config/hpux11.opt: New.
2185 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
2186 ia64*-*-hpux*): Use hpux11.opt.
2187
509d65dd 21882011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
2189
2190 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
2191 to tmake_file.
2192
7be03a0e
GP
21932011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
2194
2195 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
2196 support sites.
2197
419d1d37
GP
21982011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
2199
b596ed64
GP
2200 * doc/install.texi (Binaries): Remove outdated reference for
2201 Motorola 68HC11/68HC12 downloads.
2202
22032011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 2204
419d1d37
GP
2205 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
2206 Drepper's paper.
2207
4406d0e9
JW
22082011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2209
2210 PR bootstrap/47147
2211 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
2212 used by NetBSD.
2213
38be4072 22142011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
2215
2216 * value-prof.c (check_counter): Corrected error message.
2217
0cd98787
JZ
22182011-01-29 Jie Zhang <jie@codesourcery.com>
2219
2220 * config/arm/arm.c (arm_legitimize_reload_address): New.
2221 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
2222 arm_legitimize_reload_address.
38be4072 2223 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 2224
9b798ac5
ILT
22252011-01-28 Ian Lance Taylor <iant@google.com>
2226
2227 * godump.c (go_define): Ignore macros whose definitions include
2228 two adjacent operands.
2229
591e29d9
JJ
22302011-01-28 Jakub Jelinek <jakub@redhat.com>
2231
2232 PR target/42894
2233 * varasm.c (force_const_mem): Store copy of x in desc->constant
2234 instead of x itself.
2235 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
2236 itself into REG_EQUAL note.
2237
62dcc44a
JM
22382011-01-28 Joseph Myers <joseph@codesourcery.com>
2239
2240 * config/freebsd.opt (posix, rdynamic): New Driver options.
2241
c9f58b9a
RO
22422011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2243
2244 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
2245 -Bstatic/-Bdynamic.
2246 * configure: Regenerate.
2247
5f02b9db
JM
22482011-01-27 Joseph Myers <joseph@codesourcery.com>
2249
2250 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
2251 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
2252
5df97412
AS
22532011-01-27 Anatoly Sokolov <aesok@post.ru>
2254
2255 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
2256 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
2257 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2258 (s390_preferred_reload_class): Make static. Change return and
2259 'rclass' argument type to reg_class_t.
2260
779d4b91
JH
22612011-01-27 Jan Hubicka <jh@suse.cz>
2262
2263 PR middle-end/46949
2264 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
2265 (process_function_and_variable_attributes): Check defined weakrefs.
2266
e80b21ed
MJ
22672011-01-27 Martin Jambor <mjambor@suse.cz>
2268
2269 PR tree-optimization/47228
2270 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
2271 build_ref_for_offset.
2272
6dcc4f31
UW
22732011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2274
2275 * config/spu/spu-elf.h (ASM_SPEC): Remove.
2276
509d65dd 22772011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
2278
2279 PR rtl-optimization/46856
2280 * postreload.c (reload_combine_recognize_const_pattern): Do not
2281 separate cc0 setter and user on cc0 targets.
2282
04af8788
NP
22832011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
2284
2285 PR c/43082
2286 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
2287 passed a VOID_TYPE expression, immediately emit an error and
2288 return error_mark_node.
2289
f7a60085
JL
22902011-01-26 Jeff Law <law@redhat.com>
2291
2292 PR rtl-optimization/47464
2293 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
2294 rather than may_trap_p as needed.
2295
5c2917ec
DD
22962011-01-26 DJ Delorie <dj@redhat.com>
2297
2298 PR rtl-optimization/46878
2299 * combine.c (insn_a_feeds_b): Check for the implicit cc0
2300 setter/user dependency as well.
2301
bef16e87
EB
23022011-01-26 Eric Botcazou <ebotcazou@adacore.com>
2303
2304 PR rtl-optimization/44469
2305 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
2306 after removing trivially dead basic blocks.
2307
c75d884b
JM
23082011-01-26 Joseph Myers <joseph@codesourcery.com>
2309
2310 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
2311 * config/frv/frv.h (LINK_SPEC): Likewise.
2312 * config/i386/netware.h (LINK_SPEC): Likewise.
2313 * config/m68k/linux.h (ASM_SPEC): Likewise.
2314 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
2315 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2316 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2317 * config/sparc/linux.h (ASM_SPEC): Likewise.
2318 * config/sparc/linux64.h (ASM_SPEC): Likewise.
2319 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2320
d3153553
JM
23212011-01-26 Joseph Myers <joseph@codesourcery.com>
2322
2323 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
2324 * config/frv/frv.h (ASM_SPEC): Likewise.
2325 * config/m68k/linux.h (ASM_SPEC): Likewise.
2326 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
2327 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
2328 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2329 * config/sparc/linux.h (ASM_SPEC): Likewise.
2330 * config/sparc/linux64.h (ASM_SPEC): Likewise.
2331 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2332
b89b1e9d
JM
23332011-01-26 Joseph Myers <joseph@codesourcery.com>
2334
2335 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
2336 * config/frv/frv.h (LINK_SPEC): Likewise.
2337 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
2338
12eb1a9c
JM
23392011-01-26 Joseph Myers <joseph@codesourcery.com>
2340
2341 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
2342 * config/frv/frv.h (ASM_SPEC): Likewise.
2343 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
2344 * config/m68k/linux.h (ASM_SPEC): Likewise.
2345 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
2346 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
2347 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2348 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
2349 * config/sparc/linux.h (ASM_SPEC): Likewise.
2350 * config/sparc/linux64.h (ASM_SPEC): Likewise.
2351 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
2352 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
2353
e435f098
SE
23542011-01-26 Steve Ellcey <sje@cup.hp.com>
2355
2356 PR target/46997
2357 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
2358 (*mux2): Ditto.
2359 (vec_extract_evenodd_help): Ditto.
2360 (vec_extract_evenv4hi): Ditto.
2361 (vec_extract_oddv4hi): Ditto.
2362 (vec_interleave_lowv2si): Ditto.
2363 (vec_interleave_highv2si): Ditto.
2364 (vec_extract_evenv2si): Ditto.
2365 (vec_extract_oddv2si: Ditto.
2366 (vec_pack_trunc_v2si): Ditto.
2367
34f0eee0
JH
23682011-01-22 Jan Hubicka <jh@suse.cz>
2369
2370 PR target/47237
2371 * cgraph.h (cgraph_local_info): New field can_change_signature.
2372 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
2373 signature can change.
2374 (ipcp_estimate_growth): Call sequence simplify only if calle signature
2375 can change.
2376 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
2377 (cgraph_function_versioning): We can not change signature of functions
2378 that don't allow that.
2379 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
2380 (lto_input_node): Likewise.
38be4072
UB
2381 * ipa-inline.c (compute_inline_parameters): Compute
2382 local.can_change_signature.
34f0eee0 2383 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
2384 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
2385 functions that can not change signature.
34f0eee0 2386 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
2387 init_cumulative_args): Do not use local calling conventions
2388 for functions that can not change signature.
34f0eee0 2389
980ca891
JH
23902011-01-22 Jan Hubicka <jh@suse.cz>
2391
2392 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
2393
768e3c60
RG
23942011-01-26 Richard Guenther <rguenther@suse.de>
2395
2396 PR tree-optimization/47190
61052244
AM
2397 * cgraphunit.c (process_common_attributes): New function.
2398 (process_function_and_variable_attributes): Use it.
768e3c60 2399
21d6a1c7
RG
24002011-01-26 Richard Guenther <rguenther@suse.de>
2401
2402 PR lto/47423
2403 * cgraphbuild.c (record_eh_tables): Record reference to personality
2404 function.
2405
48bb58b1
AO
24062011-01-26 Alexandre Oliva <aoliva@redhat.com>
2407
2408 PR debug/45454
2409 * sel-sched.c (moveup_expr): Don't let debug insns prevent
2410 non-debug insns from moving up.
2411
58c741a6
DK
24122011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2413
2414 PR target/40125
2415 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
2416 t-dlldir{,-x} fragment for build and add it to tmake_file.
2417 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
2418 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
2419 * config/i386/t-dlldir: New file.
2420 (SHLIB_DLLDIR): Define.
2421 * config/i386/t-dlldir-x: New file.
2422 (SHLIB_DLLDIR): Define.
2423 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
2424 (SHLIB_INSTALL): Use it.
2425
bff99262
CLT
24262011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
2427
2428 PR target/47246
2429 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
2430 lower bound of the allowed Thumb-2 coprocessor load/store
2431 index range to -256. Add explaining comment.
2432
82c03907
ILT
24332011-01-25 Ian Lance Taylor <iant@google.com>
2434
2435 * godump.c (go_define): Improve lexing of macro expansion to only
2436 accept expressions which match Go spec.
2437
47ea1edf
DK
24382011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2439
d4dba752 2440 PR c++/43601
47ea1edf
DK
2441 * tree.c (handle_dll_attribute): Handle it.
2442 * doc/extend.texi (@item dllexport): Mention it.
2443 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
2444
744f0946
ILT
24452011-01-25 Ian Lance Taylor <iant@google.com>
2446
2447 PR tree-optimization/26854
2448 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
2449 (decl_jump_unsafe): Move higher in file, with no other change.
2450 (bind): Set has_jump_unsafe_decl if appropriate.
2451 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
2452 (check_earlier_gotos): Likewise.
2453 (c_check_switch_jump_warnings): Likewise.
2454
5734f2b3
JW
24552011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
2456
2457 * doc/invoke.texi (Warning Options): Add missing hyphen.
2458 (-fprofile-dir): Minor grammatical fixes.
2459 (-fbranch-probabilities): Likewise.
2460
9bdbdcef
AO
24612011-01-25 Alexandre Oliva <aoliva@redhat.com>
2462
2463 PR debug/45136
2464 PR debug/45130
2465 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
2466 debug insns.
2467 (no_real_insns_p, schedule_block, set_priorities): Drop special
2468 treatment of boundary debug insns.
38be4072 2469 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
2470 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
2471 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
2472 (BOUNDARY_DEBUG_INSN_P): Likewise.
2473 (SCHEDULE_DEBUG_INSN_P): Likewise.
2474 * sched-rgn.c (init_ready_list): Drop special treatment of
2475 boundary debug insns.
2476 * final.c (rest_of_clean-state): Clear notes' BB.
2477
b305e3da
SP
24782011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2479
2480 * Makefile.in (LAMBDA_H): Removed.
2481 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
2482 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
2483 lambda-trans.o, and tree-loop-linear.o.
2484 (lto-symtab.o): Remove dependence on LAMBDA_H.
2485 (tree-loop-linear.o): Remove rule.
2486 (lambda-mat.o): Same.
2487 (lambda-trans.o): Same.
2488 (lambda-code.o): Same.
2489 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
2490 (tree-vect-slp.o): Same.
2491 * hwint.h (gcd): Moved here.
2492 (least_common_multiple): Same.
2493 * lambda-code.c: Removed.
2494 * lambda-mat.c: Removed.
2495 * lambda-trans.c: Removed.
2496 * lambda.h: Removed.
2497 * tree-loop-linear.c: Removed.
2498 * lto-symtab.c: Do not include lambda.h.
2499 * omega.c (gcd): Removed.
2500 * passes.c (init_optimization_passes): Remove pass_linear_transform.
2501 * tree-data-ref.c (print_lambda_vector): Moved here.
2502 (lambda_vector_copy): Same.
2503 (lambda_matrix_copy): Same.
2504 (lambda_matrix_id): Same.
2505 (lambda_vector_first_nz): Same.
2506 (lambda_matrix_row_add): Same.
2507 (lambda_matrix_row_exchange): Same.
2508 (lambda_vector_mult_const): Same.
2509 (lambda_vector_negate): Same.
2510 (lambda_matrix_row_negate): Same.
2511 (lambda_vector_equal): Same.
2512 (lambda_matrix_right_hermite): Same.
2513 * tree-data-ref.h: Do not include lambda.h.
2514 (lambda_vector): Moved here.
2515 (lambda_matrix): Same.
2516 (dependence_level): Same.
2517 (lambda_transform_legal_p): Removed declaration.
2518 (lambda_collect_parameters): Same.
2519 (lambda_compute_access_matrices): Same.
2520 (lambda_vector_gcd): Same.
2521 (lambda_vector_new): Same.
2522 (lambda_vector_clear): Same.
2523 (lambda_vector_lexico_pos): Same.
2524 (lambda_vector_zerop): Same.
2525 (lambda_matrix_new): Same.
2526 * tree-flow.h (least_common_multiple): Removed declaration.
2527 * tree-parloops.c (lambda_trans_matrix): Moved here.
2528 (LTM_MATRIX): Same.
2529 (LTM_ROWSIZE): Same.
2530 (LTM_COLSIZE): Same.
2531 (LTM_DENOMINATOR): Same.
2532 (lambda_trans_matrix_new): Same.
2533 (lambda_matrix_vector_mult): Same.
2534 (lambda_transform_legal_p): Same.
2535 * tree-pass.h (pass_linear_transform): Removed declaration.
2536 * tree-ssa-loop.c (tree_linear_transform): Removed.
2537 (gate_tree_linear_transform): Removed.
2538 (pass_linear_transform): Removed.
2539 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
2540 flag_loop_interchange.
2541
6bdfdb96
JJ
25422011-01-25 Jakub Jelinek <jakub@redhat.com>
2543
2544 PR tree-optimization/47265
2545 PR tree-optimization/47443
2546 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
2547 if name still has some uses.
2548
e4cba915
MJ
25492011-01-25 Martin Jambor <mjambor@suse.cz>
2550
2551 PR tree-optimization/47382
2552 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
2553 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
2554
509d65dd 25552011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
2556
2557 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
2558 sjlj_except_unwind_info.
2559
194313e2
RG
25602011-01-25 Richard Guenther <rguenther@suse.de>
2561
2562 PR tree-optimization/47426
2563 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
2564 visible functions results escape.
2565
147a0bcf
JJ
25662011-01-25 Jakub Jelinek <jakub@redhat.com>
2567
2568 PR target/45701
2569 * config/arm/arm.c (any_sibcall_uses_r3): New function.
2570 (arm_get_frame_offsets): Use it.
2571
db963b52
SP
25722011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2573 Jakub Jelinek <jakub@redhat.com>
2574
2575 PR tree-optimization/47271
2576 * tree-if-conv.c (bb_postdominates_preds): New.
2577 (if_convertible_bb_p): Call bb_postdominates_preds.
2578 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
2579 (predicate_scalar_phi): Call bb_postdominates_preds.
2580
bcddd3b9
NC
25812011-01-25 Nick Clifton <nickc@redhat.com>
2582
2583 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
2584 * config/rx/rx.c (rx_function_value): Likewise.
2585 (rx_promote_function_mode): Likewise.
2586 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
2587 in order to make it legitimate.
38be4072
UB
2588 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
2589 make sure that the first operand is the same as the result register.
bcddd3b9
NC
2590 (addsi3_unspec): Delete.
2591 (subdi3): Do not accept immediate operands.
2592 (subdi3_internal): Likewise.
2593
7e6cb022
JL
25942011-01-25 Jeff Law <law@redhat.com>
2595
2596 PR rtl-optimization/37273
2597 * ira-costs.c (scan_one_insn): Detect constants living in memory and
2598 handle them like argument loads from stack slots. Do not double
2599 count memory for memory constants and argument loads from stack slots.
2600
9ffa621e
JJ
26012011-01-25 Jakub Jelinek <jakub@redhat.com>
2602
2603 PR tree-optimization/47427
2604 PR tree-optimization/47428
2605 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2606 coalesce if the new root var would be TREE_READONLY.
2607
5bd6e652
RG
26082011-01-25 Richard Guenther <rguenther@suse.de>
2609
2610 PR middle-end/47414
2611 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
2612 correct type for TBAA.
2613
7c48ea69
SP
26142011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2615
2616 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
2617 (close_phi_written_to_memory): Call for_each_index with
2618 dr_indices_valid_in_loop.
2619
38013f25
SP
26202011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2621
2622 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
2623 when it is initialized.
2624
5c640e29
SP
26252011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2626
2627 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
2628 call to graphite_find_data_references_in_stmt.
2629 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
2630 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
2631 call to graphite_find_data_references_in_stmt.
2632 (analyze_drs_in_stmts): Same.
2633 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
2634 in which the scalar analysis of indices is performed.
2635 (create_data_ref): Same. Update call to dr_analyze_indices.
2636 (find_data_references_in_stmt): Update call to create_data_ref.
2637 (graphite_find_data_references_in_stmt): Same.
2638 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
2639 declaration.
2640 (create_data_ref): Same.
2641 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
2642 call to create_data_ref.
2643
ac53c069
SP
26442011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2645
2646 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 2647 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 2648
3d17df15
SP
26492011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2650
2651 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
2652 VAR_DECL, PARM_DECL, and RESULT_DECL.
2653
c513da01
SP
26542011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2655
2656 * graphite-dependences.c (reduction_dr_1): Allow several reductions
2657 in a reduction PBB.
2658 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
2659 that have already been marked as PBB_IS_REDUCTION.
2660
3a292d59
SP
26612011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2662
2663 * graphite-scop-detection.c (same_close_phi_node): New.
2664 (remove_duplicate_close_phi): New.
2665 (make_close_phi_nodes_unique): New.
2666 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
2667
ba858447
SP
26682011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2669
2670 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
2671 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
2672 of both data references to be the same.
2673
8d865c56
SP
26742011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2675
38be4072
UB
2676 * graphite-dependences.c (build_lexicographical_constraint): Remove
2677 the gdim parameter.
2678 (build_lexicographical_constraint): Adjust call to
2679 ppl_powerset_is_empty.
8d865c56
SP
2680 (dependence_polyhedron): Same.
2681 (graphite_legal_transform_dr): Same.
2682 (graphite_carried_dependence_level_k): Same.
38be4072
UB
2683 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
2684 parameter.
8d865c56
SP
2685 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
2686
50034a36
SP
26872011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2688
2689 * graphite-sese-to-poly.c
2690 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
2691 (close_phi_written_to_memory): New.
2692 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
2693 and unshare_expr.
2694
0deada9e
SP
26952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2696
2697 * doc/install.texi: Update the expected version number of PPL to 0.11.
2698 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
2699 #if PPL_VERSION_MINOR < 11.
2700
d7d3d6af
SP
27012011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2702
2703 * graphite-dependences.c: Include graphite-cloog-util.h.
2704 (new_poly_ddr): Inlined into dependence_polyhedron.
2705 (free_poly_ddr): Moved close by new_poly_ddr.
2706 (dependence_polyhedron_1): Renamed dependence_polyhedron.
2707 Early return NULL when ppl_powerset_is_empty returns true.
2708 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
2709 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
2710 (graphite_legal_transform_dr): Call new_poly_ddr.
2711 (graphite_carried_dependence_level_k): Same.
2712 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
2713 (dot_transformed_deps_stmt_1): Removed.
2714 (dot_deps_stmt_1): Call dot_deps_stmt_2.
2715 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
2716 (dot_deps_1): Call dot_deps_2.
2717 * Makefile.in (graphite-dependences.o): Add missing dependence on
2718 graphite-cloog-util.h.
2719
28c5db57
SP
27202011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2721
2722 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
2723 (build_lexicographical_constraint): Same.
2724 (dependence_polyhedron_1): Same.
2725 (graphite_legal_transform_dr): Same.
2726 (graphite_carried_dependence_level_k): Same.
2727 * graphite-ppl.c (ppl_powerset_is_empty): New.
2728 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
2729 * tree-data-ref.c (dump_data_reference): Print the basic block index.
2730
5168d98f
SP
27312011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2732
2733 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
2734 the "a followed by b" relation and document it.
2735
4a40293a
SP
27362011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2737
2738 * graphite-dependences.c (build_lexicographical_constraint): Stop the
2739 iteration when the bag of constraints is empty.
2740
271fb6fa
SP
27412011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2742
2743 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
2744
92d23680
SP
27452011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2746
2747 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
2748 nest and two loop depths as parameters.
2749 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
2750 lst_perfect_nestify.
2751
2f51deff
SP
27522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2753
2754 * graphite-dependences.c (print_pddr): Call
2755 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
2756
07f3593c
SP
27572011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2758
2759 * graphite-ppl.c (debug_gmp_value): New.
2760 * graphite-ppl.h (debug_gmp_value): Declared.
2761
3fae6099
TG
27622011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
2763
2764 * doc/install.texi: Document availability of cloog-0.16.
2765
1c3ba85b
SP
27662011-01-25 Vladimir Kargov <kargov@gmail.com>
2767
2768 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
2769 invalid postdominance info.
2770
e8ba94fc
JH
27712011-01-24 Jan Hubicka <jh@suse.cz>
2772
2773 PR c/21659
2774 * doc/extend.texi (weak pragma): Drop claim that it must
2775 appear before definition.
2776 * varasm.c (merge_weak, declare_weak): Only sanity check
2777 that DECL is not output at a time it is declared weak.
2778
2b6e2d13
KZ
27792011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
2780
2781 * machmode.def: Fixed comments.
1c3ba85b 2782
9841210f
KT
27832011-01-24 Kai Tietz <kai.tietz@onevision.com>
2784
2785 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
2786
27872011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
2788
2789 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 2790 WORDS_BIG_ENDIAN.
e046112d 2791
a6c5070a
L
27922011-01-24 H.J. Lu <hongjiu.lu@intel.com>
2793
2794 PR target/46519
2795 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
2796 (block_info): Add scanned and prev.
2797 (move_or_delete_vzeroupper_2): Return if the basic block
2798 has been scanned and the upper 128bit state is unchanged
2799 from the last scan.
2800 (move_or_delete_vzeroupper_1): Return true if the exit
2801 state is changed.
2802 (move_or_delete_vzeroupper): Visit basic blocks using the
2803 work-list based algorithm based on vt_find_locations in
2804 var-tracking.c.
2805
2806 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
2807
a40d79d7
NC
28082011-01-24 Nick Clifton <nickc@redhat.com>
2809
2810 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
2811 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
2812 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
2813 then define __v850e1__.
2814 * doc/invoke.texi: Document -mv850es.
2815
440eb8de
RH
28162011-01-24 Richard Henderson <rth@redhat.com>
2817
2818 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
2819 compound unordered comparisons.
2820 * config/rx/rx.c (rx_split_fp_compare): Remove.
2821 * config/rx/rx-protos.h: Update.
2822 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
2823 (cbranchsf4): Don't call rx_split_fp_compare.
2824 (*cbranchsf4): Use rx_split_cbranch.
2825 (*cmpsf): Don't accept "i" constraint.
2826 (*conditional_branch): Only valid after reload.
2827 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
2828
3ff79f99
MM
28292011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2830
2831 PR target/47385
2832 * config/rs6000/altivec.md (vector constant splitters): Add
2833 support for creating vector single precision constants if -mvsx is
2834 used and we would create the constant using Altivec primitives.
2835
ff3d9d08
BS
28362011-01-23 Bernd Schmidt <bernds@codesourcery.com>
2837 Richard Sandiford <rdsandiford@googlemail.com>
2838
2839 PR rtl-optimization/47166
2840 * reload1.c (emit_reload_insns): Disable the spill_reg_store
2841 mechanism for PRE_MODIFY and POST_MODIFY.
2842 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
2843 reloadreg.
2844
7fcaf152
AS
28452011-01-23 Andreas Schwab <schwab@linux-m68k.org>
2846
8788adb6 2847 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 2848
d09b58c4
JH
28492011-01-22 Jan Hubicka <jh@suse.cz>
2850
2851 PR lto/47333
2852 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
2853
e8ff8c5a
JH
28542011-01-22 Jan Hubicka <jh@suse.cz>
2855
2856 PR tree-optimization/43884
2857 PR lto/44334
8788adb6 2858 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
2859 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
2860
ccaed3ba
AS
28612011-01-22 Anatoly Sokolov <aesok@post.ru>
2862
2863 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2864 * config/s390/s390.c (s390_register_move_cost,
2865 s390_memory_move_cost): New.
2866 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2867
0cecee06
UW
28682011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2869
2870 PR middle-end/47401
2871 * except.c (sjlj_assign_call_site_values): Move setting the
2872 crtl->uses_eh_lsda flag to ...
2873 (sjlj_mark_call_sites): ... here.
2874 (sjlj_emit_function_enter): Support NULL dispatch label.
2875 (sjlj_build_landing_pads): In a function with no landing pads
2876 that still has must-not-throw regions, generate code to register
2877 a personality function with empty LSDA.
2878
e692f276
RH
28792011-01-21 Richard Henderson <rth@redhat.com>
2880
1b7ae0b7
RH
2881 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
2882
3843787f
RH
2883 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
2884
e692f276
RH
2885 * compare-elim.c: New file.
2886 * Makefile.in (OBJS-common): Add it.
2887 (compare-elim.o): New.
2888 * common.opt (fcompare-elim): New.
2889 * opts.c (default_options_table): Add OPT_fcompare_elim.
2890 * tree-pass.h (pass_compare_elim_after_reload): New.
2891 * passes.c (init_optimization_passes): Add it.
2892 * recog.h: Protect against re-inclusion.
2893 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
2894 * doc/invoke.texi (-fcompare-elim): Document it.
2895 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
2896 * doc/tm.texi: Rebuild.
2897
9a7c2050
NC
28982011-01-22 Nick Clifton <nickc@redhat.com>
2899
2900 * config/rx/rx.md (cstoresf4): Pass comparison operator to
2901 rx_split_fp_compare.
2902
15ba5696
NC
29032011-01-22 Nick Clifton <nickc@redhat.com>
2904
2905 * config/rx/rx.md (UNSPEC_CONST): New.
2906 (deallocate_and_return): Wrap the amount popped off the stack in
2907 an UNSPEC_CONST in order to stop it being rejected by
2908 -mmax-constant-size.
2909 (pop_and_return): Add a "(return)" rtx.
2910 (call): Drop the immediate operand.
2911 (call_internal): Likewise.
2912 (call_value): Likewise.
2913 (call_value_internal): Likewise.
2914 (sibcall_internal): Likewise.
2915 (sibcall_value_internal): Likewise.
2916 (sibcall): Likewise. Generate an explicit call using
2917 sibcall_internal.
2918 (sibcall_value): Likewise.
2919 (mov<>): FAIL if a constant operand is not legitimate.
2920 (addsi3_unpsec): New pattern.
9a7c2050 2921
38be4072 2922 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
2923 (ok_for_max_constant): New function.
2924 (gen_safe_add): New function.
2925 (rx_expand_prologue): Use gen_safe_add.
2926 (rx_expand_epilogue): Likewise.
2927 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
2928 UNSPEC CONSTs.
2929
caaf13d3
JL
29302011-01-21 Jeff Law <law@redhat.com>
2931
2932 PR tree-optimization/47053
2933 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
2934 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
2935 statements are deleted.
2936 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
2937 is nonempty, then purge dead edges and cleanup the CFG.
2938
12c30f2f
AO
29392011-01-21 Alexandre Oliva <aoliva@redhat.com>
2940
2941 PR debug/47402
2942 Temporarily revert:
2943 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2944 PR debug/47106
2945 * tree-dfa.c (create_var_ann): Mark variable as used.
2946
7360d2ac
JJ
29472011-01-21 Jakub Jelinek <jakub@redhat.com>
2948
aaa52a96
JJ
2949 PR middle-end/45566
2950 * except.c (convert_to_eh_region_ranges): Emit queued no-region
2951 notes from other section in hot/cold partitioning even if
2952 last_action is -3. Increment call_site_base.
2953
7360d2ac
JJ
2954 PR rtl-optimization/47366
2955 * fwprop.c (forward_propagate_into): Return bool. If
2956 any changes are made, -fnon-call-exceptions is used and
2957 REG_EH_REGION note is present, call purge_dead_edges
2958 and return true if it purged anything.
2959 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
2960 any EH edges were purged.
2961
e90b336f
JL
29622011-01-21 Jeff Law <law@redhat.com>
2963
2964 PR rtl-optimization/41619
2965 * caller-save.c (setup_save_areas): Break out code to determine
2966 which hard regs are live across calls by examining the reload chains
2967 so that it is always used.
2968 Eliminate code which checked REG_N_CALLS_CROSSED.
2969
3ffe07e1
JJ
29702011-01-21 Jakub Jelinek <jakub@redhat.com>
2971
2972 PR tree-optimization/47355
2973 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
2974 NOP has non-debug uses beyond PHIs in new_bb.
2975
1c7d0b34
AO
29762011-01-21 Alexandre Oliva <aoliva@redhat.com>
2977
2978 PR debug/47106
2979 * cfgexpand.c (account_used_vars_for_block): Only account vars
2980 that are annotated as used.
2981 (estimated_stack_frame_size): Don't set TREE_USED.
2982 * tree-dfa.c (create_var_ann): Mark variable as used.
2983
f99cc488
RG
29842011-01-21 Richard Guenther <rguenther@suse.de>
2985
2986 PR middle-end/47395
2987 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
2988
3bc27de7
RG
29892011-01-21 Richard Guenther <rguenther@suse.de>
2990
2991 PR tree-optimization/47365
2992 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
2993 (vn_reference_lookup_pieces): Adjust.
2994 (vn_reference_lookup): Likewise.
2995 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
2996 (vn_reference_lookup_3): Only look through kills if in
2997 VN_WALKREWRITE mode.
2998 (vn_reference_lookup_pieces): Adjust.
2999 (vn_reference_lookup): Likewise.
3000 (visit_reference_op_load): Likewise.
3001 (visit_reference_op_store): Likewise.
3002 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
3003 (compute_avail): Likewise.
3004 (eliminate): Likewise.
3005
d8debb1d
JJ
30062011-01-21 Jakub Jelinek <jakub@redhat.com>
3007
3008 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
3009 DECL_IGNORED_P non-reg vars if they are used.
3010
3a2df831
JJ
3011 PR tree-optimization/47391
3012 * varpool.c (const_value_known_p): Return false if
3013 decl is volatile.
3014
1dd584a2
KT
30152011-01-21 Kai Tietz <kai.tietz@onevision.com>
3016
3017 PR bootstrap/47215
3018 * config/i386/i386.c (ix86_local_alignment): Handle
3019 case for va_list_type_node is nil.
3020 (ix86_canonical_va_list_type): Likewise.
3021
7f9f095e
AM
30222011-01-21 Alan Modra <amodra@gmail.com>
3023
3024 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
3025 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
3026
837b01f6
RR
30272011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3028
3029 * config/arm/arm.md (define_attr type): Rename f_load
3030 and f_store to f_fpa_load and f_fpa_store. Update.
3031 (write_conflict): Deal with rename fallout.
3032 (*push_fp_multi): Likewise.
3033 * config/arm/fpa.md (f_load): Use f_fpa_load.
3034 (f_store): Use f_fpa_store.
3035 (*movsf_fpa): Likewise.
3036 (*movdf_fpa): Likewise.
3037 (*movxf_fpa): Likewise.
3038 (*thumb2_movsf_fpa): Likewise.
3039 (*thumb2_movdf_fpa): Likewise.
3040 (*thumb2_movxf_fpa): Likewise.
3041 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
3042 f_loadd and f_stored.
3043 (*thumb2_movdi_vfp): Likewise.
3044 (*thumb2_movsf_vfp): Fix attribute to f_loads.
3045 (*thumb2_movsi_vfp): Likewise.
3046 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
3047 Use f_loads instead of f_load.
3048 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
3049
a1a79768
AS
30502011-01-20 Anatoly Sokolov <aesok@post.ru>
3051
3052 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3053 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
3054 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3055 (xtensa_mode_dependent_address_p): New function.
3056 (constantpool_address_p): Make static. Change return type to bool.
3057 Change argument type to const_rtx. Use CONST_INT_P predicate.
3058
427f6cec
AO
30592011-01-20 Alexandre Oliva <aoliva@redhat.com>
3060
3061 PR debug/46583
3062 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
3063
583ac69c
JJ
30642011-01-20 Jakub Jelinek <jakub@redhat.com>
3065
3066 PR debug/47283
3067 * cfgexpand.c (expand_debug_expr): Instead of generating
3068 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
3069 etc. handling.
3070
93e452ed
RG
30712011-01-20 Richard Guenther <rguenther@suse.de>
3072
3073 PR middle-end/47370
3074 * tree-inline.c (remap_gimple_op_r): Recurse manually for
3075 the pointer operand of MEM_REFs.
3076
28fc44f3
JJ
30772011-01-20 Jakub Jelinek <jakub@redhat.com>
3078
3079 PR tree-optimization/46130
3080 * ipa-split.c (consider_split): If return_bb contains non-virtual
3081 PHIs other than for retval or if split_function would not adjust it,
3082 refuse to split.
3083
ddd268f2
RG
30842011-01-20 Richard Guenther <rguenther@suse.de>
3085
3086 PR tree-optimization/47167
3087 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
3088 Revert previous change, only avoid enumeral type changes.
3089
882020aa
MS
30902011-01-19 Mike Stump <mikestump@comcast.net>
3091
3092 * doc/tm.texi.in (BRANCH_COST): Englishify.
3093 * doc/tm.texi (BRANCH_COST): Likewise.
3094
7edb6247
DS
30952011-01-19 Dodji Seketeli <dodji@redhat.com>
3096
3097 PR c++/47291
3098 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
3099 (gen_scheduled_generic_parms_dies): New functions.
3100 (gen_struct_or_union_type_die): Schedule template parameters DIEs
3101 generation for the end of CU compilation.
3102 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 3103
23d5ed5d
AO
31042011-01-19 Alexandre Oliva <aoliva@redhat.com>
3105
3106 PR debug/46240
3107 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
3108 debug bind stmt on merge edges.
3109
37d6a488
AO
31102011-01-19 Alexandre Oliva <aoliva@redhat.com>
3111
3112 PR debug/47079
3113 PR debug/46724
3114 * function.c (instantiate_expr): Instantiate incoming rtl of
3115 implicit arguments, and recurse on VALUE_EXPRs.
3116 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
3117 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
3118
689f2c82
AO
31192011-01-19 Alexandre Oliva <aoliva@redhat.com>
3120
3121 * c-parser.c (c_parser_for_statement): Initialize
3122 collection_expression.
3123
03029de4
JM
31242011-01-19 Joseph Myers <joseph@codesourcery.com>
3125
3126 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
3127
3e03217e
JM
31282011-01-19 Joseph Myers <joseph@codesourcery.com>
3129
3130 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
3131 (LINK_SHLIB_SPEC): Don't use %(link_path).
3132 (SUBTARGET_EXTRA_SPECS): Remove link_path.
3133
5bbe9b3f
JM
31342011-01-19 Joseph Myers <joseph@codesourcery.com>
3135
3136 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
3137 (NO_SHARED_LIB_SUPPORT): Remove.
3138 (LINK_SHLIB_SPEC): Remove one conditional definition.
3139
368e0b39
JM
31402011-01-19 Joseph Myers <joseph@codesourcery.com>
3141
3142 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
3143 %{call_shared}.
3144 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
3145 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
3146 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
3147 %{call_shared} and conditionals on these options not being passed.
3148 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
3149 %{call_shared}.
3150
ed7656f6
JJ
31512011-01-19 Jakub Jelinek <jakub@redhat.com>
3152
68457901
JJ
3153 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
3154 simplify.
3155
ed7656f6
JJ
3156 * ipa-split.c: Spelling fixes.
3157
e0d1958f
RH
31582011-01-19 Richard Henderson <rth@redhat.com>
3159
3160 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
3161 (*mulsi3): Likewise.
3162
27098b6b
RH
3163 * longlong.h [__mn10300__] (count_leading_zeros): New.
3164 [__mn10300__] (umul_ppmm, smul_ppmm): New.
3165 [__mn10300__] (add_ssaaaa, subddmmss): New.
3166 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
3167 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
3168
d6be7c36
UW
31692011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3170
3171 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
3172
b1efde2a
RH
31732011-01-19 Richard Henderson <rth@redhat.com>
3174
44217823
RH
3175 * config/mn10300/mn10300.md (addsi3_flags): New.
3176 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
3177 (subsi3_flags, subc_internal, subdi3): New.
3178 (subdi3_internal, *subdi3_degenerate): New.
3179 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
3180
37a185d7
RH
3181 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
3182 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
3183 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
3184 * config/mn10300/mn10300-protos.h: Update.
3185 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
3186 (return_ret): Likewise. Rename from return_internal_regs.
3187 (return_internal): Remove.
3188
040c5757
RH
3189 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
3190 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
3191 (mn10300_legitimate_constant_p): Likewise.
3192 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
3193 (mn10300_frame_size): New.
3194 (mn10300_expand_prologue): Use it.
3195 (mn10300_expand_epilogue): Likewise.
3196 (mn10300_initial_offset): Likewise.
3197 * config/mn10300/mn10300-protos.h: Update.
3198 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
3199 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
3200 (prologue, epilogue, return_internal): Tidy output code.
3201 (mn10300_store_multiple_operation, return): Likewise.
3202 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
3203 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
3204 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
3205 (load_pic, am33_load_pic): New.
3206 (mn10300_load_pic0, mn10300_load_pic1): New.
3207
bad41521
RH
3208 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
3209 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
3210 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
3211 (cc_flags_for_mode, cc_flags_for_code): New.
3212 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
3213 overflow flag is not valid. Validate that the flags we need
3214 for the comparison are valid.
3215 (mn10300_output_cmp): Remove.
3216 (mn10300_output_add): New.
3217 (mn10300_select_cc_mode): Use cc_flags_for_code.
3218 (mn10300_split_cbranch): New.
3219 (mn10300_match_ccmode): New.
3220 (mn10300_split_and_operand_count): New.
3221 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
3222 to the function.
3223 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
3224 (addsi3): ... here. Use mn10300_output_add.
3225 (*addsi3_flags): New.
3226 (*am33_subsi3, *mn10300_subsi3): Merge...
3227 (subsi3): ... here. Use attribute isa.
3228 (*subsi3_flags): New.
3229 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
3230 when possible.
3231 (*am33_andsi3, *mn10300_andsi3): Merge...
3232 (andsi3): ... here.
3233 (*andsi3_flags): New.
3234 (andsi3 splitters): New.
3235 (*am33_iorsi3, *mn10300_iorsi3): Merge...
3236 (iorsi3): ... here.
3237 (*iorsi3_flags): New.
3238 (*am33_xorsi3, *mn10300_xorsi3): Merge...
3239 (xorsi3): ... here.
3240 (*xorsi3_flags): New.
3241 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
3242 (one_cmplsi2): ... here.
3243 (*one_cmplsi2_flags): New.
3244 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
3245 instead of "dax" in constraints. Use mn10300_split_cbranch.
3246 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
3247 use matching constraints to eliminate a self-comparison.
3248 (*integer_conditional_branch): Rename from integer_conditional_branch.
3249 Use int_mode_flags to match CC_REG.
3250 (*cbranchsi4_btst, *btstsi): New.
3251 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
3252 mn10300_split_cbranch.
3253 (*am33_cmpsf): Rename from am33_cmpsf.
3254 (*float_conditional_branch): Rename from float_conditional_branch.
3255 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
3256 (zero_extendqisi2): ... here.
3257 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
3258 (zero_extendhisi2): ... here.
3259 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
3260 (extendqisi2): ... here.
3261 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
3262 (extendhisi2): ... here.
3263 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
3264 (ashlsi3): ... here.
3265 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
3266 (lshrsi3): ... here.
3267 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
3268 (ashrsi3): ... here.
3269 (consecutive add peephole): Remove.
3270 * config/mn10300/predicates.md (label_ref_operand): New.
3271 (int_mode_flags): New.
3272 (CCZN_comparison_operator): New.
3273
9efb4993
RH
3274 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
3275 (throughput_42_latency_43): New reservation.
3276 (mulsidi3, umulsidi3): New expanders.
3277 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
3278 the MDR register to allocation; separately allocate the low and
3279 high parts of the DImode result.
3280 (umulsidi3_internal): Similarly.
3281 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
3282 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
3283 (udivsi3, umodsi3): Remove.
3284 (udivmodsi4, divmodsi4): New expanders.
3285 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
3286 (*divmodsi4): Simiarly.
3287 (ext_internal): New.
3288
c25a21f5
RH
3289 * config/mn10300/constraints.md ("z"): New constraint.
3290 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
3291 (FIXED_REGISTERS): Don't fix MDR.
3292 (CALL_USED_REGSITERS): Reformat nicely.
3293 (REG_ALLOC_ORDER): Add MDR.
3294 (enum regclass): Add MDR_REGS.
3295 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
3296 (IRA_COVER_CLASSES): Add MDR_REGS.
3297 (REGNO_REG_CLASS): Handle MDR_REG.
3298 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
3299 (mn10300_register_move_cost): Likewise.
3300 * config/mn10300/mn10300.md (MDR_REG): New.
3301 (*movsi_internal): Handle moves to/from MDR_REGS.
3302
36846b26
RH
3303 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
3304 POST_MODIFY.
3305 (mn10300_secondary_reload): Tidy combination reload classes.
3306 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
3307 addresses for AM33. Allow symbolic offsets for reg+imm.
3308 (mn10300_regno_in_class_p): New.
3309 (mn10300_legitimize_reload_address): New.
3310 * config/mn10300/mn10300.h (enum reg_class): Remove
3311 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
3312 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
3313 SP_OR_GENERAL_REGS.
3314 (REG_CLASS_NAMES): Update to match.
3315 (REG_CLASS_CONTENTS): Likewise.
3316 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
3317 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
3318 (REGNO_IN_RANGE_P): Remove.
3319 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
3320 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
3321 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
3322 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
3323 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
3324 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
3325 (REGNO_GENERAL_P): New.
3326 (HAVE_POST_MODIFY_DISP): New.
3327 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
3328 (LEGITIMIZE_RELOAD_ADDRESS): New.
3329 * config/mn10300/mn10300-protos.h: Update.
3330
8b119bb6
RH
3331 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
3332 DATA_REGS for AM33 stack-pointer destination.
3333 (mn10300_preferred_output_reload_class): Likewise.
3334 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
3335 into a form appropriate for ...
3336 (TARGET_SECONDARY_RELOAD): New.
3337 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
3338 * config/mn10300/mn10300-protos.h: Update.
3339 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
3340 reload_insi; use the "A" constraint for the scratch; handle AM33
3341 moves of sp to non-address registers.
3342
b1efde2a
RH
3343 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
3344 (*movqi_internal): ... here.
3345 (*am33_movhi, *mn10300_movhi): Merge into...
3346 (*movhi_internal): ... here.
3347 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
3348 as the source/destination of moves from/to SP.
3349 (movsf): Only allow for AM33-2.
1c3ba85b 3350 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
3351 any integer constant constraint. Only allow for AM33-2. Tidy
3352 all of the alternative outputs.
3353 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
3354 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
3355 for MN103.
3356 (udivsi3, umodsi3): New patterns for MN103 only.
3357
b899fd78
JR
33582011-01-19 Joern Rennecke <amylaar@spamcop.net>
3359
3360 * doc/tm.texi.in: Spell out that a lack of register class unions
3361 can lead to ICEs.
3362 * doc/tm.texi: Regenerate.
3363
afaaa67d
JJ
33642011-01-19 Jakub Jelinek <jakub@redhat.com>
3365
2e0642cd
JJ
3366 PR rtl-optimization/47337
3367 * dce.c (check_argument_store): New function.
3368 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
3369
afaaa67d
JJ
3370 PR tree-optimization/47290
3371 * tree-eh.c (infinite_empty_loop_p): New function.
3372 (cleanup_empty_eh): Use it.
3373
d2cd871f
SE
33742011-01-18 Steve Ellcey <sje@cup.hp.com>
3375
3376 PR target/46997
3377 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
3378 (a64_expand_widen_sum): Ditto.
3379 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
3380 (vec_extract_evenodd_help): Ditto.
3381 (vec_extract_evenv4hi): Ditto.
3382 (vec_extract_oddv4hi): Ditto.
3383 (vec_extract_evenv2si): Ditto.
3384 (vec_extract_oddv2si): Ditto.
3385 (vec_extract_evenv2sf): Ditto.
3386 (vec_extract_oddv2sf): Ditto.
3387 (vec_pack_trunc_v4hi: Ditto.
3388 (vec_pack_trunc_v2si): Ditto.
3389 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
3390 (vec_interleave_highv8qi): Ditto.
3391 (mix1_r): Ditto.
3392 (vec_extract_oddv8qi): Ditto.
3393 (vec_interleave_lowv4hi): Ditto.
3394 (vec_interleave_highv4hi): Ditto.
3395 (vec_interleave_lowv2si): Ditto.
3396 (vec_interleave_highv2si): Ditto.
3397
41a1208a
JDA
33982011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3399
3400 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
3401 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
3402 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
3403 (pa_c_mode_for_suffix): New.
3404 (TARGET_EXPAND_BUILTIN): Define.
3405 (TARGET_C_MODE_FOR_SUFFIX): Define.
3406 (pa_builtins): Define.
3407 (pa_init_builtins): Register __float128 type and init new support
3408 builtins.
3409 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
3410 * config/pa/quadlib.c (_U_Qfcopysign): New.
3411
1ecad98e
EB
34122011-01-18 Eric Botcazou <ebotcazou@adacore.com>
3413
3414 PR middle-end/46894
3415 * explow.c (allocate_dynamic_stack_space): Do not assume more than
3416 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
3417 are defined.
3418
d4f2460a
UW
34192011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3420
3421 PR tree-optimization/47179
3422 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
3423 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
3424
4994da65
RG
34252011-01-18 Richard Guenther <rguenther@suse.de>
3426
3427 PR rtl-optimization/47216
3428 * emit-rtl.c: Include tree-flow.h.
3429 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
3430 of replicating it with different semantics.
3431 * Makefile.in (emit-rtl.o): Adjust.
3432
1eb458d1
RR
34332011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3434
38be4072 3435 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 3436 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 3437
e7ef91dc
JJ
34382011-01-18 Jakub Jelinek <jakub@redhat.com>
3439
3440 PR rtl-optimization/47299
3441 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 3442 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
3443 * expmed.c (expand_widening_mult): Don't try to optimize constant
3444 multiplication if op0 has VOIDmode. Convert op1 constant to mode
3445 before using it.
3446
535b7874
RW
34472011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3448
3449 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
3450 spacing after 'e.g.', typos, comma, hyphenation.
3451
27bf36f3
RH
34522011-01-17 Richard Henderson <rth@redhat.com>
3453
8a5b5449
RH
3454 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
3455 (rx_restricted_mem_operand): New.
3456 (rx_shift_operand): Use register_operand.
3457 (rx_source_operand, rx_compare_operand): Likewise.
3458 * config/rx/rx.md (addsi3_flags): New expander.
3459 (adddi3): Rewrite as expander.
3460 (adc_internal, *adc_flags, adddi3_internal): New patterns.
3461 (subsi3_flags): New expander.
3462 (subdi3): Rewrite as expander.
3463 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
3464
784f69be
RH
3465 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
3466 (rx_init_builtins): Remove sat builtin.
3467 (rx_expand_builtin): Likewise.
3468 * config/rx/rx.md (ssaddsi3): New.
3469 (*sat): Rename from sat. Represent the CC_REG input.
3470
f033541c
RH
3471 * config/rx/predicates.md (rshift_operator): New.
3472 * config/rx/rx.c (rx_expand_insv): Remove.
3473 * config/rx/rx-protos.h: Update.
3474 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
3475 operand to the canonical position.
3476 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
3477 (*bitclr, *bitclr_in_memory): Similarly.
3478 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
3479 (insv): Retain the zero_extract in the expansion.
3480
34fee389
RH
3481 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
3482 (bswaphi2, bitinvert, revw): Likewise.
3483
265c835f
RH
3484 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
3485 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
3486 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
3487 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
3488 (bitset, bitset_in_memory): Likewise.
3489 (bitinvert, bitinvert_in_memory): Likewise.
3490 (bitclr, bitclr_in_memory): Likewise.
3491 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
3492 (rx_strend, rx_cmpstrn): Likewise.
3493 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
3494 (bitop peep2 patterns): Remove.
3495
b4d83be3
RH
3496 * config/rx/rx.c (rx_match_ccmode): New.
3497 * config/rx/rx-protos.h: Update.
3498 * config/rx/rx.md (abssi2): Clobber, don't set flags.
3499 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
3500 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
3501 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
3502 (fix_truncsfsi2, floatsisf2): Likewise.
3503 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
3504 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
3505 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
3506 (*subsi3_flags, *xorsi3_flags): New.
3507
d0acb939
RH
3508 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
3509
c06fc3d9
RH
3510 * config/rx/rx.c (rx_print_operand): Remove workaround for
3511 unsplit comparison operations.
3512
2882702b
RH
3513 * config/rx/rx.md (movsicc): Split after reload.
3514 (*movsicc): Merge *movsieq and *movsine via match_operator.
3515 (*stcc): New pattern.
3516
6f7310f2
RH
3517 * config/rx/rx.c (rx_float_compare_mode): Remove.
3518 * config/rx/rx.h (rx_float_compare_mode): Remove.
3519 * config/rx/rx.md (cstoresi4): Split after reload.
3520 (*sccc): New pattern.
3521
e963cb1a
RH
3522 * config/rx/predicates.md (label_ref_operand): New.
3523 (rx_z_comparison_operator): New.
3524 (rx_zs_comparison_operator): New.
3525 (rx_fp_comparison_operator): New.
3526 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
3527 Validate that the flags are set properly for the comparison.
3528 (rx_gen_cond_branch_template): Remove.
3529 (rx_cc_modes_compatible): Remove.
3530 (mode_from_flags): New.
3531 (flags_from_code): Rename from flags_needed_for_conditional.
3532 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
3533 (rx_select_cc_mode): Likewise.
3534 (rx_split_fp_compare): New.
3535 (rx_split_cbranch): New.
3536 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
3537 (*cbranchsi4): Use match_operator and rx_split_cbranch.
3538 (*cbranchsf4): Similarly.
3539 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
3540 match_operator and rx_split_cbranch.
3541 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
3542 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
3543 (*cmpsi): Rename from cmpsi.
3544 (*tstsi): Rename from tstsi.
3545 (*cmpsf): Rename from cmpsf; use CC_Fmode.
3546 (*conditional_branch): Rename from conditional_branch.
3547 (*reveresed_conditional_branch): Remove.
3548 (b<code>): Remove expander.
3549 * config/rx/rx-protos.h: Update.
3550
af530bb4
RH
3551 * config/rx/rx.c (rx_compare_redundant): Remove.
3552 * config/rx/rx.md (cmpsi): Don't use it.
3553 * config/rx/rx-protos.h: Update.
3554
27bf36f3
RH
3555 * config/rx/rx-modes.def (CC_F): New mode.
3556 * config/rx/rx.c (rx_select_cc_mode): New.
3557 * config/rx/rx.h (SELECT_CC_MODE): Use it.
3558 * config/rx/rx-protos.h: Update.
3559
d7fde127
RH
35602011-01-17 Richard Henderson <rth@redhat.com>
3561
3562 * except.c (dump_eh_tree): Fix stray ; after for statement.
3563
6ff38230
RG
35642011-01-17 Richard Guenther <rguenther@suse.de>
3565
3566 PR tree-optimization/47313
3567 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
3568 handling before copying the body. Properly deal with
3569 by-reference result in SSA form.
3570
114ce554
ILT
35712011-01-17 Ian Lance Taylor <iant@google.com>
3572
bf5cd92b 3573 PR target/47219
114ce554
ILT
3574 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
3575 (struct_value_alias_set): Don't define.
3576 (sparc_option_override): Don't set sparc_sr_alias_set and
3577 struct_value_alias_set.
3578 (save_or_restore_regs): Use gen_frame_mem rather than calling
3579 set_mem_alias_set.
3580 (sparc_struct_value_rtx): Likewise.
3581
98c6d93c
L
35822011-01-17 H.J. Lu <hongjiu.lu@intel.com>
3583
3584 PR target/47318
3585 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
3586 __m128i.
3587 (_mm_maskstore_pd): Likewise.
3588 (_mm_maskload_ps): Likewise.
3589 (_mm_maskstore_ps): Likewise.
3590 (_mm256_maskload_pd): Change mask to __m256i.
3591 (_mm256_maskstore_pd): Likewise.
3592 (_mm256_maskload_ps): Likewise.
3593 (_mm256_maskstore_ps): Likewise.
3594
3595 * config/i386/i386-builtin-types.def: Updated.
3596 (ix86_expand_special_args_builtin): Likewise.
3597
3598 * config/i386/i386.c (bdesc_special_args): Update
3599 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
3600 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
3601 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
3602 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
3603
3604 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
3605 Use <avxpermvecmode> on mask register.
3606 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
3607
b9361af2 36082011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
3609 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3610 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
3611
3612 PR target/46655
3613 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
3614 if <= USHRT_MAX in 32-bit mode.
3615
b7ae9eb5
RW
36162011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3617
3618 * doc/install.texi (Configuration, Specific): Wrap long
3619 lines in examples. Allow line wrapping in long options
3620 and URLs where beneficial for PDF output.
3621
4377fad9
RS
36222011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
3623
3624 * config/mips/mips.c (mips_classify_symbol): Don't return
3625 SYMBOL_PC_RELATIVE for nonlocal labels.
3626
55959ffa 36272011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 3628
55959ffa
EB
3629 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
3630
36312011-01-15 Jan Hubicka <jh@suse.cz>
3632
3633 PR tree-optimization/47276
be46831f
JH
3634 * ipa.c (function_and_variable_visibility): Do not try to mark alias
3635 declarations as needed.
3636
05842ff5
MJ
36372011-01-15 Martin Jambor <mjambor@suse.cz>
3638
3639 * common.opt (fdevirtualize): New flag.
3640 * doc/invoke.texi (Option Summary): Document it.
3641 * opts.c (default_options_table): Add devirtualize flag.
3642 * ipa-prop.c (detect_type_change): Return immediately if
3643 devirtualize flag is not set.
3644 (detect_type_change_ssa): Likewise.
3645 (compute_known_type_jump_func): Likewise.
3646 (ipa_analyze_virtual_call_uses): Likewise.
3647
f65cf2b7
MJ
36482011-01-14 Martin Jambor <mjambor@suse.cz>
3649
3650 PR tree-optimization/45934
3651 PR tree-optimization/46302
3652 * ipa-prop.c (type_change_info): New type.
3653 (stmt_may_be_vtbl_ptr_store): New function.
3654 (check_stmt_for_type_change): Likewise.
3655 (detect_type_change): Likewise.
3656 (detect_type_change_ssa): Likewise.
3657 (compute_complex_assign_jump_func): Check for dynamic type change.
3658 (compute_complex_ancestor_jump_func): Likewise.
3659 (compute_known_type_jump_func): Likewise.
3660 (compute_scalar_jump_functions): Likewise.
3661 (ipa_analyze_virtual_call_uses): Likewise.
3662 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
3663
eb5bb0fd
JM
36642011-01-14 Joseph Myers <joseph@codesourcery.com>
3665
3666 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
3667 * config/i386/i386.opt (msse5): New Alias.
3668
f2060fbe
JM
36692011-01-14 Joseph Myers <joseph@codesourcery.com>
3670
3671 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
3672 * config/sparc/linux64.h (CC1_SPEC): Likewise.
3673 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3674 * config/sparc/sparc.h (CC1_SPEC): Likewise.
3675
3a7b4385
JM
36762011-01-14 Joseph Myers <joseph@codesourcery.com>
3677
3678 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
3679 -mcpu options.
3680 * config/sparc/linux64.h (CC1_SPEC): Likewise.
3681 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3682 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
3683 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
3684 Likewise.
3685 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
3686
a7b778f8
JM
36872011-01-14 Joseph Myers <joseph@codesourcery.com>
3688
38be4072 3689 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 3690
a7edae0a
MS
36912011-01-14 Mike Stump <mikestump@comcast.net>
3692
3693 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
3694 * config/fr30/fr30.md: Likweise
3695 (movsi_push): Likewise.
3696 (movsi_pop): Likewise.
3697 (enter_func): Likewise.
3698 * config/moxie/moxie.md (movsi_push): Likewise.
3699 (movsi_pop): Likewise.
3700
cbabf03f
JM
37012011-01-14 Joseph Myers <joseph@codesourcery.com>
3702
3703 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
3704 %{no_archive} %{exact_version}.
3705 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
3706 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
3707 %{no_archive} %{exact_version}.
3708 * config/mips/openbsd.h (LINK_SPEC): Likewise.
3709 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
3710 * config/mips/vxworks.h: Likewise.
3711
438da41a
JM
37122011-01-14 Joseph Myers <joseph@codesourcery.com>
3713
38be4072 3714 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 3715
da290a42
JM
37162011-01-14 Joseph Myers <joseph@codesourcery.com>
3717
3718 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
3719 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
3720
8989d00e
JM
37212011-01-14 Joseph Myers <joseph@codesourcery.com>
3722
3723 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
3724 -nodefaultlib.
3725
a3010a69
JM
37262011-01-14 Joseph Myers <joseph@codesourcery.com>
3727
3728 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
3729 for mcpu not cpu.
3730 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
3731 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
3732 not cpu.
3733 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
3734 Don't handle -shlib.
3735
e7f2f537
JM
37362011-01-14 Joseph Myers <joseph@codesourcery.com>
3737
3738 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
3739 (CC1_SPEC): Don't handle -profile.
3740
34830bfd
JM
37412011-01-14 Joseph Myers <joseph@codesourcery.com>
3742
3743 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
3744 * config/mips/mips.h (CC1_SPEC): Likewise.
3745
b2d36e74
JM
37462011-01-14 Joseph Myers <joseph@codesourcery.com>
3747
3748 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
3749 * config/mips/mips.h (CC1_SPEC): Likewise.
3750
dabadc52
JM
37512011-01-14 Joseph Myers <joseph@codesourcery.com>
3752
3753 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
3754 * config/m32r/linux.h (LINK_SPEC): Likewise.
3755 * config/mips/linux.h (LINK_SPEC): Likewise.
3756 * config/mips/linux64.h (LINK_SPEC): Likewise.
3757 * config/sparc/linux.h (LINK_SPEC): Likewise.
3758 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3759 LINK_SPEC): Likewise.
3760 * config/xtensa/linux.h (LINK_SPEC): Likewise.
3761
43ee6785
JM
37622011-01-14 Joseph Myers <joseph@codesourcery.com>
3763
3764 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
3765 %{version:-v}.
3766 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
3767
45e79dfd
JM
37682011-01-14 Joseph Myers <joseph@codesourcery.com>
3769
3770 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
3771 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
3772
37e9e71d
JM
37732011-01-14 Joseph Myers <joseph@codesourcery.com>
3774
3775 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
3776
bb127cd8
RO
37772011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3778
3779 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
3780 supports -Bstatic/-Bdynamic.
3781 * configure: Regenerate.
3782
89a012ea 37832011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 3784 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
3785
3786 PR target/46037
3787 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
3788 when checking debug_info_level. Test write_symbols instead of
3789 debug_hooks->var_location when setting flag_var_tracking_uninit.
3790
7352c013
RG
37912011-01-14 Richard Guenther <rguenther@suse.de>
3792
3793 PR tree-optimization/47179
3794 * target.def (ref_may_alias_errno): New target hook.
3795 * targhooks.h (default_ref_may_alias_errno): Declare.
3796 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
3797 (default_ref_may_alias_errno): New function.
3798 * target.h (struct ao_ref_s): Declare.
3799 * tree-ssa-alias.c: Include target.h.
3800 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
3801 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
3802 (targhooks.o): Likewise.
3803 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
3804 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
3805
9a6c9288
RG
38062011-01-14 Richard Guenther <rguenther@suse.de>
3807
3808 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
3809
0fdb0d27
RG
38102011-01-14 Richard Guenther <rguenther@suse.de>
3811
3812 PR tree-optimization/47280
3813 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
3814 return CFG changes.
3815 (tree_ssa_forward_propagate_single_use_vars): Deal with
3816 CFG changes from associate_plusminus.
3817
8f66db3b
RG
38182011-01-14 Richard Guenther <rguenther@suse.de>
3819
3820 PR middle-end/47281
3821 Revert
3822 2011-01-11 Richard Guenther <rguenther@suse.de>
3823
280d9630
EB
3824 PR tree-optimization/46076
3825 * tree-ssa.c (useless_type_conversion_p): Conversions from
3826 unprototyped to empty argument list function types are useless.
8f66db3b 3827
6c0c92e6
RG
38282011-01-14 Richard Guenther <rguenther@suse.de>
3829
3830 PR tree-optimization/47286
280d9630 3831 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 3832
db09f943
MJ
38332011-01-14 Martin Jambor <mjambor@suse.cz>
3834
3835 PR middle-end/46823
3836 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
3837
dde8a3a4
AS
38382011-01-13 Anatoly Sokolov <aesok@post.ru>
3839
3840 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
3841 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3842 * config/xtensa/xtensa.c (xtensa_libcall_value,
3843 xtensa_function_value_regno_p): New functions.
3844 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3845
a2b63a20
KT
38462011-01-13 Kai Tietz <kai.tietz@onevision.com>
3847
3848 PR c++/47213
3849 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
3850 PE specific hook.
3851 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
3852 New function prototype.
3853 * config/i386/winnt.c (i386_pe_assemble_visibility):
3854 Warn only if attribute was specified by user.
3855
b41f0b34
MM
38562011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3857
3858 PR target/47251
3859 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
3860 floating point.
3861 (floatunsdidf2_fcfidu): Ditto.
3862
3f3c098d
AK
38632011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3864
3865 * config/s390/s390.c (print_operand_address): Replace 'error' with
3866 'output_operand_lossage'.
3867 (print_operand): Likewise.
3868
29fa95ed
JL
38692011-01-13 Jeff Law <law@redhat.com>
3870
280d9630 3871 PR rtl-optimization/39077
29fa95ed
JL
3872 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
3873 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
3874 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
3875 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
3876 * gcse.c (prune_insertions_deletions): New function.
3877 (compute_pre_data): Use it.
3878
71d12276
DS
38792011-01-13 Dodji Seketeli <dodji@redhat.com>
3880
3881 PR debug/PR46973
3882 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
3883 static function.
61052244 3884 (prune_unused_types_mark): Use it.
71d12276 3885
9b0f04e7
AB
38862011-01-13 Andrey Belevantsev <abel@ispras.ru>
3887
3888 PR rtl-optimization/45352
1c3ba85b 3889 * sel-sched.c: Update copyright years.
9b0f04e7 3890 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 3891 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 3892
d6a3e264
RH
38932011-01-12 Richard Henderson <rth@redhat.com>
3894
a49b692a
RH
3895 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
3896 (TARGET_MD_ASM_CLOBBERS): New.
3897
126b1483
RH
3898 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
3899 (TARGET_DELEGITIMIZE_ADDRESS): New.
3900
f3d9d2e0
RH
3901 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
3902 (clzsi2, *bsch): New patterns.
3903
d84760c9
RH
3904 * config/mn10300/mn10300.md (INT): New mode iterator.
3905 (*mov<INT>_clr): New pattern, and peep2 to generate it.
3906
ec815d65
RH
3907 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
3908 flag_split_wide_types.
3909
d6a3e264
RH
3910 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
3911 (mn10300_trampoline_init): Rewrite without a template, an immediate
3912 load and a direct branch.
3913 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
3914
0f8ab434
AS
39152011-01-12 Anatoly Sokolov <aesok@post.ru>
3916
3917 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3918 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
3919 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
3920 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3921
d8a24b65
KT
39222011-01-12 Kai Tietz <kai.tietz@onevision.com>
3923
3924 PR debug/47209
3925 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
3926 of type.
3927
56e22cab
JH
39282011-01-12 Jan Hubicka <jh@suse.cz>
3929
3930 PR driver/47244
3931 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
3932 (PLUGIN_COND_CLOSE): New macro.
3933 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
3934
4b18b3c2
RG
39352011-01-12 Richard Guenther <rguenther@suse.de>
3936
3937 PR lto/47259
3938 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
3939 register variables in a MEM_REF.
3940
8e38461c
JM
39412011-01-12 Joseph Myers <joseph@codesourcery.com>
3942
3943 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
3944 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
3945 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
3946 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3947 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3948 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
3949 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
3950 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
3951 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
3952 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
3953 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
3954 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
3955 * config/gnu-user.h: New. Copied from linux.h.
3956 (LINUX_TARGET_STARTFILE_SPEC): Rename to
3957 GNU_USER_TARGET_STARTFILE_SPEC.
3958 (LINUX_TARGET_ENDFILE_SPEC): Rename to
3959 GNU_USER_TARGET_ENDFILE_SPEC.
3960 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
3961 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
3962 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
3963 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
3964 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
3965 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
3966 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
3967 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
3968 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
3969 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
3970 * config/arm/linux-eabi.h (CC1_SPEC): Use
3971 GNU_USER_TARGET_CC1_SPEC.
3972 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
3973 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
3974 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
3975 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
3976 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
3977 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
3978 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
3979 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
3980
a570fc16
RG
39812011-01-12 Richard Guenther <rguenther@suse.de>
3982
3983 PR other/46946
3984 * doc/invoke.texi (ffast-math): Document it is turned on
3985 with -Ofast.
3986
b0223c3e
JH
39872011-01-12 Jan Hubicka <jh@suse.cz>
3988
3989 PR tree-optimization/47233
ca1e00b3
EB
3990 * opts.c (common_handle_option): Disable ipa-reference with profile
3991 feedback.
b0223c3e 3992
1c3ba85b 39932011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
3994
3995 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
3996 error message.
3997
d853ee42
NP
39982011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
3999
4000 * c-parser.c (c_lex_one_token): Updated and reindented some
4001 comments. No changes in code.
4002
4053a5a0
ILT
40032011-01-11 Ian Lance Taylor <iant@google.com>
4004
4005 * godump.c (go_output_var): Don't output the variable if there is
4006 already a type with the same name.
4007
fa3e04d2
ILT
40082011-01-11 Ian Lance Taylor <iant@google.com>
4009
4010 * godump.c (go_format_type): Don't generate float80.
4011
885fe07c
RH
40122011-01-11 Richard Henderson <rth@redhat.com>
4013
72d6e3c5
RH
4014 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
4015 declaration. Rewrite for both speed and size.
4016 (mn10300_address_cost_1): Remove.
4017 (mn10300_register_move_cost): New.
4018 (mn10300_memory_move_cost): New.
4019 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
4020 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
4021 extensions, shifts, BSWAP, CLZ.
4022 (mn10300_wide_const_load_uses_clr): Remove.
4023 (TARGET_REGISTER_MOVE_COST): New.
4024 (TARGET_MEMORY_MOVE_COST): New.
4025 * config/mn10300/mn10300-protos.h: Update.
4026 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
4027
df37c023
RH
4028 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
4029 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
4030 * config/mn10300/mn10300-protos.h: Update.
4031 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
4032 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
4033 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
4034 (*test_int_bitfield, *test_byte_bitfield): Remove.
4035 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 4036 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 4037
85a337b5
RH
4038 * config/mn10300/constraints.md ("c"): Rename from "A".
4039 ("A", "D"): New constraint letters.
4040 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
4041 (fmssf4, fnmasf4, fnmssf4): Likewise.
4042
a5c727e3
RH
4043 * config/mn10300/mn10300.md (isa): New attribute.
4044 (enabled): New attribute.
4045
0d9e23f4
RH
4046 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
4047 (abssf2, negsf2): Define only for hardware fp.
4048 (sqrtsf2): Reformat.
4049 (addsf3, subsf3, mulsf3): Merge expander and insn.
4050
c157b3f0
RH
4051 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
4052 (DEBUGGER_AUTO_OFFSET): Remove.
4053 (DEBUGGER_ARG_OFFSET): Remove.
4054
cc909bba
RH
4055 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
4056 Emit register stores with the same offsets as the hardware.
4057 (mn10300_store_multiple_operation): Don't check that the register
4058 save offsets are monotonic.
4059 * config/mn10300/mn10300-protos.h: Update.
4060
e3b5c2f3
RH
4061 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
4062
885fe07c
RH
4063 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
4064 in terms of the value on the stack, not the MDR register.
4065
6e701822
JH
40662011-01-11 Jan Hubicka <jh@suse.cz>
4067
4068 PR lto/45721
4069 PR lto/45375
4070 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
4071 (symbol_alias_set_destroy, symbol_alias_set_contains,
4072 propagate_aliases_backward): Declare.
4073 * lto-streamer-out.c (struct sets): New sturcture.
4074 (trivally_defined_alias): New function.
4075 (output_alias_pair_p): Rewrite.
4076 (output_unreferenced_globals): Fix output of alias pairs.
4077 (produce_symtab): Likewise.
4078 * ipa.c (function_and_variable_visibility): Set weak alias destination
4079 as needed in lto.
4080 * varasm.c (symbol_alias_set_t): Remove.
4081 (symbol_alias_set_destroy): Export.
4082 (propagate_aliases_forward, propagate_aliases_backward): New functions
4083 based on ...
4084 (compute_visible_aliases): ... this one; remove.
4085 (trivially_visible_alias): New
4086 (trivially_defined_alias): New.
4087 (remove_unreachable_alias_pairs): Rewrite.
4088 (finish_aliases_1): Reorganize code checking if alias is defined.
4089 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
4090 in LTO mode.
4091
1b248907
RG
40922011-01-11 Richard Guenther <rguenther@suse.de>
4093
4094 PR tree-optimization/46076
4095 * tree-ssa.c (useless_type_conversion_p): Conversions from
4096 unprototyped to empty argument list function types are useless.
4097
b1923f0a
RG
40982011-01-11 Richard Guenther <rguenther@suse.de>
4099
4100 PR middle-end/45235
4101 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
4102 volatile MEMs as MEM_READONLY_P.
4103
e98965af
RG
41042011-01-11 Richard Guenther <rguenther@suse.de>
4105
4106 PR tree-optimization/47239
4107 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
4108
9f9ca914
JL
41092011-01-11 Jeff Law <law@redhat.com>
4110
1ee3ea05 4111 PR tree-optimization/47086
9f9ca914
JL
4112 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
4113 IVs from statements that might throw.
4114
345fdcb7
JH
41152011-01-10 Jan Hubicka <jh@suse.cz>
4116
4117 PR lto/45375
4118 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
4119
c459c97b
JH
41202011-01-10 Jan Hubicka <jh@suse.cz>
4121
4122 PR lto/45375
4123 * profile.c (read_profile_edge_counts): Ignore profile inconistency
4124 when correcting profile.
4125
06c9eb51
JH
41262011-01-10 Jan Hubicka <jh@suse.cz>
4127
4128 PR lto/46083
4129 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
4130 DECL_FINI_PRIORITY.
4131 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
4132 Restore DECL_FINI_PRIORITY.
4133
ae9fd815
RW
41342011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4135
4136 * doc/gimple.texi: Fix quoting of multi-word return values in
4137 @deftypefn statements. Ensure presence of return value. Wrap
4138 overlong @deftypefn lines.
4139 (is_gimple_operand, is_gimple_min_invariant_address): Remove
4140 descriptions of removed functions.
4141 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
4142 of multi-word return value in @deftypefn statement.
4143
0ecb4a7c
RW
41442011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4145
4146 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
4147 (Conditional Expressions, Logical Operators)
4148 (Statement and operand traversals): Do not indent smallexample
4149 code. Fix duplicate function argument in example.
4150
2e5e346d
JL
41512011-01-10 Jeff Law <law@redhat.com>
4152
1ee3ea05 4153 PR tree-optimization/47141
2e5e346d
JL
4154 * ipa-split.c (split_function): Handle case where we are
4155 returning a value and the return block has a virtual operand phi.
4156
cf9712cc
JH
41572011-01-10 Jan Hubicka <jh@suse.cz>
4158
1c3ba85b 4159 PR tree-optimization/47234
cf9712cc
JH
4160 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
4161 (pass_feedback_split_functions): Declare.
4162 * passes.c (init_optimization_passes): Add ipa-split as subpass of
4163 tree-profile.
4164 * ipa-split.c (gate_split_functions): Update comments; disable
4165 split-functions for profile_arc_flag and branch_probabilities.
4166 (gate_feedback_split_functions): New function.
4167 (execute_feedback_split_functions): New function.
4168 (pass_feedback_split_functions): New global var.
4169
94cd932c
L
41702011-01-10 H.J. Lu <hongjiu.lu@intel.com>
4171
4172 PR lto/46760
4173 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
4174 calling gimple_call_set_cannot_inline.
4175
fbbfcaf1
IS
41762011-01-10 Iain Sandoe <iains@gcc.gnu.org>
4177
4178 * config/darwin-sections.def: Remove unused section.
4179
d06865bf
DK
41802011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
4181
4182 PR c++/47218
4183 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
4184
96bbfbac
NP
41852011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
4186
4187 PR objc/47232
4188 * c-parser.c (c_parser_declaration_or_fndef): Improved
4189 error message.
4190
1ba6516f
KT
41912011-01-09 Kai Tietz <kai.tietz@onevision.com>
4192
4193 * config/i386/winnt.c (i386_pe_start_function): Make sure
4194 to switch back to function's section.
4195
0c5d770e
IS
41962011-01-09 Iain Sandoe <iains@gcc.gnu.org>
4197
4198 PR gcc/46902
4199 PR testsuite/46912
4200 * plugin.c: Move include of dlfcn.h from here...
4201 * system.h: ... to here.
4202
42032011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
4204
4205 * doc/cpp.texi (C++ Named Operators): Fix markup for header
4206 file name.
4207 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
4208 two extra empty pages in PDF output.
4209
046608a3
NP
42102011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
4211
4212 PR objc/47078
4213 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
4214 for error recovery purposes behave as if it was not specified so
4215 that the default type is usd.
4216
8cb114b9
JH
42172011-01-07 Jan Hubicka <jh@suse.cz>
4218
4219 PR tree-optmization/46469
4220 * ipa.c (function_and_variable_visibility): Clear needed flags on
4221 nodes with external decls; handle weakrefs merging correctly.
4222
b294a75e
JM
42232011-01-07 Joseph Myers <joseph@codesourcery.com>
4224
4225 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
4226 not false.
4227
96bdf9b4
JH
42282011-01-07 Jan Hubicka <jh@suse.cz>
4229
4230 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
4231 and no longer claim that gold is required for linker plugin.
4232 * configure: Regenerate.
4233 * gcc.c (PLUGIN_COND): New macro.
4234 (LINK_COMMAND_SPEC): Use it.
4235 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
4236 * config.in (HAVE_LTO_PLUGIN): New.
4237 * configure.ac (--with-lto-plugin): New parameter; autodetect
4238 HAVE_LTO_PLUGIN.
4239
17afc0fe
JH
42402011-01-07 Jan Hubicka <jh@suse.cz>
4241
4242 PR tree-optimization/46367
4243 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
4244 when we can update original.
4245 (cgraph_mark_inline_edge): Sanity check.
4246 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
4247
d4c48c0f
UW
42482011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4249
4250 * config/spu/spu.h (ASM_COMMENT_START): Define.
4251
96f5b137
L
42522011-01-07 H.J. Lu <hongjiu.lu@intel.com>
4253
4254 PR driver/42445
4255 * gcc.c (%>S): New.
4256 (SWITCH_KEEP_FOR_GCC): Likewise.
4257 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
4258 (do_spec_1): Handle "%>".
4259
4260 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
4261
c6a8f6de
JJ
42622011-01-07 Jakub Jelinek <jakub@redhat.com>
4263
c21bbd7a
JJ
4264 PR target/47201
4265 * config/i386/i386.c (ix86_delegitimize_address): If
4266 simplify_gen_subreg fails, return orig_x.
4267
c6a8f6de
JJ
4268 PR bootstrap/47187
4269 * value-prof.c (gimple_stringop_fixed_value): Handle
4270 lhs of the call properly.
4271
fe95fbf9
JH
42722011-01-07 Jan Hubicka <jh@suse.cz>
4273
4274 PR lto/45375
4275 * lto-opt.c (lto_reissue_options): Set flag_shlib.
4276
14d11d40
IS
42772011-01-07 Iain Sandoe <iains@gcc.gnu.org>
4278
72e961c8
EB
4279 * target.def (function_switched_text_sections): New hook.
4280 * doc/tm.texi: Regenerated.
4281 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 4282 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
4283 (final_scan_insn): Call function_switched_text_sections when a
4284 mid-function section change occurs.
14d11d40 4285 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
4286 * config/darwin-protos.h (darwin_function_switched_text_sections):
4287 Likewise.
14d11d40 4288 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 4289 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 4290
0b764288
IS
42912011-01-07 Iain Sandoe <iains@gcc.gnu.org>
4292
4293 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
4294 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
4295 the secondary code fragment when outputting for DWARF == 2.
4296
2ac6bb04
AS
42972011-01-07 Anatoly Sokolov <aesok@post.ru>
4298
4299 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4300 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
4301 Remove.
4302 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
4303 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4304
9f82de11
EB
43052011-01-06 Eric Botcazou <ebotcazou@adacore.com>
4306
4307 PR debug/46704
280d9630
EB
4308 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
4309 when it is not empty.
9f82de11
EB
4310
43112011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 4312
1ed72abf 4313 Bobcat Enablement
14b52538 4314 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 4315 (case ${target}): Add btver1.
14b52538 4316 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 4317 -march=native recognize btver1 processors.
14b52538 4318 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 4319 btver1 def_and_undef
14b52538 4320 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
4321 btver1 cost table.
4322 (m_BTVER1): New definition.
4323 (m_AMD_MULTIPLE): Includes m_BTVER1.
4324 (initial_ix86_tune_features): Add btver1 tune.
4325 (processor_target_table): Add btver1 entry.
4326 (static const char *const cpu_names): Add btver1 entry.
4327 (software_prefetching_beneficial_p): Add btver1.
4328 (ix86_option_override_internal): Add btver1 instruction sets.
4329 (ix86_issue_rate): Add btver1.
4330 (ix86_adjust_cost): Add btver1.
14b52538 4331 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
4332 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
4333 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
4334 * config/i386/i386.md (define_attr "cpu"): Add btver1.
4335
e1a973d8
RO
43362011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4337
4338 PR target/43309
4339 * config/i386/i386.c (legitimize_tls_address)
4340 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
4341 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
4342 (tls_initial_exec_64_sun): New pattern.
4343
c73f67c5
GP
43442011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
4345
4346 * doc/invoke.texi (Overall Options): Improve wording and markup
4347 of the description of -wrapper.
4348
bc4c6f9c
JM
43492011-01-06 Joseph Myers <joseph@codesourcery.com>
4350
4351 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
4352 rdynamic, threads): New Driver options.
4353
adb75db0
RO
43542011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4355
4356 PR target/38118
4357 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
4358 if coming from .tdata.
4359 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4360
402c1cb4
JH
43612011-01-06 Jan Hubicka <jh@suse.cz>
4362
4363 PR lto/47188
4364 * collect2.c (main): Do not enable LTOmode when plugin is active.
4365
a4da6485
RO
43662011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4367
4368 PR other/45915
4369 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
4370 --version output if supported.
4371 * configure: Regenerate.
4372
028dbdf4
JM
43732011-01-06 Joseph Myers <joseph@codesourcery.com>
4374
4375 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
4376 Driver options.
4377
dfe776dd
JJ
43782011-01-06 Jakub Jelinek <jakub@redhat.com>
4379
4380 PR c/47150
4381 * c-convert.c (convert): When converting a complex expression
4382 other than COMPLEX_EXPR to a different complex type, ensure
4383 c_save_expr is called instead of save_expr, unless in_late_binary_op.
4384 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
4385 when converting COMPLEX_TYPE.
4386
210dedfe
IR
43872011-01-06 Ira Rosen <irar@il.ibm.com>
4388
4389 PR tree-optimization/47139
4390 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
4391 only the last reduction value is used outside the loop. Update
4392 documentation.
4393
cd33a412
JM
43942011-01-05 Joseph Myers <joseph@codesourcery.com>
4395
4396 * config/rtems.opt: New.
4397 * config.gcc (*-*-rtems*): Use rtems.opt.
4398
819edd94
CF
43992011-01-05 Changpeng Fang <changpeng.fang@amd.com>
4400
4401 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
4402 processors do not support 3DNow instructions.
4403
dc242c4a
UW
44042011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4405
4406 * config/spu/spu.c (spu_option_override): Set parameter
4407 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
4408
be286227
JH
44092011-01-05 Jan Hubicka <jh@suse.cz>
4410
4411 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
4412 at the command line.
4413
644e637f
MJ
44142011-01-05 Martin Jambor <mjambor@suse.cz>
4415
4416 PR lto/47162
4417 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
4418 deltas on streamed outgoing edges.
4419 (output_node_opt_summary): Output info for outgoing edges only when
4420 the node is in new parameter set.
4421 (output_cgraph_opt_summary): New parameter set, passed to the two
4422 aforementioned functions. Update its forward declaration and its
4423 callee too.
4424
7bd11157
TT
44252011-01-05 Tom Tromey <tromey@redhat.com>
4426
4427 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
4428 operator to c_finish_omp_atomic.
4429 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
4430 (build_unary_op): Update.
4431 (build_modify_expr): Update.
4432 (build_asm_expr): Update.
4433
f626b979
UW
44342011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4435
4436 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
4437 newly inserted insns.
4438 (pad_bb): Likewise.
4439 (spu_emit_branch_hint): Likewise.
4440 (insert_hbrp_for_ilb_runout): Likewise.
4441 (spu_machine_dependent_reorg): Call df_finish_pass after
4442 schedule_insns returns.
4443
4c825c02
UW
44442011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4445
4446 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
4447
5e9fba51
EB
44482011-01-05 Eric Botcazou <ebotcazou@adacore.com>
4449
4450 PR tree-optimization/47005
4451 * tree-sra.c (struct access): Add 'non_addressable' bit.
4452 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
4453 (decide_one_param_reduction): Return 0 if the parameter is passed by
4454 reference and one of the accesses in the group is non_addressable.
4455
3ebb5ca6
EB
44562011-01-04 Eric Botcazou <ebotcazou@adacore.com>
4457
4458 PR tree-optimization/47056
4459 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
4460 (mark_load): Likewise. Handle FUNCTION_DECL specially.
4461 (mark_store): Likewise. Pass STMT to ipa_record_reference.
4462
d5d4d14e
EB
44632011-01-04 Eric Botcazou <ebotcazou@adacore.com>
4464
4465 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
4466 initializer. Skip view conversions from aggregate types.
4467
d996ef70
KT
44682011-01-04 Kai Tietz <kai.tietz@onevision.com>
4469
4470 PR bootstrap/47055
4471 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
4472
509d65dd 44732011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
4474
4475 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
4476 obvious typo.
4477
55c623b5
UW
44782011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4479
4480 * function.c (thread_prologue_and_epilogue_insns): Do not crash
4481 on empty epilogue sequences.
4482
b98d6b35
JM
44832011-01-04 Joseph Myers <joseph@codesourcery.com>
4484
4485 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
4486 non-static): New Driver options.
4487
a0d43bac
JZ
44882011-01-04 Jie Zhang <jie@codesourcery.com>
4489
4490 PR driver/47137
4491 * gcc.c (default_compilers[]): Set combinable field to 0
4492 for all assembly languages.
4493
2b18eb32
MX
44942011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
4495
4496 * config/mips/loongson3a.md: New file.
4497 * config/mips/mips.md: Include loongson3a.md.
4498 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
4499 TUNE_LOONGSON_3A.
4500
42a48c4f
EB
45012011-01-03 Eric Botcazou <ebotcazou@adacore.com>
4502
4503 PR middle-end/47017
4504 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
4505 instead of convert_memory_address_addr_space on the base expression.
4506
9c1732c4
UW
45072011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4508
4509 * config/spu/spu.c (spu_option_override): Update error text
4510 for bad -march= / -mtune= values.
4511
aa474365
UW
45122011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4513
4514 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
4515 if branch-hint optimization will be performed.
4516
9766135b
JJ
45172011-01-03 Jakub Jelinek <jakub@redhat.com>
4518
371556ee
JJ
4519 PR tree-optimization/47148
4520 * ipa-split.c (split_function): Convert arguments to
4521 DECL_ARG_TYPE if possible.
4522
1ac12fa2
JJ
4523 PR tree-optimization/47155
4524 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
4525 when computing uns.
4526
9766135b
JJ
4527 PR rtl-optimization/47157
4528 * combine.c (try_combine): If undobuf.other_insn becomes
4529 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
4530 and set *new_direct_jump_p too.
4531
f4a2e571
SP
45322011-01-03 Sebastian Pop <sebastian.pop@amd.com>
4533
4534 PR tree-optimization/47021
4535 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
4536
9f8e43c0
JJ
45372011-01-03 Jakub Jelinek <jakub@redhat.com>
4538
4539 * gcc.c (process_command): Update copyright notice dates.
4540 * gcov.c (print_version): Likewise.
4541 * gcov-dump.c (print_version): Likewise.
4542 * mips-tfile.c (main): Likewise.
4543 * mips-tdump.c (main): Likewise.
4544
1a2e38f3
MJ
45452011-01-03 Martin Jambor <mjambor@suse.cz>
4546
4547 PR tree-optimization/46801
4548 * tree-sra.c (type_internals_preclude_sra_p): Check whether
4549 aggregate fields start at byte boundary instead of the bit-field flag.
4550
56b721c5
L
45512011-01-03 H.J. Lu <hongjiu.lu@intel.com>
4552
4553 PR driver/47137
4554 * gcc.c (main): Revert revision 168407.
4555
839d549b
MJ
45562011-01-03 Martin Jambor <mjambor@suse.cz>
4557
4558 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
4559
4ce99a20 45602011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
4561
4562 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
4563 vector optab to expand vector/scalar shift, update gimple to vector.
4564
76df0ae6
MJ
45652011-01-03 Martin Jambor <mjambor@suse.cz>
4566
4567 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
4568 a thunk.
4569
ce47fda3
MJ
45702011-01-03 Martin Jambor <mjambor@suse.cz>
4571
4572 PR tree-optimization/46984
4573 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
4574 HOST_WIDE_INT.
4575 (cgraph_create_indirect_edge): Fixed line length.
4576 (cgraph_indirect_call_info): Declare.
4577 (cgraph_make_edge_direct) Update declaration.
4578 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
4579 (cgraph_create_indirect_edge): Use it.
4580 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
4581 callees.
4582 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
4583 the new thunk_delta representation.
4584 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
4585 HOST_WIDE_INT.
4586 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
4587 (ipa_read_indirect_edge_info): Likewise.
4588 * lto-cgraph.c (output_edge_opt_summary): New function.
4589 (output_node_opt_summary): Call it on all outgoing edges.
4590 (input_edge_opt_summary): New function.
4591 (input_node_opt_summary): Call it on all outgoing edges.
4592
1e67fa1f
L
45932011-01-02 H.J. Lu <hongjiu.lu@intel.com>
4594
4595 PR driver/47137
4596 * gcc.c (main): Don't check have_o when settting combine_inputs.
4597
6656b2ac
EB
45982011-01-02 Eric Botcazou <ebotcazou@adacore.com>
4599
4600 * regrename.c: Add general comment describing the pass.
4601 (struct du_head): Remove 'length' field.
4602 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
4603 (regrename_optimize): Do not sort chains. Rework comments, add others.
4604 Force renaming to the preferred class (if any) in the first pass and do
4605 not consider registers that belong to it in the second pass.
4606 (create_new_chain): Do not set 'length' field.
4607 (scan_rtx_reg): Likewise.
4608
bc470c24
JJ
46092011-01-02 Jakub Jelinek <jakub@redhat.com>
4610
4e996296
JJ
4611 PR tree-optimization/47140
4612 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
4613 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
4614 to bit_value_binop.
4615
bc470c24 4616 PR rtl-optimization/47028
6656b2ac
EB
4617 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
4618 parm_birth_insn instead of at the beginning of first bb.
bc470c24 4619
5af62fcd 46202011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
4621
4622 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
4623 Remove the word "see" before "@pxref".
4624 * doc/rtl.texi: Remove the word "see" before "@pxref".
4625
0e20c89f
JH
46262011-01-01 Jan Hubicka <jh@suse.cz>
4627
6656b2ac
EB
4628 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
4629 memory.
0e20c89f 4630
220e83ca
KT
46312011-01-01 Kai Tietz <kai.tietz@onevision.com>
4632
4633 PR target/38662
6656b2ac 4634 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 4635
ad41bd84 4636\f
797103eb 4637Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
4638
4639Copying and distribution of this file, with or without modification,
4640are permitted in any medium without royalty provided the copyright
4641notice and this notice are preserved.