OSDN Git Service

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