OSDN Git Service

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