re PR debug/47106 (-fcompare-debug failure (length) with -fpartial-inlining -flto...
[gcc.git] / gcc / ChangeLog
1 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
2
3 PR debug/47106
4 PR debug/47402
5 * tree-flow.h (referenced_var_lookup): Add fn parameter.
6 Adjust all callers.
7 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
8 * tree-flow-inline.h: Adjust.
9 * gimple-pretty-print.c: Adjust.
10 * tree-into-ssa.c: Adjust.
11 * tree-ssa.c: Adjust.
12 * cfgexpand.c: Adjust.
13
14 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
15
16 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18 (EXTRA_CONSTRAINT): Delete.
19 * config/iq2000/constraints.md: New file.
20 * config/iq2000/iq2000.md: Include it.
21 (define_insn ""): Delete.
22 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
23 unsupported constraint letters from patterns.
24 (call_value, call_value_internal1): Likewise.
25 (call_value_multiple_internal1): Likewise.
26
27 2011-02-15 Nick Clifton <nickc@redhat.com>
28
29 * config/mn10300/mn10300.c: Include tm-constrs.h.
30 (struct liw_data): New data structure describing an LIW candidate
31 instruction.
32 (extract_bundle): Use struct liw_data. Allow small integer
33 operands for some instructions.
34 (check_liw_constraints): Use struct liw_data. Remove swapped
35 parameter. Add comments describing the checks. Fix bug when
36 assigning the source of liw1 to the source of liw2.
37 (liw_candidate): Delete. Code moved into extract_bundle.
38 (mn10300_bundle_liw): Use struct liw_data. Check constraints
39 before swapping.
40 * config/mn10300/predicates.md (liw_operand): New predicate.
41 Allows registers and small integer constants.
42 * config/mn10300/constraints.md (O): New constraint. Accetps
43 integers in the range -8 to +7 inclusive.
44 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
45 for moving a small integer into a register. Give this alternative
46 LIW attributes.
47 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
48 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
49 using the J,K,L and M constraints,
50 (liw): Remove SI mode on second operands to allow for HI and QI
51 mode values.
52 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
53 instruction.
54
55 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
56
57 PR middle-end/47725
58 * combine.c (cant_combine_insn_p): Check zero/sign extended
59 hard registers.
60
61 2011-02-15 Richard Guenther <rguenther@suse.de>
62
63 PR tree-optimization/47743
64 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
65 for a non-type-compatible VN lookup bail out.
66
67 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
68
69 * config/fr30/constraints.md: New file.
70 * config/fr30/fr30.md: Include it.
71 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
72 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
73 (EXTRA_CONSTRAINT): Delete.
74
75 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
76
77 * config/frv/constraints.md: New file.
78 * config/frv/predicates.md: Include it.
79 * config/frv/frv.c (reg_class_from_letter): Delete.
80 (frv_option_override): Don't initialize it.
81 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
82 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
83 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
84 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
85 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
86 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
87 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
88 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
89 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
90 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
91 (REG_CLASS_FROM_CONSTRAINT): Delete.
92
93 2011-02-15 Jakub Jelinek <jakub@redhat.com>
94
95 PR middle-end/47581
96 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
97 if frame size is 0 in a leaf function.
98
99 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
100
101 PR pch/14940
102 * config/alpha/host-osf.c: New file.
103 * config/alpha/x-osf: New file.
104 * config.host (alpha*-dec-osf*): Use it.
105
106 2011-02-14 Anatoly Sokolov <aesok@post.ru>
107
108 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
109 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
110 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
111 (rx_mode_dependent_address_p): ...this. Make static. Change argument
112 type to const_rtx.
113 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
114
115 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
116
117 * config/stormy16/constraints.md: New file.
118 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
119 Use satisfies_constraint_Q and satisfies_constraint_R.
120 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
121 Delete.
122 (xstormy16_legitiamte_address_p): Declare.
123 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
124 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
125 (EXTRA_CONSTRAINT): Delete.
126 * config/stormy16/stormy16.c (xstormy16_legitiamte_address_p):
127 Un-staticize.
128 (xstormy16_extra_constraint_p): Delete.
129
130 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
131
132 PR tree-optimization/46494
133 * loop-unroll.c (split_edge_and_insert): Adjust comment.
134 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
135 (pass_rtl_loop_done): Add TODO_verify_flow.
136 * fwprop.c (pass_rtl_fwprop): Likewise.
137 * modulo-sched.c (pass_sms): Likewise.
138 * tree-ssa-dom.c (pass_dominator): Likewise.
139 * tree-ssa-loop-ch.c (pass_ch): Likewise.
140 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
141 (pass_tree_loop_done): Likewise.
142 * tree-ssa-pre.c (execute_pre): Likewise.
143 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
144 * tree-ssa-sink.c (pass_sink_code): Likewise.
145 * tree-vrp.c (pass_vrp): Likewise.
146
147 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
148
149 * config/v850/constraints.md: New file.
150 * config/v850/v850.md: Include it.
151 * config/v850/predicates.md (reg_or_0_operand): Use
152 satisfies_constraint_G.
153 (special_symbolref_operand): Use satisfies_constraint_K.
154 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
155 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
156 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
157 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
158 (EXTRA_CONSTRAINT): Delete.
159 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
160 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
161 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
162
163 2011-02-14 Anatoly Sokolov <aesok@post.ru>
164
165 PR target/47696
166 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
167 description.
168
169 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
170
171 * config/mcore/constraints.md: New file.
172 * config/mcore/mcore.md: Include it.
173 * config/mcore/mcore.c (reg_class_from_letter): Delete.
174 * config/mcore/mcore.h (reg_class_from_letter): Delete.
175 (REG_CLASS_FROM_LETTER): Delete.
176 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
177 insn_const_int_ok_for_constraint.
178 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
179 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
180 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
181 (EXTRA_CONSTRAINT): Delete.
182
183 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
184
185 PR ada/41929
186 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
187 (IS_SIGHANDLER): Define.
188 (sparc64_is_sighandler): New function, split off from
189 sparc64_fallback_frame_state.
190 (sparc_is_sighandler): New function, split off from
191 sparc_fallback_frame_state.
192 (sparc64_fallback_frame_state): Merge with ...
193 (sparc_fallback_frame_state): ... this into ...
194 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
195 Change new_cfa to long.
196 Remove regs_off, fpu_save_off, fpu_save.
197 Define nframes, mctx.
198 Use IS_SIGHANDLER, handler_args, mctx, walk stack instead of
199 hardcoded offsets.
200
201 2011-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
202
203 * go/gccgo.texi (Top, Import and Export): Fix a typo and a
204 markup nit.
205
206 2011-02-14 Andriy Gapon <avg@freebsd.org>
207
208 PR target/45808
209 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
210
211 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
212
213 * configure: Regenerate.
214
215 2011-02-12 Joseph Myers <joseph@codesourcery.com>
216
217 PR driver/45731
218 * gcc.c (asm_options): Correct spec matching --target-help.
219
220 2011-02-12 Martin Jambor <mjambor@suse.cz>
221
222 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
223 to gimple call error.
224
225 2011-02-12 Mike Stump <mikestump@comcast.net>
226
227 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
228 comments in backslash regions.
229
230 2011-02-12 Mike Stump <mikestump@comcast.net>
231 Jakub Jelinek <jakub@redhat.com>
232 Iain Sandoe <iains@gcc.gnu.org>
233
234 PR target/47324
235 * dwarf2out.c (output_cfa_loc): When required, apply the
236 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
237 (output_loc_sequence): Likewise.
238 (output_loc_operands_raw): Likewise.
239 (output_loc_sequence_raw): Likewise.
240 (output_cfa_loc): Likewise.
241 (output_loc_list): Suppress register number adjustment when
242 calling output_loc_sequence()
243 (output_die): Likewise.
244
245 2011-02-12 Anatoly Sokolov <aesok@post.ru>
246
247 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
248 Remove macros.
249 * config/xtensa/xtensa.c (xtensa_register_move_cost,
250 xtensa_memory_move_cost): New functions.
251 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
252
253 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
254
255 PR lto/47225
256 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
257 in the current directory.
258 * configure: Rebuilt.
259
260 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
261
262 * config/darwin.c (darwin_override_options): Add a hunk missed
263 from the commit of r168571. Trim comment line lengths and
264 correct indents of the preceding block.
265
266 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
267
268 * gcc.c (driver_handle_option): Concatenate the argument to -F with
269 the switch.
270
271 2011-02-11 Joseph Myers <joseph@codesourcery.com>
272
273 * common.opt (nostartfiles): New Driver option.
274
275 2011-02-11 Xinliang David Li <davidxl@google.com>
276
277 PR tree-optimization/47707
278 * tree-chrec.c (convert_affine_scev): Keep type precision.
279
280 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
281
282 PR tree-optimization/47420
283 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
284
285 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
286
287 PR rtl-optimization/47614
288 * rtl.h (check_for_inc_dec): Declare.
289 * dse.c (check_for_inc_dec): Externalize...
290 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
291 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
292
293 2011-02-11 Joseph Myers <joseph@codesourcery.com>
294
295 PR driver/47678
296 * gcc.c (main): Do not compile inputs if there were errors in
297 option handling.
298 * opts-common.c (read_cmdline_option): Check for wrong language
299 after other error checks.
300
301 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
302
303 * cgraph.c: Fix comment typos.
304 * cgraph.h: Likewise.
305 * cgraphunit.c: Likewise.
306 * ipa-cp.c: Likewise.
307 * ipa-inline.c: Likewise.
308 * ipa-prop.c: Likewise.
309 * ipa-pure-const.c: Likewise.
310 * ipa-ref.c: Likewise.
311 * ipa-reference.c: Likewise.
312
313 2011-02-11 Jakub Jelinek <jakub@redhat.com>
314
315 PR debug/47684
316 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
317
318 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
319
320 PR testsuite/47400
321 * doc/sourcebuild.texi (Require Support): Document
322 dg-require-ascii-locale.
323
324 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
325
326 * doc/lto.texi (Write summary): Fix missing parentheses.
327
328 2011-02-10 DJ Delorie <dj@redhat.com>
329
330 * config/m32c/m32c.c (m32c_option_override): Disable
331 -fcombine-stack-adjustments until flag value tracking and compare
332 optimization can be rewritten.
333
334 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
335
336 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
337 PROCESSOR_POWER7.
338 (PROCESSOR_DEFAULT64): Likewise.
339
340 2011-02-10 Richard Henderson <rth@redhat.com>
341
342 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
343 change from 2011-02-03.
344 * config/rx/rx.c (flags_from_code): Likewise.
345 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
346 is valid, n/pz otherwise.
347 (rx_select_cc_mode): Return CCmode if Y is not zero.
348
349 2011-02-10 Richard Guenther <rguenther@suse.de>
350
351 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
352
353 2011-02-10 Richard Guenther <rguenther@suse.de>
354
355 PR tree-optimization/47677
356 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
357
358 2011-02-10 Jakub Jelinek <jakub@redhat.com>
359
360 PR target/47665
361 * combine.c (make_compound_operation): Only change shifts into
362 multiplication for SCALAR_INT_MODE_P.
363
364 2011-02-10 Jie Zhang <jie@codesourcery.com>
365
366 PR testsuite/47622
367 Revert
368 2011-02-05 Jie Zhang <jie@codesourcery.com>
369 PR debug/42631
370 * web.c (entry_register): Don't clobber the number of the
371 first uninitialized reference in used[].
372
373 2011-02-09 Richard Guenther <rguenther@suse.de>
374
375 PR tree-optimization/47664
376 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
377 all edges again.
378
379 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
380
381 PR target/46481
382 PR target/47032
383 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
384 PROCESSOR_POWER7.
385 (PROCESSOR_DEFAULT64): Same.
386 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
387
388 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
389
390 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
391
392 2011-02-09 Martin Jambor <mjambor@suse.cz>
393
394 PR middle-end/45505
395 * tree-sra.c (struct access): New flags grp_scalar_read and
396 grp_scalar_write. Changed description of assignment read and write
397 flags.
398 (dump_access): Dump new flags, reorder all of them.
399 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
400 to detect multiple scalar reads.
401 (analyze_access_subtree): Use the new scalar read write flags instead
402 of the old flags. Adjusted comments.
403
404 2011-02-08 DJ Delorie <dj@redhat.com>
405
406 PR target/47548
407 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
408 patterns.
409
410 2011-02-08 Joseph Myers <joseph@codesourcery.com>
411
412 * config/m68k/uclinux.opt: New.
413 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
414
415 2011-02-08 Joseph Myers <joseph@codesourcery.com>
416
417 * config/cris/elf.opt (sim): New Driver option.
418
419 2011-02-08 Joseph Myers <joseph@codesourcery.com>
420
421 * config/xtensa/elf.opt: New.
422 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
423
424 2011-02-08 Joseph Myers <joseph@codesourcery.com>
425
426 * config/vax/elf.opt: New.
427 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
428
429 2011-02-08 Joseph Myers <joseph@codesourcery.com>
430
431 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
432
433 2011-02-08 Joseph Myers <joseph@codesourcery.com>
434
435 * config/gnu-user.opt: New.
436 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
437 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
438 *-*-uclinux*): Use gnu-user.opt.
439
440 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
441
442 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
443 * config/i386/gnu.h (CPP_SPEC): Likewise.
444
445 2011-02-08 Ian Lance Taylor <iant@google.com>
446
447 * common.opt (fcx-limited-range): Add SetByCombined flag.
448 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
449 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
450 (fassociative-math, freciprocal-math): Likewise.
451 (funsafe-math-optimizations): Likewise.
452 * opth-gen.awk: Handle SetByCombined.
453 * optc-gen.awk: Likewise.
454 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
455 (set_unsafe_math_optimizations_flags): Likewise.
456 * doc/options.texi (Option properties): Document SetByCombined.
457
458 2011-02-08 Joseph Myers <joseph@codesourcery.com>
459
460 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
461 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
462 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
463 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
464 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
465
466 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
467
468 PR tree-optimization/46834
469 PR tree-optimization/46994
470 PR tree-optimization/46995
471 * graphite-sese-to-poly.c (used_outside_reduction): New.
472 (detect_commutative_reduction): Call used_outside_reduction.
473 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
474 translate_scalar_reduction_to_array only when at least one
475 loop-phi/close-phi tuple has been detected.
476
477 2011-02-08 Richard Guenther <rguenther@suse.de>
478
479 PR middle-end/47639
480 * tree-vect-generic.c (expand_vector_operations_1): Update
481 stmts here ...
482 (expand_vector_operations): ... not here. Cleanup EH info
483 and the CFG if required.
484
485 2011-02-08 Richard Guenther <rguenther@suse.de>
486
487 PR tree-optimization/47641
488 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
489 require type compatibility.
490
491 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
492
493 * gimple-low.c (lower_function_body): Don't remove the location of
494 the return statement here.
495 (lower_gimple_return): Do it here instead but only if the return
496 statement is actually used twice.
497
498 2011-02-08 Richard Guenther <rguenther@suse.de>
499
500 PR tree-optimization/47632
501 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
502 unused up_to_stmt parameter, return whether cfg-cleanup is
503 necessary, remove EH info properly.
504 (forward_propagate_into_gimple_cond): Adjust caller.
505 (forward_propagate_into_cond): Likewise.
506 (forward_propagate_comparison): Likewise.
507 (tree_ssa_forward_propagate_single_use_vars): Make
508 forward_propagate_comparison case similar to the two others.
509
510 2011-02-08 Nick Clifton <nickc@redhat.com>
511
512 * config/mn10300/mn10300.opt (mliw): New command line option.
513 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
514 (liw_bundling): New automaton.
515 (liw): New attribute.
516 (liw_op): New attribute.
517 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
518 (movsi_internal): Add LIW attributes.
519 (andsi3): Likewise.
520 (iorsi3): Likewise.
521 (xorsi3): Likewise.
522 (addsi3): Separate register and immediate alternatives.
523 Add LIW attributes.
524 (subsi3): Likewise.
525 (cmpsi): Likewise.
526 (aslsi3): Likewise.
527 (lshrsi3): Likewise.
528 (ashrsi3): Likewise.
529 (liw): New pattern.
530 * config/mn10300/mn10300.c (liw_op_names): New
531 (mn10300_print_operand): Handle 'W' operand descriptor.
532 (extract_bundle): New function.
533 (check_liw_constraints): New function.
534 (liw_candidate): New function.
535 (mn10300_bundle_liw): New function.
536 (mn10300_reorg): New function.
537 (TARGET_MACHINE_DEPENDENT_REORG): Define.
538 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
539 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
540 __LIW__ or __NO_LIW__.
541 * doc/invoke.texi: Describe the -mliw command line option.
542
543 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
544
545 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
546 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
547 pthread_mutex_unlock): Remove.
548 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
549 * config/pa/t-pa64: Likewise.
550 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
551 shared libc if not linking against libpthread.
552 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
553
554 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
555
556 PR target/47558
557 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
558 on 10.6 and later to ensure that we always use the unwinder from
559 the system. Only add -no_compact_unwind when tarteting darwin
560 10.6 or later.
561
562 2011-02-07 Steve Ellcey <sje@cup.hp.com>
563
564 PR target/46997
565 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
566 (vec_interleave_lowv2sf): Ditto.
567 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
568 (vec_extract_oddv2sf): Ditto.
569
570 2011-02-07 Mike Stump <mikestump@comcast.net>
571
572 PR target/42333
573 Add __ieee_divdc3 entry point.
574 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
575 entry point.
576 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
577 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
578 * config/darwin.c (darwin_rename_builtins): Add.
579 * config/darwin-protos.h (darwin_rename_builtins): Add.
580
581 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
582
583 PR target/47636
584 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
585 for the condition.
586
587 2011-02-07 Mike Stump <mikestump@comcast.net>
588
589 * config/darwin.opt (mmacosx-version-min): Update default OS version.
590
591 2011-02-07 Denis Chertykov <chertykov@gmail.com>
592
593 PR target/47534
594 * config/avr/libgcc.S (exit): Move .endfunc
595
596 2011-02-07 Richard Guenther <rguenther@suse.de>
597
598 PR tree-optimization/47615
599 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
600 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
601 (run_scc_vn): Initialize it.
602 (visit_reference_op_load): Use it.
603 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
604
605 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
606
607 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
608 DImode trapping arithmetic libfuncs.
609
610 2011-02-07 Richard Guenther <rguenther@suse.de>
611
612 PR tree-optimization/47621
613 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
614 two duplicates ...
615 (execute_update_addresses_taken): ... here. Make it more
616 conservative in what we accept.
617
618 2011-02-06 Joseph Myers <joseph@codesourcery.com>
619
620 * config/sparc/freebsd.h (ASM_SPEC): Define.
621 * config/sparc/vxworks.h (ASM_SPEC): Define.
622
623 2011-02-06 Joseph Myers <joseph@codesourcery.com>
624
625 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
626
627 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
628
629 * doc/invoke.texi: Remove reference to compiler internals from
630 user documentation.
631
632 * reg-notes.def: Remove REG_VALUE_PROFILE.
633 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
634
635 2011-02-05 Jakub Jelinek <jakub@redhat.com>
636
637 PR middle-end/47610
638 * varasm.c (default_section_type_flags): If decl is NULL,
639 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
640
641 2011-02-05 Jie Zhang <jie@codesourcery.com>
642
643 PR debug/42631
644 * web.c (entry_register): Don't clobber the number of the
645 first uninitialized reference in used[].
646
647 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
648
649 PR tree-optimization/46194
650 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
651 (build_classic_dist_vector_1): Do not represent classic distance
652 vectors when the access functions are variating in different loops.
653
654 2011-02-04 Joseph Myers <joseph@codesourcery.com>
655
656 * config/mips/iris6.opt: New.
657 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
658
659 2011-02-04 Richard Henderson <rth@redhat.com>
660 Steve Ellcey <sje@cup.hp.com>
661
662 PR target/46997
663 * config/ia64/predicates.md (mux1_brcst_element): New.
664 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
665 * config/ia64/ia64.c (ia64_unpack_assemble): New.
666 (ia64_unpack_sign): New.
667 (ia64_expand_unpack): Rewrite using new routines.
668 (ia64_expand_widen_sum): Ditto.
669 (ia64_expand_dot_prod_v8qi): Ditto.
670 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
671 routines, add endian check.
672 (pmpy2_even): Rename from pmpy2_r, add endian check.
673 (pmpy2_odd): Rename from pmpy2_l, add endian check.
674 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
675 (vec_widen_smult_hi_v4hi): Ditto.
676 (vec_widen_umult_lo_v4hi): Ditto.
677 (vec_widen_umult_hi_v4hi): Ditto.
678 (mulv2si3): Change endian checks.
679 (sdot_prodv4hi): Rewrite with new calls.
680 (udot_prodv4hi): New.
681 (vec_pack_ssat_v4hi): Add endian check.
682 (vec_pack_usat_v4hi): Ditto.
683 (vec_pack_ssat_v2si): Ditto.
684 (max1_even): Rename from max1_r, add endian check.
685 (max1_odd): Rename from max1_l, add endian check.
686 (*mux1_rev): Format change.
687 (*mux1_mix): Ditto.
688 (*mux1_shuf): Ditto.
689 (*mux1_alt): Ditto.
690 (*mux1_brcst_v8qi): Use new predicate.
691 (vec_extract_evenv8qi): Remove endian check.
692 (vec_extract_oddv8qi): Ditto.
693 (vec_interleave_lowv4hi): Format change.
694 (vec_interleave_highv4hi): Ditto.
695 (mix2_even): Rename from mix2_r, add endian check.
696 (mix2_odd): Rename from mux2_l, add endian check.
697 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
698 (vec_extract_evenodd_helper): Format change.
699 (vec_extract_evenv4hi): Remove endian check.
700 (vec_extract_oddv4hi): Remove endian check.
701 (vec_interleave_lowv2si): Format change.
702 (vec_interleave_highv2si): Format change.
703 (vec_initv2si): Remove endian check.
704 (vecinit_v2si): Add endian check.
705 (reduc_splus_v2sf): Add endian check.
706 (reduc_smax_v2sf): Ditto.
707 (reduc_smin_v2sf): Ditto.
708 (vec_initv2sf): Remove endian check.
709 (fpack): Add endian check.
710 (fswap): Add endian check.
711 (vec_interleave_highv2sf): Add endian check.
712 (vec_interleave_lowv2sf): Add endian check.
713 (fmix_lr): Add endian check.
714 (vec_setv2sf): Format change.
715 (*vec_extractv2sf_0_be): Use shift to extract operand.
716 (*vec_extractv2sf_1_be): New.
717 (vec_pack_trunc_v4hi): Add endian check.
718 (vec_pack_trunc_v2si): Format change.
719
720 2011-02-04 Jakub Jelinek <jakub@redhat.com>
721
722 PR inline-asm/23200
723 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
724 do bb, locus and block comparison and disallow loads if it is not set.
725 (stmt_is_replaceable_p): New function.
726 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
727 callers.
728 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
729 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
730 SSA_NAME_DEF_STMT.
731 * tree-flow.h (stmt_is_replaceable_p): New prototype.
732
733 2011-02-04 Joseph Myers <joseph@codesourcery.com>
734
735 * config/rs6000/xilinx.opt: New.
736 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
737
738 2011-02-04 Joseph Myers <joseph@codesourcery.com>
739
740 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
741
742 2011-02-03 Anatoly Sokolov <aesok@post.ru>
743
744 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
745 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
746 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
747 secondary_reload_info, xtensa_secondary_reload): Remove.
748 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
749 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
750 (xtensa_preferred_reload_class): Make static. Change return and
751 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
752 Use CONST_DOUBLE_P predicate.
753 (xtensa_preferred_output_reload_class): New function.
754 (xtensa_secondary_reload): Make static.
755
756 2011-02-03 Joseph Myers <joseph@codesourcery.com>
757
758 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
759 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
760 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
761
762 2011-02-03 Jakub Jelinek <jakub@redhat.com>
763
764 PR middle-end/31490
765 * output.h (SECTION_RELRO): Define.
766 (SECTION_MACH_DEP): Adjust.
767 (get_variable_section): New prototype.
768 * varpool.c (varpool_finalize_named_section_flags): New function.
769 (varpool_assemble_pending_decls): Call it.
770 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
771 * cgraphunit.c (cgraph_output_in_order): Call
772 varpool_finalize_named_section_flags.
773 * varasm.c (get_section): Allow section flags conflicts between
774 relro and read-only sections if the section hasn't been declared yet.
775 Set SECTION_OVERRIDE after diagnosing section type conflict.
776 (get_variable_section): No longer static.
777 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
778 readonly sections that need relocations.
779 (decl_readonly_section_1): New function.
780 (decl_readonly_section): Use it.
781
782 Revert:
783 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
784 Steve Ellcey <sje@cup.hp.com>
785
786 PR middle-end/31490
787 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
788 if section attribute used.
789
790 2011-02-03 Jakub Jelinek <jakub@redhat.com>
791
792 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
793 * config/darwin.c (SECTION_NO_ANCHOR): Define.
794 (darwin_init_sections): Remove assertion.
795
796 2011-02-03 Nick Clifton <nickc@redhat.com>
797
798 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
799 lt and ge.
800 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
801 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
802 instead of "n" and "pz".
803 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
804 CC_FLAG_S.
805
806 2011-02-03 Jakub Jelinek <jakub@redhat.com>
807
808 PR target/47312
809 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
810 fma, expand FMA_EXPR as fma{,f,l} call.
811
812 PR lto/47274
813 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
814 copy them into a unsigned char variable and pass address of it to
815 lto_output_data_stream.
816
817 PR target/47564
818 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
819 around backend_init_target and lang_dependent_init_target calls.
820 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
821 (verify_cgraph_node): Don't call set_cfun here. Use
822 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
823 Set error_found for incorrectly represented calls to thunks.
824
825 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
826
827 PR debug/43092
828 PR rtl-optimization/43494
829 * rtl.h (for_each_inc_dec_fn): New type.
830 (for_each_inc_dec): Declare.
831 * rtlanal.c (struct for_each_inc_dec_ops): New type.
832 (for_each_inc_dec_find_inc_dec): New fn.
833 (for_each_inc_dec_find_mem): New fn.
834 (for_each_inc_dec): New fn.
835 * dse.c (struct insn_size): Remove.
836 (replace_inc_dec, replace_inc_dec_mem): Remove.
837 (emit_inc_dec_insn_before): New fn.
838 (check_for_inc_dec): Use it, along with for_each_inc_dec.
839 (canon_address): Pass mem modes to cselib_lookup.
840 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
841 (cselib_lookup_from_insn): Likewise.
842 (cselib_subst_to_values): Likewise.
843 * cselib.c (find_slot_memmode): New var.
844 (cselib_find_slot): New fn. Use it instead of
845 htab_find_slot_with_hash everywhere.
846 (entry_and_rtx_equal_p): Use find_slot_memmode.
847 (autoinc_split): New fn.
848 (rtx_equal_for_cselib_p): Rename and implement in terms of...
849 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
850 Deal with autoinc. Special-case recursion into MEMs.
851 (cselib_hash_rtx): Likewise.
852 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
853 address and MEM modes.
854 (cselib_subst_to_values): Add memmode, pass it on.
855 Deal with autoinc.
856 (cselib_lookup): Add memmode argument, pass it on.
857 (cselib_lookup_from_insn): Add memmode.
858 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
859 (struct cselib_record_autoinc_data): New.
860 (cselib_record_autoinc_cb): New fn.
861 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
862 mode to cselib_lookup. Reset autoinced REGs here instead of...
863 (cselib_process_insn): ... here.
864 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
865 to cselib_lookup.
866 (add_uses): Likewise, also to cselib_subst_to_values.
867 (add_stores): Likewise.
868 * sched-deps.c (add_insn_mem_dependence): Pass mode to
869 cselib_subst_to_values.
870 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
871 * gcse.c (do_local_cprop): Adjusted.
872 * postreload.c (reload_cse_simplify_set): Adjusted.
873 (reload_cse_simplify_operands): Adjusted.
874 * sel-sched-dump (debug_mem_addr_value): Pass mode.
875
876 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
877
878 PR tree-optimization/45122
879 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
880 unsafe assumptions when there's more than one loop exit.
881
882 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
883
884 PR target/47272
885 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
886 Document using vector double with the load/store builtins, and
887 that the load/store builtins always use Altivec instructions.
888
889 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
890 to use altivec memory instructions, even on VSX.
891 (vector_altivec_store_<mode>): Ditto.
892
893 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
894 function.
895
896 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
897 V2DF, V2DI support to load/store overloaded builtins.
898
899 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
900 altivec load/store builtins for V2DF/V2DI types.
901
902 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
903 set avoid indexed addresses on power6 if -maltivec.
904 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
905 vector_altivec_load/vector_altivec_store builtins.
906 (altivec_expand_st_builtin): Ditto.
907 (altivec_expand_builtin): Add VSX memory builtins.
908 (rs6000_init_builtins): Add V2DI types to internal types.
909 (altivec_init_builtins): Add support for V2DF/V2DI altivec
910 load/store builtins.
911 (rs6000_address_for_altivec): Insure memory address is appropriate
912 for Altivec.
913
914 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
915 vec_vsx_ld and vec_vsx_st.
916 (vsx_store_<mode>): Ditto.
917
918 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
919 variables to hold long long types for VSX vector memory builtins.
920 (RS6000_BTI_unsigned_long_long): Ditto.
921 (long_long_integer_type_internal_node): Ditti.
922 (long_long_unsigned_type_internal_node): Ditti.
923
924 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
925 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
926 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
927
928 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
929 short cuts.
930 (vec_vsx_st): Ditto.
931
932 2011-02-02 Joseph Myers <joseph@codesourcery.com>
933
934 * config/pa/pa-hpux10.opt: New.
935 * config/hpux11.opt (pthread): New Driver option.
936 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
937 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
938
939 2011-02-02 Joseph Myers <joseph@codesourcery.com>
940
941 * config/ia64/vms.opt: New.
942 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
943
944 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
945
946 PR target/47580
947 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
948 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
949 generator functions.
950 (vsx_floatuns<VSi><mode>2): Ditto.
951 (vsx_fix_trunc<mode><VSi>2): Ditto.
952 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
953
954 2011-02-02 Joseph Myers <joseph@codesourcery.com>
955
956 * config/i386/djgpp.opt (posix): New Driver option.
957
958 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
959
960 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
961 Move to the unsupported targets list.
962
963 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
964
965 PR rtl-optimization/47525
966 * df-scan.c: Update copyright years.
967 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
968 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
969
970 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
971
972 * config/i386/sysv4.h (TARGET_VERSION): Remove.
973 (SUBTARGET_RETURN_IN_MEMORY): Remove.
974 (ASM_OUTPUT_ASCII): Remove.
975 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
976
977 2011-02-02 Jeff Law <law@redhat.com>
978
979 PR middle-end/47543
980 * reload.c (find_reloads_address): Handle reg+d address where both
981 components are invalid by reloading the entire address.
982
983 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
984 Richard Guenther <rguenther@suse.de>
985
986 PR tree-optimization/40979
987 PR bootstrap/47044
988 * passes.c (init_optimization_passes): After LIM call copy_prop
989 and DCE to clean up.
990 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
991
992 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
993
994 PR tree-optimization/47576
995 PR tree-optimization/47555
996 * doc/invoke.texi (scev-max-expr-complexity): Documented.
997 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
998 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
999 * tree-scalar-evolution.c (follow_ssa_edge): Use
1000 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
1001
1002 2011-02-02 Richard Guenther <rguenther@suse.de>
1003
1004 PR tree-optimization/47566
1005 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
1006
1007 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
1008
1009 PR debug/47106
1010 PR debug/47402
1011 * tree-inline.c (declare_return_variable): Remove unused caller
1012 variable.
1013
1014 PR debug/47106
1015 PR debug/47402
1016 * tree-flow-inline.h (clear_is_used, is_used_p): New.
1017 * cfgexpand.c (account_used_vars_for_block): Use them.
1018 * tree-nrv.c (tree_nrv): Likewise.
1019 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
1020 (dump_scope_block): Likewise.
1021 (remove_unused_locals): Likewise.
1022
1023 PR debug/47106
1024 PR debug/47402
1025 * tree-inline.c (declare_return_variable): Add result decl to
1026 local decls only once.
1027 * gimple-low.c (record_vars_into): Mark newly-created variables
1028 as referenced.
1029
1030 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
1031
1032 PR debug/47498
1033 PR debug/47501
1034 PR debug/45136
1035 PR debug/45130
1036 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1037 debug insns.
1038 (no_real_insns_p, schedule_block, set_priorities): Drop special
1039 treatment of boundary debug insns.
1040 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
1041 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
1042 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1043 (BOUNDARY_DEBUG_INSN_P): Likewise.
1044 (SCHEDULE_DEBUG_INSN_P): Likewise.
1045 * sched-rgn.c (init_ready_list): Drop special treatment of
1046 boundary debug insns.
1047 * final.c (rest_of_clean_state): Clear notes' BB.
1048
1049 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1050
1051 * config/openbsd.opt (assert=): New Driver option.
1052
1053 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1054
1055 * config/i386/nto.opt: New.
1056 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
1057
1058 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1059
1060 * config/i386/netware.opt: New.
1061 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
1062
1063 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1064
1065 * config/interix.opt (posix): New Driver option.
1066
1067 2011-02-01 DJ Delorie <dj@redhat.com>
1068
1069 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
1070
1071 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
1072 class for A0/A1.
1073
1074 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
1075
1076 PR tree-optimization/47561
1077 * toplev.c (process_options): Print the Graphite flags. Add
1078 flag_loop_flatten to the list of options requiring Graphite.
1079
1080 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1081
1082 * config/i386/cygming.opt (posix): New Driver option.
1083
1084 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1085
1086 * config/arm/vxworks.opt: New.
1087 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
1088
1089 2011-02-01 Joseph Myers <joseph@codesourcery.com>
1090
1091 * config/alpha/elf.opt: New.
1092 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
1093 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
1094
1095 2011-02-01 Richard Guenther <rguenther@suse.de>
1096
1097 PR tree-optimization/47559
1098 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
1099 store-motion on references that can throw.
1100
1101 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
1102
1103 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
1104 * tree-pass.h (TDF_CSELIB): New macro.
1105 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
1106 cselib_lookup): Check for it rather than for TDF_DETAILS.
1107
1108 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
1109
1110 PR driver/47547
1111 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
1112 is HOST_BIT_BUCKET.
1113
1114 * opts.c (finish_options): Don't add x_aux_base_name if it is
1115 HOST_BIT_BUCKET.
1116
1117 2011-02-01 Richard Guenther <rguenther@suse.de>
1118
1119 PR tree-optimization/47555
1120 Revert
1121 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1122
1123 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1124
1125 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
1126
1127 PR gcc/46692
1128 * config/lm32/t-lm32: Add multilib for all CPU options.
1129
1130 2011-02-01 Richard Guenther <rguenther@suse.de>
1131
1132 PR tree-optimization/47541
1133 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
1134 sure to have a field at offset zero.
1135
1136 2011-01-31 Joseph Myers <joseph@codesourcery.com>
1137
1138 * config/arc/arc.opt (EB, EL): New Driver options.
1139
1140 2011-01-31 Joseph Myers <joseph@codesourcery.com>
1141
1142 * config/alpha/osf5.opt: New.
1143 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
1144
1145 2011-01-31 Joseph Myers <joseph@codesourcery.com>
1146
1147 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
1148
1149 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
1150
1151 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
1152 -floop-interchange.
1153 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
1154 is an alias of -floop-interchange and that it requires the
1155 Graphite infrastructure.
1156 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
1157 flag_loop_interchange based on the value of flag_tree_loop_linear.
1158
1159 2011-01-31 Jakub Jelinek <jakub@redhat.com>
1160 Richard Guenther <rguenther@suse.de>
1161
1162 PR tree-optimization/47538
1163 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
1164 type instead of r1type, except for comparisons. For right
1165 shifts and comparisons punt if there are mismatches in
1166 sizetype vs. non-sizetype types.
1167
1168 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1169
1170 * doc/sourcebuild.texi (Effective-Target Keywords): Document
1171 avx_runtime.
1172
1173 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1174
1175 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
1176 version number.
1177 * configure: Regenerate.
1178
1179 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1180
1181 * configure.ac (gcc_cv_ld_static_option): Define.
1182 (gcc_cv_ld_dynamic_option): Define.
1183 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
1184 instead.
1185 (HAVE_LD_STATIC_DYNAMIC): Update message.
1186 (LD_STATIC_OPTION): Define.
1187 (LD_DYNAMIC_OPTION): Define.
1188 * configure: Regenerate.
1189 * config.in: Regenerate.
1190 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
1191 HAVE_LD_STATIC_DYNAMIC]: Use them.
1192
1193 2011-01-31 Nick Clifton <nickc@redhat.com>
1194
1195 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
1196 registers inside interrupt handlers if the handler is not a leaf
1197 function.
1198
1199 2011-01-31 Nick Clifton <nickc@redhat.com>
1200
1201 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
1202 reg_renumber returning an INVALID_REGNUM.
1203
1204 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
1205
1206 PR libgcj/44341
1207 * doc/install.texi: Document host options discarded when cross
1208 configuring target libraries.
1209
1210 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
1211
1212 Reverted:
1213 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
1214 PR debug/45136
1215 PR debug/45130
1216 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1217 debug insns.
1218 (no_real_insns_p, schedule_block, set_priorities): Drop special
1219 treatment of boundary debug insns.
1220 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
1221 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
1222 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1223 (BOUNDARY_DEBUG_INSN_P): Likewise.
1224 (SCHEDULE_DEBUG_INSN_P): Likewise.
1225 * sched-rgn.c (init_ready_list): Drop special treatment of
1226 boundary debug insns.
1227 * final.c (rest_of_clean-state): Clear notes' BB.
1228
1229 2011-01-31 Alan Modra <amodra@gmail.com>
1230
1231 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
1232 toc relative expressions as we do in print_operand_address.
1233
1234 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
1235
1236 * doc/extend.texi: Follow spelling conventions.
1237 * doc/invoke.texi: Fix a typo.
1238
1239 2011-01-30 Joseph Myers <joseph@codesourcery.com>
1240
1241 * config/hpux11.opt: New.
1242 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
1243 ia64*-*-hpux*): Use hpux11.opt.
1244
1245 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
1246
1247 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
1248 to tmake_file.
1249
1250 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1251
1252 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
1253 support sites.
1254
1255 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1256
1257 * doc/install.texi (Binaries): Remove outdated reference for
1258 Motorola 68HC11/68HC12 downloads.
1259
1260 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
1261
1262 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
1263 Drepper's paper.
1264
1265 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1266
1267 PR bootstrap/47147
1268 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
1269 used by NetBSD.
1270
1271 2011-01-28 Ahmad Sharif <asharif@google.com>
1272
1273 * value-prof.c (check_counter): Corrected error message.
1274
1275 2011-01-29 Jie Zhang <jie@codesourcery.com>
1276
1277 * config/arm/arm.c (arm_legitimize_reload_address): New.
1278 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
1279 arm_legitimize_reload_address.
1280 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
1281
1282 2011-01-28 Ian Lance Taylor <iant@google.com>
1283
1284 * godump.c (go_define): Ignore macros whose definitions include
1285 two adjacent operands.
1286
1287 2011-01-28 Jakub Jelinek <jakub@redhat.com>
1288
1289 PR target/42894
1290 * varasm.c (force_const_mem): Store copy of x in desc->constant
1291 instead of x itself.
1292 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
1293 itself into REG_EQUAL note.
1294
1295 2011-01-28 Joseph Myers <joseph@codesourcery.com>
1296
1297 * config/freebsd.opt (posix, rdynamic): New Driver options.
1298
1299 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1300
1301 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
1302 -Bstatic/-Bdynamic.
1303 * configure: Regenerate.
1304
1305 2011-01-27 Joseph Myers <joseph@codesourcery.com>
1306
1307 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
1308 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
1309
1310 2011-01-27 Anatoly Sokolov <aesok@post.ru>
1311
1312 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
1313 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
1314 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1315 (s390_preferred_reload_class): Make static. Change return and
1316 'rclass' argument type to reg_class_t.
1317
1318 2011-01-27 Jan Hubicka <jh@suse.cz>
1319
1320 PR middle-end/46949
1321 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
1322 (process_function_and_variable_attributes): Check defined weakrefs.
1323
1324 2011-01-27 Martin Jambor <mjambor@suse.cz>
1325
1326 PR tree-optimization/47228
1327 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
1328 build_ref_for_offset.
1329
1330 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1331
1332 * config/spu/spu-elf.h (ASM_SPEC): Remove.
1333
1334 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
1335
1336 PR rtl-optimization/46856
1337 * postreload.c (reload_combine_recognize_const_pattern): Do not
1338 separate cc0 setter and user on cc0 targets.
1339
1340 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
1341
1342 PR c/43082
1343 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
1344 passed a VOID_TYPE expression, immediately emit an error and
1345 return error_mark_node.
1346
1347 2011-01-26 Jeff Law <law@redhat.com>
1348
1349 PR rtl-optimization/47464
1350 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
1351 rather than may_trap_p as needed.
1352
1353 2011-01-26 DJ Delorie <dj@redhat.com>
1354
1355 PR rtl-optimization/46878
1356 * combine.c (insn_a_feeds_b): Check for the implicit cc0
1357 setter/user dependency as well.
1358
1359 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
1360
1361 PR rtl-optimization/44469
1362 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
1363 after removing trivially dead basic blocks.
1364
1365 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1366
1367 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
1368 * config/frv/frv.h (LINK_SPEC): Likewise.
1369 * config/i386/netware.h (LINK_SPEC): Likewise.
1370 * config/m68k/linux.h (ASM_SPEC): Likewise.
1371 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
1372 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1373 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1374 * config/sparc/linux.h (ASM_SPEC): Likewise.
1375 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1376 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1377
1378 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1379
1380 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
1381 * config/frv/frv.h (ASM_SPEC): Likewise.
1382 * config/m68k/linux.h (ASM_SPEC): Likewise.
1383 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1384 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
1385 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1386 * config/sparc/linux.h (ASM_SPEC): Likewise.
1387 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1388 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1389
1390 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1391
1392 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
1393 * config/frv/frv.h (LINK_SPEC): Likewise.
1394 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
1395
1396 2011-01-26 Joseph Myers <joseph@codesourcery.com>
1397
1398 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
1399 * config/frv/frv.h (ASM_SPEC): Likewise.
1400 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1401 * config/m68k/linux.h (ASM_SPEC): Likewise.
1402 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1403 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1404 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1405 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
1406 * config/sparc/linux.h (ASM_SPEC): Likewise.
1407 * config/sparc/linux64.h (ASM_SPEC): Likewise.
1408 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1409 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
1410
1411 2011-01-26 Steve Ellcey <sje@cup.hp.com>
1412
1413 PR target/46997
1414 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
1415 (*mux2): Ditto.
1416 (vec_extract_evenodd_help): Ditto.
1417 (vec_extract_evenv4hi): Ditto.
1418 (vec_extract_oddv4hi): Ditto.
1419 (vec_interleave_lowv2si): Ditto.
1420 (vec_interleave_highv2si): Ditto.
1421 (vec_extract_evenv2si): Ditto.
1422 (vec_extract_oddv2si: Ditto.
1423 (vec_pack_trunc_v2si): Ditto.
1424
1425 2011-01-22 Jan Hubicka <jh@suse.cz>
1426
1427 PR target/47237
1428 * cgraph.h (cgraph_local_info): New field can_change_signature.
1429 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
1430 signature can change.
1431 (ipcp_estimate_growth): Call sequence simplify only if calle signature
1432 can change.
1433 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
1434 (cgraph_function_versioning): We can not change signature of functions
1435 that don't allow that.
1436 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
1437 (lto_input_node): Likewise.
1438 * ipa-inline.c (compute_inline_parameters): Compute
1439 local.can_change_signature.
1440 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
1441 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
1442 functions that can not change signature.
1443 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
1444 init_cumulative_args): Do not use local calling conventions
1445 for functions that can not change signature.
1446
1447 2011-01-22 Jan Hubicka <jh@suse.cz>
1448
1449 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
1450
1451 2011-01-26 Richard Guenther <rguenther@suse.de>
1452
1453 PR tree-optimization/47190
1454 * cgraphunit.c (process_common_attributes): New function.
1455 (process_function_and_variable_attributes): Use it.
1456
1457 2011-01-26 Richard Guenther <rguenther@suse.de>
1458
1459 PR lto/47423
1460 * cgraphbuild.c (record_eh_tables): Record reference to personality
1461 function.
1462
1463 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
1464
1465 PR debug/45454
1466 * sel-sched.c (moveup_expr): Don't let debug insns prevent
1467 non-debug insns from moving up.
1468
1469 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1470
1471 PR target/40125
1472 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
1473 t-dlldir{,-x} fragment for build and add it to tmake_file.
1474 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
1475 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
1476 * config/i386/t-dlldir: New file.
1477 (SHLIB_DLLDIR): Define.
1478 * config/i386/t-dlldir-x: New file.
1479 (SHLIB_DLLDIR): Define.
1480 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
1481 (SHLIB_INSTALL): Use it.
1482
1483 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
1484
1485 PR target/47246
1486 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
1487 lower bound of the allowed Thumb-2 coprocessor load/store
1488 index range to -256. Add explaining comment.
1489
1490 2011-01-25 Ian Lance Taylor <iant@google.com>
1491
1492 * godump.c (go_define): Improve lexing of macro expansion to only
1493 accept expressions which match Go spec.
1494
1495 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1496
1497 PR c++/43601
1498 * tree.c (handle_dll_attribute): Handle it.
1499 * doc/extend.texi (@item dllexport): Mention it.
1500 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
1501
1502 2011-01-25 Ian Lance Taylor <iant@google.com>
1503
1504 PR tree-optimization/26854
1505 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
1506 (decl_jump_unsafe): Move higher in file, with no other change.
1507 (bind): Set has_jump_unsafe_decl if appropriate.
1508 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
1509 (check_earlier_gotos): Likewise.
1510 (c_check_switch_jump_warnings): Likewise.
1511
1512 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
1513
1514 * doc/invoke.texi (Warning Options): Add missing hyphen.
1515 (-fprofile-dir): Minor grammatical fixes.
1516 (-fbranch-probabilities): Likewise.
1517
1518 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
1519
1520 PR debug/45136
1521 PR debug/45130
1522 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
1523 debug insns.
1524 (no_real_insns_p, schedule_block, set_priorities): Drop special
1525 treatment of boundary debug insns.
1526 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
1527 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
1528 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
1529 (BOUNDARY_DEBUG_INSN_P): Likewise.
1530 (SCHEDULE_DEBUG_INSN_P): Likewise.
1531 * sched-rgn.c (init_ready_list): Drop special treatment of
1532 boundary debug insns.
1533 * final.c (rest_of_clean-state): Clear notes' BB.
1534
1535 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1536
1537 * Makefile.in (LAMBDA_H): Removed.
1538 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
1539 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
1540 lambda-trans.o, and tree-loop-linear.o.
1541 (lto-symtab.o): Remove dependence on LAMBDA_H.
1542 (tree-loop-linear.o): Remove rule.
1543 (lambda-mat.o): Same.
1544 (lambda-trans.o): Same.
1545 (lambda-code.o): Same.
1546 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
1547 (tree-vect-slp.o): Same.
1548 * hwint.h (gcd): Moved here.
1549 (least_common_multiple): Same.
1550 * lambda-code.c: Removed.
1551 * lambda-mat.c: Removed.
1552 * lambda-trans.c: Removed.
1553 * lambda.h: Removed.
1554 * tree-loop-linear.c: Removed.
1555 * lto-symtab.c: Do not include lambda.h.
1556 * omega.c (gcd): Removed.
1557 * passes.c (init_optimization_passes): Remove pass_linear_transform.
1558 * tree-data-ref.c (print_lambda_vector): Moved here.
1559 (lambda_vector_copy): Same.
1560 (lambda_matrix_copy): Same.
1561 (lambda_matrix_id): Same.
1562 (lambda_vector_first_nz): Same.
1563 (lambda_matrix_row_add): Same.
1564 (lambda_matrix_row_exchange): Same.
1565 (lambda_vector_mult_const): Same.
1566 (lambda_vector_negate): Same.
1567 (lambda_matrix_row_negate): Same.
1568 (lambda_vector_equal): Same.
1569 (lambda_matrix_right_hermite): Same.
1570 * tree-data-ref.h: Do not include lambda.h.
1571 (lambda_vector): Moved here.
1572 (lambda_matrix): Same.
1573 (dependence_level): Same.
1574 (lambda_transform_legal_p): Removed declaration.
1575 (lambda_collect_parameters): Same.
1576 (lambda_compute_access_matrices): Same.
1577 (lambda_vector_gcd): Same.
1578 (lambda_vector_new): Same.
1579 (lambda_vector_clear): Same.
1580 (lambda_vector_lexico_pos): Same.
1581 (lambda_vector_zerop): Same.
1582 (lambda_matrix_new): Same.
1583 * tree-flow.h (least_common_multiple): Removed declaration.
1584 * tree-parloops.c (lambda_trans_matrix): Moved here.
1585 (LTM_MATRIX): Same.
1586 (LTM_ROWSIZE): Same.
1587 (LTM_COLSIZE): Same.
1588 (LTM_DENOMINATOR): Same.
1589 (lambda_trans_matrix_new): Same.
1590 (lambda_matrix_vector_mult): Same.
1591 (lambda_transform_legal_p): Same.
1592 * tree-pass.h (pass_linear_transform): Removed declaration.
1593 * tree-ssa-loop.c (tree_linear_transform): Removed.
1594 (gate_tree_linear_transform): Removed.
1595 (pass_linear_transform): Removed.
1596 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
1597 flag_loop_interchange.
1598
1599 2011-01-25 Jakub Jelinek <jakub@redhat.com>
1600
1601 PR tree-optimization/47265
1602 PR tree-optimization/47443
1603 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
1604 if name still has some uses.
1605
1606 2011-01-25 Martin Jambor <mjambor@suse.cz>
1607
1608 PR tree-optimization/47382
1609 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
1610 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
1611
1612 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
1613
1614 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
1615 sjlj_except_unwind_info.
1616
1617 2011-01-25 Richard Guenther <rguenther@suse.de>
1618
1619 PR tree-optimization/47426
1620 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
1621 visible functions results escape.
1622
1623 2011-01-25 Jakub Jelinek <jakub@redhat.com>
1624
1625 PR target/45701
1626 * config/arm/arm.c (any_sibcall_uses_r3): New function.
1627 (arm_get_frame_offsets): Use it.
1628
1629 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1630 Jakub Jelinek <jakub@redhat.com>
1631
1632 PR tree-optimization/47271
1633 * tree-if-conv.c (bb_postdominates_preds): New.
1634 (if_convertible_bb_p): Call bb_postdominates_preds.
1635 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
1636 (predicate_scalar_phi): Call bb_postdominates_preds.
1637
1638 2011-01-25 Nick Clifton <nickc@redhat.com>
1639
1640 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
1641 * config/rx/rx.c (rx_function_value): Likewise.
1642 (rx_promote_function_mode): Likewise.
1643 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
1644 in order to make it legitimate.
1645 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
1646 make sure that the first operand is the same as the result register.
1647 (addsi3_unspec): Delete.
1648 (subdi3): Do not accept immediate operands.
1649 (subdi3_internal): Likewise.
1650
1651 2011-01-25 Jeff Law <law@redhat.com>
1652
1653 PR rtl-optimization/37273
1654 * ira-costs.c (scan_one_insn): Detect constants living in memory and
1655 handle them like argument loads from stack slots. Do not double
1656 count memory for memory constants and argument loads from stack slots.
1657
1658 2011-01-25 Jakub Jelinek <jakub@redhat.com>
1659
1660 PR tree-optimization/47427
1661 PR tree-optimization/47428
1662 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
1663 coalesce if the new root var would be TREE_READONLY.
1664
1665 2011-01-25 Richard Guenther <rguenther@suse.de>
1666
1667 PR middle-end/47414
1668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
1669 correct type for TBAA.
1670
1671 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1672
1673 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
1674 (close_phi_written_to_memory): Call for_each_index with
1675 dr_indices_valid_in_loop.
1676
1677 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1678
1679 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
1680 when it is initialized.
1681
1682 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1683
1684 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
1685 call to graphite_find_data_references_in_stmt.
1686 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
1687 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
1688 call to graphite_find_data_references_in_stmt.
1689 (analyze_drs_in_stmts): Same.
1690 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
1691 in which the scalar analysis of indices is performed.
1692 (create_data_ref): Same. Update call to dr_analyze_indices.
1693 (find_data_references_in_stmt): Update call to create_data_ref.
1694 (graphite_find_data_references_in_stmt): Same.
1695 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
1696 declaration.
1697 (create_data_ref): Same.
1698 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
1699 call to create_data_ref.
1700
1701 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1702
1703 * graphite-sese-to-poly.c (build_poly_scop): Move
1704 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
1705
1706 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1707
1708 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
1709 VAR_DECL, PARM_DECL, and RESULT_DECL.
1710
1711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1712
1713 * graphite-dependences.c (reduction_dr_1): Allow several reductions
1714 in a reduction PBB.
1715 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
1716 that have already been marked as PBB_IS_REDUCTION.
1717
1718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1719
1720 * graphite-scop-detection.c (same_close_phi_node): New.
1721 (remove_duplicate_close_phi): New.
1722 (make_close_phi_nodes_unique): New.
1723 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
1724
1725 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1726
1727 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
1728 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
1729 of both data references to be the same.
1730
1731 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1732
1733 * graphite-dependences.c (build_lexicographical_constraint): Remove
1734 the gdim parameter.
1735 (build_lexicographical_constraint): Adjust call to
1736 ppl_powerset_is_empty.
1737 (dependence_polyhedron): Same.
1738 (graphite_legal_transform_dr): Same.
1739 (graphite_carried_dependence_level_k): Same.
1740 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
1741 parameter.
1742 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
1743
1744 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1745
1746 * graphite-sese-to-poly.c
1747 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
1748 (close_phi_written_to_memory): New.
1749 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
1750 and unshare_expr.
1751
1752 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1753
1754 * doc/install.texi: Update the expected version number of PPL to 0.11.
1755 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
1756 #if PPL_VERSION_MINOR < 11.
1757
1758 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1759
1760 * graphite-dependences.c: Include graphite-cloog-util.h.
1761 (new_poly_ddr): Inlined into dependence_polyhedron.
1762 (free_poly_ddr): Moved close by new_poly_ddr.
1763 (dependence_polyhedron_1): Renamed dependence_polyhedron.
1764 Early return NULL when ppl_powerset_is_empty returns true.
1765 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
1766 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
1767 (graphite_legal_transform_dr): Call new_poly_ddr.
1768 (graphite_carried_dependence_level_k): Same.
1769 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
1770 (dot_transformed_deps_stmt_1): Removed.
1771 (dot_deps_stmt_1): Call dot_deps_stmt_2.
1772 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
1773 (dot_deps_1): Call dot_deps_2.
1774 * Makefile.in (graphite-dependences.o): Add missing dependence on
1775 graphite-cloog-util.h.
1776
1777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1778
1779 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
1780 (build_lexicographical_constraint): Same.
1781 (dependence_polyhedron_1): Same.
1782 (graphite_legal_transform_dr): Same.
1783 (graphite_carried_dependence_level_k): Same.
1784 * graphite-ppl.c (ppl_powerset_is_empty): New.
1785 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
1786 * tree-data-ref.c (dump_data_reference): Print the basic block index.
1787
1788 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1789
1790 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
1791 the "a followed by b" relation and document it.
1792
1793 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1794
1795 * graphite-dependences.c (build_lexicographical_constraint): Stop the
1796 iteration when the bag of constraints is empty.
1797
1798 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1799
1800 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
1801
1802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1803
1804 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
1805 nest and two loop depths as parameters.
1806 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
1807 lst_perfect_nestify.
1808
1809 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1810
1811 * graphite-dependences.c (print_pddr): Call
1812 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
1813
1814 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
1815
1816 * graphite-ppl.c (debug_gmp_value): New.
1817 * graphite-ppl.h (debug_gmp_value): Declared.
1818
1819 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
1820
1821 * doc/install.texi: Document availability of cloog-0.16.
1822
1823 2011-01-25 Vladimir Kargov <kargov@gmail.com>
1824
1825 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
1826 invalid postdominance info.
1827
1828 2011-01-24 Jan Hubicka <jh@suse.cz>
1829
1830 PR c/21659
1831 * doc/extend.texi (weak pragma): Drop claim that it must
1832 appear before definition.
1833 * varasm.c (merge_weak, declare_weak): Only sanity check
1834 that DECL is not output at a time it is declared weak.
1835
1836 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
1837
1838 * machmode.def: Fixed comments.
1839
1840 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
1841
1842 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
1843
1844 2011-01-24 Paul Koning <ni1d@arrl.net>
1845
1846 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1847 WORDS_BIG_ENDIAN.
1848
1849 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
1850
1851 PR target/46519
1852 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
1853 (block_info): Add scanned and prev.
1854 (move_or_delete_vzeroupper_2): Return if the basic block
1855 has been scanned and the upper 128bit state is unchanged
1856 from the last scan.
1857 (move_or_delete_vzeroupper_1): Return true if the exit
1858 state is changed.
1859 (move_or_delete_vzeroupper): Visit basic blocks using the
1860 work-list based algorithm based on vt_find_locations in
1861 var-tracking.c.
1862
1863 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
1864
1865 2011-01-24 Nick Clifton <nickc@redhat.com>
1866
1867 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
1868 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
1869 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
1870 then define __v850e1__.
1871 * doc/invoke.texi: Document -mv850es.
1872
1873 2011-01-24 Richard Henderson <rth@redhat.com>
1874
1875 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
1876 compound unordered comparisons.
1877 * config/rx/rx.c (rx_split_fp_compare): Remove.
1878 * config/rx/rx-protos.h: Update.
1879 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
1880 (cbranchsf4): Don't call rx_split_fp_compare.
1881 (*cbranchsf4): Use rx_split_cbranch.
1882 (*cmpsf): Don't accept "i" constraint.
1883 (*conditional_branch): Only valid after reload.
1884 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
1885
1886 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1887
1888 PR target/47385
1889 * config/rs6000/altivec.md (vector constant splitters): Add
1890 support for creating vector single precision constants if -mvsx is
1891 used and we would create the constant using Altivec primitives.
1892
1893 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
1894 Richard Sandiford <rdsandiford@googlemail.com>
1895
1896 PR rtl-optimization/47166
1897 * reload1.c (emit_reload_insns): Disable the spill_reg_store
1898 mechanism for PRE_MODIFY and POST_MODIFY.
1899 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
1900 reloadreg.
1901
1902 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
1903
1904 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
1905
1906 2011-01-22 Jan Hubicka <jh@suse.cz>
1907
1908 PR lto/47333
1909 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
1910
1911 2011-01-22 Jan Hubicka <jh@suse.cz>
1912
1913 PR tree-optimization/43884
1914 PR lto/44334
1915 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
1916 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
1917
1918 2011-01-22 Anatoly Sokolov <aesok@post.ru>
1919
1920 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1921 * config/s390/s390.c (s390_register_move_cost,
1922 s390_memory_move_cost): New.
1923 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1924
1925 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1926
1927 PR middle-end/47401
1928 * except.c (sjlj_assign_call_site_values): Move setting the
1929 crtl->uses_eh_lsda flag to ...
1930 (sjlj_mark_call_sites): ... here.
1931 (sjlj_emit_function_enter): Support NULL dispatch label.
1932 (sjlj_build_landing_pads): In a function with no landing pads
1933 that still has must-not-throw regions, generate code to register
1934 a personality function with empty LSDA.
1935
1936 2011-01-21 Richard Henderson <rth@redhat.com>
1937
1938 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
1939
1940 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
1941
1942 * compare-elim.c: New file.
1943 * Makefile.in (OBJS-common): Add it.
1944 (compare-elim.o): New.
1945 * common.opt (fcompare-elim): New.
1946 * opts.c (default_options_table): Add OPT_fcompare_elim.
1947 * tree-pass.h (pass_compare_elim_after_reload): New.
1948 * passes.c (init_optimization_passes): Add it.
1949 * recog.h: Protect against re-inclusion.
1950 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
1951 * doc/invoke.texi (-fcompare-elim): Document it.
1952 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
1953 * doc/tm.texi: Rebuild.
1954
1955 2011-01-22 Nick Clifton <nickc@redhat.com>
1956
1957 * config/rx/rx.md (cstoresf4): Pass comparison operator to
1958 rx_split_fp_compare.
1959
1960 2011-01-22 Nick Clifton <nickc@redhat.com>
1961
1962 * config/rx/rx.md (UNSPEC_CONST): New.
1963 (deallocate_and_return): Wrap the amount popped off the stack in
1964 an UNSPEC_CONST in order to stop it being rejected by
1965 -mmax-constant-size.
1966 (pop_and_return): Add a "(return)" rtx.
1967 (call): Drop the immediate operand.
1968 (call_internal): Likewise.
1969 (call_value): Likewise.
1970 (call_value_internal): Likewise.
1971 (sibcall_internal): Likewise.
1972 (sibcall_value_internal): Likewise.
1973 (sibcall): Likewise. Generate an explicit call using
1974 sibcall_internal.
1975 (sibcall_value): Likewise.
1976 (mov<>): FAIL if a constant operand is not legitimate.
1977 (addsi3_unpsec): New pattern.
1978
1979 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
1980 (ok_for_max_constant): New function.
1981 (gen_safe_add): New function.
1982 (rx_expand_prologue): Use gen_safe_add.
1983 (rx_expand_epilogue): Likewise.
1984 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
1985 UNSPEC CONSTs.
1986
1987 2011-01-21 Jeff Law <law@redhat.com>
1988
1989 PR tree-optimization/47053
1990 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
1991 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
1992 statements are deleted.
1993 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
1994 is nonempty, then purge dead edges and cleanup the CFG.
1995
1996 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
1997
1998 PR debug/47402
1999 Temporarily revert:
2000 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2001 PR debug/47106
2002 * tree-dfa.c (create_var_ann): Mark variable as used.
2003
2004 2011-01-21 Jakub Jelinek <jakub@redhat.com>
2005
2006 PR middle-end/45566
2007 * except.c (convert_to_eh_region_ranges): Emit queued no-region
2008 notes from other section in hot/cold partitioning even if
2009 last_action is -3. Increment call_site_base.
2010
2011 PR rtl-optimization/47366
2012 * fwprop.c (forward_propagate_into): Return bool. If
2013 any changes are made, -fnon-call-exceptions is used and
2014 REG_EH_REGION note is present, call purge_dead_edges
2015 and return true if it purged anything.
2016 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
2017 any EH edges were purged.
2018
2019 2011-01-21 Jeff Law <law@redhat.com>
2020
2021 PR rtl-optimization/41619
2022 * caller-save.c (setup_save_areas): Break out code to determine
2023 which hard regs are live across calls by examining the reload chains
2024 so that it is always used.
2025 Eliminate code which checked REG_N_CALLS_CROSSED.
2026
2027 2011-01-21 Jakub Jelinek <jakub@redhat.com>
2028
2029 PR tree-optimization/47355
2030 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
2031 NOP has non-debug uses beyond PHIs in new_bb.
2032
2033 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
2034
2035 PR debug/47106
2036 * cfgexpand.c (account_used_vars_for_block): Only account vars
2037 that are annotated as used.
2038 (estimated_stack_frame_size): Don't set TREE_USED.
2039 * tree-dfa.c (create_var_ann): Mark variable as used.
2040
2041 2011-01-21 Richard Guenther <rguenther@suse.de>
2042
2043 PR middle-end/47395
2044 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
2045
2046 2011-01-21 Richard Guenther <rguenther@suse.de>
2047
2048 PR tree-optimization/47365
2049 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
2050 (vn_reference_lookup_pieces): Adjust.
2051 (vn_reference_lookup): Likewise.
2052 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
2053 (vn_reference_lookup_3): Only look through kills if in
2054 VN_WALKREWRITE mode.
2055 (vn_reference_lookup_pieces): Adjust.
2056 (vn_reference_lookup): Likewise.
2057 (visit_reference_op_load): Likewise.
2058 (visit_reference_op_store): Likewise.
2059 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
2060 (compute_avail): Likewise.
2061 (eliminate): Likewise.
2062
2063 2011-01-21 Jakub Jelinek <jakub@redhat.com>
2064
2065 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
2066 DECL_IGNORED_P non-reg vars if they are used.
2067
2068 PR tree-optimization/47391
2069 * varpool.c (const_value_known_p): Return false if
2070 decl is volatile.
2071
2072 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
2073
2074 PR bootstrap/47215
2075 * config/i386/i386.c (ix86_local_alignment): Handle
2076 case for va_list_type_node is nil.
2077 (ix86_canonical_va_list_type): Likewise.
2078
2079 2011-01-21 Alan Modra <amodra@gmail.com>
2080
2081 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
2082 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
2083
2084 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2085
2086 * config/arm/arm.md (define_attr type): Rename f_load
2087 and f_store to f_fpa_load and f_fpa_store. Update.
2088 (write_conflict): Deal with rename fallout.
2089 (*push_fp_multi): Likewise.
2090 * config/arm/fpa.md (f_load): Use f_fpa_load.
2091 (f_store): Use f_fpa_store.
2092 (*movsf_fpa): Likewise.
2093 (*movdf_fpa): Likewise.
2094 (*movxf_fpa): Likewise.
2095 (*thumb2_movsf_fpa): Likewise.
2096 (*thumb2_movdf_fpa): Likewise.
2097 (*thumb2_movxf_fpa): Likewise.
2098 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
2099 f_loadd and f_stored.
2100 (*thumb2_movdi_vfp): Likewise.
2101 (*thumb2_movsf_vfp): Fix attribute to f_loads.
2102 (*thumb2_movsi_vfp): Likewise.
2103 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
2104 Use f_loads instead of f_load.
2105 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
2106
2107 2011-01-20 Anatoly Sokolov <aesok@post.ru>
2108
2109 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2110 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
2111 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2112 (xtensa_mode_dependent_address_p): New function.
2113 (constantpool_address_p): Make static. Change return type to bool.
2114 Change argument type to const_rtx. Use CONST_INT_P predicate.
2115
2116 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
2117
2118 PR debug/46583
2119 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
2120
2121 2011-01-20 Jakub Jelinek <jakub@redhat.com>
2122
2123 PR debug/47283
2124 * cfgexpand.c (expand_debug_expr): Instead of generating
2125 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
2126 etc. handling.
2127
2128 2011-01-20 Richard Guenther <rguenther@suse.de>
2129
2130 PR middle-end/47370
2131 * tree-inline.c (remap_gimple_op_r): Recurse manually for
2132 the pointer operand of MEM_REFs.
2133
2134 2011-01-20 Jakub Jelinek <jakub@redhat.com>
2135
2136 PR tree-optimization/46130
2137 * ipa-split.c (consider_split): If return_bb contains non-virtual
2138 PHIs other than for retval or if split_function would not adjust it,
2139 refuse to split.
2140
2141 2011-01-20 Richard Guenther <rguenther@suse.de>
2142
2143 PR tree-optimization/47167
2144 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
2145 Revert previous change, only avoid enumeral type changes.
2146
2147 2011-01-19 Mike Stump <mikestump@comcast.net>
2148
2149 * doc/tm.texi.in (BRANCH_COST): Englishify.
2150 * doc/tm.texi (BRANCH_COST): Likewise.
2151
2152 2011-01-19 Dodji Seketeli <dodji@redhat.com>
2153
2154 PR c++/47291
2155 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
2156 (gen_scheduled_generic_parms_dies): New functions.
2157 (gen_struct_or_union_type_die): Schedule template parameters DIEs
2158 generation for the end of CU compilation.
2159 (dwarf2out_finish): Generate template parameters DIEs here.
2160
2161 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
2162
2163 PR debug/46240
2164 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
2165 debug bind stmt on merge edges.
2166
2167 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
2168
2169 PR debug/47079
2170 PR debug/46724
2171 * function.c (instantiate_expr): Instantiate incoming rtl of
2172 implicit arguments, and recurse on VALUE_EXPRs.
2173 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
2174 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
2175
2176 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
2177
2178 * c-parser.c (c_parser_for_statement): Initialize
2179 collection_expression.
2180
2181 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2182
2183 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
2184
2185 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2186
2187 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
2188 (LINK_SHLIB_SPEC): Don't use %(link_path).
2189 (SUBTARGET_EXTRA_SPECS): Remove link_path.
2190
2191 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2192
2193 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
2194 (NO_SHARED_LIB_SUPPORT): Remove.
2195 (LINK_SHLIB_SPEC): Remove one conditional definition.
2196
2197 2011-01-19 Joseph Myers <joseph@codesourcery.com>
2198
2199 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
2200 %{call_shared}.
2201 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
2202 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
2203 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
2204 %{call_shared} and conditionals on these options not being passed.
2205 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
2206 %{call_shared}.
2207
2208 2011-01-19 Jakub Jelinek <jakub@redhat.com>
2209
2210 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
2211 simplify.
2212
2213 * ipa-split.c: Spelling fixes.
2214
2215 2011-01-19 Richard Henderson <rth@redhat.com>
2216
2217 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
2218 (*mulsi3): Likewise.
2219
2220 * longlong.h [__mn10300__] (count_leading_zeros): New.
2221 [__mn10300__] (umul_ppmm, smul_ppmm): New.
2222 [__mn10300__] (add_ssaaaa, subddmmss): New.
2223 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
2224 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
2225
2226 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2227
2228 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
2229
2230 2011-01-19 Richard Henderson <rth@redhat.com>
2231
2232 * config/mn10300/mn10300.md (addsi3_flags): New.
2233 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
2234 (subsi3_flags, subc_internal, subdi3): New.
2235 (subdi3_internal, *subdi3_degenerate): New.
2236 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
2237
2238 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
2239 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
2240 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
2241 * config/mn10300/mn10300-protos.h: Update.
2242 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
2243 (return_ret): Likewise. Rename from return_internal_regs.
2244 (return_internal): Remove.
2245
2246 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
2247 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
2248 (mn10300_legitimate_constant_p): Likewise.
2249 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
2250 (mn10300_frame_size): New.
2251 (mn10300_expand_prologue): Use it.
2252 (mn10300_expand_epilogue): Likewise.
2253 (mn10300_initial_offset): Likewise.
2254 * config/mn10300/mn10300-protos.h: Update.
2255 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
2256 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
2257 (prologue, epilogue, return_internal): Tidy output code.
2258 (mn10300_store_multiple_operation, return): Likewise.
2259 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
2260 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
2261 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
2262 (load_pic, am33_load_pic): New.
2263 (mn10300_load_pic0, mn10300_load_pic1): New.
2264
2265 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
2266 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
2267 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
2268 (cc_flags_for_mode, cc_flags_for_code): New.
2269 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
2270 overflow flag is not valid. Validate that the flags we need
2271 for the comparison are valid.
2272 (mn10300_output_cmp): Remove.
2273 (mn10300_output_add): New.
2274 (mn10300_select_cc_mode): Use cc_flags_for_code.
2275 (mn10300_split_cbranch): New.
2276 (mn10300_match_ccmode): New.
2277 (mn10300_split_and_operand_count): New.
2278 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
2279 to the function.
2280 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
2281 (addsi3): ... here. Use mn10300_output_add.
2282 (*addsi3_flags): New.
2283 (*am33_subsi3, *mn10300_subsi3): Merge...
2284 (subsi3): ... here. Use attribute isa.
2285 (*subsi3_flags): New.
2286 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
2287 when possible.
2288 (*am33_andsi3, *mn10300_andsi3): Merge...
2289 (andsi3): ... here.
2290 (*andsi3_flags): New.
2291 (andsi3 splitters): New.
2292 (*am33_iorsi3, *mn10300_iorsi3): Merge...
2293 (iorsi3): ... here.
2294 (*iorsi3_flags): New.
2295 (*am33_xorsi3, *mn10300_xorsi3): Merge...
2296 (xorsi3): ... here.
2297 (*xorsi3_flags): New.
2298 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
2299 (one_cmplsi2): ... here.
2300 (*one_cmplsi2_flags): New.
2301 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
2302 instead of "dax" in constraints. Use mn10300_split_cbranch.
2303 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
2304 use matching constraints to eliminate a self-comparison.
2305 (*integer_conditional_branch): Rename from integer_conditional_branch.
2306 Use int_mode_flags to match CC_REG.
2307 (*cbranchsi4_btst, *btstsi): New.
2308 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
2309 mn10300_split_cbranch.
2310 (*am33_cmpsf): Rename from am33_cmpsf.
2311 (*float_conditional_branch): Rename from float_conditional_branch.
2312 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
2313 (zero_extendqisi2): ... here.
2314 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
2315 (zero_extendhisi2): ... here.
2316 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
2317 (extendqisi2): ... here.
2318 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
2319 (extendhisi2): ... here.
2320 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
2321 (ashlsi3): ... here.
2322 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
2323 (lshrsi3): ... here.
2324 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
2325 (ashrsi3): ... here.
2326 (consecutive add peephole): Remove.
2327 * config/mn10300/predicates.md (label_ref_operand): New.
2328 (int_mode_flags): New.
2329 (CCZN_comparison_operator): New.
2330
2331 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
2332 (throughput_42_latency_43): New reservation.
2333 (mulsidi3, umulsidi3): New expanders.
2334 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
2335 the MDR register to allocation; separately allocate the low and
2336 high parts of the DImode result.
2337 (umulsidi3_internal): Similarly.
2338 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
2339 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
2340 (udivsi3, umodsi3): Remove.
2341 (udivmodsi4, divmodsi4): New expanders.
2342 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
2343 (*divmodsi4): Simiarly.
2344 (ext_internal): New.
2345
2346 * config/mn10300/constraints.md ("z"): New constraint.
2347 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
2348 (FIXED_REGISTERS): Don't fix MDR.
2349 (CALL_USED_REGSITERS): Reformat nicely.
2350 (REG_ALLOC_ORDER): Add MDR.
2351 (enum regclass): Add MDR_REGS.
2352 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
2353 (IRA_COVER_CLASSES): Add MDR_REGS.
2354 (REGNO_REG_CLASS): Handle MDR_REG.
2355 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
2356 (mn10300_register_move_cost): Likewise.
2357 * config/mn10300/mn10300.md (MDR_REG): New.
2358 (*movsi_internal): Handle moves to/from MDR_REGS.
2359
2360 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
2361 POST_MODIFY.
2362 (mn10300_secondary_reload): Tidy combination reload classes.
2363 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
2364 addresses for AM33. Allow symbolic offsets for reg+imm.
2365 (mn10300_regno_in_class_p): New.
2366 (mn10300_legitimize_reload_address): New.
2367 * config/mn10300/mn10300.h (enum reg_class): Remove
2368 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
2369 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
2370 SP_OR_GENERAL_REGS.
2371 (REG_CLASS_NAMES): Update to match.
2372 (REG_CLASS_CONTENTS): Likewise.
2373 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
2374 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
2375 (REGNO_IN_RANGE_P): Remove.
2376 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
2377 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
2378 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
2379 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
2380 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
2381 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
2382 (REGNO_GENERAL_P): New.
2383 (HAVE_POST_MODIFY_DISP): New.
2384 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
2385 (LEGITIMIZE_RELOAD_ADDRESS): New.
2386 * config/mn10300/mn10300-protos.h: Update.
2387
2388 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
2389 DATA_REGS for AM33 stack-pointer destination.
2390 (mn10300_preferred_output_reload_class): Likewise.
2391 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
2392 into a form appropriate for ...
2393 (TARGET_SECONDARY_RELOAD): New.
2394 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
2395 * config/mn10300/mn10300-protos.h: Update.
2396 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
2397 reload_insi; use the "A" constraint for the scratch; handle AM33
2398 moves of sp to non-address registers.
2399
2400 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
2401 (*movqi_internal): ... here.
2402 (*am33_movhi, *mn10300_movhi): Merge into...
2403 (*movhi_internal): ... here.
2404 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
2405 as the source/destination of moves from/to SP.
2406 (movsf): Only allow for AM33-2.
2407 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
2408 any integer constant constraint. Only allow for AM33-2. Tidy
2409 all of the alternative outputs.
2410 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
2411 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
2412 for MN103.
2413 (udivsi3, umodsi3): New patterns for MN103 only.
2414
2415 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
2416
2417 * doc/tm.texi.in: Spell out that a lack of register class unions
2418 can lead to ICEs.
2419 * doc/tm.texi: Regenerate.
2420
2421 2011-01-19 Jakub Jelinek <jakub@redhat.com>
2422
2423 PR rtl-optimization/47337
2424 * dce.c (check_argument_store): New function.
2425 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
2426
2427 PR tree-optimization/47290
2428 * tree-eh.c (infinite_empty_loop_p): New function.
2429 (cleanup_empty_eh): Use it.
2430
2431 2011-01-18 Steve Ellcey <sje@cup.hp.com>
2432
2433 PR target/46997
2434 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
2435 (a64_expand_widen_sum): Ditto.
2436 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
2437 (vec_extract_evenodd_help): Ditto.
2438 (vec_extract_evenv4hi): Ditto.
2439 (vec_extract_oddv4hi): Ditto.
2440 (vec_extract_evenv2si): Ditto.
2441 (vec_extract_oddv2si): Ditto.
2442 (vec_extract_evenv2sf): Ditto.
2443 (vec_extract_oddv2sf): Ditto.
2444 (vec_pack_trunc_v4hi: Ditto.
2445 (vec_pack_trunc_v2si): Ditto.
2446 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
2447 (vec_interleave_highv8qi): Ditto.
2448 (mix1_r): Ditto.
2449 (vec_extract_oddv8qi): Ditto.
2450 (vec_interleave_lowv4hi): Ditto.
2451 (vec_interleave_highv4hi): Ditto.
2452 (vec_interleave_lowv2si): Ditto.
2453 (vec_interleave_highv2si): Ditto.
2454
2455 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2456
2457 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
2458 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
2459 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
2460 (pa_c_mode_for_suffix): New.
2461 (TARGET_EXPAND_BUILTIN): Define.
2462 (TARGET_C_MODE_FOR_SUFFIX): Define.
2463 (pa_builtins): Define.
2464 (pa_init_builtins): Register __float128 type and init new support
2465 builtins.
2466 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
2467 * config/pa/quadlib.c (_U_Qfcopysign): New.
2468
2469 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
2470
2471 PR middle-end/46894
2472 * explow.c (allocate_dynamic_stack_space): Do not assume more than
2473 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
2474 are defined.
2475
2476 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2477
2478 PR tree-optimization/47179
2479 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
2480 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
2481
2482 2011-01-18 Richard Guenther <rguenther@suse.de>
2483
2484 PR rtl-optimization/47216
2485 * emit-rtl.c: Include tree-flow.h.
2486 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
2487 of replicating it with different semantics.
2488 * Makefile.in (emit-rtl.o): Adjust.
2489
2490 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2491
2492 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
2493 (cortex_a9_dp): Handle neon types correctly.
2494
2495 2011-01-18 Jakub Jelinek <jakub@redhat.com>
2496
2497 PR rtl-optimization/47299
2498 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
2499 subtarget. Use normal multiplication if both operands are constants.
2500 * expmed.c (expand_widening_mult): Don't try to optimize constant
2501 multiplication if op0 has VOIDmode. Convert op1 constant to mode
2502 before using it.
2503
2504 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2505
2506 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
2507 spacing after 'e.g.', typos, comma, hyphenation.
2508
2509 2011-01-17 Richard Henderson <rth@redhat.com>
2510
2511 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
2512 (rx_restricted_mem_operand): New.
2513 (rx_shift_operand): Use register_operand.
2514 (rx_source_operand, rx_compare_operand): Likewise.
2515 * config/rx/rx.md (addsi3_flags): New expander.
2516 (adddi3): Rewrite as expander.
2517 (adc_internal, *adc_flags, adddi3_internal): New patterns.
2518 (subsi3_flags): New expander.
2519 (subdi3): Rewrite as expander.
2520 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
2521
2522 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
2523 (rx_init_builtins): Remove sat builtin.
2524 (rx_expand_builtin): Likewise.
2525 * config/rx/rx.md (ssaddsi3): New.
2526 (*sat): Rename from sat. Represent the CC_REG input.
2527
2528 * config/rx/predicates.md (rshift_operator): New.
2529 * config/rx/rx.c (rx_expand_insv): Remove.
2530 * config/rx/rx-protos.h: Update.
2531 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
2532 operand to the canonical position.
2533 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
2534 (*bitclr, *bitclr_in_memory): Similarly.
2535 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
2536 (insv): Retain the zero_extract in the expansion.
2537
2538 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
2539 (bswaphi2, bitinvert, revw): Likewise.
2540
2541 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
2542 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
2543 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
2544 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
2545 (bitset, bitset_in_memory): Likewise.
2546 (bitinvert, bitinvert_in_memory): Likewise.
2547 (bitclr, bitclr_in_memory): Likewise.
2548 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
2549 (rx_strend, rx_cmpstrn): Likewise.
2550 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
2551 (bitop peep2 patterns): Remove.
2552
2553 * config/rx/rx.c (rx_match_ccmode): New.
2554 * config/rx/rx-protos.h: Update.
2555 * config/rx/rx.md (abssi2): Clobber, don't set flags.
2556 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
2557 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
2558 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
2559 (fix_truncsfsi2, floatsisf2): Likewise.
2560 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
2561 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
2562 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
2563 (*subsi3_flags, *xorsi3_flags): New.
2564
2565 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
2566
2567 * config/rx/rx.c (rx_print_operand): Remove workaround for
2568 unsplit comparison operations.
2569
2570 * config/rx/rx.md (movsicc): Split after reload.
2571 (*movsicc): Merge *movsieq and *movsine via match_operator.
2572 (*stcc): New pattern.
2573
2574 * config/rx/rx.c (rx_float_compare_mode): Remove.
2575 * config/rx/rx.h (rx_float_compare_mode): Remove.
2576 * config/rx/rx.md (cstoresi4): Split after reload.
2577 (*sccc): New pattern.
2578
2579 * config/rx/predicates.md (label_ref_operand): New.
2580 (rx_z_comparison_operator): New.
2581 (rx_zs_comparison_operator): New.
2582 (rx_fp_comparison_operator): New.
2583 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
2584 Validate that the flags are set properly for the comparison.
2585 (rx_gen_cond_branch_template): Remove.
2586 (rx_cc_modes_compatible): Remove.
2587 (mode_from_flags): New.
2588 (flags_from_code): Rename from flags_needed_for_conditional.
2589 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
2590 (rx_select_cc_mode): Likewise.
2591 (rx_split_fp_compare): New.
2592 (rx_split_cbranch): New.
2593 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
2594 (*cbranchsi4): Use match_operator and rx_split_cbranch.
2595 (*cbranchsf4): Similarly.
2596 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
2597 match_operator and rx_split_cbranch.
2598 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
2599 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
2600 (*cmpsi): Rename from cmpsi.
2601 (*tstsi): Rename from tstsi.
2602 (*cmpsf): Rename from cmpsf; use CC_Fmode.
2603 (*conditional_branch): Rename from conditional_branch.
2604 (*reveresed_conditional_branch): Remove.
2605 (b<code>): Remove expander.
2606 * config/rx/rx-protos.h: Update.
2607
2608 * config/rx/rx.c (rx_compare_redundant): Remove.
2609 * config/rx/rx.md (cmpsi): Don't use it.
2610 * config/rx/rx-protos.h: Update.
2611
2612 * config/rx/rx-modes.def (CC_F): New mode.
2613 * config/rx/rx.c (rx_select_cc_mode): New.
2614 * config/rx/rx.h (SELECT_CC_MODE): Use it.
2615 * config/rx/rx-protos.h: Update.
2616
2617 2011-01-17 Richard Henderson <rth@redhat.com>
2618
2619 * except.c (dump_eh_tree): Fix stray ; after for statement.
2620
2621 2011-01-17 Richard Guenther <rguenther@suse.de>
2622
2623 PR tree-optimization/47313
2624 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
2625 handling before copying the body. Properly deal with
2626 by-reference result in SSA form.
2627
2628 2011-01-17 Ian Lance Taylor <iant@google.com>
2629
2630 PR target/47219
2631 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
2632 (struct_value_alias_set): Don't define.
2633 (sparc_option_override): Don't set sparc_sr_alias_set and
2634 struct_value_alias_set.
2635 (save_or_restore_regs): Use gen_frame_mem rather than calling
2636 set_mem_alias_set.
2637 (sparc_struct_value_rtx): Likewise.
2638
2639 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
2640
2641 PR target/47318
2642 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to
2643 __m128i.
2644 (_mm_maskstore_pd): Likewise.
2645 (_mm_maskload_ps): Likewise.
2646 (_mm_maskstore_ps): Likewise.
2647 (_mm256_maskload_pd): Change mask to __m256i.
2648 (_mm256_maskstore_pd): Likewise.
2649 (_mm256_maskload_ps): Likewise.
2650 (_mm256_maskstore_ps): Likewise.
2651
2652 * config/i386/i386-builtin-types.def: Updated.
2653 (ix86_expand_special_args_builtin): Likewise.
2654
2655 * config/i386/i386.c (bdesc_special_args): Update
2656 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
2657 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
2658 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
2659 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
2660
2661 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
2662 Use <avxpermvecmode> on mask register.
2663 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
2664
2665 2011-01-17 Olivier Hainque <hainque@adacore.com>
2666 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2667 Eric Botcazou <ebotcazou@adacore.com>
2668
2669 PR target/46655
2670 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
2671 if <= USHRT_MAX in 32-bit mode.
2672
2673 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2674
2675 * doc/install.texi (Configuration, Specific): Wrap long
2676 lines in examples. Allow line wrapping in long options
2677 and URLs where beneficial for PDF output.
2678
2679 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
2680
2681 * config/mips/mips.c (mips_classify_symbol): Don't return
2682 SYMBOL_PC_RELATIVE for nonlocal labels.
2683
2684 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
2685
2686 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
2687
2688 2011-01-15 Jan Hubicka <jh@suse.cz>
2689
2690 PR tree-optimization/47276
2691 * ipa.c (function_and_variable_visibility): Do not try to mark alias
2692 declarations as needed.
2693
2694 2011-01-15 Martin Jambor <mjambor@suse.cz>
2695
2696 * common.opt (fdevirtualize): New flag.
2697 * doc/invoke.texi (Option Summary): Document it.
2698 * opts.c (default_options_table): Add devirtualize flag.
2699 * ipa-prop.c (detect_type_change): Return immediately if
2700 devirtualize flag is not set.
2701 (detect_type_change_ssa): Likewise.
2702 (compute_known_type_jump_func): Likewise.
2703 (ipa_analyze_virtual_call_uses): Likewise.
2704
2705 2011-01-14 Martin Jambor <mjambor@suse.cz>
2706
2707 PR tree-optimization/45934
2708 PR tree-optimization/46302
2709 * ipa-prop.c (type_change_info): New type.
2710 (stmt_may_be_vtbl_ptr_store): New function.
2711 (check_stmt_for_type_change): Likewise.
2712 (detect_type_change): Likewise.
2713 (detect_type_change_ssa): Likewise.
2714 (compute_complex_assign_jump_func): Check for dynamic type change.
2715 (compute_complex_ancestor_jump_func): Likewise.
2716 (compute_known_type_jump_func): Likewise.
2717 (compute_scalar_jump_functions): Likewise.
2718 (ipa_analyze_virtual_call_uses): Likewise.
2719 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
2720
2721 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2722
2723 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
2724 * config/i386/i386.opt (msse5): New Alias.
2725
2726 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2727
2728 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
2729 * config/sparc/linux64.h (CC1_SPEC): Likewise.
2730 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2731 * config/sparc/sparc.h (CC1_SPEC): Likewise.
2732
2733 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2734
2735 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
2736 -mcpu options.
2737 * config/sparc/linux64.h (CC1_SPEC): Likewise.
2738 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
2739 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
2740 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
2741 Likewise.
2742 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
2743
2744 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2745
2746 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
2747
2748 2011-01-14 Mike Stump <mikestump@comcast.net>
2749
2750 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
2751 * config/fr30/fr30.md: Likweise
2752 (movsi_push): Likewise.
2753 (movsi_pop): Likewise.
2754 (enter_func): Likewise.
2755 * config/moxie/moxie.md (movsi_push): Likewise.
2756 (movsi_pop): Likewise.
2757
2758 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2759
2760 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
2761 %{no_archive} %{exact_version}.
2762 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
2763 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
2764 %{no_archive} %{exact_version}.
2765 * config/mips/openbsd.h (LINK_SPEC): Likewise.
2766 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
2767 * config/mips/vxworks.h: Likewise.
2768
2769 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2770
2771 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
2772
2773 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2774
2775 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
2776 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
2777
2778 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2779
2780 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
2781 -nodefaultlib.
2782
2783 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2784
2785 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
2786 for mcpu not cpu.
2787 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
2788 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
2789 not cpu.
2790 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
2791 Don't handle -shlib.
2792
2793 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2794
2795 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
2796 (CC1_SPEC): Don't handle -profile.
2797
2798 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2799
2800 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
2801 * config/mips/mips.h (CC1_SPEC): Likewise.
2802
2803 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2804
2805 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
2806 * config/mips/mips.h (CC1_SPEC): Likewise.
2807
2808 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2809
2810 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
2811 * config/m32r/linux.h (LINK_SPEC): Likewise.
2812 * config/mips/linux.h (LINK_SPEC): Likewise.
2813 * config/mips/linux64.h (LINK_SPEC): Likewise.
2814 * config/sparc/linux.h (LINK_SPEC): Likewise.
2815 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
2816 LINK_SPEC): Likewise.
2817 * config/xtensa/linux.h (LINK_SPEC): Likewise.
2818
2819 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2820
2821 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
2822 %{version:-v}.
2823 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
2824
2825 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2826
2827 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
2828 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
2829
2830 2011-01-14 Joseph Myers <joseph@codesourcery.com>
2831
2832 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
2833
2834 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2835
2836 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
2837 supports -Bstatic/-Bdynamic.
2838 * configure: Regenerate.
2839
2840 2011-01-14 Jan Hubicka <jh@suse.cz>
2841 Jack Howarth <howarth@bromo.med.uc.edu>
2842
2843 PR target/46037
2844 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
2845 when checking debug_info_level. Test write_symbols instead of
2846 debug_hooks->var_location when setting flag_var_tracking_uninit.
2847
2848 2011-01-14 Richard Guenther <rguenther@suse.de>
2849
2850 PR tree-optimization/47179
2851 * target.def (ref_may_alias_errno): New target hook.
2852 * targhooks.h (default_ref_may_alias_errno): Declare.
2853 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
2854 (default_ref_may_alias_errno): New function.
2855 * target.h (struct ao_ref_s): Declare.
2856 * tree-ssa-alias.c: Include target.h.
2857 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
2858 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
2859 (targhooks.o): Likewise.
2860 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
2861 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
2862
2863 2011-01-14 Richard Guenther <rguenther@suse.de>
2864
2865 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
2866
2867 2011-01-14 Richard Guenther <rguenther@suse.de>
2868
2869 PR tree-optimization/47280
2870 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
2871 return CFG changes.
2872 (tree_ssa_forward_propagate_single_use_vars): Deal with
2873 CFG changes from associate_plusminus.
2874
2875 2011-01-14 Richard Guenther <rguenther@suse.de>
2876
2877 PR middle-end/47281
2878 Revert
2879 2011-01-11 Richard Guenther <rguenther@suse.de>
2880
2881 PR tree-optimization/46076
2882 * tree-ssa.c (useless_type_conversion_p): Conversions from
2883 unprototyped to empty argument list function types are useless.
2884
2885 2011-01-14 Richard Guenther <rguenther@suse.de>
2886
2887 PR tree-optimization/47286
2888 * tree-ssa-structalias.c (new_var_info): Register variables are global.
2889
2890 2011-01-14 Martin Jambor <mjambor@suse.cz>
2891
2892 PR middle-end/46823
2893 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
2894
2895 2011-01-13 Anatoly Sokolov <aesok@post.ru>
2896
2897 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
2898 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2899 * config/xtensa/xtensa.c (xtensa_libcall_value,
2900 xtensa_function_value_regno_p): New functions.
2901 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2902
2903 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
2904
2905 PR c++/47213
2906 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
2907 PE specific hook.
2908 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
2909 New function prototype.
2910 * config/i386/winnt.c (i386_pe_assemble_visibility):
2911 Warn only if attribute was specified by user.
2912
2913 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
2914
2915 PR target/47251
2916 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
2917 floating point.
2918 (floatunsdidf2_fcfidu): Ditto.
2919
2920 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2921
2922 * config/s390/s390.c (print_operand_address): Replace 'error' with
2923 'output_operand_lossage'.
2924 (print_operand): Likewise.
2925
2926 2011-01-13 Jeff Law <law@redhat.com>
2927
2928 PR rtl-optimization/39077
2929 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
2930 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
2931 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
2932 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
2933 * gcse.c (prune_insertions_deletions): New function.
2934 (compute_pre_data): Use it.
2935
2936 2011-01-13 Dodji Seketeli <dodji@redhat.com>
2937
2938 PR debug/PR46973
2939 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
2940 static function.
2941 (prune_unused_types_mark): Use it.
2942
2943 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
2944
2945 PR rtl-optimization/45352
2946 * sel-sched.c: Update copyright years.
2947 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
2948 in the advancing loop when we have issued issue_rate insns.
2949
2950 2011-01-12 Richard Henderson <rth@redhat.com>
2951
2952 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
2953 (TARGET_MD_ASM_CLOBBERS): New.
2954
2955 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
2956 (TARGET_DELEGITIMIZE_ADDRESS): New.
2957
2958 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
2959 (clzsi2, *bsch): New patterns.
2960
2961 * config/mn10300/mn10300.md (INT): New mode iterator.
2962 (*mov<INT>_clr): New pattern, and peep2 to generate it.
2963
2964 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
2965 flag_split_wide_types.
2966
2967 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
2968 (mn10300_trampoline_init): Rewrite without a template, an immediate
2969 load and a direct branch.
2970 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
2971
2972 2011-01-12 Anatoly Sokolov <aesok@post.ru>
2973
2974 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2975 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
2976 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
2977 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2978
2979 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
2980
2981 PR debug/47209
2982 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
2983 of type.
2984
2985 2011-01-12 Jan Hubicka <jh@suse.cz>
2986
2987 PR driver/47244
2988 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
2989 (PLUGIN_COND_CLOSE): New macro.
2990 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
2991
2992 2011-01-12 Richard Guenther <rguenther@suse.de>
2993
2994 PR lto/47259
2995 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
2996 register variables in a MEM_REF.
2997
2998 2011-01-12 Joseph Myers <joseph@codesourcery.com>
2999
3000 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
3001 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
3002 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
3003 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3004 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3005 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
3006 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
3007 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
3008 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
3009 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
3010 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
3011 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
3012 * config/gnu-user.h: New. Copied from linux.h.
3013 (LINUX_TARGET_STARTFILE_SPEC): Rename to
3014 GNU_USER_TARGET_STARTFILE_SPEC.
3015 (LINUX_TARGET_ENDFILE_SPEC): Rename to
3016 GNU_USER_TARGET_ENDFILE_SPEC.
3017 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
3018 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
3019 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
3020 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
3021 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
3022 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
3023 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
3024 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
3025 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
3026 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
3027 * config/arm/linux-eabi.h (CC1_SPEC): Use
3028 GNU_USER_TARGET_CC1_SPEC.
3029 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
3030 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
3031 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
3032 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
3033 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
3034 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
3035 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
3036 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
3037
3038 2011-01-12 Richard Guenther <rguenther@suse.de>
3039
3040 PR other/46946
3041 * doc/invoke.texi (ffast-math): Document it is turned on
3042 with -Ofast.
3043
3044 2011-01-12 Jan Hubicka <jh@suse.cz>
3045
3046 PR tree-optimization/47233
3047 * opts.c (common_handle_option): Disable ipa-reference with profile
3048 feedback.
3049
3050 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
3051
3052 * c-parser.c (c_parser_objc_at_property_declaration): Improved
3053 error message.
3054
3055 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
3056
3057 * c-parser.c (c_lex_one_token): Updated and reindented some
3058 comments. No changes in code.
3059
3060 2011-01-11 Ian Lance Taylor <iant@google.com>
3061
3062 * godump.c (go_output_var): Don't output the variable if there is
3063 already a type with the same name.
3064
3065 2011-01-11 Ian Lance Taylor <iant@google.com>
3066
3067 * godump.c (go_format_type): Don't generate float80.
3068
3069 2011-01-11 Richard Henderson <rth@redhat.com>
3070
3071 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
3072 declaration. Rewrite for both speed and size.
3073 (mn10300_address_cost_1): Remove.
3074 (mn10300_register_move_cost): New.
3075 (mn10300_memory_move_cost): New.
3076 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
3077 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
3078 extensions, shifts, BSWAP, CLZ.
3079 (mn10300_wide_const_load_uses_clr): Remove.
3080 (TARGET_REGISTER_MOVE_COST): New.
3081 (TARGET_MEMORY_MOVE_COST): New.
3082 * config/mn10300/mn10300-protos.h: Update.
3083 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
3084
3085 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
3086 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
3087 * config/mn10300/mn10300-protos.h: Update.
3088 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
3089 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
3090 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
3091 (*test_int_bitfield, *test_byte_bitfield): Remove.
3092 (*bit_test, *subreg_bit_test): Remove.
3093 * config/mn10300/predicates.md (const_8bit_operand): Remove.
3094
3095 * config/mn10300/constraints.md ("c"): Rename from "A".
3096 ("A", "D"): New constraint letters.
3097 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
3098 (fmssf4, fnmasf4, fnmssf4): Likewise.
3099
3100 * config/mn10300/mn10300.md (isa): New attribute.
3101 (enabled): New attribute.
3102
3103 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
3104 (abssf2, negsf2): Define only for hardware fp.
3105 (sqrtsf2): Reformat.
3106 (addsf3, subsf3, mulsf3): Merge expander and insn.
3107
3108 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
3109 (DEBUGGER_AUTO_OFFSET): Remove.
3110 (DEBUGGER_ARG_OFFSET): Remove.
3111
3112 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
3113 Emit register stores with the same offsets as the hardware.
3114 (mn10300_store_multiple_operation): Don't check that the register
3115 save offsets are monotonic.
3116 * config/mn10300/mn10300-protos.h: Update.
3117
3118 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
3119
3120 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
3121 in terms of the value on the stack, not the MDR register.
3122
3123 2011-01-11 Jan Hubicka <jh@suse.cz>
3124
3125 PR lto/45721
3126 PR lto/45375
3127 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
3128 (symbol_alias_set_destroy, symbol_alias_set_contains,
3129 propagate_aliases_backward): Declare.
3130 * lto-streamer-out.c (struct sets): New sturcture.
3131 (trivally_defined_alias): New function.
3132 (output_alias_pair_p): Rewrite.
3133 (output_unreferenced_globals): Fix output of alias pairs.
3134 (produce_symtab): Likewise.
3135 * ipa.c (function_and_variable_visibility): Set weak alias destination
3136 as needed in lto.
3137 * varasm.c (symbol_alias_set_t): Remove.
3138 (symbol_alias_set_destroy): Export.
3139 (propagate_aliases_forward, propagate_aliases_backward): New functions
3140 based on ...
3141 (compute_visible_aliases): ... this one; remove.
3142 (trivially_visible_alias): New
3143 (trivially_defined_alias): New.
3144 (remove_unreachable_alias_pairs): Rewrite.
3145 (finish_aliases_1): Reorganize code checking if alias is defined.
3146 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
3147 in LTO mode.
3148
3149 2011-01-11 Richard Guenther <rguenther@suse.de>
3150
3151 PR tree-optimization/46076
3152 * tree-ssa.c (useless_type_conversion_p): Conversions from
3153 unprototyped to empty argument list function types are useless.
3154
3155 2011-01-11 Richard Guenther <rguenther@suse.de>
3156
3157 PR middle-end/45235
3158 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
3159 volatile MEMs as MEM_READONLY_P.
3160
3161 2011-01-11 Richard Guenther <rguenther@suse.de>
3162
3163 PR tree-optimization/47239
3164 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
3165
3166 2011-01-11 Jeff Law <law@redhat.com>
3167
3168 PR tree-optimization/47086
3169 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
3170 IVs from statements that might throw.
3171
3172 2011-01-10 Jan Hubicka <jh@suse.cz>
3173
3174 PR lto/45375
3175 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
3176
3177 2011-01-10 Jan Hubicka <jh@suse.cz>
3178
3179 PR lto/45375
3180 * profile.c (read_profile_edge_counts): Ignore profile inconistency
3181 when correcting profile.
3182
3183 2011-01-10 Jan Hubicka <jh@suse.cz>
3184
3185 PR lto/46083
3186 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
3187 DECL_FINI_PRIORITY.
3188 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
3189 Restore DECL_FINI_PRIORITY.
3190
3191 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3192
3193 * doc/gimple.texi: Fix quoting of multi-word return values in
3194 @deftypefn statements. Ensure presence of return value. Wrap
3195 overlong @deftypefn lines.
3196 (is_gimple_operand, is_gimple_min_invariant_address): Remove
3197 descriptions of removed functions.
3198 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
3199 of multi-word return value in @deftypefn statement.
3200
3201 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3202
3203 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
3204 (Conditional Expressions, Logical Operators)
3205 (Statement and operand traversals): Do not indent smallexample
3206 code. Fix duplicate function argument in example.
3207
3208 2011-01-10 Jeff Law <law@redhat.com>
3209
3210 PR tree-optimization/47141
3211 * ipa-split.c (split_function): Handle case where we are
3212 returning a value and the return block has a virtual operand phi.
3213
3214 2011-01-10 Jan Hubicka <jh@suse.cz>
3215
3216 PR tree-optimization/47234
3217 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
3218 (pass_feedback_split_functions): Declare.
3219 * passes.c (init_optimization_passes): Add ipa-split as subpass of
3220 tree-profile.
3221 * ipa-split.c (gate_split_functions): Update comments; disable
3222 split-functions for profile_arc_flag and branch_probabilities.
3223 (gate_feedback_split_functions): New function.
3224 (execute_feedback_split_functions): New function.
3225 (pass_feedback_split_functions): New global var.
3226
3227 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
3228
3229 PR lto/46760
3230 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
3231 calling gimple_call_set_cannot_inline.
3232
3233 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
3234
3235 * config/darwin-sections.def: Remove unused section.
3236
3237 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
3238
3239 PR c++/47218
3240 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
3241
3242 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
3243
3244 PR objc/47232
3245 * c-parser.c (c_parser_declaration_or_fndef): Improved
3246 error message.
3247
3248 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
3249
3250 * config/i386/winnt.c (i386_pe_start_function): Make sure
3251 to switch back to function's section.
3252
3253 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
3254
3255 PR gcc/46902
3256 PR testsuite/46912
3257 * plugin.c: Move include of dlfcn.h from here...
3258 * system.h: ... to here.
3259
3260 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3261
3262 * doc/cpp.texi (C++ Named Operators): Fix markup for header
3263 file name.
3264 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
3265 two extra empty pages in PDF output.
3266
3267 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
3268
3269 PR objc/47078
3270 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
3271 for error recovery purposes behave as if it was not specified so
3272 that the default type is usd.
3273
3274 2011-01-07 Jan Hubicka <jh@suse.cz>
3275
3276 PR tree-optmization/46469
3277 * ipa.c (function_and_variable_visibility): Clear needed flags on
3278 nodes with external decls; handle weakrefs merging correctly.
3279
3280 2011-01-07 Joseph Myers <joseph@codesourcery.com>
3281
3282 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
3283 not false.
3284
3285 2011-01-07 Jan Hubicka <jh@suse.cz>
3286
3287 * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
3288 and no longer claim that gold is required for linker plugin.
3289 * configure: Regenerate.
3290 * gcc.c (PLUGIN_COND): New macro.
3291 (LINK_COMMAND_SPEC): Use it.
3292 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
3293 * config.in (HAVE_LTO_PLUGIN): New.
3294 * configure.ac (--with-lto-plugin): New parameter; autodetect
3295 HAVE_LTO_PLUGIN.
3296
3297 2011-01-07 Jan Hubicka <jh@suse.cz>
3298
3299 PR tree-optimization/46367
3300 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
3301 when we can update original.
3302 (cgraph_mark_inline_edge): Sanity check.
3303 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
3304
3305 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3306
3307 * config/spu/spu.h (ASM_COMMENT_START): Define.
3308
3309 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
3310
3311 PR driver/42445
3312 * gcc.c (%>S): New.
3313 (SWITCH_KEEP_FOR_GCC): Likewise.
3314 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
3315 (do_spec_1): Handle "%>".
3316
3317 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
3318
3319 2011-01-07 Jakub Jelinek <jakub@redhat.com>
3320
3321 PR target/47201
3322 * config/i386/i386.c (ix86_delegitimize_address): If
3323 simplify_gen_subreg fails, return orig_x.
3324
3325 PR bootstrap/47187
3326 * value-prof.c (gimple_stringop_fixed_value): Handle
3327 lhs of the call properly.
3328
3329 2011-01-07 Jan Hubicka <jh@suse.cz>
3330
3331 PR lto/45375
3332 * lto-opt.c (lto_reissue_options): Set flag_shlib.
3333
3334 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
3335
3336 * target.def (function_switched_text_sections): New hook.
3337 * doc/tm.texi: Regenerated.
3338 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
3339 * final.c (default_function_switched_text_sections): New.
3340 (final_scan_insn): Call function_switched_text_sections when a
3341 mid-function section change occurs.
3342 * output.h (default_function_switched_text_sections): Declare.
3343 * config/darwin-protos.h (darwin_function_switched_text_sections):
3344 Likewise.
3345 * config/darwin.c (darwin_function_switched_text_sections): New.
3346 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
3347
3348 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
3349
3350 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
3351 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
3352 the secondary code fragment when outputting for DWARF == 2.
3353
3354 2011-01-07 Anatoly Sokolov <aesok@post.ru>
3355
3356 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
3357 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
3358 Remove.
3359 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
3360 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
3361
3362 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
3363
3364 PR debug/46704
3365 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
3366 when it is not empty.
3367
3368 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
3369
3370 Bobcat Enablement
3371 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
3372 (case ${target}): Add btver1.
3373 * config/i386/driver-i386.c (host_detect_local_cpu): Let
3374 -march=native recognize btver1 processors.
3375 * config/i386/i386-c.c (ix86_target_macros_internal): Add
3376 btver1 def_and_undef
3377 * config/i386/i386.c (struct processor_costs btver1_cost): New
3378 btver1 cost table.
3379 (m_BTVER1): New definition.
3380 (m_AMD_MULTIPLE): Includes m_BTVER1.
3381 (initial_ix86_tune_features): Add btver1 tune.
3382 (processor_target_table): Add btver1 entry.
3383 (static const char *const cpu_names): Add btver1 entry.
3384 (software_prefetching_beneficial_p): Add btver1.
3385 (ix86_option_override_internal): Add btver1 instruction sets.
3386 (ix86_issue_rate): Add btver1.
3387 (ix86_adjust_cost): Add btver1.
3388 * config/i386/i386.h (TARGET_BTVER1): New definition.
3389 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
3390 (enum processor_type): Add PROCESSOR_BTVER1.
3391 * config/i386/i386.md (define_attr "cpu"): Add btver1.
3392
3393 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3394
3395 PR target/43309
3396 * config/i386/i386.c (legitimize_tls_address)
3397 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
3398 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
3399 (tls_initial_exec_64_sun): New pattern.
3400
3401 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
3402
3403 * doc/invoke.texi (Overall Options): Improve wording and markup
3404 of the description of -wrapper.
3405
3406 2011-01-06 Joseph Myers <joseph@codesourcery.com>
3407
3408 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
3409 rdynamic, threads): New Driver options.
3410
3411 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3412
3413 PR target/38118
3414 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
3415 if coming from .tdata.
3416 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
3417
3418 2011-01-06 Jan Hubicka <jh@suse.cz>
3419
3420 PR lto/47188
3421 * collect2.c (main): Do not enable LTOmode when plugin is active.
3422
3423 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3424
3425 PR other/45915
3426 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
3427 --version output if supported.
3428 * configure: Regenerate.
3429
3430 2011-01-06 Joseph Myers <joseph@codesourcery.com>
3431
3432 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
3433 Driver options.
3434
3435 2011-01-06 Jakub Jelinek <jakub@redhat.com>
3436
3437 PR c/47150
3438 * c-convert.c (convert): When converting a complex expression
3439 other than COMPLEX_EXPR to a different complex type, ensure
3440 c_save_expr is called instead of save_expr, unless in_late_binary_op.
3441 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
3442 when converting COMPLEX_TYPE.
3443
3444 2011-01-06 Ira Rosen <irar@il.ibm.com>
3445
3446 PR tree-optimization/47139
3447 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
3448 only the last reduction value is used outside the loop. Update
3449 documentation.
3450
3451 2011-01-05 Joseph Myers <joseph@codesourcery.com>
3452
3453 * config/rtems.opt: New.
3454 * config.gcc (*-*-rtems*): Use rtems.opt.
3455
3456 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
3457
3458 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
3459 processors do not support 3DNow instructions.
3460
3461 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3462
3463 * config/spu/spu.c (spu_option_override): Set parameter
3464 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
3465
3466 2011-01-05 Jan Hubicka <jh@suse.cz>
3467
3468 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
3469 at the command line.
3470
3471 2011-01-05 Martin Jambor <mjambor@suse.cz>
3472
3473 PR lto/47162
3474 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
3475 deltas on streamed outgoing edges.
3476 (output_node_opt_summary): Output info for outgoing edges only when
3477 the node is in new parameter set.
3478 (output_cgraph_opt_summary): New parameter set, passed to the two
3479 aforementioned functions. Update its forward declaration and its
3480 callee too.
3481
3482 2011-01-05 Tom Tromey <tromey@redhat.com>
3483
3484 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
3485 operator to c_finish_omp_atomic.
3486 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
3487 (build_unary_op): Update.
3488 (build_modify_expr): Update.
3489 (build_asm_expr): Update.
3490
3491 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3492
3493 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
3494 newly inserted insns.
3495 (pad_bb): Likewise.
3496 (spu_emit_branch_hint): Likewise.
3497 (insert_hbrp_for_ilb_runout): Likewise.
3498 (spu_machine_dependent_reorg): Call df_finish_pass after
3499 schedule_insns returns.
3500
3501 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3502
3503 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
3504
3505 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
3506
3507 PR tree-optimization/47005
3508 * tree-sra.c (struct access): Add 'non_addressable' bit.
3509 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
3510 (decide_one_param_reduction): Return 0 if the parameter is passed by
3511 reference and one of the accesses in the group is non_addressable.
3512
3513 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3514
3515 PR tree-optimization/47056
3516 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
3517 (mark_load): Likewise. Handle FUNCTION_DECL specially.
3518 (mark_store): Likewise. Pass STMT to ipa_record_reference.
3519
3520 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
3521
3522 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
3523 initializer. Skip view conversions from aggregate types.
3524
3525 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
3526
3527 PR bootstrap/47055
3528 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
3529
3530 2011-01-04 Philipp Thomas <pth@suse.de>
3531
3532 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
3533 obvious typo.
3534
3535 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3536
3537 * function.c (thread_prologue_and_epilogue_insns): Do not crash
3538 on empty epilogue sequences.
3539
3540 2011-01-04 Joseph Myers <joseph@codesourcery.com>
3541
3542 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
3543 non-static): New Driver options.
3544
3545 2011-01-04 Jie Zhang <jie@codesourcery.com>
3546
3547 PR driver/47137
3548 * gcc.c (default_compilers[]): Set combinable field to 0
3549 for all assembly languages.
3550
3551 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
3552
3553 * config/mips/loongson3a.md: New file.
3554 * config/mips/mips.md: Include loongson3a.md.
3555 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
3556 TUNE_LOONGSON_3A.
3557
3558 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
3559
3560 PR middle-end/47017
3561 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
3562 instead of convert_memory_address_addr_space on the base expression.
3563
3564 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3565
3566 * config/spu/spu.c (spu_option_override): Update error text
3567 for bad -march= / -mtune= values.
3568
3569 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3570
3571 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
3572 if branch-hint optimization will be performed.
3573
3574 2011-01-03 Jakub Jelinek <jakub@redhat.com>
3575
3576 PR tree-optimization/47148
3577 * ipa-split.c (split_function): Convert arguments to
3578 DECL_ARG_TYPE if possible.
3579
3580 PR tree-optimization/47155
3581 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
3582 when computing uns.
3583
3584 PR rtl-optimization/47157
3585 * combine.c (try_combine): If undobuf.other_insn becomes
3586 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
3587 and set *new_direct_jump_p too.
3588
3589 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
3590
3591 PR tree-optimization/47021
3592 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
3593
3594 2011-01-03 Jakub Jelinek <jakub@redhat.com>
3595
3596 * gcc.c (process_command): Update copyright notice dates.
3597 * gcov.c (print_version): Likewise.
3598 * gcov-dump.c (print_version): Likewise.
3599 * mips-tfile.c (main): Likewise.
3600 * mips-tdump.c (main): Likewise.
3601
3602 2011-01-03 Martin Jambor <mjambor@suse.cz>
3603
3604 PR tree-optimization/46801
3605 * tree-sra.c (type_internals_preclude_sra_p): Check whether
3606 aggregate fields start at byte boundary instead of the bit-field flag.
3607
3608 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
3609
3610 PR driver/47137
3611 * gcc.c (main): Revert revision 168407.
3612
3613 2011-01-03 Martin Jambor <mjambor@suse.cz>
3614
3615 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
3616
3617 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3618
3619 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
3620 vector optab to expand vector/scalar shift, update gimple to vector.
3621
3622 2011-01-03 Martin Jambor <mjambor@suse.cz>
3623
3624 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
3625 a thunk.
3626
3627 2011-01-03 Martin Jambor <mjambor@suse.cz>
3628
3629 PR tree-optimization/46984
3630 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
3631 HOST_WIDE_INT.
3632 (cgraph_create_indirect_edge): Fixed line length.
3633 (cgraph_indirect_call_info): Declare.
3634 (cgraph_make_edge_direct) Update declaration.
3635 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
3636 (cgraph_create_indirect_edge): Use it.
3637 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
3638 callees.
3639 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
3640 the new thunk_delta representation.
3641 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
3642 HOST_WIDE_INT.
3643 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
3644 (ipa_read_indirect_edge_info): Likewise.
3645 * lto-cgraph.c (output_edge_opt_summary): New function.
3646 (output_node_opt_summary): Call it on all outgoing edges.
3647 (input_edge_opt_summary): New function.
3648 (input_node_opt_summary): Call it on all outgoing edges.
3649
3650 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
3651
3652 PR driver/47137
3653 * gcc.c (main): Don't check have_o when settting combine_inputs.
3654
3655 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
3656
3657 * regrename.c: Add general comment describing the pass.
3658 (struct du_head): Remove 'length' field.
3659 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
3660 (regrename_optimize): Do not sort chains. Rework comments, add others.
3661 Force renaming to the preferred class (if any) in the first pass and do
3662 not consider registers that belong to it in the second pass.
3663 (create_new_chain): Do not set 'length' field.
3664 (scan_rtx_reg): Likewise.
3665
3666 2011-01-02 Jakub Jelinek <jakub@redhat.com>
3667
3668 PR tree-optimization/47140
3669 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
3670 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
3671 to bit_value_binop.
3672
3673 PR rtl-optimization/47028
3674 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
3675 parm_birth_insn instead of at the beginning of first bb.
3676
3677 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
3678
3679 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
3680 Remove the word "see" before "@pxref".
3681 * doc/rtl.texi: Remove the word "see" before "@pxref".
3682
3683 2011-01-01 Jan Hubicka <jh@suse.cz>
3684
3685 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
3686 memory.
3687
3688 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
3689
3690 PR target/38662
3691 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
3692
3693 \f
3694 Copyright (C) 2011 Free Software Foundation, Inc.
3695
3696 Copying and distribution of this file, with or without modification,
3697 are permitted in any medium without royalty provided the copyright
3698 notice and this notice are preserved.