OSDN Git Service

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