]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
Daily bump.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d5ed058c
GP
12011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
2
3 * doc/cpp.texi: Update copyright years.
4
308d39cd
SB
52011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
6
7 PR gcc/46898
8 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9
102011-02-25 Jon Beniston <jon@beniston.com>
11
12 PR gcc/46898
13 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
14 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
15 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16 (lm32_block_move_inline): Add type cast to remove warning.
17 (lm32_expand_prologue): Generate fp in a way compatible with
18 dwarf2out.
19 (gen_int_relational): Move declarations to start of function.
20
822ba6d7
EB
212011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22
23 PR tree-optimization/45470
24 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
25 can throw internally only.
26 * tree-vect-stmts.c (vectorizable_call): Likewise.
27
ef795fc2
AS
282011-02-24 Anatoly Sokolov <aesok@post.ru>
29
30 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
31 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
32 * config/stormy16/stormy16-protos.h
33 (xstormy16_preferred_reload_class): Remove.
34 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
35 static. Change 'rclass' argument and return type to reg_class_t.
36 (TARGET_PREFERRED_RELOAD_CLASS,
37 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
38
1c3277ee
RG
392011-02-24 Richard Guenther <rguenther@suse.de>
40
41 * lto-streamer-in.c (input_bb): Do not find referenced vars
42 in debug statements.
43
67e18edb
JM
442011-02-23 Jason Merrill <jason@redhat.com>
45
46 * common.opt (fabi-version): Document v5 and v6.
47
b14fad9d
RG
482011-02-23 Richard Guenther <rguenther@suse.de>
49
50 PR tree-optimization/47849
51 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
52
7fcf46f5
JZ
532011-02-23 Jie Zhang <jie@codesourcery.com>
54
55 * opts-common.c (decode_cmdline_option): Print empty string
56 argument as "" in decoded->orig_option_with_args_text.
57 * gcc.c (execute): Print empty string argument as ""
58 in the verbose output.
59 (do_spec_1): Keep empty string argument.
60
f85b70fd
NF
612011-02-23 Nathan Froyd <froydnj@codesourcery.com>
62
63 * config.gcc: Declare score-* and crx-* obsolete.
64
b152a615
JZ
652011-02-23 Jie Zhang <jie@codesourcery.com>
66
67 PR rtl-optimization/47763
68 * web.c (web_main): Ignore naked clobber when replacing register.
69
bb6e77bc
AS
702011-02-22 Anatoly Sokolov <aesok@post.ru>
71
72 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
73 Remove.
74
68bf6491
SP
752011-02-22 Sebastian Pop <sebastian.pop@amd.com>
76
77 PR doc/47848
78 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
79
88ee1fc7
MS
802011-02-22 Mike Stump <mikestump@comcast.net>
81
82 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
83 assembler.
84 * configure: Regenerate.
85
6042d1dd
CLT
862011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
87
88 PR rtl-optimization/46002
89 * ira-color.c (update_copy_costs): Change class intersection
90 test to reg_class_contents[] test of 'hard_regno'.
91
7de97f9e
JM
922011-02-21 Joseph Myers <joseph@codesourcery.com>
93
94 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
95 than Driver option.
96 * config/hpux11.opt (mt): Likewise.
97 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
98 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
99 * config/vax/elf.opt (mno-asm-pic): Likewise.
100 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
101
d1d46f9f
MS
1022011-02-21 Mike Stump <mikestump@comcast.net>
103
104 PR target/47822
105 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
106 tree so we can get save the type.
107 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
108 for CFString instead of trying to use past the end of the builtins.
109 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
110 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
111 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
112 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
113 Rename to darwin_builtin_cfstring.
114 (darwin_init_cfstring_builtins): Return the built type.
115
23e0d930
UB
1162011-02-21 Uros Bizjak <ubizjak@gmail.com>
117
118 PR target/47840
119 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
120 (_mm256_insert_epi64): Use _mm_insert_epi64.
121
192997cf
AS
1222011-02-21 Anatoly Sokolov <aesok@post.ru>
123
124 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
125 * config/stormy16/stormy16-protos.h
126 (xstormy16_mode_dependent_address_p): Remove.
127 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
128 Make static. Change return type to bool. Change argument type to
129 const_rtx. Remove dead code.
130 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
131
e292d003
RG
1322011-02-21 Richard Guenther <rguenther@suse.de>
133
134 PR lto/47820
135 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
136 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
137 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
138 TUs context.
23e0d930 139 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
140 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
141
77f846e9
RG
1422011-02-20 Richard Guenther <rguenther@suse.de>
143
144 PR lto/47822
145 * tree.c (free_lang_data_in_decl): Clean builtins from
146 the TU decl BLOCK_VARS.
23e0d930 147
b2cddfc8
AO
1482011-02-19 Alexandre Oliva <aoliva@redhat.com>
149
150 PR debug/47620
151 PR debug/47630
152 * haifa-sched.c (fix_tick_ready): Skip tick computation
153 for debug insns.
154
becf4c11
RG
1552011-02-19 Richard Guenther <rguenther@suse.de>
156
157 PR lto/47647
158 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
159 Remove lazy BLOCK_VARS streaming.
160 (lto_input_ts_block_tree_pointers): Likewise.
161 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
162
27f98305
JM
1632011-02-19 Joseph Myers <joseph@codesourcery.com>
164
165 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
166
064bf3f4
JM
1672011-02-19 Joseph Myers <joseph@codesourcery.com>
168
169 * config/i386/biarch32.h, config/i386/mach.h,
170 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
171
9215ddc3
JJ
1722011-02-19 Jakub Jelinek <jakub@redhat.com>
173
174 PR target/47800
175 * config/i386/i386.md (peephole2 for shift and plus): Use
176 operands[1] original mode in the first insn.
177
8b021004
MS
1782011-02-18 Mike Stump <mikestump@comcast.net>
179
65ded153 180 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 181
f84ae14c
JH
1822011-02-18 Jan Hubicka <jh@suse.cz>
183
184 PR middle-end/47788
65ded153
EB
185 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
186 to zero when the function is not inlinable at all.
f84ae14c 187
eddabc80
JDA
1882011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
189
190 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
191 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
192 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
193 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
194 * config/pa/t-pa64: Likewise.
195 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
196
ca3da783
JJ
1972011-02-18 Jakub Jelinek <jakub@redhat.com>
198
199 PR driver/47787
200 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
201
430aa868
JDA
2022011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
203
204 PR target/47792
205 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
206
4bf7ff7e
AS
2072011-02-18 Anatoly Sokolov <aesok@post.ru>
208
209 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
210 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
211 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
212 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
213 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
214 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
215 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
216 m32r_load_postinc_p, m32r_store_preinc_predec_p,
217 m32r_legitimate_address_p): New functions.
218 * config/m32r/constraints.md (constraint "S"): Don't use
219 STORE_PREINC_PREDEC_P.
220 (constraint "U"): Don't use LOAD_POSTINC_P.
221
7efcf910
CLT
2222011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
223
224 PR rtl-optimization/46178
225 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
226 compute ira_hard_regno_cover_class[].
227
237d6259
RG
2282011-02-18 Richard Guenther <rguenther@suse.de>
229
230 PR lto/47798
231 * lto-streamer.h (lto_global_var_decls): Declare.
232 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
233 statics for global var processing.
234
12d80acc
RG
2352011-02-18 Richard Guenther <rguenther@suse.de>
236
237 PR tree-optimization/47737
238 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
239 edge dominance check.
240
abfea58d
JJ
2412011-02-18 Jakub Jelinek <jakub@redhat.com>
242
243 PR debug/47780
244 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
245 avoid invalid rtx sharing.
246
f73c8882
GP
2472011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
248
249 * doc/cpp.texi (Obsolete Features): Add background on the
250 origin of assertions.
251
d764a8e6
IS
2522011-02-17 Iain Sandoe <iains@gcc.gnu.org>
253
254 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 255 objc_abi == 2.
d764a8e6
IS
256 * config/darwin.c (output_objc_section_asm_op): Added support for
257 ABI v1 and v2.
258 (is_objc_metadata): New.
259 (darwin_objc2_section): New.
260 (darwin_objc1_section): New.
261 (machopic_select_section): Added support for ABI v1 and v2.
262 (darwin_emit_objc_zeroed): New.
263 (darwin_output_aligned_bss): Detect objc metadata and treat it
264 appropriately.
265 (darwin_asm_output_aligned_decl_common): Same.
266 (darwin_asm_output_aligned_decl_local): Same.
267 * config/darwin-sections.def: Updated for ABI v1 and v2.
268 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
269 compiling Objective-C code for the NeXT runtime, default to using
270 ABI version 0 for 32-bit, and version 2 for 64-bit.
271
0a8134ca
JM
2722011-02-17 Joseph Myers <joseph@codesourcery.com>
273
274 * common.opt (optimize_fast): New Variable.
275 * opts.c (default_options_optimization): Use opts->x_optimize_fast
276 instead of local variable ofast.
277
0a256240
NP
2782011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
279
280 * doc/invoke.texi (fobjc-abi-version): Documented.
281 (fobjc-nilcheck): Documented.
282 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
283 version.
284
fa381cb2
JM
2852011-02-17 Joseph Myers <joseph@codesourcery.com>
286
287 PR driver/47390
288 * common.opt (export-dynamic): New Driver option.
289 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
290
5437eaa6
JM
2912011-02-17 Joseph Myers <joseph@codesourcery.com>
292
293 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
294
bb7e6d55
AO
2952011-02-17 Alexandre Oliva <aoliva@redhat.com>
296 Jan Hubicka <jh@suse.cz>
297
298 PR debug/47106
299 PR debug/47402
300 * cfgexpand.c (account_used_vars_for_block): Remove.
301 (estimated_stack_frame_size): Use referenced vars.
302 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
303 that were referenced in the original function. Test src_fn
304 rather than cfun. Drop redundant get_var_ann.
305 (setup_one_parameter): Drop redundant get_var_ann.
306 (declare_return_variable): Likewise.
307 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
308 (copy_arguments_for_versioning): Drop redundant get_var_ann.
309 * ipa-inline.c (compute_inline_parameters): Do not compute
310 disregard_inline_limits here.
bb7e6d55
AO
311 (compute_inlinable_for_current, pass_inlinable): New.
312 (pass_inline_parameters): Require PROP_referenced_vars.
313 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 314 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
315 (cgraph_analyze_function): Set .disregard_inline_limits.
316 * tree-sra.c (convert_callers): Compute inliner parameters
317 only for functions already in SSA form.
318
f181a8a7
JM
3192011-02-17 Joseph Myers <joseph@codesourcery.com>
320
321 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
322 -mlittle-endian-data.
323
c6869789
JM
3242011-02-17 Joseph Myers <joseph@codesourcery.com>
325
326 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
327 -mno-fpu, not -fpu and -no-fpu.
328 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
329 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
330
fbf4bfd3
UB
3312011-02-17 Uros Bizjak <ubizjak@gmail.com>
332
333 PR target/43653
334 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
335 input reload with PLUS RTX.
336
70be5dc7
JM
3372011-02-16 Joseph Myers <joseph@codesourcery.com>
338
339 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
340 of InverseVar(MDMX).
341
30b1646e
JM
3422011-02-16 Joseph Myers <joseph@codesourcery.com>
343
344 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
345 --m4-340.
346
ab7b71e9
JM
3472011-02-16 Joseph Myers <joseph@codesourcery.com>
348
349 * config/mn10300/mn10300.opt (mno-crt0): New.
350
466f3f08
JM
3512011-02-16 Joseph Myers <joseph@codesourcery.com>
352
353 * config/m68k/uclinux.opt (static-libc): New Driver option.
354
8226cd7b
JM
3552011-02-16 Joseph Myers <joseph@codesourcery.com>
356
357 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
358
45cab1d7
JM
3592011-02-16 Joseph Myers <joseph@codesourcery.com>
360
361 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
362 %{muser-extend-enabled}.
363
65aab64f
RG
3642011-02-16 Richard Guenther <rguenther@suse.de>
365
366 PR tree-optimization/47738
367 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
368 the TODO from tree_predictive_commoning.
369
fc2fa4fb
JL
3702011-02-15 Jeff Law <law@redhat.com>
371
372 Revert
373 2011-01-25 Jeff Law <law@redhat.com>
374
375 PR rtl-optimization/37273
376 * ira-costs.c (scan_one_insn): Detect constants living in memory and
377 handle them like argument loads from stack slots. Do not double
378 count memory for memory constants and argument loads from stack slots.
379
4e380b8e
L
3802011-02-15 H.J. Lu <hongjiu.lu@intel.com>
381
382 PR middle-end/47725
383 * combine.c (cant_combine_insn_p): Revert the last change.
384
e3a69bb4
MM
3852011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
386
387 PR target/47755
388 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
389 mode for vector constants. Remove code that checks for TImode.
390
de650422
AO
3912011-02-15 Alexandre Oliva <aoliva@redhat.com>
392
393 PR debug/47106
394 PR debug/47402
395 * cgraph.h (compute_inline_parameters): Return void.
396 * ipa-inline.c (compute_inline_parameters): Adjust.
397
30925d94
AO
3982011-02-15 Alexandre Oliva <aoliva@redhat.com>
399
400 PR debug/47106
401 PR debug/47402
402 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
403 rather than decl.
404 * cfgexpand.c (estimated_stack_frame_size): Likewise.
405 * ipa-inline.c (compute_inline_parameters): Adjust.
406
1b9a784a
AO
4072011-02-15 Alexandre Oliva <aoliva@redhat.com>
408
409 PR debug/47106
410 PR debug/47402
411 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
412 Adjust all users. Pass FN to...
413 * tree-flow-inline.h (first_referenced_var): ... this. Add
414 fn argument.
415 * ipa-struct-reorg.c: Adjust.
416 * tree-dfa.c: Adjust.
417 * tree-into-ssa.c: Adjust.
418 * tree-sra.c: Adjust.
419 * tree-ssa-alias.c: Adjust.
420 * tree-ssa-live.c: Adjust.
421 * tree-ssa.c: Adjust.
422 * tree-ssanames.c: Adjust.
423 * tree-tailcall.c: Adjust.
424
27c6b086
AO
4252011-02-15 Alexandre Oliva <aoliva@redhat.com>
426
427 PR debug/47106
428 PR debug/47402
429 * tree-flow.h (referenced_var_lookup): Add fn parameter.
430 Adjust all callers.
431 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
432 * tree-flow-inline.h: Adjust.
433 * gimple-pretty-print.c: Adjust.
434 * tree-into-ssa.c: Adjust.
435 * tree-ssa.c: Adjust.
436 * cfgexpand.c: Adjust.
437
679e8183
NF
4382011-02-15 Nathan Froyd <froydnj@codesourcery.com>
439
fbf4bfd3
UB
440 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
441 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
442 (EXTRA_CONSTRAINT): Delete.
443 * config/iq2000/constraints.md: New file.
444 * config/iq2000/iq2000.md: Include it.
679e8183
NF
445 (define_insn ""): Delete.
446 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
447 unsupported constraint letters from patterns.
448 (call_value, call_value_internal1): Likewise.
449 (call_value_multiple_internal1): Likewise.
450
a45d420a
NC
4512011-02-15 Nick Clifton <nickc@redhat.com>
452
453 * config/mn10300/mn10300.c: Include tm-constrs.h.
454 (struct liw_data): New data structure describing an LIW candidate
455 instruction.
456 (extract_bundle): Use struct liw_data. Allow small integer
457 operands for some instructions.
458 (check_liw_constraints): Use struct liw_data. Remove swapped
459 parameter. Add comments describing the checks. Fix bug when
460 assigning the source of liw1 to the source of liw2.
461 (liw_candidate): Delete. Code moved into extract_bundle.
462 (mn10300_bundle_liw): Use struct liw_data. Check constraints
463 before swapping.
464 * config/mn10300/predicates.md (liw_operand): New predicate.
465 Allows registers and small integer constants.
466 * config/mn10300/constraints.md (O): New constraint. Accetps
467 integers in the range -8 to +7 inclusive.
468 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
469 for moving a small integer into a register. Give this alternative
470 LIW attributes.
471 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
472 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
473 using the J,K,L and M constraints,
474 (liw): Remove SI mode on second operands to allow for HI and QI
475 mode values.
476 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
477 instruction.
478
8a73faf1
L
4792011-02-15 H.J. Lu <hongjiu.lu@intel.com>
480
481 PR middle-end/47725
482 * combine.c (cant_combine_insn_p): Check zero/sign extended
483 hard registers.
484
48feba28
RG
4852011-02-15 Richard Guenther <rguenther@suse.de>
486
487 PR tree-optimization/47743
488 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
489 for a non-type-compatible VN lookup bail out.
490
ad1c1eeb
NF
4912011-02-15 Nathan Froyd <froydnj@codesourcery.com>
492
493 * config/fr30/constraints.md: New file.
494 * config/fr30/fr30.md: Include it.
495 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
496 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
497 (EXTRA_CONSTRAINT): Delete.
498
49ac143d
NF
4992011-02-15 Nathan Froyd <froydnj@codesourcery.com>
500
501 * config/frv/constraints.md: New file.
502 * config/frv/predicates.md: Include it.
503 * config/frv/frv.c (reg_class_from_letter): Delete.
504 (frv_option_override): Don't initialize it.
505 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
506 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
507 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
508 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
509 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
510 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
511 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
512 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
513 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
514 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
515 (REG_CLASS_FROM_CONSTRAINT): Delete.
516
c95f9494
JJ
5172011-02-15 Jakub Jelinek <jakub@redhat.com>
518
519 PR middle-end/47581
520 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
521 if frame size is 0 in a leaf function.
522
13aed611
RO
5232011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
524
525 PR pch/14940
526 * config/alpha/host-osf.c: New file.
527 * config/alpha/x-osf: New file.
528 * config.host (alpha*-dec-osf*): Use it.
529
b09c3081
AS
5302011-02-14 Anatoly Sokolov <aesok@post.ru>
531
532 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
533 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
534 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
535 (rx_mode_dependent_address_p): ...this. Make static. Change argument
536 type to const_rtx.
537 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
538
d634083b
NF
5392011-02-14 Nathan Froyd <froydnj@codesourcery.com>
540
541 * config/stormy16/constraints.md: New file.
542 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
543 Use satisfies_constraint_Q and satisfies_constraint_R.
544 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
545 Delete.
546 (xstormy16_legitiamte_address_p): Declare.
547 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
548 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
549 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 550 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
551 Un-staticize.
552 (xstormy16_extra_constraint_p): Delete.
553
c7dd803e
EB
5542011-02-14 Eric Botcazou <ebotcazou@adacore.com>
555
556 PR tree-optimization/46494
557 * loop-unroll.c (split_edge_and_insert): Adjust comment.
558 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
559 (pass_rtl_loop_done): Add TODO_verify_flow.
560 * fwprop.c (pass_rtl_fwprop): Likewise.
561 * modulo-sched.c (pass_sms): Likewise.
562 * tree-ssa-dom.c (pass_dominator): Likewise.
563 * tree-ssa-loop-ch.c (pass_ch): Likewise.
564 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
565 (pass_tree_loop_done): Likewise.
566 * tree-ssa-pre.c (execute_pre): Likewise.
567 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
568 * tree-ssa-sink.c (pass_sink_code): Likewise.
569 * tree-vrp.c (pass_vrp): Likewise.
570
c6150df6
NF
5712011-02-14 Nathan Froyd <froydnj@codesourcery.com>
572
c7dd803e
EB
573 * config/v850/constraints.md: New file.
574 * config/v850/v850.md: Include it.
575 * config/v850/predicates.md (reg_or_0_operand): Use
576 satisfies_constraint_G.
577 (special_symbolref_operand): Use satisfies_constraint_K.
578 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
579 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
580 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
581 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
582 (EXTRA_CONSTRAINT): Delete.
583 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
584 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
585 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 586
30dd1ea3
AS
5872011-02-14 Anatoly Sokolov <aesok@post.ru>
588
589 PR target/47696
590 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
591 description.
592
944f4bb3
NF
5932011-02-14 Nathan Froyd <froydnj@codesourcery.com>
594
595 * config/mcore/constraints.md: New file.
596 * config/mcore/mcore.md: Include it.
597 * config/mcore/mcore.c (reg_class_from_letter): Delete.
598 * config/mcore/mcore.h (reg_class_from_letter): Delete.
599 (REG_CLASS_FROM_LETTER): Delete.
600 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
601 insn_const_int_ok_for_constraint.
602 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
603 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
604 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
605 (EXTRA_CONSTRAINT): Delete.
606
ad56a54c
RO
6072011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
608
609 PR ada/41929
610 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
611 (IS_SIGHANDLER): Define.
612 (sparc64_is_sighandler): New function, split off from
613 sparc64_fallback_frame_state.
614 (sparc_is_sighandler): New function, split off from
615 sparc_fallback_frame_state.
616 (sparc64_fallback_frame_state): Merge with ...
617 (sparc_fallback_frame_state): ... this into ...
618 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
619 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
620 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
621 stack instead of hardcoded offsets.
ad56a54c 622
1e263792
RW
6232011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
624
fbf4bfd3 625 * go/gccgo.texi (Top, Import and Export): Fix a typo and a markup nit.
1e263792 626
fbf4bfd3 6272011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
628
629 PR target/45808
630 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
631
029c8f3e
RW
6322011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
633
634 * configure: Regenerate.
635
a016dc83
JM
6362011-02-12 Joseph Myers <joseph@codesourcery.com>
637
638 PR driver/45731
639 * gcc.c (asm_options): Correct spec matching --target-help.
640
8957a0ec
MJ
6412011-02-12 Martin Jambor <mjambor@suse.cz>
642
643 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
644 to gimple call error.
645
6ef828bc
MS
6462011-02-12 Mike Stump <mikestump@comcast.net>
647
648 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
649 comments in backslash regions.
650
a4015be5
MS
6512011-02-12 Mike Stump <mikestump@comcast.net>
652 Jakub Jelinek <jakub@redhat.com>
653 Iain Sandoe <iains@gcc.gnu.org>
654
655 PR target/47324
656 * dwarf2out.c (output_cfa_loc): When required, apply the
657 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
658 (output_loc_sequence): Likewise.
659 (output_loc_operands_raw): Likewise.
660 (output_loc_sequence_raw): Likewise.
661 (output_cfa_loc): Likewise.
662 (output_loc_list): Suppress register number adjustment when
663 calling output_loc_sequence()
664 (output_die): Likewise.
665
5378dda2
AS
6662011-02-12 Anatoly Sokolov <aesok@post.ru>
667
668 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
669 Remove macros.
670 * config/xtensa/xtensa.c (xtensa_register_move_cost,
671 xtensa_memory_move_cost): New functions.
672 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
673
f3d533d3
AO
6742011-02-12 Alexandre Oliva <aoliva@redhat.com>
675
676 PR lto/47225
677 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
678 in the current directory.
679 * configure: Rebuilt.
680
9d53403c
IS
6812011-02-12 Iain Sandoe <iains@gcc.gnu.org>
682
683 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 684 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
685 correct indents of the preceding block.
686
a350a6c8
IS
6872011-02-12 Iain Sandoe <iains@gcc.gnu.org>
688
689 * gcc.c (driver_handle_option): Concatenate the argument to -F with
690 the switch.
691
bab79a40
JM
6922011-02-11 Joseph Myers <joseph@codesourcery.com>
693
694 * common.opt (nostartfiles): New Driver option.
695
1bbc6693
XDL
6962011-02-11 Xinliang David Li <davidxl@google.com>
697
698 PR tree-optimization/47707
699 * tree-chrec.c (convert_affine_scev): Keep type precision.
700
1da7d8c0
EB
7012011-02-11 Eric Botcazou <ebotcazou@adacore.com>
702
703 PR tree-optimization/47420
704 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
705
7062011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
707
708 PR rtl-optimization/47614
709 * rtl.h (check_for_inc_dec): Declare.
710 * dse.c (check_for_inc_dec): Externalize...
711 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
712 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
713
4df47bca
JM
7142011-02-11 Joseph Myers <joseph@codesourcery.com>
715
716 PR driver/47678
717 * gcc.c (main): Do not compile inputs if there were errors in
718 option handling.
719 * opts-common.c (read_cmdline_option): Check for wrong language
720 after other error checks.
721
61502ca8
NF
7222011-02-11 Nathan Froyd <froydnj@codesourcery.com>
723
724 * cgraph.c: Fix comment typos.
725 * cgraph.h: Likewise.
726 * cgraphunit.c: Likewise.
727 * ipa-cp.c: Likewise.
728 * ipa-inline.c: Likewise.
729 * ipa-prop.c: Likewise.
730 * ipa-pure-const.c: Likewise.
731 * ipa-ref.c: Likewise.
732 * ipa-reference.c: Likewise.
733
b63f974e
JJ
7342011-02-11 Jakub Jelinek <jakub@redhat.com>
735
d50c5e0c
JJ
736 PR debug/47684
737 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 738
6dd2a13c
RO
7392011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
740
741 PR testsuite/47400
742 * doc/sourcebuild.texi (Require Support): Document
743 dg-require-ascii-locale.
744
4a087ccf
MX
7452011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
746
747 * doc/lto.texi (Write summary): Fix missing parentheses.
748
a4403164
DD
7492011-02-10 DJ Delorie <dj@redhat.com>
750
751 * config/m32c/m32c.c (m32c_option_override): Disable
752 -fcombine-stack-adjustments until flag value tracking and compare
753 optimization can be rewritten.
754
4fac45bd
PB
7552011-02-10 Peter Bergner <bergner@vnet.ibm.com>
756
757 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
758 PROCESSOR_POWER7.
759 (PROCESSOR_DEFAULT64): Likewise.
760
72602cd1
RH
7612011-02-10 Richard Henderson <rth@redhat.com>
762
763 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
764 change from 2011-02-03.
765 * config/rx/rx.c (flags_from_code): Likewise.
766 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
767 is valid, n/pz otherwise.
768 (rx_select_cc_mode): Return CCmode if Y is not zero.
769
ea57f573
RG
7702011-02-10 Richard Guenther <rguenther@suse.de>
771
ea4c3e65 772 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 773
92b1d23b
RG
7742011-02-10 Richard Guenther <rguenther@suse.de>
775
776 PR tree-optimization/47677
777 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
778
525a2d06
JJ
7792011-02-10 Jakub Jelinek <jakub@redhat.com>
780
781 PR target/47665
782 * combine.c (make_compound_operation): Only change shifts into
783 multiplication for SCALAR_INT_MODE_P.
784
06c969bd
JZ
7852011-02-10 Jie Zhang <jie@codesourcery.com>
786
787 PR testsuite/47622
788 Revert
789 2011-02-05 Jie Zhang <jie@codesourcery.com>
790 PR debug/42631
791 * web.c (entry_register): Don't clobber the number of the
792 first uninitialized reference in used[].
793
282ec48e
RG
7942011-02-09 Richard Guenther <rguenther@suse.de>
795
796 PR tree-optimization/47664
797 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
798 all edges again.
799
df98c3e8
DE
8002011-02-09 David Edelsohn <dje.gcc@gmail.com>
801
d0f21cd6
DE
802 PR target/46481
803 PR target/47032
df98c3e8
DE
804 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
805 PROCESSOR_POWER7.
806 (PROCESSOR_DEFAULT64): Same.
807 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
808
67b6839f
RO
8092011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
810
811 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
812
4fd73214
MJ
8132011-02-09 Martin Jambor <mjambor@suse.cz>
814
815 PR middle-end/45505
816 * tree-sra.c (struct access): New flags grp_scalar_read and
817 grp_scalar_write. Changed description of assignment read and write
818 flags.
819 (dump_access): Dump new flags, reorder all of them.
820 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
821 to detect multiple scalar reads.
822 (analyze_access_subtree): Use the new scalar read write flags instead
823 of the old flags. Adjusted comments.
824
91140cd3
DD
8252011-02-08 DJ Delorie <dj@redhat.com>
826
827 PR target/47548
828 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
829 patterns.
830
4254bbfe
JM
8312011-02-08 Joseph Myers <joseph@codesourcery.com>
832
833 * config/m68k/uclinux.opt: New.
834 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
835
f1fda84e
JM
8362011-02-08 Joseph Myers <joseph@codesourcery.com>
837
838 * config/cris/elf.opt (sim): New Driver option.
839
4933ae74
JM
8402011-02-08 Joseph Myers <joseph@codesourcery.com>
841
842 * config/xtensa/elf.opt: New.
843 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
844
4ad70280
JM
8452011-02-08 Joseph Myers <joseph@codesourcery.com>
846
847 * config/vax/elf.opt: New.
848 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
849
20893707
JM
8502011-02-08 Joseph Myers <joseph@codesourcery.com>
851
852 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
853
b8e7038e
JM
8542011-02-08 Joseph Myers <joseph@codesourcery.com>
855
856 * config/gnu-user.opt: New.
857 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
858 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
859 *-*-uclinux*): Use gnu-user.opt.
860
e1c5225a
TS
8612011-02-08 Thomas Schwinge <thomas@schwinge.name>
862
863 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
864 * config/i386/gnu.h (CPP_SPEC): Likewise.
865
5e46b0c6
ILT
8662011-02-08 Ian Lance Taylor <iant@google.com>
867
868 * common.opt (fcx-limited-range): Add SetByCombined flag.
869 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
870 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
871 (fassociative-math, freciprocal-math): Likewise.
872 (funsafe-math-optimizations): Likewise.
873 * opth-gen.awk: Handle SetByCombined.
874 * optc-gen.awk: Likewise.
ea4c3e65 875 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
876 (set_unsafe_math_optimizations_flags): Likewise.
877 * doc/options.texi (Option properties): Document SetByCombined.
878
32243d46
JM
8792011-02-08 Joseph Myers <joseph@codesourcery.com>
880
881 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
882 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
883 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
884 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
885 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
886
479c1fb3
SP
8872011-02-08 Sebastian Pop <sebastian.pop@amd.com>
888
889 PR tree-optimization/46834
890 PR tree-optimization/46994
891 PR tree-optimization/46995
892 * graphite-sese-to-poly.c (used_outside_reduction): New.
893 (detect_commutative_reduction): Call used_outside_reduction.
894 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
895 translate_scalar_reduction_to_array only when at least one
896 loop-phi/close-phi tuple has been detected.
897
3865a06f
RG
8982011-02-08 Richard Guenther <rguenther@suse.de>
899
900 PR middle-end/47639
901 * tree-vect-generic.c (expand_vector_operations_1): Update
902 stmts here ...
903 (expand_vector_operations): ... not here. Cleanup EH info
904 and the CFG if required.
905
62902f3f
RG
9062011-02-08 Richard Guenther <rguenther@suse.de>
907
908 PR tree-optimization/47641
909 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
910 require type compatibility.
911
0efb9d64
AK
9122011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
913
914 * gimple-low.c (lower_function_body): Don't remove the location of
915 the return statement here.
916 (lower_gimple_return): Do it here instead but only if the return
917 statement is actually used twice.
918
034b8ae4
RG
9192011-02-08 Richard Guenther <rguenther@suse.de>
920
921 PR tree-optimization/47632
922 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
923 unused up_to_stmt parameter, return whether cfg-cleanup is
924 necessary, remove EH info properly.
925 (forward_propagate_into_gimple_cond): Adjust caller.
926 (forward_propagate_into_cond): Likewise.
927 (forward_propagate_comparison): Likewise.
928 (tree_ssa_forward_propagate_single_use_vars): Make
929 forward_propagate_comparison case similar to the two others.
930
298362c8
NC
9312011-02-08 Nick Clifton <nickc@redhat.com>
932
933 * config/mn10300/mn10300.opt (mliw): New command line option.
934 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
935 (liw_bundling): New automaton.
936 (liw): New attribute.
937 (liw_op): New attribute.
938 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
939 (movsi_internal): Add LIW attributes.
940 (andsi3): Likewise.
941 (iorsi3): Likewise.
942 (xorsi3): Likewise.
943 (addsi3): Separate register and immediate alternatives.
944 Add LIW attributes.
945 (subsi3): Likewise.
946 (cmpsi): Likewise.
947 (aslsi3): Likewise.
948 (lshrsi3): Likewise.
949 (ashrsi3): Likewise.
950 (liw): New pattern.
951 * config/mn10300/mn10300.c (liw_op_names): New
952 (mn10300_print_operand): Handle 'W' operand descriptor.
953 (extract_bundle): New function.
954 (check_liw_constraints): New function.
955 (liw_candidate): New function.
956 (mn10300_bundle_liw): New function.
957 (mn10300_reorg): New function.
958 (TARGET_MACHINE_DEPENDENT_REORG): Define.
959 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
960 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
961 __LIW__ or __NO_LIW__.
962 * doc/invoke.texi: Describe the -mliw command line option.
963
90488014
JDA
9642011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
965
966 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
967 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
968 pthread_mutex_unlock): Remove.
969 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
970 * config/pa/t-pa64: Likewise.
971 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
972 shared libc if not linking against libpthread.
973 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
974
689ff841
IS
9752011-02-07 Iain Sandoe <iains@gcc.gnu.org>
976
977 PR target/47558
978 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
979 on 10.6 and later to ensure that we always use the unwinder from
980 the system. Only add -no_compact_unwind when tarteting darwin
981 10.6 or later.
982
821014aa
SE
9832011-02-07 Steve Ellcey <sje@cup.hp.com>
984
985 PR target/46997
986 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
987 (vec_interleave_lowv2sf): Ditto.
988 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
989 (vec_extract_oddv2sf): Ditto.
990
41cf94fb
MS
9912011-02-07 Mike Stump <mikestump@comcast.net>
992
62dea57d 993 PR target/42333
41cf94fb
MS
994 Add __ieee_divdc3 entry point.
995 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
996 entry point.
997 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
998 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
999 * config/darwin.c (darwin_rename_builtins): Add.
1000 * config/darwin-protos.h (darwin_rename_builtins): Add.
1001
ee09a3dd
MM
10022011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
1003
1004 PR target/47636
1005 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
1006 for the condition.
1007
83296cd0
MS
10082011-02-07 Mike Stump <mikestump@comcast.net>
1009
ea4c3e65 1010 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 1011
0f4e946f
DC
10122011-02-07 Denis Chertykov <chertykov@gmail.com>
1013
1014 PR target/47534
1015 * config/avr/libgcc.S (exit): Move .endfunc
1016
1ec87690
RG
10172011-02-07 Richard Guenther <rguenther@suse.de>
1018
1019 PR tree-optimization/47615
1020 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
1021 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
1022 (run_scc_vn): Initialize it.
1023 (visit_reference_op_load): Use it.
1024 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
1025
b46ae6da
UW
10262011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1027
1028 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
1029 DImode trapping arithmetic libfuncs.
1030
c0aae19c
RG
10312011-02-07 Richard Guenther <rguenther@suse.de>
1032
1033 PR tree-optimization/47621
1034 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
1035 two duplicates ...
1036 (execute_update_addresses_taken): ... here. Make it more
1037 conservative in what we accept.
1038
295d926b
JM
10392011-02-06 Joseph Myers <joseph@codesourcery.com>
1040
1041 * config/sparc/freebsd.h (ASM_SPEC): Define.
1042 * config/sparc/vxworks.h (ASM_SPEC): Define.
1043
bdeb2471
JM
10442011-02-06 Joseph Myers <joseph@codesourcery.com>
1045
1046 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
1047
d5d3781a
SB
10482011-02-06 Steven Bosscher <steven@gcc.gnu.org>
1049
1050 * doc/invoke.texi: Remove reference to compiler internals from
1051 user documentation.
1052
1053 * reg-notes.def: Remove REG_VALUE_PROFILE.
1054 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
1055
c42c09fc
JJ
10562011-02-05 Jakub Jelinek <jakub@redhat.com>
1057
1058 PR middle-end/47610
1059 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 1060 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 1061
beea2755
JZ
10622011-02-05 Jie Zhang <jie@codesourcery.com>
1063
1064 PR debug/42631
1065 * web.c (entry_register): Don't clobber the number of the
1066 first uninitialized reference in used[].
1067
a130584a
SP
10682011-02-04 Sebastian Pop <sebastian.pop@amd.com>
1069
1070 PR tree-optimization/46194
1071 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
1072 (build_classic_dist_vector_1): Do not represent classic distance
1073 vectors when the access functions are variating in different loops.
1074
962101ac
JM
10752011-02-04 Joseph Myers <joseph@codesourcery.com>
1076
1077 * config/mips/iris6.opt: New.
1078 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
1079
55eaaa5b
RH
10802011-02-04 Richard Henderson <rth@redhat.com>
1081 Steve Ellcey <sje@cup.hp.com>
1082
1083 PR target/46997
1084 * config/ia64/predicates.md (mux1_brcst_element): New.
1085 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
1086 * config/ia64/ia64.c (ia64_unpack_assemble): New.
1087 (ia64_unpack_sign): New.
1088 (ia64_expand_unpack): Rewrite using new routines.
1089 (ia64_expand_widen_sum): Ditto.
1090 (ia64_expand_dot_prod_v8qi): Ditto.
1091 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
1092 routines, add endian check.
1093 (pmpy2_even): Rename from pmpy2_r, add endian check.
1094 (pmpy2_odd): Rename from pmpy2_l, add endian check.
1095 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
1096 (vec_widen_smult_hi_v4hi): Ditto.
1097 (vec_widen_umult_lo_v4hi): Ditto.
1098 (vec_widen_umult_hi_v4hi): Ditto.
1099 (mulv2si3): Change endian checks.
1100 (sdot_prodv4hi): Rewrite with new calls.
1101 (udot_prodv4hi): New.
1102 (vec_pack_ssat_v4hi): Add endian check.
1103 (vec_pack_usat_v4hi): Ditto.
1104 (vec_pack_ssat_v2si): Ditto.
1105 (max1_even): Rename from max1_r, add endian check.
1106 (max1_odd): Rename from max1_l, add endian check.
1107 (*mux1_rev): Format change.
1108 (*mux1_mix): Ditto.
1109 (*mux1_shuf): Ditto.
1110 (*mux1_alt): Ditto.
1111 (*mux1_brcst_v8qi): Use new predicate.
1112 (vec_extract_evenv8qi): Remove endian check.
1113 (vec_extract_oddv8qi): Ditto.
1114 (vec_interleave_lowv4hi): Format change.
1115 (vec_interleave_highv4hi): Ditto.
1116 (mix2_even): Rename from mix2_r, add endian check.
1117 (mix2_odd): Rename from mux2_l, add endian check.
1118 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
1119 (vec_extract_evenodd_helper): Format change.
1120 (vec_extract_evenv4hi): Remove endian check.
1121 (vec_extract_oddv4hi): Remove endian check.
1122 (vec_interleave_lowv2si): Format change.
1123 (vec_interleave_highv2si): Format change.
1124 (vec_initv2si): Remove endian check.
1125 (vecinit_v2si): Add endian check.
1126 (reduc_splus_v2sf): Add endian check.
1127 (reduc_smax_v2sf): Ditto.
1128 (reduc_smin_v2sf): Ditto.
1129 (vec_initv2sf): Remove endian check.
1130 (fpack): Add endian check.
1131 (fswap): Add endian check.
1132 (vec_interleave_highv2sf): Add endian check.
1133 (vec_interleave_lowv2sf): Add endian check.
1134 (fmix_lr): Add endian check.
1135 (vec_setv2sf): Format change.
1136 (*vec_extractv2sf_0_be): Use shift to extract operand.
1137 (*vec_extractv2sf_1_be): New.
1138 (vec_pack_trunc_v4hi): Add endian check.
1139 (vec_pack_trunc_v2si): Format change.
1140
dcde5957
JJ
11412011-02-04 Jakub Jelinek <jakub@redhat.com>
1142
1143 PR inline-asm/23200
1144 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 1145 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
1146 (stmt_is_replaceable_p): New function.
1147 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
1148 callers.
1149 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
1150 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
1151 SSA_NAME_DEF_STMT.
1152 * tree-flow.h (stmt_is_replaceable_p): New prototype.
1153
a64a8e5a
JM
11542011-02-04 Joseph Myers <joseph@codesourcery.com>
1155
1156 * config/rs6000/xilinx.opt: New.
1157 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
1158
4da2ed2f
JM
11592011-02-04 Joseph Myers <joseph@codesourcery.com>
1160
1161 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
1162
a6e508f9
AS
11632011-02-03 Anatoly Sokolov <aesok@post.ru>
1164
1165 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
1166 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1167 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
1168 secondary_reload_info, xtensa_secondary_reload): Remove.
1169 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
1170 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1171 (xtensa_preferred_reload_class): Make static. Change return and
1172 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
1173 Use CONST_DOUBLE_P predicate.
1174 (xtensa_preferred_output_reload_class): New function.
1175 (xtensa_secondary_reload): Make static.
1176
82dc0de3
JM
11772011-02-03 Joseph Myers <joseph@codesourcery.com>
1178
1179 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
1180 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
1181 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
1182
7fece979
JJ
11832011-02-03 Jakub Jelinek <jakub@redhat.com>
1184
1185 PR middle-end/31490
1186 * output.h (SECTION_RELRO): Define.
1187 (SECTION_MACH_DEP): Adjust.
1188 (get_variable_section): New prototype.
1189 * varpool.c (varpool_finalize_named_section_flags): New function.
1190 (varpool_assemble_pending_decls): Call it.
1191 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
1192 * cgraphunit.c (cgraph_output_in_order): Call
1193 varpool_finalize_named_section_flags.
1194 * varasm.c (get_section): Allow section flags conflicts between
1195 relro and read-only sections if the section hasn't been declared yet.
1196 Set SECTION_OVERRIDE after diagnosing section type conflict.
1197 (get_variable_section): No longer static.
1198 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
1199 readonly sections that need relocations.
1200 (decl_readonly_section_1): New function.
1201 (decl_readonly_section): Use it.
1202
1203 Revert:
1204 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
1205 Steve Ellcey <sje@cup.hp.com>
1206
1207 PR middle-end/31490
1208 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1209 if section attribute used.
1210
d18d5478
JJ
12112011-02-03 Jakub Jelinek <jakub@redhat.com>
1212
1213 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
1214 * config/darwin.c (SECTION_NO_ANCHOR): Define.
1215 (darwin_init_sections): Remove assertion.
1216
6479ed4b
NC
12172011-02-03 Nick Clifton <nickc@redhat.com>
1218
1219 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
1220 lt and ge.
38be4072 1221 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
1222 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
1223 instead of "n" and "pz".
1224 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
1225 CC_FLAG_S.
1226
89843f5d
JJ
12272011-02-03 Jakub Jelinek <jakub@redhat.com>
1228
65450d64
JJ
1229 PR target/47312
1230 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
1231 fma, expand FMA_EXPR as fma{,f,l} call.
1232
7d58701c
JJ
1233 PR lto/47274
1234 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
1235 copy them into a unsigned char variable and pass address of it to
1236 lto_output_data_stream.
1237
89843f5d
JJ
1238 PR target/47564
1239 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
1240 around backend_init_target and lang_dependent_init_target calls.
1241 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
1242 (verify_cgraph_node): Don't call set_cfun here. Use
1243 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
1244 Set error_found for incorrectly represented calls to thunks.
1245
4deef538
AO
12462011-02-03 Alexandre Oliva <aoliva@redhat.com>
1247
1248 PR debug/43092
1249 PR rtl-optimization/43494
1250 * rtl.h (for_each_inc_dec_fn): New type.
1251 (for_each_inc_dec): Declare.
1252 * rtlanal.c (struct for_each_inc_dec_ops): New type.
1253 (for_each_inc_dec_find_inc_dec): New fn.
1254 (for_each_inc_dec_find_mem): New fn.
1255 (for_each_inc_dec): New fn.
1256 * dse.c (struct insn_size): Remove.
1257 (replace_inc_dec, replace_inc_dec_mem): Remove.
1258 (emit_inc_dec_insn_before): New fn.
1259 (check_for_inc_dec): Use it, along with for_each_inc_dec.
1260 (canon_address): Pass mem modes to cselib_lookup.
1261 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
1262 (cselib_lookup_from_insn): Likewise.
1263 (cselib_subst_to_values): Likewise.
1264 * cselib.c (find_slot_memmode): New var.
1265 (cselib_find_slot): New fn. Use it instead of
1266 htab_find_slot_with_hash everywhere.
1267 (entry_and_rtx_equal_p): Use find_slot_memmode.
1268 (autoinc_split): New fn.
1269 (rtx_equal_for_cselib_p): Rename and implement in terms of...
1270 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
1271 Deal with autoinc. Special-case recursion into MEMs.
1272 (cselib_hash_rtx): Likewise.
1273 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
1274 address and MEM modes.
1275 (cselib_subst_to_values): Add memmode, pass it on.
1276 Deal with autoinc.
1277 (cselib_lookup): Add memmode argument, pass it on.
1278 (cselib_lookup_from_insn): Add memmode.
1279 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
1280 (struct cselib_record_autoinc_data): New.
1281 (cselib_record_autoinc_cb): New fn.
1282 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
1283 mode to cselib_lookup. Reset autoinced REGs here instead of...
1284 (cselib_process_insn): ... here.
1285 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
1286 to cselib_lookup.
1287 (add_uses): Likewise, also to cselib_subst_to_values.
1288 (add_stores): Likewise.
1289 * sched-deps.c (add_insn_mem_dependence): Pass mode to
1290 cselib_subst_to_values.
1291 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
1292 * gcse.c (do_local_cprop): Adjusted.
1293 * postreload.c (reload_cse_simplify_set): Adjusted.
1294 (reload_cse_simplify_operands): Adjusted.
1295 * sel-sched-dump (debug_mem_addr_value): Pass mode.
1296
1551d44a
AO
12972011-02-03 Alexandre Oliva <aoliva@redhat.com>
1298
1299 PR tree-optimization/45122
1300 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
1301 unsafe assumptions when there's more than one loop exit.
1302
c9485473
MM
13032011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1304
1305 PR target/47272
1306 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1307 Document using vector double with the load/store builtins, and
1308 that the load/store builtins always use Altivec instructions.
1309
1310 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
1311 to use altivec memory instructions, even on VSX.
1312 (vector_altivec_store_<mode>): Ditto.
1313
1314 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
1315 function.
1316
1317 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1318 V2DF, V2DI support to load/store overloaded builtins.
1319
1320 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
1321 altivec load/store builtins for V2DF/V2DI types.
1322
1323 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1324 set avoid indexed addresses on power6 if -maltivec.
1325 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
1326 vector_altivec_load/vector_altivec_store builtins.
1327 (altivec_expand_st_builtin): Ditto.
1328 (altivec_expand_builtin): Add VSX memory builtins.
1329 (rs6000_init_builtins): Add V2DI types to internal types.
1330 (altivec_init_builtins): Add support for V2DF/V2DI altivec
1331 load/store builtins.
1332 (rs6000_address_for_altivec): Insure memory address is appropriate
1333 for Altivec.
1334
1335 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
1336 vec_vsx_ld and vec_vsx_st.
1337 (vsx_store_<mode>): Ditto.
1338
1339 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
1340 variables to hold long long types for VSX vector memory builtins.
1341 (RS6000_BTI_unsigned_long_long): Ditto.
1342 (long_long_integer_type_internal_node): Ditti.
1343 (long_long_unsigned_type_internal_node): Ditti.
1344
1345 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
1346 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
1347 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
1348
1349 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
1350 short cuts.
1351 (vec_vsx_st): Ditto.
1352
b24d1acf
JM
13532011-02-02 Joseph Myers <joseph@codesourcery.com>
1354
1355 * config/pa/pa-hpux10.opt: New.
1356 * config/hpux11.opt (pthread): New Driver option.
1357 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
1358 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
1359
aa18dd0f
JM
13602011-02-02 Joseph Myers <joseph@codesourcery.com>
1361
1362 * config/ia64/vms.opt: New.
1363 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
1364
28fc3eee
MM
13652011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
1366
1367 PR target/47580
1368 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
1369 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
1370 generator functions.
1371 (vsx_floatuns<VSi><mode>2): Ditto.
1372 (vsx_fix_trunc<mode><VSi>2): Ditto.
1373 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
1374
b5838b1f
JM
13752011-02-02 Joseph Myers <joseph@codesourcery.com>
1376
1377 * config/i386/djgpp.opt (posix): New Driver option.
1378
0db8fa89
GP
13792011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
1380
1381 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
1382 Move to the unsupported targets list.
1383
9cd4f22a
PB
13842011-02-02 Peter Bergner <bergner@vnet.ibm.com>
1385
1386 PR rtl-optimization/47525
1387 * df-scan.c: Update copyright years.
1388 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
1389 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
1390
9ed8059c
RO
13912011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1392
1393 * config/i386/sysv4.h (TARGET_VERSION): Remove.
1394 (SUBTARGET_RETURN_IN_MEMORY): Remove.
1395 (ASM_OUTPUT_ASCII): Remove.
1396 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
1397
2a737389
JL
13982011-02-02 Jeff Law <law@redhat.com>
1399
1400 PR middle-end/47543
1401 * reload.c (find_reloads_address): Handle reg+d address where both
1402 components are invalid by reloading the entire address.
1403
9dac82c4
SP
14042011-02-02 Sebastian Pop <sebastian.pop@amd.com>
1405 Richard Guenther <rguenther@suse.de>
1406
1407 PR tree-optimization/40979
1408 PR bootstrap/47044
1409 * passes.c (init_optimization_passes): After LIM call copy_prop
1410 and DCE to clean up.
1411 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
1412
14dd9aab
SP
14132011-02-02 Sebastian Pop <sebastian.pop@amd.com>
1414
1415 PR tree-optimization/47576
1416 PR tree-optimization/47555
1417 * doc/invoke.texi (scev-max-expr-complexity): Documented.
1418 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1419 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
1420 * tree-scalar-evolution.c (follow_ssa_edge): Use
1421 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
1422
5cbf5c20
RG
14232011-02-02 Richard Guenther <rguenther@suse.de>
1424
1425 PR tree-optimization/47566
1426 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
1427
83d70792
AO
14282011-02-02 Alexandre Oliva <aoliva@redhat.com>
1429
e829c321
AO
1430 PR debug/47106
1431 PR debug/47402
1432 * tree-inline.c (declare_return_variable): Remove unused caller
1433 variable.
1434
83d70792
AO
1435 PR debug/47106
1436 PR debug/47402
1437 * tree-flow-inline.h (clear_is_used, is_used_p): New.
1438 * cfgexpand.c (account_used_vars_for_block): Use them.
1439 * tree-nrv.c (tree_nrv): Likewise.
1440 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
1441 (dump_scope_block): Likewise.
1442 (remove_unused_locals): Likewise.
1443
aaa2ac93
AO
1444 PR debug/47106
1445 PR debug/47402
1446 * tree-inline.c (declare_return_variable): Add result decl to
1447 local decls only once.
1448 * gimple-low.c (record_vars_into): Mark newly-created variables
1449 as referenced.
1450
a59d15cf
AO
14512011-02-02 Alexandre Oliva <aoliva@redhat.com>
1452
1453 PR debug/47498
1454 PR debug/47501
1455 PR debug/45136
1456 PR debug/45130
1457 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1458 debug insns.
1459 (no_real_insns_p, schedule_block, set_priorities): Drop special
1460 treatment of boundary debug insns.
38be4072 1461 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
1462 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
1463 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1464 (BOUNDARY_DEBUG_INSN_P): Likewise.
1465 (SCHEDULE_DEBUG_INSN_P): Likewise.
1466 * sched-rgn.c (init_ready_list): Drop special treatment of
1467 boundary debug insns.
1468 * final.c (rest_of_clean_state): Clear notes' BB.
1469
6fc2f091
JM
14702011-02-01 Joseph Myers <joseph@codesourcery.com>
1471
1472 * config/openbsd.opt (assert=): New Driver option.
1473
fc523387
JM
14742011-02-01 Joseph Myers <joseph@codesourcery.com>
1475
1476 * config/i386/nto.opt: New.
1477 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
1478
6d9821e5
JM
14792011-02-01 Joseph Myers <joseph@codesourcery.com>
1480
1481 * config/i386/netware.opt: New.
1482 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
1483
cef932d4
JM
14842011-02-01 Joseph Myers <joseph@codesourcery.com>
1485
1486 * config/interix.opt (posix): New Driver option.
1487
22843acd
DD
14882011-02-01 DJ Delorie <dj@redhat.com>
1489
56490b74
DD
1490 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
1491
22843acd
DD
1492 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
1493 class for A0/A1.
1494
199c8f2f
SP
14952011-02-01 Sebastian Pop <sebastian.pop@amd.com>
1496
1497 PR tree-optimization/47561
1498 * toplev.c (process_options): Print the Graphite flags. Add
1499 flag_loop_flatten to the list of options requiring Graphite.
1500
926bcf22
JM
15012011-02-01 Joseph Myers <joseph@codesourcery.com>
1502
1503 * config/i386/cygming.opt (posix): New Driver option.
1504
59793c51
JM
15052011-02-01 Joseph Myers <joseph@codesourcery.com>
1506
1507 * config/arm/vxworks.opt: New.
1508 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
1509
183c38a4
JM
15102011-02-01 Joseph Myers <joseph@codesourcery.com>
1511
1512 * config/alpha/elf.opt: New.
1513 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
1514 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
1515
9939e416
RG
15162011-02-01 Richard Guenther <rguenther@suse.de>
1517
1518 PR tree-optimization/47559
1519 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
1520 store-motion on references that can throw.
1521
4a3c9687
BS
15222011-02-01 Bernd Schmidt <bernds@codesourcery.com>
1523
1524 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
1525 * tree-pass.h (TDF_CSELIB): New macro.
1526 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
1527 cselib_lookup): Check for it rather than for TDF_DETAILS.
1528
dd3b31fb
L
15292011-02-01 H.J. Lu <hongjiu.lu@intel.com>
1530
1531 PR driver/47547
1532 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
1533 is HOST_BIT_BUCKET.
1534
1535 * opts.c (finish_options): Don't add x_aux_base_name if it is
1536 HOST_BIT_BUCKET.
1537
34c1de79
RG
15382011-02-01 Richard Guenther <rguenther@suse.de>
1539
1540 PR tree-optimization/47555
1541 Revert
1542 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1543
1544 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1545
dd2804d2
SB
15462011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
1547
1548 PR gcc/46692
1549 * config/lm32/t-lm32: Add multilib for all CPU options.
1550
3fd3b156
RG
15512011-02-01 Richard Guenther <rguenther@suse.de>
1552
1553 PR tree-optimization/47541
1554 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
1555 sure to have a field at offset zero.
1556
f16072b6
JM
15572011-01-31 Joseph Myers <joseph@codesourcery.com>
1558
1559 * config/arc/arc.opt (EB, EL): New Driver options.
1560
6456cf2e
JM
15612011-01-31 Joseph Myers <joseph@codesourcery.com>
1562
1563 * config/alpha/osf5.opt: New.
1564 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
1565
cdde6ab4
JM
15662011-01-31 Joseph Myers <joseph@codesourcery.com>
1567
1568 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
1569
7633415c
SP
15702011-01-31 Sebastian Pop <sebastian.pop@amd.com>
1571
1572 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
1573 -floop-interchange.
1574 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
1575 is an alias of -floop-interchange and that it requires the
1576 Graphite infrastructure.
1577 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
1578 flag_loop_interchange based on the value of flag_tree_loop_linear.
1579
0425d6f5
JJ
15802011-01-31 Jakub Jelinek <jakub@redhat.com>
1581 Richard Guenther <rguenther@suse.de>
1582
1583 PR tree-optimization/47538
1584 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
1585 type instead of r1type, except for comparisons. For right
1586 shifts and comparisons punt if there are mismatches in
1587 sizetype vs. non-sizetype types.
1588
500b16c3
RO
15892011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1590
1591 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1592 avx_runtime.
1593
e279edb0
RO
15942011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1595
1596 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
1597 version number.
1598 * configure: Regenerate.
1599
c6092243
RO
16002011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1601
1602 * configure.ac (gcc_cv_ld_static_option): Define.
1603 (gcc_cv_ld_dynamic_option): Define.
1604 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
1605 instead.
1606 (HAVE_LD_STATIC_DYNAMIC): Update message.
1607 (LD_STATIC_OPTION): Define.
1608 (LD_DYNAMIC_OPTION): Define.
1609 * configure: Regenerate.
1610 * config.in: Regenerate.
1611 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
1612 HAVE_LD_STATIC_DYNAMIC]: Use them.
1613
d7862be3
NC
16142011-01-31 Nick Clifton <nickc@redhat.com>
1615
1616 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
1617 registers inside interrupt handlers if the handler is not a leaf
1618 function.
1619
ba4ec0e0
NC
16202011-01-31 Nick Clifton <nickc@redhat.com>
1621
1622 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
1623 reg_renumber returning an INVALID_REGNUM.
1624
29a63921
AO
16252011-01-31 Alexandre Oliva <aoliva@redhat.com>
1626
1627 PR libgcj/44341
1628 * doc/install.texi: Document host options discarded when cross
1629 configuring target libraries.
1630
ef591d3f
AO
16312011-01-31 Alexandre Oliva <aoliva@redhat.com>
1632
1633 Reverted:
1634 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
1635 PR debug/45136
1636 PR debug/45130
1637 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1638 debug insns.
1639 (no_real_insns_p, schedule_block, set_priorities): Drop special
1640 treatment of boundary debug insns.
38be4072 1641 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
1642 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
1643 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1644 (BOUNDARY_DEBUG_INSN_P): Likewise.
1645 (SCHEDULE_DEBUG_INSN_P): Likewise.
1646 * sched-rgn.c (init_ready_list): Drop special treatment of
1647 boundary debug insns.
1648 * final.c (rest_of_clean-state): Clear notes' BB.
1649
61052244
AM
16502011-01-31 Alan Modra <amodra@gmail.com>
1651
1652 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
1653 toc relative expressions as we do in print_operand_address.
1654
c4c8962b
KH
16552011-01-30 Kazu Hirata <kazu@codesourcery.com>
1656
1657 * doc/extend.texi: Follow spelling conventions.
1658 * doc/invoke.texi: Fix a typo.
1659
e543b94c
JM
16602011-01-30 Joseph Myers <joseph@codesourcery.com>
1661
1662 * config/hpux11.opt: New.
1663 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
1664 ia64*-*-hpux*): Use hpux11.opt.
1665
61052244 16662011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
1667
1668 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
1669 to tmake_file.
1670
7be03a0e
GP
16712011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1672
1673 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
1674 support sites.
1675
419d1d37
GP
16762011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1677
b596ed64
GP
1678 * doc/install.texi (Binaries): Remove outdated reference for
1679 Motorola 68HC11/68HC12 downloads.
1680
16812011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 1682
419d1d37
GP
1683 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
1684 Drepper's paper.
1685
4406d0e9
JW
16862011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1687
1688 PR bootstrap/47147
1689 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
1690 used by NetBSD.
1691
38be4072 16922011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
1693
1694 * value-prof.c (check_counter): Corrected error message.
1695
0cd98787
JZ
16962011-01-29 Jie Zhang <jie@codesourcery.com>
1697
1698 * config/arm/arm.c (arm_legitimize_reload_address): New.
1699 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
1700 arm_legitimize_reload_address.
38be4072 1701 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 1702
9b798ac5
ILT
17032011-01-28 Ian Lance Taylor <iant@google.com>
1704
1705 * godump.c (go_define): Ignore macros whose definitions include
1706 two adjacent operands.
1707
591e29d9
JJ
17082011-01-28 Jakub Jelinek <jakub@redhat.com>
1709
1710 PR target/42894
1711 * varasm.c (force_const_mem): Store copy of x in desc->constant
1712 instead of x itself.
1713 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
1714 itself into REG_EQUAL note.
1715
62dcc44a
JM
17162011-01-28 Joseph Myers <joseph@codesourcery.com>
1717
1718 * config/freebsd.opt (posix, rdynamic): New Driver options.
1719
c9f58b9a
RO
17202011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1721
1722 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
1723 -Bstatic/-Bdynamic.
1724 * configure: Regenerate.
1725
5f02b9db
JM
17262011-01-27 Joseph Myers <joseph@codesourcery.com>
1727
1728 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
1729 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
1730
5df97412
AS
17312011-01-27 Anatoly Sokolov <aesok@post.ru>
1732
1733 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
1734 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
1735 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1736 (s390_preferred_reload_class): Make static. Change return and
1737 'rclass' argument type to reg_class_t.
1738
779d4b91
JH
17392011-01-27 Jan Hubicka <jh@suse.cz>
1740
1741 PR middle-end/46949
1742 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
1743 (process_function_and_variable_attributes): Check defined weakrefs.
1744
e80b21ed
MJ
17452011-01-27 Martin Jambor <mjambor@suse.cz>
1746
1747 PR tree-optimization/47228
1748 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
1749 build_ref_for_offset.
1750
6dcc4f31
UW
17512011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1752
1753 * config/spu/spu-elf.h (ASM_SPEC): Remove.
1754
3b8ff89f
MP
17552011-01-26 Mikael Pettersson <mikpe@it.uu.se>
1756
1757 PR rtl-optimization/46856
1758 * postreload.c (reload_combine_recognize_const_pattern): Do not
1759 separate cc0 setter and user on cc0 targets.
1760
04af8788
NP
17612011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
1762
1763 PR c/43082
1764 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
1765 passed a VOID_TYPE expression, immediately emit an error and
1766 return error_mark_node.
1767
f7a60085
JL
17682011-01-26 Jeff Law <law@redhat.com>
1769
1770 PR rtl-optimization/47464
1771 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
1772 rather than may_trap_p as needed.
1773
5c2917ec
DD
17742011-01-26 DJ Delorie <dj@redhat.com>
1775
1776 PR rtl-optimization/46878
1777 * combine.c (insn_a_feeds_b): Check for the implicit cc0
1778 setter/user dependency as well.
1779
bef16e87
EB
17802011-01-26 Eric Botcazou <ebotcazou@adacore.com>
1781
1782 PR rtl-optimization/44469
1783 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
1784 after removing trivially dead basic blocks.
1785
c75d884b
JM
17862011-01-26 Joseph Myers <joseph@codesourcery.com>
1787
1788 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
1789 * config/frv/frv.h (LINK_SPEC): Likewise.
1790 * config/i386/netware.h (LINK_SPEC): Likewise.
1791 * config/m68k/linux.h (ASM_SPEC): Likewise.
1792 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
1793 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1794 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1795 * config/sparc/linux.h (ASM_SPEC): Likewise.
1796 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1797 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1798
d3153553
JM
17992011-01-26 Joseph Myers <joseph@codesourcery.com>
1800
1801 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
1802 * config/frv/frv.h (ASM_SPEC): Likewise.
1803 * config/m68k/linux.h (ASM_SPEC): Likewise.
1804 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1805 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
1806 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1807 * config/sparc/linux.h (ASM_SPEC): Likewise.
1808 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1809 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1810
b89b1e9d
JM
18112011-01-26 Joseph Myers <joseph@codesourcery.com>
1812
1813 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
1814 * config/frv/frv.h (LINK_SPEC): Likewise.
1815 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1816
12eb1a9c
JM
18172011-01-26 Joseph Myers <joseph@codesourcery.com>
1818
1819 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
1820 * config/frv/frv.h (ASM_SPEC): Likewise.
1821 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1822 * config/m68k/linux.h (ASM_SPEC): Likewise.
1823 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1824 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1825 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1826 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
1827 * config/sparc/linux.h (ASM_SPEC): Likewise.
1828 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1829 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1830 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
1831
e435f098
SE
18322011-01-26 Steve Ellcey <sje@cup.hp.com>
1833
1834 PR target/46997
1835 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
1836 (*mux2): Ditto.
1837 (vec_extract_evenodd_help): Ditto.
1838 (vec_extract_evenv4hi): Ditto.
1839 (vec_extract_oddv4hi): Ditto.
1840 (vec_interleave_lowv2si): Ditto.
1841 (vec_interleave_highv2si): Ditto.
1842 (vec_extract_evenv2si): Ditto.
1843 (vec_extract_oddv2si: Ditto.
1844 (vec_pack_trunc_v2si): Ditto.
1845
34f0eee0
JH
18462011-01-22 Jan Hubicka <jh@suse.cz>
1847
1848 PR target/47237
1849 * cgraph.h (cgraph_local_info): New field can_change_signature.
1850 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
1851 signature can change.
1852 (ipcp_estimate_growth): Call sequence simplify only if calle signature
1853 can change.
1854 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
1855 (cgraph_function_versioning): We can not change signature of functions
1856 that don't allow that.
1857 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
1858 (lto_input_node): Likewise.
38be4072
UB
1859 * ipa-inline.c (compute_inline_parameters): Compute
1860 local.can_change_signature.
34f0eee0 1861 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
1862 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
1863 functions that can not change signature.
34f0eee0 1864 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
1865 init_cumulative_args): Do not use local calling conventions
1866 for functions that can not change signature.
34f0eee0 1867
980ca891
JH
18682011-01-22 Jan Hubicka <jh@suse.cz>
1869
1870 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
1871
768e3c60
RG
18722011-01-26 Richard Guenther <rguenther@suse.de>
1873
1874 PR tree-optimization/47190
61052244
AM
1875 * cgraphunit.c (process_common_attributes): New function.
1876 (process_function_and_variable_attributes): Use it.
768e3c60 1877
21d6a1c7
RG
18782011-01-26 Richard Guenther <rguenther@suse.de>
1879
1880 PR lto/47423
1881 * cgraphbuild.c (record_eh_tables): Record reference to personality
1882 function.
1883
48bb58b1
AO
18842011-01-26 Alexandre Oliva <aoliva@redhat.com>
1885
1886 PR debug/45454
1887 * sel-sched.c (moveup_expr): Don't let debug insns prevent
1888 non-debug insns from moving up.
1889
58c741a6
DK
18902011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1891
1892 PR target/40125
1893 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
1894 t-dlldir{,-x} fragment for build and add it to tmake_file.
1895 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
1896 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
1897 * config/i386/t-dlldir: New file.
1898 (SHLIB_DLLDIR): Define.
1899 * config/i386/t-dlldir-x: New file.
1900 (SHLIB_DLLDIR): Define.
1901 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
1902 (SHLIB_INSTALL): Use it.
1903
bff99262
CLT
19042011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
1905
1906 PR target/47246
1907 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
1908 lower bound of the allowed Thumb-2 coprocessor load/store
1909 index range to -256. Add explaining comment.
1910
82c03907
ILT
19112011-01-25 Ian Lance Taylor <iant@google.com>
1912
1913 * godump.c (go_define): Improve lexing of macro expansion to only
1914 accept expressions which match Go spec.
1915
47ea1edf
DK
19162011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1917
d4dba752 1918 PR c++/43601
47ea1edf
DK
1919 * tree.c (handle_dll_attribute): Handle it.
1920 * doc/extend.texi (@item dllexport): Mention it.
1921 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
1922
744f0946
ILT
19232011-01-25 Ian Lance Taylor <iant@google.com>
1924
1925 PR tree-optimization/26854
1926 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
1927 (decl_jump_unsafe): Move higher in file, with no other change.
1928 (bind): Set has_jump_unsafe_decl if appropriate.
1929 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
1930 (check_earlier_gotos): Likewise.
1931 (c_check_switch_jump_warnings): Likewise.
1932
5734f2b3
JW
19332011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
1934
1935 * doc/invoke.texi (Warning Options): Add missing hyphen.
1936 (-fprofile-dir): Minor grammatical fixes.
1937 (-fbranch-probabilities): Likewise.
1938
9bdbdcef
AO
19392011-01-25 Alexandre Oliva <aoliva@redhat.com>
1940
1941 PR debug/45136
1942 PR debug/45130
1943 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1944 debug insns.
1945 (no_real_insns_p, schedule_block, set_priorities): Drop special
1946 treatment of boundary debug insns.
38be4072 1947 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
1948 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
1949 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1950 (BOUNDARY_DEBUG_INSN_P): Likewise.
1951 (SCHEDULE_DEBUG_INSN_P): Likewise.
1952 * sched-rgn.c (init_ready_list): Drop special treatment of
1953 boundary debug insns.
1954 * final.c (rest_of_clean-state): Clear notes' BB.
1955
b305e3da
SP
19562011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1957
1958 * Makefile.in (LAMBDA_H): Removed.
1959 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
1960 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
1961 lambda-trans.o, and tree-loop-linear.o.
1962 (lto-symtab.o): Remove dependence on LAMBDA_H.
1963 (tree-loop-linear.o): Remove rule.
1964 (lambda-mat.o): Same.
1965 (lambda-trans.o): Same.
1966 (lambda-code.o): Same.
1967 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
1968 (tree-vect-slp.o): Same.
1969 * hwint.h (gcd): Moved here.
1970 (least_common_multiple): Same.
1971 * lambda-code.c: Removed.
1972 * lambda-mat.c: Removed.
1973 * lambda-trans.c: Removed.
1974 * lambda.h: Removed.
1975 * tree-loop-linear.c: Removed.
1976 * lto-symtab.c: Do not include lambda.h.
1977 * omega.c (gcd): Removed.
1978 * passes.c (init_optimization_passes): Remove pass_linear_transform.
1979 * tree-data-ref.c (print_lambda_vector): Moved here.
1980 (lambda_vector_copy): Same.
1981 (lambda_matrix_copy): Same.
1982 (lambda_matrix_id): Same.
1983 (lambda_vector_first_nz): Same.
1984 (lambda_matrix_row_add): Same.
1985 (lambda_matrix_row_exchange): Same.
1986 (lambda_vector_mult_const): Same.
1987 (lambda_vector_negate): Same.
1988 (lambda_matrix_row_negate): Same.
1989 (lambda_vector_equal): Same.
1990 (lambda_matrix_right_hermite): Same.
1991 * tree-data-ref.h: Do not include lambda.h.
1992 (lambda_vector): Moved here.
1993 (lambda_matrix): Same.
1994 (dependence_level): Same.
1995 (lambda_transform_legal_p): Removed declaration.
1996 (lambda_collect_parameters): Same.
1997 (lambda_compute_access_matrices): Same.
1998 (lambda_vector_gcd): Same.
1999 (lambda_vector_new): Same.
2000 (lambda_vector_clear): Same.
2001 (lambda_vector_lexico_pos): Same.
2002 (lambda_vector_zerop): Same.
2003 (lambda_matrix_new): Same.
2004 * tree-flow.h (least_common_multiple): Removed declaration.
2005 * tree-parloops.c (lambda_trans_matrix): Moved here.
2006 (LTM_MATRIX): Same.
2007 (LTM_ROWSIZE): Same.
2008 (LTM_COLSIZE): Same.
2009 (LTM_DENOMINATOR): Same.
2010 (lambda_trans_matrix_new): Same.
2011 (lambda_matrix_vector_mult): Same.
2012 (lambda_transform_legal_p): Same.
2013 * tree-pass.h (pass_linear_transform): Removed declaration.
2014 * tree-ssa-loop.c (tree_linear_transform): Removed.
2015 (gate_tree_linear_transform): Removed.
2016 (pass_linear_transform): Removed.
2017 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
2018 flag_loop_interchange.
2019
6bdfdb96
JJ
20202011-01-25 Jakub Jelinek <jakub@redhat.com>
2021
2022 PR tree-optimization/47265
2023 PR tree-optimization/47443
2024 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
2025 if name still has some uses.
2026
e4cba915
MJ
20272011-01-25 Martin Jambor <mjambor@suse.cz>
2028
2029 PR tree-optimization/47382
2030 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
2031 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
2032
f822b8ea
JS
20332011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
2034
2035 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
2036 sjlj_except_unwind_info.
2037
194313e2
RG
20382011-01-25 Richard Guenther <rguenther@suse.de>
2039
2040 PR tree-optimization/47426
2041 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
2042 visible functions results escape.
2043
147a0bcf
JJ
20442011-01-25 Jakub Jelinek <jakub@redhat.com>
2045
2046 PR target/45701
2047 * config/arm/arm.c (any_sibcall_uses_r3): New function.
2048 (arm_get_frame_offsets): Use it.
2049
db963b52
SP
20502011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2051 Jakub Jelinek <jakub@redhat.com>
2052
2053 PR tree-optimization/47271
2054 * tree-if-conv.c (bb_postdominates_preds): New.
2055 (if_convertible_bb_p): Call bb_postdominates_preds.
2056 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
2057 (predicate_scalar_phi): Call bb_postdominates_preds.
2058
bcddd3b9
NC
20592011-01-25 Nick Clifton <nickc@redhat.com>
2060
2061 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
2062 * config/rx/rx.c (rx_function_value): Likewise.
2063 (rx_promote_function_mode): Likewise.
2064 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
2065 in order to make it legitimate.
38be4072
UB
2066 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
2067 make sure that the first operand is the same as the result register.
bcddd3b9
NC
2068 (addsi3_unspec): Delete.
2069 (subdi3): Do not accept immediate operands.
2070 (subdi3_internal): Likewise.
2071
7e6cb022
JL
20722011-01-25 Jeff Law <law@redhat.com>
2073
2074 PR rtl-optimization/37273
2075 * ira-costs.c (scan_one_insn): Detect constants living in memory and
2076 handle them like argument loads from stack slots. Do not double
2077 count memory for memory constants and argument loads from stack slots.
2078
9ffa621e
JJ
20792011-01-25 Jakub Jelinek <jakub@redhat.com>
2080
2081 PR tree-optimization/47427
2082 PR tree-optimization/47428
2083 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2084 coalesce if the new root var would be TREE_READONLY.
2085
5bd6e652
RG
20862011-01-25 Richard Guenther <rguenther@suse.de>
2087
2088 PR middle-end/47414
2089 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
2090 correct type for TBAA.
2091
7c48ea69
SP
20922011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2093
2094 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
2095 (close_phi_written_to_memory): Call for_each_index with
2096 dr_indices_valid_in_loop.
2097
38013f25
SP
20982011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2099
2100 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
2101 when it is initialized.
2102
5c640e29
SP
21032011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2104
2105 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
2106 call to graphite_find_data_references_in_stmt.
2107 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
2108 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
2109 call to graphite_find_data_references_in_stmt.
2110 (analyze_drs_in_stmts): Same.
2111 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
2112 in which the scalar analysis of indices is performed.
2113 (create_data_ref): Same. Update call to dr_analyze_indices.
2114 (find_data_references_in_stmt): Update call to create_data_ref.
2115 (graphite_find_data_references_in_stmt): Same.
2116 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
2117 declaration.
2118 (create_data_ref): Same.
2119 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
2120 call to create_data_ref.
2121
ac53c069
SP
21222011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2123
2124 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 2125 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 2126
3d17df15
SP
21272011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2128
2129 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
2130 VAR_DECL, PARM_DECL, and RESULT_DECL.
2131
c513da01
SP
21322011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2133
2134 * graphite-dependences.c (reduction_dr_1): Allow several reductions
2135 in a reduction PBB.
2136 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
2137 that have already been marked as PBB_IS_REDUCTION.
2138
3a292d59
SP
21392011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2140
2141 * graphite-scop-detection.c (same_close_phi_node): New.
2142 (remove_duplicate_close_phi): New.
2143 (make_close_phi_nodes_unique): New.
2144 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
2145
ba858447
SP
21462011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2147
2148 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
2149 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
2150 of both data references to be the same.
2151
8d865c56
SP
21522011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2153
38be4072
UB
2154 * graphite-dependences.c (build_lexicographical_constraint): Remove
2155 the gdim parameter.
2156 (build_lexicographical_constraint): Adjust call to
2157 ppl_powerset_is_empty.
8d865c56
SP
2158 (dependence_polyhedron): Same.
2159 (graphite_legal_transform_dr): Same.
2160 (graphite_carried_dependence_level_k): Same.
38be4072
UB
2161 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
2162 parameter.
8d865c56
SP
2163 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
2164
50034a36
SP
21652011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2166
2167 * graphite-sese-to-poly.c
2168 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
2169 (close_phi_written_to_memory): New.
2170 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
2171 and unshare_expr.
2172
0deada9e
SP
21732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2174
2175 * doc/install.texi: Update the expected version number of PPL to 0.11.
2176 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
2177 #if PPL_VERSION_MINOR < 11.
2178
d7d3d6af
SP
21792011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2180
2181 * graphite-dependences.c: Include graphite-cloog-util.h.
2182 (new_poly_ddr): Inlined into dependence_polyhedron.
2183 (free_poly_ddr): Moved close by new_poly_ddr.
2184 (dependence_polyhedron_1): Renamed dependence_polyhedron.
2185 Early return NULL when ppl_powerset_is_empty returns true.
2186 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
2187 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
2188 (graphite_legal_transform_dr): Call new_poly_ddr.
2189 (graphite_carried_dependence_level_k): Same.
2190 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
2191 (dot_transformed_deps_stmt_1): Removed.
2192 (dot_deps_stmt_1): Call dot_deps_stmt_2.
2193 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
2194 (dot_deps_1): Call dot_deps_2.
2195 * Makefile.in (graphite-dependences.o): Add missing dependence on
2196 graphite-cloog-util.h.
2197
28c5db57
SP
21982011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2199
2200 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
2201 (build_lexicographical_constraint): Same.
2202 (dependence_polyhedron_1): Same.
2203 (graphite_legal_transform_dr): Same.
2204 (graphite_carried_dependence_level_k): Same.
2205 * graphite-ppl.c (ppl_powerset_is_empty): New.
2206 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
2207 * tree-data-ref.c (dump_data_reference): Print the basic block index.
2208
5168d98f
SP
22092011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2210
2211 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
2212 the "a followed by b" relation and document it.
2213
4a40293a
SP
22142011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2215
2216 * graphite-dependences.c (build_lexicographical_constraint): Stop the
2217 iteration when the bag of constraints is empty.
2218
271fb6fa
SP
22192011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2220
2221 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
2222
92d23680
SP
22232011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2224
2225 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
2226 nest and two loop depths as parameters.
2227 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
2228 lst_perfect_nestify.
2229
2f51deff
SP
22302011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2231
2232 * graphite-dependences.c (print_pddr): Call
2233 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
2234
07f3593c
SP
22352011-01-25 Sebastian Pop <sebastian.pop@amd.com>
2236
2237 * graphite-ppl.c (debug_gmp_value): New.
2238 * graphite-ppl.h (debug_gmp_value): Declared.
2239
3fae6099
TG
22402011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
2241
2242 * doc/install.texi: Document availability of cloog-0.16.
2243
1c3ba85b
SP
22442011-01-25 Vladimir Kargov <kargov@gmail.com>
2245
2246 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
2247 invalid postdominance info.
2248
e8ba94fc
JH
22492011-01-24 Jan Hubicka <jh@suse.cz>
2250
2251 PR c/21659
2252 * doc/extend.texi (weak pragma): Drop claim that it must
2253 appear before definition.
2254 * varasm.c (merge_weak, declare_weak): Only sanity check
2255 that DECL is not output at a time it is declared weak.
2256
2b6e2d13
KZ
22572011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
2258
2259 * machmode.def: Fixed comments.
1c3ba85b 2260
9841210f
KT
22612011-01-24 Kai Tietz <kai.tietz@onevision.com>
2262
2263 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
2264
22652011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
2266
2267 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 2268 WORDS_BIG_ENDIAN.
e046112d 2269
a6c5070a
L
22702011-01-24 H.J. Lu <hongjiu.lu@intel.com>
2271
2272 PR target/46519
2273 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
2274 (block_info): Add scanned and prev.
2275 (move_or_delete_vzeroupper_2): Return if the basic block
2276 has been scanned and the upper 128bit state is unchanged
2277 from the last scan.
2278 (move_or_delete_vzeroupper_1): Return true if the exit
2279 state is changed.
2280 (move_or_delete_vzeroupper): Visit basic blocks using the
2281 work-list based algorithm based on vt_find_locations in
2282 var-tracking.c.
2283
2284 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
2285
a40d79d7
NC
22862011-01-24 Nick Clifton <nickc@redhat.com>
2287
2288 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
2289 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
2290 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
2291 then define __v850e1__.
2292 * doc/invoke.texi: Document -mv850es.
2293
440eb8de
RH
22942011-01-24 Richard Henderson <rth@redhat.com>
2295
2296 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
2297 compound unordered comparisons.
2298 * config/rx/rx.c (rx_split_fp_compare): Remove.
2299 * config/rx/rx-protos.h: Update.
2300 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
2301 (cbranchsf4): Don't call rx_split_fp_compare.
2302 (*cbranchsf4): Use rx_split_cbranch.
2303 (*cmpsf): Don't accept "i" constraint.
2304 (*conditional_branch): Only valid after reload.
2305 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
2306
3ff79f99
MM
23072011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2308
2309 PR target/47385
2310 * config/rs6000/altivec.md (vector constant splitters): Add
2311 support for creating vector single precision constants if -mvsx is
2312 used and we would create the constant using Altivec primitives.
2313
ff3d9d08
BS
23142011-01-23 Bernd Schmidt <bernds@codesourcery.com>
2315 Richard Sandiford <rdsandiford@googlemail.com>
2316
2317 PR rtl-optimization/47166
2318 * reload1.c (emit_reload_insns): Disable the spill_reg_store
2319 mechanism for PRE_MODIFY and POST_MODIFY.
2320 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
2321 reloadreg.
2322
7fcaf152
AS
23232011-01-23 Andreas Schwab <schwab@linux-m68k.org>
2324
8788adb6 2325 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 2326
d09b58c4
JH
23272011-01-22 Jan Hubicka <jh@suse.cz>
2328
2329 PR lto/47333
2330 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
2331
e8ff8c5a
JH
23322011-01-22 Jan Hubicka <jh@suse.cz>
2333
2334 PR tree-optimization/43884
2335 PR lto/44334
8788adb6 2336 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
2337 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
2338
ccaed3ba
AS
23392011-01-22 Anatoly Sokolov <aesok@post.ru>
2340
2341 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
2342 * config/s390/s390.c (s390_register_move_cost,
2343 s390_memory_move_cost): New.
2344 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
2345
0cecee06
UW
23462011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2347
2348 PR middle-end/47401
2349 * except.c (sjlj_assign_call_site_values): Move setting the
2350 crtl->uses_eh_lsda flag to ...
2351 (sjlj_mark_call_sites): ... here.
2352 (sjlj_emit_function_enter): Support NULL dispatch label.
2353 (sjlj_build_landing_pads): In a function with no landing pads
2354 that still has must-not-throw regions, generate code to register
2355 a personality function with empty LSDA.
2356
e692f276
RH
23572011-01-21 Richard Henderson <rth@redhat.com>
2358
1b7ae0b7
RH
2359 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
2360
3843787f
RH
2361 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
2362
e692f276
RH
2363 * compare-elim.c: New file.
2364 * Makefile.in (OBJS-common): Add it.
2365 (compare-elim.o): New.
2366 * common.opt (fcompare-elim): New.
2367 * opts.c (default_options_table): Add OPT_fcompare_elim.
2368 * tree-pass.h (pass_compare_elim_after_reload): New.
2369 * passes.c (init_optimization_passes): Add it.
2370 * recog.h: Protect against re-inclusion.
2371 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
2372 * doc/invoke.texi (-fcompare-elim): Document it.
2373 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
2374 * doc/tm.texi: Rebuild.
2375
9a7c2050
NC
23762011-01-22 Nick Clifton <nickc@redhat.com>
2377
2378 * config/rx/rx.md (cstoresf4): Pass comparison operator to
2379 rx_split_fp_compare.
2380
15ba5696
NC
23812011-01-22 Nick Clifton <nickc@redhat.com>
2382
2383 * config/rx/rx.md (UNSPEC_CONST): New.
2384 (deallocate_and_return): Wrap the amount popped off the stack in
2385 an UNSPEC_CONST in order to stop it being rejected by
2386 -mmax-constant-size.
2387 (pop_and_return): Add a "(return)" rtx.
2388 (call): Drop the immediate operand.
2389 (call_internal): Likewise.
2390 (call_value): Likewise.
2391 (call_value_internal): Likewise.
2392 (sibcall_internal): Likewise.
2393 (sibcall_value_internal): Likewise.
2394 (sibcall): Likewise. Generate an explicit call using
2395 sibcall_internal.
2396 (sibcall_value): Likewise.
2397 (mov<>): FAIL if a constant operand is not legitimate.
2398 (addsi3_unpsec): New pattern.
9a7c2050 2399
38be4072 2400 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
2401 (ok_for_max_constant): New function.
2402 (gen_safe_add): New function.
2403 (rx_expand_prologue): Use gen_safe_add.
2404 (rx_expand_epilogue): Likewise.
2405 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
2406 UNSPEC CONSTs.
2407
caaf13d3
JL
24082011-01-21 Jeff Law <law@redhat.com>
2409
2410 PR tree-optimization/47053
2411 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
2412 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
2413 statements are deleted.
2414 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
2415 is nonempty, then purge dead edges and cleanup the CFG.
2416
12c30f2f
AO
24172011-01-21 Alexandre Oliva <aoliva@redhat.com>
2418
2419 PR debug/47402
2420 Temporarily revert:
2421 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2422 PR debug/47106
2423 * tree-dfa.c (create_var_ann): Mark variable as used.
2424
7360d2ac
JJ
24252011-01-21 Jakub Jelinek <jakub@redhat.com>
2426
aaa52a96
JJ
2427 PR middle-end/45566
2428 * except.c (convert_to_eh_region_ranges): Emit queued no-region
2429 notes from other section in hot/cold partitioning even if
2430 last_action is -3. Increment call_site_base.
2431
7360d2ac
JJ
2432 PR rtl-optimization/47366
2433 * fwprop.c (forward_propagate_into): Return bool. If
2434 any changes are made, -fnon-call-exceptions is used and
2435 REG_EH_REGION note is present, call purge_dead_edges
2436 and return true if it purged anything.
2437 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
2438 any EH edges were purged.
2439
e90b336f
JL
24402011-01-21 Jeff Law <law@redhat.com>
2441
2442 PR rtl-optimization/41619
2443 * caller-save.c (setup_save_areas): Break out code to determine
2444 which hard regs are live across calls by examining the reload chains
2445 so that it is always used.
2446 Eliminate code which checked REG_N_CALLS_CROSSED.
2447
3ffe07e1
JJ
24482011-01-21 Jakub Jelinek <jakub@redhat.com>
2449
2450 PR tree-optimization/47355
2451 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
2452 NOP has non-debug uses beyond PHIs in new_bb.
2453
1c7d0b34
AO
24542011-01-21 Alexandre Oliva <aoliva@redhat.com>
2455
2456 PR debug/47106
2457 * cfgexpand.c (account_used_vars_for_block): Only account vars
2458 that are annotated as used.
2459 (estimated_stack_frame_size): Don't set TREE_USED.
2460 * tree-dfa.c (create_var_ann): Mark variable as used.
2461
f99cc488
RG
24622011-01-21 Richard Guenther <rguenther@suse.de>
2463
2464 PR middle-end/47395
2465 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
2466
3bc27de7
RG
24672011-01-21 Richard Guenther <rguenther@suse.de>
2468
2469 PR tree-optimization/47365
2470 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
2471 (vn_reference_lookup_pieces): Adjust.
2472 (vn_reference_lookup): Likewise.
2473 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
2474 (vn_reference_lookup_3): Only look through kills if in
2475 VN_WALKREWRITE mode.
2476 (vn_reference_lookup_pieces): Adjust.
2477 (vn_reference_lookup): Likewise.
2478 (visit_reference_op_load): Likewise.
2479 (visit_reference_op_store): Likewise.
2480 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
2481 (compute_avail): Likewise.
2482 (eliminate): Likewise.
2483
d8debb1d
JJ
24842011-01-21 Jakub Jelinek <jakub@redhat.com>
2485
2486 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
2487 DECL_IGNORED_P non-reg vars if they are used.
2488
3a2df831
JJ
2489 PR tree-optimization/47391
2490 * varpool.c (const_value_known_p): Return false if
2491 decl is volatile.
2492
1dd584a2
KT
24932011-01-21 Kai Tietz <kai.tietz@onevision.com>
2494
2495 PR bootstrap/47215
2496 * config/i386/i386.c (ix86_local_alignment): Handle
2497 case for va_list_type_node is nil.
2498 (ix86_canonical_va_list_type): Likewise.
2499
7f9f095e
AM
25002011-01-21 Alan Modra <amodra@gmail.com>
2501
2502 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
2503 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
2504
837b01f6
RR
25052011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2506
2507 * config/arm/arm.md (define_attr type): Rename f_load
2508 and f_store to f_fpa_load and f_fpa_store. Update.
2509 (write_conflict): Deal with rename fallout.
2510 (*push_fp_multi): Likewise.
2511 * config/arm/fpa.md (f_load): Use f_fpa_load.
2512 (f_store): Use f_fpa_store.
2513 (*movsf_fpa): Likewise.
2514 (*movdf_fpa): Likewise.
2515 (*movxf_fpa): Likewise.
2516 (*thumb2_movsf_fpa): Likewise.
2517 (*thumb2_movdf_fpa): Likewise.
2518 (*thumb2_movxf_fpa): Likewise.
2519 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
2520 f_loadd and f_stored.
2521 (*thumb2_movdi_vfp): Likewise.
2522 (*thumb2_movsf_vfp): Fix attribute to f_loads.
2523 (*thumb2_movsi_vfp): Likewise.
2524 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
2525 Use f_loads instead of f_load.
2526 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
2527
a1a79768
AS
25282011-01-20 Anatoly Sokolov <aesok@post.ru>
2529
2530 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2531 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
2532 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2533 (xtensa_mode_dependent_address_p): New function.
2534 (constantpool_address_p): Make static. Change return type to bool.
2535 Change argument type to const_rtx. Use CONST_INT_P predicate.
2536
427f6cec
AO
25372011-01-20 Alexandre Oliva <aoliva@redhat.com>
2538
2539 PR debug/46583
2540 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
2541
583ac69c
JJ
25422011-01-20 Jakub Jelinek <jakub@redhat.com>
2543
2544 PR debug/47283
2545 * cfgexpand.c (expand_debug_expr): Instead of generating
2546 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
2547 etc. handling.
2548
93e452ed
RG
25492011-01-20 Richard Guenther <rguenther@suse.de>
2550
2551 PR middle-end/47370
2552 * tree-inline.c (remap_gimple_op_r): Recurse manually for
2553 the pointer operand of MEM_REFs.
2554
28fc44f3
JJ
25552011-01-20 Jakub Jelinek <jakub@redhat.com>
2556
2557 PR tree-optimization/46130
2558 * ipa-split.c (consider_split): If return_bb contains non-virtual
2559 PHIs other than for retval or if split_function would not adjust it,
2560 refuse to split.
2561
ddd268f2
RG
25622011-01-20 Richard Guenther <rguenther@suse.de>
2563
2564 PR tree-optimization/47167
2565 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2566 Revert previous change, only avoid enumeral type changes.
2567
882020aa
MS
25682011-01-19 Mike Stump <mikestump@comcast.net>
2569
2570 * doc/tm.texi.in (BRANCH_COST): Englishify.
2571 * doc/tm.texi (BRANCH_COST): Likewise.
2572
7edb6247
DS
25732011-01-19 Dodji Seketeli <dodji@redhat.com>
2574
2575 PR c++/47291
2576 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
2577 (gen_scheduled_generic_parms_dies): New functions.
2578 (gen_struct_or_union_type_die): Schedule template parameters DIEs
2579 generation for the end of CU compilation.
2580 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 2581
23d5ed5d
AO
25822011-01-19 Alexandre Oliva <aoliva@redhat.com>
2583
2584 PR debug/46240
2585 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
2586 debug bind stmt on merge edges.
2587
37d6a488
AO
25882011-01-19 Alexandre Oliva <aoliva@redhat.com>
2589
2590 PR debug/47079
2591 PR debug/46724
2592 * function.c (instantiate_expr): Instantiate incoming rtl of
2593 implicit arguments, and recurse on VALUE_EXPRs.
2594 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
2595 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
2596
689f2c82
AO
25972011-01-19 Alexandre Oliva <aoliva@redhat.com>
2598
2599 * c-parser.c (c_parser_for_statement): Initialize
2600 collection_expression.
2601
03029de4
JM
26022011-01-19 Joseph Myers <joseph@codesourcery.com>
2603
2604 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
2605
3e03217e
JM
26062011-01-19 Joseph Myers <joseph@codesourcery.com>
2607
2608 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
2609 (LINK_SHLIB_SPEC): Don't use %(link_path).
2610 (SUBTARGET_EXTRA_SPECS): Remove link_path.
2611
5bbe9b3f
JM
26122011-01-19 Joseph Myers <joseph@codesourcery.com>
2613
2614 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
2615 (NO_SHARED_LIB_SUPPORT): Remove.
2616 (LINK_SHLIB_SPEC): Remove one conditional definition.
2617
368e0b39
JM
26182011-01-19 Joseph Myers <joseph@codesourcery.com>
2619
2620 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
2621 %{call_shared}.
2622 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
2623 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
2624 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
2625 %{call_shared} and conditionals on these options not being passed.
2626 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
2627 %{call_shared}.
2628
ed7656f6
JJ
26292011-01-19 Jakub Jelinek <jakub@redhat.com>
2630
68457901
JJ
2631 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
2632 simplify.
2633
ed7656f6
JJ
2634 * ipa-split.c: Spelling fixes.
2635
e0d1958f
RH
26362011-01-19 Richard Henderson <rth@redhat.com>
2637
2638 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
2639 (*mulsi3): Likewise.
2640
27098b6b
RH
2641 * longlong.h [__mn10300__] (count_leading_zeros): New.
2642 [__mn10300__] (umul_ppmm, smul_ppmm): New.
2643 [__mn10300__] (add_ssaaaa, subddmmss): New.
2644 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
2645 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
2646
d6be7c36
UW
26472011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2648
2649 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
2650
b1efde2a
RH
26512011-01-19 Richard Henderson <rth@redhat.com>
2652
44217823
RH
2653 * config/mn10300/mn10300.md (addsi3_flags): New.
2654 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
2655 (subsi3_flags, subc_internal, subdi3): New.
2656 (subdi3_internal, *subdi3_degenerate): New.
2657 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
2658
37a185d7
RH
2659 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
2660 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
2661 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
2662 * config/mn10300/mn10300-protos.h: Update.
2663 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
2664 (return_ret): Likewise. Rename from return_internal_regs.
2665 (return_internal): Remove.
2666
040c5757
RH
2667 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
2668 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
2669 (mn10300_legitimate_constant_p): Likewise.
2670 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
2671 (mn10300_frame_size): New.
2672 (mn10300_expand_prologue): Use it.
2673 (mn10300_expand_epilogue): Likewise.
2674 (mn10300_initial_offset): Likewise.
2675 * config/mn10300/mn10300-protos.h: Update.
2676 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
2677 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
2678 (prologue, epilogue, return_internal): Tidy output code.
2679 (mn10300_store_multiple_operation, return): Likewise.
2680 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
2681 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
2682 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
2683 (load_pic, am33_load_pic): New.
2684 (mn10300_load_pic0, mn10300_load_pic1): New.
2685
bad41521
RH
2686 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
2687 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
2688 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
2689 (cc_flags_for_mode, cc_flags_for_code): New.
2690 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
2691 overflow flag is not valid. Validate that the flags we need
2692 for the comparison are valid.
2693 (mn10300_output_cmp): Remove.
2694 (mn10300_output_add): New.
2695 (mn10300_select_cc_mode): Use cc_flags_for_code.
2696 (mn10300_split_cbranch): New.
2697 (mn10300_match_ccmode): New.
2698 (mn10300_split_and_operand_count): New.
2699 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
2700 to the function.
2701 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
2702 (addsi3): ... here. Use mn10300_output_add.
2703 (*addsi3_flags): New.
2704 (*am33_subsi3, *mn10300_subsi3): Merge...
2705 (subsi3): ... here. Use attribute isa.
2706 (*subsi3_flags): New.
2707 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
2708 when possible.
2709 (*am33_andsi3, *mn10300_andsi3): Merge...
2710 (andsi3): ... here.
2711 (*andsi3_flags): New.
2712 (andsi3 splitters): New.
2713 (*am33_iorsi3, *mn10300_iorsi3): Merge...
2714 (iorsi3): ... here.
2715 (*iorsi3_flags): New.
2716 (*am33_xorsi3, *mn10300_xorsi3): Merge...
2717 (xorsi3): ... here.
2718 (*xorsi3_flags): New.
2719 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
2720 (one_cmplsi2): ... here.
2721 (*one_cmplsi2_flags): New.
2722 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
2723 instead of "dax" in constraints. Use mn10300_split_cbranch.
2724 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
2725 use matching constraints to eliminate a self-comparison.
2726 (*integer_conditional_branch): Rename from integer_conditional_branch.
2727 Use int_mode_flags to match CC_REG.
2728 (*cbranchsi4_btst, *btstsi): New.
2729 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
2730 mn10300_split_cbranch.
2731 (*am33_cmpsf): Rename from am33_cmpsf.
2732 (*float_conditional_branch): Rename from float_conditional_branch.
2733 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
2734 (zero_extendqisi2): ... here.
2735 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
2736 (zero_extendhisi2): ... here.
2737 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
2738 (extendqisi2): ... here.
2739 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
2740 (extendhisi2): ... here.
2741 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
2742 (ashlsi3): ... here.
2743 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
2744 (lshrsi3): ... here.
2745 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
2746 (ashrsi3): ... here.
2747 (consecutive add peephole): Remove.
2748 * config/mn10300/predicates.md (label_ref_operand): New.
2749 (int_mode_flags): New.
2750 (CCZN_comparison_operator): New.
2751
9efb4993
RH
2752 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
2753 (throughput_42_latency_43): New reservation.
2754 (mulsidi3, umulsidi3): New expanders.
2755 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
2756 the MDR register to allocation; separately allocate the low and
2757 high parts of the DImode result.
2758 (umulsidi3_internal): Similarly.
2759 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
2760 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
2761 (udivsi3, umodsi3): Remove.
2762 (udivmodsi4, divmodsi4): New expanders.
2763 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
2764 (*divmodsi4): Simiarly.
2765 (ext_internal): New.
2766
c25a21f5
RH
2767 * config/mn10300/constraints.md ("z"): New constraint.
2768 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
2769 (FIXED_REGISTERS): Don't fix MDR.
2770 (CALL_USED_REGSITERS): Reformat nicely.
2771 (REG_ALLOC_ORDER): Add MDR.
2772 (enum regclass): Add MDR_REGS.
2773 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
2774 (IRA_COVER_CLASSES): Add MDR_REGS.
2775 (REGNO_REG_CLASS): Handle MDR_REG.
2776 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
2777 (mn10300_register_move_cost): Likewise.
2778 * config/mn10300/mn10300.md (MDR_REG): New.
2779 (*movsi_internal): Handle moves to/from MDR_REGS.
2780
36846b26
RH
2781 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
2782 POST_MODIFY.
2783 (mn10300_secondary_reload): Tidy combination reload classes.
2784 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
2785 addresses for AM33. Allow symbolic offsets for reg+imm.
2786 (mn10300_regno_in_class_p): New.
2787 (mn10300_legitimize_reload_address): New.
2788 * config/mn10300/mn10300.h (enum reg_class): Remove
2789 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
2790 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
2791 SP_OR_GENERAL_REGS.
2792 (REG_CLASS_NAMES): Update to match.
2793 (REG_CLASS_CONTENTS): Likewise.
2794 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
2795 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
2796 (REGNO_IN_RANGE_P): Remove.
2797 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
2798 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
2799 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
2800 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
2801 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
2802 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
2803 (REGNO_GENERAL_P): New.
2804 (HAVE_POST_MODIFY_DISP): New.
2805 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
2806 (LEGITIMIZE_RELOAD_ADDRESS): New.
2807 * config/mn10300/mn10300-protos.h: Update.
2808
8b119bb6
RH
2809 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
2810 DATA_REGS for AM33 stack-pointer destination.
2811 (mn10300_preferred_output_reload_class): Likewise.
2812 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
2813 into a form appropriate for ...
2814 (TARGET_SECONDARY_RELOAD): New.
2815 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
2816 * config/mn10300/mn10300-protos.h: Update.
2817 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
2818 reload_insi; use the "A" constraint for the scratch; handle AM33
2819 moves of sp to non-address registers.
2820
b1efde2a
RH
2821 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
2822 (*movqi_internal): ... here.
2823 (*am33_movhi, *mn10300_movhi): Merge into...
2824 (*movhi_internal): ... here.
2825 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
2826 as the source/destination of moves from/to SP.
2827 (movsf): Only allow for AM33-2.
1c3ba85b 2828 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
2829 any integer constant constraint. Only allow for AM33-2. Tidy
2830 all of the alternative outputs.
2831 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
2832 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
2833 for MN103.
2834 (udivsi3, umodsi3): New patterns for MN103 only.
2835
b899fd78
JR
28362011-01-19 Joern Rennecke <amylaar@spamcop.net>
2837
2838 * doc/tm.texi.in: Spell out that a lack of register class unions
2839 can lead to ICEs.
2840 * doc/tm.texi: Regenerate.
2841
afaaa67d
JJ
28422011-01-19 Jakub Jelinek <jakub@redhat.com>
2843
2e0642cd
JJ
2844 PR rtl-optimization/47337
2845 * dce.c (check_argument_store): New function.
2846 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
2847
afaaa67d
JJ
2848 PR tree-optimization/47290
2849 * tree-eh.c (infinite_empty_loop_p): New function.
2850 (cleanup_empty_eh): Use it.
2851
d2cd871f
SE
28522011-01-18 Steve Ellcey <sje@cup.hp.com>
2853
2854 PR target/46997
2855 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
2856 (a64_expand_widen_sum): Ditto.
2857 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
2858 (vec_extract_evenodd_help): Ditto.
2859 (vec_extract_evenv4hi): Ditto.
2860 (vec_extract_oddv4hi): Ditto.
2861 (vec_extract_evenv2si): Ditto.
2862 (vec_extract_oddv2si): Ditto.
2863 (vec_extract_evenv2sf): Ditto.
2864 (vec_extract_oddv2sf): Ditto.
2865 (vec_pack_trunc_v4hi: Ditto.
2866 (vec_pack_trunc_v2si): Ditto.
2867 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
2868 (vec_interleave_highv8qi): Ditto.
2869 (mix1_r): Ditto.
2870 (vec_extract_oddv8qi): Ditto.
2871 (vec_interleave_lowv4hi): Ditto.
2872 (vec_interleave_highv4hi): Ditto.
2873 (vec_interleave_lowv2si): Ditto.
2874 (vec_interleave_highv2si): Ditto.
2875
41a1208a
JDA
28762011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2877
2878 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
2879 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
2880 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
2881 (pa_c_mode_for_suffix): New.
2882 (TARGET_EXPAND_BUILTIN): Define.
2883 (TARGET_C_MODE_FOR_SUFFIX): Define.
2884 (pa_builtins): Define.
2885 (pa_init_builtins): Register __float128 type and init new support
2886 builtins.
2887 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
2888 * config/pa/quadlib.c (_U_Qfcopysign): New.
2889
1ecad98e
EB
28902011-01-18 Eric Botcazou <ebotcazou@adacore.com>
2891
2892 PR middle-end/46894
2893 * explow.c (allocate_dynamic_stack_space): Do not assume more than
2894 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
2895 are defined.
2896
d4f2460a
UW
28972011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2898
2899 PR tree-optimization/47179
2900 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
2901 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
2902
4994da65
RG
29032011-01-18 Richard Guenther <rguenther@suse.de>
2904
2905 PR rtl-optimization/47216
2906 * emit-rtl.c: Include tree-flow.h.
2907 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
2908 of replicating it with different semantics.
2909 * Makefile.in (emit-rtl.o): Adjust.
2910
1eb458d1
RR
29112011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2912
38be4072 2913 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 2914 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 2915
e7ef91dc
JJ
29162011-01-18 Jakub Jelinek <jakub@redhat.com>
2917
2918 PR rtl-optimization/47299
2919 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 2920 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
2921 * expmed.c (expand_widening_mult): Don't try to optimize constant
2922 multiplication if op0 has VOIDmode. Convert op1 constant to mode
2923 before using it.
2924
535b7874
RW
29252011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2926
2927 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
2928 spacing after 'e.g.', typos, comma, hyphenation.
2929
27bf36f3
RH
29302011-01-17 Richard Henderson <rth@redhat.com>
2931
8a5b5449
RH
2932 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
2933 (rx_restricted_mem_operand): New.
2934 (rx_shift_operand): Use register_operand.
2935 (rx_source_operand, rx_compare_operand): Likewise.
2936 * config/rx/rx.md (addsi3_flags): New expander.
2937 (adddi3): Rewrite as expander.
2938 (adc_internal, *adc_flags, adddi3_internal): New patterns.
2939 (subsi3_flags): New expander.
2940 (subdi3): Rewrite as expander.
2941 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
2942
784f69be
RH
2943 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
2944 (rx_init_builtins): Remove sat builtin.
2945 (rx_expand_builtin): Likewise.
2946 * config/rx/rx.md (ssaddsi3): New.
2947 (*sat): Rename from sat. Represent the CC_REG input.
2948
f033541c
RH
2949 * config/rx/predicates.md (rshift_operator): New.
2950 * config/rx/rx.c (rx_expand_insv): Remove.
2951 * config/rx/rx-protos.h: Update.
2952 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
2953 operand to the canonical position.
2954 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
2955 (*bitclr, *bitclr_in_memory): Similarly.
2956 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
2957 (insv): Retain the zero_extract in the expansion.
2958
34fee389
RH
2959 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
2960 (bswaphi2, bitinvert, revw): Likewise.
2961
265c835f
RH
2962 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
2963 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
2964 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
2965 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
2966 (bitset, bitset_in_memory): Likewise.
2967 (bitinvert, bitinvert_in_memory): Likewise.
2968 (bitclr, bitclr_in_memory): Likewise.
2969 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
2970 (rx_strend, rx_cmpstrn): Likewise.
2971 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
2972 (bitop peep2 patterns): Remove.
2973
b4d83be3
RH
2974 * config/rx/rx.c (rx_match_ccmode): New.
2975 * config/rx/rx-protos.h: Update.
2976 * config/rx/rx.md (abssi2): Clobber, don't set flags.
2977 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
2978 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
2979 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
2980 (fix_truncsfsi2, floatsisf2): Likewise.
2981 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
2982 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
2983 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
2984 (*subsi3_flags, *xorsi3_flags): New.
2985
d0acb939
RH
2986 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
2987
c06fc3d9
RH
2988 * config/rx/rx.c (rx_print_operand): Remove workaround for
2989 unsplit comparison operations.
2990
2882702b
RH
2991 * config/rx/rx.md (movsicc): Split after reload.
2992 (*movsicc): Merge *movsieq and *movsine via match_operator.
2993 (*stcc): New pattern.
2994
6f7310f2
RH
2995 * config/rx/rx.c (rx_float_compare_mode): Remove.
2996 * config/rx/rx.h (rx_float_compare_mode): Remove.
2997 * config/rx/rx.md (cstoresi4): Split after reload.
2998 (*sccc): New pattern.
2999
e963cb1a
RH
3000 * config/rx/predicates.md (label_ref_operand): New.
3001 (rx_z_comparison_operator): New.
3002 (rx_zs_comparison_operator): New.
3003 (rx_fp_comparison_operator): New.
3004 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
3005 Validate that the flags are set properly for the comparison.
3006 (rx_gen_cond_branch_template): Remove.
3007 (rx_cc_modes_compatible): Remove.
3008 (mode_from_flags): New.
3009 (flags_from_code): Rename from flags_needed_for_conditional.
3010 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
3011 (rx_select_cc_mode): Likewise.
3012 (rx_split_fp_compare): New.
3013 (rx_split_cbranch): New.
3014 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
3015 (*cbranchsi4): Use match_operator and rx_split_cbranch.
3016 (*cbranchsf4): Similarly.
3017 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
3018 match_operator and rx_split_cbranch.
3019 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
3020 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
3021 (*cmpsi): Rename from cmpsi.
3022 (*tstsi): Rename from tstsi.
3023 (*cmpsf): Rename from cmpsf; use CC_Fmode.
3024 (*conditional_branch): Rename from conditional_branch.
3025 (*reveresed_conditional_branch): Remove.
3026 (b<code>): Remove expander.
3027 * config/rx/rx-protos.h: Update.
3028
af530bb4
RH
3029 * config/rx/rx.c (rx_compare_redundant): Remove.
3030 * config/rx/rx.md (cmpsi): Don't use it.
3031 * config/rx/rx-protos.h: Update.
3032
27bf36f3
RH
3033 * config/rx/rx-modes.def (CC_F): New mode.
3034 * config/rx/rx.c (rx_select_cc_mode): New.
3035 * config/rx/rx.h (SELECT_CC_MODE): Use it.
3036 * config/rx/rx-protos.h: Update.
3037
d7fde127
RH
30382011-01-17 Richard Henderson <rth@redhat.com>
3039
3040 * except.c (dump_eh_tree): Fix stray ; after for statement.
3041
6ff38230
RG
30422011-01-17 Richard Guenther <rguenther@suse.de>
3043
3044 PR tree-optimization/47313
3045 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
3046 handling before copying the body. Properly deal with
3047 by-reference result in SSA form.
3048
114ce554
ILT
30492011-01-17 Ian Lance Taylor <iant@google.com>
3050
bf5cd92b 3051 PR target/47219
114ce554
ILT
3052 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
3053 (struct_value_alias_set): Don't define.
3054 (sparc_option_override): Don't set sparc_sr_alias_set and
3055 struct_value_alias_set.
3056 (save_or_restore_regs): Use gen_frame_mem rather than calling
3057 set_mem_alias_set.
3058 (sparc_struct_value_rtx): Likewise.
3059
98c6d93c
L
30602011-01-17 H.J. Lu <hongjiu.lu@intel.com>
3061
3062 PR target/47318
3063 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
3064 __m128i.
3065 (_mm_maskstore_pd): Likewise.
3066 (_mm_maskload_ps): Likewise.
3067 (_mm_maskstore_ps): Likewise.
3068 (_mm256_maskload_pd): Change mask to __m256i.
3069 (_mm256_maskstore_pd): Likewise.
3070 (_mm256_maskload_ps): Likewise.
3071 (_mm256_maskstore_ps): Likewise.
3072
3073 * config/i386/i386-builtin-types.def: Updated.
3074 (ix86_expand_special_args_builtin): Likewise.
3075
3076 * config/i386/i386.c (bdesc_special_args): Update
3077 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
3078 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
3079 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
3080 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
3081
3082 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
3083 Use <avxpermvecmode> on mask register.
3084 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
3085
b9361af2 30862011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
3087 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3088 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
3089
3090 PR target/46655
3091 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
3092 if <= USHRT_MAX in 32-bit mode.
3093
b7ae9eb5
RW
30942011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3095
3096 * doc/install.texi (Configuration, Specific): Wrap long
3097 lines in examples. Allow line wrapping in long options
3098 and URLs where beneficial for PDF output.
3099
4377fad9
RS
31002011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
3101
3102 * config/mips/mips.c (mips_classify_symbol): Don't return
3103 SYMBOL_PC_RELATIVE for nonlocal labels.
3104
55959ffa 31052011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 3106
55959ffa
EB
3107 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
3108
31092011-01-15 Jan Hubicka <jh@suse.cz>
3110
3111 PR tree-optimization/47276
be46831f
JH
3112 * ipa.c (function_and_variable_visibility): Do not try to mark alias
3113 declarations as needed.
3114
05842ff5
MJ
31152011-01-15 Martin Jambor <mjambor@suse.cz>
3116
3117 * common.opt (fdevirtualize): New flag.
3118 * doc/invoke.texi (Option Summary): Document it.
3119 * opts.c (default_options_table): Add devirtualize flag.
3120 * ipa-prop.c (detect_type_change): Return immediately if
3121 devirtualize flag is not set.
3122 (detect_type_change_ssa): Likewise.
3123 (compute_known_type_jump_func): Likewise.
3124 (ipa_analyze_virtual_call_uses): Likewise.
3125
f65cf2b7
MJ
31262011-01-14 Martin Jambor <mjambor@suse.cz>
3127
3128 PR tree-optimization/45934
3129 PR tree-optimization/46302
3130 * ipa-prop.c (type_change_info): New type.
3131 (stmt_may_be_vtbl_ptr_store): New function.
3132 (check_stmt_for_type_change): Likewise.
3133 (detect_type_change): Likewise.
3134 (detect_type_change_ssa): Likewise.
3135 (compute_complex_assign_jump_func): Check for dynamic type change.
3136 (compute_complex_ancestor_jump_func): Likewise.
3137 (compute_known_type_jump_func): Likewise.
3138 (compute_scalar_jump_functions): Likewise.
3139 (ipa_analyze_virtual_call_uses): Likewise.
3140 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
3141
eb5bb0fd
JM
31422011-01-14 Joseph Myers <joseph@codesourcery.com>
3143
3144 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
3145 * config/i386/i386.opt (msse5): New Alias.
3146
f2060fbe
JM
31472011-01-14 Joseph Myers <joseph@codesourcery.com>
3148
3149 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
3150 * config/sparc/linux64.h (CC1_SPEC): Likewise.
3151 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3152 * config/sparc/sparc.h (CC1_SPEC): Likewise.
3153
3a7b4385
JM
31542011-01-14 Joseph Myers <joseph@codesourcery.com>
3155
3156 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
3157 -mcpu options.
3158 * config/sparc/linux64.h (CC1_SPEC): Likewise.
3159 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
3160 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
3161 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
3162 Likewise.
3163 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
3164
a7b778f8
JM
31652011-01-14 Joseph Myers <joseph@codesourcery.com>
3166
38be4072 3167 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 3168
a7edae0a
MS
31692011-01-14 Mike Stump <mikestump@comcast.net>
3170
3171 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
3172 * config/fr30/fr30.md: Likweise
3173 (movsi_push): Likewise.
3174 (movsi_pop): Likewise.
3175 (enter_func): Likewise.
3176 * config/moxie/moxie.md (movsi_push): Likewise.
3177 (movsi_pop): Likewise.
3178
cbabf03f
JM
31792011-01-14 Joseph Myers <joseph@codesourcery.com>
3180
3181 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
3182 %{no_archive} %{exact_version}.
3183 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
3184 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
3185 %{no_archive} %{exact_version}.
3186 * config/mips/openbsd.h (LINK_SPEC): Likewise.
3187 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
3188 * config/mips/vxworks.h: Likewise.
3189
438da41a
JM
31902011-01-14 Joseph Myers <joseph@codesourcery.com>
3191
38be4072 3192 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 3193
da290a42
JM
31942011-01-14 Joseph Myers <joseph@codesourcery.com>
3195
3196 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
3197 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
3198
8989d00e
JM
31992011-01-14 Joseph Myers <joseph@codesourcery.com>
3200
3201 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
3202 -nodefaultlib.
3203
a3010a69
JM
32042011-01-14 Joseph Myers <joseph@codesourcery.com>
3205
3206 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
3207 for mcpu not cpu.
3208 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
3209 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
3210 not cpu.
3211 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
3212 Don't handle -shlib.
3213
e7f2f537
JM
32142011-01-14 Joseph Myers <joseph@codesourcery.com>
3215
3216 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
3217 (CC1_SPEC): Don't handle -profile.
3218
34830bfd
JM
32192011-01-14 Joseph Myers <joseph@codesourcery.com>
3220
3221 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
3222 * config/mips/mips.h (CC1_SPEC): Likewise.
3223
b2d36e74
JM
32242011-01-14 Joseph Myers <joseph@codesourcery.com>
3225
3226 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
3227 * config/mips/mips.h (CC1_SPEC): Likewise.
3228
dabadc52
JM
32292011-01-14 Joseph Myers <joseph@codesourcery.com>
3230
3231 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
3232 * config/m32r/linux.h (LINK_SPEC): Likewise.
3233 * config/mips/linux.h (LINK_SPEC): Likewise.
3234 * config/mips/linux64.h (LINK_SPEC): Likewise.
3235 * config/sparc/linux.h (LINK_SPEC): Likewise.
3236 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3237 LINK_SPEC): Likewise.
3238 * config/xtensa/linux.h (LINK_SPEC): Likewise.
3239
43ee6785
JM
32402011-01-14 Joseph Myers <joseph@codesourcery.com>
3241
3242 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
3243 %{version:-v}.
3244 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
3245
45e79dfd
JM
32462011-01-14 Joseph Myers <joseph@codesourcery.com>
3247
3248 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
3249 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
3250
37e9e71d
JM
32512011-01-14 Joseph Myers <joseph@codesourcery.com>
3252
3253 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
3254
bb127cd8
RO
32552011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3256
3257 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
3258 supports -Bstatic/-Bdynamic.
3259 * configure: Regenerate.
3260
89a012ea
JH
32612011-01-14 Jan Hubicka <jh@suse.cz>
3262 Jack Howarth <howarth@bromo.med.uc.edu>
3263
3264 PR target/46037
3265 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
3266 when checking debug_info_level. Test write_symbols instead of
3267 debug_hooks->var_location when setting flag_var_tracking_uninit.
3268
7352c013
RG
32692011-01-14 Richard Guenther <rguenther@suse.de>
3270
3271 PR tree-optimization/47179
3272 * target.def (ref_may_alias_errno): New target hook.
3273 * targhooks.h (default_ref_may_alias_errno): Declare.
3274 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
3275 (default_ref_may_alias_errno): New function.
3276 * target.h (struct ao_ref_s): Declare.
3277 * tree-ssa-alias.c: Include target.h.
3278 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
3279 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
3280 (targhooks.o): Likewise.
3281 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
3282 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
3283
9a6c9288
RG
32842011-01-14 Richard Guenther <rguenther@suse.de>
3285
3286 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
3287
0fdb0d27
RG
32882011-01-14 Richard Guenther <rguenther@suse.de>
3289
3290 PR tree-optimization/47280
3291 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
3292 return CFG changes.
3293 (tree_ssa_forward_propagate_single_use_vars): Deal with
3294 CFG changes from associate_plusminus.
3295
8f66db3b
RG
32962011-01-14 Richard Guenther <rguenther@suse.de>
3297
3298 PR middle-end/47281
3299 Revert
3300 2011-01-11 Richard Guenther <rguenther@suse.de>
3301
280d9630
EB
3302 PR tree-optimization/46076
3303 * tree-ssa.c (useless_type_conversion_p): Conversions from
3304 unprototyped to empty argument list function types are useless.
8f66db3b 3305
6c0c92e6
RG
33062011-01-14 Richard Guenther <rguenther@suse.de>
3307
3308 PR tree-optimization/47286
280d9630 3309 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 3310
db09f943
MJ
33112011-01-14 Martin Jambor <mjambor@suse.cz>
3312
3313 PR middle-end/46823
3314 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
3315
dde8a3a4
AS
33162011-01-13 Anatoly Sokolov <aesok@post.ru>
3317
3318 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
3319 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3320 * config/xtensa/xtensa.c (xtensa_libcall_value,
3321 xtensa_function_value_regno_p): New functions.
3322 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3323
a2b63a20
KT
33242011-01-13 Kai Tietz <kai.tietz@onevision.com>
3325
3326 PR c++/47213
3327 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
3328 PE specific hook.
3329 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
3330 New function prototype.
3331 * config/i386/winnt.c (i386_pe_assemble_visibility):
3332 Warn only if attribute was specified by user.
3333
b41f0b34
MM
33342011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3335
3336 PR target/47251
3337 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
3338 floating point.
3339 (floatunsdidf2_fcfidu): Ditto.
3340
3f3c098d
AK
33412011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3342
3343 * config/s390/s390.c (print_operand_address): Replace 'error' with
3344 'output_operand_lossage'.
3345 (print_operand): Likewise.
3346
29fa95ed
JL
33472011-01-13 Jeff Law <law@redhat.com>
3348
280d9630 3349 PR rtl-optimization/39077
29fa95ed
JL
3350 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
3351 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
3352 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
3353 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
3354 * gcse.c (prune_insertions_deletions): New function.
3355 (compute_pre_data): Use it.
3356
71d12276
DS
33572011-01-13 Dodji Seketeli <dodji@redhat.com>
3358
3359 PR debug/PR46973
3360 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
3361 static function.
61052244 3362 (prune_unused_types_mark): Use it.
71d12276 3363
9b0f04e7
AB
33642011-01-13 Andrey Belevantsev <abel@ispras.ru>
3365
3366 PR rtl-optimization/45352
1c3ba85b 3367 * sel-sched.c: Update copyright years.
9b0f04e7 3368 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 3369 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 3370
d6a3e264
RH
33712011-01-12 Richard Henderson <rth@redhat.com>
3372
a49b692a
RH
3373 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
3374 (TARGET_MD_ASM_CLOBBERS): New.
3375
126b1483
RH
3376 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
3377 (TARGET_DELEGITIMIZE_ADDRESS): New.
3378
f3d9d2e0
RH
3379 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
3380 (clzsi2, *bsch): New patterns.
3381
d84760c9
RH
3382 * config/mn10300/mn10300.md (INT): New mode iterator.
3383 (*mov<INT>_clr): New pattern, and peep2 to generate it.
3384
ec815d65
RH
3385 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
3386 flag_split_wide_types.
3387
d6a3e264
RH
3388 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
3389 (mn10300_trampoline_init): Rewrite without a template, an immediate
3390 load and a direct branch.
3391 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
3392
0f8ab434
AS
33932011-01-12 Anatoly Sokolov <aesok@post.ru>
3394
3395 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3396 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
3397 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
3398 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3399
d8a24b65
KT
34002011-01-12 Kai Tietz <kai.tietz@onevision.com>
3401
3402 PR debug/47209
3403 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
3404 of type.
3405
56e22cab
JH
34062011-01-12 Jan Hubicka <jh@suse.cz>
3407
3408 PR driver/47244
3409 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
3410 (PLUGIN_COND_CLOSE): New macro.
3411 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
3412
4b18b3c2
RG
34132011-01-12 Richard Guenther <rguenther@suse.de>
3414
3415 PR lto/47259
3416 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
3417 register variables in a MEM_REF.
3418
8e38461c
JM
34192011-01-12 Joseph Myers <joseph@codesourcery.com>
3420
3421 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
3422 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
3423 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
3424 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3425 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3426 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
3427 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
3428 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
3429 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
3430 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
3431 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
3432 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
3433 * config/gnu-user.h: New. Copied from linux.h.
3434 (LINUX_TARGET_STARTFILE_SPEC): Rename to
3435 GNU_USER_TARGET_STARTFILE_SPEC.
3436 (LINUX_TARGET_ENDFILE_SPEC): Rename to
3437 GNU_USER_TARGET_ENDFILE_SPEC.
3438 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
3439 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
3440 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
3441 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
3442 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
3443 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
3444 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
3445 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
3446 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
3447 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
3448 * config/arm/linux-eabi.h (CC1_SPEC): Use
3449 GNU_USER_TARGET_CC1_SPEC.
3450 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
3451 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
3452 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
3453 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
3454 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
3455 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
3456 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
3457 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
3458
a570fc16
RG
34592011-01-12 Richard Guenther <rguenther@suse.de>
3460
3461 PR other/46946
3462 * doc/invoke.texi (ffast-math): Document it is turned on
3463 with -Ofast.
3464
b0223c3e
JH
34652011-01-12 Jan Hubicka <jh@suse.cz>
3466
3467 PR tree-optimization/47233
ca1e00b3
EB
3468 * opts.c (common_handle_option): Disable ipa-reference with profile
3469 feedback.
b0223c3e 3470
1c3ba85b 34712011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
3472
3473 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
3474 error message.
3475
d853ee42
NP
34762011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
3477
3478 * c-parser.c (c_lex_one_token): Updated and reindented some
3479 comments. No changes in code.
3480
4053a5a0
ILT
34812011-01-11 Ian Lance Taylor <iant@google.com>
3482
3483 * godump.c (go_output_var): Don't output the variable if there is
3484 already a type with the same name.
3485
fa3e04d2
ILT
34862011-01-11 Ian Lance Taylor <iant@google.com>
3487
3488 * godump.c (go_format_type): Don't generate float80.
3489
885fe07c
RH
34902011-01-11 Richard Henderson <rth@redhat.com>
3491
72d6e3c5
RH
3492 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
3493 declaration. Rewrite for both speed and size.
3494 (mn10300_address_cost_1): Remove.
3495 (mn10300_register_move_cost): New.
3496 (mn10300_memory_move_cost): New.
3497 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
3498 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
3499 extensions, shifts, BSWAP, CLZ.
3500 (mn10300_wide_const_load_uses_clr): Remove.
3501 (TARGET_REGISTER_MOVE_COST): New.
3502 (TARGET_MEMORY_MOVE_COST): New.
3503 * config/mn10300/mn10300-protos.h: Update.
3504 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
3505
df37c023
RH
3506 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
3507 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
3508 * config/mn10300/mn10300-protos.h: Update.
3509 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
3510 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
3511 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
3512 (*test_int_bitfield, *test_byte_bitfield): Remove.
3513 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 3514 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 3515
85a337b5
RH
3516 * config/mn10300/constraints.md ("c"): Rename from "A".
3517 ("A", "D"): New constraint letters.
3518 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
3519 (fmssf4, fnmasf4, fnmssf4): Likewise.
3520
a5c727e3
RH
3521 * config/mn10300/mn10300.md (isa): New attribute.
3522 (enabled): New attribute.
3523
0d9e23f4
RH
3524 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
3525 (abssf2, negsf2): Define only for hardware fp.
3526 (sqrtsf2): Reformat.
3527 (addsf3, subsf3, mulsf3): Merge expander and insn.
3528
c157b3f0
RH
3529 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
3530 (DEBUGGER_AUTO_OFFSET): Remove.
3531 (DEBUGGER_ARG_OFFSET): Remove.
3532
cc909bba
RH
3533 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
3534 Emit register stores with the same offsets as the hardware.
3535 (mn10300_store_multiple_operation): Don't check that the register
3536 save offsets are monotonic.
3537 * config/mn10300/mn10300-protos.h: Update.
3538
e3b5c2f3
RH
3539 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
3540
885fe07c
RH
3541 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
3542 in terms of the value on the stack, not the MDR register.
3543
6e701822
JH
35442011-01-11 Jan Hubicka <jh@suse.cz>
3545
3546 PR lto/45721
3547 PR lto/45375
3548 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
3549 (symbol_alias_set_destroy, symbol_alias_set_contains,
3550 propagate_aliases_backward): Declare.
3551 * lto-streamer-out.c (struct sets): New sturcture.
3552 (trivally_defined_alias): New function.
3553 (output_alias_pair_p): Rewrite.
3554 (output_unreferenced_globals): Fix output of alias pairs.
3555 (produce_symtab): Likewise.
3556 * ipa.c (function_and_variable_visibility): Set weak alias destination
3557 as needed in lto.
3558 * varasm.c (symbol_alias_set_t): Remove.
3559 (symbol_alias_set_destroy): Export.
3560 (propagate_aliases_forward, propagate_aliases_backward): New functions
3561 based on ...
3562 (compute_visible_aliases): ... this one; remove.
3563 (trivially_visible_alias): New
3564 (trivially_defined_alias): New.
3565 (remove_unreachable_alias_pairs): Rewrite.
3566 (finish_aliases_1): Reorganize code checking if alias is defined.
3567 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
3568 in LTO mode.
3569
1b248907
RG
35702011-01-11 Richard Guenther <rguenther@suse.de>
3571
3572 PR tree-optimization/46076
3573 * tree-ssa.c (useless_type_conversion_p): Conversions from
3574 unprototyped to empty argument list function types are useless.
3575
b1923f0a
RG
35762011-01-11 Richard Guenther <rguenther@suse.de>
3577
3578 PR middle-end/45235
3579 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
3580 volatile MEMs as MEM_READONLY_P.
3581
e98965af
RG
35822011-01-11 Richard Guenther <rguenther@suse.de>
3583
3584 PR tree-optimization/47239
3585 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
3586
9f9ca914
JL
35872011-01-11 Jeff Law <law@redhat.com>
3588
1ee3ea05 3589 PR tree-optimization/47086
9f9ca914
JL
3590 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
3591 IVs from statements that might throw.
3592
345fdcb7
JH
35932011-01-10 Jan Hubicka <jh@suse.cz>
3594
3595 PR lto/45375
3596 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
3597
c459c97b
JH
35982011-01-10 Jan Hubicka <jh@suse.cz>
3599
3600 PR lto/45375
3601 * profile.c (read_profile_edge_counts): Ignore profile inconistency
3602 when correcting profile.
3603
06c9eb51
JH
36042011-01-10 Jan Hubicka <jh@suse.cz>
3605
3606 PR lto/46083
3607 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
3608 DECL_FINI_PRIORITY.
3609 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
3610 Restore DECL_FINI_PRIORITY.
3611
ae9fd815
RW
36122011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3613
3614 * doc/gimple.texi: Fix quoting of multi-word return values in
3615 @deftypefn statements. Ensure presence of return value. Wrap
3616 overlong @deftypefn lines.
3617 (is_gimple_operand, is_gimple_min_invariant_address): Remove
3618 descriptions of removed functions.
3619 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
3620 of multi-word return value in @deftypefn statement.
3621
0ecb4a7c
RW
36222011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3623
3624 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
3625 (Conditional Expressions, Logical Operators)
3626 (Statement and operand traversals): Do not indent smallexample
3627 code. Fix duplicate function argument in example.
3628
2e5e346d
JL
36292011-01-10 Jeff Law <law@redhat.com>
3630
1ee3ea05 3631 PR tree-optimization/47141
2e5e346d
JL
3632 * ipa-split.c (split_function): Handle case where we are
3633 returning a value and the return block has a virtual operand phi.
3634
cf9712cc
JH
36352011-01-10 Jan Hubicka <jh@suse.cz>
3636
1c3ba85b 3637 PR tree-optimization/47234
cf9712cc
JH
3638 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
3639 (pass_feedback_split_functions): Declare.
3640 * passes.c (init_optimization_passes): Add ipa-split as subpass of
3641 tree-profile.
3642 * ipa-split.c (gate_split_functions): Update comments; disable
3643 split-functions for profile_arc_flag and branch_probabilities.
3644 (gate_feedback_split_functions): New function.
3645 (execute_feedback_split_functions): New function.
3646 (pass_feedback_split_functions): New global var.
3647
94cd932c
L
36482011-01-10 H.J. Lu <hongjiu.lu@intel.com>
3649
3650 PR lto/46760
3651 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
3652 calling gimple_call_set_cannot_inline.
3653
fbbfcaf1
IS
36542011-01-10 Iain Sandoe <iains@gcc.gnu.org>
3655
3656 * config/darwin-sections.def: Remove unused section.
3657
d06865bf
DK
36582011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
3659
3660 PR c++/47218
3661 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
3662
96bbfbac
NP
36632011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
3664
3665 PR objc/47232
3666 * c-parser.c (c_parser_declaration_or_fndef): Improved
3667 error message.
3668
1ba6516f
KT
36692011-01-09 Kai Tietz <kai.tietz@onevision.com>
3670
3671 * config/i386/winnt.c (i386_pe_start_function): Make sure
3672 to switch back to function's section.
3673
0c5d770e
IS
36742011-01-09 Iain Sandoe <iains@gcc.gnu.org>
3675
3676 PR gcc/46902
3677 PR testsuite/46912
3678 * plugin.c: Move include of dlfcn.h from here...
3679 * system.h: ... to here.
3680
36812011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
3682
3683 * doc/cpp.texi (C++ Named Operators): Fix markup for header
3684 file name.
3685 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
3686 two extra empty pages in PDF output.
3687
046608a3
NP
36882011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
3689
3690 PR objc/47078
3691 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
3692 for error recovery purposes behave as if it was not specified so
3693 that the default type is usd.
3694
8cb114b9
JH
36952011-01-07 Jan Hubicka <jh@suse.cz>
3696
3697 PR tree-optmization/46469
3698 * ipa.c (function_and_variable_visibility): Clear needed flags on
3699 nodes with external decls; handle weakrefs merging correctly.
3700
b294a75e
JM
37012011-01-07 Joseph Myers <joseph@codesourcery.com>
3702
3703 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
3704 not false.
3705
96bdf9b4
JH
37062011-01-07 Jan Hubicka <jh@suse.cz>
3707
3708 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
3709 and no longer claim that gold is required for linker plugin.
3710 * configure: Regenerate.
3711 * gcc.c (PLUGIN_COND): New macro.
3712 (LINK_COMMAND_SPEC): Use it.
3713 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
3714 * config.in (HAVE_LTO_PLUGIN): New.
3715 * configure.ac (--with-lto-plugin): New parameter; autodetect
3716 HAVE_LTO_PLUGIN.
3717
17afc0fe
JH
37182011-01-07 Jan Hubicka <jh@suse.cz>
3719
3720 PR tree-optimization/46367
3721 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
3722 when we can update original.
3723 (cgraph_mark_inline_edge): Sanity check.
3724 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
3725
d4c48c0f
UW
37262011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3727
3728 * config/spu/spu.h (ASM_COMMENT_START): Define.
3729
96f5b137
L
37302011-01-07 H.J. Lu <hongjiu.lu@intel.com>
3731
3732 PR driver/42445
3733 * gcc.c (%>S): New.
3734 (SWITCH_KEEP_FOR_GCC): Likewise.
3735 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
3736 (do_spec_1): Handle "%>".
3737
3738 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
3739
c6a8f6de
JJ
37402011-01-07 Jakub Jelinek <jakub@redhat.com>
3741
c21bbd7a
JJ
3742 PR target/47201
3743 * config/i386/i386.c (ix86_delegitimize_address): If
3744 simplify_gen_subreg fails, return orig_x.
3745
c6a8f6de
JJ
3746 PR bootstrap/47187
3747 * value-prof.c (gimple_stringop_fixed_value): Handle
3748 lhs of the call properly.
3749
fe95fbf9
JH
37502011-01-07 Jan Hubicka <jh@suse.cz>
3751
3752 PR lto/45375
3753 * lto-opt.c (lto_reissue_options): Set flag_shlib.
3754
14d11d40
IS
37552011-01-07 Iain Sandoe <iains@gcc.gnu.org>
3756
72e961c8
EB
3757 * target.def (function_switched_text_sections): New hook.
3758 * doc/tm.texi: Regenerated.
3759 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 3760 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
3761 (final_scan_insn): Call function_switched_text_sections when a
3762 mid-function section change occurs.
14d11d40 3763 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
3764 * config/darwin-protos.h (darwin_function_switched_text_sections):
3765 Likewise.
14d11d40 3766 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 3767 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 3768
0b764288
IS
37692011-01-07 Iain Sandoe <iains@gcc.gnu.org>
3770
3771 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
3772 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
3773 the secondary code fragment when outputting for DWARF == 2.
3774
2ac6bb04
AS
37752011-01-07 Anatoly Sokolov <aesok@post.ru>
3776
3777 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3778 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
3779 Remove.
3780 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
3781 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3782
9f82de11
EB
37832011-01-06 Eric Botcazou <ebotcazou@adacore.com>
3784
3785 PR debug/46704
280d9630
EB
3786 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
3787 when it is not empty.
9f82de11
EB
3788
37892011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 3790
1ed72abf 3791 Bobcat Enablement
14b52538 3792 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 3793 (case ${target}): Add btver1.
14b52538 3794 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 3795 -march=native recognize btver1 processors.
14b52538 3796 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 3797 btver1 def_and_undef
14b52538 3798 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
3799 btver1 cost table.
3800 (m_BTVER1): New definition.
3801 (m_AMD_MULTIPLE): Includes m_BTVER1.
3802 (initial_ix86_tune_features): Add btver1 tune.
3803 (processor_target_table): Add btver1 entry.
3804 (static const char *const cpu_names): Add btver1 entry.
3805 (software_prefetching_beneficial_p): Add btver1.
3806 (ix86_option_override_internal): Add btver1 instruction sets.
3807 (ix86_issue_rate): Add btver1.
3808 (ix86_adjust_cost): Add btver1.
14b52538 3809 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
3810 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
3811 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
3812 * config/i386/i386.md (define_attr "cpu"): Add btver1.
3813
e1a973d8
RO
38142011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3815
3816 PR target/43309
3817 * config/i386/i386.c (legitimize_tls_address)
3818 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
3819 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
3820 (tls_initial_exec_64_sun): New pattern.
3821
c73f67c5
GP
38222011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
3823
3824 * doc/invoke.texi (Overall Options): Improve wording and markup
3825 of the description of -wrapper.
3826
bc4c6f9c
JM
38272011-01-06 Joseph Myers <joseph@codesourcery.com>
3828
3829 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
3830 rdynamic, threads): New Driver options.
3831
adb75db0
RO
38322011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3833
3834 PR target/38118
3835 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
3836 if coming from .tdata.
3837 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3838
402c1cb4
JH
38392011-01-06 Jan Hubicka <jh@suse.cz>
3840
3841 PR lto/47188
3842 * collect2.c (main): Do not enable LTOmode when plugin is active.
3843
a4da6485
RO
38442011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3845
3846 PR other/45915
3847 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
3848 --version output if supported.
3849 * configure: Regenerate.
3850
028dbdf4
JM
38512011-01-06 Joseph Myers <joseph@codesourcery.com>
3852
3853 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
3854 Driver options.
3855
dfe776dd
JJ
38562011-01-06 Jakub Jelinek <jakub@redhat.com>
3857
3858 PR c/47150
3859 * c-convert.c (convert): When converting a complex expression
3860 other than COMPLEX_EXPR to a different complex type, ensure
3861 c_save_expr is called instead of save_expr, unless in_late_binary_op.
3862 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
3863 when converting COMPLEX_TYPE.
3864
210dedfe
IR
38652011-01-06 Ira Rosen <irar@il.ibm.com>
3866
3867 PR tree-optimization/47139
3868 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
3869 only the last reduction value is used outside the loop. Update
3870 documentation.
3871
cd33a412
JM
38722011-01-05 Joseph Myers <joseph@codesourcery.com>
3873
3874 * config/rtems.opt: New.
3875 * config.gcc (*-*-rtems*): Use rtems.opt.
3876
819edd94
CF
38772011-01-05 Changpeng Fang <changpeng.fang@amd.com>
3878
3879 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
3880 processors do not support 3DNow instructions.
3881
dc242c4a
UW
38822011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3883
3884 * config/spu/spu.c (spu_option_override): Set parameter
3885 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
3886
be286227
JH
38872011-01-05 Jan Hubicka <jh@suse.cz>
3888
3889 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
3890 at the command line.
3891
644e637f
MJ
38922011-01-05 Martin Jambor <mjambor@suse.cz>
3893
3894 PR lto/47162
3895 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
3896 deltas on streamed outgoing edges.
3897 (output_node_opt_summary): Output info for outgoing edges only when
3898 the node is in new parameter set.
3899 (output_cgraph_opt_summary): New parameter set, passed to the two
3900 aforementioned functions. Update its forward declaration and its
3901 callee too.
3902
7bd11157
TT
39032011-01-05 Tom Tromey <tromey@redhat.com>
3904
3905 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
3906 operator to c_finish_omp_atomic.
3907 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
3908 (build_unary_op): Update.
3909 (build_modify_expr): Update.
3910 (build_asm_expr): Update.
3911
f626b979
UW
39122011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3913
3914 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
3915 newly inserted insns.
3916 (pad_bb): Likewise.
3917 (spu_emit_branch_hint): Likewise.
3918 (insert_hbrp_for_ilb_runout): Likewise.
3919 (spu_machine_dependent_reorg): Call df_finish_pass after
3920 schedule_insns returns.
3921
4c825c02
UW
39222011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3923
3924 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
3925
5e9fba51
EB
39262011-01-05 Eric Botcazou <ebotcazou@adacore.com>
3927
3928 PR tree-optimization/47005
3929 * tree-sra.c (struct access): Add 'non_addressable' bit.
3930 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
3931 (decide_one_param_reduction): Return 0 if the parameter is passed by
3932 reference and one of the accesses in the group is non_addressable.
3933
3ebb5ca6
EB
39342011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3935
3936 PR tree-optimization/47056
3937 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
3938 (mark_load): Likewise. Handle FUNCTION_DECL specially.
3939 (mark_store): Likewise. Pass STMT to ipa_record_reference.
3940
d5d4d14e
EB
39412011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3942
3943 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
3944 initializer. Skip view conversions from aggregate types.
3945
d996ef70
KT
39462011-01-04 Kai Tietz <kai.tietz@onevision.com>
3947
3948 PR bootstrap/47055
3949 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
3950
017096ca
PT
39512011-01-04 Philipp Thomas <pth@suse.de>
3952
3953 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
3954 obvious typo.
3955
55c623b5
UW
39562011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3957
3958 * function.c (thread_prologue_and_epilogue_insns): Do not crash
3959 on empty epilogue sequences.
3960
b98d6b35
JM
39612011-01-04 Joseph Myers <joseph@codesourcery.com>
3962
3963 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
3964 non-static): New Driver options.
3965
a0d43bac
JZ
39662011-01-04 Jie Zhang <jie@codesourcery.com>
3967
3968 PR driver/47137
3969 * gcc.c (default_compilers[]): Set combinable field to 0
3970 for all assembly languages.
3971
2b18eb32
MX
39722011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
3973
3974 * config/mips/loongson3a.md: New file.
3975 * config/mips/mips.md: Include loongson3a.md.
3976 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
3977 TUNE_LOONGSON_3A.
3978
42a48c4f
EB
39792011-01-03 Eric Botcazou <ebotcazou@adacore.com>
3980
3981 PR middle-end/47017
3982 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
3983 instead of convert_memory_address_addr_space on the base expression.
3984
9c1732c4
UW
39852011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3986
3987 * config/spu/spu.c (spu_option_override): Update error text
3988 for bad -march= / -mtune= values.
3989
aa474365
UW
39902011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3991
3992 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
3993 if branch-hint optimization will be performed.
3994
9766135b
JJ
39952011-01-03 Jakub Jelinek <jakub@redhat.com>
3996
371556ee
JJ
3997 PR tree-optimization/47148
3998 * ipa-split.c (split_function): Convert arguments to
3999 DECL_ARG_TYPE if possible.
4000
1ac12fa2
JJ
4001 PR tree-optimization/47155
4002 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
4003 when computing uns.
4004
9766135b
JJ
4005 PR rtl-optimization/47157
4006 * combine.c (try_combine): If undobuf.other_insn becomes
4007 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
4008 and set *new_direct_jump_p too.
4009
f4a2e571
SP
40102011-01-03 Sebastian Pop <sebastian.pop@amd.com>
4011
4012 PR tree-optimization/47021
4013 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
4014
9f8e43c0
JJ
40152011-01-03 Jakub Jelinek <jakub@redhat.com>
4016
4017 * gcc.c (process_command): Update copyright notice dates.
4018 * gcov.c (print_version): Likewise.
4019 * gcov-dump.c (print_version): Likewise.
4020 * mips-tfile.c (main): Likewise.
4021 * mips-tdump.c (main): Likewise.
4022
1a2e38f3
MJ
40232011-01-03 Martin Jambor <mjambor@suse.cz>
4024
4025 PR tree-optimization/46801
4026 * tree-sra.c (type_internals_preclude_sra_p): Check whether
4027 aggregate fields start at byte boundary instead of the bit-field flag.
4028
56b721c5
L
40292011-01-03 H.J. Lu <hongjiu.lu@intel.com>
4030
4031 PR driver/47137
4032 * gcc.c (main): Revert revision 168407.
4033
839d549b
MJ
40342011-01-03 Martin Jambor <mjambor@suse.cz>
4035
4036 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
4037
4ce99a20 40382011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
4039
4040 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
4041 vector optab to expand vector/scalar shift, update gimple to vector.
4042
76df0ae6
MJ
40432011-01-03 Martin Jambor <mjambor@suse.cz>
4044
4045 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
4046 a thunk.
4047
ce47fda3
MJ
40482011-01-03 Martin Jambor <mjambor@suse.cz>
4049
4050 PR tree-optimization/46984
4051 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
4052 HOST_WIDE_INT.
4053 (cgraph_create_indirect_edge): Fixed line length.
4054 (cgraph_indirect_call_info): Declare.
4055 (cgraph_make_edge_direct) Update declaration.
4056 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
4057 (cgraph_create_indirect_edge): Use it.
4058 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
4059 callees.
4060 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
4061 the new thunk_delta representation.
4062 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
4063 HOST_WIDE_INT.
4064 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
4065 (ipa_read_indirect_edge_info): Likewise.
4066 * lto-cgraph.c (output_edge_opt_summary): New function.
4067 (output_node_opt_summary): Call it on all outgoing edges.
4068 (input_edge_opt_summary): New function.
4069 (input_node_opt_summary): Call it on all outgoing edges.
4070
1e67fa1f
L
40712011-01-02 H.J. Lu <hongjiu.lu@intel.com>
4072
4073 PR driver/47137
4074 * gcc.c (main): Don't check have_o when settting combine_inputs.
4075
6656b2ac
EB
40762011-01-02 Eric Botcazou <ebotcazou@adacore.com>
4077
4078 * regrename.c: Add general comment describing the pass.
4079 (struct du_head): Remove 'length' field.
4080 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
4081 (regrename_optimize): Do not sort chains. Rework comments, add others.
4082 Force renaming to the preferred class (if any) in the first pass and do
4083 not consider registers that belong to it in the second pass.
4084 (create_new_chain): Do not set 'length' field.
4085 (scan_rtx_reg): Likewise.
4086
bc470c24
JJ
40872011-01-02 Jakub Jelinek <jakub@redhat.com>
4088
4e996296
JJ
4089 PR tree-optimization/47140
4090 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
4091 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
4092 to bit_value_binop.
4093
bc470c24 4094 PR rtl-optimization/47028
6656b2ac
EB
4095 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
4096 parm_birth_insn instead of at the beginning of first bb.
bc470c24 4097
5af62fcd 40982011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
4099
4100 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
4101 Remove the word "see" before "@pxref".
4102 * doc/rtl.texi: Remove the word "see" before "@pxref".
4103
0e20c89f
JH
41042011-01-01 Jan Hubicka <jh@suse.cz>
4105
6656b2ac
EB
4106 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
4107 memory.
0e20c89f 4108
220e83ca
KT
41092011-01-01 Kai Tietz <kai.tietz@onevision.com>
4110
4111 PR target/38662
6656b2ac 4112 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 4113
ad41bd84 4114\f
797103eb 4115Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
4116
4117Copying and distribution of this file, with or without modification,
4118are permitted in any medium without royalty provided the copyright
4119notice and this notice are preserved.