OSDN Git Service

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