OSDN Git Service

* config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
2
3         * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
4         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
5         * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
6
7 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
8
9         * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
10
11 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
12
13         * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
14         * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use
15         svr4.h.
16
17 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
18
19         * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
20         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
21         * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
22         WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
23         * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
24
25 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
26
27         * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
28         WCHAR_TYPE_SIZE): Define.
29         * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
30
31 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
32
33         * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
34         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
35         * config.gcc (fr30-*-elf): Don't use svr4.h.
36
37 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
38
39         * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
40         * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
41
42 2010-12-09  Richard Guenther  <rguenther@suse.de>
43
44         PR middle-end/46844
45         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
46         addresses.
47
48 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
49
50         * config/i386/netware.h (TARGET_POSIX_IO): Define.
51         * config/i386/nto.h (TARGET_POSIX_IO): Define.
52         * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
53         * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
54         * config/openbsd.h (TARGET_POSIX_IO): Define.
55         * config/rtems.h (TARGET_POSIX_IO): Define.
56         * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
57         * config/sol2.h (TARGET_POSIX_IO): Define.
58         * config/svr4.h (TARGET_POSIX_IO): Don't define.
59         * config/vxworksae.h (TARGET_POSIX_IO): Define.
60
61 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
62
63         * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
64         * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
65         Define.
66         * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
67         undefine.
68         * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
69         undefine.
70         * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
71         Don't undefine.
72         * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
73         Don't undefine.
74         * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
75         Don't undefine.
76         * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
77         * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
78         Don't undefine.
79         * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
80         Don't undefine.
81         * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
82         Don't undefine.
83         * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
84         define.
85         * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
86         undefine.
87
88 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
89
90         * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
91         non-GNU assembler.
92         * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT):
93         Remove.
94         * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
95         * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
96         * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
97         non-GNU assembler.
98         * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
99         * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
100
101 2010-12-09  Martin Jambor  <mjambor@suse.cz>
102
103         * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
104         zero is the first phi parameter.
105
106 2010-12-09  Martin Jambor  <mjambor@suse.cz>
107
108         * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
109         * ipa-prop.c (ipa_modify_call_arguments): Use it.
110         * tree-sra.c (splice_param_accesses): Test that all accesses have the
111         same alias reference type.
112         (turn_representatives_into_adjustments): Set alias_ptr_type of the
113         adjustment.
114
115 2010-12-09  Martin Jambor  <mjambor@suse.cz>
116
117         PR middle-end/46734
118         * tree-sra.c (splice_param_accesses): Check that there are not
119         multiple ADDRESSABLE types.
120
121 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
122
123         * config/arc/arc.h (ASM_SPEC): Remove %{v}.
124         * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
125         * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
126         * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
127         * config/frv/frv.h (ASM_SPEC): Remove %{v}.
128         * config/i386/linux.h (ASM_SPEC): Remove %{v}.
129         * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
130         * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
131         * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
132         * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
133         * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
134         * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
135         * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
136         * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
137         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
138         * config/mips/mips.h (ASM_SPEC): Remove %{v}.
139         * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
140         * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
141         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
142         * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
143         * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
144         * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
145         * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
146         * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
147         * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
148
149 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
150
151         * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
152         * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
153         * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not
154         %{r*:}.
155         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not
156         %{r*:}.
157         * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
158         * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
159
160 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
161
162         * config/alpha/freebsd.h (LINK_SPEC): Don't use
163         %{!dynamic-linker:}.
164         * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
165         * config/arm/freebsd.h (LINK_SPEC): Likewise.
166         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
167         * config/bfin/linux.h (LINK_SPEC): Likewise.
168         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
169         * config/frv/linux.h (LINK_SPEC): Likewise.
170         * config/i386/freebsd.h (LINK_SPEC): Likewise.
171         * config/i386/freebsd64.h (LINK_SPEC): Likewise.
172         * config/i386/linux.h (LINK_SPEC): Likewise.
173         * config/i386/linux64.h (LINK_SPEC): Likewise.
174         * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
175         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
176         * config/ia64/linux.h (LINK_SPEC): Likewise.
177         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
178         * config/m32r/linux.h (LINK_SPEC): Likewise.
179         * config/m68k/linux.h (LINK_SPEC): Likewise.
180         * config/microblaze/linux.h (LINK_SPEC): Likewise.
181         * config/mips/linux.h (LINK_SPEC): Likewise.
182         * config/mips/linux64.h (LINK_SPEC): Likewise.
183         * config/mips/openbsd.h (LINK_SPEC): Likewise.
184         * config/mn10300/linux.h (LINK_SPEC): Likewise.
185         * config/netbsd-elf.h (LINK_SPEC): Likewise.
186         * config/pa/pa-linux.h (LINK_SPEC): Likewise.
187         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
188         LINK_OS_LINUX_SPEC64): Likewise.
189         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
190         LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC):
191         Likewise.
192         * config/s390/linux.h (LINK_SPEC): Likewise.
193         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
194         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
195         * config/sparc/linux.h (LINK_SPEC): Likewise.
196         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
197         LINK_SPEC): Likewise.
198         * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
199         * config/vax/linux.h (LINK_SPEC): Likewise.
200         * config/xtensa/linux.h (LINK_SPEC): Likewise.
201
202 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
203
204         * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
205         * config/frv/frv.h (ASM_SPEC): Likewise.
206         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
207         * config/i386/sol2.h (ASM_SPEC): Likewise.
208         * config/m68k/linux.h (ASM_SPEC): Likewise.
209         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
210         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
211         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
212         * config/sol2.h (ASM_SPEC): Likewise.
213         * config/sparc/linux.h (ASM_SPEC): Likewise.
214         * config/sparc/linux64.h (ASM_SPEC): Likewise.
215         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
216         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
217         * config/svr4.h (SVR4_ASM_SPEC): Likewise.
218
219 2010-12-09  Richard Guenther  <rguenther@suse.de>
220
221         * reginfo.c (struct subregs_of_mode_node): Remove.
222         (subregs_of_mode): Likewise.
223         (som_hash): Likewise.
224         (som_eq): Likewise.
225         (invalid_mode_changes): New bitmap.
226         (record_subregs_of_mode): Get subregs_of_mode argument.
227         Fill in invalid_mode_changes bitmap.
228         (find_subregs_of_mode): Get subregs_of_mode argument and pass
229         it through.
230         (init_subregs_of_mode): Adjust.
231         (finish_subregs_of_mode): Likewise.
232         (invalid_mode_change_p): Query invalid_mode_changes bitmap.
233
234 2010-12-09  Richard Guenther  <rguenther@suse.de>
235
236         * ira.c (ira): Do not call finish_subregs_of_mode.
237         * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
238
239 2010-12-09  Richard Guenther  <rguenther@suse.de>
240
241         * rtl.h (invalid_mode_change_p): Adjust prototype.
242         * reginfo.c (invalid_mode_change_p): Remove from argument.
243         * ira-costs.c (print_allocno_costs): Adjust callers.
244         (find_costs_and_classes): Likewise.
245
246 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
247
248         * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
249         locg and stocg even in comment.
250         (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
251
252         PR target/41082
253         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
254         instead of stve*x.
255         (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
256         of operand 0.
257         * config/rs6000/altivec.md (VI_scalar): New mode attr.
258         (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
259         vector mode for operand 0, put operand 1 into UNSPEC.
260
261 2010-12-09  Yao Qi  <yao@codesourcery.com>
262
263         * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
264         PREFERRED_RENAME_CLASS.
265
266 2010-12-08  Ian Lance Taylor  <iant@google.com>
267
268         * doc/sourcebuild.texi (Front End): Remove reference to
269         snapshot-README and snapshot-index.html.
270
271 2010-12-08  Ian Lance Taylor  <iant@google.com>
272
273         * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
274         to update_web_docs_svn.
275         (Front End): Likewise.
276
277 2010-12-08  Iain Sandoe <iains@gcc.gnu.org>
278
279         gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
280         x86_64-*-darwin* to with_cpu:-core2.
281         gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
282         with movd for darwin assembler.
283         gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
284         (*vec_concatv2di_rex64_sse): Ditto.
285
286 2010-12-08  Richard Guenther  <rguenther@suse.de>
287             Sebastian Pop  <sebastian.pop@amd.com>
288
289         PR tree-optimization/45230
290         PR tree-optimization/45231
291         PR tree-optimization/45370
292         * sese.c (rename_uses): Returns a bool.  Call
293         recompute_tree_invariant_for_addr_expr only on the RHS of a
294         GIMPLE_ASSIGN.
295         (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
296         rename_uses returns true.
297         * tree-ssa-copy.c (replace_exp): Add a comment about calling
298         fold_stmt_inplace after replace_exp.
299
300 2010-12-08  Mike Stump  <mikestump@comcast.net>
301
302         PR debug/46749
303         * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
304         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
305         * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
306         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
307         * collect2.c (post_ld_pass): Add.
308         (process_args): Add.
309         (maybe_run_lto_and_relink): Call post_ld_pass after ld.
310         (main): Likewise.  Call process_args.
311
312 2010-12-08  Jakub Jelinek  <jakub@redhat.com>
313
314         PR middle-end/46844
315         * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg
316         parameter.
317
318 2010-12-08  Richard Earnshaw  <rearnsha@arm.com>
319
320         PR target/46631
321         * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
322         into a 16-bit instruction.
323
324 2010-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
325
326         PR middle-end/42694
327         * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
328         where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
329         instruction, but do optimize if y is 0.5 or 1./3. since that
330         changes an expensive call into a cheaper one.
331
332 2010-12-08  Richard Guenther  <rguenther@suse.de>
333
334         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
335         instead of a division to divide by BITS_PER_UNIT.
336
337 2010-12-08  Richard Guenther  <rguenther@suse.de>
338
339         * gimplify.c (gimple_tree_eq): Assert hashes are equal only
340         when checking is enabled.
341
342 2010-12-07  Andrey Belevantsev  <abel@ispras.ru>
343
344         PR target/43603
345         * haifa-sched.c (sched_create_recovery_edges): Update
346         dominator info.
347         * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
348         after deleting an empty block.
349         (tidy_control_flow): Also verify dominators.
350         (sel_remove_bb): Update dominator info after removing a block.
351         (sel_redirect_edge_and_branch_force): Assert that no unreachable
352         blocks will be created. Update dominator info.
353         (sel_redirect_edge_and_branch): Update dominator info when
354         basic blocks do not become unreachable.
355         (sel_remove_loop_preheader): Update dominator info. 
356
357 2010-12-07  Richard Guenther  <rguenther@suse.de>
358
359         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
360         Reset alignment information.
361         (bump_vector_ptr): Likewise.
362
363 2010-12-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
364
365         PR middle-end/46671
366         PR target/46685
367         * config/pa/pa.c (pa_function_section): New function.
368         (TARGET_ASM_FUNCTION_SECTION): Define.
369
370 2010-12-07  Ian Lance Taylor  <iant@google.com>
371             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
372
373         PR bootstrap/46810
374         * configure.ac: Disable AC_MSG_ERROR while looking for the C++
375         preprocessor.
376         * configure: Rebuild.
377
378 2010-12-07  Paul Koning  <ni1d@arrl.net>
379
380         * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
381         values with sign rather than as unsigned.
382
383 2010-12-07  Paul Koning  <ni1d@arrl.net>
384
385         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
386         (pdp11_function_section): New function.
387
388 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
389
390         * config/mcore/mcore.c Don't include assert.h.
391         (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
392         * config/spu/spu.c: Don't include assert.h.
393         (spu_sms_res_mii): Use gcc_assert.
394
395 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
396
397         PR tree-optimization/42327
398         * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
399         instead of using integer_minus_one_node.
400
401 2010-12-07  Nathan Froyd  <froydnj@codesourcery.com>
402
403         PR c++/45330
404         * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
405         * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
406
407 2010-12-07  Richard Guenther  <rguenther@suse.de>
408
409         PR tree-optimization/46832
410         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
411         that the call has a lhs.
412
413 2010-12-07  Yao Qi  <yao@codesourcery.com>
414
415         * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
416         * regrename.c (struct du_head): Add new element length.
417         (sort_du_head, get_element, merge, merge_sort_comparison):
418         New functions of merge sort implementation to du_head list.
419         (regrename_optimize): Sort du_head linked list by length.
420         Iterate registers in a preferred-register-first order.
421         Move some code to ...
422         (check_new_reg_p): here.  New function.
423         (create_new_chain):  Initialize length.
424         (scan_rtx_reg): Increase length for non-debug insns.
425         * target.def: New hook preferred_rename_class.
426         * targhook.c (default_preferred_rename_class): New.
427         * targhook.h: Declare it.
428         * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
429         * doc/tm.texi: Regenerate.
430
431 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
432
433         PR debug/46799
434         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
435         instead of BUILTINS_LOCATION.
436         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
437         BUILTINS_LOCATION.
438         (create_parallel_loop): Add LOC argument, use it for OMP clauses
439         and GIMPLE_*OMP* statements.
440         (gen_parallel_loop): Determine locus for the parallel loop, pass it
441         to create_loop_fn and create_parallel_loop.
442         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
443         set_curr_insn_source_location (UNKNOWN_LOCATION).
444
445 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
446             Richard Guenther  <rguenther@suse.de>
447
448         PR target/46737
449         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
450         (bfin_reorder_loops): Change type of index to intptr_t.
451
452 2010-12-07  Richard Guenther  <rguenther@suse.de>
453
454         PR tree-optimization/46726
455         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
456
457 2010-12-07  Richard Guenther  <rguenther@suse.de>
458
459         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
460         virtual operands.
461
462 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
463
464         * c-parser.c (c_parser_typeof_specifier): Removed special
465         treatment of objc_volatilized attribute for Objective-C.
466
467 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
468
469         * ira.c (update_equiv_regs): Prohibit move insns if
470         pressure-sensitive scheduling was done.
471
472 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
473
474         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
475         of c_process_expr_stmt() for the iterating and collection
476         expressions of an Objective-C fast enumeration loop.
477
478 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
479
480         PR debug/45997
481         * dwarf2out.c (modified_type_die): If both is_const_type and
482         is_volatile_type is set, start with DW_TAG_const_type or
483         DW_TAG_volatile_type depending on where we get qualified type
484         in the recursive call.
485
486         PR target/43897
487         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
488         as a store into that register.
489
490         PR tree-optimization/46528
491         PR debug/46338
492         * profile.c (branch_prob): Make sure last is never set to a debug
493         stmt.
494
495         PR debug/46771
496         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
497         on DEBUG_INSNs.
498
499         PR rtl-optimization/46777
500         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
501         also barrier after tablejump.
502
503 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
504             Richard Henderson  <rth@redhat.com>
505
506         PR target/46740
507         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
508
509 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
510
511         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
512         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
513
514 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
515
516         PR target/46735
517         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
518         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
519         (int12_operand, int_2word_operand, uint16_operand): Likewise.
520         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
521         (uint5_operand, uint4_operand): Likewise.
522         * config/frv/frv.h (IN_RANGE_P): Delete.
523         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
524         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
525         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
526         (CONST_OK_FOR_P): Likewise.
527         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
528         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
529         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
530         (*movsicc_internal2_float, casesi): Likewise.
531         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
532         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
533         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
534         (frv_split_cond_move, frv_rtx_costs): Likewise.
535
536         PR target/46739
537         * config/mmix/mmix.c (mmix_intval): Split shift count.
538
539 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
540
541         * config/i386/i386.c (m_COREI7): New.
542         (initial_ix86_tune_features): Turn on
543         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
544         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
545
546 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
547
548         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
549
550         * config/i386/driver-i386.c (host_detect_local_cpu): Support
551         Sandy Bridge.
552
553         * config/i386/i386.c (override_options): Handle "corei7-avx".
554
555         * doc/invoke.texi: Document corei7-avx.
556
557 2010-12-06  Richard Guenther  <rguenther@suse.de>
558
559         PR tree-optimization/46806
560         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
561         coalesce different types.
562
563 2010-12-06  Richard Guenther  <rguenther@suse.de>
564
565         PR tree-optimization/46785
566         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
567         call statements as operand definition.
568
569 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
570
571         * doc/tm.texi.in: Fix typo.
572         * doc/tm.texi: Regenerate.
573
574 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
575
576         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
577         last change.
578
579 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
580
581         * c-family/c-common.h: Removed the declarations of all the objc_
582         callbacks, and moved them into c-objc.h.  Removed
583         objc_ivar_visibility_kind and moved it into c-objc.h.
584         * c-family/c-objc.h: New file.
585         * c-family/c-common.c: Include c-objc.h.
586         * c-family/c-format.c: Same change.
587         * c-family/stub-objc.c: Same change.
588         * c-decl.c: Include c-family/c-objc.h.
589         * c-parser.c: Same change.
590         * c-typeck.c: Same change.
591         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
592         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
593         (c-parser.o): same change.
594         (c-typeck.o): Same change.
595         (c-family/c-format.o): Same change.
596         (c-family/stub-objc.o): Same change.
597         (c-family/c-common.o): Same change.
598         (PLUGIN_HEADERS): Added c-family/c-objc.h.
599
600 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
601
602         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
603         --with-dwarf2 option.
604
605 2010-12-03  Jan Hubicka  <jh@suse.cz>
606
607         * lto-streamer-in.c (input_cfg): Fix pasto.
608
609 2010-12-03  Jan Hubicka  <jh@suse.cz>
610
611         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
612         and functions with user asm defined names.
613         (varpool_externally_visible_p): Do not localize vars with user
614         asm defined names.
615
616 2010-12-03  Jan Hubicka  <jh@suse.cz>
617
618         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
619         to prevent mangling with lto frontend.
620
621 2010-12-03  Jan Hubicka  <jh@suse.cz>
622
623         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
624         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
625
626 2010-12-03  Jan Hubicka  <jh@suse.cz>
627
628         PR tree-optimization/46760
629         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
630         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
631         * lto-cgraph.c (lto_output_edge): Fix assert.
632         (lto_output_node): Output count_materialization_scale.
633         (output_profile_summary): Output only runs and sum_max.
634         (input_node): Input count_materialization_scale.
635         (input_profile_summary): Read data into file specific gcov summary.
636         (merge_profile_summaries): New function.
637         (input_cgraph): Update call of input_profile_summary;
638         call merge_profile_summaries.
639         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
640         rescale counts at read in.
641         (intput_bb): Likewise.
642         (input_function): Update call of input_bb.
643         (lto_read_body): Update call of input_cfg.
644         * lto-streamer.h: Inlclude gcov-io.h
645         (lto_file_decl_data): Add gcov_ctr_summary.
646
647 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
648
649         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
650         (Cond Exec Macros): ... to this.
651         * doc/tm.texi: Regenerate.
652
653 2010-12-03  Jason Merrill  <jason@redhat.com>
654
655         PR debug/46123
656         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
657         a declaration DIE.
658
659 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
660
661         * config/arm/arm.c (arm_legitimate_index_p): Split
662         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
663         slightly larger constants in the latter case.
664         (thumb2_legitimate_index_p): Likewise.
665
666 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
667
668         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
669         * gcc.c (cc1_options): Add %{Qy:}.
670
671 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
672
673         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
674         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
675         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
676
677 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
678
679         PR rtl-optimization/45354
680         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
681         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
682         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
683         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
684
685 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
686
687         * basic-block.h (struct edge_prediction): Remove forward
688         declaration.
689         * tree-flow.h (struct edge_prediction): Move from here...
690         * predict.c (struct edge_prediction): ...to here.
691         * cselib.h (struct elt_list): Move from here...
692         * cselib.c (struct elt_list): ...to here.
693
694 2010-12-02  Ian Lance Taylor  <iant@google.com>
695
696         * gcc.c (default_compilers): Add entry for ".go".
697         * common.opt: Add -static-libgo as a driver option.
698         * doc/install.texi (Configuration): Mention libgo as an option for
699         --enable-shared.  Mention go as an option for --enable-languages.
700         * doc/invoke.texi (Overall Options): Mention .go as a file name
701         suffix.  Mention go as a -x option.
702         * doc/frontends.texi (G++ and GCC): Mention Go as a supported
703         language.
704         * doc/sourcebuild.texi (Top Level): Mention libgo.
705         * doc/standards.texi (Standards): Add section on Go language.
706         Move references for other languages into their own section.
707         * doc/contrib.texi (Contributors): Mention that I contributed the
708         Go frontend.
709
710 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
711
712         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
713         (const_call_expr_arg_iterator_d): Likewise.
714         (expanded_location): Likewise.
715         * c-tree.h (struct c_arg_tag_d): Likewise.
716         * dwarf2out.c (struct cfa_loc): Likewise.
717         (struct skeleton_chain_struct): Likewise.
718         * except.c (struct ttypes_filter): Likewise.
719         * cselib.h (struct cselib_val_struct): Likewise.
720         (elt_loc_list): Likewise.
721         (elt_list): Likewise.
722         * varasm.c (struct addr_const): Likewise.
723         * tree-flow.h (struct edge_prediction): Likewise.
724         (struct int_tree_map): Likewise.
725         (struct _edge_var_map): Likewise.
726
727 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
728
729         PR target/46768
730         * config/i386/i386.c (initial_ix86_tune_features): Turn on
731         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
732
733 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
734
735         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
736
737 2010-12-02  Ian Lance Taylor  <iant@google.com>
738
739         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
740         header files unordered_map, tr1/unordered_map, and ext/hash_map.
741         * configure, config.in: Rebuild.
742
743 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
744
745         PR target/46685
746         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
747         (sparc_expand_move): Call it to decide whether to emit the special
748         mov{si,di}_pic_label_ref patterns.
749         (sparc_legitimize_pic_address): Call it to decide whether to emit
750         the regular PIC sequence for labels.  Fix long line.
751         (sparc_file_end): Set is_thunk for the PIC helper.
752
753 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
754
755         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
756         for a non-shared type.
757
758 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
759
760         PR middle-end/45297
761         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
762         with MEM_REFs as POINTER_PLUS_EXPR.
763
764 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
765
766         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
767         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
768         mentioning /lib/elf.
769
770 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
771
772         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
773         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
774         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
775         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
776         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
777         * config/sol2.h (LINK_SPEC): Remove %{b}.
778         * config/svr4.h (LINK_SPEC): Remove %{b}.
779
780 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
781
782         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
783         * config/i386/linux.h (LINK_SPEC): Cut long comment.
784         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
785         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
786         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
787         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
788         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
789         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
790         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
791         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and
792         %{v:%{!V:-V}}.
793
794 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
795
796         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
797         -ftraditional.
798
799 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
800
801         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
802         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
803         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
804         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
805         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
806         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
807         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
808         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
809         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
810         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
811         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
812         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
813         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
814         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
815         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
816         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
817         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
818         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
819
820 2010-12-02  Paul Koning  <ni1d@arrl.net>
821
822         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
823         opcodes if CC_NO_OVERFLOW is set.
824         (notice_update_cc_on_set): Correct setting of CC0 as a side
825         effect; set CC_NO_OVERFLOW for cases where C flag is not
826         meaningful.
827
828 2010-12-02  Ian Lance Taylor  <iant@google.com>
829
830         * doc/install.texi (Configuration): Update default for
831         --with-boot-ldflags.
832
833 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
834
835         PR c/45062
836         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
837         !funcdef_flag.
838
839 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
840
841         PR tree-optimization/45199
842         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
843         (stores_zero_from_loop): Call
844         mem_write_stride_of_same_size_as_unit_type_p.
845         * tree-data-ref.h (stride_of_unit_type_p): New.
846         * tree-loop-distribution.c (generate_memset_zero): Simplified.
847         Call stride_of_unit_type_p.
848         (build_rdg_partition_for_component): Do not call
849         rdg_flag_similar_memory_accesses when
850         flag_tree_loop_distribute_patterns is set.
851
852 2010-12-02  Richard Guenther  <rguenther@suse.de>
853
854         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
855         sign-changing conversions for induction detection.
856
857 2010-12-02  Richard Guenther  <rguenther@suse.de>
858
859         PR tree-optimization/46723
860         * tree-vect-loop.c (get_initial_def_for_induction): Strip
861         conversions from the induction evolution and apply it to
862         the result instead.
863         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
864         assigns for induction defs.
865
866 2010-12-02  Richard Guenther  <rguenther@suse.de>
867
868         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
869         the case we need to split the edge and not the block.
870
871 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
872
873         DFA model for Core 2 and Core i7 scheduling.
874
875         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
876         * config/i386/i386.c (ix86_option_override_internal): Update entries
877         for Core 2 and Core i7.
878         (ix86_issue_rate): Set issue rate to 3 [be realistic].
879         * config/i386/i386.md: Include "core2.md".
880         (define_attr cpu): Add "corei7".
881
882 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
883
884         Define tuning for Core 2 and Core i7.
885
886         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
887         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
888         (m_CORE2): Replace with m_CORE2_{32,64}.
889         (m_CORE2I7{,_32,_64}): New macros.
890         (m_GENERIC32, m_GENERIC64): Update.
891         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
892         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
893         set m_CORE2I7_64 iff m_GENERIC64.
894         (processor_target_table): Use generic costs for Core 2 and Core i7.
895         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
896         (ix86_issue_rate): Remove entry for Core 2.
897         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
898         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
899         (TARGET_CORE2): Update.
900         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
901         (PROCESSOR_CORE2): Remove.
902
903 2010-12-02  Richard Guenther  <rguenther@suse.de>
904
905         * lto-streamer.h (LTO_major_version): Bump to 2.
906
907 2010-12-02  Richard Guenther  <rguenther@suse.de>
908
909         PR lto/44871
910         * gimple.c (canonical_type_hash_cache): New hashtable.
911         (gimple_type_hash): Make a wrapper around ...
912         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
913         (gimple_canonical_type_hash): Likewise.
914         (gtc_visit): Take a gtc_mode argument.
915         (gimple_types_compatible_p_1): Likewise. Do not compare struct
916         tag names or field names when computing canonical types.
917         (gimple_types_compatible_p): Adjust.
918         (visit): Take a gtc_mode argument.
919         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
920         names or field names when computing hashes of canonical types.
921         (gimple_register_canonical_type): Use gimple_canonical_type_hash
922         for the hash.
923         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
924         (free_gimple_type_tables): Free canonical_type_hash_cache.
925
926 2010-12-02  Richard Guenther  <rguenther@suse.de>
927             Ira Rosen  <irar@il.ibm.com>
928
929         PR tree-optimization/46663
930         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
931         FUNCTION_DECL exists and that it's a builtin.
932
933 2010-12-02  Jie Zhang  <jie@codesourcery.com>
934
935         PR middle-end/46674
936         * varasm.c (compute_visible_aliases): Handle user set
937         assembler name.
938
939 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
940
941         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
942         thinko regarding setting -mno-<xxx> debug switches.
943         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
944
945 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
946
947         * intl.c: Don't include tm.h.
948         * Makefile.in (intl.o): Don't depend on $(TM_H).
949
950 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
951
952         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
953         unused warning.
954         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
955
956 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
957
958         * graphite-sese-to-poly.c (analyze_drs): Removed.
959         (build_scop_drs): Do not call analyze_drs.
960         (analyze_drs_in_stmts): New.
961         (insert_stmts): New.
962         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
963         (insert_out_of_ssa_copy_on_edge): Same.
964         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
965         (rewrite_phi_out_of_ssa): Same.
966         (rewrite_cross_bb_scalar_dependence): Same.
967         (split_reduction_stmt): Move data references in the new basic blocks.
968         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
969
970 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
971
972         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
973
974 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
975
976         PR middle-end/45297
977         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
978         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
979         * graphite-poly.h (new_poly_bb): Update declaration.
980         (gbb_from_bb): Moved here...
981         (pbb_from_bb): New.
982         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
983         Removed.
984         (graphite_stmt_p): Removed.
985         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
986         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
987         new_poly_bb.
988         (build_scop_bbs_1): Do not pass in sbitmap reductions.
989         (build_scop_bbs): Same.
990         (gbb_from_bb): ... from here.
991         (add_conditions_to_constraints): Moved up.
992         (analyze_drs): New.
993         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
994         not contain data references.
995         (new_pbb_from_pbb): New.
996         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
997         block is split.
998         (rewrite_close_phi_out_of_ssa): Update call to
999         insert_out_of_ssa_copy_on_edge.
1000         (rewrite_reductions_out_of_ssa): Now static.
1001         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1002         (split_pbb): New.
1003         (split_reduction_stmt): Call split_pbb.
1004         (translate_scalar_reduction_to_array): Pass in the scop, do not
1005         pass in the sbitmap reductions.
1006         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
1007         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
1008         (rewrite_commutative_reductions_out_of_ssa): Same.
1009         (build_poly_scop): Call build_scop_bbs,
1010         rewrite_commutative_reductions_out_of_ssa,
1011         rewrite_reductions_out_of_ssa, and
1012         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
1013         before scop_to_lst.
1014         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
1015         Removed declaration.
1016         (rewrite_reductions_out_of_ssa): Same.
1017         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
1018         (build_scop_bbs): Same.
1019         * graphite.c (graphite_transform_loops): Do not initialize reductions.
1020         Do not call build_scop_bbs,
1021         rewrite_commutative_reductions_out_of_ssa,
1022         rewrite_reductions_out_of_ssa, and
1023         rewrite_cross_bb_scalar_deps_out_of_ssa.
1024         * sese.h (struct gimple_bb): Add field pbb.
1025         (GBB_PBB): New.
1026
1027 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1028
1029         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
1030         New.
1031         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
1032         handle_scalar_deps_crossing_scop_limits.
1033         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
1034         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
1035
1036 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1037
1038         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
1039         when replacing a constant in an ADDR_EXPR.
1040
1041 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
1042
1043         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
1044         for the stride.
1045         (lst_do_strip_mine): Same.
1046         (scop_do_strip_mine): Same.
1047         * graphite-poly.c (apply_poly_transforms): Update call to
1048         scop_do_strip_mine.
1049         * graphite-poly.h (scop_do_strip_mine): Update declaration.
1050
1051 2010-12-01  Jan Hubicka  <jh@suse.cz>
1052
1053         * tree.c (build_common_builtin_nodes): Do not initialize
1054         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
1055         * builtins.c (expand_builtin_profile_func): Remove.
1056         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
1057         BUILT_IN_PROFILE_FUNC_EXIT.
1058         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
1059         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
1060         * gimplify.c (gimplify_function_tree): Reorganize code calling
1061         profiling functions.
1062
1063 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1064
1065         * opts.c: Expand comment on tm.h include.
1066
1067 2010-12-01  Yao Qi  <yao@codesourcery.com>
1068
1069         * config/arm/predicates.md ("vfp_register_operand"): Return true for
1070         VFP_D0_D7_REGS classes.
1071
1072 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1073
1074         * common.opt (flag_stack_check): New Variable entry.
1075         (fcompare-debug-second): Use Var.
1076         * flags.h (flag_compare_debug, flag_stack_check): Remove.
1077         * opts.c (flag_compare_debug): Remove.
1078         (common_handle_option): Don't handle OPT_fcompare_debug_second.
1079         Set opts->x_flag_stack_check for OPT_fstack_check_.
1080         * toplev.c (flag_stack_check): Remove.
1081
1082 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
1083
1084         * common.opt (main_input_filename, main_input_basename,
1085         main_input_baselength): New Variable entries.  From toplev.c.
1086         * final.c (output_quoted_string): Move from toplev.c.
1087         * output.h (output_quoted_string): Move from toplev.h.
1088         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
1089         access main_input_filename, main_input_baselength and
1090         main_input_basename.
1091         * targhooks.c: Include intl.h and opts.h.
1092         (option_affects_pch_p, default_get_pch_validity): Move from
1093         toplev.c.
1094         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
1095         Move from toplev.h.
1096         * toplev.c (main_input_filename, main_input_basename,
1097         main_input_baselength): Move to common.opt.
1098         (output_quoted_string): Move to final.c.
1099         (warn_deprecated_use): Move to tree.c.
1100         (option_affects_pch_p, default_get_pch_validity,
1101         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
1102         * toplev.h (skip_leading_substring): Move to tree-dump.c.
1103         (warn_deprecated_use): Move to tree.h.
1104         (output_quoted_string): Move to output.h.
1105         (main_input_filename, main_input_basename, main_input_baselength):
1106         Move to common.opt.
1107         (default_get_pch_validity, default_pch_valid_p): Move to
1108         targhooks.c.
1109         * tree-dump.c (skip_leading_substring): Move from toplev.h.
1110         * tree.c (warn_deprecated_use): Move from toplev.c.
1111         * tree.h (warn_deprecated_use): Move from toplev.h.
1112         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
1113         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
1114         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
1115         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
1116         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
1117         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
1118         config/mcore/mcore.c, config/mep/mep.c,
1119         config/microblaze/microblaze.c, config/mips/mips.c,
1120         config/mmix/mmix.c, config/mn10300/mn10300.c,
1121         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
1122         config/picochip/picochip.c, config/s390/s390.c,
1123         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
1124         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
1125         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
1126         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
1127         varasm.c, xcoffout.c: Don't include toplev.h.
1128         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
1129         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
1130         varasm.o, xcoffout.o): Update dependencies.
1131         * config/arm/t-arm (arm.o): Update dependencies.
1132         * config/spu/t-spu-elf (spu.o): Update dependencies.
1133
1134 2010-12-01  Richard Guenther  <rguenther@suse.de>
1135
1136         PR tree-optimization/46730
1137         * value-prof.c (gimple_ic): Always generate a separate merge BB.
1138
1139 2010-11-30  Ian Lance Taylor  <iant@google.com>
1140
1141         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
1142         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
1143         * config/i386/linux64.h (ASM_SPEC): Likewise.
1144         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
1145         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
1146         * config/i386/vxworks.h (ASM_SPEC): Likewise.
1147         * config/i386/x86-64.h (ASM_SPEC): Likewise.
1148         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
1149         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
1150
1151 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1152
1153         * c-decl.c (finish_function): Call objc_finish_function in
1154         Objective-C.
1155         * c-typeck.c (convert_for_assignment): Do not call
1156         objc_type_quals_match().
1157
1158 2010-11-30  Richard Guenther  <rguenther@suse.de>
1159
1160         PR tree-optimization/46722
1161         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
1162         operands as arguments.
1163         (execute_optimize_widening_mul): Also handle power of two as
1164         multiplication.
1165
1166 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1167
1168         PR middle-end/46709
1169         * cgraphunit.c (process_function_and_variable_attributes): Fix
1170         cut'n'pasteo.
1171
1172 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1173
1174         * hwint.c:  New.  Extracted from toplev.c.
1175         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1176         Move from toplev.h.
1177         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1178         Move to hwint.c.
1179         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
1180         Move to hwint.h.
1181         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
1182         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
1183         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
1184         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
1185         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
1186         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
1187         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
1188         tree-vrp.c: Don't include toplev.h.
1189         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
1190         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
1191         toplev.h in generated output.
1192         * Makefile.in (OBJS-common): Add hwint.o.
1193         Dependencies for above files changed to remove toplev.h.
1194         (hwint.o): New.
1195         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
1196         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
1197         toplev.h.
1198         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
1199         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
1200
1201 2010-11-30  Richard Guenther  <rguenther@suse.de>
1202
1203         PR tree-optimization/46717
1204         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
1205         call.  Manually create EH edges for the direct call and update
1206         target PHI nodes.
1207
1208 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
1209
1210         * diagnostic-core.h: Include bversion.h.
1211         * toplev.h: Don't include input.h or bversion.h.
1212         (parse_optimize_options): Don't declare here.
1213         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
1214         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
1215         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
1216         config/host-darwin.c, config/i386/host-cygwin.c,
1217         config/i386/host-mingw32.c, config/i386/msformat-c.c,
1218         config/i386/netware.c, config/i386/nwld.c,
1219         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
1220         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
1221         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
1222         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
1223         config/score/score3.c, config/score/score7.c,
1224         config/sh/symbian-base.c, config/sh/symbian-c.c,
1225         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
1226         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
1227         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
1228         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
1229         graphite-blocking.c, graphite-clast-to-gimple.c,
1230         graphite-dependences.c, graphite-flattening.c,
1231         graphite-interchange.c, graphite-poly.c,
1232         graphite-scop-detection.c, graphite.c, haifa-sched.c,
1233         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
1234         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
1235         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
1236         lto-opts.c, lto-section-in.c, lto-section-out.c,
1237         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
1238         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
1239         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
1240         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
1241         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
1242         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
1243         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
1244         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
1245         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
1246         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
1247         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
1248         include toplev.h.
1249         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
1250         toplev.h.  Dependencies for above files and c-family files changed
1251         to remove $(TOPLEV_H) or toplev.h.
1252         (C_TREE_H): Don't include $(TOPLEV_H).
1253         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
1254         bversion.h.
1255         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
1256         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
1257         config/t-darwin, config/t-sol2,
1258         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
1259         Dependencies for above files changed to remove $(TOPLEV_H) or
1260         toplev.h.
1261
1262 2010-11-30  Richard Guenther  <rguenther@suse.de>
1263
1264         PR lto/44986
1265         * gcc.c (main): Use the first input with a compiler as infile
1266         for link spec processing.
1267
1268 2010-11-30  Richard Guenther  <rguenther@suse.de>
1269
1270         PR lto/45949
1271         * cgraphunit.c (ipa_passes): Stop after errors from
1272         small IPA passes.
1273
1274 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
1275
1276         * gcc-plugin.h: Include coretypes.h.
1277         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
1278
1279 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1280
1281         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
1282         * ggc-none.c (ggc_internal_alloc_zone_stat)
1283         (ggc_internal_cleared_alloc_zone_stat): New.
1284
1285 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
1286
1287         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
1288         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
1289         (rs6000_emit_prologue): Don't set PIC register if
1290         TARGET_SINGLE_PIC_BASE.
1291         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
1292         * doc/invoke.texi (msingle-pic-base): Document.
1293
1294 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
1295
1296         PR driver/46712
1297         * exec-tool.in (id): New.
1298         Check and export LT_RCU_$id instead of LT_RCU.
1299
1300 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
1301
1302         PR tree-optimization/46675
1303         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
1304         in offset calculation.
1305
1306 2010-11-29  Jan Hubicka  <jh@suse.cz>
1307
1308         * collect2.c (main): Do not imply verbose output with
1309         LTO and linker plugin.
1310
1311 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
1312
1313         * dwarf2out.c (print_die): Print the address of the current DIE or
1314         of any DIE referenced by the current one.
1315
1316 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
1317
1318         PR debug/46101
1319         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
1320         function.
1321         (scope_die_for, gen_type_die_for_member): Replace uses of
1322         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
1323
1324 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
1325
1326         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
1327         (darwin_asm_declare_object_name): Correct spelling.
1328         (darwin_output_aligned_bss): Likewise.
1329
1330 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
1331             Mike Stump  <mrs@gcc.gnu.org>
1332
1333         PR target/26427
1334         PR target/33120
1335         PR testsuite/35710
1336         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
1337         (ASM_OUTPUT_LOCAL): Likewise.
1338         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
1339         (darwin_output_aligned_bss): Likewise.
1340         (darwin_asm_output_aligned_decl_local): Likewise.
1341         (darwin_asm_output_aligned_decl_common): Likewise.
1342         (darwin_use_anchors_for_symbol_p): Likewise.
1343         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
1344         (TARGET_ASM_OUTPUT_ANCHOR): Define.
1345         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
1346         (DARWIN_SECTION_ANCHORS): Set to 1.
1347         * config/darwin.c (emit_aligned_common): New var.
1348         (darwin_init_sections): Check that the Darwin private zero-size section
1349         marker is in range.
1350         (darwin_text_section): Check for zero-sized objects.
1351         (darwin_mergeable_string_section): Likewise.
1352         (darwin_mergeable_constant_section): Likewise.
1353         (machopic_select_section): Adjust to check for zero-sized objects.
1354         Assert that OBJC meta data are non-zero sized.
1355         (darwin_asm_declare_object_name): New.
1356         (darwin_asm_declare_constant_name): Adjust for zero-sized
1357         object sections.
1358         (BYTES_ZFILL): Define.
1359         (darwin_emit_weak_or_comdat): New.
1360         (darwin_emit_local_bss): New.
1361         (darwin_emit_common): New.
1362         (darwin_output_aligned_bss): New.
1363         (darwin_asm_output_aligned_decl_common): New.
1364         (darwin_asm_output_aligned_decl_local): New.
1365         (darwin_file_end): Disable subsections_via_symbols when section
1366         anchoring is active.
1367         (darwin_asm_output_anchor): Re-enable.
1368         (darwin_use_anchors_for_symbol_p): New.
1369         (darwin_override_options): Check for versions that can emit
1370         aligned common.  Update usage of flags to current.
1371         * config/darwin-sections.def: Update comments and flags for
1372         non-anchor sections.  zobj_const_section, zobj_data_section,
1373         zobj_bss_section, zobj_const_data_section: New.
1374         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
1375         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
1376         (L2_MAX_OFILE_ALIGNMENT): Define.
1377         (ASM_OUTPUT_ALIGNED_BSS): Define.
1378         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
1379         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
1380         (SECTION_NO_ANCHOR): Define.
1381         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
1382         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
1383
1384 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
1385
1386         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
1387         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
1388         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
1389         Conditionally define.
1390         (GET_ENVIRONMENT): Poison.
1391         * configure.ac: Don't test for mincore.
1392         * configure: Regenerate.
1393         * config.in: Regenerate.
1394         * collect2-aix.c: Don't include <sys/mman.h>.
1395         * collect2.c: Don't include <signal.h>.
1396         (SIGCHLD): Don't define.
1397         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
1398         * config/alpha/alpha.c: Include "splay-tree.h" instead of
1399         <splay-tree.h>.
1400         * config/arm/arm.c (arm_target_help): Use getenv instead of
1401         GET_ENVIRONMENT.
1402         * config/avr/driver-avr.c: Don't include <stdlib.h>.
1403         * config/frv/frv.c: Don't include <ctype.h>.
1404         * config/host-darwin.c: Don't include <sys/mman.h>.
1405         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
1406         (MAP_FAILED): Don't define.
1407         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
1408         * config/host-solaris.c: Don't include <sys/mman.h>.
1409         * config/i386/cygming.h: Don't include <stdio.h>.
1410         * config/i386/driver-i386.c: Don't include <stdlib.h>.
1411         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
1412         * config/iq2000/iq2000.c: Don't include <signal.h>.
1413         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
1414         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
1415         * config/mep/mep-pragma.c: Don't include <stdio.h>.
1416         * config/microblaze/microblaze.c: Don't include <signal.h>.
1417         * config/mips/mips.c: Don't include <signal.h>.
1418         * config/rs6000/host-darwin.c: Don't include <signal.h>.
1419         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
1420         * defaults.h (GET_ENVIRONMENT): Don't define.
1421         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
1422         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
1423         (SIGCHLD, MAP_FAILED, kill): Don't define.
1424         (process_command): Use getenv instead of GET_ENVIRONMENT.
1425         * genhooks.c: Don't include <string.h>.
1426         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
1427         <sys/types.h>.
1428         (MAP_FAILED): Don't define.
1429         * ggc-page.c Don't include <sys/mman.h>.
1430         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1431         * ggc-zone.c: Don't include <sys/mman.h>.
1432         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
1433         * graph.c: Include "config.h" instead of <config.h>.
1434         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
1435         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
1436         (SIGCHLD, kill): Don't define.
1437         * mips-tfile.c: Don't include <signal.h>.
1438         * opts.c: Don't include <signal.h> or <sys/resource.h>.
1439         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
1440         * passes.c: Don't include <signal.h>, <sys/resource.h> or
1441         <sys/times.h>.
1442         * sparseset.h: Don't include <assert.h>.
1443         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
1444         * tlink.c: Don't include "libiberty.h".
1445         * toplev.c: Don't include <signal.h> or <sys/times.h>.
1446         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
1447         * tree-switch-conversion.c: Don't include <signal.h>.
1448         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
1449
1450 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1451
1452         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
1453         c_parser_objc_try_catch_finally_statement for consistency with the
1454         C++ parser.  Parse @catch(...) and pass NULL_TREE to
1455         objc_begin_catch_clause() in that case.  Improved error recovery.
1456         Reorganized code to be almost identical to
1457         cp_parser_objc_try_catch_finally_statement.
1458
1459 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
1460
1461         PR tree-optimization/46621
1462         * gimple.h: Don't include tm.h or hard-reg-set.h .
1463         * Makefile.in (GIMPLE_H): Remove $(TM_H).
1464
1465         PR bootstrap/44756
1466         * cppbuiltin.c: Include target.h .
1467         (define_builtin_macros_for_type_sizes):
1468         Use targetm.float_words_big_endian.
1469
1470 2010-11-27  Jan Hubicka  <jh@suse.cz>
1471
1472         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
1473         and output cold_text_section_label.
1474         (dwarf2out_init): Don't do that there.
1475         (dwarf2out_finish): Handle cold section end label only if cold
1476         section was used.
1477
1478 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
1479
1480         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
1481         VLA variables.
1482
1483 2010-11-27  Richard Guenther  <rguenther@suse.de>
1484
1485         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
1486         (gimple_assign_ssa_name_copy_p): Likewise.
1487         (gimple_assign_unary_nop_p): Use is_gimple_assign.
1488         (is_gimple_cast): Remove.
1489         (gimple_assign_single_p): Move ...
1490         * gimple.h (gimple_assign_single_p): ... here.
1491         (is_gimple_cast): Remove.
1492         (gimple_assign_rhs_code): Simplify.
1493         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
1494         instead of is_gimple_cast.
1495         * ipa-type-escape.c (look_for_casts): Likewise.
1496
1497 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
1498
1499         * doc/options.texi (Enum, EnumValue): Document new record types.
1500         (Enum): Document new option flag.
1501         * opt-functions.awk
1502         * optc-gen.awk: Handle enumerated option arguments.
1503         * opth-gen.awk: Handle enumerated option arguments.
1504         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
1505         enum_value_to_arg): New.
1506         (decode_cmdline_option): Handle enumerated arguments.
1507         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
1508         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
1509         * opts.c (print_filtered_help, print_specific_help): Take
1510         lang_mask arguments.
1511         (print_filtered_help): Handle printing values of enumerated
1512         options.  Print possible arguments for enumerated options.
1513         (print_specific_help): Update call to print_filtered_help.
1514         (common_handle_option): Update calls to print_specific_help.  Use
1515         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
1516         handle OPT_ffp_contract_, OPT_fexcess_precision_,
1517         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
1518         OPT_fira_region_ here.
1519         * opts.h (enum cl_var_type): Add CLVC_ENUM.
1520         (struct cl_option): Add var_enum.
1521         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
1522         struct cl_enum, cl_enums, cl_enums_count): New.
1523         (CL_ERR_ENUM_ARG): Define.
1524         (CL_ERR_NEGATIVE): Update value.
1525         (enum_value_to_arg): Declare.
1526         * common.opt (flag_ira_algorithm, flag_ira_region,
1527         flag_fp_contract_mode, flag_excess_precision_cmdline,
1528         default_visibility, flag_tls_default): Remove Variable entries.
1529         (help_enum_printed): New Variable.
1530         (fdiagnostics-show-location=): Use Enum.  Add associated
1531         SourceInclude, Enum and EnumValue entries.
1532         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
1533         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
1534         associated Enum and EnumValue entries.
1535
1536 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
1537
1538         PR target/46623
1539         * config/microblaze/microblaze.c (microblaze_block_move_straight):
1540         Use XALLOCAVEC.
1541         (microblaze_option_override): Don't use C++ style comments.
1542         (save_restore_insns): Remove unused variable base_offset.
1543         (microblaze_expand_prologue): Remove unused variable insn.
1544         (microblaze_secondary_reload): Adjust type to match target.h .
1545         (microblaze_elf_in_small_data_p): Move declarations to start of block.
1546         (microblaze_expand_move): Likewise.
1547         * config/microblaze/microblaze.h (LARGE_INT):
1548         Avoid signed / unsigned comparisons.
1549         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1550         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
1551         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
1552
1553 2010-11-26  Michael Matz  <matz@suse.de>
1554
1555         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
1556
1557         * passes.c (init_optimization_passes): Remove superfluous
1558         copy-prop pass.
1559
1560 2010-11-26  Richard Guenther  <rguenther@suse.de>
1561
1562         PR lto/46648
1563         * gimple.c (gtc_visit): Do not return true for members of an
1564         SCC still being processed but the current lattice value of
1565         the member.  Treat SCC members comparison state as lattice,
1566         starting at equal, eventually dropping to unequal.
1567         (gimple_types_compatible_p_1): Likewise.
1568
1569 2010-11-26  Richard Guenther  <rguenther@suse.de>
1570
1571         PR middle-end/46559
1572         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
1573         for location list processing.
1574
1575 2010-11-26  Richard Guenther  <rguenther@suse.de>
1576
1577         PR lto/46560
1578         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
1579         flags manually.
1580
1581 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1582
1583         * config/s390/s390.c (print_operand_address): Replace assert with
1584         error message.
1585         (print_operand): Replace assertions, gcc_unreachable and
1586         fatal_insn with error messages.
1587
1588 2010-11-26  Richard Guenther  <rguenther@suse.de>
1589
1590         PR tree-optimization/46665
1591         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
1592
1593 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
1594
1595         * config/arm/arm.c (arm_option_override): enable loop array
1596         prefetching at -O3 for suitable targets, and configure params.
1597         * config/arm/arm-protos.h (struct tune_params): Add fields for
1598         configuring loop array prefetching.
1599
1600 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
1601
1602         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
1603
1604 2010-11-26  Richard Guenther  <rguenther@suse.de>
1605
1606         PR tree-optimization/46664
1607         * tree-affine.c (aff_combination_to_tree): Add rest last.
1608
1609 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1610
1611         PR target/33637
1612         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
1613         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
1614         * configure: Regenerated.
1615         * exec-tool.in: Not quoting command, may have extra arguments.
1616
1617 2010-11-26  Richard Guenther  <rguenther@suse.de>
1618
1619         PR tree-optimization/46528
1620         PR debug/46338
1621         * profile.c (branch_prob): Do not split blocks based on locations
1622         from debug statements.
1623
1624 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
1625
1626         PR middle-end/46647
1627         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
1628         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
1629
1630         PR bootstrap/45700
1631         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
1632         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
1633         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
1634         build6_loc): Define.
1635         * fold-const.c (protected_set_expr_location_unshare): New inline.
1636         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
1637         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
1638         pedantic_omit_one_operand_loc, omit_two_operands_loc,
1639         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
1640         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
1641         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
1642         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
1643         instead of buildN followed by SET_EXPR_LOCATION or
1644         protected_set_expr_location.
1645         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
1646         Use buildN_stat_loc instead of buildN_stat followed by
1647         SET_EXPR_LOCATION.
1648
1649 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
1650
1651         * Makefile.in (s-tm-texi): Remove spurous tab.
1652
1653 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1654
1655         PR debug/46258
1656         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
1657         debug stmts.
1658
1659 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
1660
1661         * toplev.c (finalize): Add no_backend parameter.  Don't finish
1662         passes when preprocessing only.  Adjust...
1663         (do_compile): ... caller.
1664
1665 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1666
1667         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
1668         flag_unsafe_math_optimizations.
1669         (negsf2): Likewise.
1670         Move fnegabs related patterns together.  Only use fmpynfadd instruction
1671         to negate a multiply if !flag_signed_zeros is true.
1672
1673 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
1674
1675         * gengtype-state.c (read_state_structures): Initialize "previous".
1676
1677 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
1678             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1679
1680         * gengtype-state.c: Add new file.
1681
1682         * gengtype.c (type count): New variable.
1683         (new_structure, find_param_structure, create_pointer)
1684         (create_array): Use it to set state_number in types.
1685         (dump_everything): Improve comment.
1686         (main): Call read_state and write_state. Print type_count.
1687
1688         * gengtype.h (type_lineloc): New function.
1689         (read_state, write_state): New declarations.
1690
1691         * Makefile.in (GENGTYPE_FLAGS): New variable.
1692         (s-gtype): Run gengtype twice and generate gtype.state.
1693         (build/gengtype-state.o): New rule.
1694         (build/gengtype$(build_exeext)): Link gengtype-state.o.
1695         (mostlyclean): Update comment.  Remove gtype.state.
1696
1697 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
1698
1699         PR middle-end/46637
1700         * combine.c (try_combine): When substing i2dest for i2src, pass
1701         1 as last argument even if
1702         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
1703
1704 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
1705
1706         PR middle-end/46647
1707         * builtins.c (target_char_cast): Check INTEGER_CST instead of
1708         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
1709
1710 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
1711
1712         * target.def (supports_split_stack, except_unwind_info): Take
1713         gcc_options parameters.
1714         * targhooks.c (default_except_unwind_info,
1715         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
1716         gcc_options parameters.
1717         * targhooks.h (default_except_unwind_info,
1718         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
1719         prototypes.
1720         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
1721         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
1722         Document that hooks must not be modified.
1723         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
1724         * doc/tm.texi: Regenerate.
1725         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
1726         &global_options to targetm.except_unwind_info.
1727         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
1728         dwarf2out_begin_prologue, dwarf2out_frame_init,
1729         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
1730         &global_options to targetm.except_unwind_info.
1731         * except.c (init_eh, finish_eh_generation,
1732         gate_convert_to_eh_region_ranges,
1733         output_one_function_exception_table): Pass &global_options to
1734         targetm.except_unwind_info.
1735         * expr.c (build_personality_function): Pass &global_options to
1736         targetm.except_unwind_info.
1737         * function.c (expand_function_end): Pass &global_options to
1738         targetm.except_unwind_info.
1739         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
1740         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
1741         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
1742         and targetm.supports_split_stack.  Remove assertions about opts
1743         and opts_set.
1744         (common_handle_option): Remove assertions about opts, opts_set and dc.
1745         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
1746         &global_options to targetm.except_unwind_info.
1747         * tree.c (build_common_builtin_nodes: Pass &global_options to
1748         targetm.except_unwind_info.
1749         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
1750         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
1751         thumb1_expand_prologue, thumb1_output_function_prologue,
1752         arm_unwind_emit, arm_output_fn_unwind): Update calls to
1753         arm_except_unwind_info.
1754         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
1755         parameter.
1756         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
1757         parameter.
1758         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
1759         ia64_reorg, ia64_asm_unwind_emit): Update calls to
1760         ia64_except_unwind_info.
1761         * config/pa/pa.c (pa_option_override): Pass &global_options to
1762         targetm.except_unwind_info.
1763         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
1764         Remove prototype.
1765
1766 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
1767
1768         * cgraphunit.c (process_function_and_variable_attributes):
1769         Mark dllexport-ed function/variables as needed.
1770         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
1771         as externally visible.
1772
1773 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1774
1775         PR rtl-optimization/46585
1776         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
1777         (vinsn_init): Skip computation of dependencies for local NOPs.
1778         (vinsn_delete): Don't try to free regsets for local NOPs.
1779         (setup_nop_and_exit_insns): Change definition of nop_pattern.
1780
1781 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
1782
1783         PR rtl-optimization/46602
1784         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
1785         (tidy_control_flow): Here.
1786
1787 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
1788             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1789
1790         PR bootstrap/45888
1791         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
1792         Fix target.def pathname in timestamp comparison.
1793
1794 2010-11-24  Richard Henderson  <rth@redhat.com>
1795
1796         * config/ia64/predicates.md (pmpyshr_operand): New.
1797         * config/ia64/ia64.c (ia64_expand_unpack): New.
1798         (ia64_expand_widen_mul_v4hi): New.
1799         (ia64_expand_widen_sum): Update for pattern renames.
1800         (ia64_expand_dot_prod_v8qi): Likewise.
1801         * config/ia64/ia64-protos.h: Update.
1802         * config/ia64/vect.md (vecwider): New mode attribute.
1803         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
1804         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
1805         (pmpyshr2, pmpyshr2_u): New.
1806         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
1807         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
1808         (mulv2si3): New.
1809         (vec_pack_ssat_v4hi): Rename from pack2_sss.
1810         (vec_pack_usat_v4hi): Rename from *pack2_uss.
1811         (vec_pack_ssat_v2si): Rename from pack4_sss.
1812         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
1813         vec_select operation.
1814         (vec_interleave_highv8qi): Similarly.
1815         (mux1_alt): Rename from *mux1_alt.
1816         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
1817         (vec_interleave_lowv4hi): Rename from unpack2_l.
1818         (vec_interleave_highv4hi): Rename from unpack2_h.
1819         (mix2_r): Rename from *mix2_r.
1820         (mix2_l): Similarly.
1821         (vec_extract_evenodd_helper): New.
1822         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
1823         (vec_interleave_lowv2si): Rename from *unpack4_l.
1824         (vec_interleave_highv2si): Rename from *unpack4_h.
1825         (vec_extract_evenv2si, vec_extract_oddv2si): New.
1826         (vec_interleave_lowv2sf): Rename from fmix_r.
1827         (vec_interleave_highv2sf): Rename from *fmix_l.
1828         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
1829         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
1830         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
1831         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
1832
1833 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1834
1835         * targhooks.c (default_except_unwind_info): Remove
1836         MUST_USE_SJLJ_EXCEPTIONS case.
1837         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1838         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
1839         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
1840         * doc/tm.texi: Regenerate.
1841         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
1842
1843 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
1844
1845         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1846         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
1847         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
1848         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
1849         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
1850
1851 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1852
1853         PR target/46519
1854         * config/i386/i386.c (ix86_expand_call): Don't check
1855         TREE_THIS_VOLATILE.
1856
1857 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1858
1859         PR target/46519
1860         * config/i386/i386.c (upper_128bits_state): New.
1861         (block_info_def): Remove upper_128bits_set and done.  Add state,
1862         referenced, count, processed and rescanned.
1863         (check_avx256_stores): Updated.
1864         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
1865         Call note_stores only if needed.  Set referenced and count.
1866         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
1867         (rescan_move_or_delete_vzeroupper): New.
1868         (move_or_delete_vzeroupper):  Process and rescan all all basic
1869         blocks instead of predecessor blocks of all exit points.
1870         (ix86_option_override_internal): Enable vzeroupper optimization
1871         only for -fexpensive-optimizations and not optimizing for size.
1872         (use_avx256_p): Removed.
1873         (init_cumulative_args): Don't set use_avx256_p.
1874         (ix86_function_arg): Likewise.
1875         (ix86_expand_move): Likewise.
1876         (ix86_expand_vector_move_misalign): Likewise.
1877         (ix86_local_alignment): Likewise.
1878         (ix86_minimum_alignment): Likewise.
1879         (ix86_expand_epilogue): Don't check use_avx256_p when generating
1880         vzeroupper.
1881         (ix86_expand_call): Likewise.
1882
1883         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
1884         and use_avx256_p.  Add rescan_vzeroupper_p.
1885
1886 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1887
1888         * toplev.c: Include <signal.h>.
1889
1890 2010-11-24  Richard Guenther  <rguenther@suse.de>
1891
1892         PR lto/43218
1893         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
1894         conflicting function signatures as non-inlineable.
1895
1896 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1897
1898         PR rtl-optimization/46614
1899         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
1900          (deps_analyze_insn): Mark JUMP_INSNs in
1901         last_pending_memory_flush that weren't added through
1902         flush_pending_lists with NON_FLUSH_JUMP_KIND.
1903         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
1904         on INSN_LIST instead of JUMP_P check on its operand.
1905         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
1906
1907 2010-11-24  Richard Guenther  <rguenther@suse.de>
1908
1909         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
1910
1911 2010-11-24  Richard Guenther  <rguenther@suse.de>
1912
1913         PR lto/46606
1914         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
1915         a FIELD_DECL that is type correct issue a warning and fixup
1916         with a VIEW_CONVERT_EXPR.
1917
1918 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
1919
1920         * doc/invoke.texi (Options for Debugging Your Program or GCC):
1921         Explain static numbering of dump files.
1922
1923 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
1924
1925         * common.opt (user_vect_verbosity_level): New Variable entry.
1926         (ftree-vectorizer-verbose=): Mark as UInteger.
1927         * flag-types.h (enum vect_verbosity_levels): Move from enum
1928         verbosity_levels in tree-vectorizer.h.
1929         * opts.c: Don't include tree.h.
1930         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
1931         gcc_options parameter; take integer option argument.
1932         (common_handle_option): Update call to vect_set_verbosity_level.
1933         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
1934         (vect_set_verbosity_level): Move to opts.c.
1935         (vect_verbosity_level, vect_print_dump_info): Update for change of
1936         enum name.
1937         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
1938         (vect_print_dump_info): Update for change of enum name.
1939         * tree.h (vect_set_verbosity_level): Remove.
1940         * Makefile.in (opts.o): Update dependencies.
1941
1942 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
1943
1944         PR middle-end/46629
1945         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
1946         instead of insn with any_condjump_p.
1947
1948 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
1949
1950         * config/mips/loongson.md: Change the description comment of the file
1951         and update the copyright years.
1952         (define_insn "<u>div<mode>3): Add loongson3a support.
1953         (define_insn "<u>mod<mode>3"): Likewise.
1954         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
1955         mul<mode>3_mul3_loongson.
1956         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
1957         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
1958
1959 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1960
1961         * common.opt (initial_max_fld_align, flag_debug_asm,
1962         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
1963         flag_print_asm_name, graph_dump_format, help_printed,
1964         help_columns, flag_opts_finished): New Variable entries.
1965         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
1966         frandom-seed=): Mark deferred.
1967         (fsched-verbose=): Use UInteger and Var.
1968         * flags.h (set_struct_debug_option, flag_print_asm_name,
1969         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
1970         graph_dump_format): Don't declare here.
1971         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
1972         * opts-global.c: Include dbgcnt.h and debug.h.
1973         (decode_options): Pass location to finish_options.
1974         (handle_common_deferred_options): Check flag_dump_all_passed.
1975         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
1976         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
1977         OPT_fstack_limit.
1978         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
1979         (set_struct_debug_option): Add location_t parameter.  Update
1980         recursive call.  Use error_at.
1981         (default_options_optimization): Use error_at.
1982         (finish_options): Add location_t parameter.  Use
1983         opts->x_flag_opts_finished instead of first_time_p.  Use
1984         opts->x_optimize instead of optimize.  Use error_at.  Pass
1985         location to inform.
1986         (print_filtered_help): Use opts->x_help_printed to track what
1987         options have been printed.
1988         (print_specific_help): Use opts->x_help_columns to track number of
1989         columns.
1990         (common_handle_option): Pass locations and gcc_options pointers to
1991         more functions.  Use warning_at instead of fnotice and warning.
1992         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
1993         OPT_fdebug_prefix_map_.  Use error_at.  Set
1994         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
1995         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
1996         OPT_fsched_verbose_.
1997         (handle_param): Add location_r parameter.  Use error_at.
1998         (set_debug_level): Add location_r parameter.  Use error_at and
1999         warning_at.
2000         (setup_core_dumping): Add diagnostic_context parameter.
2001         (decode_d_option): Add gcc_options, location_t and
2002         diagnostic_context parameters and use them instead of global
2003         state.  Use warning_at.
2004         (enable_warning_as_error): Use error_at.
2005         * opts.h (finish_options): Update prototype.
2006         (set_struct_debug_option): Declare here.
2007         * rtl.h (fix_sched_param): Remove.
2008         * stor-layout.c (initial_max_fld_align): Remove.
2009         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
2010         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
2011         (process_options): Set maximum_field_alignment.
2012         * tree.h (initial_max_fld_align) Don't declare here.
2013         * Makefile.in (opts.o, opts-global.o): Update dependencies.
2014
2015 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2016
2017         * flag-types.h (struct visibility_flags): Don't declare here.
2018         * flags.h (strip_off_ending, fast_math_flags_set_p,
2019         fast_math_flags_struct_set_p): Declare here.
2020         (visibility_options): Don't declare here.
2021         * opts-common.c (option_enabled, get_option_state): Move from
2022         opts.c.
2023         * opts-global.c: Include diagnostic.h instead of
2024         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
2025         and toplev.h.
2026         (const_char_p, ignored_options, in_fnames, num_in_fnames,
2027         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2028         print_ignored_options, unknown_option_callback,
2029         post_handling_callback, lang_handle_option, add_input_filename,
2030         read_cmdline_options, initial_lang_mask, init_options_once,
2031         decode_cmdline_options_to_array_default_mask,
2032         set_default_handlers, decode_options): Move from opts.c.
2033         (print_ignored_options): Use warning_at instead of saving and
2034         restoring input_location.
2035         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
2036         instead of expr.h.  Don't include langhooks.h, except.h or
2037         lto-streamer.h.  Add more comments on includes.
2038         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
2039         toplev.c.
2040         (visibility_options): Move to c-family/c-common.c.
2041         (const_char_p, ignored_options, in_fnames, num_in_fnames,
2042         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
2043         print_ignored_options, unknown_option_callback,
2044         post_handling_callback, lang_handle_option, add_input_filename,
2045         read_cmdline_options, initial_lang_mask, init_options_once,
2046         decode_cmdline_options_to_array_default_mask,
2047         set_default_handlers, decode_options): Move to opts-global.c.
2048         (target_handle_option, default_options_optimization,
2049         finish_options, common_handle_option): Remove static.
2050         (option_enabled, get_option_state): Move to opts-common.c.
2051         * opts.h (common_handle_option, target_handle_option,
2052         finish_options, default_options_optimization): Declare.
2053         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
2054         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
2055         opts.c.
2056         * toplev.h (strip_off_ending, decode_d_option,
2057         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
2058         declare here.
2059         * Makefile.in (opts.o, opts-global.o): Update dependencies.
2060
2061 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
2062
2063         PR driver/42690
2064         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
2065         options, replace by call of pass-through-libs spec function to process
2066         link_gcc_c_sequence spec.
2067         (lto_libgcc_spec): Delete variable.
2068         (static_specs[]): Remove related entry.
2069         (static_spec_functions[]): Add new entry for pass-through-libs.
2070         (main): Don't generate deleted lto_libgcc_spec.
2071         (pass_through_libs_spec_func): New function to implement the new
2072         pass-through-libs spec function.
2073         * doc/invoke.texi (pass-through-libs): Document new spec function.
2074
2075 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
2076
2077         * doc/options.texi (Warning, Optimization): Document.
2078
2079 2010-11-23  Jan Hubicka  <jh@suse.cz>
2080
2081         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
2082         (tree_decl_with_vis): Add implicit_section_name_p.
2083         * targhooks.h (default_function_section): Declare.
2084         * target.def (function_section): New hook.
2085         * defaults.h (HOT_TEXT_SECTION_NAME,
2086         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2087         * predict.c (choose_function_section): Remove.
2088         (estimate_bb_frequencies): Do not use choose_function_section.
2089         * coretypes.h (enum node_frequency): Move here from cgraph.h
2090         * cgraph.h (enum node_frequency): Remove.
2091         * varasm.c (initialize_cold_section_name, unlikely_text_section,
2092         unlikely_text_section_p): Remove.
2093         (named_subsection_entry): New structure.
2094         (get_text_section): New function.
2095         (default_function_section): New function.
2096         (function_section_1): Break out from ...; handle profile info.
2097         (function_section): ... here.
2098         (unlikely_text_section): Remove.
2099         (unlikely_text_section_p): Use function_section_1.
2100         (assemble_start_function): Do not initialize cold section.
2101         (default_section_type_flags): Do not special case cold subsection.
2102         (switch_to_section): Likewise.
2103         * output.h (get_text_section): Define.
2104         * config/i386/winnt.c: Do not special case cold section.
2105         * config/darwin-protos.h (darwin_function_section): Declare.
2106         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
2107         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2108         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
2109         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2110         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
2111         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
2112         * config/darwin.c (machopic_select_section): Use
2113         darwin_function_section.
2114         (darwin_function_section): New function.
2115         * config/darwin.h (HOT_TEXT_SECTION_NAME,
2116         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
2117         (TARGET_ASM_FUNCTION_SECTION): Define.
2118         * system.h (HOT_TEXT_SECTION_NAME,
2119         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
2120
2121 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
2122
2123         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
2124         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
2125
2126 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
2127
2128         PR middle-end/46499
2129         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
2130         following unconditional jumps.
2131
2132 2010-11-23  Richard Guenther  <rguenther@suse.de>
2133
2134         * doc/md.texi (386 constraints): Clarify A constraint documentation.
2135
2136 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
2137             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2138
2139         * gengtype.c (enum typekind, struct options)
2140         (struct nested_ptr_data, struct pair, NUM_PARAM)
2141         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
2142         Move to gengtype.h.
2143         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
2144         Remove static, add zero state_number.
2145         (typedefs, structures, param_structs, variables): Remove static.
2146         (create_option): Remove.
2147         (create_string_option, create_type_option, create_nested_option):
2148         New functions.
2149         (create_nested_ptr_option): Use create_nested_option.
2150         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
2151         new create*option functions.
2152         (process_gc_options): Adjust for discriminated option.
2153         (output_mangled_typename): Handle TYPE_NONE.
2154         (walk_type): Test option kinds.
2155         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
2156         (write_func_for_structure, write_type, write_local, write_root)
2157         (write_roots, note_def_vec, dump_options): Adjust for
2158         discriminated option.
2159
2160         * gengtype.h (typedefs, structures, param_structs, variables
2161         enum typekind): Move from gengtype.c
2162         (enum option_kind): New discriminating enumeration.
2163         (struct options): Becomes discriminated.
2164         (struct nested_ptr_data): Nove from gengtype.c
2165         (create_string_option, create_type_option, create_nested_option)
2166         (create_nested_ptr_option): New functions
2167         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
2168         (UNION_OR_STRUCT_P): Move from gengtype.c
2169
2170         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
2171         discriminated options.
2172
2173 2010-11-23  Richard Guenther  <rguenther@suse.de>
2174
2175         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
2176         twice.  Avoid re-allocating the ops vector all the time.
2177
2178 2010-11-23  Richard Guenther  <rguenther@suse.de>
2179
2180         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
2181         is_gimple_min_invariant, group tree code checks to allow
2182         combining them.
2183         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
2184         of is_gimple_reg.
2185
2186 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
2187
2188         * config.gcc (sparc*-*-*): Reorder.
2189
2190 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
2191
2192         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
2193         Remove ENABLE_CHECKING around DBGPRINTF.
2194
2195 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
2196
2197         * common.opt (exit_after_options, write_symbols, debug_info_level,
2198         use_gnu_debug_info_extensions): New Variable entries.
2199         (fprofile-dir=): Use Var.
2200         * flag-types.h (enum debug_info_level): Rename to enum
2201         debug_info_levels.
2202         * flags.h (write_symbols, debug_info_level,
2203         use_gnu_debug_info_extensions): Remove declarations.
2204         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
2205         (set_struct_debug_option): Make static variables const.
2206         (use_gnu_debug_info_extensions): Remove.
2207         (set_debug_level, print_filtered_help, print_specific_help,
2208         fast_math_flags_set_p): Take gcc_options parameters and use them
2209         in place of global variables.
2210         (print_filtered_help): Make new_help non-static.
2211         (print_specific_help): Update call to print_filtered_help.
2212         (common_handle_option): Update calls to print_specific_help.  Use
2213         gcc_options structure for more settings.  Make --help table
2214         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
2215         set_debug_level.
2216         * toplev.c (profile_data_prefix): Remove.
2217         * toplev.h (profile_data_prefix, exit_after_options): Remove
2218         declarations.
2219         (fast_math_flags_set_p): Update prototype.
2220         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
2221         Update call to fast_math_flags_set_p.
2222
2223 2010-11-22  Richard Henderson  <rth@redhat.com>
2224
2225         PR target/46434
2226         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
2227         return the address register extracted.
2228         (crx_decompose_address): Update the extracted address register.
2229
2230 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
2231
2232         PR driver/43335
2233         * gcc.c (main): Don't crash when lto-wrapper program is not found.
2234
2235 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
2236
2237         PR target/46608
2238         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
2239         * config/picochip/picochip-protos.h: Don't include "target.h" .
2240         (picochip_secondary_reload): Don't declare.
2241
2242         PR target/46613
2243         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
2244         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
2245         static.
2246
2247 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
2248
2249         PR bootstrap/46609
2250         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
2251         (source_dot_c_frul): Likewise.
2252
2253 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
2254
2255         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
2256
2257 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
2258
2259         PR bootstrap/44970
2260         * Makefile.in (fwprop.o) Add sparseset.h.
2261         * fwprop.c: Include sparseset.h
2262         (struct find_occurrence_data, find_occurrence_callback,
2263         find_occurrence): Remove.
2264         (active_defs, active_defs_check, register_active_defs,
2265         update_df_init, update_uses): New.
2266         (update_df): Rewrite.
2267         (try_fwprop_subst, forward_propagate_asm): Add calls to
2268         update_df_init and update_df.
2269         (fwprop_init): Allocate active_defs and active_defs_check.
2270         (fwprop_done): Free them.
2271         (fwprop, fwprop_addr): Adjust comments.
2272         * df.h (df_uses_create): Declare.
2273         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
2274         (df_ref_create): Return result of df_ref_create_structure directly.
2275         (df_ref_create_structure): Call df_install_ref_incremental when
2276         no collection_rec is passed.
2277         (df_ref_record): Do not create multiword hard reg info when no
2278         collection_rec is passed.
2279         (df_uses_create): New.
2280
2281 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2282
2283         PR middle-end/43057
2284         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
2285         setting location.
2286
2287 2010-11-22  Richard Guenther  <rguenther@suse.de>
2288
2289         * gimple-fold.c (maybe_fold_reference): When canonicalizing
2290         MEM_REFs, preserve volatileness.
2291         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
2292         addresses.
2293
2294 2010-11-22  Richard Guenther  <rguenther@suse.de>
2295
2296         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
2297
2298 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
2299
2300         PR rtl-optimization/45652
2301         * alias.c (get_reg_base_value): New.
2302         * rtl.h (get_reg_base_value): Add prototype.
2303         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
2304         non-null REG_BASE_VALUE for renaming.
2305
2306 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
2307             Basile Starynkevitch  <basile@starynkevitch.net>
2308
2309         * gengtype.c: Include xregex.h and obstack.h
2310         Added comments about role of get_output_file_with_visibility and
2311         our regexpr machinery.
2312         (frul_actionrout_t, struct file_rule_st): New.
2313         (hader_dot_h_frul, source_dot_c_frul): New functions.
2314         (NULL_REGEX,  NULL_FRULACT): New.
2315         (files_rules): New.
2316         (matching_file_name_substitute): New function.
2317         (get_output_file_with_visibility): Updated comments and rewritten
2318         to use the new files_rules machinery.
2319
2320         * Makefile.in (XREGEX_H): Added variable.
2321         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
2322
2323 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
2324
2325         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
2326
2327 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
2328
2329         * target.def (conditional_register_usage): Define.
2330         * reginfo.c (init_reg_sets_1): Call
2331         targetm.conditional_register_usage.
2332         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
2333         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
2334         for making it a hook.
2335         * doc/tm.texi: Regenerate.
2336         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2337         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
2338         New function.
2339         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2340         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2341         * config/arc/arc.c (arc_conditional_register_usage): ...here.
2342         New function.
2343         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2344         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2345         * config/arm/arm.c (arm_conditional_register_usage): ...here.
2346         New function.
2347         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2348         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
2349         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
2350         * config/bfin/bfin.c (conditional_register_usage): Move code into...
2351         (bfin_conditional_register_usage): ...here.  New function.
2352         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2353         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
2354         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
2355         * config/cris/cris.c (cris_conditional_register_usage): Make static.
2356         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2357         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
2358         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
2359         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
2360         * config/frv/frv.c (frv_conditional_register_usage): Make static.
2361         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2362         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2363         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
2364         New function.
2365         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2366         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
2367         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
2368         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
2369         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2370         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
2371         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
2372         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
2373         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2374         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2375         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
2376         New function.
2377         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2378         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
2379         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
2380         Delete.
2381         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
2382         static.
2383         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2384         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
2385         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
2386         * config/mep/mep.c (mep_conditional_register_usage): Make static.
2387         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2388         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
2389         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
2390         * config/mips/mips.c (mips_conditional_register_usage): Make static.
2391         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2392         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
2393         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
2394         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
2395         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2396         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2397         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
2398         ...here.  New function.
2399         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2400         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2401         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
2402         * config/pa/pa.c (pa_conditional_register_usage): ...here.
2403         New function.
2404         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2405         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2406         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
2407         New function.
2408         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2409         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
2410         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
2411         Delete.
2412         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
2413         static.
2414         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2415         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
2416         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
2417         * config/rx/rx.c (rx_conditional_register_usage): Make static.
2418         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2419         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
2420         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
2421         * config/s390/s390.c (s390_conditional_register_usage): Make static.
2422         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2423         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2424         * config/score/score.c (score_conditional_register_usage): ...here.
2425         New function.
2426         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2427         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2428         * config/sh/sh.c (sh_conditional_register_usage): ...here.
2429         New function.
2430         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2431         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2432         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
2433         New function.
2434         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2435         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
2436         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
2437         * config/spu/spu.c (spu_conditional_register_usage): Make static.
2438         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2439         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
2440         * config/v850/v850.c (v850_conditional_register_usage): ...here.
2441         New function.
2442         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
2443
2444 2010-11-21  Jan Hubicka  <jh@suse.cz>
2445             Dominique d'Humieres <dominiq@lps.ens.ft>
2446
2447         PR target/46510
2448         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
2449         finalize external decls.
2450
2451 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
2452
2453         * system.h (strerror): Poison.
2454
2455 2010-11-21  Richard Henderson  <rth@redhat.com>
2456
2457         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
2458         for infq/huge_valq.
2459
2460 2010-11-21  Richard Henderson  <rth@redhat.com>
2461
2462         PR rtl-optimization/46571
2463         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
2464         (compute_hash_table_work): Use NONDEBUG_INSN_P.
2465
2466 2010-11-21  Paul Koning  <ni1d@arrl.net>
2467
2468         * config/mips/pdp11.md (negsi2): Fix wrong code.
2469
2470 2010-11-21  Paul Koning  <ni1d@arrl.net>
2471
2472         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
2473         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
2474
2475 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
2476
2477         * config/mips/mips.c (machine_function): Rename load_label_length to
2478         load_label_num_insns.
2479         (mips_load_label_length): Rename to...
2480         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
2481         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
2482
2483 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
2484
2485         PR target/46533
2486         * config/alpha/predicates.md (direct_call_operand): Return false
2487         for !TARGET_SMALL_TEXT targets.
2488
2489 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
2490
2491         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
2492         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
2493         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
2494         * doc/tm.texi: Regenerate.
2495         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
2496         HANDLE_PRAGMA_WEAK): Poison.
2497         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2498         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2499         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
2500         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
2501         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2502         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2503         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2504         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
2505         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2506         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
2507         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2508         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
2509         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2510         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2511         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2512         (HANDLE_PRAGMA_WEAK): Don't undefine.
2513         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2514         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
2515         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2516         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
2517         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
2518         (HANDLE_PRAGMA_WEAK): Don't undefine.
2519         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2520         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
2521         (HANDLE_PRAGMA_PACK): Don't undefine.
2522         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
2523         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2524         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2525         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2526         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
2527         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2528         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2529         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
2530         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
2531         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2532         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
2533         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2534         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2535         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
2536         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2537         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
2538         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
2539
2540 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
2541
2542         PR target/31100
2543         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
2544         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
2545         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
2546
2547 2010-11-20  Jan Hubicka  <jh@suse.cz>
2548
2549         * cgraph.c (ld_plugin_symbol_resolution_names): New.
2550         (dump_cgraph_node): Dump resolution.
2551         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
2552         (cgraph_comdat_can_be_unshared_p): Dclare.
2553         * lto-streamer-out.c (produce_symtab): Use
2554         cgraph_comdat_can_be_unshared_p.
2555         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
2556         (cgraph_comdat_can_be_unshared_p): New function based on logic
2557         in cgraph_externally_visible_p.
2558         (cgraph_externally_visible_p): Use it.
2559         (varpool_externally_visible_p): Virtual tables can be unshared.
2560         * varpool.c (dump_varpool_node): Dump resolution.
2561
2562 2010-11-20  Jan Hubicka  <jh@suse.cz>
2563
2564         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
2565
2566 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2567
2568         PR other/46202
2569         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
2570         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
2571         shell quoting.
2572         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
2573         (install-strip): New target.
2574         (STRIPPROG): New variable, exported if STRIP is set.
2575         * doc/install.texi (Final install): Minor markup and code style
2576         fixes.  Document install-strip target.
2577
2578 2010-11-20  Paul Koning  <ni1d@arrl.net>
2579
2580         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
2581         pdp11_regno_reg_class): New functions.
2582         * config/pdp11/pdp11.md (define_constants): Add register numbers.
2583         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
2584         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
2585         functions.
2586         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
2587         frame pointer and argument pointer pseudo-registers.
2588         (ARG_POINTER_REGNUM): Define.
2589         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
2590         argument pointer.
2591         (FIRST_PARM_OFFSET): Update for argument pointer.
2592         (INITIAL_FRAME_POINTER_OFFSET): Delete.
2593         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
2594         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
2595         frame pointer and argument pointer.
2596
2597 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
2598
2599         PR debug/46561
2600         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
2601         when looking for immediate uses.
2602
2603         PR tree-optimization/45830
2604         * stmt.c (expand_switch_using_bit_tests_p): New function.
2605         (expand_case): Use it.
2606         * tree.h (expand_switch_using_bit_tests_p): New prototype.
2607         * tree-switch-conversion.c (struct switch_conv_info): Add
2608         bit_test_uniq, bit_test_count and bit_test_bb fields.
2609         (check_range): Fix a comment.
2610         (check_process_case): Compute bit_test_uniq and bit_test_count.
2611         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
2612         allocation.
2613         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
2614         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
2615         (array_value_type): New function.
2616         (build_one_array): Use it, if it returned different type,
2617         fold_convert all constructor fields and convert back to the
2618         wider type in the generated code.
2619         (process_switch): Initialize bit_test_uniq, bit_test_count and
2620         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
2621         returned true.
2622
2623 2010-11-19  Michael Matz  <matz@suse.de>
2624
2625         PR tree-optimization/46077
2626         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
2627
2628 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
2629
2630         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
2631         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
2632         function.
2633         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2634
2635 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2636
2637         * mode-switching.c (optimize_mode_switching): Use
2638         FOR_BB_INSNS instead of open-coded loop.
2639         * cfgrtl.c (redirect_branch_edge): Ditto.
2640
2641 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
2642
2643         PR target/46436
2644         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
2645         to accomodate 32 bit HOST_WIDE_INT.
2646         (m68hc11_emit_logical): Remove unused variable insn.
2647         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
2648         this_insn_uses_iy before use.
2649
2650         PR target/46434
2651         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
2652
2653 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2654
2655         PR c/46547
2656         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
2657         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
2658
2659 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2660
2661         * doc/extend.texi (Function attributes): Document PowerPC target
2662         attributes that are supported.
2663         (Pragmas): Document that PowerPC now supports target pragmas.
2664
2665         * doc/options.texi (TargetVariable): Document TargetVariable,
2666         HeaderInclude, and SourceInclude.
2667
2668         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
2669         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
2670         -ffp-contract=off.
2671
2672         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
2673         SourceInclude directives.  Fix a cut+paste error with target save
2674         enum variables.  Sort enums in the structures after ints and
2675         before shorts.
2676         * opth-gen.awk: Ditto.
2677
2678         * configure.ac: Add support for HeaderInclude and SourceInclude option
2679         directives to add the appropriate files to the dependency lists.
2680         * configure: Regenerate.
2681         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
2682         (OPTIONS_C_EXTRA): New variable for SourceInclude.
2683         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
2684         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
2685         (gcc-options.o): Ditto.
2686         * opt-include.awk: New awk script to handle HeaderInclude and
2687         TargetInclude.
2688
2689         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
2690         gets saved in the target options.
2691         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
2692         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
2693         (-mprototype): Ditto.
2694         (-mbit-word): ditto.
2695         (-mregnames): Ditto.
2696         (-msecure-plt): Ditto.
2697         (-mbss-plt): Ditto.
2698         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
2699         (-mpowerpc-gfxopt): Ditto.
2700         (-mmfcrf): Ditto.
2701         (-mpopcntb): Ditto.
2702         (-mfprnd): Ditto.
2703         (-mcmpb): Ditto.
2704         (-mmmfpgpr): Ditto.
2705         (-maltivec): Ditto.
2706         (-mhard-dfp): Ditto.
2707         (-mmulhw): Ditto.
2708         (-mdlmzb): Ditto.
2709         (-mmultiple): Ditto.
2710         (-mstring): Ditto.
2711         (-mpopcntd): Ditto.
2712         (-mfriz): Ditto.
2713         (-mvsx): Ditto.
2714         (-mno-update): Ditto.
2715         (-mavoid-indexed-addresses): Ditto.
2716         (-mtls-markers): Ditto.
2717         (-msched-epilog): Ditto.
2718         (-msched-prolog): Ditto.
2719         (-maix-struct-return): Ditto.
2720         (-msvr4-struct-return): Ditto.
2721         (-mxl-compat): Ditto.
2722         (-mrecip-precision): Ditto.
2723         (-mfp-in-toc): Ditto.
2724         (-msum-in-toc): Ditto.
2725         (-mvrsave): Ditto.
2726         (-mblock-move-inline-limit=): Ditto.
2727         (-misel): Ditto.
2728         (-mpaired): Ditto.
2729         (-mlongcall): Ditto.
2730         (-mgen-cell-microcode): Ditto.
2731         (-mwarn-cell-microcode): Ditto.
2732         (-mwarn-altivec-long): Ditto.
2733         (-mprioritize-restricted-insns=): Ditto.
2734         (-msingle-float): Ditto.
2735         (-mdouble-float): Ditto.
2736         (-msimple-fpu): Ditto.
2737         (-mxilinx-fpu): Ditto.
2738         * config/rs6000/aix64.opt (-mpe): Ditto.
2739
2740         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
2741         (rs6000_cpu): Move variable to be a target variable.  Rename
2742         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
2743         -mdebug=<xxx> variables into a single int.
2744         (rs6000_always_hint): Ditto.
2745         (rs6000_sched_groups): Ditto.
2746         (rs6000_align_branch_targets): Ditto.
2747         (rs6000_sched_costly_dep): Ditto.
2748         (rs6000_sched_insert_nops): Ditto.
2749         (rs6000_long_double_type_size): Ditto.
2750         (rs6000_ieeequad): Ditto.
2751         (rs6000_altivec_abi): Ditto.
2752         (rs6000_spe): Ditto.
2753         (rs6000_spe_abi): Ditto.
2754         (rs6000_float_gprs): Ditto.
2755         (rs6000_darwin64_abi): Ditto.
2756         (can_override_loop_align): Ditto.
2757         (rs6000_sdata): Ditto.
2758         (rs6000_tls_size): Ditto.
2759         (rs6000_current_abi): Ditto.
2760         (rs6000_traceback): Ditto.
2761         (rs6000_alignment_flags): Ditto.
2762         (rs6000_current_cmodel): Ditto.
2763         (rs6000_recip_control): Ditto.
2764         (rs6000_cpu_index): Ditto.
2765         (rs6000_tune_index): Ditto.
2766         (rs6000_debug): Ditto.
2767         (rs6000_target_flags_explict): Ditto.
2768
2769         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
2770         declaration.
2771
2772         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
2773         cmodel.  Change all uses.
2774
2775         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
2776         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
2777         Rename cmodel to rs6000_current_cmodel.
2778         (rs6000_sched_groups): Ditto.
2779         (rs6000_align_branch_targets): Ditto.
2780         (rs6000_sched_costly_dep): Ditto.
2781         (rs6000_sched_insert_nops): Ditto.
2782         (rs6000_long_double_type_size): Ditto.
2783         (rs6000_ieeequad): Ditto.
2784         (rs6000_altivec_abi): Ditto.
2785         (rs6000_spe): Ditto.
2786         (rs6000_spe_abi): Ditto.
2787         (rs6000_float_gprs): Ditto.
2788         (rs6000_darwin64_abi): Ditto.
2789         (can_override_loop_align): Ditto.
2790         (rs6000_sdata): Ditto.
2791         (rs6000_tls_size): Ditto.
2792         (rs6000_current_abi): Ditto.
2793         (rs6000_traceback): Ditto.
2794         (rs6000_alignment_flags): Ditto.
2795         (rs6000_current_cmodel): Ditto.
2796         (rs6000_recip_control): Ditto.
2797         (rs6000_cpu_index): Ditto.
2798         (rs6000_tune_index): Ditto.
2799         (rs6000_debug): Ditto.
2800         (rs6000_target_flags_explict): Ditto.
2801         (rs6000_sched_insert_nops_str): Make static.
2802         (rs6000_sched_costly_dep_str): Ditto.
2803         (rs6000_recip_name): Ditto.
2804         (rs6000_abi_name): Ditto.
2805         (rs6000_sdata_name): Ditto.
2806         (enum rs6000_traceback_name): Move to rs6000-opts.h.
2807         (rs6000_parse_tls_size_option): Delete.
2808         (rs6000_valid_attribute_p): New function for target attributes and
2809         pragmas.
2810         (rs6000_function_specific_save): Ditto.
2811         (rs6000_function_specific_restore): Ditto.
2812         (rs6000_function_specific_print): Ditto.
2813         (rs6000_can_inline_p): Ditto.
2814         (rs6000_set_current_function): Ditto.
2815         (rs6000_inner_target_options): Ditto.
2816         (rs6000_debug_target_options): Ditto.
2817         (rs6000_pragma_target_parse): Ditto.
2818         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
2819         attributes and pragmas.
2820         (TARGET_OPTION_SAVE): Ditto.
2821         (TARGET_OPTION_RESTORE): Ditto.
2822         (TARGET_OPTION_PRINT): Ditto.
2823         (TARGET_CAN_INLINE_P): Ditto.
2824         (TARGET_SET_CURRENT_FUNCTION): Ditto.
2825         (POWER_MASKS): Move to file level scope from the
2826         rs6000_option_override_internal function.
2827         (POWERPC_MASKS): Ditto.
2828         (ISA_*_MASKS): Ditto.
2829         (struct rs6000_ptt): Ditto.
2830         (processor_target_table): Ditto.
2831         (rs6000_cpu_name_lookup): Map cpu name to an index in
2832         processor_target_table.
2833         (rs6000_debug_reg_global): Print more information on processor
2834         options for -mdebug=reg.
2835         (rs6000_init_hard_regno_mode_ok): Add support for target
2836         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
2837         Allow -mdebug=val1,val2.  Rename cmodel variable.
2838         (rs6000_option_override_internal): Ditto.
2839         (rs6000_option_override): Ditto.
2840         (rs6000_handle_option): Ditto.
2841         (rs6000_conditional_register_usage): Add debug trace message.
2842         (struct rs6000_opt_mask): New for target attribute/pragma support.
2843         (rs6000_opt_masks): Ditto.
2844         (struct rs6000_opt_var): Ditto.
2845         (rs6000_opt_vars): Ditto.
2846         (rs6000_previous_function): Ditto.
2847
2848         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
2849         wasn't already included.
2850         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
2851         (enum processor_type): Ditto.
2852         (rs6000_cpu): Ditto.
2853         (enum fpu_type_t): Ditto.
2854         (fpu_type): Ditto.
2855         (enum rs6000_dependence_cost): Ditto.
2856         (enum rs6000_nop_insertion): Ditto.
2857         (enum group_termination): Ditto.
2858         (rs6000_long_double_type_size): Ditto.
2859         (rs6000_ieeequad): Ditto.
2860         (rs6000_altivec_abi): Ditto.
2861         (rs6000_spe_abi): Ditto.
2862         (rs6000_spe): Ditto.
2863         (rs6000_float_gprs): Ditto.
2864         (rs6000_alignment_flags): Ditto.
2865         (rs6000_sched_insert_nops): Ditto.
2866         (enum rs6000_vector): Ditto.
2867         (enum rs6000_abi): Ditto.
2868         (rs6000_current_opt): Ditto.
2869         (rs6000_debug_*): Delete.
2870         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
2871         (TARGET_DEBUG*): Ditto.
2872
2873         * config/rs6000/rs6000-opts.h: New header file to define the enums
2874         that are used in target variables that are now defined in rs6000.opt.
2875
2876         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
2877         rs6000-opts.h.
2878         (rs6000_sdata): Ditto.
2879         (rs6000_abi_name): Delete.
2880         (rs6000_sdata_name): Ditto.
2881         (rs6000_tls_size_string): Ditto.
2882
2883 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2884
2885         * common.opt (debug_struct_ordinary, debug_struct_generic): New
2886         Variable entries.
2887         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
2888         should_emit_struct_debug): Move from opts.c.
2889         * flag-types.h (enum debug_struct_file): Move from opts.c.
2890         * flags.h (should_emit_struct_debug): Remove.
2891         (base_of_path): Declare.
2892         (set_struct_debug_option): Add gcc_options parameter.
2893         * optc-gen.awk, opth-gen.awk: Handle array variables.
2894         * opts.c (enum debug_struct_file, debug_struct_ordinary,
2895         debug_struct_generic): Remove.
2896         (set_struct_debug_option): Add gcc_options parameter.
2897         (base_of_path): Remove static.
2898         (main_input_basename, main_input_baselength, matches_main_base,
2899         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
2900         Remove.
2901         * toplev.c (main_input_basename, main_input_baselength): Define
2902         here.
2903         * toplev.h (main_input_basename, main_input_baselength): Declare
2904         here.
2905
2906 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2907
2908         * common.opt (flag_instrument_functions_exclude_functions,
2909         flag_instrument_functions_exclude_files): New Variable definitions.
2910         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
2911         * gimplify.c (char_p): Declare type and vectors.
2912         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
2913         * opts.c (flag_instrument_functions_exclude_functions,
2914         flag_instrument_functions_exclude_files): Remove.
2915         (add_comma_separated_to_vector): Take void **.
2916         (flag_instrument_functions_exclude_p): Move to gimplify.c.
2917         (common_handle_option): Use options structure for
2918         -finstrument-functions-exclude- options.
2919
2920 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
2921
2922         * doc/options.texi (Var): Document effects of Defer.
2923         (Defer): Document.
2924         * opt-functions.awk (var_type, var_set): Handle deferred options.
2925         * opts-common.c (set_option): Handle CLVC_DEFER.
2926         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
2927         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
2928         fstack-limit-symbol=): Mark as deferred.
2929         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
2930         plugin.h.
2931         (print_filtered_help): Don't report state of CLVC_DEFER options.
2932         (common_handle_option): Move code for OPT_fcall_used_,
2933         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
2934         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
2935         OPT_fstack_limit_symbol_ to opts-global.c.
2936         (option_enabled, get_option_state): Handle CLVC_DEFER.
2937         * opts.h: Include vec.h.
2938         (enum cl_var_type): Add CLVC_DEFER.
2939         (cl_deferred_option): Define type and vectors.
2940         (handle_common_deferred_options): Declare.
2941         * opts-global.c: New.
2942         * toplev.c (toplev_main): Call handle_common_deferred_options
2943         * Makefile.in (OPTS_H): Include $(VEC_H).
2944         (OBJS-common): Include opts-global.o.
2945         (opts.o): Update dependencies.
2946         (opts-global.o): Add dependencies.
2947
2948 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
2949
2950         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
2951         to objc_declare_protocols.
2952
2953 2010-11-19  Richard Guenther  <rguenther@suse.de>
2954
2955         PR lto/45789
2956         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
2957         IDENTIFIERs do not stream TREE_TYPE.
2958         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
2959
2960 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2961
2962         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
2963
2964 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
2965
2966         PR target/45870
2967         * dwarf2out.c (const_ok_for_output_1): Don't complain about
2968         non-delegitimized TLS UNSPECs.
2969
2970 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
2971             Ian Lance Taylor  <iant@google.com>
2972
2973         * config/darwin-c.c (darwin_additional_format_types): Export.
2974
2975 2010-11-18  Paul Koning  <ni1d@arrl.net>
2976
2977         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
2978         pointer.
2979
2980 2010-11-18  Paul Koning  <ni1d@arrl.net>
2981
2982         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
2983         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
2984         * config/pdp11/pdp11.opt (-mabshi): Delete.
2985
2986 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
2987
2988         * resource.h (struct resources): Fix typo in the comment.
2989
2990 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
2991
2992         PR target/46546
2993         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
2994
2995 2010-11-18  Richard Henderson  <rth@redhat.com>
2996
2997         PR middle-end/46515
2998         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
2999         maybe_copy_epilogue_insn; handle prologue insns as well.
3000         * rtl.h, cfglayout.c: Update for rename.
3001         * recog.c (peep2_attempt): Copy prologue/epilogue data for
3002         RTX_FRAME_RELATED_P insns.
3003
3004 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
3005
3006         PR middle-end/46534
3007         * builtins.c (fold_builtin_printf): Don't copy and modify string
3008         before build_string_literal, instead modify what
3009         build_string_literal returned.
3010
3011 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
3012
3013         PR c/33193
3014         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
3015         REALPART_EXPR and IMAGPART_EXPR.
3016
3017 2010-11-18  Richard Guenther  <rguenther@suse.de>
3018
3019         PR tree-optimization/46172
3020         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
3021         function.
3022         (slpeel_tree_peel_loop_to_edge): Call it.
3023
3024 2010-11-18  Jeff Law  <law@redhat.com>
3025
3026         PR middle-end-optimization/46297
3027         * postreload.c (reload_combine_note_store): Deal with embedded
3028         side effects in MEM expressions.
3029
3030 2010-11-18  Richard Guenther  <rguenther@suse.de>
3031
3032         PR lto/45089
3033         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
3034         when checking is not enabled.
3035
3036 2010-11-18  Richard Guenther  <rguenther@suse.de>
3037
3038         PR lto/46525
3039         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
3040         type leaders.
3041         (gimple_register_canonical_type): Also cache the canoncial type
3042         for non type leaders.
3043
3044 2010-11-18  Richard Guenther  <rguenther@suse.de>
3045
3046         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
3047
3048 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
3049
3050         PR middle-end/46518
3051         * sel-sched-ir.c (init_expr): Use the correct type for
3052         target_available.
3053         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
3054
3055 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
3056
3057         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
3058         as well as -mrelocatable at the same time.
3059
3060 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
3061
3062         PR target/46422
3063         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
3064         Call the clz builtin.
3065
3066 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
3067             Steve Ellcey  <sje@cup.hp.com>
3068
3069         PR middle-end/31490
3070         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
3071         if section attribute used.
3072
3073 2010-11-17  Jan Hubicka  <jh@suse.cz>
3074
3075         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
3076         expand errno setting variant when optimizing for size.
3077
3078 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
3079
3080         * postreload.c (reload_combine): Call control_flow_insn_p only once.
3081         Reverse backward loop.  Fix formatting issues.
3082
3083 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
3084
3085         * c-parser.c (c_token_is_qualifier,
3086         c_parser_next_token_is_qualifier): New.
3087         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
3088         Improve error message on specs->tagdef_seen_p.
3089         (c_parser_struct_or_union_specifier): Improve error recovery.
3090         (c_parser_declspecs): Move exit condition on C_ID_ID early.
3091         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
3092         using c_parser_next_token_is_qualifier; extend it to cover
3093         a ctsk_tagdef typespec and !typespec_ok in general.
3094
3095 2010-11-17  Richard Guenther  <rguenther@suse.de>
3096
3097         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
3098         (gimple_mod_pow2_value_transform): Likewise.
3099         (gimple_mod_subtract_transform): Likewise.
3100
3101 2010-11-17  Richard Guenther  <rguenther@suse.de>
3102
3103         PR lto/46504
3104         * gimple.c (gimple_register_canonical_type): Make sure to only
3105         make type leaders canonical types.
3106
3107 2010-11-17  Michael Matz  <matz@suse.de>
3108
3109         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
3110         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
3111         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
3112         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
3113         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
3114         (pass_build_ssa): ... but here.
3115         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
3116         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
3117         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
3118         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
3119         * predict.c (rebuild_frequencies): Ditto.
3120         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
3121         * emit-rtl.c (verify_rtl_sharing): Ditto.
3122         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
3123         * tree-ssa-live.c (remove_unused_locals): Ditto.
3124         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
3125         * tree-ssa.c (pass_early_warn_uninitialized,
3126         execute_update_addresses_taken, pass_update_address_taken): Ditto.
3127         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
3128         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
3129         * passes.c (pass_postreload, execute_todo): Ditto.
3130         * tree-ssanames.c (pass_release_ssa_names): Ditto.
3131
3132 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3133
3134         * doc/invoke.texi (-dy): Remove.
3135         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
3136         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
3137         * langhooks.c (lhd_do_nothing_i): Remove.
3138         * langhooks.h (lang_hooks.parse_file): Take no arguments.
3139         * toplev.c (set_yydebug): Remove.
3140         (compile_file): Update call to lang_hooks.parse_file.
3141         (decode_d_option): Don't handle -dy.
3142
3143 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
3144
3145         PR rtl-optimization/46440
3146         * combine.c (update_cfg_for_uncondjump): When changing
3147         an indirect jump into unconditional jump, remove BARRIERs
3148         from bb's footer.
3149
3150 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
3151
3152         * opts.c (target_handle_option): Do not assert that loc ==
3153         UNKNOWN_LOCATION.
3154
3155 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
3156             Richard Guenther  <rguenther@suse.de>
3157
3158         PR middle-end/45838
3159         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3160         call_may_clobber_ref_p_1): Return true for __sync_* and some
3161         OpenMP builtins that act as threading barriers.
3162
3163 2010-11-17  Richard Guenther  <rguenther@suse.de>
3164
3165         PR tree-optimization/46498
3166         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
3167
3168 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3169
3170         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
3171         (xtensa_function_arg_boundary): ...this.
3172         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
3173         thinko in declaration.
3174         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
3175         number of parameters to picochip_function_arg_boundary.
3176         (picochip_arg_advance): Likewise.
3177
3178 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3179
3180         PR target/46512
3181         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
3182         under check for type.
3183
3184 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3185
3186         * ifcvt.c (dead_or_predicable): Fix typo.
3187
3188 2010-11-16  Richard Henderson  <rth@redhat.com>
3189
3190         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
3191         * config/s390/s390.opt (mfused-madd): Remove.
3192         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
3193         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3194         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
3195         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
3196
3197 2010-11-16  Richard Henderson  <rth@redhat.com>
3198
3199         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
3200         * config/rs6000/rs6000.opt (mfused-madd): Remove.
3201         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
3202         (*altivec_vmaddfp_1): Remove.
3203         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
3204         (altivec_mulv4sf3): Expand to FMA directly.
3205         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
3206         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
3207         * config/rs6000/paired.md (paired_madds0): Use FMA.
3208         (paired_madds1): Likewise.
3209         (*paired_madd): Rename from paired_madd; use FMA.
3210         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
3211         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
3212         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
3213         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
3214         (rs6000_emit_madd): Use fma_optab.
3215         (rs6000_emit_msub): Use fms_optab.
3216         (rs6000_emit_nmsub): Expand the FMA pattern directly.
3217         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
3218         (*fmasf4_fpr): Rename from fmasf4_fpr.
3219         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
3220         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
3221         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
3222         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
3223         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
3224         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
3225         (*fmadf4_fpr): Rename from fmadf4_fpr.
3226         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
3227         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
3228         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
3229         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
3230         (fmasf4, fmadf4): Macroize into...
3231         (fma<FMA_F>4): ... here.
3232         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
3233         (nfma<FMA_F>4, nfms<FMA_F>4): New.
3234         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
3235         TARGET_FUSED_MADD.
3236         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
3237         (*vsx_fmadd<mode>4_1): Remove.
3238         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
3239         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
3240         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
3241         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
3242         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
3243         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
3244         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
3245
3246 2010-11-16  Richard Henderson  <rth@redhat.com>
3247
3248         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
3249         (fmasf4, fnmadf4, fnmasf4): Likewise.
3250         (unnamed plus+mult insns and splitters): Delete.
3251
3252 2010-11-16  Richard Henderson  <rth@redhat.com>
3253
3254         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
3255         (fnma<VSF>4): Rename from fnms_<VSF>.
3256         (fms<VSF>4): Rename from fms_<VSF>.
3257         (fma<VDF>4): Rename from fma_<VDF>.
3258         (fms<VDF>4): Rename from fms_<VDF>.
3259         (nfma<VDF>4): Rename from fnma_<VDF>.
3260         (nfms<VDF>4): Rename from fnms_<VDF>.
3261         (fnma<VDF>4, fnms<VDF>4): New expanders.
3262         (floatunsdisf2): Update for the renames.
3263         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
3264         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
3265
3266 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3267
3268         PR rtl-optimization/46490
3269         * combine.c (expand_compound_operation): Fix thinko.
3270
3271 2010-11-16  Richard Henderson  <rth@redhat.com>
3272
3273         PR target/46470
3274         * recog.c (peep2_attempt): Convert frame-related info when possible.
3275         (peep2_fill_buffer): Allow frame-related insns into the buffer.
3276         (peephole2_optimize): Allow peep2_attempt to fail.
3277
3278 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3279
3280         PR rtl-optimization/46315
3281         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
3282         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
3283         extracted from...
3284         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
3285         (remove_reg_equal_equiv_notes_for_defs): ...this.
3286         (delete_unmarked_insns): Adjust to above renaming.
3287         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
3288         referring to registers set in the insns being moved, if any.
3289
3290         * df-core.c (df_ref_dump): New function extracted from...
3291         (df_refs_chain_dump): ...here.  Call it.
3292         (df_regs_chain_dump): Likewise.
3293         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
3294         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
3295
3296 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
3297
3298         PR rtl-optimization/46395
3299         * postreload.c (reload_combine): Invalidate register use
3300         information on all control flow insns.
3301
3302         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
3303         LABEL_REF in UNSPEC operand.
3304
3305 2010-11-16  Jan Hubicka  <jh@suse.cz>
3306
3307         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
3308         when !flag_toplevel_reorder do not remove unless variable is
3309         COMDAT or ARTIFICIAL.
3310         * ipa.c (varpool_can_remove_if_no_refs): ... here.
3311         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
3312         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
3313         * varpool.c (decide_is_variable_needed): Do not handle visibility
3314         issues.
3315         (varpool_finalize_decl): Likewise.
3316         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
3317         update outdated comment on DECL_RTL_SET_P check.
3318
3319 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3320
3321         * config/sol2.h (NM_FLAGS): Define.
3322         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
3323         * doc/tm.texi: Update.
3324
3325 2010-11-16  Nick Clifton  <nickc@redhat.com>
3326
3327         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
3328         (msubsf4): Rename to fmssf4, and use fma.
3329         (nmaddsf4): Rename to fnmasf4 and use fma.
3330         (nmsubsf4): Rename to fnmssf4 and use fma.
3331
3332 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
3333
3334         PR target/44762
3335         * config/score/score3.c (score3_return_in_memory): Constify arguments.
3336         (score3_in_small_data_p, score3_function_value): Likewise.
3337         (score3_trampoline_init): Use LCT_NORMAL.
3338         (score3_print_operand): Initialize code as UNKNOWN.
3339         * config/score/predicates.md (score_load_multiple_operation):
3340         Remove unused variable.
3341         (score_store_multiple_operation): Likewise.
3342         * config/score/score7.c (score7_return_in_memory): Constify arguments.
3343         (score7_in_small_data_p, score7_function_value): Likewise.
3344         (score7_trampoline_init): Use LCT_NORMAL.
3345         (score7_print_operand): Initialize code as UNKNOWN.
3346         * config/score/score3.h (score3_return_in_memory): Update prototype.
3347         (score3_in_small_data_p, score3_function_value): Likewise.
3348         * config/score/score-protos.h (score_function_value): Likewise.
3349         * config/score/score7.h (score7_return_in_memory): Update prototype.
3350         (score7_in_small_data_p, score7_function_value): Likewise.
3351         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
3352         (score_return_in_memory, score_pass_by_reference): Constify arguments.
3353         (score_output_mi_thunk, score_function_prologue): Don't return a value.
3354         (score_function_epilogue, score_in_small_data_p): Likewise.
3355         (score_option_override, score_asm_trampoline_template): Likewise.
3356         (score_trampoline_init, score_print_operand): Likewise.
3357         (score_print_operand_address, score_prologue): Likewise.
3358         (score_epilogue, score_call, score_call_value): Likewise.
3359         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
3360         (score_function_arg_advance): Likewise. Make static.
3361         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
3362         (score_function_arg, score_legitimate_address_p): Make static.
3363         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
3364         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
3365         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
3366         Allow (W) == HOST_BITS_PER_WIDE_INT.
3367
3368         PR java/46386
3369         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
3370         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
3371
3372 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3373
3374         * config/arc/arc.c: Delete pasto.
3375         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
3376
3377 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
3378
3379         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
3380         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3381         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
3382         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3383         (mn10300_preferred_reload_class,
3384         mn10300_preferred_output_reload_class): New functions.
3385
3386 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3387
3388         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
3389         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
3390         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
3391         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
3392
3393 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
3394
3395         * builtins.c (std_gimplify_va_arg_expr): Use
3396         targetm.calls.function_arg_boundary.
3397         * function.c (assign_parms, locate_and_pad_parm): Likewise.
3398         * calls.c (struct arg_data): Update comment.
3399         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
3400         * target.def (function_arg_boundary): Define.
3401         * targhooks.h (default_function_arg_boundary): Declare.
3402         * targhooks.c (default_function_arg_boundary): Define.
3403         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
3404         TARGET_FUNCTION_ARG_BOUNDARY.
3405         (FUNCTION_ARG_BOUNDARY): Delete.