OSDN Git Service

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