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