OSDN Git Service

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