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