OSDN Git Service

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