OSDN Git Service

bec1b74f586127b845affc174c31cfa2336be588
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-31  Gerald Pfeifer  <gerald@pfeifer.com>
2
3         * doc/install.texi (powerpc-*-darwin*): Update reference to
4         Apple Developer Tools.
5
6 2010-12-31  Ken Werner  <ken.werner@de.ibm.com>
7
8         * config/arm/sync.md (sync_clobber, sync_t2_reqd): New code attribute.
9         (arm_sync_old_<sync_optab>si, arm_sync_old_<sync_optab><mode>): Use
10         the sync_clobber and sync_t2_reqd code attributes.
11         * config/arm/arm.c (arm_output_sync_loop): Reverse the operation if
12         the t2 argument is NULL.
13
14 2010-12-31  Gerald Pfeifer  <gerald@pfeifer.com>
15
16         * doc/sourcebuild.texi (Top Level): Adjust link to libgo.
17
18 2010-12-31  Gerald Pfeifer  <gerald@pfeifer.com>
19         
20         * doc/install.texi (Specific): Remove reference to interix.com.
21
22 2010-12-31  Paul Koning  <ni1d@arrl.net>
23
24         * config/pdp11/pdp11.h (PRINT_OPERAND): Delete.
25         * config/pdp11/pdp11.c (TARGET_PRINT_OPERAND,
26         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
27         (pdp11_asm_print_operand, pdp11_asm_print_operand_punct_valid_p):
28         New function.
29         * config/pdp11/pdp11.md (tablejump): Fix generated assembly.
30
31 2010-12-31  Joern Rennecke  <amylaar@spamcop.net>
32
33         PR target/47111
34         * config/rtems.h (NO_IMPLICIT_EXTERN_C): Undef before defining.
35
36         PR target/47112
37         * config/mips/r3900.h: Update Copyright years.
38         (MIPS_CPU_STRING_DEFAULT): Undef before defining.
39         (MULTILIB_DEFAULTS, MIPS_ABI_DEFAULT, SUBTARGET_CC1_SPEC): Likewise.
40
41         PR target/47135
42         * config/pdp11/pdp11.c (pdp11_asm_print_operand_punct_valid_p): Change
43         type to match target.def .
44
45         PR target/47114
46         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): Add
47         ATTRIBUTE_UNUSED to declaration.
48         (rs6000_elf_asm_out_destructor): Likewise.
49
50         PR target/47084
51         * config/mn10300/linux.h (PRINT_OPERAND): Update for name changes
52         to mn10300_print_operand / mn10300_print_operand_address.
53
54 2010-12-30  Mingjie Xing  <mingjie.xing@gmail.com>
55
56         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change
57         TARGET_LOONGSON_2EF to TARGET_LOONGSON_VECTORS.
58         * config/mips/mips.c (mips_shift_truncation_mask): Likewise.
59
60 2010-12-30  Joseph Myers  <joseph@codesourcery.com>
61
62         * config/openbsd.opt: New.
63         * config.gcc (alpha*-*-openbsd*,
64         i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123],
65         i[34567]86-*-openbsd*, m68k*-*-openbsd*, mips*-*-openbsd*,
66         sparc64-*-openbsd*, vax-*-openbsd*): Use openbsd.opt.
67
68 2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
69
70         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
71         patterns.
72
73 2010-12-30  Eric Botcazou  <ebotcazou@adacore.com>
74
75         PR target/47038
76         * config/sparc/sparc.c (sparc_file_end): Call resolve_unique_section
77         on the GOT helper if USE_HIDDEN_LINKONCE.
78
79 2010-12-30  Joseph Myers  <joseph@codesourcery.com>
80
81         PR c/46889
82         * c-decl.c (detect_field_duplicates): Ensure hash is used for
83         finding duplicates when first field is anonymous.
84
85 2010-12-30  Nathan Froyd  <froydnj@codesourcery.com>
86
87         PR target/44606
88         * reload1.c (choose_reload_regs): Don't look for equivalences for
89         output reloads of constant loads.
90
91 2010-12-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
92
93         * emit-rtl.c (set_mem_attributes_minus_bitpos): Explicitly derive
94         default values from MEM mode if no memory attributes are present.
95         Do not use mode alignment, even on STRICT_ALIGNMENT targets, when
96         called with an expression (not a type).
97
98 2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
99
100         * config/i386/i386.c (upper_128bits_state): Remove comments.
101         (block_info_def): Add unchanged.
102         (move_or_delete_vzeroupper_2): Short circuit if upper 128bits
103         are unchanged in the block.
104
105 2010-12-30  H.J. Lu  <hongjiu.lu@intel.com>
106
107         PR target/46519
108         * config/i386/i386.c (block_info_def): Remove referenced, count
109         and rescanned.
110         (move_or_delete_vzeroupper_2): Updated.
111         (move_or_delete_vzeroupper_1): Rewritten to avoid recursive call.
112         (rescan_move_or_delete_vzeroupper): Removed.
113         (move_or_delete_vzeroupper): Repeat processing all basic blocks
114         until no basic block state is changed to used at exit.
115
116 2010-12-30  Paul Koning  <ni1d@arrl.net>
117
118         * config/pdp11/pdp11.md (movmemhi, movmemhi1): Correct
119         constraints. 
120         * config/pdp11/pdp11.c (output_block_move): Rewrite.
121
122 2010-12-30  Jakub Jelinek  <jakub@redhat.com>
123
124         PR tree-optimization/47060
125         * tree-parloops.c (reduction_phi): Return NULL if PHI is NULL.
126
127 2010-12-29  Paul Koning  <ni1d@arrl.net>
128
129         * config/pdp11/pdp11-protos.h (pdp11_asm_output_var): Declare.
130         * config/pdp11/pdp11.c (pdp11_asm_output_var): New function.
131         * config/pdp11/pdp11.h (ASM_OUTPUT_ALIGNED_COMMON,
132         ASM_OUTPUT_ALIGNED_LOCAL): New macros.
133         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
134
135 2010-12-30  Joern Rennecke  <amylaar@spamcop.net>
136
137         PR target/47129
138         * config/ia64/ia64.c: Include "dwarf2out.h" .
139
140         PR target/47063
141         * config/alpha/vms.h (MALLOC_ALIGNMENT): Don't undef / define.
142         (MALLOC_ABI_ALIGNMENT): Undef / define.
143
144         PR target/47101
145         * vmsdbgout.c (vmsdbgout_init): Rename main_input_filename to filename.
146         (vmsdbgout_finish): Likewise.
147
148         PR target/47097
149         * config/i386/lynx.h (DBX_REGISTER_NUMBER): Add cast to avoid
150         mixing signed and unsigned types in conditional expression.
151
152 2010-12-29  Jakub Jelinek  <jakub@redhat.com>
153
154         PR tree-optimization/47074
155         * gimple-fold.c (gimplify_and_update_call_from_tree): Call
156         pop_gimplify_context if returning early.
157
158 2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>
159
160         * Makefile.in (graphite.o): Depends on DIAGNOSTIC_CORE_H.
161         (graphite-clast-to-gimple.o): Same.
162         (graphite-poly.o): Same.
163         * graphite-clast-to-gimple.c: Include diagnostic-core.h.
164         * graphite-poly.c: Same.
165         * graphite.c: Same.
166
167 2010-12-28  Richard Guenther  <rguenther@suse.de>
168
169         PR debug/46931
170         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Update
171         SSA before removing dead stmts.
172
173 2010-12-28  H.J. Lu  <hongjiu.lu@intel.com>
174             Uros Bizjak  <ubizjak@gmail.com>
175
176         * config/i386/i386-builtin-types.def (PUSHORT): New.
177         (INT_FTYPE_PUSHORT): Likewise.
178         (INT_FTYPE_PUNSIGNED): Likewise.
179         (INT_FTYPE_PULONGLONG): Likewise.
180         Remove "DEF_FUNCTION_TYPE (UINT16)".
181
182         * config/i386/i386.c (ix86_builtins): Remove
183         IX86_BUILTIN_RDRAND16, IX86_BUILTIN_RDRAND32 and
184         IX86_BUILTIN_RDRAND64.  Add IX86_BUILTIN_RDRAND16_STEP,
185         IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
186         (bdesc_special_args): Remove IX86_BUILTIN_RDRAND16,
187         IX86_BUILTIN_RDRAND32 and IX86_BUILTIN_RDRAND64.
188         (ix86_init_mmx_sse_builtins): Handle IX86_BUILTIN_RDRAND16_STEP,
189         IX86_BUILTIN_RDRAND32_STEP and IX86_BUILTIN_RDRAND64_STEP.
190         (ix86_expand_builtin): Likewise.
191         (ix86_expand_special_args_builtin): Remove UINT16_FTYPE_VOID.
192
193         * config/i386/i386.md (UNSPEC_RDRAND): New.
194         (UNSPECV_RDRAND): Removed.
195         (rdrand<mode>): Likewise.
196         (rdrand<mode>_1): Also set FLAGS_REG.  Replace UNSPECV_RDRAND
197         with UNSPEC_RDRAND.
198
199         * config/i386/immintrin.h (_rdrand_u16): Removed.
200         (_rdrand_u32): Likewise.
201         (_rdrand_u64): Likewise.
202         (_rdrand16_step): New.
203         (_rdrand32_step): Likewise.
204         (_rdrand64_step): Likewise.
205
206         * doc/extend.texi (__builtin_ia32_rdrand16): Removed.
207         (__builtin_ia32_rdrand32): Likewise.
208         (__builtin_ia32_rdrand64): Likewise.
209         (__builtin_ia32_rdrand16_step): New.
210         (__builtin_ia32_rdrand32_step): Likewise.
211         (__builtin_ia32_rdrand64_step): Likewise.
212
213 2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>
214
215         * Makefile.in (graphite.o): Add dependence on DIAGNOSTIC_H.
216         * graphite.c: Include diagnostic.h.
217
218 2010-12-28  Sebastian Pop  <sebastian.pop@amd.com>
219
220         * Makefile.in (TREE_VECTORIZER_H): Removed duplicate definition.
221         (tree-browser.o): Update dependences.
222         (omega.o): Same.
223         (tree-chrec.o): Same.
224         (tree-scalar-evolution.o): Same.
225         (tree-data-ref.o): Same.
226         (sese.o): Same.
227         (graphite.o): Same.
228         (graphite-blocking.o): Same.
229         (graphite-clast-to-gimple.o): Same.
230         (graphite-cloog-util.o): Same.
231         (graphite-dependences.o): Same.
232         (graphite-flattening.o): Same.
233         (graphite-interchange.o): Same.
234         (graphite-poly.o): Same.
235         (graphite-ppl.o): Same.
236         (graphite-scop-detection.o): Same.
237         (graphite-sese-to-poly.o): Same.
238         (tree-loop-linear.o): Same.
239         (tree-loop-distribution.o): Same.
240         (tree-parloops.o): Same.
241         (lambda-mat.o): Same.
242         (lambda-trans.o): Same.
243         (lambda-code.o): Same.
244         * tree-browser.o: Do not include unnecessary .h files.
245         * omega.o: Same.
246         * tree-chrec.o: Same.
247         * tree-scalar-evolution.o: Same.
248         * tree-data-ref.o: Same.
249         * sese.o: Same.
250         * graphite.o: Same.
251         * graphite-blocking.o: Same.
252         * graphite-clast-to-gimple.o: Same.
253         * graphite-cloog-util.o: Same.
254         * graphite-dependences.o: Same.
255         * graphite-flattening.o: Same.
256         * graphite-interchange.o: Same.
257         * graphite-poly.o: Same.
258         * graphite-ppl.o: Same.
259         * graphite-scop-detection.o: Same.
260         * graphite-sese-to-poly.o: Same.
261         * tree-loop-linear.o: Same.
262         * tree-loop-distribution.o: Same.
263         * tree-parloops.o: Same.
264         * lambda-mat.o: Same.
265         * lambda-trans.o: Same.
266         * lambda-code.o: Same.
267         * graphite.h: Removed.
268
269 2010-12-28  Paul Koning  <ni1d@arrl.net>
270
271         * config/pdp11/pdp11.md: Correct length attribute for float
272         literal case.
273
274 2010-12-28  Jie Zhang  <jie@codesourcery.com>
275
276         * builtins.c (SLOW_UNALIGNED_ACCESS): Remove.
277
278 2010-12-27  Joseph Myers  <joseph@codesourcery.com>
279
280         * config/freebsd.opt (assert=, defsym=, profile, pthread,
281         rpath-link=, rpath=, soname=): New Driver options.
282
283 2010-12-26  Martin Jambor  <mjambor@suse.cz>
284
285         * tree.c (get_binfo_at_offset): Use BINFO_TYPE instead of TREE_TYPE,
286         compare TYPE_MAIN_VARIANTs of types.
287
288 2010-12-26  Andreas Schwab  <schwab@linux-m68k.org>
289
290         * config/m68k/t-linux (M68K_MLIB_CPU): Only include 680x0 CPUs.
291
292 2010-12-24  Alexander Monakov  <amonakov@ispras.ru>
293
294         PR rtl-optimization/47036
295         * sel-sched-ir.c (fallthru_bb_of_jump): Remove special support for
296         unconditional jumps.
297         * sel-sched.c (moveup_expr): Ditto.
298
299 2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
300             Richard Guenther  <rguenther@suse.de>
301
302         PR tree-optimization/46758
303         * graphite-sese-to-poly.c (scan_tree_for_params_right_scev): Use
304         tree_int_to_gmp instead of int_cst_value.
305         (scan_tree_for_params_int): Same.
306         (scan_tree_for_params): Same.
307         (pdr_add_data_dimensions): Use ppl_set_inhomogeneous_tree.
308
309 2010-12-23  Sebastian Pop  <sebastian.pop@amd.com>
310
311         PR tree-optimization/47002
312         * tree-data-ref.c (compute_data_dependences_for_loop): Pass in a
313         pointer to the loop_nest.
314         (analyze_all_data_dependences): Initialize and free the loop_nest.
315         (free_dependence_relations): Do not free loop_nest.
316         (build_rdg): Pass in the loop_nest, datarefs, and dependence_relations.
317         (free_rdg): Also free the data on edges.
318         * tree-data-ref.h (build_rdg): Update declaration.
319         (compute_data_dependences_for_loop): Same.
320         * tree-if-conv.c (if_convertible_loop_p_1): Pass in the loop_nest.
321         (if_convertible_loop_p): Allocate and free loop_nest.
322         * tree-loop-distribution.c (rdg_flag_loop_exits): Free conds.
323         (free_rdg_components): VEC_free components.
324         (distribute_loop): Update call to build_rdg.  Allocate and free
325         loop_nest, datarefs, and dependence_relations.
326         * tree-loop-linear.c (linear_transform_loops): Allocate and free
327         loop_nest.
328         * tree-parloops.c (loop_parallel_p): Same.
329         * tree-predcom.c (tree_predictive_commoning_loop): Same.
330         * tree-vect-data-refs.c (vect_analyze_data_refs): Pass to
331         compute_data_dependences_for_loop a pointer to LOOP_VINFO_LOOP_NEST.
332         * tree-vect-loop.c (new_loop_vec_info): Initialize LOOP_VINFO_LOOP_NEST.
333         (destroy_loop_vec_info): Free LOOP_VINFO_MAY_ALIAS_DDRS and
334         LOOP_VINFO_LOOP_NEST.
335         * tree-vect-slp.c (destroy_bb_vec_info): Call free_data_refs and
336         free_dependence_relations.
337         * tree-vectorizer.h (struct _loop_vec_info): Add a field loop_nest.
338         (LOOP_VINFO_LOOP_NEST): New.
339
340 2010-12-23  Martin Jambor  <mjambor@suse.cz>
341
342         * ipa.c (cgraph_remove_unreachable_nodes): Update former_clone_of even
343         when not checking.
344
345 2010-12-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
346
347         * configure.ac (gcc_cv_ld_eh_frame_hdr): Only check GNU ld for
348         --eh-frame-hdr.  Check for working Sun ld version.
349         (HAVE_LD_EH_FRAME_HDR): Adapt comment.
350         (glibc_header_dir): Set only once.  Rename to ...
351         (target_header_dir): ... this.  Adapt users.
352         (gcc_cv_target_dl_iterate_frame_hdr): Check on *-*-solaris2*.
353         (TARGET_DL_ITERATE_PHDR): Define if present.
354         * configure: Regenerate.
355         * config.in: Likewise.
356         * config/t-sol2 (LIB2ADDEH, LIB2ADDEHDEP): Define.
357         * crtstuff.c (USE_PT_GNU_EH_FRAME): Define for recent Solaris 11
358         with linker support and dl_iterate_phdr.
359         * unwind-dw2-fde-glibc.c (USE_PT_GNU_EH_FRAME): Likewise.
360         (_Unwind_IteratePhdrCallback) [PT_SUNW_UNWIND]: Also accept
361         PT_SUNW_UNWIND .eh_frame_hdr sections.
362         [CRT_GET_RFIB_DATA && __i386__ && __sun__ && __svr4__]: Add
363         load_base to data->dbase.
364         [CRT_GET_RFIB_DATA && __x86_64__ && __sun__ && __svr4__]: Handle
365         64-bit Solaris 10+/x86.
366         * config/sol2-gld.h [TARGET_DL_ITERATE_PHDR && HAVE_LD_EH_FRAME_HDR]
367         (LINK_EH_SPEC): Define.
368
369 2010-12-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
370
371         * doc/extend.texi (Function Attributes, Volatiles): Fix typos.
372         * doc/install.texi (Prerequisites, Specific): Likewise.
373         * doc/invoke.texi (C Dialect Options, Debugging Options)
374         (Optimize Options, MicroBlaze Options)
375         (RS/6000 and PowerPC Options, RX Options, Code Gen Options): Likewise.
376         * doc/objc.texi (Method signatures)
377         (Fast enumeration protocol): Likewise.
378         * doc/tm.texi.in (Run-time Target, Register Arguments)
379         (Scheduling, Macros for Initialization, Misc): Likewise.
380         * doc/tm.texi: Renerate.
381
382 2010-12-23  Nicola Pero  <nicola.pero@meta-innovation.com>
383
384         * doc/objc.texi (Modern GNU Objective-C runtime API): Mention that
385         reference documentation for functions in the API is in the header
386         files.
387         (Messaging with the GNU Objective-C runtime, Dynamically
388         registering methods, Forwarding hook): New sections.
389
390 2010-12-22  Sebastian Pop  <sebastian.pop@amd.com>
391
392         PR tree-optimization/47019
393         * sese.h (scev_analyzable_p): Parameters of a SCoP are SCEV analyzable.
394
395 2010-12-22  Nathan Froyd  <froydnj@codesourcery.com>
396
397         * c-aux-info.c (gen_formal_list_for_type): Use prototype_p.
398         * c-decl.c (diagnose_arglist_conflict): Likewise.
399         (diagnose_mismatched_decls, merge_decls): Likewise.
400         (c_builtin_function, c_builtin_function_ext_scope): Likewise.
401         (start_decl, start_function): Likewise.
402         * c-tree.h (C_DECL_ISNT_PROTOTYPED): Likewise.
403         * config/ia64/ia64.h (INIT_CUMULATIVE_ARGS): Likewise.
404         * config/mep/mep.c (mep_validate_interrupt): Likewise.
405         * config/pa/pa.h (INIT_CUMULATIVE_ARGS): Likewise.
406         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
407         * config/sh/sh.c (sh_init_cumulative_args): Likewise.
408         * config/sparc/sparc.c (init_cumulative_args): Likewise.
409         * dwarf2out.c (add_prototyped_attribute): Likewise.
410         (gen_subprogram_die): Likewise.
411         * ipa-type-escape.c (check_function_parameter_and_return_types):
412         Likewise.
413         (check_call): Likewise.
414         * tree-ssa.c (useless_type_conversion_p): Likewise.
415
416 2010-12-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
417
418         * config/spu/spu.md ("mov<mode>"): Use nonimmediate_operand
419         predicate for destination operand.
420         * config/spu/spu.c (spu_expand_mov): If move destination is an
421         invalid subreg, perform move in the subreg's inner mode instead.
422
423 2010-12-22  Martin Jambor  <mjambor@suse.cz>
424
425         PR tree-optimization/45934
426         PR tree-optimization/46302
427         PR tree-optimization/46987
428         * gimple-fold.c (get_base_binfo_for_type): Removed.
429         (gimple_get_relevant_ref_binfo): Likewise.
430         (gimple_fold_obj_type_ref_call): Dumb down to 4.5 functionality,
431         removed parameter inplace, updated the caller.
432         * gimple.h (gimple_get_relevant_ref_binfo): Remove declaration.
433         * ipa-cp.c (ipcp_propagate_types): Do not derive types from constants.
434         (ipcp_discover_new_direct_edges): Do not do devirtualization based on
435         constants.
436         * ipa-prop.c (compute_known_type_jump_func): Use
437         get_ref_base_and_extent and get_binfo_at_offset instead of
438         gimple_get_relevant_ref_binfo.
439         (compute_known_type_jump_func): Likewise.
440         (update_jump_functions_after_inlining): Do not derive types from
441         constants.
442         (try_make_edge_direct_virtual_call): Likewise.
443         * tree.c (get_binfo_at_offset): Get type from non-artificial fields.
444
445 2010-12-22  Joseph Myers  <joseph@codesourcery.com>
446
447         * config/svr4.h: Remove.
448         * system.h (USING_SVR4_H, SVR4_ASM_SPEC): Poison.
449         * config.gcc, config/bfin/bfin.h, config/cris/cris.h,
450         config/fr30/fr30.h, config/frv/frv.h, config/i386/openbsdelf.h,
451         config/i386/vx-common.h, config/ia64/elf.h, config/ia64/ia64.h,
452         config/ia64/sysv4.h, config/iq2000/iq2000.h, config/m68k/linux.h,
453         config/m68k/m68kelf.h, config/mips/mips.h, config/mips/vxworks.h,
454         config/moxie/moxie.h, config/netbsd-aout.h, config/openbsd.h,
455         config/rs6000/sysv4.h, config/sh/elf.h, config/sh/sh.h,
456         config/sol2.h, config/sparc/sysv4.h, config/stormy16/stormy16.h,
457         config/v850/v850.h, config/vxworks.h: Remove or update comments
458         referring to svr4.h.
459
460 2010-12-22  Andrey Belevantsev  <abel@ispras.ru>
461
462         PR rtl-optimization/45352
463         PR rtl-optimization/46521
464         PR rtl-optimization/46522
465         * sel-sched.c (reset_sched_cycles_in_current_ebb): Recheck the
466         DFA state on the last iteration of the advancing loop.
467         (sel_sched_region_1): Propagate the rescheduling bit to the next
468         block also for empty blocks.
469
470 2010-12-22  Alexandre Oliva  <aoliva@redhat.com>
471
472         PR debug/46724
473         * function.c (assign_parms_augmented_arg_list): Name and mark
474         DECL of result address as NAMELESS rather than IGNORED.
475         (assign_parms): Set DECL_VALUE_EXPR for indirect result.
476         * tree.h (tree_decl_common::decl_flag_2): Document RESULT_DECL.
477         (DECL_HAS_VALUE_EXPR_P): Accept RESULT_DECL.
478         * dwarf2out.c (loc_list_from_tree) <RESULT_DECL>: Use
479         DECL_VALUE_EXPR.
480         * dbxout.c (dbxout_expand_expr) <RESULT_DECL>: Likewise.
481         * var-tracking.c (vt_add_function_parameter): New, split out of...
482         (vt_add_function_parameters): ... this.  Handle incoming
483         pointer to hold result.
484
485 2010-12-22  Jie Zhang  <jie@codesourcery.com>
486
487         * config/arm/arm.c (output_move_double): Update the comment
488         above the function to reflect the current implementation.
489
490 2010-12-21  Steven Bosscher  <steven@gcc.gnu.org>
491
492         De-hookize profile infrastructure.
493         * value-prof.c (value_prof_hooks): Remove.
494         (struct value_prof_hooks): Remove.
495         (gimple_value_prof_hooks): Remove.
496         (gimple_register_value_prof_hooks): Remove.
497         (find_values_to_profile): Remove.
498         (value_profile_transformations): Remove.
499         (gimple_value_profile_transformations): No longer static.
500         (gimple_find_values_to_profile): Likewise.
501         * value-prof.h (gimple_register_value_prof_hooks): Remove prototype.
502         (find_values_to_profile): Likewise.
503         (value_profile_transformations): Likewise.
504         (tree_register_profile_hooks): Likewise.
505         (struct profile_hooks): Remove.
506         (tree_profile_hooks): Remove.
507         (gimple_find_values_to_profile): New protoype.
508         (gimple_value_profile_transformations): Likewise.
509         (gimple_init_edge_profiler): Likewise.
510         (gimple_gen_edge_profiler): Likewise.
511         (gimple_gen_interval_profiler): Likewise.
512         (gimple_gen_pow2_profiler): Likewise.
513         (gimple_gen_one_value_profiler): Likewise.
514         (gimple_gen_ic_profiler): Likewise.
515         (gimple_gen_ic_func_profiler): Likewise.
516         (gimple_gen_const_delta_profiler): Likewise.
517         (gimple_gen_average_profiler): Likewise.
518         (gimple_gen_ior_profiler): Likewise.
519         * profile.c (profile_hooks): Remove.
520         (instrument_edges): Call profiling functions directly instead
521         of through removed profile_hooks.
522         (instrument_values): Likewise.
523         (branch_prob): Call gimple_find_values_to_profile instead of
524         removed find_values_to_profile.
525         Call gimple_init_edge_profiler instead of removed hook.
526         (tree_register_profile_hooks): Remove.
527         * tree-profile.c (tree_init_ic_make_global_vars): Rename to
528         init_ic_make_global_vars.
529         (tree_init_edge_profiler): Rename to gimple_init_edge_profiler
530         and no longer static.
531         (tree_gen_edge_profiler, tree_gen_interval_profiler,
532         tree_gen_pow2_profiler, tree_gen_one_value_profiler,
533         tree_gen_ic_profiler, tree_gen_ic_func_profiler,
534         tree_gen_const_delta_profiler, tree_gen_average_profiler,
535         tree_gen_ior_profiler): Similarly renamed and no longer static.
536         (tree_profiling): Do not initialize tree profiling hooks.
537         (tree_profile_hooks): Remove.
538
539 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
540
541         PR target/46880
542         * config/i386/sse.md (sse2_loadlpd, sse2_movsd): Fix shufpd source
543         operand.
544
545 2010-12-21  Ira Rosen  <irar@il.ibm.com>
546
547         PR tree-optimization/47001
548         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
549         the loads in reduction are different and there are no gaps between
550         them.
551
552 2010-12-21  Steven Bosscher  <steven@gcc.gnu.org>
553
554         PR middle-end/45310
555         * tree-ssa-phiprop.c (propagate_with_phi): Remove statement
556         completely from the function, including EH traces.
557
558 2010-12-21  Steven Bosscher  <steven@gcc.gnu.org>
559
560         PR rtl-optimization/46755
561         * ira.c (ira): If some dead edges were removed, find and delete
562         any blocks that might have become unreachable.
563
564 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
565
566         PR rtl-optimization/47008
567         * postreload.c (reload_combine_note_store): Also handle
568         PRE_MODIFY and POST_MODIFY.
569
570 2010-12-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
571
572         * config/arm/arm.c (require_pic_register): Set INSN_LOCATOR for all
573         instructions injected into the prologue to prologue_locator.
574
575 2010-12-21  Jan Hubicka   <jh@suse.cz>
576
577         PR middle-end/47000
578         * tree-inline.c (estimate_operator_cost): Handle VIEW_CONVERT_EXPR.
579
580 2010-12-21  Jie Zhang  <jie@codesourcery.com>
581
582         * config/arm/arm-ldmstm.ml: Fix a typo in comment.
583
584 2010-12-21  Jakub Jelinek  <jakub@redhat.com>
585
586         PR middle-end/45852
587         * expr.c (store_expr): Ignore alt_rtl if equal to target,
588         but has side-effects.
589
590 2010-12-21  Anatoly Sokolov  <aesok@post.ru>
591
592         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Remove.
593         * config/sh/sh-protos.h (secondary_reload_info, sh_secondary_reload):
594         Remove forward declaration.
595         * config/sh/sh.c (sh_preferred_reload_class): New function.
596         (sh_secondary_reload): Make static.
597         (TARGET_PREFERRED_RELOAD_CLASS): Define.
598
599 2010-12-20  Joseph Myers  <joseph@codesourcery.com>
600
601         * config/alpha/linux.h (OPTION_GLIBC): Define differently if
602         SINGLE_LIBC.
603         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC):
604         Define differently if SINGLE_LIBC.
605         * config/rs6000/linux.h (OPTION_GLIBC): Define differently if
606         SINGLE_LIBC.
607         * config/rs6000/linux64.h (OPTION_GLIBC): Define differently if
608         SINGLE_LIBC.
609         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
610         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Define
611         SINGLE_LIBC instead of OPTION_GLIBC.
612         (*-*-uclinux*): Define DEFAULT_LIBC and SINGLE_LIBC.
613         (bfin*-uclinux*, moxie-*-uclinux*, m68k-*-uclinux*): Don't define
614         DEFAULT_LIBC or use linux.opt.
615
616 2010-12-20  Richard Henderson  <rth@redhat.com>
617
618         * config/mn10300/mn10300.c (mn10300_legitimize_pic_address): Generate
619         UNSPEC patterns by hand, with the proper mode; use gen_const_mem.
620         * config/mn10300/mn10300.md (call, call_value): Generate UNSPEC_PLT
621         by hand, with the proper mode.
622         (symGOT2reg, symGOT2reg_i, symGOTOFF2reg): Remove.
623         (symGOTOFF2reg_i, sym2PIC, sym2PLT): Remove.
624
625 2010-12-20  Sanjin Liu  <scliu@faraday-tech.com>
626             Mingfeng Wu  <mingfeng@faraday-tech.com>
627
628         * config/arm/arm-cores.def: Add Faraday CPU support -
629         fa526/fa626/fa606te/fa626te/fmp626/fa726te.
630         * config/arm/arm-tune.md: Regenerate.
631         * config/arm/arm.c (arm_fa726te_tune): New tune_params for fa726te
632         (fa726te_sched_adjust_cost): New cost function for fa726te.
633         (arm_issue_rate): Add fa726te.
634         * config/arm/arm.md (generic_sched): Add Faraday cores to generic_sched
635         and include machine description files.
636         * config/arm/bpabi.h (TARGET_FIX_V4BX_SPEC): Add fa526 and fa626.
637         * config/arm/t-arm (MD_INCLUDES): Include machine description files for
638         Faraday cores.
639         * config/arm/t-arm-elf: Add multilib option for Faraday cores.
640         * config/arm/t-linux-eabi: Add multilib option for Faraday cores except
641         fa526 and fa626.
642         * doc/invoke.texi: Document -mcpu for Faraday cores.
643         * config/arm/fa526.md: New file.
644         * config/arm/fa606te.md: New file.
645         * config/arm/fa626te.md: New file.
646         * config/arm/fmp626.md: New file.
647         * config/arm/fa726te.md: New file.
648
649 2010-12-20  Yvan Roux  <yvan.roux@st.com>
650
651         * config/arm/lib1funcs.asm (ARM_DIV_BODY case __OPTIMIZE_SIZE__): Fix
652         condition on IT instruction for early termination.
653
654 2010-12-20  Joseph Myers  <joseph@codesourcery.com>
655
656         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't define.
657         (DBX_REGISTER_NUMBER): Define.
658         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Define.
659         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Define.
660         * config/rs6000/sysv4.h (SIZE_TYPE): Define.
661         (ASM_SPEC): Define without using SVR4_ASM_SPEC.
662         (DBX_REGISTER_NUMBER): Undefine.
663         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
664         powerpc-*-eabisim*, powerpc-*-elf*, powerpc-*-eabialtivec*,
665         powerpc-xilinx-eabi*, powerpc-*-eabi*, powerpc-*-rtems*,
666         powerpc-*-linux* | powerpc64-*-linux*, powerpc64-*-gnu*,
667         powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
668         powerpc-wrs-vxworks|powerpc-wrs-vxworksae, powerpcle-*-elf*,
669         powerpcle-*-eabisim*, powerpcle-*-eabi*): Don't use svr4.h.
670
671 2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
672             Jan Hubicka  <jh@suse.cz>
673
674         PR middle-end/46916
675         * opts.c (finish_options): Enable -freorder-functions
676         when -freorder-blocks-and-partition is active.
677
678 2010-12-20  Iain Sandoe  <iains@gcc.gnu.org>
679
680         PR c++/46904
681         PR middle-end/46916
682         PR target/46950
683         * config/darwin.c (generating_for_darwin_version): New var.
684         (darwin_text_section): Remove.
685         (darwin_rodata_section): Do not check function section here.
686         (darwin_emit_unwind_label): Do not emit for Darwin >= 9.
687         Emit distinct labels for successive calls for the same decl.
688         (darwin_override_options): Set generating_for_darwin_version.
689         Add FIXME and disable -freorder-blocks-and-partition.
690         Suppress automatic asynchronous unwind tables for m32.
691         Switch off -freorder-blocks-and-partition when unwind tables
692         will be generated.  Update to use generating_for_darwin_version.
693         (darwin_function_section): Check for cases that need to be placed
694         in coalesced sections.
695         * config/darwin-sections.def: Define hot, cold, startup and
696         exit sections for both coalesced and regular code.
697         * config/darwin.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Delete.
698         * config/darwin10.h (TARGET_ASM_EMIT_UNWIND_LABEL): Delete.
699
700 2010-12-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
701
702         * doc/cppopts.texi: Use @var when appropriate.
703         * doc/extend.texi (Structure-Packing Pragmas): Likewise.
704         * doc/gimple.texi (Logical Operators)
705         (Adding a new GIMPLE statement code): Likewise.
706         * doc/invoke.texi (Target Options, Precompiled Headers): Likewise.
707         * doc/plugins.texi (Plugins): Likewise.
708
709         * doc/install.texi (Configuration, Building, Testing, Specific):
710         Remove leading whitespace from examples.
711
712 2010-12-19  Andi Kleen  <ak@linux.intel.com>
713
714         PR lto/46905
715         * collect2.c (main): Handle -fno-lto.
716         * opts.c (common_handle_option): Handle -fno-lto.
717
718 2010-12-19  Eric Botcazou  <ebotcazou@adacore.com>
719
720         PR target/46729
721         * config/sparc/sparc.h (GLOBAL_OFFSET_TABLE_REGNUM): New macro.
722         (PIC_OFFSET_TABLE_REGNUM): Rewrite in terms of above macro.
723         * config/sparc/sparc.c (pic_helper_needed): Delete.
724         (global_offset_table): Likewise.
725         (pic_helper_symbol): Rename to...
726         (got_helper_rtx): ...this.
727         (global_offset_table_rtx): New global variable.
728         (sparc_got_symbol): Likewise.
729         (sparc_got): New static function.
730         (check_pic): Use local variable and call sparc_got.
731         (sparc_tls_symbol): Initialize to NULL_RTX.
732         (sparc_tls_got): In non-PIC mode, reload the GOT register for Sun TLS
733         and 32-bit ABI and copy the GOT symbol to a new register otherwise.
734         (get_pc_thunk_name): Rename local variable.
735         (gen_load_pcrel_sym): New wrapper around load_pcrel_sym{si,di}.
736         (load_pic_register): Rename to...
737         (load_got_register): ...this.  Adjust and call gen_load_pcrel_sym.
738         (sparc_expand_prologue): Do not test flag_pic.
739         (sparc_output_mi_thunk): Use pic_offset_table_rtx directly.
740         (sparc_file_end): Test got_helper_rtx instead of pic_helper_needed.
741         Rename local variable and do not call get_pc_thunk_name again.
742         * config/sparc/sparc.md (load_pcrel_sym): Add operand #3.
743
744 2010-12-19  Dave Korn  <dave.korn.cygwin@gmail.com>
745
746         PR middle-end/46674
747         PR middle-end/46221
748         * varasm.c (symbol_alias_set_t): New typedef for derived pointer_set
749         wrapper class.
750         (symbol_alias_set_create): New wrapper function.
751         (symbol_alias_set_destroy): Likewise.
752         (symbol_alias_set_contains): Likewise.
753         (symbol_alias_set_insert): Likewise.
754         (compute_visible_aliases): Use the above and return symbol_alias_set_t,
755         not a pointer_set.
756         (remove_unreachable_alias_pairs): Adjust likewise to match.
757         (finish_aliases_1): Likewise.
758
759 2010-12-19  Chung-Lin Tang  <cltang@codesourcery.com>
760
761         * config/arm/arm.c (arm_legitimate_index_p): Add VFP load/store
762         index range case. Change to SF/DFmode tests to avoid capturing HFmode.
763         (thumb2_legitimate_index_p): Same.
764
765 2010-12-18  Jakub Jelinek  <jakub@redhat.com>
766
767         PR tree-optimization/46969
768         * tree-parloops.c (struct reduction_info): Add reduc_version.
769         (reduction_info_hash): Return reduc_version field.
770         (reduction_phi): Set reduc_version to gimple_uid (phi).
771         (build_new_reduction): Set reduc_version to SSA_NAME_VERSION of
772         phi result.
773         (set_reduc_phi_uids): New function.
774         (gather_scalar_reductions): Call it at the end through htab_traverse.
775
776 2010-12-18  Nicola Pero  <nicola.pero@meta-innovation.com>
777
778         * c-parser.c (c_parser_objc_try_catch_finally_statement): Call
779         objc_maybe_warn_exceptions.
780         (c_parser_objc_synchronized_statement): Call
781         objc_maybe_warn_exceptions.
782
783 2010-12-18  Jakub Jelinek  <jakub@redhat.com>
784
785         PR tree-optimization/46985
786         * tree-scalar-evolution.c (instantiate_scev_r): If chrec is NULL,
787         return it immediately.
788
789 2010-12-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
790
791         PR target/46915
792         * config/pa/pa.c (branch_to_delay_slot_p): Use next_active_insn instead
793         of next_real_insn.  Search forward checking for both ASM_INPUT and
794         ASM_OPERANDS asms until exit condition is found.
795         (branch_needs_nop_p): Likewise.
796         (use_skip_p): New function.
797         (output_cbranch): Use use_skip_p.
798         (output_bb, output_bvb): Likewise.
799
800 2010-12-18  Kai Tietz  <kai.tietz@onevision.com>
801
802         PR target/36834
803         * config/i386/i386.c (ix86_keep_aggregate_return_pointer):
804         New local function.
805         (ix86_return_pops_args): Use ix86_keep_aggregate_return_pointer
806         function instead of KEEP_AGGREGATE_RETURN_POINTER.
807         (ix86_handle_callee_pop_aggregate_return): New handler.
808         (ix86_attribute_table): Add new attribute
809         callee_pop_aggregate_return.
810         * doc/extend.texi (callee_pop_aggregate_return): Add
811         attribute documentation.
812
813 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
814
815         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS):
816         Only set sjlj exceptions for NeXT/m32.
817
818 2010-12-18  Iain Sandoe  <iains@gcc.gnu.org>
819
820         * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION):
821         Only expose when not building for target.
822
823 2010-12-17  Joseph Myers  <joseph@codesourcery.com>
824
825         * config/netbsd.opt, config/netbsd-elf.opt: New files.
826         * config.gcc (alpha*-*-netbsd*, arm*-*-netbsdelf*, arm*-*-netbsd*,
827         i[34567]86-*-netbsdelf*, i[34567]86-*-netbsd*, x86_64-*-netbsd*,
828         m68k*-*-netbsdelf*, mips*-*-netbsd*, powerpc-*-netbsd*,
829         sh*-*-netbsd*, sparc-*-netbsdelf*, sparc64-*-netbsd*,
830         vax-*-netbsdelf*, vax-*-netbsd*): Use these .opt files.
831
832 2010-12-17  Richard Henderson  <rth@redhat.com>
833
834         * regcprop.c (find_oldest_value_reg): Continue search instead of
835         failing if an element in the copy chain is of the wrong regclass.
836
837 2010-12-17  Paolo Bonzini  <bonzini@gnu.org>
838
839         PR c/20385
840         * function.c (used_types_insert): Handle ERROR_MARK.
841         * c-decl.c (grokdeclarator): Handle ERROR_MARK.
842         (declspecs_add_type): Leave error_mark_node in specs->type.
843         (finish_declspecs): Change it to integer_type_node here.
844         * c-parser.c (c_parser_peek_2nd_token): Move earlier.
845         (enum c_lookahead_kind): New.
846         (c_parser_next_token_starts_typename): New name of
847         c_parser_next_tokens_start_typename.  Accept lookahead enum
848         and handle it here instead of...
849         (c_parser_next_tokens_start_declaration): ... here.  Call it.
850         (c_parser_declspecs): Accept another argument.  Do not exit
851         on C_ID_ID if it is guessed to be an unknown typename.
852         (c_parser_parms_declarator): Use 2nd token to distinguish a K&R
853         declaration from an ANSI declaration starting with an unknown
854         typename.
855         (c_parser_struct_declaration, c_parser_objc_type_name,
856         c_parser_typeof_specifier, c_parser_declarator,
857         c_parser_direct_declarator_inner): Adjust calls.
858         (c_parser_parameter_declaration): Likewise.
859         (c_parser_type_name): Pass back an error_mark_node to the caller.
860         (c_parser_postfix_expression): Do error recovery when
861         c_parser_type_name returns NULL.
862
863 2010-12-17  Joseph Myers  <joseph@codesourcery.com>
864
865         * config/i386/netware.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE): Define.
866         * config/i386/nto.h (LIB_SPEC, ASM_SPEC): Define.
867         (DBX_REGISTER_NUMBER): Undefine.
868         * config/i386/sol2.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
869         * config/i386/vxworksae.h (ASM_SPEC, SIZE_TYPE, PTRDIFF_TYPE):
870         Define.
871         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
872         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
873         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
874         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
875         i[3456x]86-*-netware*, i[34567]86-*-nto-qnx*,
876         i[34567]86-*-solaris2*,
877         i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae): Don't use svr4.h.
878
879 2010-12-17  H.J. Lu  <hongjiu.lu@intel.com>
880
881         * config/i386/i386.c (move_or_delete_vzeroupper_2): Replace
882         "BB [%i]" with "[bb %i]" in dump.
883         (move_or_delete_vzeroupper_1): Likewise.
884         (rescan_move_or_delete_vzeroupper): Likewise.  Always dump
885         upper 128bit state at exit.
886
887 2010-12-17  Joseph Myers  <joseph@codesourcery.com>
888
889         * config/interix.opt: New.
890         * config/interix.h (LINK_SPEC): Don't handle -soname*.
891         * config.gcc (i[34567]86-*-interix3*): Use interix.opt.
892
893 2010-12-17  Andrew Stubbs  <ams@codesourcery.com>
894
895         * config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
896         operand order for plus.
897         Drop redundant % from constraints.
898
899 2010-12-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
900
901         * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
902         _floatunstisf.
903         * config/spu/spu.md ("floattisf2"): New expander.
904         ("floatunstisf2"): New insn pattern and splitter.
905         ("cgt_ti_m1"): New insn pattern.
906
907 2010-12-17  Bernd Schmidt  <bernds@codesourcery.com>
908
909         * config/arm/arm.c (arm_select_cc_mode): Before calling
910         arm_select_dominance_cc_mode for AND or IOR operations, ensure
911         that op is NE or EQ.
912
913 2010-12-17  Alexander Monakov  <amonakov@ispras.ru>
914
915         PR middle-end/46761
916         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
917         to use unadjusted UB.
918
919 2010-12-17  Dodji Seketeli  <dodji@redhat.com>
920
921         * dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
922         info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
923         that underlying type instead.
924
925 2010-12-16  Jan Hubicka  <jh@suse.cz>
926
927         PR middle-end/44563
928         * ipa-inline.c: Update doplevel comment.
929         (cgraph_estimate_size_after_inlining): Remove times attribute.
930         (cgraph_mark_inline_edge): Update.
931         (cgraph_mark_inline): Remove.
932         (cgraph_estimate_growth): Update.
933         (cgraph_check_inline_limits): Remove one only argument.
934         (cgraph_edge_badness): Update.
935         (cgraph_decide_recursive_inlining): Update.
936         (cgraph_decide_inlining_of_small_function): Fix handling of
937         tree_can_inline_p  and call_stmt_cannot_inline_p.
938         (cgraph_flatten): Likewise.
939         (cgraph_decide_inlining): Update.
940         (cgraph_decide_inlining_incrementally): Fix handling of
941         call_stmt_cannot_inline_p.
942
943 2010-12-16  Joseph Myers  <joseph@codesourcery.com>
944
945         * config/darwin.opt (dylinker, headerpad_max_install_names,
946         keep_private_externs, nofixprebinding, nomultidefs, noprebind,
947         noseglinkedit, object, prebind, prebind_all_twolevel_modules,
948         preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
949         twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
950         Driver options.
951         * config/darwin.h (LINK_SPEC): Remove '*' after
952         headerpad_max_install_names.
953
954 2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>
955
956         PR tree-optimization/46924
957         * graphite-sese-to-poly.c (detect_commutative_reduction): Do not
958         detect reductions outside the current SESE region.
959         * sese.h (stmt_in_sese_p): New.
960         (defined_in_sese_p): Call stmt_in_sese_p.
961
962 2010-12-16  Jakub Jelinek  <jakub@redhat.com>
963
964         PR tree-optimization/46966
965         * graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
966         for bbs that are removed from SCOP_BBS vector.
967
968 2010-12-16  Eric Botcazou  <ebotcazou@adacore.com>
969
970         * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
971         get_ref_base_and_extent returns -1 as the max size.
972
973 2010-12-16  Konrad Eisele  <konrad@gaisler.com>
974             Eric Botcazou  <ebotcazou@adacore.com>
975
976         Support for LEON processor
977         * config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
978         (sparc-*-linux*): Likewise.
979         (sparc-*-rtems*): Remove Solaris left-overs.
980         (sparc*-*-*): Remove obsolete sparc86x setting.
981         (sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
982         * doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
983         * config/sparc/sparc.h (TARGET_CPU_leon): Define.
984         (TARGET_CPU_sparc86x): Delete.
985         (TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
986         (TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
987         (TARGET_CPU_f934): Likewise.
988         (TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
989         (CPP_CPU_SPEC): Add entry for -mcpu=leon.
990         (enum processor_type): Add PROCESSOR_LEON.  Reorganize.
991         * config/sparc/sparc.c (leon_costs): New cost array.
992         (sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
993         Initialize cost array to leon_costs if -mtune=leon.
994         * config/sparc/sparc.md (cpu attribute): Add leon.  Reorganize.
995         Include leon.md scheduling description.
996         * config/sparc/leon.md: New file.
997         * config/sparc/t-elf: Do not assemble Solaris startup files.
998         * config/sparc/t-leon: New file.
999         * config/sparc/t-leon3: Likewise.
1000
1001 2010-12-16  Jakub Jelinek  <jakub@redhat.com>
1002
1003         PR tree-optimization/43655
1004         * tree-ssa-ter.c (is_replaceable_p): Don't use
1005         gimple_references_memory_p for -O0, instead check for load
1006         by looking at rhs.
1007
1008 2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>
1009
1010         PR tree-optimization/46404
1011         * graphite-clast-to-gimple.c (gloog): Call scev_reset.
1012
1013 2010-12-16  Anatoly Sokolov  <aesok@post.ru>
1014
1015         * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1016         * config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
1017         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1018
1019 2010-12-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1020
1021         * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
1022         * config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
1023         (LIBGCC2_UNITS_PER_WORD): Define if not already defined.
1024
1025 2010-12-16  Jakub Jelinek  <jakub@redhat.com>
1026
1027         PR debug/46893
1028         * cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
1029         use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
1030
1031 2010-12-16  Chung-Lin Tang  <cltang@codesourcery.com>
1032
1033         PR target/46883
1034         * config/arm/arm.md
1035         (zero_extendhisi2 for register input splitter): Change
1036         "register_operand" to "s_register_operand".
1037         (zero_extendqisi2 for register input splitter): Same.
1038
1039 2010-12-16  Jan Hubicka  <jh@suse.cz>
1040
1041         PR middle-end/46939
1042         * predic.c (predict_paths_leading_to_edge): New function.
1043         (apply_return_prediction): Use it.
1044         (predict_paths_for_bb): Do not special case abnormals.
1045
1046 2010-12-16  Joseph Myers  <joseph@codesourcery.com>
1047
1048         * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
1049         extra_options twice.
1050
1051 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
1052
1053         * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
1054         * doc/tm.texi: Regenerate.
1055         * system.h (US_SOFTWARE_GOFAST): Poison.
1056         * config.gcc (enable_gofast): Don't handle.
1057         * config/gofast.h: Remove.
1058         * config/mips/t-gofast: Remove.
1059         * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle.
1060         * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle.
1061         * config/mips/elforion.h: Don't mention GOFAST in comment.
1062         * config/mips/mips.c: Don't include gofast.h.
1063         (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
1064         * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define
1065         US_SOFTWARE_GOFAST.
1066         * config/sparc/sparc.c: Don't include gofast.h.
1067         (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs.
1068         * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine
1069         US_SOFTWARE_GOFAST.
1070
1071 2010-12-14  Jan Hubicka  <jh@suse.cz>
1072
1073         * config/darwin.opt (dylinker, headerpad_max_install_names,
1074         keep_private_externs, nofixprebinding, nomultidefs, noprebind,
1075         noseglinkedit, object, prebind, prebind_all_twolevel_modules,
1076         preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
1077         twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
1078         Driver options.
1079         * config/darwin.h (LINK_SPEC): Remove '*' after
1080         headerpad_max_install_names.
1081
1082 2010-12-14  Jan Hubicka  <jh@suse.cz>
1083
1084         * tree.c (get_file_function_name): Avoid using random seed on
1085         GLOBAL_sub_I and GLOBAL_sub_D.
1086
1087 2010-12-15  Martin Jambor  <mjambor@suse.cz>
1088
1089         PR tree-optimization/46053
1090         PR middle-end/46287
1091         PR middle-end/46242
1092         * cgraph.h (cgraph_indirect_call_info): New field thunk_delta.
1093         * gimple.h (gimple_fold_obj_type_ref): Declaration removed.
1094         (gimple_fold_call): Declare.
1095         (gimple_adjust_this_by_delta): Likewise.
1096         * cgraph.c (cgraph_make_edge_direct): New parameter delta.  Updated
1097         all users.
1098         (cgraph_clone_edge): Create a copy of indirect_info also for direct
1099         edges.
1100         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Adjust this
1101         parameters.
1102         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Renamed to
1103         gimple_get_virt_mehtod_for_binfo, new parameter delta.  Do not search
1104         through thunks, in fact bail out if we encounter one, check that
1105         BINFO_VIRTUALS is not NULL.
1106         (gimple_adjust_this_by_delta): New function.
1107         (gimple_fold_obj_type_ref): Removed.
1108         (gimple_fold_obj_type_ref_call): New function.
1109         (fold_gimple_call): Renamed to gimple_fold_call, made external.
1110         Updated users.  Call gimple_fold_obj_type_ref_call instead of
1111         gimple_fold_obj_type_ref.
1112         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Process
1113         thunk deltas.
1114         (ipcp_discover_new_direct_edges): Likewise.
1115         * ipa-prop.c (ipa_make_edge_direct_to_target): New parameter delta.
1116         Updated callers.
1117         (ipa_write_indirect_edge_info): Stream thunk_delta.
1118         (ipa_read_indirect_edge_info): Likewise.
1119         * tree-ssa-ccp.c (ccp_fold_stmt): Use gimple_fold_call instead of
1120         gimple_fold_obj_type_ref.
1121
1122 2010-12-15  Alexander Monakov  <amonakov@ispras.ru>
1123
1124         PR rtl-optimization/46649
1125         * sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first
1126         basic block in the region.
1127
1128 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
1129
1130         * config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
1131         * config.gcc (xstormy16-*-elf): Don't use svr4.h.
1132
1133 2010-12-15  Joseph Myers  <joseph@codesourcery.com>
1134
1135         * config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1136         * config.gcc (rx-*-elf*): Don't use svr4.h.
1137
1138 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
1139
1140         PR tree-optimization/46845
1141         * sese.c (scalar_evolution_in_region): Handle scop parameters
1142         before scev analysis.
1143
1144 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
1145
1146         PR tree-optimization/46928
1147         * tree-data-ref.c (analyze_overlapping_iterations): Handle A[p] == A[p]
1148         in data dependence analysis with p a parameter of the loop.
1149
1150 2010-12-14  Sebastian Pop  <sebastian.pop@amd.com>
1151
1152         PR tree-optimization/45948
1153         * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): New.
1154         (stmt_has_scalar_dependences_outside_loop): New.
1155         (stmt_generated_in_another_partition): New.
1156         (add_scalar_computations_to_partition): New.
1157         (rdg_build_partitions): Call add_scalar_computations_to_partition.
1158
1159 2010-12-14  Joseph Myers  <joseph@codesourcery.com>
1160
1161         * config/arc/arc.h (LIB_SPEC): Define.
1162         * config.gcc (arc-*-elf*): Don't use svr4.h.
1163
1164 2010-12-14  Joseph Myers  <joseph@codesourcery.com>
1165
1166         * config/sh/elf.h (LIB_SPEC): Define.
1167         * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* |
1168         sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* |
1169         sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* |
1170         sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*,
1171         sh-wrs-vxworks): Don't use svr4.h.
1172
1173 2010-12-14  Jan Hubicka  <jh@suse.cz>
1174
1175         PR lto/46940
1176         PR lto/44463
1177         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Construct nodes
1178         for aliases when they are used.
1179
1180 2010-12-14  Joseph Myers  <joseph@codesourcery.com>
1181
1182         * config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
1183         sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
1184         sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
1185         sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.
1186
1187 2010-12-14  Thomas Klein  <th.r.klein@web.de>
1188
1189         * config/arm/arm.c (arm_expand_prologue): Report the static stack
1190         size if -fstack-usage is used.
1191         (thumb1_expand_prologue): Likewise.
1192
1193 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
1194
1195         PR debug/46885
1196         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
1197         instead of gsi_last_nondebug_bb if bump_in_latch.
1198
1199         PR tree-optimization/46909
1200         * gimple-fold.c (and_var_with_comparison_1): Save partial
1201         result even in the is_and case, if both partial results
1202         are the same, return it.
1203         (or_var_with_comparison_1): Use is_or predicate instead of
1204         innercode == TRUTH_OR_EXPR test.  Save partial result
1205         even in the is_or case, if both partial results are the
1206         same, return it.  In the !is_or case when both partial
1207         results are the same, return the partial result instead
1208         of boolean_true_node.
1209
1210 2010-12-14  Jan Hubicka  <jh@suse.cz>
1211
1212         PR middle-end/46667
1213         * varasm.c (assemble_start_function): Do not call
1214         resolve_unique_section.
1215         * cfgexpand.c (gimple_expand_cfg): Resolve it here.
1216
1217 2010-12-14  Alexander Monakov  <amonakov@ispras.ru>
1218
1219         PR rtl-optimization/46875
1220         * sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
1221         * sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.
1222
1223 2010-12-14  Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1224
1225         * config/h8300/h8300.md (define_split) : Add condition for
1226         "and with single_zero" splitter to handle 16-bit const operands.
1227         * config/h8300/h8300.md (define_split) : Add condition for
1228         "ior with single_one" splitter to handle 16-bit const operands.
1229         * config/h8300/h8300.md (define_split) : Add condition for
1230         "xor with single_one" splitter to handle 16-bit const operands.
1231         * testsuite/gcc.dg/h8300-bit-insn-ice.c: New.
1232
1233 2010-12-13  Jan Hubicka  <jh@suse.cz>
1234
1235         PR middle-end/45388
1236         * ipa.c (cgraph_build_static_cdtor_1): Break out from ...  Add FINAL
1237         parameter.
1238         (cgraph_build_static_cdtor): ... here.
1239         (build_cdtor): Use cgraph_build_static_cdtor_1.
1240
1241 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1242
1243         * config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
1244         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1245         * config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.
1246
1247 2010-12-14  Bernd Schmidt  <bernds@codesourcery.com>
1248
1249         PR rtl-optimization/44374
1250         Reapply patch with fixes.
1251         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1252         * df-core.c (df_set_bb_dirty): Set it.
1253         * ifcvt.c (find_memory): Remove function.
1254         (dead_or_predicable): Use can_move_insns_across.
1255         * df.h (can_move_insns_across): Declare function.
1256         * cfgcleanup.c (block_was_dirty): New static variable.
1257         (flow_find_head_matching_sequence): Test for epilogue notes.
1258         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1259         than df_get_bb_dirty.
1260         (try_head_merge_bb): New static function.
1261         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1262         is set.
1263         * df-problems.c: Include "target.h"
1264         (df_simulate_find_uses): New static function.
1265         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1266         (find_memory, find_memory_store): New static functions.
1267         (can_move_insns_across): New function.
1268         * Makefile.in (df-problems.o): Update dependencies.
1269
1270 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1271
1272         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
1273         (DBX_REGISTER_NUMBER): Undefine.
1274         * config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
1275         (DBX_REGISTER_NUMBER): Undefine.
1276         * config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
1277
1278 2010-12-13  Jack Howarth <howarth@bromo.med.uc.edu>
1279             Joseph Myers <joseph@codesourcery.com>
1280
1281         PR bootstrap/46650
1282         * system.h: Include cstring for cxx bootstrap.
1283
1284 2010-12-13  Jakub Jelinek  <jakub@redhat.com>
1285
1286         PR lto/46879
1287         * lto-streamer-out.c (output_gimple_stmt): Never replace first
1288         GIMPLE_DEBUG argument with MEM_REF.
1289
1290         PR debug/46867
1291         * var-tracking.c (emitted_notes, string_pointer_flags): Removed.
1292         (emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
1293         (vt_emit_notes): Don't initialize and destroy emitted_notes.
1294
1295 2010-12-13  Nathan Froyd  <froydnj@codesourcery.com>
1296
1297         PR target/46040
1298         * config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
1299         (arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
1300
1301 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1302
1303         * config/v850/v850.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1304         WCHAR_TYPE_SIZE): Define.
1305         * config.gcc (v850e1-*-*, v850e-*-*, v850-*-*): Don't use svr4.h.
1306
1307 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1308
1309         * config.gcc (s390-*-linux*, s390x-*-linux*, s390x-ibm-tpf*):
1310         Don't use svr4.h.
1311
1312 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1313
1314         * config/mn10300/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1315         WCHAR_TYPE_SIZE): Undefine.
1316         * config/mn10300/mn10300.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1317         WCHAR_TYPE_SIZE): Define.
1318         * config.gcc (mn10300-*-*): Don't use svr4.h.
1319
1320 2010-12-13  Joseph Myers  <joseph@codesourcery.com>
1321
1322         * config/m68k/linux.h (DBX_REGISTER_NUMBER): Undefine and redefine.
1323         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1324         * config.gcc (m68k-*-uclinux*, m68k-*-linux*): Don't use svr4.h.
1325
1326 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
1327
1328         PR debug/46756
1329         * jump.c (mark_all_labels): Skip debug insns.
1330
1331 2010-12-13  Alexandre Oliva  <aoliva@redhat.com>
1332
1333         PR debug/46782
1334         * cfgcleanup.c (try_forward_edges): Skip debug insns.
1335
1336 2010-12-12  Jan Hubicka  <jh@suse.cz>
1337             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1338
1339         * varasm.c (default_function_section): Check flag_reorder_functions
1340         and targetm.have_named_sections.
1341         * config/darwin.c (darwin_function_section): Check
1342         flag_reorder_functions.
1343
1344 2010-12-12  Finn Thain  <fthain@telegraphics.com.au>
1345
1346         PR target/46179
1347         * config/m68k/m68k.c (handle_move_double): Insert calls to
1348         m68k_final_prescan_insn to clean up @TLS operand syntax.
1349
1350 2010-12-10  Sebastian Pop  <sebastian.pop@amd.com>
1351
1352         PR tree-optimization/43023
1353         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p):
1354         Removed.
1355         (stores_zero_from_loop): Call stmt_stores_zero.
1356         * tree-data-ref.h (stmt_stores_zero): New.
1357         * tree-loop-distribution.c (generate_memset_zero): Do not return a
1358         boolean.  Call gcc_assert on stride_of_unit_type_p.
1359         (generate_builtin): Call stmt_stores_zero.
1360         (rdg_flag_all_uses): Removed.
1361         (rdg_flag_similar_memory_accesses): Removed.
1362         (build_rdg_partition_for_component): Removed parameter
1363         other_stores.  Removed call to rdg_flag_similar_memory_accesses.
1364         (can_generate_builtin): New.
1365         (similar_memory_accesses): New.
1366         (fuse_partitions_with_similar_memory_accesses): New.
1367         (rdg_build_partitions): Call
1368         fuse_partitions_with_similar_memory_accesses.
1369
1370 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
1371
1372         PR rtl-optimization/46804
1373         * regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
1374         on the setter of src_reg rather than on insn.  If it is
1375         equal to the setter's original SET_SRC, replace it with its
1376         zero or sign extension instead of dropping it.
1377
1378 2010-12-10  Richard Guenther  <rguenther@suse.de>
1379
1380         PR lto/46808
1381         * lto-symtab.c (lto_symtab_merge_decls_2): Avoid type warnings
1382         after errors.
1383         (lto_symtab_merge_decls_1): Adjust.
1384
1385 2010-12-10  Dave Korn  <dave.korn.cygwin@gmail.com>
1386
1387         PR middle-end/46674
1388         PR lto/43157
1389         * target.def (mangle_assembler_name): New target asm_out hook.
1390         * targhooks.c (default_mangle_assembler_name): Add default hook
1391         implementation.
1392         * targhooks.h (default_mangle_assembler_name): Add prototype.
1393         * lto-symtab.c (lto_symtab_register_decl): Use new hook when
1394         processing DECL_ASSEMBLER_NAMEs for lto symtabs.
1395         (lto_symtab_get_resolution): Likewise.
1396         (lto_cgraph_replace_node): Likewise.
1397         (lto_symtab_prevailing_decl): Likewise.
1398         * lto-streamer-out.c (write_symbol): Likewise.
1399         * doc/tm.texi.in (TARGET_MANGLE_ASSEMBLER_NAME): Add @hook directive.
1400         * doc/tm.texi: Regenerate.
1401         * config/i386/cygming.h (TARGET_MANGLE_ASSEMBLER_NAME): Define to
1402         point at i386_pe_mangle_assembler_name.
1403         * config/i386/winnt.c (i386_pe_mangle_assembler_name): New function.
1404         * config/i386/i386-protos.h (i386_pe_mangle_assembler_name): Add
1405         prototype.
1406
1407 2010-12-10  Nathan Froyd  <froydnj@codesourcery.com>
1408
1409         * c-typeck.c (readonly_error): Delete.
1410
1411 2010-12-10  Jakub Jelinek  <jakub@redhat.com>
1412
1413         PR rtl-optimization/46865
1414         * rtl.c (rtx_equal_p_cb, rtx_equal_p): For last operand of
1415         ASM_OPERANDS and ASM_INPUT if integers are different, call locator_eq.
1416         * jump.c (rtx_renumbered_equal_p): Likewise.
1417
1418         PR tree-optimization/46864
1419         * tree-ssa-loop-im.c (loop_suitable_for_sm): Return false even
1420         when there are EDGE_EH exit edges.
1421
1422 2010-12-10  Tobias Burnus  <burnus@net-b.de>
1423
1424         PR fortran/46540
1425         * configure.ac: Handle --disable-libquadmath-support.
1426         * doc/install.texi: Document --disable-libquadmath and
1427         --disable-libquadmath-support
1428         * configure: Regenerate.
1429         * config.in: Regenerate.
1430
1431 2010-12-10  Jack Howarth  <howarth@bromo.med.uc.edu>
1432             Iain Sandoe  <iains@gcc.gnu.org>
1433
1434         PR 43751/target
1435         * config/darwin9.h (DSYMUTIL_SPEC): Add fortran source types.
1436
1437 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
1438
1439         * config/rs6000/rs6000.c
1440         (rs6000_darwin64_record_arg_advance_recurse): Name register increment
1441         explicitly.  (rs6000_darwin64_record_arg_recurse): Make sure we split
1442         long doubles when we run out of regs.   Also flag that this requires
1443         stack and therefore cannot be returned by value.
1444         (rs6000_darwin64_record_arg): Update comment.
1445         (rs6000_function_value): Likewise.
1446
1447 2010-12-10  Nicola Pero  <nicola.pero@meta-innovation.com>
1448
1449         * c-parser.c (c_parser_objc_class_definition): Recognize
1450         Objective-C 2.0 class extensions.
1451
1452 2010-12-10  Iain Sandoe <iains@gcc.gnu.org>
1453
1454         * config/darwin.c: Remove c-tree.h and c-lang.h
1455         * config/t-darwin: Remove dependencies on c-tree.h and c-lang.h.
1456
1457 2010-12-10  Joern Rennecke  <amylaar@spamcop.net>
1458
1459         PR target/46881
1460         * doc/tm.texi: Regenerate.
1461         * target.def: Fix "preferred" spelling.  Refer to rclass by its
1462         exact name.
1463         * config/arm/arm.c (arm_preferred_rename_class): Rename parameter class
1464         to rclass.
1465
1466 2010-12-09  Paul Koning  <ni1d@arrl.net>
1467
1468         * config/pdp11/pdp11-protos.h (output_move_double,
1469         output_move_quad): Delete.
1470         (output_move_multiple, pdp11_expand_operands): New functions.
1471         (pdp11_action, pdp11_partorder): New enums.
1472         * config/pdp11/pdp11.md (movdi, movsi, movdf, movsf): Use
1473         output_move_multiple.
1474         (adddi3, subdi3, negdi2): New patterns.
1475         (addsi3, subsi3, negsi2): Use pdp11_expand_operands.
1476         (abshi2): Delete.
1477         (neghi2, negqi2): Use PDPint iterator.
1478         * config/pdp11/pdp11.c (find_addr_reg, output_move_double,
1479         output_move_quad): Delete.
1480         (pdp11_expand_operands, output_move_multiple): New functions.
1481
1482 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1483
1484         * config/vax/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1485         * config.gcc (vax-*-linux*): Don't use svr4.h.
1486
1487 2010-12-09  Nathan Froyd  <froydnj@codesourcery.com>
1488
1489         * c-typeck.c (build_indirect_ref): Call invalid_indirection_error.
1490
1491 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1492
1493         * doc/extend.texi (Attribute Syntax): Correct description of
1494         attributes in pointer declarators.
1495
1496 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1497
1498         * config/mips/vxworks.h (DBX_REGISTER_NUMBER): Undefine.
1499         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux*,
1500         mips*-*-linux*, mips-wrs-vxworks): Don't use svr4.h.
1501
1502 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1503
1504         * config/mep/mep.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1505         WCHAR_TYPE_SIZE): Define.
1506         * config.gcc (mep-*-*): Don't use svr4.h.
1507
1508 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1509
1510         * config/mcore/mcore.h (PTRDIFF_TYPE, WCHAR_TYPE,
1511         WCHAR_TYPE_SIZE): Define.
1512         * config/svr3.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1513         WCHAR_TYPE_SIZE): Don't define.
1514         * config.gcc (mcore-*-elf): Don't use svr4.h.
1515
1516 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1517
1518         * config.gcc (m32r-*-elf*, m32rle-*-elf*, m32r-*-rtems*,
1519         m32r-*-linux*, m32rle-*-linux*): Don't use svr4.h.
1520
1521 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1522
1523         * config/iq2000/iq2000.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
1524         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1525         * config.gcc (iq2000*-*-elf*): Don't use svr4.h.
1526
1527 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1528
1529         * config.gcc (ia64*-*-linux*, ia64*-*-hpux*): Don't use svr4.h.
1530
1531 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1532
1533         * config/pa/pa32-linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1534         * config.gcc (hppa*64*-*-linux*, hppa*-*-linux*): Don't use svr4.h.
1535
1536 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1537
1538         * config/moxie/moxie.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
1539         WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1540         * config/moxie/rtems.h (LINK_SPEC, SIZE_TYPE, PTRDIFF_TYPE,
1541         WCHAR_TYPE, WCHAR_TYPE_SIZE): Undefine.
1542         * config.gcc (moxie-*-elf, moxie-*-uclinux*): Don't use svr4.h.
1543
1544 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1545
1546         * config/frv/frv.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE,
1547         WCHAR_TYPE_SIZE): Define.
1548         * config.gcc (frv-*-elf, frv-*-*linux*): Don't use svr4.h.
1549
1550 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1551
1552         * config/fr30/fr30.h (LIB_SPEC, LINK_SPEC, SIZE_TYPE,
1553         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1554         * config.gcc (fr30-*-elf): Don't use svr4.h.
1555
1556 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1557
1558         * config/cris/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
1559         * config.gcc (crisv32-*-linux* | cris-*-linux*): Don't use svr4.h.
1560
1561 2010-12-09  Richard Guenther  <rguenther@suse.de>
1562
1563         PR middle-end/46844
1564         * gimple-fold.c (canonicalize_constructor_val): Canonicalize addresses.
1565
1566 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1567
1568         * config/i386/netware.h (TARGET_POSIX_IO): Define.
1569         * config/i386/nto.h (TARGET_POSIX_IO): Define.
1570         * config/ia64/hpux.h (TARGET_POSIX_IO): Define.
1571         * config/moxie/moxie.h (TARGET_POSIX_IO): Don't undefine.
1572         * config/openbsd.h (TARGET_POSIX_IO): Define.
1573         * config/rtems.h (TARGET_POSIX_IO): Define.
1574         * config/sh/embed-elf.h (TARGET_POSIX_IO): Don't undefine.
1575         * config/sol2.h (TARGET_POSIX_IO): Define.
1576         * config/svr4.h (TARGET_POSIX_IO): Don't define.
1577         * config/vxworksae.h (TARGET_POSIX_IO): Define.
1578
1579 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1580
1581         * config/i386/nto.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1582         * config/ia64/hpux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1583         * config/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1584         undefine.
1585         * config/mips/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1586         undefine.
1587         * config/mips/netbsd.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1588         Don't undefine.
1589         * config/rs6000/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1590         Don't undefine.
1591         * config/rs6000/linux64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1592         Don't undefine.
1593         * config/sol2.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
1594         * config/sparc/netbsd-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1595         Don't undefine.
1596         * config/sparc/openbsd64.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1597         Don't undefine.
1598         * config/sparc/sp64-elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
1599         Don't undefine.
1600         * config/svr4.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't define.
1601         * config/xtensa/elf.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Don't
1602         undefine.
1603
1604 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1605
1606         * config/ia64/hpux.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
1607         non-GNU assembler.
1608         * config/m68k/netbsd-elf.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1609         * config/m68k/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1610         * config/mips/openbsd.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1611         * config/sol2.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Define for
1612         non-GNU assembler.
1613         * config/sparc/sparc.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1614         * config/svr4.h (AS_NEEDS_DASH_FOR_PIPED_INPUT): Remove.
1615
1616 2010-12-09  Martin Jambor  <mjambor@suse.cz>
1617
1618         * ipa-prop.c (compute_complex_ancestor_jump_func): Work also if the
1619         zero is the first phi parameter.
1620
1621 2010-12-09  Martin Jambor  <mjambor@suse.cz>
1622
1623         * ipa-prop.h (struct ipa_parm_adjustment): New field alias_ptr_type.
1624         * ipa-prop.c (ipa_modify_call_arguments): Use it.
1625         * tree-sra.c (splice_param_accesses): Test that all accesses have the
1626         same alias reference type.
1627         (turn_representatives_into_adjustments): Set alias_ptr_type of the
1628         adjustment.
1629
1630 2010-12-09  Martin Jambor  <mjambor@suse.cz>
1631
1632         PR middle-end/46734
1633         * tree-sra.c (splice_param_accesses): Check that there are not
1634         multiple ADDRESSABLE types.
1635
1636 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1637
1638         * config/arc/arc.h (ASM_SPEC): Remove %{v}.
1639         * config/bfin/bfin.h (ASM_SPEC): Remove %{v}.
1640         * config/cris/cris.h (ASM_SPEC): Remove %{v:-v}.
1641         * config/fr30/fr30.h (ASM_SPEC): Remove %{v}.
1642         * config/frv/frv.h (ASM_SPEC): Remove %{v}.
1643         * config/i386/linux.h (ASM_SPEC): Remove %{v}.
1644         * config/i386/linux64.h (ASM_SPEC): Remove %{v}.
1645         * config/i386/mingw-w64.h (ASM_SPEC): Remove %{v}.
1646         * config/i386/sol2-10.h (ASM_SPEC): Remove %{v}.
1647         * config/i386/vxworks.h (ASM_SPEC): Remove %{v}.
1648         * config/i386/x86-64.h (ASM_SPEC): Remove %{v}.
1649         * config/lm32/lm32.h (ASM_SPEC): Remove %{v}.
1650         * config/m32r/m32r.h (ASM_SPEC): Remove %{v}.
1651         * config/m68k/linux.h (ASM_SPEC): Remove %{v:-V}.
1652         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{v}.
1653         * config/mips/mips.h (ASM_SPEC): Remove %{v}.
1654         * config/mips/vxworks.h (ASM_SPEC): Remove %{v}.
1655         * config/pa/pa-linux.h (ASM_SPEC): Remove %{v:-V}.
1656         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Remove %{v}.
1657         * config/rs6000/linux64.h (ASM_SPEC): Remove %{v:-V}.
1658         * config/rs6000/vxworks.h (ASM_SPEC): Remove %{v:-v}.
1659         * config/sparc/openbsd64.h (ASM_SPEC): Remove %{v:-V}.
1660         * config/svr4.h (SVR4_ASM_SPEC): Remove %{v:-V}.
1661         * config/xtensa/elf.h (ASM_SPEC): Remove %{v}.
1662         * config/xtensa/linux.h (ASM_SPEC): Remove %{v}.
1663
1664 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1665
1666         * config/i386/openbsdelf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1667         * config/mips/openbsd.h (LINK_SPEC): Use %{r:} not %{r*:}.
1668         * config/netbsd-aout.h (NETBSD_LINK_SPEC_AOUT): Use %{r:} not %{r*:}.
1669         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Use %{r:} not %{r*:}.
1670         * config/sparc/openbsd64.h (LINK_SPEC): Use %{r:} not %{r*:}.
1671         * config/vax/netbsd-elf.h (LINK_SPEC): Use %{r:} not %{r*:}.
1672
1673 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1674
1675         * config/alpha/freebsd.h (LINK_SPEC): Don't use %{!dynamic-linker:}.
1676         * config/alpha/linux-elf.h (LINK_SPEC): Likewise.
1677         * config/arm/freebsd.h (LINK_SPEC): Likewise.
1678         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Likewise.
1679         * config/bfin/linux.h (LINK_SPEC): Likewise.
1680         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Likewise.
1681         * config/frv/linux.h (LINK_SPEC): Likewise.
1682         * config/i386/freebsd.h (LINK_SPEC): Likewise.
1683         * config/i386/freebsd64.h (LINK_SPEC): Likewise.
1684         * config/i386/linux.h (LINK_SPEC): Likewise.
1685         * config/i386/linux64.h (LINK_SPEC): Likewise.
1686         * config/i386/openbsdelf.h (LINK_SPEC): Likewise.
1687         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
1688         * config/ia64/linux.h (LINK_SPEC): Likewise.
1689         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
1690         * config/m32r/linux.h (LINK_SPEC): Likewise.
1691         * config/m68k/linux.h (LINK_SPEC): Likewise.
1692         * config/microblaze/linux.h (LINK_SPEC): Likewise.
1693         * config/mips/linux.h (LINK_SPEC): Likewise.
1694         * config/mips/linux64.h (LINK_SPEC): Likewise.
1695         * config/mips/openbsd.h (LINK_SPEC): Likewise.
1696         * config/mn10300/linux.h (LINK_SPEC): Likewise.
1697         * config/netbsd-elf.h (LINK_SPEC): Likewise.
1698         * config/pa/pa-linux.h (LINK_SPEC): Likewise.
1699         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC32,
1700         LINK_OS_LINUX_SPEC64): Likewise.
1701         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC,
1702         LINK_OS_LINUX_SPEC, LINK_OS_GNU_SPEC, LINK_OS_NETBSD_SPEC): Likewise.
1703         * config/s390/linux.h (LINK_SPEC): Likewise.
1704         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Likewise.
1705         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
1706         * config/sparc/linux.h (LINK_SPEC): Likewise.
1707         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1708         LINK_SPEC): Likewise.
1709         * config/sparc/openbsd64.h (LINK_SPEC): Likewise.
1710         * config/vax/linux.h (LINK_SPEC): Likewise.
1711         * config/xtensa/linux.h (LINK_SPEC): Likewise.
1712
1713 2010-12-09  Joseph Myers  <joseph@codesourcery.com>
1714
1715         * config/bfin/bfin.h (ASM_SPEC): Remove %{n} and %{T}.
1716         * config/frv/frv.h (ASM_SPEC): Likewise.
1717         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
1718         * config/i386/sol2.h (ASM_SPEC): Likewise.
1719         * config/m68k/linux.h (ASM_SPEC): Likewise.
1720         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
1721         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
1722         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1723         * config/sol2.h (ASM_SPEC): Likewise.
1724         * config/sparc/linux.h (ASM_SPEC): Likewise.
1725         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1726         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
1727         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
1728         * config/svr4.h (SVR4_ASM_SPEC): Likewise.
1729
1730 2010-12-09  Richard Guenther  <rguenther@suse.de>
1731
1732         * reginfo.c (struct subregs_of_mode_node): Remove.
1733         (subregs_of_mode): Likewise.
1734         (som_hash): Likewise.
1735         (som_eq): Likewise.
1736         (invalid_mode_changes): New bitmap.
1737         (record_subregs_of_mode): Get subregs_of_mode argument.
1738         Fill in invalid_mode_changes bitmap.
1739         (find_subregs_of_mode): Get subregs_of_mode argument and pass
1740         it through.
1741         (init_subregs_of_mode): Adjust.
1742         (finish_subregs_of_mode): Likewise.
1743         (invalid_mode_change_p): Query invalid_mode_changes bitmap.
1744
1745 2010-12-09  Richard Guenther  <rguenther@suse.de>
1746
1747         * ira.c (ira): Do not call finish_subregs_of_mode.
1748         * ira-costs.c (finish_costs): Call finish_subregs_of_mode.
1749
1750 2010-12-09  Richard Guenther  <rguenther@suse.de>
1751
1752         * rtl.h (invalid_mode_change_p): Adjust prototype.
1753         * reginfo.c (invalid_mode_change_p): Remove from argument.
1754         * ira-costs.c (print_allocno_costs): Adjust callers.
1755         (find_costs_and_classes): Likewise.
1756
1757 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
1758
1759         * config/s390/s390.md (*mov<mode>cc): Change lgoc and stgoc to
1760         locg and stocg even in comment.
1761         (sync_old_<atomic><mode>): Give mode to UNSPEC_VOLATILE.
1762
1763         PR target/41082
1764         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Use stvx
1765         instead of stve*x.
1766         (altivec_expand_stv_builtin): For op0 use mode of operand 1 instead
1767         of operand 0.
1768         * config/rs6000/altivec.md (VI_scalar): New mode attr.
1769         (altivec_stve<VI_char>x, *altivec_stvesfx): Use scalar instead of
1770         vector mode for operand 0, put operand 1 into UNSPEC.
1771
1772 2010-12-09  Yao Qi  <yao@codesourcery.com>
1773
1774         * config/arm/arm.c (arm_preferred_rename_class): Implement targethook
1775         PREFERRED_RENAME_CLASS.
1776
1777 2010-12-08  Ian Lance Taylor  <iant@google.com>
1778
1779         * doc/sourcebuild.texi (Front End): Remove reference to
1780         snapshot-README and snapshot-index.html.
1781
1782 2010-12-08  Ian Lance Taylor  <iant@google.com>
1783
1784         * doc/sourcebuild.texi (Texinfo Manuals): Change update_web_docs
1785         to update_web_docs_svn.
1786         (Front End): Likewise.
1787
1788 2010-12-08  Iain Sandoe <iains@gcc.gnu.org>
1789
1790         * gcc/config.gcc (with_cpu): Default i[34567]86-*-darwin* and
1791         x86_64-*-darwin* to with_cpu:-core2.
1792         * gcc/config/i386/mmx.md (*mov<mode>_internal_rex64): Replace movq
1793         with movd for darwin assembler.
1794         * gcc/config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1795         (*vec_concatv2di_rex64_sse): Ditto.
1796
1797 2010-12-08  Richard Guenther  <rguenther@suse.de>
1798             Sebastian Pop  <sebastian.pop@amd.com>
1799
1800         PR tree-optimization/45230
1801         PR tree-optimization/45231
1802         PR tree-optimization/45370
1803         * sese.c (rename_uses): Returns a bool.  Call
1804         recompute_tree_invariant_for_addr_expr only on the RHS of a
1805         GIMPLE_ASSIGN.
1806         (graphite_copy_stmts_from_block): Call fold_stmt_inplace when
1807         rename_uses returns true.
1808         * tree-ssa-copy.c (replace_exp): Add a comment about calling
1809         fold_stmt_inplace after replace_exp.
1810
1811 2010-12-08  Mike Stump  <mikestump@comcast.net>
1812
1813         PR debug/46749
1814         * config/darwin.h (COLLECT_RUN_DSYMUTIL): Add.
1815         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1816         * config/darwin9.h (COLLECT_RUN_DSYMUTIL): Add.
1817         (DSYMUTIL_SPEC): Use `linker' flags instead to handle lto better.
1818         * collect2.c (post_ld_pass): Add.
1819         (process_args): Add.
1820         (maybe_run_lto_and_relink): Call post_ld_pass after ld.
1821         (main): Likewise.  Call process_args.
1822
1823 2010-12-08  Jakub Jelinek  <jakub@redhat.com>
1824
1825         PR middle-end/46844
1826         * regrename.c (check_new_reg_p): Add ATTRIBUTE_UNUSED to reg parameter.
1827
1828 2010-12-08  Richard Earnshaw  <rearnsha@arm.com>
1829
1830         PR target/46631
1831         * arm.c (thumb2_reorg): Also try to reduce <commutative_op> Rd, Rn, Rd
1832         into a 16-bit instruction.
1833
1834 2010-12-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
1835
1836         PR middle-end/42694
1837         * builtins.c (expand_builtin_pow_root): Don't optimize pow(x,y)
1838         where y is 0.25, 1./6., or 0.75 if the target does not have a sqrt
1839         instruction, but do optimize if y is 0.5 or 1./3. since that
1840         changes an expensive call into a cheaper one.
1841
1842 2010-12-08  Richard Guenther  <rguenther@suse.de>
1843
1844         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use a shift
1845         instead of a division to divide by BITS_PER_UNIT.
1846
1847 2010-12-08  Richard Guenther  <rguenther@suse.de>
1848
1849         * gimplify.c (gimple_tree_eq): Assert hashes are equal only
1850         when checking is enabled.
1851
1852 2010-12-07  Andrey Belevantsev  <abel@ispras.ru>
1853
1854         PR target/43603
1855         * haifa-sched.c (sched_create_recovery_edges): Update
1856         dominator info.
1857         * sel-sched-ir.c (maybe_tidy_empty_bb): Update dominator info
1858         after deleting an empty block.
1859         (tidy_control_flow): Also verify dominators.
1860         (sel_remove_bb): Update dominator info after removing a block.
1861         (sel_redirect_edge_and_branch_force): Assert that no unreachable
1862         blocks will be created. Update dominator info.
1863         (sel_redirect_edge_and_branch): Update dominator info when
1864         basic blocks do not become unreachable.
1865         (sel_remove_loop_preheader): Update dominator info.
1866
1867 2010-12-07  Richard Guenther  <rguenther@suse.de>
1868
1869         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1870         Reset alignment information.
1871         (bump_vector_ptr): Likewise.
1872
1873 2010-12-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1874
1875         PR middle-end/46671
1876         PR target/46685
1877         * config/pa/pa.c (pa_function_section): New function.
1878         (TARGET_ASM_FUNCTION_SECTION): Define.
1879
1880 2010-12-07  Ian Lance Taylor  <iant@google.com>
1881             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1882
1883         PR bootstrap/46810
1884         * configure.ac: Disable AC_MSG_ERROR while looking for the C++
1885         preprocessor.
1886         * configure: Rebuild.
1887
1888 2010-12-07  Paul Koning  <ni1d@arrl.net>
1889
1890         * config/pdp11/pdp11.c (output_addr_const_pdp11): Output negative
1891         values with sign rather than as unsigned.
1892
1893 2010-12-07  Paul Koning  <ni1d@arrl.net>
1894
1895         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_SECTION): Define.
1896         (pdp11_function_section): New function.
1897
1898 2010-12-07  Joseph Myers  <joseph@codesourcery.com>
1899
1900         * config/mcore/mcore.c Don't include assert.h.
1901         (layout_mcore_frame, handle_structs_in_regs): Use gcc_assert.
1902         * config/spu/spu.c: Don't include assert.h.
1903         (spu_sms_res_mii): Use gcc_assert.
1904
1905 2010-12-07  Sebastian Pop  <sebastian.pop@amd.com>
1906
1907         PR tree-optimization/42327
1908         * tree-data-ref.c (omega_setup_subscript): Call build_int_cst
1909         instead of using integer_minus_one_node.
1910
1911 2010-12-07  Nathan Froyd  <froydnj@codesourcery.com>
1912
1913         PR c++/45330
1914         * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter.
1915         * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document.
1916
1917 2010-12-07  Richard Guenther  <rguenther@suse.de>
1918
1919         PR tree-optimization/46832
1920         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Check
1921         that the call has a lhs.
1922
1923 2010-12-07  Yao Qi  <yao@codesourcery.com>
1924
1925         * Makefile.in: Add $(TARGET_H) to the regrename.o rule.
1926         * regrename.c (struct du_head): Add new element length.
1927         (sort_du_head, get_element, merge, merge_sort_comparison):
1928         New functions of merge sort implementation to du_head list.
1929         (regrename_optimize): Sort du_head linked list by length.
1930         Iterate registers in a preferred-register-first order.
1931         Move some code to ...
1932         (check_new_reg_p): here.  New function.
1933         (create_new_chain):  Initialize length.
1934         (scan_rtx_reg): Increase length for non-debug insns.
1935         * target.def: New hook preferred_rename_class.
1936         * targhook.c (default_preferred_rename_class): New.
1937         * targhook.h: Declare it.
1938         * doc/tm.texi.in: New hook TARGET_PREFERRED_RENAME_CLASS.
1939         * doc/tm.texi: Regenerate.
1940
1941 2010-12-07  Jakub Jelinek  <jakub@redhat.com>
1942
1943         PR debug/46799
1944         * tree-parloops.c (separate_decls_in_region): Use UNKNOWN_LOCATION
1945         instead of BUILTINS_LOCATION.
1946         (create_loop_fn): Add LOC argument, pass it to build_decl instead of
1947         BUILTINS_LOCATION.
1948         (create_parallel_loop): Add LOC argument, use it for OMP clauses
1949         and GIMPLE_*OMP* statements.
1950         (gen_parallel_loop): Determine locus for the parallel loop, pass it
1951         to create_loop_fn and create_parallel_loop.
1952         * cfgexpand.c (gimple_expand_cfg): For builtin functions, call
1953         set_curr_insn_source_location (UNKNOWN_LOCATION).
1954
1955 2010-12-07  Joern Rennecke  <amylaar@spamcop.net>
1956             Richard Guenther  <rguenther@suse.de>
1957
1958         PR target/46737
1959         * config/bfin/bfin.c (BB_AUX_INDEX): Cast to intptr_t.
1960         (bfin_reorder_loops): Change type of index to intptr_t.
1961
1962 2010-12-07  Richard Guenther  <rguenther@suse.de>
1963
1964         PR tree-optimization/46726
1965         * tree-inline.c (estimate_num_insns): Special case pow (x, 2.0).
1966
1967 2010-12-07  Richard Guenther  <rguenther@suse.de>
1968
1969         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Unlink
1970         virtual operands.
1971
1972 2010-12-07  Nicola Pero  <nicola.pero@meta-innovation.com>
1973
1974         * c-parser.c (c_parser_typeof_specifier): Removed special
1975         treatment of objc_volatilized attribute for Objective-C.
1976
1977 2010-12-06  Vladimir Makarov  <vmakarov@redhat.com>
1978
1979         * ira.c (update_equiv_regs): Prohibit move insns if
1980         pressure-sensitive scheduling was done.
1981
1982 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1983
1984         * c-parser.c (c_parser_for_statement): Use c_fully_fold() instead
1985         of c_process_expr_stmt() for the iterating and collection
1986         expressions of an Objective-C fast enumeration loop.
1987
1988 2010-12-06  Jakub Jelinek  <jakub@redhat.com>
1989
1990         PR debug/45997
1991         * dwarf2out.c (modified_type_die): If both is_const_type and
1992         is_volatile_type is set, start with DW_TAG_const_type or
1993         DW_TAG_volatile_type depending on where we get qualified type
1994         in the recursive call.
1995
1996         PR target/43897
1997         * config/ia64/ia64.c (rtx_needs_barrier): Handle asm CLOBBER
1998         as a store into that register.
1999
2000         PR tree-optimization/46528
2001         PR debug/46338
2002         * profile.c (branch_prob): Make sure last is never set to a debug
2003         stmt.
2004
2005         PR debug/46771
2006         * reginfo.c (init_subregs_of_mode): Don't call find_subregs_of_mode
2007         on DEBUG_INSNs.
2008
2009         PR rtl-optimization/46777
2010         * cfglayout.c (duplicate_insn_chain): Avoid duplicating
2011         also barrier after tablejump.
2012
2013 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
2014             Richard Henderson  <rth@redhat.com>
2015
2016         PR target/46740
2017         * config/vax/vax.c (vax_output_int_move): Fold #if into if.
2018
2019 2010-12-06  Eric Botcazou  <ebotcazou@adacore.com>
2020
2021         * config/sparc/sol2.h (PUSHSECTION_FORMAT): Redefine unconditionally.
2022         * config/sparc/sol2-gas.h (PUSHSECTION_FORMAT): Redefine.
2023
2024 2010-12-06  Joern Rennecke  <amylaar@spamcop.net>
2025
2026         PR target/46735
2027         * config/frv/predicates.md (gpr_or_int12_operand): Use IN_RANGE.
2028         (gpr_fpr_or_int12_operand, gpr_or_int10_operand): Likewise.
2029         (int12_operand, int_2word_operand, uint16_operand): Likewise.
2030         (fpr_or_int6_operand, int6_operand, int5_operand): Likewise.
2031         (uint5_operand, uint4_operand): Likewise.
2032         * config/frv/frv.h (IN_RANGE_P): Delete.
2033         (GPR_P, FPR_P, CC_P, ICC_P, FCC_P, CR_P, ICR_P, FCR_P): Use IN_RANGE.
2034         (ACC_P, ACCG_P, SPR_P, CONST_OK_FOR_I, CONST_OK_FOR_J): Likewise.
2035         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
2036         (CONST_OK_FOR_P): Likewise.
2037         * config/frv/frv.md (*movqicc_internal2_int): Likewise.
2038         (*movqicc_internal2_float, *movhicc_internal2_int): Likewise.
2039         (*movhicc_internal2_float, *movsicc_internal2_int): Likewise.
2040         (*movsicc_internal2_float, casesi): Likewise.
2041         * config/frv/frv.c (frv_frame_offset_rtx): Likewise.
2042         (frv_asm_output_mi_thunk, frv_legitimate_address_p_1): Likewise.
2043         (frv_emit_movsi, output_move_single, frv_emit_cond_move): Likewise.
2044         (frv_split_cond_move, frv_rtx_costs): Likewise.
2045
2046         PR target/46739
2047         * config/mmix/mmix.c (mmix_intval): Split shift count.
2048
2049 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
2050
2051         * config/i386/i386.c (m_COREI7): New.
2052         (initial_ix86_tune_features): Turn on
2053         X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL and
2054         X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL for Core i7.
2055
2056 2010-12-06  H.J. Lu  <hongjiu.lu@intel.com>
2057
2058         * config.gcc: Allow corei7-avx for --with-arch/--with-cpu.
2059
2060         * config/i386/driver-i386.c (host_detect_local_cpu): Support
2061         Sandy Bridge.
2062
2063         * config/i386/i386.c (override_options): Handle "corei7-avx".
2064
2065         * doc/invoke.texi: Document corei7-avx.
2066
2067 2010-12-06  Richard Guenther  <rguenther@suse.de>
2068
2069         PR tree-optimization/46806
2070         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do not
2071         coalesce different types.
2072
2073 2010-12-06  Richard Guenther  <rguenther@suse.de>
2074
2075         PR tree-optimization/46785
2076         * tree-vect-loop.c (vect_is_simple_reduction_1): Also allow
2077         call statements as operand definition.
2078
2079 2010-12-06  Mingjie Xing  <mingjie.xing@gmail.com>
2080
2081         * doc/tm.texi.in: Fix typo.
2082         * doc/tm.texi: Regenerate.
2083
2084 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2085
2086         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]: Fix typo in
2087         last change.
2088
2089 2010-12-06  Nicola Pero  <nicola.pero@meta-innovation.com>
2090
2091         * c-family/c-common.h: Removed the declarations of all the objc_
2092         callbacks, and moved them into c-objc.h.  Removed
2093         objc_ivar_visibility_kind and moved it into c-objc.h.
2094         * c-family/c-objc.h: New file.
2095         * c-family/c-common.c: Include c-objc.h.
2096         * c-family/c-format.c: Same change.
2097         * c-family/stub-objc.c: Same change.
2098         * c-decl.c: Include c-family/c-objc.h.
2099         * c-parser.c: Same change.
2100         * c-typeck.c: Same change.
2101         * c-config-lang.in (gtfiles): Added c-family/c-objc.h.
2102         * Makefile.in (c-decl.o): Depend on c-family/c-objc.h.
2103         (c-parser.o): same change.
2104         (c-typeck.o): Same change.
2105         (c-family/c-format.o): Same change.
2106         (c-family/stub-objc.o): Same change.
2107         (c-family/c-common.o): Same change.
2108         (PLUGIN_HEADERS): Added c-family/c-objc.h.
2109
2110 2010-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2111
2112         * config.gcc [hppa[12]*-*-hpux10*, hppa[12]*-*-hpux11*]:  Ignore
2113         --with-dwarf2 option.
2114
2115 2010-12-03  Jan Hubicka  <jh@suse.cz>
2116
2117         * lto-streamer-in.c (input_cfg): Fix pasto.
2118
2119 2010-12-03  Jan Hubicka  <jh@suse.cz>
2120
2121         * ipa.c (cgraph_externally_visible_p): Do not localize builtins
2122         and functions with user asm defined names.
2123         (varpool_externally_visible_p): Do not localize vars with user
2124         asm defined names.
2125
2126 2010-12-03  Jan Hubicka  <jh@suse.cz>
2127
2128         * dwarf2asm.c (dw2_output_indirect_constant_1): Set DECL_ASSEMBLER_NAME
2129         to prevent mangling with lto frontend.
2130
2131 2010-12-03  Jan Hubicka  <jh@suse.cz>
2132
2133         * Makefile.in (LTO_STREAMER_H): Add GCOV_IO_H.
2134         * lto-cgraph.c (merge_profile_summaries): Fix thinko.
2135
2136 2010-12-03  Jan Hubicka  <jh@suse.cz>
2137
2138         PR tree-optimization/46760
2139         * cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
2140         * cgraph.h (struct cgraph_node): Add count_materialization_scale.
2141         * lto-cgraph.c (lto_output_edge): Fix assert.
2142         (lto_output_node): Output count_materialization_scale.
2143         (output_profile_summary): Output only runs and sum_max.
2144         (input_node): Input count_materialization_scale.
2145         (input_profile_summary): Read data into file specific gcov summary.
2146         (merge_profile_summaries): New function.
2147         (input_cgraph): Update call of input_profile_summary;
2148         call merge_profile_summaries.
2149         * lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
2150         rescale counts at read in.
2151         (intput_bb): Likewise.
2152         (input_function): Update call of input_bb.
2153         (lto_read_body): Update call of input_cfg.
2154         * lto-streamer.h: Inlclude gcov-io.h
2155         (lto_file_decl_data): Add gcov_ctr_summary.
2156
2157 2010-12-03  Dave Korn  <dave.korn.cygwin@gmail.com>
2158
2159         * doc/tm.texi.in (Cond. Exec. Macros): Rename node from this ...
2160         (Cond Exec Macros): ... to this.
2161         * doc/tm.texi: Regenerate.
2162
2163 2010-12-03  Jason Merrill  <jason@redhat.com>
2164
2165         PR debug/46123
2166         * dwarf2out.c (gen_tagged_type_die): Don't put local types in
2167         a declaration DIE.
2168
2169 2010-12-03  Nathan Froyd  <froydnj@codesourcery.com>
2170
2171         * config/arm/arm.c (arm_legitimate_index_p): Split
2172         VALID_NEON_QREG_MODE and VALID_NEON_DREG_MODE cases.  Permit
2173         slightly larger constants in the latter case.
2174         (thumb2_legitimate_index_p): Likewise.
2175
2176 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
2177
2178         * common.opt (N, Q, Qn, Qy, Z, n, r, s, t): New options.
2179         * gcc.c (cc1_options): Add %{Qy:}.
2180
2181 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
2182
2183         * gcc.c (LINK_COMMAND_SPEC): Don't handle -A, -d or -m.
2184         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2185         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
2186
2187 2010-12-03  Alexander Monakov  <amonakov@ispras.ru>
2188
2189         PR rtl-optimization/45354
2190         * sel-sched-ir.c (jump_leads_only_to_bb_p): Rename to ...
2191         (bb_has_removable_jump_to_p): This.  Update all callers. Make static.
2192         Allow BBs ending with a conditional jump.  Forbid EDGE_CROSSING jumps.
2193         * sel-sched-ir.h (jump_leads_only_to_bb_p): Delete prototype.
2194
2195 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2196
2197         * basic-block.h (struct edge_prediction): Remove forward declaration.
2198         * tree-flow.h (struct edge_prediction): Move from here...
2199         * predict.c (struct edge_prediction): ...to here.
2200         * cselib.h (struct elt_list): Move from here...
2201         * cselib.c (struct elt_list): ...to here.
2202
2203 2010-12-02  Ian Lance Taylor  <iant@google.com>
2204
2205         * gcc.c (default_compilers): Add entry for ".go".
2206         * common.opt: Add -static-libgo as a driver option.
2207         * doc/install.texi (Configuration): Mention libgo as an option for
2208         --enable-shared.  Mention go as an option for --enable-languages.
2209         * doc/invoke.texi (Overall Options): Mention .go as a file name
2210         suffix.  Mention go as a -x option.
2211         * doc/frontends.texi (G++ and GCC): Mention Go as a supported language.
2212         * doc/sourcebuild.texi (Top Level): Mention libgo.
2213         * doc/standards.texi (Standards): Add section on Go language.
2214         Move references for other languages into their own section.
2215         * doc/contrib.texi (Contributors): Mention that I contributed the
2216         Go frontend.
2217
2218 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2219
2220         * tree.h (struct call_expr_arg_iterator_d): Remove GTY tag.
2221         (const_call_expr_arg_iterator_d): Likewise.
2222         (expanded_location): Likewise.
2223         * c-tree.h (struct c_arg_tag_d): Likewise.
2224         * dwarf2out.c (struct cfa_loc): Likewise.
2225         (struct skeleton_chain_struct): Likewise.
2226         * except.c (struct ttypes_filter): Likewise.
2227         * cselib.h (struct cselib_val_struct): Likewise.
2228         (elt_loc_list): Likewise.
2229         (elt_list): Likewise.
2230         * varasm.c (struct addr_const): Likewise.
2231         * tree-flow.h (struct edge_prediction): Likewise.
2232         (struct int_tree_map): Likewise.
2233         (struct _edge_var_map): Likewise.
2234
2235 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
2236
2237         PR target/46768
2238         * config/i386/i386.c (initial_ix86_tune_features): Turn on
2239         X86_TUNE_INTER_UNIT_MOVES for Core 2 and Core i7.
2240
2241 2010-12-02  H.J. Lu  <hongjiu.lu@intel.com>
2242
2243         * config.gcc: Allow corei7 for --with-arch=/--with-cpu=.
2244
2245 2010-12-02  Ian Lance Taylor  <iant@google.com>
2246
2247         * configure.ac: AC_DEFINE ENABLE_BUILD_WITH_CXX.  Check for C++
2248         header files unordered_map, tr1/unordered_map, and ext/hash_map.
2249         * configure, config.in: Rebuild.
2250
2251 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
2252
2253         PR target/46685
2254         * config/sparc/sparc.c (can_use_mov_pic_label_ref): New predicate.
2255         (sparc_expand_move): Call it to decide whether to emit the special
2256         mov{si,di}_pic_label_ref patterns.
2257         (sparc_legitimize_pic_address): Call it to decide whether to emit
2258         the regular PIC sequence for labels.  Fix long line.
2259         (sparc_file_end): Set is_thunk for the PIC helper.
2260
2261 2010-12-02  Eric Botcazou  <ebotcazou@adacore.com>
2262
2263         * tree.c (build_range_type_1): Do not SET_TYPE_STRUCTURAL_EQUALITY
2264         for a non-shared type.
2265
2266 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
2267
2268         PR middle-end/45297
2269         * tree-scalar-evolution.c (interpret_rhs_expr): Handle ADDR_EXPR
2270         with MEM_REFs as POINTER_PLUS_EXPR.
2271
2272 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2273
2274         * config/i386/linux.h, config/m32r/linux.h, config/m68k/linux.h,
2275         config/sparc/linux.h, config/sparc/linux64.h: Remove comments
2276         mentioning /lib/elf.
2277
2278 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2279
2280         * config/bfin/bfin.h (LINK_SPEC): Remove %{b}.
2281         * config/frv/frv.h (LINK_SPEC): Remove %{b}.
2282         * config/i386/netware.h (LINK_SPEC): Remove %{b}.
2283         * config/i386/nto.h (LINK_SPEC): Remove %{b}.
2284         * config/lm32/uclinux-elf.h (LINK_SPEC): Remove %{b}.
2285         * config/sol2.h (LINK_SPEC): Remove %{b}.
2286         * config/svr4.h (LINK_SPEC): Remove %{b}.
2287
2288 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2289
2290         * config/i386/freebsd.h (LINK_SPEC): Cut long comment.
2291         * config/i386/linux.h (LINK_SPEC): Cut long comment.
2292         * config/i386/netware.h (LINK_SPEC): Remove %{V}.
2293         * config/m32r/linux.h (LINK_SPEC): Cut long comment.
2294         * config/m68k/linux.h (LINK_SPEC): Cut long comment.
2295         * config/sparc/linux.h (LINK_SPEC): Cut long comment.
2296         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
2297         * config/sparc/linux64.h (LINK_SPEC): Cut long comment.
2298         (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
2299         * config/sparc/netbsd-elf.h (ASM_SPEC): Remove %{V} and %{v:%{!V:-V}}.
2300
2301 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2302
2303         * gcc.c (trad_capable_cpp, default_compilers): Don't handle
2304         -ftraditional.
2305
2306 2010-12-02  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * config/alpha/freebsd.h (LINK_SPEC): Don't handle -Wl,.
2309         * config/bfin/bfin.h (ASM_SPEC): Don't handle -Wa,.
2310         * config/frv/frv.h (ASM_SPEC): Don't handle -Wa,.
2311         * config/lm32/uclinux-elf.h (LINK_SPEC): Don't handle -Wl,.
2312         * config/microblaze/microblaze.h (LINK_SPEC): Don't handle -Wl,.
2313         * config/mn10300/linux.h (ASM_SPEC): Don't handle -Wa,.
2314         * config/pa/pa-linux.h (ASM_SPEC): Don't handle -Wa,.
2315         * config/rs6000/freebsd.h (SVR4_ASM_SPEC): Don't handle -Wa,.
2316         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Don't handle -Wa,.
2317         * config/rs6000/sysv4.h (LINK_SPEC): Don't handle -Wl,.
2318         * config/rs6000/vxworks.h (ASM_SPEC): Don't handle -Wa,.
2319         * config/sol2.h (ASM_SPEC): Don't handle -Wa,.
2320         * config/sparc/linux.h (ASM_SPEC): Don't handle -Wa,.
2321         * config/sparc/linux64.h (ASM_SPEC): Don't handle -Wa,.
2322         * config/sparc/sp-elf.h (ASM_SPEC): Don't handle -Wa,.
2323         * config/sparc/sysv4.h (ASM_SPEC): Don't handle -Wa,.
2324         * config/svr4.h (SVR4_ASM_SPEC): Don't handle -Wa,.
2325         * config/vxworks.h (VXWORKS_LINK_SPEC): Don't handle -Wl,.
2326
2327 2010-12-02  Paul Koning  <ni1d@arrl.net>
2328
2329         * config/pdp11/pdp11.c (output_jump): Map unsigned to signed
2330         opcodes if CC_NO_OVERFLOW is set.
2331         (notice_update_cc_on_set): Correct setting of CC0 as a side
2332         effect; set CC_NO_OVERFLOW for cases where C flag is not meaningful.
2333
2334 2010-12-02  Ian Lance Taylor  <iant@google.com>
2335
2336         * doc/install.texi (Configuration): Update default for
2337         --with-boot-ldflags.
2338
2339 2010-12-02  Nathan Froyd  <froydnj@codesourcery.com>
2340
2341         PR c/45062
2342         * c-decl.c (grokparms): Set arg_info->parms to NULL_TREE when
2343         !funcdef_flag.
2344
2345 2010-12-02  Sebastian Pop  <sebastian.pop@amd.com>
2346
2347         PR tree-optimization/45199
2348         * tree-data-ref.c (mem_write_stride_of_same_size_as_unit_type_p): New.
2349         (stores_zero_from_loop): Call
2350         mem_write_stride_of_same_size_as_unit_type_p.
2351         * tree-data-ref.h (stride_of_unit_type_p): New.
2352         * tree-loop-distribution.c (generate_memset_zero): Simplified.
2353         Call stride_of_unit_type_p.
2354         (build_rdg_partition_for_component): Do not call
2355         rdg_flag_similar_memory_accesses when
2356         flag_tree_loop_distribute_patterns is set.
2357
2358 2010-12-02  Richard Guenther  <rguenther@suse.de>
2359
2360         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Disregard
2361         sign-changing conversions for induction detection.
2362
2363 2010-12-02  Richard Guenther  <rguenther@suse.de>
2364
2365         PR tree-optimization/46723
2366         * tree-vect-loop.c (get_initial_def_for_induction): Strip
2367         conversions from the induction evolution and apply it to
2368         the result instead.
2369         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Handle
2370         assigns for induction defs.
2371
2372 2010-12-02  Richard Guenther  <rguenther@suse.de>
2373
2374         * value-prof.c (gimple_ic): Use stmt_ends_bb_p to detect
2375         the case we need to split the edge and not the block.
2376
2377 2010-12-02  Bernd Schmidt  <bernds@codesourcery.com>
2378
2379         DFA model for Core 2 and Core i7 scheduling.
2380
2381         * config/i386/core2.md: New DFA model for Core 2 and Core i7.
2382         * config/i386/i386.c (ix86_option_override_internal): Update entries
2383         for Core 2 and Core i7.
2384         (ix86_issue_rate): Set issue rate to 3 [be realistic].
2385         * config/i386/i386.md: Include "core2.md".
2386         (define_attr cpu): Add "corei7".
2387
2388 2010-12-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
2389
2390         Define tuning for Core 2 and Core i7.
2391
2392         * config/i386/i386-c.c (ix86_target_macros_internal): Update.
2393         * config/i386/i386.c (core2_cost): Delete, use generic costs instead.
2394         (m_CORE2): Replace with m_CORE2_{32,64}.
2395         (m_CORE2I7{,_32,_64}): New macros.
2396         (m_GENERIC32, m_GENERIC64): Update.
2397         (initial_ix86_tune_features, x86_accumulate_outgoing_args,)
2398         (x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
2399         set m_CORE2I7_64 iff m_GENERIC64.
2400         (processor_target_table): Use generic costs for Core 2 and Core i7.
2401         (ix86_option_override_internal): Update entries for Core 2 and Core i7.
2402         (ix86_issue_rate): Remove entry for Core 2.
2403         (ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
2404         * config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
2405         (TARGET_CORE2): Update.
2406         (PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
2407         (PROCESSOR_CORE2): Remove.
2408
2409 2010-12-02  Richard Guenther  <rguenther@suse.de>
2410
2411         * lto-streamer.h (LTO_major_version): Bump to 2.
2412
2413 2010-12-02  Richard Guenther  <rguenther@suse.de>
2414
2415         PR lto/44871
2416         * gimple.c (canonical_type_hash_cache): New hashtable.
2417         (gimple_type_hash): Make a wrapper around ...
2418         (gimple_type_hash_1): ... this.  Take gtc_mode argument.
2419         (gimple_canonical_type_hash): Likewise.
2420         (gtc_visit): Take a gtc_mode argument.
2421         (gimple_types_compatible_p_1): Likewise. Do not compare struct
2422         tag names or field names when computing canonical types.
2423         (gimple_types_compatible_p): Adjust.
2424         (visit): Take a gtc_mode argument.
2425         (iterative_hash_gimple_type): Likewise.  Do not hash struct tag
2426         names or field names when computing hashes of canonical types.
2427         (gimple_register_canonical_type): Use gimple_canonical_type_hash
2428         for the hash.
2429         (print_gimple_types_stats): Dump stats of canonical_type_hash_cache.
2430         (free_gimple_type_tables): Free canonical_type_hash_cache.
2431
2432 2010-12-02  Richard Guenther  <rguenther@suse.de>
2433             Ira Rosen  <irar@il.ibm.com>
2434
2435         PR tree-optimization/46663
2436         * tree-vect-patterns.c (vect_recog_pow_pattern): Check that
2437         FUNCTION_DECL exists and that it's a builtin.
2438
2439 2010-12-02  Jie Zhang  <jie@codesourcery.com>
2440
2441         PR middle-end/46674
2442         * varasm.c (compute_visible_aliases): Handle user set assembler name.
2443
2444 2010-12-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
2445
2446         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
2447         thinko regarding setting -mno-<xxx> debug switches.
2448         (rs6000_rtx_costs): Add FMA.  Delete old rtl based FMA costs.
2449
2450 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2451
2452         * intl.c: Don't include tm.h.
2453         * Makefile.in (intl.o): Don't depend on $(TM_H).
2454
2455 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2456
2457         * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
2458         unused warning.
2459         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2460
2461 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2462
2463         * graphite-sese-to-poly.c (analyze_drs): Removed.
2464         (build_scop_drs): Do not call analyze_drs.
2465         (analyze_drs_in_stmts): New.
2466         (insert_stmts): New.
2467         (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
2468         (insert_out_of_ssa_copy_on_edge): Same.
2469         (rewrite_close_phi_out_of_ssa): Call insert_stmts.
2470         (rewrite_phi_out_of_ssa): Same.
2471         (rewrite_cross_bb_scalar_dependence): Same.
2472         (split_reduction_stmt): Move data references in the new basic blocks.
2473         (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
2474
2475 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2476
2477         * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
2478
2479 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2480
2481         PR middle-end/45297
2482         * graphite-poly.c (new_poly_bb): Returns a poly_bb_p.  Do not take
2483         the reduction bool in parameter.  Clear PBB_IS_REDUCTION.  Set GBB_PBB.
2484         * graphite-poly.h (new_poly_bb): Update declaration.
2485         (gbb_from_bb): Moved here...
2486         (pbb_from_bb): New.
2487         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
2488         Removed.
2489         (graphite_stmt_p): Removed.
2490         (try_generate_gimple_bb): Returns a gimple_bb_p.  Do not pass in
2491         sbitmap reductions.  Always build a gimple_bb_p.  Do not call
2492         new_poly_bb.
2493         (build_scop_bbs_1): Do not pass in sbitmap reductions.
2494         (build_scop_bbs): Same.
2495         (gbb_from_bb): ... from here.
2496         (add_conditions_to_constraints): Moved up.
2497         (analyze_drs): New.
2498         (build_scop_drs): Call analyze_drs.  Remove all the PBBs that do
2499         not contain data references.
2500         (new_pbb_from_pbb): New.
2501         (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
2502         block is split.
2503         (rewrite_close_phi_out_of_ssa): Update call to
2504         insert_out_of_ssa_copy_on_edge.
2505         (rewrite_reductions_out_of_ssa): Now static.
2506         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2507         (split_pbb): New.
2508         (split_reduction_stmt): Call split_pbb.
2509         (translate_scalar_reduction_to_array): Pass in the scop, do not
2510         pass in the sbitmap reductions.
2511         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
2512         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
2513         (rewrite_commutative_reductions_out_of_ssa): Same.
2514         (build_poly_scop): Call build_scop_bbs,
2515         rewrite_commutative_reductions_out_of_ssa,
2516         rewrite_reductions_out_of_ssa, and
2517         rewrite_cross_bb_scalar_deps_out_of_ssa.  Move build_scop_drs
2518         before scop_to_lst.
2519         * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
2520         Removed declaration.
2521         (rewrite_reductions_out_of_ssa): Same.
2522         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
2523         (build_scop_bbs): Same.
2524         * graphite.c (graphite_transform_loops): Do not initialize reductions.
2525         Do not call build_scop_bbs,
2526         rewrite_commutative_reductions_out_of_ssa,
2527         rewrite_reductions_out_of_ssa, and
2528         rewrite_cross_bb_scalar_deps_out_of_ssa.
2529         * sese.h (struct gimple_bb): Add field pbb.
2530         (GBB_PBB): New.
2531
2532 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2533
2534         * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
2535         New.
2536         (rewrite_cross_bb_scalar_deps): Pass in the scop.  Call
2537         handle_scalar_deps_crossing_scop_limits.
2538         (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
2539         after the scop.  Update call to rewrite_cross_bb_scalar_deps.
2540
2541 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2542
2543         * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
2544         when replacing a constant in an ADDR_EXPR.
2545
2546 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2547
2548         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
2549         for the stride.
2550         (lst_do_strip_mine): Same.
2551         (scop_do_strip_mine): Same.
2552         * graphite-poly.c (apply_poly_transforms): Update call to
2553         scop_do_strip_mine.
2554         * graphite-poly.h (scop_do_strip_mine): Update declaration.
2555
2556 2010-12-01  Jan Hubicka  <jh@suse.cz>
2557
2558         * tree.c (build_common_builtin_nodes): Do not initialize
2559         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
2560         * builtins.c (expand_builtin_profile_func): Remove.
2561         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
2562         BUILT_IN_PROFILE_FUNC_EXIT.
2563         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
2564         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
2565         * gimplify.c (gimplify_function_tree): Reorganize code calling
2566         profiling functions.
2567
2568 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2569
2570         * opts.c: Expand comment on tm.h include.
2571
2572 2010-12-01  Yao Qi  <yao@codesourcery.com>
2573
2574         * config/arm/predicates.md ("vfp_register_operand"): Return true for
2575         VFP_D0_D7_REGS classes.
2576
2577 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2578
2579         * common.opt (flag_stack_check): New Variable entry.
2580         (fcompare-debug-second): Use Var.
2581         * flags.h (flag_compare_debug, flag_stack_check): Remove.
2582         * opts.c (flag_compare_debug): Remove.
2583         (common_handle_option): Don't handle OPT_fcompare_debug_second.
2584         Set opts->x_flag_stack_check for OPT_fstack_check_.
2585         * toplev.c (flag_stack_check): Remove.
2586
2587 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
2588
2589         * common.opt (main_input_filename, main_input_basename,
2590         main_input_baselength): New Variable entries.  From toplev.c.
2591         * final.c (output_quoted_string): Move from toplev.c.
2592         * output.h (output_quoted_string): Move from toplev.h.
2593         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
2594         access main_input_filename, main_input_baselength and
2595         main_input_basename.
2596         * targhooks.c: Include intl.h and opts.h.
2597         (option_affects_pch_p, default_get_pch_validity): Move from toplev.c.
2598         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
2599         Move from toplev.h.
2600         * toplev.c (main_input_filename, main_input_basename,
2601         main_input_baselength): Move to common.opt.
2602         (output_quoted_string): Move to final.c.
2603         (warn_deprecated_use): Move to tree.c.
2604         (option_affects_pch_p, default_get_pch_validity,
2605         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
2606         * toplev.h (skip_leading_substring): Move to tree-dump.c.
2607         (warn_deprecated_use): Move to tree.h.
2608         (output_quoted_string): Move to output.h.
2609         (main_input_filename, main_input_basename, main_input_baselength):
2610         Move to common.opt.
2611         (default_get_pch_validity, default_pch_valid_p): Move to targhooks.c.
2612         * tree-dump.c (skip_leading_substring): Move from toplev.h.
2613         * tree.c (warn_deprecated_use): Move from toplev.c.
2614         * tree.h (warn_deprecated_use): Move from toplev.h.
2615         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
2616         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
2617         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
2618         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
2619         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
2620         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
2621         config/mcore/mcore.c, config/mep/mep.c,
2622         config/microblaze/microblaze.c, config/mips/mips.c,
2623         config/mmix/mmix.c, config/mn10300/mn10300.c,
2624         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
2625         config/picochip/picochip.c, config/s390/s390.c,
2626         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
2627         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
2628         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
2629         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
2630         varasm.c, xcoffout.c: Don't include toplev.h.
2631         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
2632         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
2633         varasm.o, xcoffout.o): Update dependencies.
2634         * config/arm/t-arm (arm.o): Update dependencies.
2635         * config/spu/t-spu-elf (spu.o): Update dependencies.
2636
2637 2010-12-01  Richard Guenther  <rguenther@suse.de>
2638
2639         PR tree-optimization/46730
2640         * value-prof.c (gimple_ic): Always generate a separate merge BB.
2641
2642 2010-11-30  Ian Lance Taylor  <iant@google.com>
2643
2644         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
2645         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
2646         * config/i386/linux64.h (ASM_SPEC): Likewise.
2647         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
2648         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
2649         * config/i386/vxworks.h (ASM_SPEC): Likewise.
2650         * config/i386/x86-64.h (ASM_SPEC): Likewise.
2651         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
2652         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
2653
2654 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2655
2656         * c-decl.c (finish_function): Call objc_finish_function in
2657         Objective-C.
2658         * c-typeck.c (convert_for_assignment): Do not call
2659         objc_type_quals_match().
2660
2661 2010-11-30  Richard Guenther  <rguenther@suse.de>
2662
2663         PR tree-optimization/46722
2664         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
2665         operands as arguments.
2666         (execute_optimize_widening_mul): Also handle power of two as
2667         multiplication.
2668
2669 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
2670
2671         PR middle-end/46709
2672         * cgraphunit.c (process_function_and_variable_attributes): Fix
2673         cut'n'pasteo.
2674
2675 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
2676
2677         * hwint.c:  New.  Extracted from toplev.c.
2678         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2679         Move from toplev.h.
2680         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2681         Move to hwint.c.
2682         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
2683         Move to hwint.h.
2684         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
2685         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
2686         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
2687         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
2688         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
2689         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
2690         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
2691         tree-vrp.c: Don't include toplev.h.
2692         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
2693         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
2694         toplev.h in generated output.
2695         * Makefile.in (OBJS-common): Add hwint.o.
2696         Dependencies for above files changed to remove toplev.h.
2697         (hwint.o): New.
2698         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
2699         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on toplev.h.
2700         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
2701         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
2702
2703 2010-11-30  Richard Guenther  <rguenther@suse.de>
2704
2705         PR tree-optimization/46717
2706         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
2707         call.  Manually create EH edges for the direct call and update
2708         target PHI nodes.
2709
2710 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
2711
2712         * diagnostic-core.h: Include bversion.h.
2713         * toplev.h: Don't include input.h or bversion.h.
2714         (parse_optimize_options): Don't declare here.
2715         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
2716         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
2717         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
2718         config/host-darwin.c, config/i386/host-cygwin.c,
2719         config/i386/host-mingw32.c, config/i386/msformat-c.c,
2720         config/i386/netware.c, config/i386/nwld.c,
2721         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
2722         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
2723         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
2724         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
2725         config/score/score3.c, config/score/score7.c,
2726         config/sh/symbian-base.c, config/sh/symbian-c.c,
2727         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
2728         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
2729         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
2730         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
2731         graphite-blocking.c, graphite-clast-to-gimple.c,
2732         graphite-dependences.c, graphite-flattening.c,
2733         graphite-interchange.c, graphite-poly.c,
2734         graphite-scop-detection.c, graphite.c, haifa-sched.c,
2735         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
2736         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
2737         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
2738         lto-opts.c, lto-section-in.c, lto-section-out.c,
2739         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
2740         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
2741         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
2742         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
2743         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
2744         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
2745         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
2746         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
2747         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
2748         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
2749         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
2750         include toplev.h.
2751         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
2752         toplev.h.  Dependencies for above files and c-family files changed
2753         to remove $(TOPLEV_H) or toplev.h.
2754         (C_TREE_H): Don't include $(TOPLEV_H).
2755         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
2756         bversion.h.
2757         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
2758         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
2759         config/t-darwin, config/t-sol2,
2760         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
2761         Dependencies for above files changed to remove $(TOPLEV_H) or
2762         toplev.h.
2763
2764 2010-11-30  Richard Guenther  <rguenther@suse.de>
2765
2766         PR lto/44986
2767         * gcc.c (main): Use the first input with a compiler as infile
2768         for link spec processing.
2769
2770 2010-11-30  Richard Guenther  <rguenther@suse.de>
2771
2772         PR lto/45949
2773         * cgraphunit.c (ipa_passes): Stop after errors from small IPA passes.
2774
2775 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
2776
2777         * gcc-plugin.h: Include coretypes.h.
2778         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
2779
2780 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
2781
2782         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
2783         * ggc-none.c (ggc_internal_alloc_zone_stat)
2784         (ggc_internal_cleared_alloc_zone_stat): New.
2785
2786 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2787
2788         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
2789         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
2790         (rs6000_emit_prologue): Don't set PIC register if
2791         TARGET_SINGLE_PIC_BASE.
2792         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
2793         * doc/invoke.texi (msingle-pic-base): Document.
2794
2795 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
2796
2797         PR driver/46712
2798         * exec-tool.in (id): New.
2799         Check and export LT_RCU_$id instead of LT_RCU.
2800
2801 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
2802
2803         PR tree-optimization/46675
2804         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
2805         in offset calculation.
2806
2807 2010-11-29  Jan Hubicka  <jh@suse.cz>
2808
2809         * collect2.c (main): Do not imply verbose output with
2810         LTO and linker plugin.
2811
2812 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
2813
2814         * dwarf2out.c (print_die): Print the address of the current DIE or
2815         of any DIE referenced by the current one.
2816
2817 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
2818
2819         PR debug/46101
2820         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New function.
2821         (scope_die_for, gen_type_die_for_member): Replace uses of
2822         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
2823
2824 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
2825
2826         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
2827         (darwin_asm_declare_object_name): Correct spelling.
2828         (darwin_output_aligned_bss): Likewise.
2829
2830 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
2831             Mike Stump  <mrs@gcc.gnu.org>
2832
2833         PR target/26427
2834         PR target/33120
2835         PR testsuite/35710
2836         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
2837         (ASM_OUTPUT_LOCAL): Likewise.
2838         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
2839         (darwin_output_aligned_bss): Likewise.
2840         (darwin_asm_output_aligned_decl_local): Likewise.
2841         (darwin_asm_output_aligned_decl_common): Likewise.
2842         (darwin_use_anchors_for_symbol_p): Likewise.
2843         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
2844         (TARGET_ASM_OUTPUT_ANCHOR): Define.
2845         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
2846         (DARWIN_SECTION_ANCHORS): Set to 1.
2847         * config/darwin.c (emit_aligned_common): New var.
2848         (darwin_init_sections): Check that the Darwin private zero-size section
2849         marker is in range.
2850         (darwin_text_section): Check for zero-sized objects.
2851         (darwin_mergeable_string_section): Likewise.
2852         (darwin_mergeable_constant_section): Likewise.
2853         (machopic_select_section): Adjust to check for zero-sized objects.
2854         Assert that OBJC meta data are non-zero sized.
2855         (darwin_asm_declare_object_name): New.
2856         (darwin_asm_declare_constant_name): Adjust for zero-sized
2857         object sections.
2858         (BYTES_ZFILL): Define.
2859         (darwin_emit_weak_or_comdat): New.
2860         (darwin_emit_local_bss): New.
2861         (darwin_emit_common): New.
2862         (darwin_output_aligned_bss): New.
2863         (darwin_asm_output_aligned_decl_common): New.
2864         (darwin_asm_output_aligned_decl_local): New.
2865         (darwin_file_end): Disable subsections_via_symbols when section
2866         anchoring is active.
2867         (darwin_asm_output_anchor): Re-enable.
2868         (darwin_use_anchors_for_symbol_p): New.
2869         (darwin_override_options): Check for versions that can emit
2870         aligned common.  Update usage of flags to current.
2871         * config/darwin-sections.def: Update comments and flags for
2872         non-anchor sections.  zobj_const_section, zobj_data_section,
2873         zobj_bss_section, zobj_const_data_section: New.
2874         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
2875         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
2876         (L2_MAX_OFILE_ALIGNMENT): Define.
2877         (ASM_OUTPUT_ALIGNED_BSS): Define.
2878         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2879         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2880         (SECTION_NO_ANCHOR): Define.
2881         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
2882         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
2883
2884 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
2885
2886         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
2887         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
2888         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
2889         Conditionally define.
2890         (GET_ENVIRONMENT): Poison.
2891         * configure.ac: Don't test for mincore.
2892         * configure: Regenerate.
2893         * config.in: Regenerate.
2894         * collect2-aix.c: Don't include <sys/mman.h>.
2895         * collect2.c: Don't include <signal.h>.
2896         (SIGCHLD): Don't define.
2897         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
2898         * config/alpha/alpha.c: Include "splay-tree.h" instead of
2899         <splay-tree.h>.
2900         * config/arm/arm.c (arm_target_help): Use getenv instead of
2901         GET_ENVIRONMENT.
2902         * config/avr/driver-avr.c: Don't include <stdlib.h>.
2903         * config/frv/frv.c: Don't include <ctype.h>.
2904         * config/host-darwin.c: Don't include <sys/mman.h>.
2905         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
2906         (MAP_FAILED): Don't define.
2907         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
2908         * config/host-solaris.c: Don't include <sys/mman.h>.
2909         * config/i386/cygming.h: Don't include <stdio.h>.
2910         * config/i386/driver-i386.c: Don't include <stdlib.h>.
2911         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
2912         * config/iq2000/iq2000.c: Don't include <signal.h>.
2913         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
2914         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
2915         * config/mep/mep-pragma.c: Don't include <stdio.h>.
2916         * config/microblaze/microblaze.c: Don't include <signal.h>.
2917         * config/mips/mips.c: Don't include <signal.h>.
2918         * config/rs6000/host-darwin.c: Don't include <signal.h>.
2919         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
2920         * defaults.h (GET_ENVIRONMENT): Don't define.
2921         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
2922         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
2923         (SIGCHLD, MAP_FAILED, kill): Don't define.
2924         (process_command): Use getenv instead of GET_ENVIRONMENT.
2925         * genhooks.c: Don't include <string.h>.
2926         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
2927         <sys/types.h>.
2928         (MAP_FAILED): Don't define.
2929         * ggc-page.c Don't include <sys/mman.h>.
2930         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2931         * ggc-zone.c: Don't include <sys/mman.h>.
2932         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
2933         * graph.c: Include "config.h" instead of <config.h>.
2934         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
2935         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
2936         (SIGCHLD, kill): Don't define.
2937         * mips-tfile.c: Don't include <signal.h>.
2938         * opts.c: Don't include <signal.h> or <sys/resource.h>.
2939         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
2940         * passes.c: Don't include <signal.h>, <sys/resource.h> or
2941         <sys/times.h>.
2942         * sparseset.h: Don't include <assert.h>.
2943         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
2944         * tlink.c: Don't include "libiberty.h".
2945         * toplev.c: Don't include <signal.h> or <sys/times.h>.
2946         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
2947         * tree-switch-conversion.c: Don't include <signal.h>.
2948         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
2949
2950 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
2951
2952         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
2953         c_parser_objc_try_catch_finally_statement for consistency with the
2954         C++ parser.  Parse @catch(...) and pass NULL_TREE to
2955         objc_begin_catch_clause() in that case.  Improved error recovery.
2956         Reorganized code to be almost identical to
2957         cp_parser_objc_try_catch_finally_statement.
2958
2959 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
2960
2961         PR tree-optimization/46621
2962         * gimple.h: Don't include tm.h or hard-reg-set.h .
2963         * Makefile.in (GIMPLE_H): Remove $(TM_H).
2964
2965         PR bootstrap/44756
2966         * cppbuiltin.c: Include target.h .
2967         (define_builtin_macros_for_type_sizes):
2968         Use targetm.float_words_big_endian.
2969
2970 2010-11-27  Jan Hubicka  <jh@suse.cz>
2971
2972         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
2973         and output cold_text_section_label.
2974         (dwarf2out_init): Don't do that there.
2975         (dwarf2out_finish): Handle cold section end label only if cold
2976         section was used.
2977
2978 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
2979
2980         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
2981         VLA variables.
2982
2983 2010-11-27  Richard Guenther  <rguenther@suse.de>
2984
2985         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
2986         (gimple_assign_ssa_name_copy_p): Likewise.
2987         (gimple_assign_unary_nop_p): Use is_gimple_assign.
2988         (is_gimple_cast): Remove.
2989         (gimple_assign_single_p): Move ...
2990         * gimple.h (gimple_assign_single_p): ... here.
2991         (is_gimple_cast): Remove.
2992         (gimple_assign_rhs_code): Simplify.
2993         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
2994         instead of is_gimple_cast.
2995         * ipa-type-escape.c (look_for_casts): Likewise.
2996
2997 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
2998
2999         * doc/options.texi (Enum, EnumValue): Document new record types.
3000         (Enum): Document new option flag.
3001         * opt-functions.awk
3002         * optc-gen.awk: Handle enumerated option arguments.
3003         * opth-gen.awk: Handle enumerated option arguments.
3004         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
3005         enum_value_to_arg): New.
3006         (decode_cmdline_option): Handle enumerated arguments.
3007         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
3008         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
3009         * opts.c (print_filtered_help, print_specific_help): Take
3010         lang_mask arguments.
3011         (print_filtered_help): Handle printing values of enumerated
3012         options.  Print possible arguments for enumerated options.
3013         (print_specific_help): Update call to print_filtered_help.
3014         (common_handle_option): Update calls to print_specific_help.  Use
3015         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
3016         handle OPT_ffp_contract_, OPT_fexcess_precision_,
3017         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
3018         OPT_fira_region_ here.
3019         * opts.h (enum cl_var_type): Add CLVC_ENUM.
3020         (struct cl_option): Add var_enum.
3021         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
3022         struct cl_enum, cl_enums, cl_enums_count): New.
3023         (CL_ERR_ENUM_ARG): Define.
3024         (CL_ERR_NEGATIVE): Update value.
3025         (enum_value_to_arg): Declare.
3026         * common.opt (flag_ira_algorithm, flag_ira_region,
3027         flag_fp_contract_mode, flag_excess_precision_cmdline,
3028         default_visibility, flag_tls_default): Remove Variable entries.
3029         (help_enum_printed): New Variable.
3030         (fdiagnostics-show-location=): Use Enum.  Add associated
3031         SourceInclude, Enum and EnumValue entries.
3032         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
3033         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
3034         associated Enum and EnumValue entries.
3035
3036 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
3037
3038         PR target/46623
3039         * config/microblaze/microblaze.c (microblaze_block_move_straight):
3040         Use XALLOCAVEC.
3041         (microblaze_option_override): Don't use C++ style comments.
3042         (save_restore_insns): Remove unused variable base_offset.
3043         (microblaze_expand_prologue): Remove unused variable insn.
3044         (microblaze_secondary_reload): Adjust type to match target.h .
3045         (microblaze_elf_in_small_data_p): Move declarations to start of block.
3046         (microblaze_expand_move): Likewise.
3047         * config/microblaze/microblaze.h (LARGE_INT):
3048         Avoid signed / unsigned comparisons.
3049         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
3050         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
3051         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
3052
3053 2010-11-26  Michael Matz  <matz@suse.de>
3054
3055         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
3056
3057         * passes.c (init_optimization_passes): Remove superfluous
3058         copy-prop pass.
3059
3060 2010-11-26  Richard Guenther  <rguenther@suse.de>
3061
3062         PR lto/46648
3063         * gimple.c (gtc_visit): Do not return true for members of an
3064         SCC still being processed but the current lattice value of
3065         the member.  Treat SCC members comparison state as lattice,
3066         starting at equal, eventually dropping to unequal.
3067         (gimple_types_compatible_p_1): Likewise.
3068
3069 2010-11-26  Richard Guenther  <rguenther@suse.de>
3070
3071         PR middle-end/46559
3072         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
3073         for location list processing.
3074
3075 2010-11-26  Richard Guenther  <rguenther@suse.de>
3076
3077         PR lto/46560
3078         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
3079         flags manually.
3080
3081 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3082
3083         * config/s390/s390.c (print_operand_address): Replace assert with
3084         error message.
3085         (print_operand): Replace assertions, gcc_unreachable and
3086         fatal_insn with error messages.
3087
3088 2010-11-26  Richard Guenther  <rguenther@suse.de>
3089
3090         PR tree-optimization/46665
3091         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
3092
3093 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
3094
3095         * config/arm/arm.c (arm_option_override): enable loop array
3096         prefetching at -O3 for suitable targets, and configure params.
3097         * config/arm/arm-protos.h (struct tune_params): Add fields for
3098         configuring loop array prefetching.
3099
3100 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
3101
3102         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
3103
3104 2010-11-26  Richard Guenther  <rguenther@suse.de>
3105
3106         PR tree-optimization/46664
3107         * tree-affine.c (aff_combination_to_tree): Add rest last.
3108
3109 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
3110
3111         PR target/33637
3112         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
3113         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
3114         * configure: Regenerated.
3115         * exec-tool.in: Not quoting command, may have extra arguments.
3116
3117 2010-11-26  Richard Guenther  <rguenther@suse.de>
3118
3119         PR tree-optimization/46528
3120         PR debug/46338
3121         * profile.c (branch_prob): Do not split blocks based on locations
3122         from debug statements.
3123
3124 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
3125
3126         PR middle-end/46647
3127         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
3128         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
3129
3130         PR bootstrap/45700
3131         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
3132         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
3133         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
3134         build6_loc): Define.
3135         * fold-const.c (protected_set_expr_location_unshare): New inline.
3136         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
3137         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
3138         pedantic_omit_one_operand_loc, omit_two_operands_loc,
3139         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
3140         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
3141         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
3142         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
3143         instead of buildN followed by SET_EXPR_LOCATION or
3144         protected_set_expr_location.
3145         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
3146         Use buildN_stat_loc instead of buildN_stat followed by
3147         SET_EXPR_LOCATION.
3148
3149 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
3150
3151         * Makefile.in (s-tm-texi): Remove spurous tab.
3152
3153 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
3154
3155         PR debug/46258
3156         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
3157         debug stmts.
3158
3159 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
3160
3161         * toplev.c (finalize): Add no_backend parameter.  Don't finish
3162         passes when preprocessing only.  Adjust...
3163         (do_compile): ... caller.
3164
3165 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3166
3167         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
3168         flag_unsafe_math_optimizations.
3169         (negsf2): Likewise.
3170         Move fnegabs related patterns together.  Only use fmpynfadd instruction
3171         to negate a multiply if !flag_signed_zeros is true.
3172
3173 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
3174
3175         * gengtype-state.c (read_state_structures): Initialize "previous".
3176
3177 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
3178             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3179
3180         * gengtype-state.c: Add new file.
3181
3182         * gengtype.c (type count): New variable.
3183         (new_structure, find_param_structure, create_pointer)
3184         (create_array): Use it to set state_number in types.
3185         (dump_everything): Improve comment.
3186         (main): Call read_state and write_state. Print type_count.
3187
3188         * gengtype.h (type_lineloc): New function.
3189         (read_state, write_state): New declarations.
3190
3191         * Makefile.in (GENGTYPE_FLAGS): New variable.
3192         (s-gtype): Run gengtype twice and generate gtype.state.
3193         (build/gengtype-state.o): New rule.
3194         (build/gengtype$(build_exeext)): Link gengtype-state.o.
3195         (mostlyclean): Update comment.  Remove gtype.state.
3196
3197 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
3198
3199         PR middle-end/46637
3200         * combine.c (try_combine): When substing i2dest for i2src, pass
3201         1 as last argument even if
3202         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
3203
3204 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
3205
3206         PR middle-end/46647
3207         * builtins.c (target_char_cast): Check INTEGER_CST instead of
3208         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
3209
3210 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
3211
3212         * target.def (supports_split_stack, except_unwind_info): Take
3213         gcc_options parameters.
3214         * targhooks.c (default_except_unwind_info,
3215         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
3216         gcc_options parameters.
3217         * targhooks.h (default_except_unwind_info,
3218         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
3219         prototypes.
3220         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
3221         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
3222         Document that hooks must not be modified.
3223         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
3224         * doc/tm.texi: Regenerate.
3225         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
3226         &global_options to targetm.except_unwind_info.
3227         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
3228         dwarf2out_begin_prologue, dwarf2out_frame_init,
3229         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
3230         &global_options to targetm.except_unwind_info.
3231         * except.c (init_eh, finish_eh_generation,
3232         gate_convert_to_eh_region_ranges,
3233         output_one_function_exception_table): Pass &global_options to
3234         targetm.except_unwind_info.
3235         * expr.c (build_personality_function): Pass &global_options to
3236         targetm.except_unwind_info.
3237         * function.c (expand_function_end): Pass &global_options to
3238         targetm.except_unwind_info.
3239         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
3240         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
3241         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
3242         and targetm.supports_split_stack.  Remove assertions about opts
3243         and opts_set.
3244         (common_handle_option): Remove assertions about opts, opts_set and dc.
3245         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
3246         &global_options to targetm.except_unwind_info.
3247         * tree.c (build_common_builtin_nodes: Pass &global_options to
3248         targetm.except_unwind_info.
3249         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
3250         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
3251         thumb1_expand_prologue, thumb1_output_function_prologue,
3252         arm_unwind_emit, arm_output_fn_unwind): Update calls to
3253         arm_except_unwind_info.
3254         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
3255         parameter.
3256         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
3257         parameter.
3258         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
3259         ia64_reorg, ia64_asm_unwind_emit): Update calls to
3260         ia64_except_unwind_info.
3261         * config/pa/pa.c (pa_option_override): Pass &global_options to
3262         targetm.except_unwind_info.
3263         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
3264         Remove prototype.
3265
3266 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
3267
3268         * cgraphunit.c (process_function_and_variable_attributes):
3269         Mark dllexport-ed function/variables as needed.
3270         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
3271         as externally visible.
3272
3273 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
3274
3275         PR rtl-optimization/46585
3276         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
3277         (vinsn_init): Skip computation of dependencies for local NOPs.
3278         (vinsn_delete): Don't try to free regsets for local NOPs.
3279         (setup_nop_and_exit_insns): Change definition of nop_pattern.
3280
3281 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
3282
3283         PR rtl-optimization/46602
3284         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
3285         (tidy_control_flow): Here.
3286
3287 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
3288             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3289
3290         PR bootstrap/45888
3291         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
3292         Fix target.def pathname in timestamp comparison.
3293
3294 2010-11-24  Richard Henderson  <rth@redhat.com>
3295
3296         * config/ia64/predicates.md (pmpyshr_operand): New.
3297         * config/ia64/ia64.c (ia64_expand_unpack): New.
3298         (ia64_expand_widen_mul_v4hi): New.
3299         (ia64_expand_widen_sum): Update for pattern renames.
3300         (ia64_expand_dot_prod_v8qi): Likewise.
3301         * config/ia64/ia64-protos.h: Update.
3302         * config/ia64/vect.md (vecwider): New mode attribute.
3303         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
3304         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
3305         (pmpyshr2, pmpyshr2_u): New.
3306         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
3307         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
3308         (mulv2si3): New.
3309         (vec_pack_ssat_v4hi): Rename from pack2_sss.
3310         (vec_pack_usat_v4hi): Rename from *pack2_uss.
3311         (vec_pack_ssat_v2si): Rename from pack4_sss.
3312         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
3313         vec_select operation.
3314         (vec_interleave_highv8qi): Similarly.
3315         (mux1_alt): Rename from *mux1_alt.
3316         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
3317         (vec_interleave_lowv4hi): Rename from unpack2_l.
3318         (vec_interleave_highv4hi): Rename from unpack2_h.
3319         (mix2_r): Rename from *mix2_r.
3320         (mix2_l): Similarly.
3321         (vec_extract_evenodd_helper): New.
3322         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
3323         (vec_interleave_lowv2si): Rename from *unpack4_l.
3324         (vec_interleave_highv2si): Rename from *unpack4_h.
3325         (vec_extract_evenv2si, vec_extract_oddv2si): New.
3326         (vec_interleave_lowv2sf): Rename from fmix_r.
3327         (vec_interleave_highv2sf): Rename from *fmix_l.
3328         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
3329         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
3330         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
3331         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
3332
3333 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
3334
3335         * targhooks.c (default_except_unwind_info): Remove
3336         MUST_USE_SJLJ_EXCEPTIONS case.
3337         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
3338         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3339         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
3340         * doc/tm.texi: Regenerate.
3341         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
3342
3343 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
3344
3345         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
3346         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
3347         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
3348         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
3349         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
3350
3351 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
3352
3353         PR target/46519
3354         * config/i386/i386.c (ix86_expand_call): Don't check
3355         TREE_THIS_VOLATILE.
3356
3357 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
3358
3359         PR target/46519
3360         * config/i386/i386.c (upper_128bits_state): New.
3361         (block_info_def): Remove upper_128bits_set and done.  Add state,
3362         referenced, count, processed and rescanned.
3363         (check_avx256_stores): Updated.
3364         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
3365         Call note_stores only if needed.  Set referenced and count.
3366         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
3367         (rescan_move_or_delete_vzeroupper): New.
3368         (move_or_delete_vzeroupper):  Process and rescan all all basic
3369         blocks instead of predecessor blocks of all exit points.
3370         (ix86_option_override_internal): Enable vzeroupper optimization
3371         only for -fexpensive-optimizations and not optimizing for size.
3372         (use_avx256_p): Removed.
3373         (init_cumulative_args): Don't set use_avx256_p.
3374         (ix86_function_arg): Likewise.
3375         (ix86_expand_move): Likewise.
3376         (ix86_expand_vector_move_misalign): Likewise.
3377         (ix86_local_alignment): Likewise.
3378         (ix86_minimum_alignment): Likewise.
3379         (ix86_expand_epilogue): Don't check use_avx256_p when generating
3380         vzeroupper.
3381         (ix86_expand_call): Likewise.
3382
3383         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
3384         and use_avx256_p.  Add rescan_vzeroupper_p.
3385
3386 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
3387
3388         * toplev.c: Include <signal.h>.
3389
3390 2010-11-24  Richard Guenther  <rguenther@suse.de>
3391
3392         PR lto/43218
3393         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
3394         conflicting function signatures as non-inlineable.
3395
3396 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
3397
3398         PR rtl-optimization/46614
3399         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
3400          (deps_analyze_insn): Mark JUMP_INSNs in
3401         last_pending_memory_flush that weren't added through
3402         flush_pending_lists with NON_FLUSH_JUMP_KIND.
3403         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
3404         on INSN_LIST instead of JUMP_P check on its operand.
3405         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
3406
3407 2010-11-24  Richard Guenther  <rguenther@suse.de>
3408
3409         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
3410
3411 2010-11-24  Richard Guenther  <rguenther@suse.de>
3412
3413         PR lto/46606
3414         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
3415         a FIELD_DECL that is type correct issue a warning and fixup
3416         with a VIEW_CONVERT_EXPR.
3417
3418 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
3419
3420         * doc/invoke.texi (Options for Debugging Your Program or GCC):
3421         Explain static numbering of dump files.
3422
3423 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
3424
3425         * common.opt (user_vect_verbosity_level): New Variable entry.
3426         (ftree-vectorizer-verbose=): Mark as UInteger.
3427         * flag-types.h (enum vect_verbosity_levels): Move from enum
3428         verbosity_levels in tree-vectorizer.h.
3429         * opts.c: Don't include tree.h.
3430         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
3431         gcc_options parameter; take integer option argument.
3432         (common_handle_option): Update call to vect_set_verbosity_level.
3433         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
3434         (vect_set_verbosity_level): Move to opts.c.
3435         (vect_verbosity_level, vect_print_dump_info): Update for change of
3436         enum name.
3437         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
3438         (vect_print_dump_info): Update for change of enum name.
3439         * tree.h (vect_set_verbosity_level): Remove.
3440         * Makefile.in (opts.o): Update dependencies.
3441
3442 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
3443
3444         PR middle-end/46629
3445         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
3446         instead of insn with any_condjump_p.
3447
3448 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
3449
3450         * config/mips/loongson.md: Change the description comment of the file
3451         and update the copyright years.
3452         (define_insn "<u>div<mode>3): Add loongson3a support.
3453         (define_insn "<u>mod<mode>3"): Likewise.
3454         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
3455         mul<mode>3_mul3_loongson.
3456         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
3457         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
3458
3459 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3460
3461         * common.opt (initial_max_fld_align, flag_debug_asm,
3462         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
3463         flag_print_asm_name, graph_dump_format, help_printed,
3464         help_columns, flag_opts_finished): New Variable entries.
3465         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
3466         frandom-seed=): Mark deferred.
3467         (fsched-verbose=): Use UInteger and Var.
3468         * flags.h (set_struct_debug_option, flag_print_asm_name,
3469         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
3470         graph_dump_format): Don't declare here.
3471         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
3472         * opts-global.c: Include dbgcnt.h and debug.h.
3473         (decode_options): Pass location to finish_options.
3474         (handle_common_deferred_options): Check flag_dump_all_passed.
3475         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
3476         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
3477         OPT_fstack_limit.
3478         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
3479         (set_struct_debug_option): Add location_t parameter.  Update
3480         recursive call.  Use error_at.
3481         (default_options_optimization): Use error_at.
3482         (finish_options): Add location_t parameter.  Use
3483         opts->x_flag_opts_finished instead of first_time_p.  Use
3484         opts->x_optimize instead of optimize.  Use error_at.  Pass
3485         location to inform.
3486         (print_filtered_help): Use opts->x_help_printed to track what
3487         options have been printed.
3488         (print_specific_help): Use opts->x_help_columns to track number of
3489         columns.
3490         (common_handle_option): Pass locations and gcc_options pointers to
3491         more functions.  Use warning_at instead of fnotice and warning.
3492         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
3493         OPT_fdebug_prefix_map_.  Use error_at.  Set
3494         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
3495         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
3496         OPT_fsched_verbose_.
3497         (handle_param): Add location_r parameter.  Use error_at.
3498         (set_debug_level): Add location_r parameter.  Use error_at and
3499         warning_at.
3500         (setup_core_dumping): Add diagnostic_context parameter.
3501         (decode_d_option): Add gcc_options, location_t and
3502         diagnostic_context parameters and use them instead of global
3503         state.  Use warning_at.
3504         (enable_warning_as_error): Use error_at.
3505         * opts.h (finish_options): Update prototype.
3506         (set_struct_debug_option): Declare here.
3507         * rtl.h (fix_sched_param): Remove.
3508         * stor-layout.c (initial_max_fld_align): Remove.
3509         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
3510         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
3511         (process_options): Set maximum_field_alignment.
3512         * tree.h (initial_max_fld_align) Don't declare here.
3513         * Makefile.in (opts.o, opts-global.o): Update dependencies.
3514
3515 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3516
3517         * flag-types.h (struct visibility_flags): Don't declare here.
3518         * flags.h (strip_off_ending, fast_math_flags_set_p,
3519         fast_math_flags_struct_set_p): Declare here.
3520         (visibility_options): Don't declare here.
3521         * opts-common.c (option_enabled, get_option_state): Move from
3522         opts.c.
3523         * opts-global.c: Include diagnostic.h instead of
3524         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
3525         and toplev.h.
3526         (const_char_p, ignored_options, in_fnames, num_in_fnames,
3527         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
3528         print_ignored_options, unknown_option_callback,
3529         post_handling_callback, lang_handle_option, add_input_filename,
3530         read_cmdline_options, initial_lang_mask, init_options_once,
3531         decode_cmdline_options_to_array_default_mask,
3532         set_default_handlers, decode_options): Move from opts.c.
3533         (print_ignored_options): Use warning_at instead of saving and
3534         restoring input_location.
3535         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
3536         instead of expr.h.  Don't include langhooks.h, except.h or
3537         lto-streamer.h.  Add more comments on includes.
3538         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
3539         toplev.c.
3540         (visibility_options): Move to c-family/c-common.c.
3541         (const_char_p, ignored_options, in_fnames, num_in_fnames,
3542         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
3543         print_ignored_options, unknown_option_callback,
3544         post_handling_callback, lang_handle_option, add_input_filename,
3545         read_cmdline_options, initial_lang_mask, init_options_once,
3546         decode_cmdline_options_to_array_default_mask,
3547         set_default_handlers, decode_options): Move to opts-global.c.
3548         (target_handle_option, default_options_optimization,
3549         finish_options, common_handle_option): Remove static.
3550         (option_enabled, get_option_state): Move to opts-common.c.
3551         * opts.h (common_handle_option, target_handle_option,
3552         finish_options, default_options_optimization): Declare.
3553         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
3554         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
3555         opts.c.
3556         * toplev.h (strip_off_ending, decode_d_option,
3557         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
3558         declare here.
3559         * Makefile.in (opts.o, opts-global.o): Update dependencies.
3560
3561 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
3562
3563         PR driver/42690
3564         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
3565         options, replace by call of pass-through-libs spec function to process
3566         link_gcc_c_sequence spec.
3567         (lto_libgcc_spec): Delete variable.
3568         (static_specs[]): Remove related entry.
3569         (static_spec_functions[]): Add new entry for pass-through-libs.
3570         (main): Don't generate deleted lto_libgcc_spec.
3571         (pass_through_libs_spec_func): New function to implement the new
3572         pass-through-libs spec function.
3573         * doc/invoke.texi (pass-through-libs): Document new spec function.
3574
3575 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
3576
3577         * doc/options.texi (Warning, Optimization): Document.
3578
3579 2010-11-23  Jan Hubicka  <jh@suse.cz>
3580
3581         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
3582         (tree_decl_with_vis): Add implicit_section_name_p.
3583         * targhooks.h (default_function_section): Declare.
3584         * target.def (function_section): New hook.
3585         * defaults.h (HOT_TEXT_SECTION_NAME,
3586         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3587         * predict.c (choose_function_section): Remove.
3588         (estimate_bb_frequencies): Do not use choose_function_section.
3589         * coretypes.h (enum node_frequency): Move here from cgraph.h
3590         * cgraph.h (enum node_frequency): Remove.
3591         * varasm.c (initialize_cold_section_name, unlikely_text_section,
3592         unlikely_text_section_p): Remove.
3593         (named_subsection_entry): New structure.
3594         (get_text_section): New function.
3595         (default_function_section): New function.
3596         (function_section_1): Break out from ...; handle profile info.
3597         (function_section): ... here.
3598         (unlikely_text_section): Remove.
3599         (unlikely_text_section_p): Use function_section_1.
3600         (assemble_start_function): Do not initialize cold section.
3601         (default_section_type_flags): Do not special case cold subsection.
3602         (switch_to_section): Likewise.
3603         * output.h (get_text_section): Define.
3604         * config/i386/winnt.c: Do not special case cold section.
3605         * config/darwin-protos.h (darwin_function_section): Declare.
3606         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
3607         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3608         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
3609         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3610         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
3611         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
3612         * config/darwin.c (machopic_select_section): Use
3613         darwin_function_section.
3614         (darwin_function_section): New function.
3615         * config/darwin.h (HOT_TEXT_SECTION_NAME,
3616         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
3617         (TARGET_ASM_FUNCTION_SECTION): Define.
3618         * system.h (HOT_TEXT_SECTION_NAME,
3619         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
3620
3621 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
3622
3623         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
3624         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
3625
3626 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
3627
3628         PR middle-end/46499
3629         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
3630         following unconditional jumps.
3631
3632 2010-11-23  Richard Guenther  <rguenther@suse.de>
3633
3634         * doc/md.texi (386 constraints): Clarify A constraint documentation.
3635
3636 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
3637             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3638
3639         * gengtype.c (enum typekind, struct options)
3640         (struct nested_ptr_data, struct pair, NUM_PARAM)
3641         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
3642         Move to gengtype.h.
3643         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
3644         Remove static, add zero state_number.
3645         (typedefs, structures, param_structs, variables): Remove static.
3646         (create_option): Remove.
3647         (create_string_option, create_type_option, create_nested_option):
3648         New functions.
3649         (create_nested_ptr_option): Use create_nested_option.
3650         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
3651         new create*option functions.
3652         (process_gc_options): Adjust for discriminated option.
3653         (output_mangled_typename): Handle TYPE_NONE.
3654         (walk_type): Test option kinds.
3655         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
3656         (write_func_for_structure, write_type, write_local, write_root)
3657         (write_roots, note_def_vec, dump_options): Adjust for
3658         discriminated option.
3659
3660         * gengtype.h (typedefs, structures, param_structs, variables
3661         enum typekind): Move from gengtype.c
3662         (enum option_kind): New discriminating enumeration.
3663         (struct options): Becomes discriminated.
3664         (struct nested_ptr_data): Nove from gengtype.c
3665         (create_string_option, create_type_option, create_nested_option)
3666         (create_nested_ptr_option): New functions
3667         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
3668         (UNION_OR_STRUCT_P): Move from gengtype.c
3669
3670         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
3671         discriminated options.
3672
3673 2010-11-23  Richard Guenther  <rguenther@suse.de>
3674
3675         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
3676         twice.  Avoid re-allocating the ops vector all the time.
3677
3678 2010-11-23  Richard Guenther  <rguenther@suse.de>
3679
3680         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
3681         is_gimple_min_invariant, group tree code checks to allow
3682         combining them.
3683         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
3684         of is_gimple_reg.
3685
3686 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
3687
3688         * config.gcc (sparc*-*-*): Reorder.
3689
3690 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
3691
3692         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
3693         Remove ENABLE_CHECKING around DBGPRINTF.
3694
3695 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
3696
3697         * common.opt (exit_after_options, write_symbols, debug_info_level,
3698         use_gnu_debug_info_extensions): New Variable entries.
3699         (fprofile-dir=): Use Var.
3700         * flag-types.h (enum debug_info_level): Rename to enum
3701         debug_info_levels.
3702         * flags.h (write_symbols, debug_info_level,
3703         use_gnu_debug_info_extensions): Remove declarations.
3704         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
3705         (set_struct_debug_option): Make static variables const.
3706         (use_gnu_debug_info_extensions): Remove.
3707         (set_debug_level, print_filtered_help, print_specific_help,
3708         fast_math_flags_set_p): Take gcc_options parameters and use them
3709         in place of global variables.
3710         (print_filtered_help): Make new_help non-static.
3711         (print_specific_help): Update call to print_filtered_help.
3712         (common_handle_option): Update calls to print_specific_help.  Use
3713         gcc_options structure for more settings.  Make --help table
3714         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
3715         set_debug_level.
3716         * toplev.c (profile_data_prefix): Remove.
3717         * toplev.h (profile_data_prefix, exit_after_options): Remove
3718         declarations.
3719         (fast_math_flags_set_p): Update prototype.
3720         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
3721         Update call to fast_math_flags_set_p.
3722
3723 2010-11-22  Richard Henderson  <rth@redhat.com>
3724
3725         PR target/46434
3726         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
3727         return the address register extracted.
3728         (crx_decompose_address): Update the extracted address register.
3729
3730 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
3731
3732         PR driver/43335
3733         * gcc.c (main): Don't crash when lto-wrapper program is not found.
3734
3735 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
3736
3737         PR target/46608
3738         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
3739         * config/picochip/picochip-protos.h: Don't include "target.h" .
3740         (picochip_secondary_reload): Don't declare.
3741
3742         PR target/46613
3743         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
3744         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
3745         static.
3746
3747 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
3748
3749         PR bootstrap/46609
3750         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
3751         (source_dot_c_frul): Likewise.
3752
3753 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
3754
3755         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
3756
3757 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
3758
3759         PR bootstrap/44970
3760         * Makefile.in (fwprop.o) Add sparseset.h.
3761         * fwprop.c: Include sparseset.h
3762         (struct find_occurrence_data, find_occurrence_callback,
3763         find_occurrence): Remove.
3764         (active_defs, active_defs_check, register_active_defs,
3765         update_df_init, update_uses): New.
3766         (update_df): Rewrite.
3767         (try_fwprop_subst, forward_propagate_asm): Add calls to
3768         update_df_init and update_df.
3769         (fwprop_init): Allocate active_defs and active_defs_check.
3770         (fwprop_done): Free them.
3771         (fwprop, fwprop_addr): Adjust comments.
3772         * df.h (df_uses_create): Declare.
3773         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
3774         (df_ref_create): Return result of df_ref_create_structure directly.
3775         (df_ref_create_structure): Call df_install_ref_incremental when
3776         no collection_rec is passed.
3777         (df_ref_record): Do not create multiword hard reg info when no
3778         collection_rec is passed.
3779         (df_uses_create): New.
3780
3781 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
3782
3783         PR middle-end/43057
3784         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
3785         setting location.
3786
3787 2010-11-22  Richard Guenther  <rguenther@suse.de>
3788
3789         * gimple-fold.c (maybe_fold_reference): When canonicalizing
3790         MEM_REFs, preserve volatileness.
3791         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
3792         addresses.
3793
3794 2010-11-22  Richard Guenther  <rguenther@suse.de>
3795
3796         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
3797
3798 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
3799
3800         PR rtl-optimization/45652
3801         * alias.c (get_reg_base_value): New.
3802         * rtl.h (get_reg_base_value): Add prototype.
3803         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
3804         non-null REG_BASE_VALUE for renaming.
3805
3806 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3807             Basile Starynkevitch  <basile@starynkevitch.net>
3808
3809         * gengtype.c: Include xregex.h and obstack.h
3810         Added comments about role of get_output_file_with_visibility and
3811         our regexpr machinery.
3812         (frul_actionrout_t, struct file_rule_st): New.
3813         (hader_dot_h_frul, source_dot_c_frul): New functions.
3814         (NULL_REGEX,  NULL_FRULACT): New.
3815         (files_rules): New.
3816         (matching_file_name_substitute): New function.
3817         (get_output_file_with_visibility): Updated comments and rewritten
3818         to use the new files_rules machinery.
3819
3820         * Makefile.in (XREGEX_H): Added variable.
3821         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
3822
3823 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
3824
3825         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
3826
3827 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
3828
3829         * target.def (conditional_register_usage): Define.
3830         * reginfo.c (init_reg_sets_1): Call
3831         targetm.conditional_register_usage.
3832         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
3833         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
3834         for making it a hook.
3835         * doc/tm.texi: Regenerate.
3836         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3837         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
3838         New function.
3839         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3840         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3841         * config/arc/arc.c (arc_conditional_register_usage): ...here.
3842         New function.
3843         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3844         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3845         * config/arm/arm.c (arm_conditional_register_usage): ...here.
3846         New function.
3847         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3848         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
3849         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
3850         * config/bfin/bfin.c (conditional_register_usage): Move code into...
3851         (bfin_conditional_register_usage): ...here.  New function.
3852         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3853         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
3854         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
3855         * config/cris/cris.c (cris_conditional_register_usage): Make static.
3856         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3857         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
3858         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
3859         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
3860         * config/frv/frv.c (frv_conditional_register_usage): Make static.
3861         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3862         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3863         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
3864         New function.
3865         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3866         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
3867         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
3868         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
3869         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3870         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
3871         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
3872         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
3873         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3874         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3875         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
3876         New function.
3877         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3878         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
3879         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
3880         Delete.
3881         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
3882         static.
3883         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3884         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
3885         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
3886         * config/mep/mep.c (mep_conditional_register_usage): Make static.
3887         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3888         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
3889         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
3890         * config/mips/mips.c (mips_conditional_register_usage): Make static.
3891         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3892         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
3893         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
3894         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
3895         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3896         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3897         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
3898         ...here.  New function.
3899         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3900         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3901         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
3902         * config/pa/pa.c (pa_conditional_register_usage): ...here.
3903         New function.
3904         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3905         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3906         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
3907         New function.
3908         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3909         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
3910         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
3911         Delete.
3912         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
3913         static.
3914         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3915         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
3916         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
3917         * config/rx/rx.c (rx_conditional_register_usage): Make static.
3918         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3919         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
3920         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
3921         * config/s390/s390.c (s390_conditional_register_usage): Make static.
3922         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3923         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3924         * config/score/score.c (score_conditional_register_usage): ...here.
3925         New function.
3926         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3927         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3928         * config/sh/sh.c (sh_conditional_register_usage): ...here.
3929         New function.
3930         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3931         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3932         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
3933         New function.
3934         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3935         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
3936         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
3937         * config/spu/spu.c (spu_conditional_register_usage): Make static.
3938         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3939         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
3940         * config/v850/v850.c (v850_conditional_register_usage): ...here.
3941         New function.
3942         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
3943
3944 2010-11-21  Jan Hubicka  <jh@suse.cz>
3945             Dominique d'Humieres <dominiq@lps.ens.ft>
3946
3947         PR target/46510
3948         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
3949         finalize external decls.
3950
3951 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
3952
3953         * system.h (strerror): Poison.
3954
3955 2010-11-21  Richard Henderson  <rth@redhat.com>
3956
3957         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
3958         for infq/huge_valq.
3959
3960 2010-11-21  Richard Henderson  <rth@redhat.com>
3961
3962         PR rtl-optimization/46571
3963         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
3964         (compute_hash_table_work): Use NONDEBUG_INSN_P.
3965
3966 2010-11-21  Paul Koning  <ni1d@arrl.net>
3967
3968         * config/mips/pdp11.md (negsi2): Fix wrong code.
3969
3970 2010-11-21  Paul Koning  <ni1d@arrl.net>
3971
3972         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
3973         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
3974
3975 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
3976
3977         * config/mips/mips.c (machine_function): Rename load_label_length to
3978         load_label_num_insns.
3979         (mips_load_label_length): Rename to...
3980         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
3981         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
3982
3983 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
3984
3985         PR target/46533
3986         * config/alpha/predicates.md (direct_call_operand): Return false
3987         for !TARGET_SMALL_TEXT targets.
3988
3989 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
3990
3991         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
3992         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
3993         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
3994         * doc/tm.texi: Regenerate.
3995         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
3996         HANDLE_PRAGMA_WEAK): Poison.
3997         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
3998         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
3999         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
4000         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
4001         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
4002         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
4003   &