OSDN Git Service

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