OSDN Git Service

eac889ae452c246d62bd195a1b8972b94ed3eca3
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
2
3         PR debug/46150
4         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
5         true if expr1->hash != expr2->hash.
6
7 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
8
9         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
10         diagnostics with lowercase letters.
11         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
12         lowercase letters.
13         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
14         diagnostic.
15         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
16         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
17         lowercase letters.
18         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
19         Remove trailing ' ' from diagnostic.
20         * config/avr/avr.c (print_operand_address): Start diagnostic with
21         a lowercase letter and remove trailing '.'.
22         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
23         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
24         with lowercase letters.  Use %' in diagnostics.  Remove trailing
25         '.' from diagnostics.
26         (bfin_handle_longcall_attribute): Use %' in diagnostic.
27         * config/cris/cris.c (cris_split_movdx,
28         cris_expand_pic_call_address): Start diagnostics with lowercase
29         letters.
30         (cris_asm_output_label_ref): Use %' in diagnostic.
31         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
32         letter.
33         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
34         lowercase letter.
35         * config/darwin-c.c (version_as_macro): Start diagnostic with a
36         lowercase letter.
37         * config/darwin-driver.c (darwin_default_min_version): Use %' in
38         diagnostic.
39         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
40         diagnostic.
41         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
42         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
43         diagnostics.
44         * config/i386/i386.c (ix86_option_override_internal): Write
45         diagnostic as a single sentence without trailing '.'.  Use %' in
46         diagnostics.
47         (ix86_function_sseregparm, classify_argument): Start diagnostics
48         with lowercase letters.
49         (ix86_expand_prologue): Use %' in diagnostic.
50         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
51         diagnostic.
52         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
53         lowercase letter.
54         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
55         diagnostic.
56         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
57         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
58         '`' in help text.
59         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
60         lowercase letter.
61         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
62         lowercase letters.
63         * config/microblaze/microblaze.c (microblaze_handle_option):
64         Remove trailing '.' from diagnostic.
65         (print_operand): Start diagnostic with a lowercase letter.
66         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
67         lowercase letters.  Avoid '`' in diagnostics.
68         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
69         lowercase letters.  Avoid '`' in diagnostics.
70         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
71         lowercase letters.  Avoid '`' in diagnostics.
72         * config/picochip/picochip.c (picochip_option_override,
73         picochip_emit_save_register, picochip_function_arg,
74         picochip_output_label, picochip_output_internal_label,
75         picochip_asm_output_opcode, picochip_output_cbranch,
76         picochip_output_compare, picochip_output_branch,
77         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
78         diagnostics. Start diagnostics with lowercase letters.  Use %' in
79         diagnostics.
80         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
81         "SPE" capitalization.  Start diagnostic with a lowercase letter.
82         (rs6000_handle_option): Start diagnostics with lowercase letters.
83         (def_builtin): Remove trailing '.' from diagnostic.
84         (rs6000_savres_routine_name): Start diagnostic with a lowercase
85         letter.
86         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
87         diagnostic.
88         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
89         lowercase letter.
90         * config/s390/s390.c (s390_option_override) Start diagnostics with
91         lowercase letters.  Use %' in diagnostic.
92         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
93         lowercase letters.
94         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
95         diagnostic.
96         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
97         diagnostic.
98         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
99         diagnostic.
100         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
101         * config/spu/spu.c (spu_option_override): Start diagnostics with
102         lowercase letters.  Use %qs for quoting in diagnostics.
103         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
104         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
105         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
106         from diagnostic.
107         * convert.c (convert_to_integer, convert_to_vector): Use %' in
108         diagnostics.
109         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
110         letter and use "cannot" spelling.
111         * expmed.c (extract_fixed_bit_field): Start diagnostic with
112         lowercase letter and format as a single sentence without '.'.
113         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
114         Use %' in diagnostics.
115         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
116         Use %' in diagnostics.
117         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
118         Use %' in diagnostics.
119         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
120         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
121         with lowercase letters and remove tailing '.' and '\n'.
122         * lto-cgraph.c (input_profile_summary): Start diagnostic with
123         lowercase letter and remove trailing '.'.
124         (input_cgraph): Start diagnostics with lowercase letters and
125         remove trailing '\n'.
126         * opts.c (finish_options, common_handle_option): Start diagnostics
127         with lowercase letters and remove trailing '.'.  Fix typo in
128         diagnostic.
129         * passes.c (position_pass): Start diagnostic with lowercase
130         letter. 
131         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
132         register_callback, try_init_one_plugin): Start diagnostics with
133         lowercase letters.
134         * reload1.c (spill_failure): Use %' in diagnostic.
135         (gen_reload): Start diagnostic with a lowercase letter.
136         * stor-layout.c (place_field): Start diagnostic with a lowercase
137         letter.
138         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
139         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
140         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
141         Start diagnostics with lowercase letters, remove trailing '.' and
142         use %' in diagnostics.
143         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
144         (verify_ssa): Don't split diagnostic across two error calls.
145         Spell out "number" and use %' in diagnostic.
146         * value-prof.c (visit_hist, check_counter): Start diagnostics with
147         lowercase letters.
148
149 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
150
151         PR middle-end/46419
152         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
153         (_mm_cvtpu16_ps): Ditto.
154
155 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
156
157         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
158         warn_larger_than, larger_than_size, warn_frame_larger_than,
159         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
160         default_visibility, flag_tls_default): New Variable declarations.
161         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
162         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
163         (v): Declare as Common and document here.
164         * flags.h (default_visibility, flag_generate_lto,
165         warn_larger_than, larger_than_size, warn_frame_larger_than,
166         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
167         flag_shlib, flag_excess_precision_cmdline): Remove.
168         (set_Wstrict_aliasing): Update prototype.
169         * gcc.c (verbose_flag): Remove.
170         (driver_handle_option): Add diagnostic_context parameter.  Don't
171         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
172         incrementing it.
173         * opts-common.c (handle_option): Pass dc to handler.
174         * opts.c (warn_larger_than, larger_than_size,
175         warn_frame_larger_than, frame_larger_than_size,
176         default_visibility): Remove.
177         (common_handle_option): Add diagnostic_context parameter.
178         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
179         gcc_options parameters.
180         (lang_handle_option, target_handle_option, read_cmdline_options,
181         decode_options): Add diagnostic_context parameters.
182         (finish_options): Access option state through opts pointer where
183         possible.
184         (common_handle_option): Access option state through opts pointer
185         where possible.  Do not set local static variable verbose.  Do not
186         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
187         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
188         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
189         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
190         OPT_fwhopr_.  Do not explicitly set .opt file variables for
191         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
192         (set_Wstrict_aliasing): Add gcc_options parameter.
193         * opts.h (struct cl_option_handler_func): Add diagnostic_context
194         parameter to handler.
195         (decode_options): Add diagnostic_context parameter.
196         * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
197         asm_file_name, flag_generate_lto, flag_gen_aux_info,
198         aux_info_file_name, flag_shlib, flag_tls_default,
199         flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
200         (toplev_main): Pass global_dc to decode_options.
201         * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
202         aux_info_file_name, asm_file_name): Remove.
203         * tree.h (flag_tls_default): Remove.
204
205 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
206
207         * config/sparc/sparc.c (sparc_delegitimize_address): New function.
208         (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
209
210 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
211
212         * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
213         (x86_64-*-*): Likewise.
214         * config/i386/cpuid.h: Define TBM bit.
215         * config/i386/driver-i386.c (host_detect_local_cpu): Define
216         and set has_tbm.
217         * config/i386/i386-c.c (ix86_target_macros_internal): Check
218         isa_flag for TBM.
219         * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
220         (OPTION_MASK_ISA_TBM_UNSET): New.
221         (ix86_handle_option): Handle -mtbm.
222         (isa_opts): Add -mtbm.
223         (enum pta_flags): Add PTA_TBM.
224         (ix86_option_override_internal): Add TBM support.
225         (ix86_valid_target_attribute_inner_p): Handle -mtbm.
226         (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
227         (IX86_BUILTIN_BEXTRI64): Likewise.
228         (bdesc_args): Add TBM intrinsics.
229         (ix86_expand_builtin): Add TBM specific case.
230         * config/i386/i386.h (TARGET_TBM): New for TBM.
231         * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
232         (tbm_bextri_<mode>): Likewise.
233         (*tbm_blcfill_<mode>): Likewise.
234         (*tbm_blci_<mode>): Likewise.
235         (*tbm_blcic_<mode>): Likewise.
236         (*tbm_blcmsk_<mode>): Likewise.
237         (*tbm_blcs_<mode>): Likewise.
238         (*tbm_blsfill_<mode>): Likewise.
239         (*tbm_blsic_<mode>): Likewise.
240         (*tbm_t1mskc_<mode>): Likewise.
241         (*tbm_tzmsk_<mode>): Likewise.
242         * config/i386/i386.opt: Add -mtbm.
243         * config/i386/tbmintrin.h (__bextri_u32): New.
244         (__blcfill_u32): Likewise.
245         (__blci_u32): Likewise.
246         (__blcic_u32): Likewise.
247         (__blcmsk_u32): Likewise.
248         (__blcs_u32): Likewise.
249         (__blsfill_u32): Likewise.
250         (__blsic_u32): Likewise.
251         (__t1mskc_u32): Likewise.
252         (__tzmsk_u32): Likewise.
253         (__bextri_u64): Likewise.
254         (__blcfill_u64): Likewise.
255         (__blci_u64): Likewise.
256         (__blcic_u64): Likewise.
257         (__blcmsk_u64): Likewise.
258         (__blcs_u64): Likewise.
259         (__blsfill_u64): Likewise.
260         (__blsic_u64): Likewise.
261         (__t1mskc_u64): Likewise.
262         (__tzmsk_u64): Likewise.
263         * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
264         * doc/invoke.texi: Document -mtbm.
265         * doc/extend.texi: Document TBM built-in functions.
266
267 2010-11-10  Quentin Neill  <quentin.neill.gnu@gmail.com>
268
269         * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
270         (x86_64-*-*): Likewise.
271         * config/i386/cpuid.h: Define BMI bit.
272         * config/i386/driver-i386.c (host_detect_local_cpu): Define
273         and set has_bmi.
274         * config/i386/i386-c.c (ix86_target_macros_internal): Check
275         isa_flag for BMI.
276         * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
277         (OPTION_MASK_ISA_BMI_UNSET): New.
278         (ix86_handle_option): Handle -mbmi.
279         (isa_opts): Add -mbmi.
280         (enum pta_flags): Add PTA_BMI.
281         (ix86_option_override_internal): Add BMI support.
282         (ix86_valid_target_attribute_inner_p): Handle -mbmi.
283         (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
284         (IX86_BUILTIN_BEXTR64): Likewise.
285         (IX86_BUILTIN_CTZS): Likewise.
286         (bdesc_args): Add BMI intrinsics.
287         (ix86_expand_args_builtin): Add BMI specific cases.
288         * config/i386/i386.h (TARGET_BMI): New for BMI.
289         (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
290         (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
291         * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
292         (UNSPEC_TZCNT): Likewise.
293         (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
294         (bmi_andn_<mode>): New for BMI.
295         (bmi_bextr_<mode>): Likewise.
296         (bmi_blsi_<mode>): Likewise.
297         (bmi_blsmsk_<mode>): Likewise.
298         (bmi_blsr_<mode>): Likewise.
299         * config/i386/i386.opt: Add -mbmi.
300         * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
301         * config/i386/bmiintrin.h (__lzcnt_u16): New.
302         (__tzcnt_u16): Likewise.
303         (__andn_u32): Likewise.
304         (__bextr_u32): Likewise.
305         (__blsi_u32): Likewise.
306         (__blsmsk_u32): Likewise.
307         (__blsr_u32): Likewise.
308         (__lzcnt_u32): Likewise.
309         (__tzcnt_u32): Likewise.
310         (__andn_u64): Likewise.
311         (__bextr_u64): Likewise.
312         (__blsi_u64): Likewise.
313         (__blsmsk_u64): Likewise.
314         (__blsr_u64): Likewise.
315         (__lzcnt_u64): Likewise.
316         (__tzcnt_u64): Likewise.
317         * doc/invoke.texi: Document -mbmi and -mno-bmi.
318         * doc/extend.texi: Document BMI built-in functions.
319
320 2010-11-10  Jan Hubicka  <jh@suse.cz>
321
322         PR tree-optimize/46228
323         * doc/invoke.texi (comdat-sharing-probability): Document.
324         * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
325         * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
326
327 2010-11-10  Jan Hubicka  <jh@suse.cz>
328
329         PR tree-optimize/46228
330         * cgraph.c (cgraph_propagate_frequency): Fix typo.
331
332 2010-11-10  H.J. Lu  <hongjiu.lu@intel.com>
333
334         PR tree-optimization/46414
335         * tree-inline.c (estimate_move_cost): Check preferred vector
336         mode for vector type.
337
338 2010-11-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
339
340         * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
341
342 2010-11-10  Sebastian Pop  <sebastian.pop@amd.com>
343
344         PR tree-optimization/45971
345         * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
346         for phi nodes analyzable by scev.
347
348 2010-11-10  Richard Guenther  <rguenther@suse.de>
349
350         PR tree-optimization/44964
351         * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
352
353 2010-11-10  Martin Jambor  <mjambor@suse.cz>
354
355         PR tree-optimization/46351
356         PR tree-optimization/46377
357         * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
358         aggregate bit-fields.
359
360 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
361
362         * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
363         * doc/tm.texi: Regenerate.
364         * opts-common.c (tm.h): Don't include.
365         (target_option_translations): Remove.
366         (decode_cmdline_options_to_array): Don't handle translating options.
367         * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
368         * config/darwin-driver.c: Don't condition includes on
369         CROSS_DIRECTORY_STRUCTURE.
370         (darwin_default_min_version): Make static.
371         (darwin_driver_init): New.  Call darwin_default_min_version if not
372         CROSS_DIRECTORY_STRUCTURE.
373         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
374         (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
375         (ASM_SPEC): Add %{static}.
376         (darwin_default_min_version): Don't declare.
377         (darwin_driver_init): Declare.
378         (GCC_DRIVER_HOST_INITIALIZATION): Define to call
379         darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
380         * config/darwin.opt (all_load, allowable_client,
381         arch_errors_fatal, bind_at_load, bundle, bundle_loader,
382         dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
383         exported_symbols_list, filelist, findirect-virtual-calls,
384         flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
385         framework, fterminated-vtables, gfull, gused, image_base, init,
386         install_name, multi_module, multiply_defined,
387         multiply_defined_unused, no_dead_strip_inits_and_terms,
388         seg_addr_table, seg_addr_table_filename, segaddr,
389         segs_read_only_addr, segs_read_write_addr, single_module,
390         umbrella, unexported_symbols_list, weak_reference_mismatches,
391         Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
392         Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
393         Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
394         Zno_dead_strip_inits_and_terms, Zsingle_module): New.
395         * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
396         (ASM_SPEC): Add %{static}.
397         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
398         * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
399         (DRIVER_SELF_SPECS): Handle options formerly in
400         TARGET_OPTION_TRANSLATE_TABLE.
401         * config/mep/mep.opt (mfar): New.
402         * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
403         (DRIVER_SELF_SPECS): Define.  Handle options formerly in
404         TARGET_OPTION_TRANSLATE_TABLE.
405         * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
406         (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
407         * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
408         ffix-and-continue, findirect-data): New.
409         * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
410         * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
411         (mnofpu): Define mask and use Report here.
412
413 2010-11-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
414
415         * config/s390/s390.c (s390_emit_prologue): Report the stack
416         size if -fstack-usage is used.
417
418 2010-11-10  Richard Guenther  <rguenther@suse.de>
419
420         PR tree-optimization/46398
421         * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
422
423 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
424
425         PR target/44760
426         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
427         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
428         GP_REG_OR_PSEUDO_STRICT_P.
429         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
430         unexpected alternative.
431         (*movsf_internal): Likewise.
432         (indirect_jump): Replace call to non-existant function with call to
433         internal_error.
434         (tablejump): Likewise.
435         * config/iq2000/iq2000.c: Include df.h .
436         (iq2000_function_arg_advance): Use CONST_CAST2.
437         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
438         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
439         a non-zero function address.
440         (iq2000_initial_elimination_offset): Add gcc_unreachable for
441         unexpected value of FROM.
442         (symbolic_expression_p): Delete.
443         (iq2000_function_value): Constify func.
444         (expand_one_builtin): Use expand_normal.
445         (iq2000_print_operand): Don't print VALUE if calculating it failed.
446
447         PR rtl-optimization/44764
448         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
449
450         PR target/46407
451         * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
452         * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
453         with ATTRIBUTE_UNUSED.
454         (valid_psw_flag): Constify parameter which.
455         (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
456
457         PR target/46415
458         * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
459         (mmix_dbx_register_number): Likewise.
460         * config/mmix/mmix.c: Include df.h .
461         (mmix_local_alignment): Change argument basic_align and return type
462         to unsigned.
463         (mmix_dbx_register_number): Change argument and return type to
464         unsigned.
465         (mmix_expand_prologue): Use add_reg_note.
466
467         PR target/46417
468         * config/spu/spu.c (spu_expand_insv): Remove unused variables.
469         (spu_split_store): Use aform.
470         (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
471
472 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
473
474         PR/46268
475         * doc/gty.texi (GTY Options): Clarify that variable_size produces
476         allocators taking size in bytes, compare with length option.  Add
477         size calculation example.
478         (Invoking the garbage collector): Ensure that sentences are
479         followed by two spaces.  Describe that pointer fields must be
480         initialized at ggc_collect call.
481         (Troubleshooting): New section.
482
483 2010-11-09  Jan Hubicka  <jh@suse.cz>
484
485         PR tree-optimization/40436
486         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
487         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
488         normal instructions; be sure bultin is not implemented in this file;
489         compute non-zero return cost.
490         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
491         * tree-inline.h (eni_weights_d): Add return cost.
492
493 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
494
495         * c-parser.c (c_parser_struct_declaration): Handle declaration
496         specifiers followed by CPP_CLOSE_BRACE.
497
498 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
499
500         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
501         split occurs before reload, and we allocate memory at the time of
502         the split, not during expansion.  Add attributes.
503         (floatsi<mode>2_lfiwax_mem): Ditto.
504         (floatunssi<mode>2_lfiwzx): Ditto.
505         (floatunssi<mode>2_lfiwzx_mem): Ditto.
506         (floatsidf2): Ditto.
507         (floatunssisf2): Ditto.
508         (floatunssidf2): Ditto.
509         (fix_trunc<mode>si2): Ditto.
510         (fix_trunc<mode>si2_stfiwx): Ditto.
511         (fix_trunc<mode>si2_internal): Ditto.
512         (fix_trunc<mode>si2): Ditto.
513         (fix_trunc<mode>di2): Ditto.
514         (fixuns_trunc<mode>si2_stfiwx): Ditto.
515         (floatsisf2): Ditto.
516         (floatdidf2_mem): Ditto.
517         (floatunsdidf2_mem): Ditto.
518         (floatunsdidf2): Ditto.
519         (floatdisf2_internal1): Ditto.
520         (floatdisf2_mem): Ditto.
521         (floatunsdisf2_mem): Ditto.
522         (floatsi<mode>2_lfiwax_mem2): Delete.
523         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
524         (fix_trunc<mode>si2_mem): Ditto.
525         (fixuns_trunc<mode>si2_mem): Ditto.
526         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
527         type operations to reduce copying the values to multiple memory slots.
528         (roundu32<mode>2_fprs): Ditto.
529
530         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
531         PRE_INC, PRE_DEC, PRE_MODIFY.
532         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
533
534         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
535         Delete prototype.
536
537 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
538
539         PR target/43808
540         * cfgexpand.c (partition_stack_vars): Call
541         update_alias_info_with_stack_vars unconditionally.
542         (update_alias_info_with_stack_vars): Allow unused
543         unreferenced vars when not optimizing.
544
545 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
546
547         PR tree-optimization/46036
548         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
549         add_to_dst_predicate_list.
550
551 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
552
553         PR debug/46171
554         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
555         earlier.
556         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
557         argument, call dead_debug_reset when adding REG_UNUSED note.
558         (dead_debug_reset): New function.
559         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
560         df_create_unused_note callers.
561
562 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
563
564         * config/fr30/fr30.c: Include "df.h".
565
566 2010-11-09  Richard Guenther  <rguenther@suse.de>
567
568         PR tree-optimization/46355
569         * tree-loop-distribution.c (tree_loop_distribution): Do not
570         distribute loops without a single exit.
571
572 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
573
574         PR rtl-optimization/46237
575         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
576         saved hard regs if they might get partially clobbered.
577
578 2010-11-09  Paul Koning  <ni1d@arrl.net>
579
580         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
581
582 2010-11-09  Richard Guenther  <rguenther@suse.de>
583
584         PR tree-optimization/46177
585         * tree-loop-distribution.c (prop_phis): Remove.
586         (generate_builtin): Re-use the old loop exit edge to avoid
587         needing to update PHI nodes.
588
589 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
590
591         * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
592         type of args_size to unsigned HOST_WIDE_INT.
593
594         PR target/44755
595         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
596         * config/t-pnt16-warn: New file.
597         * config/picochip/picochip.c (picochip_emit_stack_allocate):
598         Use add_reg_note.
599         (picochip_emit_save_register): Likewise.
600         (picochip_emit_restore_register): Remove variable insn.
601         (picochip_legitimize_address): Don't use C++ style comments.
602         (picochip_legitimize_reload_address): Likewise.
603         (reorder_var_tracking_notes): Remove variable vliw_start.
604         (picochip_reorg): Cast first arguemnt to emit_note_after to
605         enum insn_note.
606         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
607         (picochip_expand_builtin_3op): Likewise.
608         (picochip_expand_builtin_2opvoid): Likewise.
609         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
610         (picochip_expand_array_testport): Likewise.
611         (picochip_init_builtins): Remove unused variables.
612         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
613         to unsigned long, and output it as such.
614         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
615         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
616         (schedType): Cast result of picochip_schedule_type to
617         enum attr_schedType.
618
619         PR target/44759
620         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
621         conditional to type of S.
622         (mn10300_function_arg): Remove unused variable align.
623         (mn10300_arg_partial_bytes): Likewise.
624         * config/mn10300/mn10300.md (attribute cpu): Cast value to
625         enum attr_cpu.
626
627 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
628
629         PR bootstrap/46392
630         * gengtype-parse.c (type): Call get_input_file_name to get file name.
631
632 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
633
634         * tree.h (contains_placeholder_p): Fix comment.
635         (type_contains_placeholder_p): Adjust comment.
636         * tree.c (contains_placeholder_p): Fix comment.
637         (type_contains_placeholder_1): Do not recurse on pointed-to types and
638         adjust comment.
639         (type_contains_placeholder_p): Add comment.
640
641 2010-11-09  Paul Koning  <ni1d@arrl.net>
642
643         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
644         output of byte values.
645
646 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
647
648         PR middle-end/46360
649         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
650         not in SSA mode.
651
652 2010-11-09  Richard Guenther  <rguenther@suse.de>
653
654         PR middle-end/46221
655         * varasm.c (compute_visible_aliases): New function.
656         (remove_unreachable_alias_pairs): Aliases make a target available
657         even though we reclaimed the cgraph node.
658         (finish_aliases_1): Likewise.
659         * Makefile.in (varasm.o): Add pointer-set.h dependency.
660
661 2010-11-09  Nick Clifton  <nickc@redhat.com>
662
663         * config/mn10300/mn10300-modes.def: New file.
664
665 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
666             Jeremie Salvucci  <jeremie.salvucci@free.fr>
667
668         * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
669         (plugin_files, get_file_basename, get_file_realbasename)
670         (get_file_langdir, error_at_line, gt_files, this_file)
671         (system_h_file, read_input_list, create_field_all)
672         (get_file_srcdir_relative_path, get_file_basename)
673         (get_file_langdir, get_file_gtfilename)
674         (get_output_file_with_visibility, get_output_file_name)
675         (struct flist, put_mangled_filename, walk_type)
676         (put_mangled_filename, finish_root_table, write_roots): Use
677         input_file-s.
678         (lang_dir_names, num_lang_dirs): Remove static.
679         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
680         (main): Use input_file-s.
681
682         * gengtype.h: (struct input_file_st, input_file): New type.
683         (struct fileloc): Use it.
684         (gt_files, num_gt_files, this_file, system_h_file)
685         (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
686         (get_input_file_name): New function.
687         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
688         use input_file.
689         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
690         (get_output_file_name): Ditto.
691
692         * gengtype-lex.l (yybegin): Use input_file.
693
694         * gengtype-parse.c (parse_error): Use input_file.
695
696 2010-11-08  Xinliang David Li  <davidxl@google.com>
697
698         PR tree-optimization/46316
699         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
700         * double-int.h (double_int_mul_with_sign): New function.
701         * double-int.c (double_int_mul_with_sign): New function.
702
703 2010-11-08  Paul Koning  <ni1d@arrl.net>
704
705         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
706
707 2010-11-08  Paul Koning  <ni1d@arrl.net>
708
709         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
710
711 2010-11-08  Paul Koning  <ni1d@arrl.net>
712
713         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
714         to 8 bits.
715
716 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
717
718         PR target/46378
719         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
720         turn on ISA 2.04 rounding instructions for power5.
721
722         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
723         not ISA 2.02.
724
725         PR target/45585
726         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
727         in FPR registers.
728         (movdi_low_st): Ditto.
729
730 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
731             Richard Henderson  <rth@redhat.com>
732
733         PR target/44758
734         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
735         (attribute acc_group): Cast value to enum attr_acc_group.
736         (*movdi_nodouble+6): Use gen_int_mode.
737         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
738         if RTX_CODE is defined or not.
739         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
740         struct frv_io.
741         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
742         (frv_frame_access, frv_expand_prologue): Remove unused variables.
743         (frv_expand_block_clear): Likewise.
744         (frv_trampoline_init): Use LCT_NORMAL.
745         (struct frv_packet_group): New struct, broken out of type of
746         frv_packet.
747         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
748         use cast in loop counter increment.
749         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
750         assigning to io->type.
751         (bdesc_set): Use rtx_code UNKNOWN in initializer.
752         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
753         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
754         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
755         (frv_read_argument): Use expand_normal.
756
757         PR target/44757
758         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
759         lm32_legitimate_constant_p.
760         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
761         * config/lm32/lm32.c (gen_int_relational): Make new block for
762         LE / LT / LEU / LTU case.  Declare variables at start of block.
763         (lm32_block_move_inline): Use XALLOCAVEC.
764
765 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
766
767         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
768
769 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
770
771         * gengtype (get_output_file_for_structure): Ensure type is union
772         or struct.
773         (write_splay_tree_allocator_def): Use
774         get_output_file_with_visibility.
775
776 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
777
778         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
779         to defined values in case of an error.
780         (s390_option_override): Skip further processing if the -march
781         parameter wasn't recognized.
782
783 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
784
785         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
786         assert that REG is a hard register number before using it as an index.
787
788         PR bootstrap/46358
789         * config/i386/i386.c (ix86_expand_split_stack_prologue):
790         Avoid warnings when HOST_WIDE_INT is 32 bit.
791
792 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
793
794         PR target/46208
795         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
796         (sparc_promote_prototypes): Likewise.
797         (sparc_promote_function_mode): Promote in 32-bit mode as well.
798         (sparc_return_in_memory): Remove superfluous parentheses.
799         (sparc_struct_value_rtx): Fix long lines.
800         (sparc_function_value_1): Promote in 32-bit mode as well.
801
802 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
803
804         PR rtl-optimization/45352
805         * sel-sched.c (find_best_expr): Do not set pneed_stall when
806         the variable_issue hook is not implemented.
807         (fill_insns): Remove dead variable stall_iterations.
808         (init_seqno_1): Force EBB start for resetting sched cycles on any
809         successor blocks of the rescheduled region.
810         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
811         (reset_sched_cycles_in_current_ebb): Add debug printing.
812         New variable issued_insns.  Advance state when we have issued
813         issue_rate insns.
814
815 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
816
817         * gengtype (main): Get here's position using POS_HERE macro for
818         do*typedef calls.
819
820 2010-11-07  Ian Lance Taylor  <iant@google.com>
821
822         PR target/46089
823         * config/i386/i386.c (split_stack_fn_large): New static variable.
824         (ix86_expand_split_stack_prologue): Handle large model.
825
826 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
827
828         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
829         all possible addressing modes.
830
831 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
832
833         PR tree-optimization/46346
834         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
835
836 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
837
838         * config/mips/mips.c: Revert previous patch.
839         * config/mips/mips.md: Likewise.
840
841 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
842
843         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
844         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
845         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
846         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
847         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
848         to use FMA.
849         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
850         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
851         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
852         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
853
854 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
855
856         PR c/43384
857         * c-decl.c (lookup_label): Labels can only be referenced in a
858         function's scope.
859         (store_parm_decls_oldstyle): Skip erroneous parameters.
860
861 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
862
863         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
864         LIBCALL_VALUE): Remove macros.
865         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
866         TARGET_FUNCTION_VALUE_REGNO_P): Define.
867         (fr30_function_value_regno_p, fr30_function_value,
868         fr30_libcall_value): New functions.
869
870 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
871
872         PR middle-end/46314
873         * target.def (generate_internal_label): New asm_out hook.
874         * output.h (default_generate_internal_label): Declare.
875         * varasm.c (default_generate_internal_label): Define.
876
877 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
878
879         PR target/44981
880         * doc/extend.tex (format): Document NSString extension.
881         (format_arg): Likewise.
882         (Darwin Format Checks): New section.
883         * doc/tm.texi: Document string object hooks (generated).
884         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
885         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
886         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
887         * target.def (objc_construct_string_object): Rename, amend
888         documentation.
889         (string_object_ref_type_p): New hook.
890         (check_string_object_format_arg): New hook.
891         * c-parser.c (c_parser_attributes): Allow objective-c class names as
892         attribute identifiers.
893         * config/darwin-c.c (darwin_cfstring_ref_p): New.
894         (darwin_check_cfstring_format_arg): New.
895         (darwin_additional_format_types): New.
896         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
897         (darwin_check_cfstring_format_arg): New.
898         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
899         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
900         (TARGET_N_FORMAT_TYPES): New.
901         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
902
903 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
904             Pascal Obry  <obry@adacore.com>
905
906         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
907         in 64-bit mode and 17 otherwise.
908
909 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
910
911         PR debug/45939
912         * var-tracking.c (emit_note_insn_var_location): Make sure that
913         call related var location notes come before the normal ones.
914
915 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
916
917         PR target/46326
918         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
919         in the last change.
920
921 2010-11-05  Ian Lance Taylor  <iant@google.com>
922
923         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
924
925 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
926
927         PR c/44772
928         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
929         pointer_set_contains if DECL_NAME is NULL.
930
931 2010-11-05  Ian Lance Taylor  <iant@google.com>
932
933         PR target/46084
934         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
935         request enough additional space for alignment, and force alignment.
936
937 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
938
939         * config/i386/i386.c (legitimate_pic_address_disp_p):
940         Handle UNSPEC_PCREL.
941         (ix86_legitimate_address_p): Likewise.
942         (legitimize_pic_address): Likewise.
943         (output_pic_addr_const): Likewise.
944         (ix86_delegitimize_address): Likewise.
945         (ix86_find_base_term): Likewise.
946         (memory_address_length): Likewise.
947         (x86_output_mi_thunk): Handle special case x64
948         for non local binding.
949         * config/i386/i386.md (UNSPEC_PCREL): New.
950         * config/i386/winnt.c (i386_pe_binds_local_p):
951         Allow weak symbol for x64 windows with non-local binding.
952
953 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
954
955         PR target/45670
956         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
957         instead of EXPAND_NORMAL for base expansion.
958
959 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
960
961         * config.gcc: Support --with-fpmath=avx for x86.
962         * config/i386/avxmath.h: New.
963         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
964
965 2010-11-05  Ian Lance Taylor  <iant@google.com>
966
967         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
968         * gengtype.c (walk_type): Don't recognize descbits option.
969
970 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
971
972         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
973         WORD_SWITCH_TAKES_ARG): Remove.
974         * doc/options.texi (Args): Document.
975         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
976         * doc/tm.texi: Regenerate.
977         * opt-functions.awk (switch_flags): Handle Args.
978         * opts-common.c: Update comment on tm.h include.
979         (decode_cmdline_option): Handle options with multiple arguments.
980         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
981         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
982         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
983         CL_COMMON): Update values.
984         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
985         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
986         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
987         sectobjectsymbols, sectorder, segcreate, segprot): New.
988
989 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
990             Uros Bizjak  <ubizjak@gmail.com>
991
992         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
993         256bit AVX register is used.
994         (ix86_expand_vector_move_misalign): Likewise.
995         (ix86_expand_vector_move): Replace use_avx256_p with
996         VALID_AVX256_REG_MODE.
997
998 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
999
1000          PR target/44750
1001         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
1002         change.  Set $@-warn.o to -Wno-error.
1003
1004         PR bootstrap/44756
1005         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
1006         comparing it to a signed value.
1007
1008         PR middle-end/44766
1009         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
1010         PR bootstrap/44770
1011         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
1012         to i.
1013
1014         PR target/44754
1015         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
1016         (m32c_function_arg).  Add comma between arguments two and three.
1017         (m32c_promote_prototypes): Remove declaration.
1018         (current_function_special_page_vector): Likewise.
1019         (m32c_regno_reg_class): Change return type to enum reg_class.
1020         (m32c_pushm_popm): Use add_reg_note.
1021         (m32c_push_rounding): Change return type to unsigned int.
1022         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
1023         enum reload_type.
1024         (m32c_insert_attributes): Constify variable name.
1025         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
1026         (m32c_prepare_shift): Remove variable lref.
1027         (m32c_expand_movcc): Remove variable cmp.
1028         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
1029         (m32c_compare_redundant): Remove variable op2.
1030         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
1031         (m32c_pragma_memregs): Assign the number to target_memregs.
1032         (m32c_pragma_address): Remove variable var_str.
1033         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
1034         enum reg_class.
1035         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
1036         * config/m32c/bitops.md (andsi3): Add default case to switch.
1037         (iorsi3, xorsi3): Likewise.
1038         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
1039         * config/m32c/jump.md (call, call_value): Likewise.
1040         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
1041         (m32c_regno_reg_class): Likewise.
1042         (current_function_special_page_vector): Declare.
1043
1044 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
1045
1046         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
1047
1048         PR tree-optimization/46099
1049         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
1050         if it is NULL and uid wasn't found in the hash table.  Just fold the
1051         result if it is NULL otherwise.  Insert other potentially needed
1052         stmts right before current stmt instead of on the entry edge.
1053         (struct elv_data): Add gsi and reset fields.
1054         (eliminate_local_variables_1): Adjust caller.  If take_address_of
1055         failed for debug stmt, set dta->reset and return.
1056         (eliminate_local_variables_stmt): Change STMT argument for GSI,
1057         pass GSI through to the callback, handle resetting of debug stmts.
1058         (eliminate_local_variables): Adjust caller.  Process debug stmts
1059         in second phase.
1060
1061         PR middle-end/43690
1062         * gimplify.c (gimplify_asm_expr): If a "m" input is a
1063         {pre,post}{in,de}crement, fail.
1064
1065         PR debug/46307
1066         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
1067         * tree-pretty-print.c (dump_generic_node): Likewise.
1068         (op_code_prio): Likewise.
1069         * cfgexpand.c (expand_debug_expr): Likewise.
1070
1071 2010-11-04  Paul Koning  <ni1d@arrl.net>
1072
1073         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
1074         constraints.
1075
1076 2010-11-04  Chao-ying Fu  <fu@mips.com>
1077
1078         * configure.ac: Test assembler support for DSP Rev1 mult.
1079         * configure: Regenerate.
1080         * config.in: Regenerate.
1081         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
1082         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
1083         (CODE_FOR_mips_multu): New define.
1084         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
1085         dspr2_32 to dsp_32.
1086         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
1087         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
1088         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
1089         New define_expand patterns.
1090         * config/mips/constraints.md (ka): Update the constraint to test
1091         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
1092         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
1093         mips_multu): Delete.
1094         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
1095         Change target constraint to "ka".
1096         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
1097         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
1098         Emit the accumulator destination when ISA_HAS_DSP_MULT.
1099         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
1100         Emit the accumulator destination when ISA_HAS_DSP_MULT.
1101         (<u>maddsidi4): Likewise.
1102         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
1103         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
1104
1105 2010-11-04  Paul Koning  <ni1d@arrl.net>
1106
1107         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
1108
1109 2010-11-04  Paul Koning  <ni1d@arrl.net>
1110
1111         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
1112
1113 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
1114
1115         Fixed using the Objective-C 2.0 dot-syntax with class names.
1116         * c-parser.c (c_parser_next_token_starts_declspecs): In
1117         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
1118         (c_parser_next_token_starts_declaration): Same.
1119         (c_parser_postfix_expression): Parse the Objective-C 2.0
1120         dot-syntax with a class name.
1121
1122 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
1123
1124         * final.c (compute_alignments): Compute/free loop info all the time.
1125         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
1126         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
1127         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
1128         * config/rs6000/rs6000.c (cfgloop.h): Include.
1129         (can_override_loop_align): New.
1130         (rs6000_option_override_internal): Set it.
1131         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
1132         (rs6000_loop_align): New function.
1133         (rs6000_loop_align_max_skip): Likewise.
1134
1135 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1136
1137         PR driver/45703
1138         * collect2.c (main): Print --help output to stdout.  Do not
1139         exit right away, so ld --help is appended.  Add empty lines
1140         to separate output suitably.
1141
1142 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
1143
1144         PR tree-optimization/46233
1145         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
1146         after calling analyze_function, not before.
1147
1148         PR target/46234
1149         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
1150         instead of build_va_arg_indirect_ref.
1151         * config/spu/spu.c (spu_va_start): Likewise.
1152         * config/s390/s390.c (s390_va_start): Likewise.
1153
1154 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
1155
1156         PR middle-end/46292
1157         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
1158         if the innermode is not vector mode, determine the mode of a subreg
1159         by using mode_for_size of inner_size.
1160
1161 2010-11-04  Richard Guenther  <rguenther@suse.de>
1162
1163         PR rtl-optimization/46183
1164         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
1165         (execute_rtl_pre): Likewise.
1166         (execute_rtl_hoist): Likewise.
1167
1168 2010-11-04  Richard Guenther  <rguenther@suse.de>
1169
1170         PR tree-optimization/46068
1171         * ipa-split.c (consider_split): Remove gcc_unreachable.
1172
1173 2010-11-04  Richard Guenther  <rguenther@suse.de>
1174
1175         * tree-nested.c (build_addr): Use build_fold_addr_expr.
1176
1177 2010-11-04  Richard Guenther  <rguenther@suse.de>
1178
1179         PR tree-optimization/45991
1180         * gimplify.c (force_gimple_operand_1): Use the provded test
1181         function in the initial test.
1182
1183 2010-11-04  Jeff Law  <law@redhat.com>
1184
1185         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
1186         of readonly memory equivalances for const/pure calls.
1187
1188 2010-11-04  Richard Guenther  <rguenther@suse.de>
1189
1190         PR tree-optimization/45733
1191         * tree-vect-stmts.c (reverse_vec_elements): Honor the
1192         permute builtins function return type.
1193
1194 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
1195
1196         PR middle-end/44765
1197         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
1198         as an index, check it is not INVALID_REGNUM.
1199
1200         PR bootstrap/44756
1201         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
1202         unsignedp.
1203         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
1204
1205         PR bootstrap/44756
1206         * function.c (thread_prologue_and_epilogue_insns): Add
1207         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
1208
1209         PR bootstrap/44756
1210         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
1211
1212         PR target/44750
1213         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
1214         (pdp11_preferred_reload_class): Rename class to rclass.
1215         (pdp11_preferred_output_reload_class): Likewise.
1216         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
1217         ALL_COMPILERFLAGS .
1218         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
1219
1220         PR bootstrap/44756
1221         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
1222         iteration variables to enum machine_mode.
1223
1224         PR target/44751
1225         * config/h8300/h8300.c: Include df.h.
1226         (push, pop): Use add_reg_note.
1227         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
1228         (compute_a_shift_cc): Likewise.
1229         (expand_a_shift): Argument code has type enum rtx_code.
1230         (struct shift_insn): Member cc_valid has type enum attr_cc.
1231         (struct shift_info) <cc_inline, cc_special>: Likewise.
1232         enum attr_cc.
1233         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
1234         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
1235
1236 2010-11-04  Ira Rosen  <irar@il.ibm.com>
1237
1238         PR tree-optimization/46213
1239         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
1240         MINUS_EXPR only if the first operand is reduction operand.
1241
1242 2010-11-04  Richard Guenther  <rguenther@suse.de>
1243             Richard Henderson  <rth@redhat.com>
1244
1245         * tree.def (FMA_EXPR): New tree code.
1246         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
1247         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
1248         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
1249         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
1250         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
1251         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
1252         (execute_optimize_widening_mul): Call it.  Reorganize to allow
1253         dead stmt removal.  Move TODO flags ...
1254         (pass_optimize_widening_mul): ... here.
1255         * flag-types.h (enum fp_contract_mode): New enum.
1256         * common.opt (flag_fp_contract_mode): New variable.
1257         (-ffp-contract): New option.
1258         * opts.c (common_handle_option): Handle it.
1259         * doc/invoke.texi (-ffp-contract): Document.
1260         * tree.h (fold_fma): Declare.
1261         * builtins.c (fold_fma): New function.
1262         (fold_builtin_fma): Likewise.
1263         (fold_builtin_3): Call it for fma.
1264         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
1265         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
1266         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
1267         New expanders.
1268         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
1269         named patterns.
1270         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
1271         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
1272         (fms_optab, fnma_optab, fnms_optab): New defines.
1273         * gimplify.c (gimplify_expr): Handle binary truth expressions
1274         explicitly.  Handle FMA_EXPR.
1275         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
1276         operations.
1277
1278 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
1279             Richard Guenther  <rguenther@suse.de>
1280
1281         * passes.c (init_optimization_passes): Move veclower after SSA.
1282         * tree-vect-generic.c (uniform_vector_p): New function.
1283         (expand_vector_operations_1): Handle conversion.
1284         (pass_lower_vector): Update SSA form.
1285
1286 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
1287
1288         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
1289         plugin capabilities.
1290         * configure: Regenerate.
1291
1292 2010-11-03  Xinliang David Li  <davidxl@google.com>
1293
1294         PR target/46200
1295         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
1296         Adjust cbase if the use stmt is after iv update.
1297
1298 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1299
1300         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
1301
1302 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
1303
1304         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
1305         comment.  Pass true to the last argument of output_stack_adjust.
1306
1307 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
1308
1309         PR target/46295
1310         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
1311         if 256bit AVX register is used.
1312
1313 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
1314
1315         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
1316         xsmindp/xsmaxdp on VSX for single precision min/max.
1317         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
1318         (vsx_sminsf3): Ditto.
1319
1320 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1321
1322         * combine.c (try_combine): Fix formatting issues, improve comments and
1323         fix a pasto.
1324
1325 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
1326
1327         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
1328         of the result before building binary expressions.
1329
1330 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
1331
1332         PR rtl-optimization/45865
1333         * Makefile.in (df-problems.o): Revert revision 164552.
1334         * basic-block.h (enum bb_flags): Likewise.
1335         * cfgcleanup.c (block_was_dirty): Likewise.
1336         (try_forward_edges): Likewise.
1337         (try_crossjump_bb): Likewise.
1338         (try_head_merge_bb): Likewise.
1339         (try_optimize_cfg): Likewise.
1340         (cleanup_cfg): Likewise.
1341         * df-core.c (df_set_bb_dirty): Likewise.
1342         * df-problems.c: Likewise.
1343         (df_simulate_find_uses): Likewise.
1344         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
1345         (find_memory, find_memory_store): Likewise.
1346         (can_move_insns_across): Likewise.
1347         * df.h (can_move_insns_across): Likewise.
1348         * ifcvt.c (find_memory): Likewise.
1349         (dead_or_predicable): Likewise.
1350
1351 2010-11-03  Richard Guenther  <rguenther@suse.de>
1352
1353         PR middle-end/46288
1354         * predict.c (strip_predict_hints): Simply DCE builtin expect if
1355         the result is unused.
1356
1357 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1358
1359         PR tree-optimization/46009
1360         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
1361         cond_if_else_store_replacement if bb1 and bb2 have the same
1362         single successor.
1363         (cond_store_replacement): Use gimple_assign_single_p, don't
1364         check if rhs is SSA_NAME or invariant.  Call release_defs for
1365         assign.
1366         (cond_if_else_store_replacement): New function.
1367
1368 2010-11-03  Richard Guenther  <rguenther@suse.de>
1369
1370         * opts.c (finish_options): Properly check for all WHOPR
1371         flags before complaining about -flto-partition.
1372
1373 2010-11-04  Alan Modra  <amodra@gmail.com>
1374
1375         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
1376         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
1377         TARGET_SECURE_PLT.
1378         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
1379         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
1380         on input, "r" on output.
1381
1382 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
1383
1384         Implemented -fobjc-std=objc1 flag.
1385         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
1386         option.
1387         * doc/standards.texi (Standards): Updated the section on
1388         Objective-C; mention support for Objective-C 2.0 features and the
1389         new -fstd-objc=objc1 flag to disable them.
1390
1391 2010-11-03  Richard Guenther  <rguenther@suse.de>
1392
1393         PR middle-end/46241
1394         * dwarf2out.c (scope_die_for): Properly detect global scope.
1395
1396 2010-11-03  Richard Guenther  <rguenther@suse.de>
1397
1398         PR tree-optimization/46190
1399         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1400         Properly compute peel iterations.
1401
1402 2010-11-03  Richard Guenther  <rguenther@suse.de>
1403
1404         PR tree-optimization/46286
1405         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
1406         re-allocated vector data.
1407
1408 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         PR target/46285
1411         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
1412         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
1413         is completed.
1414
1415 2010-11-03  Richard Guenther  <rguenther@suse.de>
1416
1417         PR tree-optimization/46217
1418         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
1419         flag matches.
1420         (execute_update_addresses_taken): Likewise.
1421
1422 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
1423
1424         PR bootstrap/44335
1425         * targhooks.c (targhook_words_big_endian): New function.
1426         (targhook_float_words_big_endian): Likewise.
1427         * targhooks.h (targhook_words_big_endian): Declare.
1428         (targhook_float_words_big_endian): Likewise.
1429         * target.def (words_big_endian, float_words_big_endian): New hooks.
1430
1431 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1432
1433         PR tree-optimization/46165
1434         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
1435         a normal call into noreturn call.
1436
1437 2010-11-03  Richard Guenther  <rguenther@suse.de>
1438
1439         PR middle-end/46251
1440         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
1441         not INDIRECT_REFs.
1442
1443 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1444
1445         PR tree-optimization/46107
1446         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
1447         if cfg_hook_duplicate_loop_to_header_edge failed.
1448
1449 2010-11-03  Ian Lance Taylor  <iant@google.com>
1450
1451         PR lto/46273
1452         * config.gcc: Don't set lto_binary_reader.
1453         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
1454         (Configuration): Mention --disable-lto.  Remove --with-libelf
1455         paragraph.
1456
1457 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1458
1459         PR debug/46252
1460         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
1461         prev_real_insn.
1462         * gcse.c (insert_insn_end_basic_block): Likewise.
1463
1464         PR rtl-optimization/46034
1465         PR rtl-optimization/46212
1466         PR rtl-optimization/46248
1467         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
1468         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
1469         before i0dest -> i0src substitution and pass 1 instead of 0 as last
1470         argument to subst on i2pat.
1471
1472 2010-11-02  Ian Lance Taylor  <iant@google.com>
1473
1474         * configure.ac: Use AC_SYS_LARGEFILE.
1475         * configure: Rebuild.
1476         * config.in: Rebuild.
1477
1478 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
1479
1480         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
1481         fold_convert.
1482         * c-typeck.c (build_function_call_vec): Likewise.
1483         * cfgexpand.c (expand_debug_expr): Likewise.
1484         * cgraphunit.c (assemble_thunk): Likewise.
1485         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
1486         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
1487         (fold_binary_loc, fold_ternary_loc): Likewise.
1488         * gimple-fold.c (get_symbol_constant_value): Likewise.
1489         * gimple-low.c (lower_builtin_setjmp): Likewise.
1490         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
1491         * gimplify.c (gimplify_init_constructor): Likewise.
1492         * lambda.h (build_linear_expr): Likewise.
1493         * omp-low.c (omp_reduction_init): Likewise.
1494         * tree-inline.c (remap_ssa_name): Likewise.
1495         * tree-object-size.c (compute_object_sizes): Likewise.
1496         * tree-sra.c (init_subtree_with_zero): Likewise.
1497         (sra_ipa_modify_assign): Likewise.
1498         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
1499         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
1500         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
1501         (undistribute_ops_list): Likewise.
1502         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
1503         * tree-vect-stmts.c (vectorizable_call): Likewise.
1504         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
1505         (build_zero_cst): Handle more cases directly.  Update comment.
1506
1507 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1508
1509         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
1510         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
1511
1512         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
1513         and call ix86_split_call_vzeroupper instead of
1514         ix86_split_call_pop_vzeroupper.
1515         (*call_pop_1_vzeroupper): Likewise.
1516         (*sibcall_pop_1_vzeroupper): Likewise.
1517         (*call_value_pop_0_vzeroupper): Likewise.
1518         (*call_value_pop_1_vzeroupper): Likewise.
1519         (*sibcall_value_pop_1_vzeroupper): Likewise.
1520
1521 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1522
1523         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
1524
1525 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
1526
1527         * basic-block.h (insert_insn_end_bb_new): Delete.
1528         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
1529
1530 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
1531             H.J. Lu  <hongjiu.lu@intel.com>
1532
1533         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
1534         (ix86_split_call_pop_vzeroupper): Likewise.
1535
1536         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
1537         (ix86_expand_call): Conditionally decorate calls with
1538         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
1539         (ix86_split_call_vzeroupper): New.
1540         (ix86_split_call_pop_vzeroupper): Likewise.
1541
1542         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
1543         (*call_pop_0_vzeroupper): New insn_and_split pattern.
1544         (*call_pop_1_vzeroupper): Likewise.
1545         (*sibcall_pop_1_vzeroupper): Likewise.
1546         (*call_0_vzeroupper): Likewise.
1547         (*call_1_vzeroupper): Likewise.
1548         (*sibcall_1_vzeroupper): Likewise.
1549         (*call_1_rex64_vzeroupper): Likewise.
1550         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
1551         (*call_1_rex64_large_vzeroupper): Likewise.
1552         (*sibcall_1_rex64_vzeroupper): Likewise.
1553         (*call_value_pop_0_vzeroupper): Likewise.
1554         (*call_value_pop_1_vzeroupper): Likewise.
1555         (*sibcall_value_pop_1_vzeroupper): Likewise.
1556         (*call_value_0_vzeroupper): Likewise.
1557         (*call_value_0_rex64_vzeroupper): Likewise.
1558         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
1559         (*call_value_1_vzeroupper): Likewise.
1560         (*sibcall_value_1_vzeroupper): Likewise.
1561         (*call_value_1_rex64_vzeroupper): Likewise.
1562         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
1563         (*call_value_1_rex64_large_vzeroupper): Likewise.
1564         (*sibcall_value_1_rex64_vzeroupper): Likewise.
1565
1566 2010-11-02  Ian Lance Taylor  <iant@google.com>
1567
1568         PR lto/46273
1569         * config.gcc: Revert last patch: set lto_binary_reader.
1570
1571 2010-11-02  Richard Guenther  <rguenther@suse.de>
1572
1573         PR tree-optimization/46149
1574         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
1575         non-indirect MEM_REF variants.
1576
1577 2010-11-02  Richard Guenther  <rguenther@suse.de>
1578
1579         PR tree-optimization/46216
1580         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
1581         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
1582
1583 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1584
1585         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
1586         (*-*-osf*): Likewise.
1587         * configure: Regenerate.
1588
1589 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1590
1591         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
1592         for Intel Core 2 and Core i7.
1593
1594 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
1595
1596         Model decoder of Core 2/i7 for multipass scheduling.
1597
1598         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
1599         New type to hold target-specific data for multipass scheduling.
1600         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
1601         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
1602         Core 2/i7.
1603         (core2i7_secondary_decoder_max_insn_size,)
1604         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
1605         New static variables.
1606         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
1607         ([_]ix86_first_cycle_multipass_data): New static variable.
1608         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
1609         Implement targetm.sched hooks.
1610         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
1611         of ...
1612         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
1613         Implement new targetm.sched hooks.
1614         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
1615         targetm.sched hook to install multipass scheduling hooks on demand.
1616
1617         * doc/tm.texi.in: Document new targetm.sched hooks.
1618         * doc/tm.texi: Regenerate.
1619
1620         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
1621         (first_cycle_multipass_data_t): New typedef.
1622         (struct choice_entry: target_data): New field.
1623         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
1624         to allow target model restrictions not represented in DFA.
1625         (choose_ready, schedule_block): Update.
1626         (sched_extend_ready_list, sched_finish_ready_list): Call new target
1627         hooks to initialize target-specific data for multipass scheduling.
1628         * sched-int.h (max_issue): Update declaration.
1629         * sel-sched.c (choose_best_insn): Update.
1630         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
1631         (first_cycle_multipass_{init, fini}): Define and document new
1632         targetm.sched hooks.
1633
1634 2010-11-02  Richard Guenther  <rguenther@suse.de>
1635
1636         PR tree-optimization/46184
1637         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
1638         input vector type from the reduction operand as well.
1639
1640 2010-11-02  Richard Guenther  <rguenther@suse.de>
1641
1642         PR tree-optimization/46177
1643         * tree-loop-distribution.c (prop_phis): Use
1644         mark_virtual_phi_result_for_renaming.
1645
1646 2010-11-02  Martin Jambor  <mjambor@suse.cz>
1647
1648         PR middle-end/46120
1649         * tree.c (get_binfo_at_offset): Bail out on artificial
1650         fields.  Identify primary bases according to their offsets.
1651
1652 2010-11-02  Martin Jambor  <mjambor@suse.cz>
1653
1654         PR tree-optimization/45875
1655         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
1656         (gimple_get_relevant_ref_binfo): Detect primary bases according to
1657         their field offset.
1658
1659 2010-11-02  Ian Lance Taylor  <iant@google.com>
1660
1661         * doc/install.texi (Configuration): Note in two places that Java
1662         is not enabled by default.
1663
1664 2010-11-02  Ian Lance Taylor  <iant@google.com>
1665
1666         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
1667         (Configuration): Mention --disable-lto.  Remove --with-libelf
1668         paragraph.
1669
1670 2010-11-02  Ian Lance Taylor  <iant@google.com>
1671
1672         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
1673         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
1674         LIBELFINC.  Remove HAVE_libelf.
1675         * config.gcc: Don't set lto_binary_reader.
1676         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
1677         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
1678         (LIBS): Remove $(LIBELFLIBS).
1679         (INCLUDES): Remove $(LIBELFINC).
1680         * configure: Rebuild.
1681         * config.in: Rebuild.
1682
1683 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
1684
1685         * config/microblaze/microblaze-protos.h (function_arg): Delete.
1686         (function_arg_advance): Delete.
1687         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
1688         (FUNCTION_ARG): Delete.
1689         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
1690         (microblaze_function_arg_advance): ...this.  Make static.  Take a
1691         const_tree and a bool.
1692         (function-arg): Rename to...
1693         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
1694         and a bool.
1695         (microblaze_expand_prologue): Call targetm.calls.function_arg and
1696         targetm.calls.function_arg_advance.
1697         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1698
1699 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
1700
1701         Merge from FSF "apple/trunk" branch.
1702
1703         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
1704         * config/darwin.opt: .. to here.
1705         (matt-stubs): New option.
1706         * config/i386/darwin.opt: Delete.
1707         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
1708         (MACHO_DYNAMIC_NO_PIC_P): New.
1709         (MACHOPIC_INDIRECT): New.
1710         (MACHOPIC_PURE): New.
1711         * config/i386/darwin.h (DARWIN_X86) Define to 1.
1712         (MACHOPIC_ATT_STUB): New.
1713         (CC1_SPEC): Do not remove mdynamic-no-pic.
1714         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1715         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1716         (FUNCTION_PROFILER): Correct over-length line.
1717         (SUBTARGET_OVERRIDE_OPTIONS): New.
1718         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1719         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
1720         (legitimate_constant_p): Handle mdynamic-no-pic.
1721         (ix86_legitimate_address_p): Likewise.
1722         (ix86_legitimize_address): Likewise.
1723         (ix86_expand_move): Likewise.
1724         (machopic_output_stub): Update for ATT-style stubs and
1725         mdynamic-no-pic.
1726         * config/darwin-protos.h (machopic_symbol_defined_p): New.
1727         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
1728         TARGET_DYNAMIC_NO_PIC: Remove.
1729         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1730         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1731         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
1732         Remove handling of mdynamic-no-pic.
1733         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
1734         Define if required.
1735         (machopic_symbol_defined_p): Do not try to use current_function_decl
1736         when generating _get_pc thunks within stubs.
1737         (machopic_indirect_data_reference): Rework for direct conditionals
1738         rather than #ifdefs, add x86 mdynamic-no-pic
1739         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
1740         defined value.
1741         (darwin_override_options): Handle mdynamic-no-pic here.
1742         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
1743         (machopic_lazy_symbol_ptr3_section): New.
1744         (machopic_picsymbol_stub2_section): New.
1745         (machopic_picsymbol_stub3_section): New.
1746         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
1747         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1748         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1749         Moved common definition from x86 and rs6000.
1750         (MACHO_DYNAMIC_NO_PIC_P): Override value.
1751         (MACHOPIC_INDIRECT): Likewise.
1752         (MACHOPIC_PURE): Likewise.
1753         * config.gcc (x86-darwin-*): Remove darwin.opt.
1754
1755 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
1756
1757         PR debug/46255
1758         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
1759         instead of gsi_last_bb.
1760
1761 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1762             Maxim Kuvyrkov  <maxim@codesourcery.com>
1763
1764         * config/i386/i386.c (cpu_names): Add "corei7".
1765         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
1766
1767 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1768             Maxim Kuvyrkov  <maxim@codesourcery.com>
1769
1770         Tune alignment for Intel Core i7
1771
1772         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
1773         (enum processor_type): Update comment.  Add entries for Core i7.
1774         * config/i386-c.c (ix86_target_macros_internal): Update.
1775         * config/i386.c (m_COREI7{_32,_64}): New macros.
1776         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
1777         (processor_target_table): Tune alignment for Core i7.
1778         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
1779
1780         * doc/invoke.texi: Document "corei7" option value.
1781
1782 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1783             Maxim Kuvyrkov  <maxim@codesourcery.com>
1784             H.J. Lu  <hjl.tools@gmail.com>
1785
1786         Basic support for Intel Core i7
1787
1788         * i386.c (ix86_option_override_internal): Add entry for corei7, use
1789         generic tuning.  Use generic32 when compiling for 32-bit ABI.
1790
1791 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
1792
1793         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
1794         sections and call darwin_asm_dwarf_section() to handle them.
1795         (darwin_asm_dwarf_section): New.
1796         (darwin_file_start): Remove code emitting dwarf section symbols.
1797
1798 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
1799
1800         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
1801         explicitly disable stack protection when building libgcc.
1802         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
1803
1804 2010-11-01  Jason Merrill  <jason@redhat.com>
1805
1806         * fold-const.c (fold_indirect_ref_1): Handle folding
1807         POINTER_PLUS_EXPR to ARRAY_REF.
1808
1809 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1810
1811         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
1812         (sh_delegitimize_address): New function.
1813
1814 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
1815
1816         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
1817         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
1818         (CC1_SPEC): Don't handle -target.
1819         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
1820         options.
1821         * config/darwin.opt (Zallowable_client, Zbundle_loader,
1822         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
1823         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
1824         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
1825         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
1826         Zweak_reference_mismatches, client_name, compatibility_version,
1827         current_version, dylinker_install_name, pagezero_size,
1828         read_only_relocs, seg1addr, segs_read_only_addr,
1829         segs_read_write_addr, sub_library, sub_umbrella): New.
1830         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
1831         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
1832         * config/freebsd.opt: New.
1833         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
1834         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
1835         * config/rpath.opt: New.
1836         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
1837         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
1838         Use rpath.opt.
1839
1840 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
1841
1842         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
1843         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
1844         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
1845         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
1846         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
1847         Document that options in .opt files do not need to be included.
1848         * doc/tm.texi: Regenerate.
1849         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
1850         * opts-common.c: Update comment on tm.h include.
1851         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
1852         * system.h (SWITCH_TAKES_ARG): Poison.
1853         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
1854         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
1855         in darwin.opt.
1856         (LINK_COMMAND_SPEC_A): Don't include %{x}.
1857         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1858         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
1859         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
1860         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1861         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
1862         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
1863         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
1864         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
1865         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1866         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
1867         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
1868         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
1869         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
1870         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
1871         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
1872         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
1873         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
1874         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
1875         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
1876         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
1877         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
1878         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
1879         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1880
1881 2010-11-01  Paul Koning  <ni1d@arrl.net>
1882
1883         * config/pdp11/pdp11.md: Use iterators.
1884         (addqi3, subqi3, iorsi3, xorsi3): Delete.
1885
1886 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
1887
1888         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
1889         GCC_INSN_FLAGS_H.
1890         * libgcov.c (__gcov_indirect_call_profiler): Set
1891         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
1892         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
1893
1894 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1895
1896         PR tree-optimization/46259
1897
1898         Revert:
1899         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1900         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1901         build_vector_from_val.
1902
1903 2010-11-01  DJ Delorie  <dj@redhat.com>
1904
1905         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
1906         as well as an assertion.
1907
1908 2010-11-01  Paul Koning  <ni1d@arrl.net>
1909
1910         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
1911         complex modes in memory.
1912
1913 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1914
1915         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
1916
1917 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
1918
1919         PR target/45250
1920         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
1921         (cfa_base_offset): New variable.
1922         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
1923         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
1924         is NULL.
1925         (vt_init_cfa_base): Initialize cfa_base_offset.
1926
1927 2010-11-01  Alan Modra  <amodra@gmail.com>
1928
1929         PR target/46030
1930         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
1931         and savres_strategy.
1932         (stack_info): New file scope var.
1933         (rs6000_init_machine_status): Init stack_info.
1934         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
1935         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1936         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
1937         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
1938         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
1939         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
1940         (rs6000_savres_strategy): Rewrite.
1941         (rs6000_stack_info): Use "stack_info" in place of local "info".
1942         Return cached stack info when reload_completed unless ENABLE_CHECKING
1943         in which case confirm newly calculated stack info matches old info.
1944         Delay calculation of lr_save_p, set it for out of line gp save/restore
1945         as well as fp.  Call rs6000_savres_strategy from here..
1946         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
1947         (rs6000_output_function_prologue): Use info->savres_strategy to
1948         determine whether fp save/restore externs need to be emitted.
1949
1950 2010-10-31  Jason Merrill  <jason@redhat.com>
1951
1952         * tree.h (EXPR_LOC_OR_HERE): New macro.
1953         * builtins.c (c_strlen): Use it.
1954         * c-decl.c (build_enumerator): Likewise.
1955         * gimplify.c (internal_get_tmp_var): Likewise.
1956         (shortcut_cond_expr): Likewise.
1957         (gimplify_one_sizepos): Likewise.
1958
1959 2010-10-31  Richard Henderson  <rth@redhat.com>
1960
1961         * config/i386/cygming.h (TARGET_SEH): New.
1962         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
1963         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1964         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1965         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1966         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1967         (ASM_DECLARE_FUNCTION_SIZE): New.
1968         * config/i386/i386-protos.h: Update.
1969         * config/i386/i386.c (ix86_option_override_internal): Enable
1970         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1971         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1972         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1973         (ix86_compute_frame_layout): For SEH, disable
1974         use_fast_prologue_epilogue, move frame pointer to the end of
1975         the frame.  Initialize hfp_save_offset.
1976         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
1977         at end of prologue for SEH.
1978         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1979         emit blockage at beginning of epilogue.
1980         (ix86_expand_binary_operator): After reload, emit LEA if needed.
1981         (ix86_output_call_insn): New.
1982         * config/i386/i386.h (TARGET_SEH): New.
1983         (struct machine_function): Add member seh.
1984         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1985         * config/i386/winnt.c (struct seh_frame_state): New.
1986         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1987         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1988         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1989         i386_pe_start_function, i386_pe_end_function): New.
1990
1991         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1992         as CFA_STORE in rules 12 and 13.
1993
1994 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
1995
1996         PR tree-optimization/46142
1997         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1998         accommodate third function argument.
1999
2000 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2001
2002         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
2003
2004 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2005
2006         * fold-const.c (build_zero_vector): Use build_vector_from_val.
2007         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
2008         (get_initial_def_for_reduction): Likewise.
2009         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2010         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2011         * tree.c (build_one_cst): Likewise.
2012         (build_vector_from_val): Use types_compatible_p for assert.
2013
2014 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
2015
2016         * emit-rtl.c (mark_used_flags): New function.
2017         (set_used_flags, reset_used_flags): Call it.
2018
2019 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
2020
2021         PR middle-end/44569
2022         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
2023         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
2024
2025 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
2026
2027         PR target/46195
2028         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
2029         (ix86_compat_aligned_value_p): This.
2030         (ix86_old_function_arg_boundary): Renamed to ...
2031         (ix86_compat_function_arg_boundary): This.  Updated.
2032         (ix86_contains_aligned_value_p): New.
2033         (ix86_function_arg_boundary): Align long double parameters on
2034         stack to 4byte in 32bit.
2035
2036 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
2037
2038         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2039         * c-parser.c (c_parser_objc_at_property_declaration): Removed
2040         parsing of RID_COPIES and RID_IVAR.  Updated call to
2041         objc_add_property_declaration.
2042         * c-typecheck.c (build_component_ref): Call
2043         objc_maybe_build_component_ref instead of objc_build_setter_call.
2044         Use objc_is_property_ref to improve Objective-C checks.
2045         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
2046         of objc_build_getter_call.
2047
2048 2010-10-29  Paul Koning  <ni1d@arrl.net>
2049
2050         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2051         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
2052         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
2053         (REG_OK_STRICT): Move description.
2054
2055 2010-10-29  Paul Koning  <ni1d@arrl.net>
2056
2057         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
2058
2059 2010-10-29  Paul Koning  <ni1d@arrl.net>
2060
2061         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
2062
2063 2010-10-29  Paul Koning  <ni1d@arrl.net>
2064
2065         PR/41822
2066         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
2067
2068 2010-10-29  Richard Henderson  <rth@redhat.com>
2069
2070         PR rtl-opt/46226
2071         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
2072         for asm goto.
2073
2074 2010-10-29  Paul Koning  <ni1d@arrl.net>
2075
2076         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
2077         register to register move.
2078
2079 2010-10-29  Paul Koning  <ni1d@arrl.net>
2080
2081         * config/pdp11/pdp11.c (print_operand_address): Correct handling
2082         of integer constant addresses, delete vax-only logic.
2083
2084 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
2085
2086         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
2087         a conditional expression.
2088
2089 2010-10-29  Paul Koning  <ni1d@arrl.net>
2090
2091         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
2092         instruction encoding.
2093
2094 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2095             Andrew Pinski  <pinskia@gmail.com>
2096
2097         * tree.h (build_vector_from_val): Declare.
2098         * tree.c (build_vector_from_val): New function.
2099         * c-typeck.c (build_binary_op): Handle vector shifting.
2100         * doc/extend.texi: Description of the vector shifting operation.
2101
2102 2010-10-29  Paul Koning  <pkoning@equallogic.com>
2103
2104         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
2105         pdp11_secondary_memory_needed): Declare.
2106         * config/pdp11/predicates.md (float_operand): New predicate.
2107         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
2108         (cbranchdf4, movdf): Change predicate.
2109         (movsf): Handle FPU register case.
2110         (truncdfsf2, extendsfdf2): Add FPU register case.
2111         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
2112         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
2113         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2114         (pdp11_register_move_cost): Update cost matrix.
2115         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
2116         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
2117         pdp11_secondary_memory_needed): New function.
2118         (pdp11_return_in_memory): Add other float types.
2119         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
2120         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
2121         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
2122         REGISTER_MOVE_COST): Delete.
2123         (BASE_RETURN_VALUE_REG): Add other float types.
2124
2125 2010-10-29  Nick Clifton  <nickc@redhat.com>
2126
2127         * doc/invoke.texi: Document -mam34 and -mtune options.
2128         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
2129         (mn10300_tune_cpu): New variable.
2130         (mn10300_handle_option): Handle -mam34 and -mtune options.
2131         (mn10300_option_override): Convert tune string into tune cpu variable.
2132         (mn10300_legitimate_constant_p): Delete unused local variable.
2133         (is_load_insn): New function.
2134         (is_store_insn): New function.
2135         (mn10300_adjust_schedule_cost): New function.
2136         (TARGET_SCHED_ADJUST_COST): Define.
2137         * config/mn10300/mn10300.opt (mam34): New option.
2138         (mtune): New option.
2139         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
2140         (enum processor_type): Add AM34.
2141         (TARGET_AM34): Define.
2142         * config/mn10300/mn10300.md (attr cpu): Add am34.
2143         Add pipeline description.
2144         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
2145         Remove unneeded alternatives.  Add timing attribute.
2146         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
2147         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
2148         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
2149         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
2150         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
2151         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
2152         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
2153         float_conditional_branch, jump, indirect_jump, tablejump,
2154         call_internal, call_value_internal, zero_extendqisi2_am33,
2155         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
2156         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
2157         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
2158         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
2159         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
2160         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
2161         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
2162         return_internal_regs, store_movm, return, call_next_insn):
2163         Add timing attribute.
2164         (am33_subsi3): Add missing clobber of CC_REG.
2165         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
2166         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
2167         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
2168         extendqisi2): Fix predicates.
2169         (call_internal, call_internal_value): Separate alternatives.
2170         * config/mn10300/t-mn10300: Add AM34 multilib.
2171
2172 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
2173
2174         * config/sh/sh.c (sh_promote_function_mode): Use
2175         default_promote_function_mode if !sh_promote_prototypes.
2176
2177 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
2178
2179         * recog.c (split_all_insns): Remove dead code.
2180
2181 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2182
2183         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2184
2185 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2186
2187         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
2188         (FUNCTION_ARG_ADVANCE): Delete.
2189         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
2190         functions.
2191         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
2192         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2193         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2194
2195 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2196
2197         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
2198         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2199         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
2200         Take a const_tree and a bool.
2201         (mcore_function_arg_advance): New function.
2202         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2203
2204 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2205
2206         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
2207         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2208         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
2209         Take a const_tree and a bool.
2210         (mcore_function_arg_advance): New function.
2211         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2212
2213 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2214
2215         * config/h8300/h8300-protos.h (function_arg): Delete.
2216         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2217         * config/h8300/h8300.c (function_arg): Rename to...
2218         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
2219         a bool.
2220         (h8300_function_arg_advance): New function.
2221         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2222
2223 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2224
2225         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
2226         to...
2227         * config/arc/arc.c (arc_function_arg): ...here and...
2228         (arc_function_arg_advance): ...here.  New functions.
2229         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2230
2231 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2232
2233         * config/crx/crx-protos.h (crx_function_arg): Delete.
2234         (crx_function_arg_advance): Delete.
2235         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2236         * config/crx/crx.c (crx_function_arg): Make static.  Take a
2237         const_tree and a bool.
2238         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
2239         (enough_regs_for_param): Take a const_tree.
2240         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2241
2242 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2243
2244         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
2245         (m68hc11_function_arg_advance): Delete.
2246         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
2247         (FUNCTION_ARG_ADVANCE): Delete.
2248         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
2249         Take a const_tree and a bool.
2250         (m68hc11_function_arg_advance): Likewise.
2251         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2252
2253 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2254
2255         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
2256         (xstormy16_function_arg_advance): Delete.
2257         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
2258         (FUNCTION_ARG_ADVANCE): Delete.
2259         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
2260         Take a const_tree and a bool.
2261         (xstormy16_function_arg_advance): Likewise.  Return void, updating
2262         the CUM parameter instead.
2263         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2264
2265 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2266
2267         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
2268         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2269         (MOXIE_FUNCTION_ARG_SIZE): Move to...
2270         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
2271         (moxie_function_arg): Make static.  Take a const_tree and a bool.
2272         (moxie_function_arg_advance): New function.
2273         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2274
2275 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2276
2277         * config/mn10300/mn10300-protos.h (function_arg): Delete.
2278         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
2279         (FUNCTION_ARG_ADVANCE): Delete.
2280         * config/mn10300/mn10300.c (function_arg): Rename to...
2281         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
2282         and a bool.
2283         (mn10300_function_arg_advance): New function.
2284         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2285
2286 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2287
2288         * config/iq2000/iq2000-protos.h (function_arg): Delete.
2289         (function_arg_advance): Delete.
2290         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2291         * config/iq2000/iq2000.c (function_arg): Rename to...
2292         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
2293         a bool.
2294         (function_arg_advance): Rename to...
2295         (iq2000_function_arg_advance): ...this.  Make static.  Take a
2296         const_tree and a bool.
2297         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
2298         iq2000_function_arg.
2299         (iq2000_pass_by_reference): Call iq2000_function_arg).
2300         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2301
2302 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2303
2304         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
2305         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2306         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
2307         const_tree.
2308         (fr30_function_arg): New function.
2309         (fr30_function_arg_advance): New function.
2310         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2311
2312 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
2313
2314         * config/frv/frv-protos.h (frv_function_arg): Delete.
2315         (frv_function_arg_advance): Delete.
2316         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2317         * config/frv/frv.c (frv_function_arg): Rename to...
2318         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
2319         (frv_function_arg, frv_function_incoming_arg): New functions.
2320         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
2321         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2322         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2323
2324 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
2325
2326         PR target/46153
2327         * config/i386/sse.md (sse_movhlps_exp): Use destination
2328         returned from ix86_fixup_binary_operands to expand insn.
2329         (sse_movlhps_exp): Ditto.
2330         (sse_loadhps_exp): Ditto.
2331         (sse_loadlps_exp): Ditto.
2332         (sse2_loadhpd_exp): Ditto.
2333         (sse2_loadlpd_exp): Ditto.
2334
2335 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
2336
2337         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
2338         constants in thumb2.
2339
2340 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
2341
2342         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
2343         arithmetics in masking operations.
2344         (contains_muldiv): Likewise.
2345         (try_combine): Likewise.
2346         (find_split_point): Likewise.
2347         (combine_simplify_rtx): Likewise.
2348         (simplify_if_then_else): Likewise.
2349         (simplify_set): Likewise.
2350         (expand_compound_operation): Likewise.
2351         (expand_field_assignment): Likewise.
2352         (make_extraction): Likewise.
2353         (extract_left_shift): Likewise.
2354         (make_compound_operation): Likewise.
2355         (force_to_mode): Likewise.
2356         (make_field_assignment): Likewise.
2357         (reg_nonzero_bits_for_combine): Likewise.
2358         (simplify_shift_const_1): Likewise.
2359         (simplify_comparison): Likewise.
2360
2361 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
2362
2363         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
2364         (ia64_function_arg_advance): Delete.
2365         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
2366         (FUNCTION_ARG_ADVANCE): Delete.
2367         * config/ia64/ia64.c (ia64_function_arg): Rename to...
2368         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
2369         bool arguments.
2370         (ia64_function_arg, ia64_function_incoming_arg): New functions.
2371         (ia64_function_arg_advance): Make static.  Take a const_tree and
2372         a bool.
2373         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
2374         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2375
2376 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
2377
2378         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
2379         (TARGET_GET_RAW_ARG_MODE): New.
2380         * doc/tm.texi: Regenerate.
2381         * target.def (get_raw_result_mode): New.
2382         (get_raw_arg_mode): New.
2383         * targhooks.c (default_get_reg_raw_mode): New.
2384         * targhooks.h (default_get_reg_raw_mode): New.
2385         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
2386         (apply_result_size): Ditto.
2387         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
2388         (TARGET_GET_RAW_RESULT_MODE): Define.
2389         (TARGET_GET_RAW_ARG_MODE): Ditto.
2390
2391 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2392
2393         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
2394         for newer Solaris 10 release.
2395         (sparc_fallback_frame_state): Likewise.
2396
2397 2010-10-27  Jason Merrill  <jason@redhat.com>
2398
2399         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
2400         variables sooner.
2401
2402 2010-10-27  Jie Zhang  <jie@codesourcery.com>
2403             Maxim Kuvyrkov  <maxim@codesourcery.com>
2404
2405         * haifa-sched.c (ISSUE_POINTS): Remove.
2406         (max_issue): Don't issue more than issue_rate instructions.
2407
2408 2010-10-27  Ian Lance Taylor  <iant@google.com>
2409
2410         PR target/46197
2411         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
2412         (split_stack_return): Replace UNSPEC_STACK_CHECK with
2413         UNSPECV_SPLIT_STACK_RETURN.
2414
2415 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
2416
2417         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
2418
2419         * config/i386/i386.c (block_info): New.
2420         (BLOCK_INFO): Likewise.
2421         (call_avx256_state): Likewise.
2422         (check_avx256_stores): Likewise.
2423         (move_or_delete_vzeroupper_2): Likewise.
2424         (move_or_delete_vzeroupper_1): Likewise.
2425         (move_or_delete_vzeroupper): Likewise.
2426         (use_avx256_p): Likewise.
2427         (function_pass_avx256_p): Likewise.
2428         (flag_opts): Add -mvzeroupper.
2429         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
2430         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
2431         is disabled.
2432         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
2433         generate vzeroupper.
2434         (init_cumulative_args): Add an int to indicate caller.  Set
2435         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
2436         based on return type.
2437         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
2438         caller_pass_avx256_p based on argument type.
2439         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
2440         is used, but not returned by caller.
2441         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
2442         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
2443         is used.
2444         (ix86_minimum_alignment): Likewise.
2445         (ix86_expand_special_args_builtin): Set target to
2446         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
2447         (ix86_reorg): Run the vzeroupper optimization if needed.
2448
2449         * config/i386/i386.h (ix86_args): Add caller.
2450         (INIT_CUMULATIVE_ARGS): Updated.
2451         (machine_function): Add use_vzeroupper_p, use_avx256_p,
2452         caller_pass_avx256_p, caller_return_avx256_p,
2453         callee_pass_avx256_p and callee_return_avx256_p.
2454
2455         * config/i386/i386.opt (-mvzeroupper): New.
2456
2457         * config/i386/predicates.md (vzeroupper_operation): Removed.
2458
2459         * config/i386/sse.md (avx_vzeroupper): Removed.
2460         (*avx_vzeroupper): Removed.
2461         (avx_vzeroupper): New.
2462
2463         * doc/invoke.texi: Document -mvzeroupper.
2464
2465 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2466
2467         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
2468         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
2469         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
2470
2471 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2472             Olivier Hainque  <hainque@adacore.com>
2473
2474         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
2475         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
2476         fs->signal_frame instead.
2477
2478 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2479
2480         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
2481         parsing of RID_COPIES and RID_IVAR.
2482
2483 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2484
2485         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
2486         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
2487         Do not use objc_set_property_attr, but use local variables
2488         instead.  Detect repeated usage of setter, getter and ivar
2489         attributes.  Improved error processing when a setter name does not
2490         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
2491         that the token is a keyword.  Updated call to
2492         objc_add_property_declaration.
2493
2494 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2495
2496         * c-parser.c (c_parser_objc_at_property): Renamed to
2497         c_parser_objc_at_property_declaration.  Updated calls to
2498         objc_add_property_variable, now objc_add_property_declaration.
2499         Code rewritten to be much more robust in recovering from syntax
2500         errors.  Added comments.
2501         (c_parser_objc_property_attrlist): Removed.
2502         (c_parser_external_declaration): Updated calls to
2503         c_parser_objc_at_property, now
2504         c_parser_objc_at_property_declaration.
2505         (c_parser_objc_methodprotolist): Same change.
2506
2507 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
2510
2511 2010-10-26  Jan Hubicka  <jh@suse.cz>
2512
2513         * ipa.c (process_references): Enqueue all referenced nodes;
2514         mark as reachable only non-external nodes.
2515         (cgraph_remove_unreachable_nodes): All referenced nodes should
2516         be enqueued; remove bogues node->needed check.
2517
2518 2010-10-26  Jan Hubicka  <jh@suse.cz>
2519
2520         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
2521         to represent OMP.
2522
2523 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2524
2525         * config/i386/i386.md (split_stack_return): Replace
2526         unspec_volatile with unspec.
2527
2528 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
2529
2530         * doc/install.texi: Fix typo in --with-sysroot description.
2531
2532 2010-10-26  Jan Hubicka  <jh@suse.cz>
2533
2534         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2535         Use info provided by linker plugin.
2536
2537 2010-10-26  Jason Merrill  <jason@redhat.com>
2538
2539         * varasm.c (constructor_static_from_elts_p): Don't require a
2540         CONSTRUCTOR to have elements to be suitable for static
2541         initialization.  Allow ARRAY_TYPE as well.
2542
2543 2010-10-26  Jan Hubicka  <jh@suse.cz>
2544
2545         PR middle-end/45736
2546         * cgraph.c (cgraph_set_readonly_flag): Rename to...
2547         (cgraph_set_const_flags) ... this one; get also looping argument;
2548         clear constructor/destructor flags.
2549         (cgraph_set_pure_flag): Likewise.
2550         (cgraph_set_looping_const_or_pure_flag): Remove.
2551         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
2552         to optimize away static ctors/dtors; it does not work on inline clones;
2553         external functions can always be rmeoved.
2554         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
2555         inline clones; in LTO external functions always can go.
2556         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
2557         (cgraph_mark_address_taken_node): Assert that we are not taking
2558         address of inline clone.
2559         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
2560         external functions.
2561         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
2562         address taken.
2563         (ipcp_initialize_node_lattices): Only local functions can be
2564         handled without cloning.
2565         * cgraph.h (cgraph_set_readonly_flag,
2566         cgraph_set_looping_const_or_pure_flag): Remove.
2567         (cgraph_set_const_flag): Declare.
2568         (cgraph_set_pure_flag): Update.
2569         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
2570         flags setting code.
2571         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
2572         look at inline clones; fix handling of external definitions.
2573         (cgraph_postorder): Do not look at inline clones in the first pass.
2574         (function_and_variable_visibility): Drop constructors/destructor
2575         flags at pure and const functions.
2576         * tree-profile.c (tree_profiling): Update.
2577         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
2578         address taken; external functions do not account to whole program size.
2579         (cgraph_decide_inlining): Likewise; do not try to inline
2580         functions already inlined.
2581
2582 2010-10-26  Jie Zhang  <jie@codesourcery.com>
2583
2584         * doc/invoke.texi: Improve documentation of
2585         -fstrict-volatile-bitfields.
2586
2587 2010-10-26  Ira Rosen  <irar@il.ibm.com>
2588
2589         PR tree-optimization/46167
2590         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
2591         is basic block for the statement.
2592
2593 2010-10-26  Paul Koning  <ni1d@arrl.net>
2594
2595         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
2596         current definition of struct_real_format.
2597
2598 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2599
2600         PR target/44948
2601         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
2602         (ix86_function_arg_boundary): Always align parameters on stack
2603         in 64bit and align parameters with alignment >= 16byte on stack
2604         in 32bit.  Warn alignment change.
2605
2606 2010-10-26  Ian Lance Taylor  <iant@google.com>
2607
2608         PR middle-end/45687
2609         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
2610         offset.
2611
2612 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
2613
2614         Implement opaque-enum-specifiesr for C++0x
2615         * tree.h (ENUM_IS_OPAQUE): New.
2616         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
2617
2618 2010-10-26  Jie Zhang  <jie@codesourcery.com>
2619
2620         * stor-layout.c (layout_decl): Use the field's type to
2621         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
2622         * config/arm/arm.c (arm_override_options): Default to
2623         -fstrict-volatile-bitfields.
2624
2625 2010-10-25  Paul Koning  <ni1d@arrl.net>
2626
2627         * config/pdp11/pdp11.md: Add define_constants for register
2628         numbers, branch offset limits.
2629         * config/pdp11/pdp11.c: Use named constants instead of numbers.
2630         * config/pdp11.pdp11.h: Ditto.
2631
2632 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2633
2634         * configure.ac: Use $cpu_type instead of $target to define the nop.
2635         * configure: Regenerate.
2636
2637 2010-10-25  Jie Zhang  <jie@codesourcery.com>
2638
2639         * combine.c (try_combine): If insns need to be kept around, check that
2640         they can be copied in the merged instruction.
2641
2642 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
2643
2644         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
2645         has been modified.
2646         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
2647         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
2648         it has been modified.
2649
2650 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
2651
2652         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
2653
2654 2010-10-24  Paul Koning  <ni1d@arrl.net>
2655
2656         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
2657         * config/pdp11/pdp11.c (output_jump): Ditto.
2658
2659 2010-10-24  Ian Lance Taylor  <iant@google.com>
2660
2661         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
2662
2663 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
2664
2665         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
2666         least one insn with a locus corresponding to an edge's goto_locus,
2667         disregard non-fallthru edges to the exit block and merge the blocks
2668         created for the same goto_locus.
2669
2670 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
2671
2672         * gcc.c (n_switches_alloc_debug_check): New.
2673         (set_option_handlers): New.
2674         (process_command): Use set_option_handlers.
2675         (do_self_spec): Pass spec-generated options through option handlers.
2676         (main): Also save and restore n_switches_alloc when swapping
2677         switch arrays.
2678
2679 2010-10-23  Richard Henderson  <rth@redhat.com>
2680
2681         PR target/46144
2682         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
2683         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
2684         Honor matching operands when splitting to XOR.
2685
2686 2010-10-23  Ian Lance Taylor  <iant@google.com>
2687
2688         * tree-vrp.c (extract_range_from_binary_expr): If
2689         flag_non_call_exceptions don't eliminate division by zero.
2690         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2691
2692 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
2693
2694         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2695         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
2696         __ORDER_PDP_ENDIAN__.
2697         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2698         (struct DWstruct): Define based on __BYTE_ORDER__.
2699         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2700         (struct INTstruct): Define based on __BYTE_ORDER__.
2701         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2702         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
2703         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
2704         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2705         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2706         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2707         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2708         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2709         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2710         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2711         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2712         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2713         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2714         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2715         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2716         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2717         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2718         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2719         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2720         * doc/tm.texi: Regenerate.
2721         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
2722         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
2723
2724 2010-10-23  Jie Zhang  <jie@codesourcery.com>
2725
2726         PR rtl-optimization/37360
2727         * config/mips/mips.c (cached_can_issue_more): New local variable.
2728         (mips_sched_reorder_1): New.
2729         (mips_sched_reorder): Use mips_sched_reorder_1.
2730         (mips_sched_reorder2): New.
2731         (mips_variable_issue): Set cached_can_issue_more.
2732         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
2733         instead of mips_sched_reorder.
2734
2735         Revert:
2736         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2737         PR rtl-optimization/37360
2738         * haifa-sched.c (max_issue): Do not assert that we never issue more
2739         insns than issue_rate.  Add comment.
2740
2741 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
2742
2743         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
2744         location info of the expression.
2745
2746 2010-10-22  DJ Delorie  <dj@redhat.com>
2747
2748         * doc/extend.texi (Named Address Spaces): Document the M32C named
2749         address space.
2750
2751         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
2752         __far address space.
2753         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
2754         "__far" address space for R8C and M16C processor variants.
2755         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
2756         (far_addr_space_p): New.
2757         (encode_pattern_1): Add sign and zero extend support.
2758         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
2759         (m32c_extra_constraint_p2): Add SF constraint.
2760         (m32c_legitimate_address_p): Support __far addresses.
2761         (m32c_addr_space_pointer_mode): New.
2762         (m32c_addr_space_address_mode): New.
2763         (m32c_addr_space_legitimate_address_p): New.
2764         (m32c_addr_space_legitimize_address): New.
2765         (m32c_addr_space_subset_p): New.
2766         (m32c_addr_space_convert): New.
2767         (conversions): Add __far operand patterns.
2768         (m32c_prepare_move): Force constants into registers for __far moves.
2769         (m32c_split_move): __far moves are always split.
2770         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
2771         * config/m32c/mov.md (mov<mode>_far_op1): New.
2772         (mov<mode>_far_op2): New.
2773         (movqi_op): Add __far (SF) support.
2774         (movhi_op): Likewise.
2775         (movsi_splittable): Split A1A0 also.
2776
2777 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2778             Andrew Pinski  <pinskia@gmail.com>
2779
2780         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
2781         * doc/extend.texi: New paragraph
2782
2783 2010-10-22  Paul Koning  <ni1d@arrl.net>
2784
2785         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
2786
2787 2010-10-22  DJ Delorie  <dj@redhat.com>
2788
2789         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
2790
2791 2010-10-22  Paul Koning  <ni1d@arrl.net>
2792
2793         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
2794
2795 2010-10-22  Richard Henderson  <rth@redhat.com>
2796
2797         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
2798         cases for __builtin_fma and __builtin_fmaf.
2799
2800 2010-10-22  Richard Henderson  <rth@redhat.com>
2801
2802         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
2803         NEG+USE for vectors as well.
2804         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
2805         and splitter.
2806
2807 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2808
2809         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
2810         SWITCH_CURTAILS_COMPILATION): Remove.
2811         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
2812         * doc/tm.texi: Regenerate.
2813         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
2814
2815 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2816
2817         * config/i386/bdver1.md: New file.
2818         * config/i386/i386.md (include "bdver1.md"): Invoke the
2819         pipeline description for bdver1.
2820         (x86_sahf_1): Add "bdver1_decode" attribute.
2821         (*cmpfp_i_mixed): Likewise.
2822         (*cmpfp_i_sse): Likewise.
2823         (*cmpfp_i_i387): Likewise.
2824         (*cmpfp_iu_mixed): Likewise.
2825         (*cmpfp_iu_sse): Likewise.
2826         (*cmpfp_iu_387): Likewise.
2827         (*swap<mode>,*swap<mode>_1): Likewise.
2828         (fixuns_trunc<mode>hi2): Likewise.
2829         (fix_trunc<mode>si_sse): Likewise.
2830         (x86_fnstcw_1): Likewise.
2831         (x86_fldcw_1): Likewise.
2832         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
2833         (*floatsi<mode>2_vector_mixed): Likewise.
2834         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
2835         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2836         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2837         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
2838         (*floatsi<mode>2_vector_sse): Likewise.
2839         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
2840         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2841         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2842         (*mul<mode>3_1): Likewise.
2843         (*mulsi3_1_zext): Likewise.
2844         (*mulhi3_1): Likewise.
2845         (*mulqi3_1): Likewise.
2846         (*<u>mul<mode><dwi>3_1): Likewise.
2847         (*<u>mulqihi3_1): Likewise.
2848         (*<s>muldi3_highpart_1): Likewise.
2849         (*<s>mulsi3_highpart_1): Likewise.
2850         (*<s>mulsi3_highpart_zext): Likewise.
2851         (x86_64_shld): Likewise.
2852         (x86_shld): Likewise.
2853         (x86_64_shrd): Likewise.
2854         (x86_shrd): Likewise.
2855         (sqrtxf2): Likewise.
2856         (sqrt_extend<mode>xf2_i387): Likewise.
2857         (*sqrt<mode>2_sse): Likewise.
2858         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
2859         (sse_cvtsi2ssq): Likewise.
2860         (sse_cvtss2si): Likewise.
2861         (sse_cvtss2si_2): Likewise.
2862         (sse_cvtss2siq): Likewise.
2863         (sse_cvtss2siq_2): Likewise.
2864         (sse_cvttss2si): Likewise.
2865         (sse_cvttss2siq): Likewise.
2866         (sse2_cvtpi2pd): Likewise.
2867         (sse2_cvttpd2pi): Likewise.
2868         (sse2_cvtsi2sd): Likewise.
2869         (sse2_cvtsi2sdq): Likewise.
2870         (sse2_cvtsd2si): Likewise.
2871         (sse2_cvtsd2si_2): Likewise.
2872         (sse2_cvtsd2siq): Likewise.
2873         (sse2_cvtsd2siq_2): Likewise.
2874         (sse2_cvttsd2si): Likewise.
2875         (sse2_cvttsd2siq): Likewise.
2876         (*sse2_cvtpd2dq): Likewise.
2877         (*sse2_cvttpd2dq): Likewise.
2878         (sse2_cvtsd2ss): Likewise.
2879         (sse2_cvtss2sd): Likewise.
2880         (*sse2_cvtpd2ps): Likewise.
2881         (sse2_cvtps2pd): Likewise.
2882
2883 2010-10-22  Richard Guenther  <rguenther@suse.de>
2884
2885         PR middle-end/46137
2886         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
2887         remove the virtual operands if they are not needed.
2888
2889 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2890
2891         * config/i386/i386.c (processor_costs bdver1_cost): Update
2892         insn costs and architectural parameters for bdver1.
2893
2894 2010-10-22  Richard Guenther  <rguenther@suse.de>
2895
2896         * gimple.h (gimple_register_canonical_type): Declare.
2897         * gimple.c (gimple_canonical_types): New global hashtable.
2898         (struct gimple_type_leader_entry_s): New type.
2899         (gimple_type_leader): New global cache.
2900         (gimple_lookup_type_leader): New function.
2901         (gtc_visit): Query the proper cache.
2902         (gimple_types_compatible_p): Likewise.
2903         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
2904         (gimple_canonical_type_eq): New function.
2905         (gimple_register_canonical_type): Likewise.
2906         (print_gimple_types_stats): Adjust for gimple_canonical_types.
2907         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
2908         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
2909         gimple_types_compatible_p for LTO.
2910
2911 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
2912
2913         PR target/46098
2914         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
2915         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
2916         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
2917         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
2918         (<sse>_movu<ssemodesuffix>): New expander.
2919         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
2920         (avx_movdqu<avxmodesuffix>): New expander.
2921         (*sse2_movdqu): Rename from sse2_movdqu.
2922         (sse2_movdqu): New expander.
2923
2924 2010-10-22  Richard Guenther  <rguenther@suse.de>
2925
2926         PR tree-optimization/45720
2927         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2928         Handle negative step.
2929         (vect_enhance_data_refs_alignment): Likewise.
2930         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
2931         (vect_create_cond_for_align_checks): Likewise.
2932         (vect_create_cond_for_alias_checks): Likewise.
2933
2934 2010-10-22  Ira Rosen  <irar@il.ibm.com>
2935
2936         PR tree-optimization/46126
2937         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
2938         vectorizable_shift in case of basic block vectorization.
2939
2940 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2941
2942         * target.h (enum opt_levels, struct default_options): New.
2943         * target.def (handle_ofast): Remove hook.
2944         (target_option.optimization): Change to
2945         target_option.optimization_table.
2946         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
2947         TARGET_OPTION_OPTIMIZATION_TABLE.
2948         (CAN_DEBUG_WITHOUT_FP): Remove.
2949         * doc/tm.texi: Regenerate.
2950         * opts.c (maybe_default_option, maybe_default_options,
2951         default_options_table): New.
2952         (default_options_optimization): Take extra parameters.  Don't
2953         assert that global_options and global_options_set are in use.  Use
2954         maybe_default_options.
2955         (decode_options): Pass extra parameters to
2956         default_options_optimization.
2957         * common.opt (falign-loops): Use value 0 with Var.
2958         (frerun-cse-after-loop, ftree-ter): Remove Init.
2959         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2960         TARGET_OPTION_OPTIMIZATION): Remove.
2961         * targhooks.c (empty_optimization_table): New.
2962         * targhooks.h (empty_optimization_table): Declare.
2963         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2964         * config/alpha/alpha.c (alpha_option_optimization_table,
2965         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2966         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2967         * config/arm/arm.c (arm_option_optimization: Change to
2968         arm_option_optimization_table.
2969         (TARGET_OPTION_OPTIMIZATION): Change to
2970         TARGET_OPTION_OPTIMIZATION_TABLE.
2971         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2972         * config/avr/avr.c (avr_option_optimization_table,
2973         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2974         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2975         * config/cris/cris.c (cris_option_optimization): Change to
2976         cris_option_optimization_table.
2977         (TARGET_OPTION_OPTIMIZATION): Change to
2978         TARGET_OPTION_OPTIMIZATION_TABLE.
2979         * config/crx/crx.c (crx_option_optimization): Change to
2980         crx_option_optimization_table.
2981         (TARGET_OPTION_OPTIMIZATION): Change to
2982         TARGET_OPTION_OPTIMIZATION_TABLE.
2983         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2984         * config/fr30/fr30.c (fr30_option_optimization_table,
2985         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2986         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2987         * config/frv/frv.c (frv_option_optimization_table,
2988         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2989         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2990         * config/h8300/h8300.c (h8300_option_optimization): Change to
2991         h8300_option_optimization_table.
2992         (TARGET_OPTION_OPTIMIZATION): Change to
2993         TARGET_OPTION_OPTIMIZATION_TABLE.
2994         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2995         * config/i386/i386.c (ix86_option_optimization): Change to
2996         ix86_option_optimization_table.
2997         (TARGET_OPTION_OPTIMIZATION): Change to
2998         TARGET_OPTION_OPTIMIZATION_TABLE.
2999         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
3000         as initializer.
3001         * config/ia64/ia64.c (ia64_option_optimization): Change to
3002         ia64_option_optimization_table.
3003         (TARGET_OPTION_OPTIMIZATION): Change to
3004         TARGET_OPTION_OPTIMIZATION_TABLE.
3005         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
3006         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
3007         initializer.
3008         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
3009         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3010         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3011         * config/lm32/lm32.c (lm32_option_optimization_table,
3012         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3013         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
3014         * config/m32r/m32r.c (m32r_option_optimization): Change to
3015         m32r_option_optimization_table.
3016         (TARGET_OPTION_OPTIMIZATION): Change to
3017         TARGET_OPTION_OPTIMIZATION_TABLE.
3018         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
3019         CAN_DEBUG_WITHOUT_FP): Remove.
3020         * config/mcore/mcore.c (mcore_option_optimization): Change to
3021         mcore_option_optimization_table.
3022         (TARGET_OPTION_OPTIMIZATION): Change to
3023         TARGET_OPTION_OPTIMIZATION_TABLE.
3024         * config/mep/mep.c (mep_option_optimization): Change to
3025         mep_option_optimization_table.
3026         (TARGET_OPTION_OPTIMIZATION): Change to
3027         TARGET_OPTION_OPTIMIZATION_TABLE.
3028         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
3029         * config/microblaze/microblaze.c
3030         (microblaze_option_optimization_table,
3031         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3032         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
3033         * config/mips/mips.c (mips_option_optimization_table,
3034         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3035         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
3036         * config/mmix/mmix.c (mmix_option_optimization): Change to
3037         mmix_option_optimization_table.
3038         (TARGET_OPTION_OPTIMIZATION): Change to
3039         TARGET_OPTION_OPTIMIZATION_TABLE.
3040         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
3041         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
3042         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3043         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
3044         * config/pa/pa.c (pa_option_optimization_table,
3045         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3046         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
3047         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
3048         pdp11_option_optimization_table.
3049         (TARGET_OPTION_OPTIMIZATION): Change to
3050         TARGET_OPTION_OPTIMIZATION_TABLE.
3051         * config/picochip/picochip.c (picochip_option_optimization_table,
3052         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3053         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
3054         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
3055         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3056         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
3057         * config/rx/rx.c (rx_option_optimization_table,
3058         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3059         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
3060         * config/s390/s390.c (s390_option_optimization): Change to
3061         s390_option_optimization_table.
3062         (s390_option_override): Update comment.
3063         (TARGET_OPTION_OPTIMIZATION): Change to
3064         TARGET_OPTION_OPTIMIZATION_TABLE.
3065         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
3066         * config/score/score.c (score_option_optimization_table,
3067         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3068         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
3069         * config/sh/sh.c (sh_option_optimization): Change to
3070         sh_option_optimization_table.
3071         (TARGET_OPTION_OPTIMIZATION): Change to
3072         TARGET_OPTION_OPTIMIZATION_TABLE.
3073         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
3074         (sh_option_override, expand_block_move, multcosts, find_barrier,
3075         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
3076         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
3077         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
3078         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
3079         instead of TARGET_SMALLCODE.
3080         * config/sh/sh.opt (mspace): Make into an alias for -Os.
3081         * config/sparc/sparc.c (sparc_option_optimization_table,
3082         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3083         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
3084         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
3085         TARGET_OPTION_OPTIMIZATION_TABLE): New.
3086         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
3087         * config/v850/v850.c (v850_option_optimization): Change to
3088         v850_option_optimization_table.
3089         (TARGET_OPTION_OPTIMIZATION): Change to
3090         TARGET_OPTION_OPTIMIZATION_TABLE.
3091         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
3092         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
3093         xtensa_option_optimization_table.
3094         (TARGET_OPTION_OPTIMIZATION): Change to
3095         TARGET_OPTION_OPTIMIZATION_TABLE.
3096         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
3097
3098 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
3099
3100         Based on the CFString implementation in FSF apple/trunk branch.
3101
3102         * target.def (objc_construct_string): New Hook.
3103         * doc/tm.texi (objc_construct_string): Document.
3104         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
3105         * config/t-darwin: Amend build rules for darwin.o.
3106         * config/darwin.opt: Add cfstrings flags.
3107         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
3108         (darwin_objc_construct_string): New.
3109         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
3110         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
3111         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
3112         (darwin_fold_builtin): Likewise.
3113         (darwin_build_constant_cfstring): Likewise.
3114         (darwin_objc_construct_string): Likewise.
3115         (darwin_cfstring_p): Likewise.
3116         (darwin_enter_string_into_cfstring_table): Likewise.
3117         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
3118         * config/darwin.c (darwin_running_cxx): New var.
3119         (machopic_select_section): Return cfstring_constant_object_section.
3120         (darwin_override_options): Set darwin_running_cxx.
3121         (add_builtin_field_decl): New.
3122         (darwin_init_cfstring_builtins): New.
3123         (darwin_build_constant_cfstring): New.
3124         (darwin_fold_builtin): New.
3125         (cfstring_hash): New.
3126         (cfstring_eq): New.
3127         (darwin_enter_string_into_cfstring_table): New.
3128         * config/darwin-sections.def (cfstring_constant_object_section): New.
3129         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
3130         (TARGET_OBJC_CONSTRUCT_STRING): Define.
3131
3132 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3133
3134         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
3135         TYPE_STUB_DECL instead of TREE_CHAIN.
3136         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
3137         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
3138         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
3139         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
3140         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
3141         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
3142         Likewise.
3143         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
3144
3145 2010-10-22  Jie Zhang  <jie@codesourcery.com>
3146
3147         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
3148         (copy_blkmode_from_reg): Likewise.
3149         (read_complex_part): Likewise.
3150         (expand_expr_real_1): Calculate packedp and pass it to
3151         extract_bit_field.
3152         * expr.h (extract_bit_field): Update declaration.
3153         * calls.c (store_unaligned_arguments_into_pseudos): Update call
3154         to extract_bit_field.
3155         * expmed.c (extract_fixed_bit_field): Update calls to
3156         extract_fixed_bit_field.
3157         (store_split_bit_field): Likewise.
3158         (extract_bit_field_1): Add new argument packedp.
3159         (extract_bit_field): Add new argument packedp.
3160         (extract_fixed_bit_field): Add new argument packedp and let
3161         packed attribute override volatile.
3162         * stmt.c (expand_return): Update call to extract_bit_field.
3163
3164 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3165
3166         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
3167
3168 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3169
3170         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
3171         of gcc_checking_assert.
3172         * sel-sched.c (code_motion_process_successors): Likewise.
3173
3174 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
3175
3176         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
3177         when stopping because of a different locus on edge or insn.
3178         (try_optimize_cfg): Add comment.
3179         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
3180         block is a forwarder block, propagate locus on the edge.
3181         (cfg_layout_merge_blocks): Likewise.
3182
3183 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
3184
3185         PR target/45946
3186         * config/i386/i386.md (*pushti2): New insn pattern.
3187         (pushti2 splitter): New insn splitter.
3188         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
3189         DWI mode iterator.
3190
3191 2010-10-21  Paul Koning  <ni1d@arrl.net>
3192
3193         * config/pdp11/pdp11-protos.md (arith_operand,
3194         const_immediate_operand, expand_shift_operand,
3195         immediate15_operand): Delete
3196         * config/pdp11/pdp11.c: Ditto.
3197         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
3198         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3199         EXTRA_CONSTRAINT): Delete.
3200         * config/pdp11/pdp11.md (various): Use standard constraints
3201         instead of removed ones.
3202         * config/pdp11/constraints.md: New file.
3203         * config/pdp11/predicates.md: New file.
3204
3205 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
3206
3207         PR c/45834
3208         * alias.c (true_dependence_1): Remove obsolete check for QImode.
3209         (may_alias_p): Ditto.
3210
3211 2010-10-21  Martin Jambor  <mjambor@suse.cz>
3212
3213         PR tree-optimization/45875
3214         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
3215
3216 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3217
3218         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
3219         variables.
3220         (create_new_def_for): Likewise.
3221
3222 2010-10-21  Nick Clifton  <nickc@redhat.com>
3223
3224         * config/mn10300/mn10300.c: Fold code to 80-character width.
3225         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3226         MEM, CONST_INT and CONST_DOUBLE.
3227         (targetm): Move initialization to end of file.
3228         (print_operand): Rename to mn10300_print_operand.
3229         (print_operand_address): Rename to mn10300_print_operand_address.
3230         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
3231         (expand_prologue): Rename to mn10300_expand_prologue.
3232         (expand_epilogue): Rename to mn10300_expand_epilogue.
3233         (initial_offset): Rename to mn10300_initial_offset.
3234         (function_arg): Rename to mn10300_function_arg.
3235         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
3236         (symbolic_operand): Rename to mn10300_symbolic_operand.
3237         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
3238         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
3239         * config/mn10300/mn10300-protos.h: Update prototypes.
3240         * config/mn10300/mn10300.h: Fold code to 80-character width.
3241         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3242         MEM, CONST_INT and CONST_DOUBLE.
3243         (CPP_SPEC): Move to...
3244         (TARGET_CPU_CPP_BUILTINS): ... here.
3245         * config/mn10300/mn10300.md: Fold code to 80-character width.
3246         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
3247         MEM, CONST_INT and CONST_DOUBLE.
3248
3249 2010-10-21  Ira Rosen  <irar@il.ibm.com>
3250
3251         PR tree-optimization/46049
3252         PR tree-optimization/46052
3253         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
3254         (vect_get_slp_defs): Add arguments.
3255         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
3256         operands to vect_get_slp_defs.
3257         (vectorizable_reduction): Fix comment, pass scalar operands to
3258         vect_get_slp_defs.
3259         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
3260         type to determine number of units in the created vector.
3261         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
3262         (vectorizable_conversion): Fix comment.
3263         (vectorizable_shift): New function.
3264         (vectorizable_operation): Move code that handles shifts to
3265         vectorizable_shift.
3266         (vectorizable_type_demotion): Fix comment, pass scalar operands to
3267         vect_get_slp_defs.
3268         (vectorizable_type_promotion, vectorizable_store): Likewise.
3269         (vectorizable_condition): Fix comment.
3270         (vect_analyze_stmt): Call vectorizable_shift.
3271         (vect_transform_stmt): Likewise.
3272         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
3273         Use it as the operand to create vectors for, except reduction
3274         initial definition and store.  Use operands type.
3275         (vect_get_slp_defs): Add new arguments.  Pass them to
3276          vect_get_constant_vectors.
3277
3278 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3279
3280         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
3281         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
3282         * cfghooks.c (fixup_reorder_chain): Likewise.
3283         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
3284         * cgraph.c (cgraph_add_thunk): Likewise.
3285         (cgraph_create_edge_1): Likewise.
3286         (cgraph_create_virtual_clone): Likewise.
3287         * ddg.c (add_cross_iteration_register_deps): Likewise.
3288         * dwarf2out.c (modified_type_die): Likewise.
3289         * emit-rtl.c (set_mem_alias_set): Likewise.
3290         * ggc-zone.c (zone_allocate_marks): Likewise.
3291         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
3292         * gimple.c (iterative_hash_gimple_type): Likewise.
3293         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
3294         (create_single_exit_edge): Likewise.
3295         * haifa-sched.c (choose_ready): Likewise.
3296         * lto-streamer-in.c (input_gimple_stmt): Likewise.
3297         * passes.c (execute_todo): Likewise.
3298         * sched-ebb.c (begin_schedule_ready): Likewise.
3299         * sel-sched.c (code_motion_process_successors): Likewise.
3300         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
3301         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
3302         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
3303         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
3304         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
3305         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
3306         (ssa_conflicts_add): Likewise.
3307         * tree-ssa-copy.c (replace_exp): Likewise.
3308         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
3309         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
3310         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3311         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
3312         (compute_antic): Likewise.
3313         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
3314         (add_dependence): Likewise.
3315         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
3316         * tree-vrp.c (supports_overflow_infinity): Likewise.
3317         (make_overflow_infinity, negative_overflow_infinity): Likewise.
3318         (avoid_overflow_infinity, register_new_assert_for): Likewise.
3319         (process_assert_insertions_for): Likewise.
3320         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
3321         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
3322         (intersect_loc_chains, variable_merge_over_cur): Likewise.
3323
3324 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
3325
3326         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
3327         * reload1.c (has_nonexceptional_receiver): Likewise.
3328         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
3329         (create_new_def_for): Likewise.
3330         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
3331         (merge_phi_nodes): Likewise.
3332         (has_abnormal_incoming_edge_p): Delete.
3333
3334 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
3335
3336         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
3337
3338 2010-10-21  Richard Guenther  <rguenther@suse.de>
3339             Michael Matz  <matz@suse.de>
3340
3341         PR tree-optimization/45764
3342         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3343         Adjust initial misalignment for negative DR_STEP.
3344         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
3345         do not have the same alignment over the whole iteration domain.
3346
3347 2010-10-21  Richard Guenther  <rguenther@suse.de>
3348
3349         PR tree-optimization/46111
3350         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
3351
3352 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3353
3354         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
3355
3356 2010-10-21  Tristan Gingold  <gingold@adacore.com>
3357
3358         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
3359         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
3360
3361 2010-10-21  Tristan Gingold  <gingold@adacore.com>
3362
3363         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
3364         signal_frame.
3365         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
3366
3367 2010-10-21  Tristan Gingold  <gingold@adacore.com>
3368
3369         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
3370         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
3371
3372 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
3373
3374         * basic-block.h (find_fallthru_edge): Define.
3375         * cfgcleanup.c (merge_blocks_move): Use it.
3376         (try_crossjump_bb): Likewise.
3377         * cfglayout.c (fixup_reorder_chains): Likewise.
3378         (fixup_fallthru_exit_predecessor): Likewise.
3379         * cfgrtl.c (rtl_split_edge): Likewise.
3380         (rtl_verify_flow_info): Likewise.
3381         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3382         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
3383         * ifcvt.c (block_fallthru): Likewise.
3384         * reload1.c (fixup_abnormal_edges): Likewise.
3385         * sched-ebb.c (being_schedule_ready): Likewise.
3386         (schedule_ebb): Likwise.
3387         * sched-rgn.c (find_single_block_region): Likewise.
3388         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
3389         * tree-complex.c (expand_complex_move): Likewise.
3390         * sched-int.h (find_fallthru_edge): Rename to...
3391         (find_fallthru_edge_from): ...this.
3392         * haifa-sched.c (find_fallthru_edge): Rename to...
3393         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
3394         (init_before_recovery): Call find_fallthru_edge_from.
3395         * sel-sched-ir.c (merge_fences): Likewise.
3396         * sel-sched.c (in_fallthru_bb_p): Likewise.
3397         (move_cond_jump): Likewise.
3398
3399 2010-10-20  Paul Koning  <ni1d@arrl.net>
3400
3401         * config/pdp11/pdp11.md (various): Fix conditions on a number of
3402         insn to check for target 11/40 or higher.
3403
3404 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3405
3406         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
3407         bool instead of a tree.
3408         (c_parser_objc_method_decl): Added bool argument.  Updated call to
3409         objc_build_method_signature.
3410         (c_parser_objc_method_definition): Do not call
3411         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
3412         c_parser_objc_method_decl and objc_start_method_definition.
3413         (c_parser_objc_methodproto): Do not call objc_set_method_type.
3414         Updated calls to c_parser_objc_method_type,
3415         c_parser_objc_method_decl and objc_add_method_declaration.
3416
3417 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
3418
3419         PR tree-optimization/45919
3420         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
3421         array members.
3422
3423         PR tree-optimization/46066
3424         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
3425         instead of gsi_last_bb.
3426
3427 2010-10-20  DJ Delorie  <dj@redhat.com>
3428
3429         * config/m32c/m32c.c (m32c_option_override): Always disable
3430         function-cse in 16-bit mode.  Indirect calls are always worse than
3431         direct calls as there is no 16-bit indirect call opcode.
3432         (m32c_override_options_after_change): New, likewise.
3433
3434 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
3435
3436         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
3437         emitting the conditional move in the inner mode of the SUBREG.
3438
3439 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
3440
3441         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
3442         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
3443         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3444         (ia64_preferred_reload_class): Make static.  Change rclass argument
3445         and result types from enum reg_class to reg_class_t.
3446
3447 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
3448
3449         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
3450         call for single operand expression.
3451
3452 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
3453
3454         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
3455         if there is a call statement to pure or const function in the block.
3456
3457 2010-10-20  Paul Koning  <pkoning@equallogic.com>
3458
3459         Fix several build errors for pdp11 target.
3460         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
3461         (cbranchdf4): Conditional on TARGET_FPU.
3462         (movdf): Ditto; correct alternatives check.
3463         (movmemhi): Fix predicate and constraint.
3464         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
3465
3466 2010-10-20  Richard Guenther  <rguenther@suse.de>
3467
3468         PR lto/45667
3469         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
3470         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
3471         (verify_gimple_assign_single): Disable ADDR_EXPR type check
3472         when in LTO.
3473
3474 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
3475
3476         PR fortran/42169
3477         * ira-emit.c (store_can_be_removed_p): Return false instead of
3478         gcc_unreachable.
3479
3480 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
3481
3482         * fold-const.c (fold_binary_loc): New transformation.
3483
3484 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3485
3486         PR target/46085
3487         * config/i386/sse.md (reduc_splus_v8sf): Updated.
3488         (reduc_splus_v4df): Likewise.
3489
3490 2010-10-20  Richard Guenther  <rguenther@suse.de>
3491
3492         PR tree-optimization/45860
3493         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
3494         conditional store replacement for non-register type stores.
3495
3496 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
3497
3498         * stor-layout.c (skip_simple_constant_arithmetic): New function.
3499         (self_referential_size): Use it instead of skip_simple_arithmetic.
3500
3501 2010-10-20  Olivier Hainque  <hainque@adacore.com>
3502
3503         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
3504         If the current function calls eh_return, claim live all registers
3505         that we need to check for liveness otherwise.
3506
3507 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3508
3509         * c-decl.c (c_write_global_declarations): Call
3510         objc_write_global_declarations when compiling Objective-C.
3511         * c-lang.c (finish_file): Removed.
3512
3513 2010-10-19  DJ Delorie  <dj@redhat.com>
3514
3515         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
3516         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
3517         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
3518         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
3519         * doc/tm.texi: Regenerate.
3520         * targhooks.h (default_label_align_after_barrier_max_skip,
3521         default_loop_align_max_skip, default_label_align_max_skip,
3522         default_jump_align_max_skip): Declare.
3523         * target.def (label_align_after_barrier_max_skip): New.
3524         (loop_align_max_skip): New.
3525         (label_align_max_skip): New.
3526         (jump_align_max_skip): New.
3527         * system.h (poison): Add those macros to the list.
3528         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
3529         (LOOP_ALIGN_MAX_SKIP): Remove.
3530         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
3531         (JUMP_ALIGN_MAX_SKIP): Remove.
3532         (default_label_align_after_barrier_max_skip): New.
3533         (default_loop_align_max_skip): New.
3534         (default_label_align_max_skip): New.
3535         (default_jump_align_max_skip): New.
3536         (compute_alignments): Use the new hooks.
3537         (shorten_branches): Likewise.
3538
3539 2010-10-19  Richard Henderson  <rth@redhat.com>
3540
3541         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
3542         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
3543         (fma4i_fmadd_<mode>): New.
3544         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
3545         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
3546         standard fma patterns.
3547         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
3548         enable for FMA.
3549         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
3550         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
3551         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
3552
3553 2010-10-19  Paul Koning  <pkoning@equallogic.com>
3554
3555         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
3556         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
3557
3558 2010-10-19  Richard Henderson  <rth@redhat.com>
3559
3560         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
3561         (fmadf4, *fmsdf4, *nfmadf4): New.
3562         (fmaxf4, *fmsxf4, *nfmaxf4): New.
3563
3564 2010-10-19  Michael Eager  <eager@eagercon.com>
3565
3566         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
3567         Use sjlj unwind info for exceptions.
3568
3569 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
3570
3571         PR fortran/43414
3572         * dwarf2out.c (add_calling_convention_attribute): Flag main
3573         Fortran subroutine with DW_AT_main_subprogram.
3574
3575 2010-10-19  Nick Clifton  <nickc@redhat.com>
3576
3577         * config/rx/rx.c (rx_function_value): Small integer types are
3578         promoted to SImode.
3579         (rx_promote_function_mode): New function.
3580         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3581
3582 2010-10-19  Nick Clifton  <nickc@redhat.com>
3583
3584         * config/mep/mep.c (mep_print_operand): Use
3585         targetm.strip_name_encoding.
3586         (mep_output_aligned_common): Likewise.
3587
3588 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
3589
3590         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
3591
3592 2010-10-18  Richard Henderson  <rth@redhat.com>
3593
3594         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
3595         (fma (neg a) (neg b) c) and (fma a (neg b) c).
3596
3597 2010-10-18  Richard Henderson  <rth@redhat.com>
3598
3599         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
3600         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
3601         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
3602         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
3603         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
3604         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
3605         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
3606         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
3607         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
3608         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
3609         (bdesc_multi_arg): Remove the corresponding builtins.
3610         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
3611         (UNSPEC_FMA4_FMSUBADD): Remove.
3612         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
3613         * config/i386/sse.md (FMA4MODEF4): Remove.
3614         (FMAMODE): Add.
3615         (fma<mode>4): New expander.
3616         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
3617         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
3618         (*fma4i_fmsub_<mode>): Similarly.
3619         (*fma4i_fnmadd_<mode>): Similarly.
3620         (*fma4i_fnmsub_<mode>): Similarly.
3621         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
3622         with the first operand.
3623         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
3624         of explicit arithmetic.  Macroize with AVXMODEF2P.
3625         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
3626         (xop_frcz<mode>2): Macroize with FMAMODE.
3627         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
3628         the first operand.
3629         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
3630         extra negations.
3631         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
3632         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
3633         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
3634         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
3635         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
3636         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
3637         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
3638         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
3639
3640 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
3641
3642         PR rtl-optimization/45966
3643         * combine.c (try_combine): If added_sets_2, deal with the case
3644         where i0 feeds i1 and i1 feeds i2.
3645
3646 2010-10-18  Jan Hubicka  <jh@suse.cz>
3647
3648         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
3649         preserve flags before trying to guess on visibility.
3650         (varpool_externally_visible_p): New function.
3651         (function_and_variable_visibility): Use it.
3652
3653 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3654
3655         Implemented parsing @synthesize and @dynamic for Objective-C.
3656         * c-parser.c (c_parser_external_declaration): Recognize
3657         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3658         (c_parser_objc_at_synthesize_declaration): New.
3659         (c_parser_objc_at_dynamic_declaration): New.
3660
3661 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3662
3663         * c-parser.c (c_parser_objc_class_declaration): After finding an
3664         error, parse the whole declaration then reset parser->error.
3665
3666 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3667
3668         PR target/46041
3669         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
3670         * builtins.c (mode_has_fma): Ditto.
3671
3672 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
3673
3674         PR target/36898
3675         PR middle-end/43760
3676         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
3677
3678 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
3679
3680         * config/i386/i386.c (ix86_option_override_internal): Define and
3681         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
3682         default.
3683         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3684         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
3685
3686 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3687
3688         Merge from 'apple/trunk' branch on FSF servers.
3689         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
3690         following Objective-C change:
3691
3692         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
3693
3694         Radar 4301047
3695         * c-parse.in (objc_quals): Build objc qualifier list same way
3696         as gcc-3.3
3697
3698 2010-10-18  Jan Hubicka  <jh@suse.cz>
3699
3700         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
3701         function_and_variable_visibility): Revert accidental commit.
3702
3703 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3704
3705         Merge from 'apple/trunk' branch on FSF servers.
3706         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
3707         the following Objective-C change:
3708
3709         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
3710
3711         Radar 4204796
3712         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
3713         'volatilized' type used in a typeof operator.
3714
3715 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
3716
3717         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
3718         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
3719         rewrite modelled on gimple_purge_dead_eh_edges.
3720         (gimple_purge_all_dead_abnormal_call_edges): New function.
3721         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
3722         directly instead of through gimple_purge_dead_abnormal_call_edges.
3723         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
3724         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
3725         removed AB side-effects from one of its statements.
3726         (init_pre): Initialize need_ab_cleanup.
3727         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
3728         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
3729
3730 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
3731
3732         PR c/46015
3733         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
3734         on computed goto argument.
3735
3736 2010-10-18  Richard Guenther  <rguenther@suse.de>
3737
3738         PR tree-optimization/45967
3739         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
3740         (could_have_pointers): Likewise.
3741         (handle_rhs_call, handle_const_call, handle_pure_call,
3742         find_func_aliases, intra_create_variable_infos): Remove calls to them.
3743         (struct fieldoff): Add must_have_pointers field.
3744         (type_must_have_pointers): New function.
3745         (field_must_have_pointers): Likewise.
3746         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
3747         Adjust field merging.
3748         (create_function_info_for): May-have-pointers of varinfo is
3749         almost always true.
3750         (create_variable_info_for_1): Likewise.
3751
3752 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
3753
3754         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
3755         of operands to vec_concat.
3756
3757 2010-10-18  Richard Guenther  <rguenther@suse.de>
3758
3759         PR lto/44950
3760         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
3761         also clear references to entries of it.
3762
3763 2010-10-18  Andi Kleen  <ak@linux.intel.com>
3764
3765         PR other/43448
3766         * gccbug.in: Remove.
3767         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
3768         (doc, distclean, install-common): Remove reference to gccbug.
3769         * configure: Regenerate.
3770         * configure.ac (all_outputs): Remove gccbug.
3771         * doc/configfiles.texi: Remove references to gccbug.
3772         * doc/sourcebuild.texi: Dito.
3773
3774 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
3775
3776         PR middle-end/46019
3777         * fold-const.c (fold_binary_loc): If integer_pow2p has
3778         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
3779
3780 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
3781             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3782
3783         * gengtype.c (verbosity_level): Add variable.
3784         (set_gc_used): Count variables for verbosity.
3785         (close_output_files): Backing up files, counting written ones
3786         verbosily.
3787         (write_types): Count emitted functions for verbosity. Added
3788         debug messages.
3789         (write_enum_defn): Count structures for verbosity. Added debug
3790         messages.
3791         (gengtype_long_options): Add "verbose" & "backupdir".
3792         (print_usage): Ditto.
3793         (main): Verbose display of parsed files.
3794
3795         * gengtype.h (verbosity_level): Add declaration.
3796
3797 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
3798
3799         * gengtype.c (parse_program_options): Add allocation of
3800         plugin_files, and correct test on nb_plugin_files.
3801
3802 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3803
3804         Merge from 'apple/trunk' branch on FSF servers.
3805
3806         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
3807
3808         Radar 4133425
3809         * c-decl.c (undeclared_variable): Issue diagnostic on
3810         private 'ivar' access.
3811
3812 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
3813
3814         PR target/46051
3815         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
3816         generated sequence to match *avx_vperm2f128<mode>_nozero.
3817         (vec_interleave_lowv4df): Ditto.
3818         (vec_interleave_highv8sf): Ditto.
3819         (vec_interleave_lowv8sf): Ditto.
3820
3821 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
3822
3823         * libgcov.c (create_file_directory): Enable it for win32 case.
3824         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
3825         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
3826         (GCOV_PREFIX_SKIP): Likewise.
3827
3828 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3829
3830         * doc/objc.texi (GNU Objective-C runtime API): New section.
3831         (Modern GNU Objective-C runtime API): New section.
3832         (Traditional GNU Objective-C runtime API): New section.
3833         (Executing code before main): Mention that this section is
3834         specific to the GNU Objective-C runtime.
3835         (Garbage Collection): Same.
3836
3837 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
3838
3839         * c-parser.c (c_parser_for_statement): Move initialization of
3840         cond and incr before if.
3841
3842 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
3843
3844         * target.def (preferred_output_reload_class): New hook.
3845         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
3846         * doc/tm.texi: Regenerate.
3847         * targhooks.c (default_preferred_output_reload_class): New function.
3848         * targhooks.h (default_preferred_output_reload_class): Declare.
3849         * reload.c (find_dummy_reload): Change rclass argument type from
3850         enum reg_class to reg_class_t. Change this_alternative array type
3851         from enum reg_class to reg_class_t.
3852         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3853         (push_reload): Change preferred_class variable type to reg_class_t.
3854         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3855         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
3856         argument type from enum reg_class to reg_class_t. Use
3857         HARD_REGISTER_NUM_P predicate.
3858         * recog.h (reg_fits_class_p): Update prototype.
3859
3860         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3861         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
3862         Remove.
3863         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
3864         static. Change regclass argument and result types from enum reg_class
3865         to reg_class_t.
3866         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3867
3868 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3869
3870         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
3871         visibility enum, and handle @package.
3872
3873 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3874
3875         * doc/objc.texi (What you can and what you cannot do in +load):
3876         Document that sending messages to constant string objects in +load
3877         is not guaranteed to work.
3878
3879 2010-10-16  Jan Hubicka  <jh@suse.cz>
3880
3881         PR middle-end/44206
3882         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
3883         existence of refrences before removing the function.
3884
3885 2010-10-16  Jan Hubicka  <jh@suse.cz>
3886
3887         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
3888         only_called_at_startup and only_called_at_exit.
3889         (cgraph_propagate_frequency): Compute only_called_at_startup and
3890         only_called_at_exit.
3891         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
3892         only_called_at_exit.
3893         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
3894         flags.
3895         * predict.c (compute_function_frequency): Initialize the new flags.
3896
3897 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3898
3899         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
3900         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
3901         on the bounds of its domain.
3902         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
3903
3904 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
3905
3906         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
3907         * config/avr/avr-protos.h (preferred_reload_class): Remove.
3908         * config/avr/avr.c (preferred_reload_class): Remove.
3909         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
3910         * config/pa/pa.c (emit_move_sequence): Update comment
3911         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
3912         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
3913         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
3914         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
3915         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
3916         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
3917         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
3918         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
3919         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
3920         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
3921         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
3922         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
3923         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
3924
3925 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3926
3927         * opts.c (set_fast_math_flags,
3928         set_unsafe_math_optimizations_flags): Make static.
3929         * toplev.h (set_fast_math_flags,
3930         set_unsafe_math_optimizations_flags): Remove prototypes.
3931
3932 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3933
3934         * config/arm/arm.c (arm_option_optimization): Set
3935         flag_section_anchors to 1 not 2.
3936         * config/i386/i386.c (ix86_option_override_internal): Check
3937         global_options_set.x_flag_zee and
3938         global_options_set.x_flag_omit_frame_pointer.
3939         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
3940         flag_zee to 2.
3941         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3942         global_options_set.x_flag_omit_frame_pointer.
3943         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
3944         opts->x_flag_section_anchors to 1 not 2.
3945         * config/sh/sh.c (sh_option_optimization): Don't set
3946         flag_schedule_insns to 2.
3947         (sh_option_override): Check
3948         global_options_set.x_flag_schedule_insns.
3949         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
3950
3951 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
3952
3953         * configure.ac: Make sure inhibit_libc remains false for mingw targets
3954         as cross.
3955         * configure: Regenerated.
3956
3957 2010-10-15  Xinliang David Li  <davidxl@google.com>
3958
3959         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3960         function.
3961         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3962         into a recursive function.
3963
3964 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
3965
3966         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3967         (*movdfcc_1): ditto.
3968
3969 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3970
3971         * target.def (target_option.init_struct): New hook.
3972         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3973         * doc/tm.texi: Regenerate.
3974         * hooks.c (hook_void_gcc_optionsp): New.
3975         * hooks.h (hook_void_gcc_optionsp): Declare.
3976         * langhooks-def.h (lhd_init_options_struct): Remove.
3977         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3978         * langhooks.c (lhd_init_options_struct): Remove.
3979         * opts.c (init_options_struct): Also call
3980         targetm.target_option.init_struct.
3981         * config/i386/i386.c (ix86_option_init_struct,
3982         TARGET_OPTION_INIT_STRUCT): New.
3983         (ix86_option_optimization): Move some settings to
3984         ix86_option_init_struct.
3985         * config/pdp11/pdp11.c (pdp11_option_init_struct,
3986         TARGET_OPTION_INIT_STRUCT): New.
3987         (pdp11_option_optimization): Move some settings to
3988         pdp11_option_init_struct.
3989         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3990         rs6000_option_init_struct.  Use options structure pointer.
3991         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3992         * config/s390/s390.c (s390_option_init_struct,
3993         TARGET_OPTION_INIT_STRUCT): New.
3994         (s390_option_optimization): Don't set
3995         flag_asynchronous_unwind_tables here.
3996         * config/sh/sh.c (sh_option_init_struct,
3997         TARGET_OPTION_INIT_STRUCT): New.
3998         (sh_option_optimization): Don't set flag_finite_math_only here.
3999         * config/spu/spu.c (spu_option_optimization): Replace by
4000         spu_option_optimization.  Use options structure pointer.
4001         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
4002
4003 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
4004
4005         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
4006
4007         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
4008         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
4009         (Standard names): Document fma.
4010
4011         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
4012         __FP_FAST_FMAF, __FP_FAST_FMAL.
4013
4014         * builitns.c (expand_builtin_mathfn_ternary): New function for
4015         expanding ternary math functions, like fma.
4016         (expand_builtin): Call it for the fma builtins.
4017
4018         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
4019         ops at present.
4020
4021         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
4022         vectorizable functions to support vectorizing fma.
4023
4024         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
4025         Handle fma builtins.
4026
4027         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
4028         (UNSPEC_VSX_MSUB): Ditto.
4029         (UNSPEC_VSX_NMADD): Ditto.
4030         (UNSPEC_VSX_NMSUB): Ditto.
4031         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
4032         of UNSPEC. Renumber combiner patterns.
4033         (vsx_fmsub<mode>4*): Ditto.
4034         (vsx_fnmadd<mode>4*): Ditto.
4035         (vsx_fnmsub<mode>4*): Ditto.
4036
4037         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
4038         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
4039         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
4040         (altivec_vmaddfp_1): Ditto.
4041         (altivec_vmaddfp_2): Ditto.
4042         (atlivec_mulv4sf3): Ditto.
4043         (altivec_vnmsubfp): Ditto.
4044         (altivec_vnmsubfp_1): Ditto.
4045         (altivec_vnmsubfp_2): Ditto.
4046         (altivec_vnmsubfp_3): Delete.
4047
4048         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
4049         (fmasf4_fpr): Ditto.
4050         (fmssf4_fpr): Ditto.
4051         (fnmasf4_fpr): Ditto.
4052         (fnmssf4_fpr): Ditto.
4053         (fmadf4): Ditto.
4054         (fmadf4_fpr): Ditto.
4055         (fmsdf4_fpr): Ditto.
4056         (fnmadf4_fpr): Ditto.
4057         (fnmsdf4_fpr): Ditto.
4058
4059         * optabs.h (OTI_fma): Add fma optab.
4060         (fma_optab): Ditto.
4061
4062         * genopinit.c (optabs): Set fma optab.
4063
4064         * rtl.def (FMA): Add FMA rtl.
4065
4066         * tree.h (mode_has_fma): New function to return if MODE supports a
4067         fast multiply and add instruction.
4068         * builtins.c (mode_has_fma): Ditto.
4069
4070 2010-10-15  Jan Hubicka  <jh@suse.cz>
4071
4072         * lto-streamer-out.c (write_symbol): Use pointer set of seen
4073         objects instead of bitmap.
4074         (produce_symtab): Likewise; output defined symbols first.
4075
4076 2010-10-15  Jie Zhang  <jie@codesourcery.com>
4077
4078         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
4079         Option Summary and Index.
4080
4081 2010-10-15  Richard Guenther  <rguenther@suse.de>
4082
4083         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
4084         for automatic variables again.
4085
4086 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4087
4088         * doc/extend.texi (Variable Length): Don't refer to VLAs not
4089         conforming to C99.
4090
4091 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4092
4093         * config/rx/rx.c (rx_option_optimization): Change to
4094         rx_override_options_after_change.  Don't change
4095         flag_lto_compression_level.  Don't check for changes to whether
4096         FPU instructions can be used.  Check and set only
4097         flag_finite_math_only, not other fast-math flags.
4098         (rx_option_override): Call rx_override_options_after_change.
4099         (TARGET_OPTION_OPTIMIZATION): Remove.
4100         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4101
4102 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
4105         disable section anchors for lang_hooks.name[4] != 'O'.
4106
4107 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
4108
4109         * config/frv/frv.c (frv_option_optimization,
4110         TARGET_OPTION_OPTIMIZATION): Remove.
4111         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
4112
4113 2010-10-15  Michael Matz  <matz@suse.de>
4114
4115         * cgraphunit.c (clone_of_p): Define unconditionally.
4116
4117 2010-10-15  Richard Guenther  <rguenther@suse.de>
4118
4119         PR lto/45957
4120         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
4121
4122 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
4123
4124         * ifcvt.c (find_active_insn_before): New function.
4125         (find_active_insn_after): New function.
4126         (cond_exec_process_if_block): Use new functions to replace
4127         prev_active_insn() and next_active_insn().
4128
4129 2010-10-14  Yao Qi  <yao@codesourcery.com>
4130
4131         PR target/45447
4132         * config/arm/arm.c (arm_build_builtin_va_list): Assign
4133         va_list_name to TYPE_STUB_DECL (va_list_type).
4134
4135 2010-10-14  Jan Hubicka  <jh@suse.cz>
4136
4137         PR middle-end/45621
4138         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
4139         redirected to clone, be happy.
4140         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
4141         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
4142         former_clone_of unconditionally.
4143
4144 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4145
4146         Merge from FSF apple 'trunk' branch.
4147         2006 Fariborz Jahanian  <fjahanian@apple.com>
4148
4149         Radars 4436866, 4505126, 4506903, 4517826
4150         * c-parser.c (c_parser, objc_property_attr_context) New flag.
4151         (c_lex_one_token): Handle property attributes.
4152         (c_parser_external_declaration): Handle @property.
4153         (c_parser_declaration_or_fndef): Warn on invalid attributes before
4154         @alias, @class, @end and @property objc keywords.
4155         (c_parser_objc_methodprotolist): Handle @property.
4156         (c_parser_objc_property_attrlist): New.
4157         (c_parser_objc_at_property): New.
4158         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
4159         (build_modify_expr): Likewise.
4160
4161 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
4162
4163         PR tree-optimization/46008
4164         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
4165
4166 2010-10-14  Richard Guenther  <rguenther@suse.de>
4167
4168         PR tree-optimization/44913
4169         * tree-data-ref.c (disjoint_objects_p): Remove.
4170         (dr_may_alias_p): Simplify.  Only hand the base object to
4171         the alias-oracle.
4172         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4173         some more trees, bail out instead of asserting.
4174         (ptr_derefs_may_alias_p): Likewise.  Export.
4175         (refs_may_alias_p_1): Handle STRING_CSTs.
4176         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
4177
4178 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
4179
4180         PR c/45969
4181         * c-typeck.c (build_binary_op): Don't try to compute a semantic
4182         type with excess precision for boolean operations.
4183
4184 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
4185             Basile Starynkevitch  <basile@starynkevitch.net>
4186
4187         * gengtype.c:  Include getopt.h and version.h.
4188
4189         (lang_bitmap, struct outf, outf_p)
4190         (get_output_file_with_visibility, oprintf): Definitions moved to
4191         gengtype.h
4192         (output_files, header_file, srcdir, srcdir_len, this_file)
4193         (do_dump): No more static variables.
4194         (do_debug): New.
4195         (dbgprint_count_type_at): Added new function.
4196         (gengtype_long_options): New.
4197         (print_usage, print_version, parse_program_options): New.
4198         (main): Call parse_program_options, and removed old option
4199         handling code.  Added some debug output.
4200
4201         * gengtype.h:  Updated copyright year.
4202         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
4203         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
4204         Moved from gengtype.c to here.
4205         (do_debug, read_state_filename, write_state_filename): New variables.
4206         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
4207
4208         * Makefile.in:
4209         (REVISION): Always defined.
4210         (version.o): Removed ifdef REVISION_c.
4211         (s-gtype): Pass arguments to build/gengtype program.
4212         (build/version.o): Added building rule.
4213         (build/gengtype$(build_exeext)): Added build/version.o.
4214
4215 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
4216
4217         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
4218         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
4219         __strong macros.
4220
4221 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
4222
4223         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
4224         may_trap_or_fault_p instead of may_trap_p predicate.
4225         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
4226         (substitute_placeholder_in_expr): Likewise.
4227         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
4228         flag on MEM_REF nodes.
4229         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
4230         flags on INDIRECT_REF nodes.
4231
4232 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
4233
4234         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
4235         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
4236         (arm*-*-eabi*) <tm_file>: Likewise.
4237         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
4238         (frv-*-*linux*) <tm_file>: Likewise.
4239         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
4240         and associated helper macros.
4241         * config/frv/frv-abi.h: Delete.
4242
4243 2010-10-14  Richard Guenther  <rguenther@suse.de>
4244
4245         PR lto/44561
4246         * tree.def (NULLPTR_TYPE): New tree code.
4247         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
4248         * dwarf2out.c (is_base_type): Likewise.
4249         (gen_type_die_with_usage): Likewise.
4250         * sdbout.c (plain_type_1): Likewise.
4251         * tree.c (build_int_cst_wide): Likewise.
4252         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
4253
4254 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
4255
4256         * params.c (params_finished): New.
4257         (add_params): Assert !params_finished.
4258         (finish_params): New.
4259         (set_param_value_internal): Take params and params_set
4260         parameters.  Assert params_finished.
4261         (set_param_value, maybe_set_param_value): Take params and
4262         params_set parameters.  Update calls to set_param_value_internal.
4263         (set_default_param_value): Assert !params_finished.  Don't use
4264         set_param_value_internal.
4265         (default_param_value, init_param_values): New.
4266         * params.h (struct param_info): Change value to default_value.
4267         Remove set.
4268         (set_param_value, maybe_set_param_value): Add params and
4269         params_set parameters.
4270         (PARAM_VALUE): Get parameters from global_options.
4271         (PARAM_SET_P): Remove.
4272         (finish_params, default_param_value, init_param_values): New.
4273         * common.opt (param_values): New Variable.
4274         * config/arm/arm.c (arm_option_override): Pass extra arguments to
4275         maybe_set_param_value.
4276         * config/i386/i386.c (ix86_option_override_internal): Pass extra
4277         arguments to maybe_set_param_value.
4278         * config/picochip/picochip.c (picochip_option_override): Pass
4279         extra arguments to maybe_set_param_value.
4280         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
4281         extra arguments to maybe_set_param_value.
4282         * config/s390/s390.c (s390_option_override): Use
4283         maybe_set_param_value instead of set_param_value.  Pass extra
4284         arguments to maybe_set_param_value.
4285         * config/sparc/sparc.c (sparc_option_override): Pass extra
4286         arguments to maybe_set_param_value.
4287         * config/spu/spu.c (spu_option_override): Pass extra arguments to
4288         maybe_set_param_value.
4289         * opts.c (handle_param): Take opts and opts_set parameters.
4290         Update call to set_param_value.
4291         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
4292         initial_loop_invariant_max_bbs_in_loop): Remove.
4293         (init_options_once): Don't set them.
4294         (init_options_struct): Initialize parameters structures.
4295         (default_options_optimization): Use default_param_value when
4296         restoring defaults.  Update calls to maybe_set_param_value.
4297         (finish_options): Update calls to maybe_set_param_value.
4298         (common_handle_option): Update calls to handle_param and
4299         set_param_value.
4300         * toplev.c (DEFPARAM): Update definition for changes to param_info.
4301         (general_init): Call finish_params.
4302
4303 2010-10-14  Nick Clifton  <nickc@redhat.com>
4304
4305         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
4306         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
4307         (FIRST_PSEUDO_REGISTER): Increase by one.
4308         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
4309         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
4310         (MODES_TIEABLE): Call mn10300_modes_tieable.
4311         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
4312         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
4313         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
4314         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
4315         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
4316         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
4317         (mn10300_cc_status_mdep): Delete.
4318         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
4319         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
4320         the combine-stack-adjust pass.
4321         (print_operand): Use the mode of the comparison operation to
4322         select the comparison suffix.
4323         (notice_update_cc): Delete.
4324         (mn10300_secondary_reload_class): Remove test for stack pointer
4325         based arithmetic.
4326         (output_tst): Rename to mn10300_output_cmp.
4327         (impossible_plus_operand): Move into predicates.md.
4328         (mn10300_legitimize_address): Make static.
4329         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
4330         constant pic operands.
4331         (mn10300_legitimate_constant_p): New function.
4332         (mn10300_case_values_threshold): Make static.
4333         (mn10300_hard_regno_mode_ok): New function.
4334         (mn10300_modes_tieable): New function.
4335         (mn10300_select_cc_mode): New function.
4336         * config/mn10300/predicates.md (impossible_plus_operand): Define.
4337         * config/mn10300/mn10300-protos.h: Tidy.
4338         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
4339         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
4340         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
4341         with clobbers or sets of CC_REG.
4342         (CC_REG): Define.
4343         (mov*): Remove use of CLR instruction.
4344         (cbranch_si4_<code>): New pattern/split.
4345         (integer_conditional_branch): New pattern.
4346         (cbranch_sf4_<code>): New pattern/split.
4347         (float_conditional_branch): New pattern.
4348         (casesi): Use addsi3 pattern instead of movsi pattern to add and
4349         move a value at the same time.
4350         (cc0 peepholes): Remove.
4351
4352 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
4353
4354         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
4355         on RTX_FRAME_RELATED_P insns and the insn to which
4356         NOTE_INSN_EPILOGUE_BEG is attached.
4357         * sched-vis.c (print_value): Allow NULL value.
4358
4359 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
4360
4361         PR rtl-optimization/45570
4362         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
4363         assert that we are pipelining outer loops.  Allow returning
4364         zero predecessors.
4365
4366 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
4367
4368         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
4369         (tidy_control_flow): Tidy vertical space.
4370         (sel_remove_bb): New variable idx.  Use it to remember the basic
4371         block index before deleting the block.
4372         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
4373         (sel_merge_blocks): ... here.
4374         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
4375
4376 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
4377
4378         * cse.c (is_dead_reg): Change into inline function that is not
4379         called through for_each_rtx.
4380         (set_live_p): Adjust caller.
4381         (insn_live_p): Don't reset DEBUG_INSNs here.
4382         (struct dead_debug_insn_data): New data.
4383         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
4384         (delete_trivially_dead_insns): If there is just one setter for the
4385         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
4386         and add DEBUG_INSN for it right before the removed setter and
4387         use the DEBUG_EXPR instead of the dead pseudo.
4388
4389 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
4390
4391         * et-forest.c (et_nca): Return NULL immediately when
4392         the dominance forest has disjoint components.
4393
4394 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
4395
4396         * ira.c (setup_class_hard_regs): Fix typo in indexing
4397         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
4398
4399 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
4400
4401         * graph.c (inbb): New variable.
4402         (start_bb): Set inbb to 1 if output is inside of a building block.
4403         (end_bb): Check if output is inside of a building block.
4404
4405 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4406
4407         PR rtl-optimization/45912
4408         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
4409         regno of registers instead of their index to compute the alignment.
4410
4411 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
4412
4413         * config/i386/i386.c (ix86_build_const_vector): Check vector
4414         mode instead of scalar mode.
4415         (ix86_build_signbit_mask): Likewise.
4416         (ix86_expand_fp_absneg_operator): Updated.
4417         (ix86_expand_copysign): Likewise.
4418         (ix86_expand_int_vcond): Likewise.
4419         (ix86_emit_swdivsf): Likewise.
4420         (ix86_sse_copysign_to_positive): Likewise.
4421         (ix86_expand_sse_fabs): Likewise.
4422         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
4423         * config/i386/sse.md (copysign<mode>3): Likewise.
4424         (sse2_cvtudq2ps): Likewise.
4425         (vec_unpacku_float_hi_v4si): Likewise.
4426         (vec_unpacku_float_lo_v4si): Likewise.
4427
4428         * config/i386/i386.c (ix86_builtins): Add
4429         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
4430         (bdesc_args): Likewise.
4431         (ix86_builtin_vectorized_function): Support
4432         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
4433         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
4434         and IX86_BUILTIN_CVTPS2DQ256.
4435         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
4436
4437         * config/i386/sse.md (STORENT_MODE): New.
4438         (VEC_FLOAT_MODE): Likewise.
4439         (VEC_EXTRACT_MODE): Likewise.
4440         (*avx_cvtdq2pd256_2): Likewise.
4441         (vec_pack_trunc_v4df): Likewise.
4442         (vec_interleave_highv8sf): Likewise.
4443         (vec_interleave_lowv8sf): Likewise.
4444         (storent<mode>): Macroized.
4445         (<code><mode>2: absneg): Likewise.
4446         (copysign<mode>3): Likewise.
4447         (vec_extract<mode>): Likewise.
4448
4449         PR target/44180
4450         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
4451         for V8SFmode.
4452
4453 2010-10-13  Richard Guenther  <rguenther@suse.de>
4454             H.J. Lu  <hongjiu.lu@intel.com>
4455
4456         * config/i386/sse.md (reduc_splus_v8sf): Add.
4457         (reduc_splus_v4df): Likewise.
4458         (vec_unpacks_hi_v8sf): Likewise.
4459         (vec_unpacks_lo_v8sf): Likewise.
4460         (*avx_cvtps2pd256_2): Likewise.
4461         (vec_unpacks_float_hi_v8si): Likewise.
4462         (vec_unpacks_float_lo_v8si): Likewise.
4463         (vec_interleave_highv4df): Likewise.
4464         (vec_interleave_lowv4df): Likewise.
4465
4466 2010-10-13  Richard Guenther  <rguenther@suse.de>
4467
4468         PR objc/45878
4469         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
4470         alone if there are no virtual methods.
4471
4472 2010-10-13  Richard Henderson  <rth@redhat.com>
4473
4474         * expr.c (build_personality_function): Take parameter LANG instead
4475         of parameter NAME.  Build the name based on the lang prefix and the
4476         unwind method in use.
4477         * tree.c (lhd_gcc_personality): Update call to
4478         build_personality_function.
4479
4480 2010-10-13  Richard Guenther  <rguenther@suse.de>
4481
4482         PR objc/45878
4483         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
4484
4485 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4486
4487         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
4488         Canonicalize input operands of ASM_OPERANDS insns.
4489
4490 2010-10-13  Richard Guenther  <rguenther@suse.de>
4491
4492         PR tree-optimization/45788
4493         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
4494         EH update until fixup-cfg.
4495
4496 2010-10-13  Julian Brown  <julian@codesourcery.com>
4497
4498         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
4499         from CORE_REGS and GENERAL_REGS classes.
4500         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
4501         final constraint for register preferencing.
4502
4503 2010-10-13  Richard Guenther  <rguenther@suse.de>
4504
4505         PR tree-optimization/45970
4506         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
4507         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
4508         (stmt_kills_ref_p): Likewise.
4509         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
4510
4511 2010-10-13  Richard Guenther  <rguenther@suse.de>
4512
4513         PR tree-optimization/45982
4514         * tree-ssa-structalias.c (make_constraints_to): New function.
4515         (make_constraint_to): Implement in terms of make_constraints_to.
4516         (find_func_aliases): Properly make return values of pure/const
4517         functions escape if they assign to sth that is not a pointer.
4518
4519 2010-10-13  Richard Guenther  <rguenther@suse.de>
4520
4521         PR middle-end/45874
4522         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
4523         Fixup the CFG when EH was fixed up.
4524
4525 2010-10-13  Ira Rosen  <irar@il.ibm.com>
4526
4527         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
4528         Use operand's type for POINTER_PLUS_EXPR.
4529
4530 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
4531
4532         * c-parser.c (c_parser_for_statement): Initialize incr.
4533
4534 2010-10-12  Xinliang David Li  <davidxl@google.com>
4535
4536         PR tree-optimization/45972
4537         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
4538         with too many arguments.
4539
4540 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
4541
4542         PR fortran/45636
4543         * tree-ssa-forwprop.c: Include expr.h.
4544         (constant_pointer_difference, simplify_builtin_call): New functions.
4545         (tree_ssa_forward_propagate_single_use_vars): Call
4546         simplify_builtin_call on builtin calls.
4547
4548 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
4549
4550         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
4551         (*adddi3_extend_sp32): Likewise.
4552         (*subdi3_insn_sp32): Likewise.
4553         (*subdi3_extend_sp32): Likewise.
4554         (*negdi2_sp32): Use negative test for consistency.
4555
4556 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
4557
4558         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
4559         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
4560         * config/fixed-bit.h: Likewise.
4561         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
4562         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
4563         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
4564         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
4565         (DF_SIZE): Likewise.
4566         * doc/tm.texi: Regenerate.
4567
4568 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
4569
4570         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
4571         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
4572         (*isel_reversed_unsigned_<mode>): New.
4573         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
4574         as valid comparisons and adjust operands and output appropriately.
4575         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
4576
4577 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
4578
4579         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
4580         DATA_ALIGNMENT and add COND parameter. Update comments above.
4581         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
4582         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
4583
4584 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
4585
4586         PR bootstrap/45958
4587         * exec-tool.in: Support '-plugin' as the second option to the linker.
4588
4589 2010-10-12  Richard Henderson  <rth@redhat.com>
4590
4591         PR middle-end/45962
4592         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
4593         (expand_stack_vars): Assert large base allocated when used.
4594
4595 2010-10-12  Richard Guenther  <rguenther@suse.de>
4596
4597         * tree-ssa-structalias.c (get_constraint_for_1): Constants
4598         only point to nonlocal, not anything.
4599
4600 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4601
4602         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
4603         unwind info for exceptions.
4604
4605 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4606
4607         PR testsuite/45851
4608         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
4609         Document optional target selector.
4610
4611 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
4612
4613         * flag-types.h: New.
4614         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
4615         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
4616         options.h.
4617         (OPTIONS_H): Define.
4618         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
4619         of options.h.
4620         * configure.ac (tm_include_list): Include options.h not flags.h.
4621         * configure: Regenerate.
4622         * flags.h: Include flag-types.h.  Include options.h at top of file
4623         again.
4624         (enum debug_info_type, enum debug_info_level, enum
4625         debug_info_usage, enum symbol_visibility, struct visibility_flags,
4626         enum ira_algorithm, enum ira_region, enum excess_precision, enum
4627         graph_dump_types, enum stack_check_type,
4628         enum warn_strict_overflow_code): Move to flag-types.h
4629         * opth-gen.awk: Include flag-types.h in options.h.
4630
4631 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
4632
4633         * expr.c (store_expr): Share code for STRING_CST and
4634         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
4635         check if target is a MEM.
4636
4637         * rtl.h: Include hashtab.h.
4638         (iterative_hash_rtx): New prototype.
4639         * rtl.c (iterative_hash_rtx): New function.
4640         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
4641         (output_loc_list): Return immediately if emitted is set, set it.
4642         (hash_loc_operands, hash_locs, hash_loc_list,
4643         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
4644         optimize_location_lists_1, optimize_location_lists): New function.
4645         (dwarf2out_finish): Call optimize_location_lists.
4646         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
4647
4648 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4649
4650         PR testsuite/45974
4651         Revert:
4652         * Makefile.in ($(lang_checks_parallel))
4653         ($(lang_checks_parallelized)): Use single quotes for
4654         $(RUNTESTFLAGS), to allow passing quoted content.
4655
4656 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4657
4658         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
4659         actual_oldval.  Use __builtin_expect.
4660         (SUBWORD_VAL_CAS): Likewise.
4661
4662 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
4663
4664         * recog.c (nonmemory_operand): Call immediate_operand for
4665         CONSTANT_P operands.
4666
4667 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
4668
4669         * config/i386/i386.md (movmem<mode>): Macroize expander from
4670         movmem{si,di} using SWI48 mode iterator.
4671         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
4672         *strmovsi_rex_1 using P mode iterator.
4673         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
4674         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
4675         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
4676         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
4677         (setmem<mode>): Macroize expander from setmem{si,di} using
4678         SWI48 mode iterator.
4679         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
4680         *strsetsi_rex_1 using P mode iterator.
4681         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
4682         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
4683         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
4684         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
4685         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
4686         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
4687         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
4688         mode iterator.
4689         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
4690         *strlenqi_rex_1 using P mode iterator.
4691
4692 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
4693
4694         PR bootstrap/45445
4695         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
4696         static functions.
4697         (mark_ref_live, mark_ref_dead): Use them.
4698         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
4699         Save the original reg, and use the new functions.
4700         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
4701         changed.
4702         (check_and_make_def_conflict): Save the original reg.
4703
4704 2010-10-11  Martin Jambor  <mjambor@suse.cz>
4705
4706         PR middle-end/45699
4707         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
4708         thunks.
4709
4710 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4711
4712         * Makefile.in ($(lang_checks_parallel))
4713         ($(lang_checks_parallelized)): Use single quotes for
4714         $(RUNTESTFLAGS), to allow passing quoted content.
4715
4716         PR bootstrap/35855
4717         * opt-functions.awk (BEGIN): New section.
4718         (lower, upper, digit, alnum): New variables.
4719         (static_var, opt_sanitized_name): Use alnum instead of character
4720         classes, for non-C locale.
4721         * optc-gen.awk: Likewise.
4722         * opth-gen.awk: Likewise.
4723
4724 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
4725
4726         * target.def (preferred_reload_class): New hook.
4727         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
4728         * doc/tm.texi: Regenerate.
4729         * targhooks.c (default_preferred_reload_class): New function.
4730         * targhooks.h (default_preferred_reload_class): Declare.
4731         * reload.c (find_dummy_reload): Change preferred_class variable type
4732         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
4733         target hook.
4734         (find_reloads): Change goal_alternative array type from int to
4735         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
4736         (push_reload, find_reloads_address_part): Use
4737         TARGET_PREFERRED_RELOAD_CLASS target hook.
4738         * reload1.c (emit_input_reload_insns): Ditto.
4739         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
4740         hook. Change rclass argument and secondary_class variable types from
4741         'enum reg_class' to reg_class_t.
4742
4743         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
4744         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
4745         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
4746         Change regclass argument and result types from enum reg_class to
4747         reg_class_t.
4748         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4749
4750 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
4751
4752         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
4753         in masking operations.
4754         (simplify_const_unary_operation): Likewise.
4755         (simplify_binary_operation_1): Likewise.
4756         (simplify_const_binary_operation): Likewise.
4757         (simplify_const_relational_operation): Likewise.
4758         (simplify_ternary_operation): Likewise.
4759         (simplify_immed_subreg): Likewise.
4760
4761 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4762
4763         PR middle-end/45862
4764         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
4765         (TARGET_SUPPORTS_WEAK): New.
4766         * doc/tm.texi: Regenerate.
4767         * defaults.h (SUPPORTS_WEAK): Update comment.
4768         (TARGET_SUPPORTS_WEAK): New.
4769         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
4770         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
4771         SUPPORTS_WEAK.
4772         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
4773         make_decl_one_only): Likewise.
4774         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
4775         TARGET_SUPPORTS_WEAK.
4776         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
4777         instead of SUPPORTS_WEAK.
4778
4779 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4780
4781         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
4782
4783 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
4784
4785         * vec.h (VEC_qsort): Define.
4786         * dbxout.c (output_used_types): Use it.
4787         * df-scan.c (df_sort_and_compress_refs): Likewise.
4788         (df_sort_and_compress_mws): Likewise.
4789         * genautomata.c (uniq_sort_alt_states): Likewise.
4790         (evaluate_equiv_classes): Likewise.
4791         (output_trans_table): Likewise.
4792         (output_state): Likewise.
4793         * gimplify.c (compare_case_labels): Likewise.
4794         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
4795         * ipa.c (build_cdtor_fns): Likewise.
4796         * lto.c (lto_wpa_write_files): Likewise.
4797         * sel-sched.c (fill_vec_av_set): Likewise.
4798         * tree-predcom.c (determine_roots_comp): Likewise.
4799         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
4800         (splice_param_accesses): Likewise.
4801         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
4802         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
4803         (reassociate_bb): Likewise.
4804         * tree-ssa-sccvn.c (sort_scc): Likewise.
4805         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
4806
4807 2010-10-11  Ian Lance Taylor  <iant@google.com>
4808
4809         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
4810         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
4811         TREE_THIS_NOTRAP when appropriate.
4812         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
4813         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
4814         newly created MEM_REF.
4815
4816 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4817
4818         Nathan Froyds patch to hooks FUNCTION_ARG etc.
4819         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
4820         (picochip_incoming_function_arg): Delete.
4821         (picochip_arg_advance): Delete.
4822         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
4823         (FUNCTION_INCOMING_ARG): Delete.
4824         (FUNCTION_ARG_ADVANCE): Delete.
4825         * config/picochip/picochip.c (picochip_function_arg): Take a
4826         const_tree and a bool.
4827         (picochip_incoming_function_arg): Likewise.
4828         (picochip_arg_advance): Likewise.
4829         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4830         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4831
4832 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4833
4834         PR middle-end/45955
4835         * ipa.c (build_cdtor): Delete endless loop.
4836
4837 2010-10-07  Andi Kleen  <ak@linux.intel.com>
4838
4839         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
4840         checksum-options.
4841         (checksum-options): Add.
4842         (cc1-dummy): Remove.
4843         (cc1-checksum): Change to run checksum over object files
4844         and options only.
4845         * dummy-checksum.c: Remove.
4846         * genchecksum.c: Update copyright.
4847         (usage): Allow multiple arguments.
4848         (BLOCKSIZE): Add.
4849         (dosum): Change for incremental checksum. Remove C output.
4850         (main): Iterate over all argument files. Add C output.
4851
4852 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
4853
4854         * params.c (set_param_value_internal): New.
4855         (set_param_value): Use set_param_value_internal.
4856         (maybe_set_param_value, set_default_param_value): New.
4857         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
4858         (maybe_set_param_value, set_default_param_value): Declare.
4859         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
4860         * config/i386/i386.c (ix86_option_override_internal): Use
4861         maybe_set_param_value.
4862         * config/ia64/ia64.c (ia64_option_default_params,
4863         TARGET_OPTION_DEFAULT_PARAMS): New.
4864         (ia64_option_optimization): Move some code to
4865         ia64_option_default_params.
4866         * config/picochip/picochip.c (picochip_option_override): Use
4867         maybe_set_param_value.
4868         * config/rs6000/rs6000.c (rs6000_option_default_params,
4869         TARGET_OPTION_DEFAULT_PARAMS): New.
4870         (rs6000_option_override_internal): Use maybe_set_param_value.
4871         (rs6000_option_optimization): Move some code to
4872         rs6000_option_default_params.
4873         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
4874         * config/sh/sh.c (sh_option_default_params,
4875         TARGET_OPTION_DEFAULT_PARAMS): New.
4876         (sh_option_optimization): Move some code to sh_option_default_params.
4877         * config/sparc/sparc.c (sparc_option_override): Use
4878         maybe_set_param_value.
4879         * config/spu/spu.c (spu_option_default_params,
4880         TARGET_OPTION_DEFAULT_PARAMS): New.
4881         (spu_option_optimization): Move some code to spu_option_default_params.
4882         (spu_option_override): Use maybe_set_param_value.
4883         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
4884         * doc/tm.texi: Regenerate.
4885         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
4886         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
4887         compiler_params.
4888         (default_options_optimization): Use maybe_set_param_value.
4889         (finish_options): Use maybe_set_param_value.
4890         * target.def (target_option.default_params): New hook.
4891         * toplev.c (general_init): Call targetm.target_option.default_params.
4892
4893 2010-10-11  Ira Rosen  <irar@il.ibm.com>
4894
4895         PR tree-optimization/45902
4896         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
4897         vector type for constants, unless it's a pointer.
4898
4899 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4900
4901         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
4902
4903 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
4904
4905         PR target/45870
4906         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
4907         (ix86_delegitimize_address): Use it.
4908
4909 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
4910
4911         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
4912
4913 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
4914
4915         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
4916         to cum struct in the call to function_arg_advance.
4917         (alpha_function_arg_advance): Mark named as unused.
4918
4919 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
4920
4921         * config/mips/mips.c (mips_handle_option): Make "value" with
4922         ATTRIBUTE_UNUSED.
4923
4924 2010-10-09  Richard Henderson  <rth@redhat.com>
4925
4926         PR rtl-opt/33721
4927         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
4928         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
4929         required_align, tidy the code a bit.  Emit split_stack code in the
4930         right place.  Mark the return value with the alignment properly.
4931         * expr.h (allocate_dynamic_stack_space): Update decl.
4932         * builtins.c (expand_builtin_apply): Update call to
4933         allocate_dynamic_stack_space.
4934         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
4935         * calls.c (initialize_argument_information): Update call to
4936         allocate_dynamic_stack_space.
4937         (expand_call): Likewise.
4938
4939         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
4940         Don't update_stack_alignment here.
4941         (alloc_stack_frame_space): Make ALIGN unsigned.
4942         (stack_var_cmp): Sort by alignment too.
4943         (partition_stack_vars): Don't merge large and small alignment vars.
4944         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
4945         Take care when BASE is not virtual_stack_vars_rtx.
4946         (expand_stack_vars): Allocate dynamic stack space for large
4947         alignment variables.
4948         (expand_one_stack_var): Update all to expand_one_stack_var_at.
4949         (defer_stack_allocation): True for large alignment vars.
4950         (update_stack_alignment): Merge into ...
4951         (expand_one_var): ... here.
4952         (gimple_expand_cfg): Place code from expand_stack_vars.
4953
4954 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4955
4956         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4957         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4958         (pdp11_function_arg_advance): New function.
4959         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4960
4961 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4962
4963         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4964         * libgcc2.c: Likewise.
4965
4966 2010-10-09  Richard Guenther  <rguenther@suse.de>
4967
4968         PR lto/45956
4969         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4970         Properly check if a decl is an automatic var.
4971
4972 2010-10-09  Richard Guenther  <rguenther@suse.de>
4973
4974         PR lto/45947
4975         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4976
4977 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4978
4979         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4980         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4981         * config/mmix/mmix.c (mmix_function_arg): Rename to...
4982         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
4983         bool arguments.
4984         (mmix_function_arg): New function.
4985         (mmix_function_incoming_arg): New function.
4986         (mmix_function_arg_advance): New function.
4987         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4988         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4989
4990 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4991
4992         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4993         * config/vax/vax.c (vax_function_arg): New function.
4994         (vax_function_arg_advance): New function.
4995         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4996
4997 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4998
4999         * config/pa/pa-protos.h (function_arg): Delete.
5000         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5001         * config/pa/pa.c (function_arg): Rename to...
5002         (pa_function_arg): ...this.  Make static.  Take a const_tree and
5003         a bool.
5004         (pa_function_arg_advance): New function.
5005         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5006
5007 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5008
5009         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5010         * config/m68k/m68k.c (m68k_function_arg): New function.
5011         (m68k_function_arg_advance): New function.
5012         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5013
5014 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5015
5016         * config/avr/avr-protos.h (function_arg): Delete.
5017         (function_arg_advance): Delete.
5018         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5019         * config/avr/avr.c (function_arg): Rename to...
5020         (avr_function_arg): ...this.  Make static.  Take a const_tree and
5021         a bool.
5022         (function_arg_advance): Rename to...
5023         (avr_function_arg_advance): ...this.  Make static.  Take a
5024         const_tree and a bool.
5025         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5026
5027 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5028
5029         * config/alpha/alpha-protos.h (function_arg): Delete.
5030         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5031         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
5032         * config/alpha/alpha.c (function_arg): Rename to...
5033         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
5034         a bool.  Delete TARGET_ABI_UNICOSMK code.
5035         (alpha_function_arg_advance): New function.
5036         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5037
5038 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5039
5040         * config/mep/mep-protos.h (mep_function_arg): Delete.
5041         (mep_function_arg_advance): Delete.
5042         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5043         * config/mep/mep.c (mep_function_arg): Make static.  Take a
5044         const_tree and a bool.
5045         (mep_function_arg_advance): Likewise.
5046         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5047
5048 2010-10-09  Richard Guenther  <rguenther@suse.de>
5049
5050         PR tree-optimization/45945
5051         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
5052
5053 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
5054
5055         PR tree-optimization/45612
5056         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
5057         Test LABEL_DECLs as well.  Fix formatting issues.
5058         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
5059         whose label is present in NON_SSA_VARS.
5060         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
5061         as well.  Fix formatting issues.
5062         (visit_bb): Fix typos and formatting issue.
5063
5064 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
5065
5066         PR tree-optimization/45950
5067         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
5068         before initializing vno->op.
5069
5070 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
5071
5072         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
5073         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
5074
5075 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
5076
5077         PR target/45913
5078         * config/i386/i386.c (ix86_binary_operator_ok): Support
5079         "andhi/andsi/anddi" as a zero-extending move.
5080
5081 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5082
5083         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
5084         into a temporary array.
5085
5086 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
5087
5088         PR tree-optimization/45903
5089         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
5090         of {A,L}SHIFTRT of MEM.
5091
5092 2010-10-08  Richard Guenther  <rguenther@suse.de>
5093
5094         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
5095         Re-construct BLOCK_VARS.
5096         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
5097         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
5098         * tree.c (free_lang_data_in_block): Remove.
5099         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
5100         Do not touch the BLOCK tree.
5101         * expr.c (expand_expr_real_1): Allow externals.
5102
5103 2010-10-08  Richard Guenther  <rguenther@suse.de>
5104
5105         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
5106         Do not output BLOCK_SUBBLOCKS.
5107         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
5108         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
5109         Re-construct BLOCK_SUBBLOCKS of parent block.
5110         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
5111         for BINFO_BASE_ACCESSES.
5112
5113 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
5114
5115         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
5116         (TREE_H): Include $(FLAGS_H) instead of options.h.
5117         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
5118         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
5119         * common.opt (flag_complex_method, flag_evaluation_order,
5120         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
5121         Variable declarations.
5122         * configure.ac (tm_include_list): Include flags.h instead of options.h.
5123         * configure: Regenerate.
5124         * flags.h: Condition out contents for target libraries.  Include
5125         options.h at end of file.
5126         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
5127         flag_evaluation_order, flag_warn_unused_result): Remove.
5128         * gcc.c (main): Intialize global_options with global_options_init.
5129         * langhooks-def.h (lhd_init_options_struct): Declare.
5130         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
5131         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
5132         * langhooks.c (lhd_init_options_struct): New.
5133         * langhooks.h (struct lang_hooks): Add init_options_struct.
5134         Update comment on init_options.
5135         * optc-gen.awk: Generate initializer for global_options_init, not
5136         global_options.
5137         * opth-gen.awk: Condition out structure declarations for target
5138         libraries.  Declare global_options_init.
5139         * opts-common.c: Include flags.h instead of options.h.
5140         * opts.c (flag_warn_unused_result): Remove.
5141         (read_cmdline_options): Take gcc_options parameters.  Pass them to
5142         read_cmdline_option.
5143         (initial_lang_mask, initial_min_crossjump_insns,
5144         initial_max_fields_for_field_sensitive,
5145         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
5146         (init_options_once): New.  Split out of decode_options.
5147         (init_options_struct): New.  Split out of decode_options.
5148         (decode_cmdline_options_to_array_default_mask): New.
5149         (default_options_optimization): New.  Split out of decode_options.
5150         (decode_options): Move most code to other functions.  Update call
5151         to read_cmdline_options.
5152         (finish_options): New.  Split out of decode_options.
5153         * opts.h (decode_options): Add gcc_options parameters.
5154         (init_options_once, init_options_struct,
5155         decode_cmdline_options_to_array_default_mask): New.
5156         * toplev.c (flag_complex_method, flag_ira_algorithm,
5157         flag_ira_region, flag_evaluation_order): Remove.
5158         (general_init): Use global_options_init for initial flag values
5159         for global_dc.
5160         (toplev_main): Call init_options_once, init_options_struct,
5161         lang_hooks.init_options_struct,
5162         decode_cmdline_options_to_array_default_mask and
5163         lang_hooks.init_option before decode_options.  Update arguments to
5164         decode_options.
5165         * tree.h: Include flags.h instead of options.h.
5166
5167 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5168
5169         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5170
5171 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5172
5173         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
5174         Delete.
5175         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5176         (FUNCTION_INCOMING_ARG): Delete.
5177         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
5178         (function_arg_slotno): Likewise.  Take bool arguments.
5179         (sparc_arg_partial_bytes): Update call to it.
5180         (function_arg): Rename to...
5181         (sparc_function_arg_1): ...this.  Take bool arguments.
5182         (sparc_function_arg, sparc_function_incoming_arg): New functions.
5183         (function_arg_advance): Rename to...
5184         (sparc_function_arg_advance): ...this.  Take bool argument.
5185         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
5186         (TARGET_FUNCTION_INCOMING_ARG): Define.
5187
5188 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5189
5190         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
5191         Delete.
5192         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5193         * config/bfin/bfin.c (function_arg_advance): Rename to...
5194         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
5195         and bool arguments.
5196         (function_arg): Rename to...
5197         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
5198         arguments.
5199         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5200
5201 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5202
5203         * config/score/score-protos.h (score_function_arg): Delete.
5204         (score_function_arg_advance): Delete.
5205         * config/score/score3.h (score3_function_arg_advance): Take a
5206         const_tree and a bool.
5207         (score3_function_arg): Likewise.
5208         * config/score/score7.h (score7_function_arg_advance): Likewise.
5209         (score7_function_arg): Likewise.
5210         * config/score/score3.c (score3_classify_arg): Likewise.
5211         (score3_function_arg_advance, score3_function_arg): Likewise.
5212         * config/score/score7.c (score7_classify_arg): Likewise.
5213         (score7_function_arg_advance, score7_function_arg): Likewise.
5214         * config/score/score.c (score_function_arg_advance): Likewise.
5215         (score_function_arg): Likewise.  De-const-ify `cum' argument.
5216         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5217
5218 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5219
5220         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
5221         (s390_function_arg): Delete.
5222         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5223         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
5224         (s390_function_arg_integer): Likewise.
5225         (s390_function_arg_advance): Make static.  Take a const_tree and
5226         a bool.
5227         (s390_function_arg): Likewise.
5228         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5229
5230 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5231
5232         * config/spu/spu-protos.h (spu_function_arg): Delete.
5233         * config/spu/spu.h (FUNCTION_ARG): Delete.
5234         (FUNCTION_ARG_ADVANCE): Move code to ...
5235         * config/spu/spu.c (spu_function_arg_advance): New function.
5236         (spu_function_arg): Make static.  Take a const_tree and a bool.
5237         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
5238         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5239
5240 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5241
5242         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5243
5244 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5245
5246         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
5247         (init_vn_nary_op_from_op): New function.
5248         (init_vn_nary_op_from_stmt): New function.
5249         (vn_nary_op_lookup_1): New function.
5250         (sizeof_vn_nary_op): New function.
5251         (alloc_vn_nary_op_noinit): New function.
5252         (alloc_vn_nary_op): New function.
5253         (vn_nary_op_insert_into): New function.
5254         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
5255         (vn_nary_op_lookup): Likewise.
5256         (vn_nary_op_lookup_stmt): Likewise.
5257         (vn_nary_op_insert_pieces): Likewise.
5258         (vn_nary_op_insert): Likewise.
5259         (vn_nary_op_insert_stmt): Likewise.
5260         (copy_nary): Likewise.
5261         (set_value_id_for_result): New function.
5262         (set_hashtable_value_ids): Call it.
5263
5264 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5265
5266         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5267         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
5268
5269 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
5270
5271         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
5272         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5273
5274 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
5275
5276         PR debug/45656
5277         * cse.c (cse_extended_basic_block): Preserve cc0 info across
5278         debug isnsn.  Skip them when searching for cc0 setter.
5279         (set_live_p): Skip debug insns when searching for cc0 user.
5280
5281 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
5282
5283         PR debug/45673
5284         PR debug/45604
5285         PR debug/45419
5286         PR debug/45408
5287         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
5288         type of MEM_REFs to INTEGER_CSTs.
5289
5290 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
5291
5292         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
5293         m68hc11_print_operand_address.
5294
5295 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
5296
5297         * builtins.c (rewrite_call_expr): Move code to...
5298         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
5299         (rewrite_call_expr_array): New function.
5300         (fold_builtin_sprintf_chk_1): New function.
5301         (fold_builtin_sprintf_chk): Call it.
5302         (gimple_fold_builtin_sprintf_chk): Likewise.
5303         (fold_builtin_snprintf_chk_1): New function.
5304         (fold_builtin_snprintf_chk): Call it.
5305         (gimple_fold_builtin_snprintf_chk): Likewise.
5306         (gimple_rewrite_call_expr): Delete.
5307
5308 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
5309
5310         * config.host: Update copyright year.
5311
5312 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
5313
5314         * config.host (host_lto_plugin_soname): New shell variable.
5315         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
5316         * config.in: Regenerate.
5317         * configure: Regenerate.
5318         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
5319         LTO plugin shared library.
5320
5321 2010-10-07  Richard Henderson  <rth@redhat.com>
5322
5323         * target.h (enum unwind_info_type): Move ...
5324         * coretypes.h: ... here.
5325
5326 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
5327
5328         * doc/objc.texi (Fast enumeration protocol): Mention that
5329         'unsigned int' can also be used instead of 'unsigned long' in
5330         countByEnumeratingWithState:objects:count:.
5331
5332 2010-10-07  Martin Jambor  <mjambor@suse.cz>
5333
5334         * tree-sra.c (struct access): New field grp_assignment_write.
5335         (dump_access): Dump grp_assignment_write.
5336         (build_accesses_from_assign): Set grp_assignment_write.
5337         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
5338         (mark_read_status): Renamed to mark_rw_status, individual values
5339         renamed too.
5340         (analyze_access_subtree): Changed type of mark_write to
5341         mark_read_status.  Fixed propagating of mark_read and
5342         mark_write.  Changed benefit estimate.  Updated comment.
5343
5344 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
5345
5346         PR Tree-Vect/45847
5347         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
5348         check for vectype_out returned by get_vectype_for_scalar_type().
5349
5350 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
5351
5352         PR target/45805
5353         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
5354         constraint, add register specifier in instruction template.
5355         (neon_vec_pack_trunc_<mode>): Likewise.
5356         (neon_vec_<US>mult_<mode>): Add register specifier to
5357         instruction template.
5358
5359 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
5360
5361         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
5362         cygwin2.o.
5363         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
5364         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
5365         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
5366         (cygwin2.o): Likewise.
5367         * config/i386/cygwin1.c: Delete file.
5368         * config/i386/cygwin2.c: Likewise.
5369         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
5370         make all {%!mno-cygwin} ones unconditional.
5371         (STARTFILE_SPEC): Likewise.
5372         (REAL_LIBGCC_SPEC): Likewise.
5373         (LIB_SPEC): Likewise.
5374         (CXX_WRAP_SPEC): Likewise.
5375         (LINK_SPEC): Likewise.
5376         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
5377         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
5378         (cygwin_gplusplus_include_dir): Delete now-unused array.
5379         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
5380         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
5381         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
5382         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
5383         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
5384         (cygwin_local_include_dir): Delete now-unused array.
5385         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
5386         (cygwin_cross_include_dir): Delete now-unused array.
5387         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
5388         (cygwin_tool_include_dir): Delete now-unused array.
5389         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
5390         (cygwin_standard_include_dir): Delete now-unused array.
5391         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
5392         (GEN_CVT_ARRAY): Delete now-unused macro definition.
5393         (cvt_to_mingw): Delete now-unused array.
5394         (mingw_scan): Remove prototype of deleted function.
5395         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
5396         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
5397         * doc/invoke.texi (-mcygwin): Don't document removed option.
5398         (-mno-cygwin): Likewise.
5399
5400 2010-10-07  Richard Guenther  <rguenther@suse.de>
5401
5402         * machmode.h (mode_for_vector): Declare.
5403         * stor-layout.c (mode_for_vector): New function, split out from ...
5404         (layout_type): ... here.
5405         * tree-vectorizer.h (current_vector_size): Declare.
5406         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
5407         mask vector type is available.
5408         (get_vectype_for_scalar_type): Rename to ...
5409         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
5410         size argument.
5411         (get_vectype_for_scalar_type): New wrapper around
5412         get_vectype_for_scalar_type_and_size using current_vector_size.
5413         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
5414         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
5415         of vect_analyze_loop here.
5416         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
5417         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
5418         to autodetect.
5419         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
5420         V8SF to V8SI conversion builtin.
5421
5422 2010-10-07  Richard Guenther  <rguenther@suse.de>
5423
5424         * target.def (autovectorize_vector_sizes): New target hook.
5425         * targhooks.c (default_autovectorize_vector_sizes): New function.
5426         * targhooks.h (default_autovectorize_vector_sizes): Declare.
5427         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
5428         Document.
5429         * doc/tm.texi: Update.
5430         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
5431         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
5432
5433 2010-10-07  Richard Guenther  <rguenther@suse.de>
5434
5435         * target.def (units_per_simd_word): Rename to ...
5436         (preferred_simd_mode): ... this.  Return mode instead of size.
5437         * targhooks.c (default_units_per_simd_word): Rename to ...
5438         (default_preferred_simd_mode): ... this.  Return word_mode.
5439         * targhooks.h (default_preferred_simd_mode): Declare.
5440         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
5441         (arm_preferred_simd_mode): ... this.  Re-implement.
5442         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
5443         (ix86_preferred_simd_mode): ... this.  Re-implement.
5444         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
5445         (sparc_preferred_simd_mode): ... this.  Re-implement.
5446         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
5447         (mips_preferred_simd_mode): ... this.  Re-implement.
5448         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
5449         (rs6000_preferred_simd_mode): ... this.  Re-implement.
5450         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
5451         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
5452         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
5453         * doc/tm.texi: Update.
5454
5455 2010-10-07  Richard Guenther  <rguenther@suse.de>
5456
5457         PR middle-end/45869
5458         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
5459         of pointers.
5460
5461 2010-10-07  Alan Modra  <amodra@gmail.com>
5462
5463         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
5464         rather than sign extension by hand.
5465
5466 2010-10-07  Jan Hubicka  <jh@suse.cz>
5467
5468         PR middle-end/45926
5469         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
5470
5471 2010-10-07  Richard Guenther  <rguenther@suse.de>
5472
5473         PR bootstrap/45914
5474         * configure.ac: Fix typo.
5475         * configure: Regenerated.
5476
5477 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5478
5479         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
5480         define_builtin_std where it's unnecessary.
5481         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
5482
5483 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
5484
5485         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
5486         * doc/tm.texi.in: Regenerate.
5487         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
5488         * targhooks.c (default_class_likely_spilled_p): Don't use the
5489         CLASS_LIKELY_SPILLED_P macro.
5490
5491         * config/arm/arm.md: Update comment.
5492
5493 2010-10-06  Jan Hubicka  <jh@suse.cz>
5494
5495         * ipa.c (cgraph_remove_unreachable_nodes): External references can
5496         always be removed.
5497         (cgraph_externally_visible_p): We can not bring local comdats that
5498         are known to linker; fix handling of internal visibility.
5499         (function_and_variable_visibility): Likewise.
5500
5501 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5502
5503         PR rtl-optimization/45394
5504         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
5505         (struct rtx_subst_pair): Remove AFTER field.
5506         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
5507         (propagate_for_debug): Remove MOVE parameter and adjust.
5508         (try_combine): In the special case where I2 is a PARALLEL, combine only
5509         destinations of SETs and set I2SRC to the I2 source.
5510         Adjust calls to propagate_for_debug throughout.
5511         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
5512         insns.
5513
5514 2010-10-06  Olivier Hainque  <hainque@adacore.com>
5515
5516         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
5517         switch on insn codes as sequence of ifs.
5518
5519 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
5520
5521         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
5522         be UI_NONE for picochip.
5523         (picochip_option_override): Do not disable exception flags.
5524         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
5525         Declare.
5526
5527 2010-10-06  Richard Guenther  <rguenther@suse.de>
5528
5529         * Makefile.in (regmove.o): Depend on $(TARGET_H).
5530
5531 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
5532
5533         Implemented fast enumeration for Objective-C.
5534         * c-parser.c (objc_could_be_foreach_context): New.
5535         (c_lex_one_token): Recognize RID_IN keyword in a potential
5536         Objective-C foreach context.
5537         (c_parser_declaration_or_fndef): Added parameter.  Accept
5538         Objective-C RID_IN keyword as terminating a declaration; in that
5539         case, return the declaration in the new parameter.
5540         (c_parser_extenral_declaration): Updated calls to
5541         c_parser_declaration_or_fndef.
5542         (c_parser_declaration_or_fndef): Same change.
5543         (c_parser_compound_statement_nostart): Same change.
5544         (c_parser_label): Same change.
5545         (c_parser_objc_methodprotolist): Same change.
5546         (c_parser_omp_for_loop): Same change.
5547         (c_parser_for_statement): Detect and parse Objective-C foreach
5548         statements.
5549         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
5550         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
5551         fast enumeration parsing code to turn off the c99 error but still
5552         perform checks on the loop declarations.
5553         * c-tree.h (check_for_loop_decls): Updated declaration.
5554         * doc/objc.texi: Document fast enumeration.
5555
5556 2010-10-06  Nick Clifton  <nickc@redhat.com>
5557
5558         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
5559         (MDR_REGNUM): Define.
5560         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
5561         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
5562         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
5563         (REGISTER_NAMES): Add MDR.
5564         (DWARF2_DEBUGGING_INFO): Define to 1.
5565         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5566         (F): New function.  Sets RTX_FRAME_RELATED_P.
5567         (mn10300_gen_multiple_store): Use F.
5568         (expand_prologue): Use F.  Use gen_movsf() to push floating
5569         point registers.
5570         (expand_epilogue): Use gen_movsf() to pop floating point registers.
5571         (mn10300_option_override): Disable combine stack adjust pass.
5572
5573 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
5574
5575         PR target/45901
5576         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
5577         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
5578
5579 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
5580
5581         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
5582         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
5583         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
5584         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
5585         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
5586         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
5587         BUILT_IN_TOUPPER): Mark as leaf.
5588
5589         PR middle-end/45838
5590         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
5591         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
5592         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
5593         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
5594         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
5595         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
5596         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
5597
5598 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
5599
5600         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
5601         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5602         (m68hc11_class_likely_spilled_p): New function.
5603
5604 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
5605
5606         * c-parser.c (c_parser_objc_method_definition): Updated comment.
5607
5608 2010-10-05  Jan Hubicka  <jh@suse.cz>
5609
5610         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
5611         Document.
5612         * opts.c (decode_options): Handle lto partitions.
5613         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
5614         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
5615
5616 2010-10-05  Jan Hubicka  <jh@suse.cz>
5617
5618         * cgraphunit.c (assemble_function): Output thunks and aliases before
5619         the function itself.
5620
5621 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
5622
5623         * config/picochip/picochip.c (picochip_option_override): Disable
5624         exception flags for picochip.
5625
5626 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
5627
5628         * opts-common.c (handle_option, handle_generated_option,
5629         read_cmdline_option, set_option): Add diagnostic_context
5630         parameter.  Update calls among these functions.
5631         (set_option): Don't use global_dc.
5632         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
5633         (decode_options): Pass global_dc to enable_warning_as_error.
5634         (common_handle_option): Pass global_dc to enable_warning_as_error.
5635         (enable_warning_as_error): Add diagnostic_context parameter.
5636         Document parameters.  Don't use global_dc.  Pass
5637         diagnostic_context parameter to handle_generated_option.
5638         * opts.h (set_option, handle_option, handle_generated_option,
5639         read_cmdline_option, enable_warning_as_error): Add
5640         diagnostic_context parameter.
5641         * Makefile.in (lto-opts.o): Update dependencies.
5642         * coretypes.h (struct diagnostic_context, diagnostic_context):
5643         Declare here.
5644         * diagnostic.h (diagnostic_context): Don't declare typedef here.
5645         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
5646         * langhooks-def.h (struct diagnostic_context): Don't declare here.
5647         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
5648         using diagnostic_context typedef.
5649         * langhooks.c (lhd_initialize_diagnostics): Declare using
5650         diagnostic_context typedef.
5651         * langhooks.h (struct diagnostic_context): Don't declare here.
5652         (initialize_diagnostics, print_error_function): Declare using
5653         diagnostic_context typedef.
5654         * lto-opts.c: Include diagnostic.h.
5655         (lto_reissue_options): Pass global_dc to set_option.  Pass
5656         DK_UNSPECIFIED not 0.
5657         * plugin.c (plugins_internal_error_function): Declare using
5658         diagnostic_context typedef.
5659         * plugin.h (struct diagnostic_context): Don't declare here.
5660         (plugins_internal_error_function): Declare using
5661         diagnostic_context typedef.
5662
5663 2010-10-05  Olivier Hainque  <hainque@adacore.com>
5664             Nicolas Roche  <roche@adacore.com>
5665
5666         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
5667         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
5668
5669 2010-10-05  Ira Rosen  <irar@il.ibm.com>
5670
5671         PR tree-optimization/45752
5672         * tree-vect-slp.c (vect_get_mask_element): Remove static
5673         variables, make them function arguments.
5674         (vect_transform_slp_perm_load): Pass new arguments to
5675         vect_get_mask_element.
5676
5677 2010-10-05  Richard Guenther  <rguenther@suse.de>
5678
5679         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
5680         (gimple_mod_pow2): Likewise.
5681         (gimple_mod_subtract): Likewise.
5682         (gimple_ic): Likewise.
5683         (gimple_stringop_fixed_value): Likewise.
5684         * tree-profile.c (tree_init_edge_profiler): Mark profile
5685         functions nothrow and leaf.
5686         (add_abnormal_goto_call_edges): Remove.
5687         (tree_gen_edge_profiler): Work on SSA form.
5688         (tree_gen_ic_profiler): Likewise.  Simplify.
5689         (do_tree_profiling): Update SSA form.
5690         (pass_tree_profile): Remove.
5691         (do_tree_profiling): Likewise.
5692         (gate_tree_profile_ipa): New function.
5693         (pass_ipa_tree_profile): New.
5694         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
5695         state of instrumented functions.
5696         * passes.c (init_optimization_passes): Remove early non-SSA
5697         inlining.  Move profiling after early optimizations.
5698         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
5699         (pass_ipa_early_inline): Likewise.
5700         * tree-pass.h (pass_ipa_early_inline): Remove.
5701         (pass_tree_profile): Likewise.
5702         (pass_ipa_tree_profile): Declare.
5703
5704 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5705             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
5706
5707         * config/s390/s390.c (z196_cost): New.
5708         (s390_handle_arch_option): Add -march=z196.
5709         (s390_option_override): Use the new cost function and use the z10
5710         defaults also for z196.
5711         (legitimate_reload_constant_p): Adjust comment.
5712         (legitimate_reload_fp_constant_p): New function.
5713         (s390_preferred_reload_class): Distingiush between FP and Int constants.
5714         (preferred_la_operand_p): Avoid la with index on z196.
5715         (s390_adjust_priority): Trigger also for z196.
5716         (s390_issue_rate): Issue rate for z196 is 3.
5717         (s390_z10_fix_long_loop_prediction): Rename to ...
5718         (s390_fix_long_loop_prediction): ... this.
5719         (s390_reorg): Apply the z10 adjustments also for z196.
5720         (s390_loop_unroll_adjust): Do this also for z196.
5721         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
5722         (enum processor_flags): Add PF_Z196.
5723         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
5724         (TARGET_CPU_Z196, TARGET_Z196): New macros.
5725         * config.gcc: Enable z196 for --with-arch.
5726         * config/s390/2817.md: New file.
5727         * config/s390/2084.md: New type for multiply and add.
5728         * config/s390/2097.md: Likewise.
5729         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
5730         (UNSPECV_ATOMIC_OP): New constants.
5731         (fmadddf, fmaddsf): New values for type attribute.
5732         (z196prop): New insn attribute.
5733         (cpu, cpu_facility): Add z196.
5734         (ATOMIC_Z196): New code iterator.
5735         (noxa): New code attribute.
5736         (gk): New mode attribute.
5737         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
5738         Support load zero for fp constants.
5739         (fixuns_truncdddi2, fixuns_trunctddi2)
5740         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
5741         for z196.
5742         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
5743         (popcounthi2, popcountqi2): New expander.
5744         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
5745         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
5746         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
5747         insn definition.
5748         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
5749         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
5750         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
5751         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
5752         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
5753         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
5754         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
5755         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
5756         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
5757         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
5758         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
5759         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
5760         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
5761         Support new z196 instructions.
5762
5763 2010-10-05  Richard Guenther  <rguenther@suse.de>
5764
5765         PR middle-end/45877
5766         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
5767         case where gimplification optimizes away the stmt.
5768
5769 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5770
5771         PR debug/45849
5772         * var-tracking.c (strip_pointer_flags): New function.
5773         (emit_note_insn_var_location): If rtx_equal_p check failed,
5774         retry on locations simplified with simplify_replace_fn_rtx
5775         and strip_pointer_flags as its callback.
5776
5777 2010-10-04  Jan Hubicka  <jh@suse.cz>
5778
5779         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
5780         (can_refer_decl_in_current_unit_p): ... this one; reverse return
5781         value; handle comdats too.
5782         (canonicalize_constructor_val): Use it; handle function_decls
5783         correctly.
5784         (gimple_fold_obj_type_ref_known_binfo): Likewise.
5785         * gimple.c (get_base_address): Accept all kinds of decls.
5786
5787 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5788
5789         * flags.h (g_switch_value, g_switch_set): Remove.
5790         * opts.c (g_switch_value, g_switch_set): Remove.
5791         * config/g.opt (G): Add Var(g_switch_value).
5792         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
5793         (alpha_option_override): Check global_options_set.x_g_switch_value
5794         instead of g_switch_set.
5795         (alpha_in_small_data_p): Remove cast in comparison with
5796         g_switch_value.
5797         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5798         g_switch_value to unsigned HOST_WIDE_INT.
5799         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
5800         with g_switch_value.
5801         (frv_handle_option): Don't handle -G here.
5802         (frv_option_override): Check global_options_set.x_g_switch_value
5803         instead of g_switch_set.  Don't modify g_switch_set.
5804         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
5805         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
5806         g_switch_value to unsigned HOST_WIDE_INT.
5807         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
5808         (ia64_option_override): Check global_options_set.x_g_switch_value
5809         instead of g_switch_set.
5810         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
5811         Remove.
5812         (lm32_in_small_data_p): Remove cast in comparison with
5813         g_switch_value.
5814         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
5815         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
5816         HOST_WIDE_INT.
5817         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
5818         (m32r_init): Check global_options_set.x_g_switch_value instead of
5819         g_switch_set.
5820         (m32r_in_small_data_p): Remove cast in comparison with
5821         g_switch_value.
5822         (m32r_file_start): Format g_switch_value with %d.
5823         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
5824         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
5825         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
5826         handle -G here.
5827         (microblaze_option_override): Check
5828         global_options_set.x_g_switch_value instead of g_switch_set.
5829         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
5830         (mips_option_override): Check global_options_set.x_g_switch_value
5831         instead of g_switch_set.
5832         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
5833         (rs6000_file_start): Format g_switch_value with %d.
5834         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
5835         comparisons with g_switch_value.
5836         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5837         global_options_set.x_g_switch_value instead of g_switch_set.
5838         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5839         global_options_set.x_g_switch_value instead of g_switch_set.
5840         * config/score/score.c (score_handle_option): Don't handle -G here.
5841         * config/score/score3.c (score3_option_override): Check
5842         global_options_set.x_g_switch_value instead of g_switch_set.
5843         * config/score/score7.c (score7_option_override): Check
5844         global_options_set.x_g_switch_value instead of g_switch_set.
5845
5846 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
5847
5848         * common.opt (fira-coalesce): Remove.
5849
5850         * doc/invoke.texi (flag_ira_coalesce): Remove.
5851
5852         * ira-color.c (allocno_coalesced_p): Move before
5853         copy_freq_compare_func.
5854         processed_coalesced_allocno_bitmap): Ditto.
5855         (update_conflict_hard_regno_costs): Don't use
5856         ALLOCNO_FIRST_COALESCED_ALLOCNO.
5857         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
5858         (assign_hard_reg): Assume no coalesced allocnos.
5859         (get_coalesced_allocnos_attributes): Remove.
5860         (bucket_allocno_compare_func): Assume no coalesced allocnos.
5861         (push_allocno_to_stack): Ditto.
5862         (remove_allocno_from_bucket_and_push): Use
5863         ira_print_expanded_allocno instead of print_coalesced_allocno.
5864         (push_allocnos_to_stack): Assume uncoalesced allocnos.
5865         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
5866         all_conflicting_hard_regs.
5867         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
5868         (setup_allocno_left_conflicts_size): Ditto.
5869         (put_allocno_into_bucket): Ditto.
5870         (copy_freq_compare_func): Remove.
5871         (copy_freq_compare_func, merge_allocnos): Move before
5872         coalesced_pseudo_reg_freq_compare.
5873         coalesced_allocno_conflict_p): Ditto.
5874         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
5875         parameter.  Assume it true.
5876         (color_allocnos): Assume uncoalesced allocnos.  Use
5877         ira_print_expanded_allocno instead of print_coalesced_allocno.
5878         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
5879         parameter.
5880
5881         * ira.c: Remove comment about coalescing.
5882
5883 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5884
5885         * config/mips/mips.h (target_flags_explicit): Declare for
5886         GENERATOR_FILE.
5887
5888 2010-10-04  Andi Kleen  <ak@linux.intel.com>
5889
5890         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
5891         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
5892
5893 2010-10-04  Matthias Klose  <doko@ubuntu.com>
5894
5895         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
5896         multilib osdirname if it exists.
5897         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
5898
5899 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5900
5901         PR middle-end/45876
5902         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
5903         arg0's type or its unsigned counterpart as utype.  Convert
5904         arg1 to utype unconditionally.
5905
5906 2010-10-04  Julian Brown  <julian@codesourcery.com>
5907
5908         * expr.c (expand_assignment): Add assertion to prevent emitting
5909         null rtx for movmisalign pattern.
5910         (expand_expr_real_1): Likewise.
5911         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
5912         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
5913         (arm_vector_alignment_reachable): New.
5914         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
5915         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
5916         (arm_print_operand): Include alignment qualifier in %A.
5917         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
5918         (movmisalign<mode>): New expander.
5919         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
5920         insn patterns.
5921
5922 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5923
5924         * optc-gen.awk: Define global_options_set.  Don't define
5925         target_flags_explicit.
5926         * opth-gen.awk: Declare global_options_set.  Define
5927         target_flags_explicit as macro.
5928         * opts-common.c (handle_option): Take opts_set and generated_p
5929         parameters.
5930         (handle_generated_option, read_cmdline_option, set_option): Take
5931         opts_set parameter.
5932         (set_option): Use opts_set instead of hardcoding target_flags and
5933         target_flags_explicit.
5934         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
5935         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
5936         flag_value_profile_transformations_set, flag_peel_loops_set,
5937         flag_branch_probabilities_set, flag_inline_functions_set,
5938         flag_ipa_cp_set, flag_ipa_cp_clone_set,
5939         flag_predictive_commoning_set, flag_unswitch_loops_set,
5940         flag_gcse_after_reload_set): Remove.
5941         (common_handle_option, lang_handle_option, target_handle_option):
5942         Take opts_set parameter.  Assert that it is &global_options_set.
5943         (common_handle_option): Don't set _set variables.  Check opts_set
5944         instead of such variables.
5945         (enable_warning_as_error): Pass &global_options_set to
5946         handle_generated_option.
5947         * opts.h (cl_option_handler_func.handler, set_option,
5948         handle_option, handle_generated_option, read_cmdline_option): Add
5949         opts_set parameters.
5950         (handle_option): Add generated_p parameter.
5951         * config/i386/i386.c (ix86_function_specific_save,
5952         ix86_function_specific_restore): Updat for renaming of
5953         target_flags_explicit field.
5954         * config/i386/i386.opt (target_flags_explicit): Rename to
5955         ix86_target_flags_explicit.
5956         * config/ia64/ia64.c (ia64_override_options_after_change): Check
5957         global_options_set.x_flag_selective_scheduling and
5958         global_options_set.x_flag_selective_scheduling2, not
5959         sel_sched_switch_set.
5960         * flags.h (sel_sched_switch_set,
5961         flag_speculative_prefetching_set): Remove.
5962         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
5963         that it is &global_options_set.
5964         (process_command): Pass &global_options_set to read_cmdline_option.
5965         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5966         set_option.
5967         * toplev.c (target_flags_explicit): Remove.
5968
5969 2010-10-04  Jan Hubicka  <jh@suse.cz>
5970
5971         PR middle-end/45871
5972         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5973         use get_ref_base_and_offset to handle references.
5974         (fold_const_aggregate_ref): Update.
5975
5976 2010-10-04  Martin Jambor  <mjambor@suse.cz>
5977
5978         PR tree-optimization/45572
5979         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5980         ipa_check_create_node_params.
5981         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5982
5983 2010-10-04  Yao Qi  <yao@codesourcery.com>
5984
5985         * doc/passes.texi: Clean up.
5986
5987 2010-10-03  Ian Lance Taylor  <iant@google.com>
5988
5989         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5990         referring to a field using a typedef name.
5991         (find_anonymous_field_with_type): New static function.
5992         (convert_to_anonymous_field): New static function.
5993         (convert_for_assignment): If -fplan9-extensions, permit converting
5994         pointer to struct to pointer to anonymous field.
5995         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5996         (is_duplicate_field): New static function.
5997         (detect_field_duplicates_hash): If -fplan9-extensions, check for
5998         typedef names duplicating field names.
5999         (detect_field_duplicates): Likewise.
6000         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
6001         (C Dialect Options): Document -fplan9-extensions.
6002         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
6003
6004 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
6005
6006         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
6007         revision 164914.
6008         (vect_create_data_ref_ptr): Likewise.
6009         * tree-vect-stmts.c (vectorizable_store): Likewise.
6010         (perm_mask_for_reverse): Likewise.
6011         (reverse_vec_elements): Likewise.
6012         (vectorizable_load): Likewise.
6013
6014 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6015
6016         * cppbuiltin.c: New file.
6017         * cppbuiltin.h: New file.
6018         * Makefile.in: Take into account cppbuiltin.{h,c}.
6019
6020 2010-10-03  Andi Kleen  <ak@linux.intel.com>
6021
6022         * lto-cgraph.c (input_cgraph): Check for missing sections.
6023
6024 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
6025
6026         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
6027         to nonimmediate_operand.  Force operand 2 to register when allowed.
6028         (*<shiftrt_insn><mode>3_mask): Ditto.
6029         (*<rotate_insn><mode>3_mask): Ditto.
6030
6031 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6032
6033         PR tree-optimization/45720
6034         PR tree-optimization/45764
6035         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6036         Don't accept backwards consecutive accesses.
6037         (vect_create_data_ref_ptr): Disallow negative steps.
6038
6039         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
6040         (perm_mask_for_reverse): Removed.
6041         (reverse_vec_elements): Likewise.
6042         (vectorizable_load): Don't handle negative steps.
6043
6044 2010-10-02  Jan Hubicka  <jh@suse.cz>
6045
6046         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
6047         call destination is known.
6048
6049 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6050
6051         PR target/45820
6052         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
6053         earlier.
6054
6055 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6056
6057         * doc/install.texi (Configuration): Document build_configargs,
6058         host_configargs, target_configargs.
6059
6060 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
6061
6062         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
6063         (*<shiftrt_insn><mode>3_mask): Ditto.
6064         (*<rotate_insn><mode>3_mask): Ditto.
6065
6066 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
6067
6068         PR tree-optimization/44716
6069         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
6070         (HOT_TEXT_SECTION_NAME): Define.
6071
6072 2010-10-01  Nick Clifton  <nickc@redhat.com>
6073
6074         * common.opt: Add -fcombine-stack-adjustments.
6075         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
6076         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
6077         flag_combine_stack_adjustments.
6078         * doc/invoke.texi: Document the new option.
6079
6080 2010-10-01  Richard Guenther  <rguenther@suse.de>
6081
6082         PR tree-optimization/45854
6083         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
6084
6085 2010-10-01  Anthony Green  <green@moxielogic.com>
6086
6087         * config.gcc: Fix moxie-*-rtems* configuration.
6088
6089 2010-10-01  Richard Guenther  <rguenther@suse.de>
6090
6091         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
6092         (gen_decl_die): Likewise.
6093
6094 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6095
6096         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
6097         to the function code for SPU MD builtins.
6098         (spu_expand_builtin): Update.
6099         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
6100
6101 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6102
6103         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
6104         sjlj_except_unwind_info.
6105
6106 2010-10-01  Tristan Gingold  <gingold@adacore.com>
6107
6108         * configure.ac: Define the nop insn for avr*-*-*
6109         * configure: Regenerate.
6110
6111 2010-10-01  Alan Modra  <amodra@gmail.com>
6112
6113         PR target/45807
6114         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
6115         extend toc_restore_insn.
6116
6117 2010-09-30  Richard Guenther  <rguenther@suse.de>
6118
6119         PR tree-optimization/43959
6120         * function.c (gimplify_parameters): Use create_tmp_reg instead of
6121         create_tmp_var.
6122
6123 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
6124
6125         * config/sh/sh.c (sh_expand_prologue): Set
6126         current_function_static_stack_size.
6127
6128 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6129
6130         * configure.ac: Check for Solaris 8 ld with .hidden support.
6131         * configure: Regenerate.
6132
6133 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6134
6135         PR middle-end/45758
6136         * graphite.c (graphite_initialize): Call scev_reset.
6137
6138 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6139
6140         * sese.h (scev_analyzable_p): Return false for real or floating
6141         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
6142
6143 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6144
6145         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
6146         and ps.
6147         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
6148         domain.
6149         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
6150         Do not allocate ub_expr, it is passed in initialized.
6151
6152 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6153
6154         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
6155         (build_cloog_prog): Dump CLooG input file when
6156         flag_graphite_dump_cloog is set.  This is disabled on trunk.
6157         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
6158
6159 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6160
6161         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
6162         verify_dominators for CDI_POST_DOMINATORS.
6163         * sese.h: Remove comment about CDI_POST_DOMINATORS.
6164         (recompute_all_dominators): Remove call to free_dominance_info
6165         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
6166         for CDI_POST_DOMINATORS.
6167
6168 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6169
6170         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
6171         over pbb_dim_iter_domain.
6172
6173 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6174
6175         * graphite-flattening.c: Fix comments.
6176
6177 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6178
6179         * Makefile.in (OBJS-common): Add graphite-flattening.o.
6180         (graphite-flattening.o): New rule.
6181         * common.opt (floop-flatten): New flag.
6182         * doc/invoke.texi (-floop-flatten): Documented.
6183         * graphite-flattening.c: New.
6184         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
6185         * graphite-poly.h (flatten_all_loops): Declared.
6186         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
6187         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
6188         is set, also set flag_graphite.
6189
6190 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6191
6192         * graphite-poly.c (cloog_checksum): New.
6193         * graphite-poly.h (cloog_checksum): Declared.
6194
6195 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6196
6197         * graphite-poly.c (pbb_number_of_iterations): Removed.
6198         (pbb_number_of_iterations_at_time): Correctly compute the number
6199         of iterations in the transformed loop.
6200         * graphite-poly.h (pbb_number_of_iterations): Removed.
6201
6202 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6203
6204         * graphite-poly.h (lst_update_scattering_seq): Removed.
6205         (lst_update_scattering): Correctly handle outermost loop dewey
6206         renumbering.
6207
6208 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6209
6210         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
6211         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
6212         * graphite-poly.h (lst_niter_for_loop): New.
6213
6214 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6215
6216         * graphite-poly.c (apply_poly_transforms): Do not abort when the
6217         transform read from disk is not legal.  Call fatal_error instead.
6218
6219 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6220
6221         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
6222         (print_scop_header): Removed.  Inlined in the only call place...
6223         (print_scop): ... here.
6224
6225 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6226
6227         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
6228
6229 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6230
6231         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
6232
6233 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6234
6235         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
6236         (dot_deps_stmt): Same.
6237         * graphite-poly.c (dot_lst): Same.
6238
6239 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6240
6241         * graphite-blocking.c (scop_do_strip_mine): Do not call
6242         graphite_legal_transform.
6243         (scop_do_block): Same.
6244
6245 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
6246
6247         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
6248         description.
6249
6250 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6251
6252         * tree-scalar-evolution.c (instantiate_array_ref): New.
6253         (instantiate_scev_r): Also handle ARRAY_REFs.
6254
6255 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6256
6257         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6258         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
6259         RESULT_DECL, and FIELD_DECL.  Return false for an
6260         SSA_NAME_IS_DEFAULT_DEF.
6261         (compute_scalar_evolution_in_loop): Do not further analyze the
6262         scalar evolution when no_evolution_in_loop_p returns true.
6263
6264 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6265
6266         * tree-chrec.h (evolution_function_is_affine_p): Do not check
6267         whether CHREC_LEFT is invariant.  A function is affine when
6268         CHREC_RIGHT is invariant.
6269
6270 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6271
6272         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
6273         is_gimple_reg.
6274         (rewrite_degenerate_phi): Same.
6275         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
6276
6277 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
6278
6279         * graphite-scop-detection.c (graphite_can_represent_scev,
6280         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
6281         graphite_can_represent_loop): Remove outermost_loop.
6282
6283 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6284
6285         PR middle-end/45229
6286         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
6287         handle GIMPLE_CALLs with no LHS.
6288
6289 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6290
6291         * graphite-poly.c (init_graphite_out_file): New.
6292         (init_graphite_in_file): New.
6293         (apply_poly_transforms): Updated to enable reading and writing of
6294         multiple scop files.
6295
6296 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
6297
6298         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
6299         redundant checks.
6300
6301 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6302
6303         * graphite-clast-to-gimple.c (precision_for_value): Adjust
6304         computation of precision by 1.
6305
6306 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6307
6308         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
6309         (openscop_read_polyhedron_matrix): New.
6310         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
6311         (openscop_read_N_int): Same.
6312         * graphite-poly.c (openscop_read_N_int): New.
6313         (openscop_read_one_int): New.
6314         (openscop_read_N_string): New.
6315         (openscop_read_one_string): New.
6316         (openscop_read_powerset_matrix): New.
6317         (graphite_read_transforms): Remove.
6318         (graphite_read_scatt): New.
6319         (graphite_read_scop_file): New.
6320         (apply_poly_transforms): Updated to call graphite_read_scop_file.
6321
6322 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6323
6324         * graphite-poly.c: Change include order.
6325
6326 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6327
6328         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
6329         (cloog_matrix_nrows): New.
6330
6331 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6332
6333         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
6334         from matrix lines.
6335         * graphite-poly.c (openscop_print_scattering_function_1): Same.
6336         (print_scattering_function_1): Same.
6337         (openscop_print_pbb_domain): Same.
6338         (openscop_print_scop_context): Same.
6339         (print_scop_context): Same.
6340
6341 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
6342
6343         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
6344         (openscop_print_pdr_polyhedron): Print pph.
6345
6346 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6347
6348         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
6349         priority signed types.
6350
6351 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
6352
6353         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
6354         the call to lang_hooks.types.type_for_size.  Call
6355         build_nonstandard_integer_type.
6356
6357 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
6358
6359         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
6360         (openscop_print_polyhedron_matrix): New.
6361         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
6362         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
6363         (openscop_print_pdr_powerset): New.
6364         (openscop_print_powerset_matrix): New.
6365         (openscop_print_scattering_function_1): New.
6366         (print_scattering_function): Add support for scattering names and
6367         OpenScop format.
6368         (graphite_write_transforms): Remove.
6369         (print_pdr_access_layout): Updated to support OpenScop format.
6370         (print_pdr): Same.
6371         (openscop_print_pbb_domain): New.
6372         (print_pbb_body): Added a parameter to allow indicating that pbb_body
6373         is not provided.
6374         (print_pbb): Updated to call the new print_pbb_body.
6375         (openscop_print_scop_context): New.
6376         (print_scop_header): New.
6377         (print_scop): Updated to call print_scop_header.
6378         * graphite-poly.h: Document OpenScop format.
6379
6380 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
6381
6382         * config/cris/m32c.c (cris_memory_move_cost): New.
6383         (cris_register_move_cost): Make static. Change arguments type from
6384         enum reg_class to reg_class_t.
6385         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6386         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6387         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
6388
6389 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
6390
6391         PR target/45843
6392         * config/i386/i386.c (ix86_gimplify_va_arg): Use
6393         INTVAL (XEXP (slot, 1)) as prev_size.
6394
6395 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
6396
6397         PR target/45837
6398         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
6399         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
6400         defined.
6401         * config/rs6000/option-defaults.h (toplevel): Change #if
6402         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
6403         global option changes.
6404
6405 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
6406
6407         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
6408
6409         PR tree-optimization/31261
6410         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
6411         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
6412
6413 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6414
6415         PR bootstrap/45796
6416         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
6417         special-casing for generators and turn into ...
6418         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
6419         rule, for better error messages in case of toplevel dependency errors.
6420         (genprog): Add hooks, rename to ...
6421         (genprogerr): ... this, and let genprog also contain check,
6422         checksum, condmd.
6423         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
6424         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
6425         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
6426
6427 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
6428             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6429
6430         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
6431         for GMP, MPFR and MPC.
6432
6433 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6434
6435         * config/sparc/sparc.opt (mimpure-text): Move ...
6436         * config/sol2.opt: ... here.  Correct description.
6437         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
6438         * doc/invoke.texi (Option Summary, SPARC Options): Move
6439         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
6440         (Option Summary, Solaris 2 Options): ... here.
6441         (Submodel Options, Solaris 2 Options): New menu entry.
6442         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
6443         (Solaris 2 Options): ... here.
6444
6445 2010-09-30  Michael Eager  <eager@eagercon.com>
6446
6447         * extend.texi (interrupt_handler): Add MicroBlaze to list.
6448         (save_volatiles): Describe option for MicroBlaze.
6449         * invoke.texi: Add MicroBlaze Options.
6450         * contrib.texi: Add acknowledgment.
6451         * md.texi: Add MicroBlaze d and z constraints.
6452         * install.texi: Add microblaze-*-elf.
6453         * configure.ac: Add microblaze-*-* to target list.
6454         * configure: Regenerate.
6455         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
6456         * config/microblaze/microblaze-protos.h: New.
6457         * config/microblaze/crti.s: New.
6458         * config/microblaze/predicates.md: New.
6459         * config/microblaze/linux.h: New.
6460         * config/microblaze/microblaze.md: New.
6461         * config/microblaze/constraints.md: New.
6462         * config/microblaze/crtn.s: New.
6463         * config/microblaze/microblaze.opt: New.
6464         * config/microblaze/microblaze-c.c: New.
6465         * config/microblaze/t-microblaze: New.
6466         * config/microblaze/microblaze.c: New.
6467         * config/microblaze/microblaze.h: New.
6468
6469 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
6470
6471         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
6472         parse @optional/@required and set the flags as appropriate.
6473
6474 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
6475
6476         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
6477
6478 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
6479
6480         * opt-functions.awk (static_var): Update comment.
6481         (var_ref): Return offsetof expression or -1, not variable address.
6482         * optc-gen.awk: Generate structure field initializers instead of
6483         static variables.  Expect -1 for missing variables instead of null
6484         pointer.  Add gcc_options parameters to generated functions.
6485         * opth-gen.awk: Generate structure fields for static variables.
6486         Add gcc_options parameters to generated functions.
6487         * common.opt (optimize, optimize_size): Add variables.
6488         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
6489         &global_options to cl_target_option_restore.
6490         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
6491         &global_options to cl_optimization_restore, cl_target_option_save
6492         and cl_target_option_restore.
6493         (ix86_set_current_function): Pass &global_options to
6494         cl_target_option_restore.
6495         * config/pdp11/pdp11.h (optimize): Remove.
6496         * config/rs6000/rs6000.h (optimize): Remove.
6497         * config/sh/sh.h (optimize): Remove.
6498         * config/xtensa/xtensa.h (optimize): Remove.
6499         * coretypes.h (struct gcc_options): Declare.
6500         * diagnostic.c (diagnostic_initialize): Initialize
6501         context->option_state.
6502         (diagnostic_report_diagnostic): Pass option_state to
6503         option_enabled hook.
6504         * diagnostic.h (diagnostic_context.option_enabled): Add void *
6505         parameter.
6506         (diagnostic_context.option_state): New field.
6507         * final.c (final_start_function, final, final_scan_insn): Rename
6508         optimize parameter to optimize_p.
6509         * flags.h (optimize, optimize_size): Remove.
6510         * function.c (invoke_set_current_function_hook): Pass
6511         &global_options to cl_optimization_restore.
6512         * gcc.c (driver_handle_option): Take gcc_options parameter.
6513         Assert that it is &global_options.
6514         (process_command): Pass &global_options to read_cmdline_option.
6515         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
6516         option_enabled.
6517         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
6518         &global_options to set_option.
6519         * opts-common.c (handle_option, handle_generated_option,
6520         read_cmdline_option, set_option): Take explicit gcc_options
6521         parameters.  Use option_flag_var.
6522         (option_flag_var): New.
6523         * opts.c (common_handle_option, lang_handle_option,
6524         target_handle_option): Take gcc_options parameter.  Assert that it
6525         is &global_options.
6526         (read_cmdline_options): Pass &global_options to read_cmdline_option.
6527         (print_filtered_help): Use option_flag_var.  Pass &global_options
6528         to option_enabled.
6529         (common_handle_option): Use option_flag_var.
6530         (option_enabled): Take opts parameter.  Use option_flag_var.
6531         (get_option_state): Take gcc_options parameter.  Use
6532         option_flag_var.  Pass gcc_options parameter to option_enabled.
6533         (enable_warning_as_error): Pass &global_options to
6534         handle_generated_option.
6535         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
6536         (cl_option_handler_func.handler): Take gcc_options parameter.
6537         (option_enabled, get_option_state, set_option, handle_option,
6538         handle_generated_option, read_cmdline_option): Take gcc_options
6539         parameters.
6540         * toplev.c (optimize, optimize_size): Remove.
6541         (print_switch_values): Pass &global_options to option_enabled.
6542         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
6543         to get_option_state.
6544         (general_init): Initialize global_dc->option_state.
6545         * tree.c (build_optimization_node): Pass &global_options to
6546         cl_optimization_save.
6547         (build_target_option_node): Pass &global_options to
6548         cl_target_option_save.
6549
6550 2010-09-30  Martin Jambor  <mjambor@suse.cz>
6551
6552         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
6553         zero sized bit-fields.
6554
6555 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
6556
6557         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
6558         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
6559         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
6560         (c_parser_objc_class_declaration): Same change.
6561         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
6562         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
6563         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
6564         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
6565         and RID_AT_PUBLIC instead of RID_PUBLIC.
6566         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
6567         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
6568
6569 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
6570
6571         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
6572         Add links to current providers of packages for Solaris and IRIX.
6573
6574 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6575
6576         Merge from 'apple/trunk' branch on FSF servers.
6577         * c-parser.c: Applied change originally in c-parse.in.
6578
6579         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
6580
6581         Radar 4281748
6582         * c-decl.c (start_decl): Check for redeclaration of class name.
6583         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
6584
6585 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
6586
6587         * config/ia64/ia64.c (ia64_builtin_decl): New.
6588         (TARGET_BUILTIN_DECL): Define.
6589         (ia64_builtins): New.
6590         (ia64_init_builtins): Save decls in ia64_builtins.
6591
6592 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
6593
6594         PR target/40457
6595         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
6596         (move2add_use_add3_insn): Likewise.
6597         (reload_cse_move2add): Likewise.
6598         * rtlanal.c (get_full_rtx_cost): New function.
6599         * rtl.h (struct full_rtx_costs): New.
6600         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
6601         costs_add_n_insns): New inline functions.
6602         (get_full_rtx_cost): Declare.
6603
6604         PR c/45054
6605         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
6606         invariants.  Check for reg_equiv_invariant.
6607         (reload): Assert that spilled_pseudos is empty when returning.
6608
6609 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
6610
6611         * config/i386/mingw32.h (TARGET_64BIT): replaced by
6612         TARGET_64BIT_DEFAULT in #if check.
6613
6614 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
6615
6616         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
6617
6618 2010-09-29  Mike Stump  <mikestump@comcast.net>
6619
6620         * config/darwin.h (flag_mkernel): Remove.
6621         (flag_apple_kext): Likewise.
6622
6623 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
6624             Jack Howarth  <howarth@bromo.med.uc.edu>
6625
6626         * config/darwin.opt (undefined): Add.
6627
6628 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
6629
6630         PR testsuite/45664
6631         * configure.ac: Add --enable-indirect-function option.
6632         * config.gcc: Add default_gnu_indirect_function.
6633         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
6634         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
6635         * varasm.c (do_assemble_alias): Adjust for macro name change.
6636         * configure: Rebuilt.
6637         * doc/install.texi: Document --enable-indirect-function.
6638
6639 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
6640
6641         * doc/options.texi (Variable, Var, Init): Update documentation
6642         without reference to VarExists.
6643         (VarExists): Remove.
6644         * common.opt, config/i386/i386.opt, config/linux.opt,
6645         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
6646         Don't use VarExists.
6647
6648 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
6649
6650         * optc-gen.awk: Generate global_options initializer instead of
6651         individual variables.  Add x_ prefix to names of structure members.
6652         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
6653         names of structure members.
6654         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6655         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
6656         * doc/tm.texi: Regenerate.
6657         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6658         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6659         * c-parser.c (disable_extension_diagnostics,
6660         restore_extension_diagnostics): Update names of cpp_options members.
6661         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6662         * common.opt (fcompare-debug-second): Don't use Var.
6663         * config/alpha/alpha.h (target_flags): Remove.
6664         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6665         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
6666         * config/bfin/bfin.h (target_flags): Remove.
6667         * config/cris/cris.h (target_flags): Remove.
6668         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
6669         cl_target_option members.
6670         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
6671         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
6672         ix86_can_inline_p): Update names of cl_target_option members.
6673         * config/i386/i386.h (ix86_isa_flags): Remove.
6674         * config/lm32/lm32.h (target_flags): Remove.
6675         * config/mcore/mcore.h (mcore_stack_increment): Remove.
6676         * config/mcore/mcore.md (addsi3): Remove extern declaration of
6677         flag_omit_frame_pointer.
6678         * config/mep/mep.h (target_flags): Remove.
6679         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6680         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
6681         * config/mmix/mmix.h (target_flags): Remove.
6682         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
6683         flag_expensive_optimizations): Remove.
6684         * config/s390/s390.h (flag_pic): Remove.
6685         * config/score/score-conv.h (target_flags): Remove.
6686         * config/sh/sh.h (sh_fixed_range_str): Remove.
6687         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
6688         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
6689         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6690         * diagnostic.c (diagnostic_initialize): Update names of
6691         diagnostic_context members.
6692         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
6693         warn_system_headers.
6694         (diagnostic_report_warnings_p): Update for new names.
6695         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
6696         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
6697         HARD_FRAME_POINTER_IS_ARG_POINTER.
6698         * flags.h (flag_compare_debug): Declare.
6699         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6700         * opts.c (flag_compare_debug): Define.
6701         (common_handle_option): Update names of diagnostic_context
6702         members.  Handle -fcompare-debug-second.
6703         (fast_math_flags_struct_set_p): Update names of cl_optimization
6704         members.
6705         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6706         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6707         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6708         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6709         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6710         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6711         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
6712         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6713         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6714
6715 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
6716
6717         * config/picochip/picochip.c (picochip_output_internal_label):
6718         This function can now be called for debug CFI labels, which can come
6719         in the middle of a vliw instruction.  Postpone until end of vliw.
6720
6721 2010-09-29  Richard Guenther  <rguenther@suse.de>
6722
6723         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
6724         (DECL_FILE_SCOPE_P): Use it.
6725         (TYPE_FILE_SCOPE_P): New macro.
6726
6727 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6728
6729         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
6730         a CPP_NAME which is a reserved word, clearly separate cases for
6731         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
6732
6733 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6734
6735         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
6736         token->value with the canonical spelling.  Do exactly like C and
6737         C++ and leave it as it is.
6738
6739 2010-09-28  Richard Henderson  <rth@redhat.com>
6740
6741         * config/alpha/alpha.c (alpha_builtins): New.
6742         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
6743         (alpha_builtin_function): New.
6744         (alpha_add_builtins, alpha_init_builtins): Use it.
6745
6746 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
6747
6748         * doc/standards.texi (Standards): Expanded the section on
6749         Objective-C and Objective-C++.
6750
6751 2010-09-28  DJ Delorie  <dj@redhat.com>
6752
6753         PR target/45800
6754         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
6755         volatile MEMs.
6756
6757 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
6758
6759         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
6760         attributes on methods.
6761          (c_parser_objc_method_definition): Handle attributes.
6762         (c_parser_objc_methodproto): Likewise.
6763         (c_parser_objc_maybe_method_attributes): New.
6764         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
6765         missing definition, similar to that in ObjC++.
6766
6767 2010-09-28  Richard Henderson  <rth@redhat.com>
6768
6769         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
6770         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6771         (CONFIG_SJLJ_EXCEPTIONS): Remove.
6772         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
6773         (STACK_CHECK_PROTECT): Likewise.
6774         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
6775         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
6776         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
6777         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
6778         (dwarf2out_assembly_start): Likewise.
6779         * except.c (init_eh): Use targetm.except_unwind_info.
6780         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
6781         (output_one_function_exception_table): Likewise.
6782         * final.c: Unconditionally include dwarf2out.h.
6783         (final_start_function): Unconditionally call dwarf2out routines.
6784         (final_end_function, final_scan_insn): Likewise.
6785         * function.c (expand_function_end): Use targetm.except_unwind_info.
6786         * opts.c (decode_options): Use targetm.except_unwind_info.
6787         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
6788         * target.def (debug_unwind_info, except_unwind_info): New.
6789         * target.h (enum unwind_info_type): New.
6790         * targhooks.c (default_debug_unwind_info): New.
6791         (default_except_unwind_info): New.
6792         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
6793         * targhooks.h: Declare them.
6794         * tree-tailcall.c: Include "target.h"
6795         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
6796         * Makefile.in (tree-tailcall.o): Update.
6797         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
6798         (lhd_gcc_personality): Likewise.
6799
6800         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
6801         (TARGET_EXCEPT_UNWIND_INFO): New.
6802         (DWARF2_UNWIND_INFO): Update.
6803         (TARGET_DEBUG_UNWIND_INFO): New.
6804         * doc/tm.texi: Rebuild.
6805
6806         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
6807         targetm.except_unwind_info.
6808
6809         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
6810         (arm_except_unwind_info): New.
6811         (arm_compute_func_type): Use it.
6812         (arm_expand_prologue, thumb_pushpop): Likewise.
6813         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
6814         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
6815         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
6816         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
6817         (DWARF2_UNWIND_INFO): Remove.
6818         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6819         (ARM_EABI_UNWIND_TABLES): Remove.
6820
6821         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
6822         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
6823         (ia64_except_unwind_info): New.
6824         (ia64_output_function_prologue): Use it.
6825         (ia64_add_bundle_selector_before): Likewise.
6826         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
6827         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
6828         (TARGET_UNWIND_INFO): Remove.
6829
6830         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
6831
6832 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
6833
6834         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
6835         (c_parser_objc_protocol_definition): Likewise.
6836         (c_parser_external_declaration): Provide dummy attribute arguments.
6837         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
6838         (c_parser_objc_class_definition): Handle attributes.
6839         (c_parser_objc_protocol_definition): Likewise.
6840
6841 2010-09-28  Tobias Burnus  <burnus@net-b.de>
6842
6843         PR fortran/40569
6844         PR fortran/40568
6845         * toplev.h (save_decoded_options, save_decoded_options_count):
6846         New global variables.
6847         * toplev.c (save_decoded_options, save_decoded_options_count):
6848         Export variables.
6849
6850 2010-09-28  Ian Lance Taylor  <iant@google.com>
6851
6852         * config/i386/i386.c (ix86_supports_split_stack): Test
6853         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
6854
6855 2010-09-28  Ian Lance Taylor  <iant@google.com>
6856
6857         PR target/45815
6858         * opts.c (decode_options): Don't test whether the target supports
6859         split stack if flag_split_stack == 0.
6860
6861 2010-09-28  Jan Hubicka  <jh@suse.cz>
6862
6863         * builtin-attrs.def (ATTR_LEAF): New attribute.
6864         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
6865         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
6866         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
6867         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
6868         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
6869         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
6870         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
6871         * sync-builtins.def: Annotate all builtins by leaf.
6872         * omp-builtins.def: Annotate all builtins by leaf.
6873         * builtins.def: Annotate relevant builtins with leaf attribute.
6874         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6875         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
6876         leaf.
6877
6878 2010-09-28  Jan Hubicka  <jh@suse.cz>
6879
6880         * tree-ssa-ccp.c (fold_ctor_reference): New function.
6881         (fold_const_aggregate_ref): Use it.
6882         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
6883         into external static.
6884
6885 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6886
6887         PR target/44452
6888         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
6889         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
6890         (ix86_solaris_return_in_memory): Remove.
6891         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
6892         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6893         (TARGET_SUBTARGET_DEFAULT): Redefine.
6894         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
6895         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6896         (TARGET_SUBTARGET_DEFAULT): Redefine.
6897         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
6898         -mvect8-ret-in-mem.
6899         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
6900
6901 2010-09-29  Alan Modra  <amodra@gmail.com>
6902
6903         PR target/45807
6904         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
6905         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
6906         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
6907         Delete.
6908         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
6909         (rs6000_emit_prologue): Don't just create frame save info for r2,
6910         actually save r2.
6911
6912 2010-09-28  Richard Henderson  <rth@redhat.com>
6913
6914         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
6915         when 8 bytes are requested.
6916
6917 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6918
6919         * config/avr/avr.c (expand_prologue): Set
6920         current_function_static_stack_size.
6921
6922 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6923
6924         * config/alpha/alpha.md: Change the initial condition of the
6925         probing loop.
6926
6927 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
6928
6929         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
6930         Split from *avx_<maxmin:code><mode>3.
6931         (*avx_<smaxmin:code><mode>3): Ditto.
6932         * config/i386/i386.md (maxmin): Remove code iterator.
6933
6934 2010-09-27  Ian Lance Taylor  <iant@google.com>
6935
6936         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
6937         requires assembler support for CFI directives.
6938
6939 2010-09-27  Richard Henderson  <rth@redhat.com>
6940
6941         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
6942
6943 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6944
6945         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
6946         that AFTER is not in the range FROM..TO, inclusive.
6947
6948 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6949             Bernd Schmidt  <bernds@codesourcery.com>
6950
6951         PR rtl-optimization/45792
6952         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
6953         If not all insns are to be merged, for each edge, stash the
6954         next candidate after the to-be-merged insns before doing the
6955         merge, and use them for the retry at the new insertion point.
6956         Handle CC0 targets when retrying.
6957
6958 2010-09-27  Ian Lance Taylor  <iant@google.com>
6959
6960         * common.opt (fsplit-stack): New option.
6961         * opts.c (decode_options): Set flag_split_stack to final value.
6962         * target.def (supports_split_stack): New hook.
6963         * gcc.c (STACK_SPLIT_SPEC): Define.
6964         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6965         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6966         (Code Gen Options): Document -fsplit-stack.
6967         * doc/extend.texi (Function Attributes): Mention no_split_stack.
6968         (Function Attributes): Document no_split_stack.
6969         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6970         TARGET_SUPPORTS_SPLIT_STACK.
6971         * doc/tm.texi: Rebuild.
6972         * function.c (thread_prologue_and_epilogue_insns): If
6973         flag_split_stack, add split stack prologue.
6974         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6975         * varasm.c (saw_no_split_stack): New static variable.
6976         (assemble_start_function): Set saw_no_split_stack if the function
6977         has the no_split_stack attribute.
6978         (file_end_indicate_split_stack): New function.
6979         * output.h (file_end_indicate_split_stack): Declare.
6980         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6981         and function.
6982         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6983         routines.
6984         * config/i386/i386.c (ix86_option_override_internal): Don't set
6985         expand_builtin_va_start to NULL if -fsplit-stack.
6986         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6987         -fsplit-stack.
6988         (ix86_va_start): If -fsplit-stack, get overflow pointer from
6989         scratch register set by prologue.
6990         (ix86_code_end): If -fsplit-stack, call
6991         file_end_indicate_split_stack.
6992         (ix86_supports_split_stack): New static function.
6993         (SPLIT_STACK_AVAILABLE): Define.
6994         (split_stack_prologue_scratch_regno): New static function.
6995         (split_stack_fn): New static variable.
6996         (ix86_expand_split_stack_prologue): New function.
6997         (ix86_live_on_entry): New static function.
6998         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6999         (output_pic_addr_const): Likewise.
7000         (i386_asm_output_addr_const_extra): Likewise.
7001         (ix86_expand_call): Change return type to rtx.  Return the new
7002         call instruction.
7003         (TARGET_SUPPORTS_SPLIT_STACK): Define.
7004         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7005         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
7006         (split_stack_prologue, split_stack_return): New insns.
7007         (split_stack_space_check): New insn.
7008         * config/i386/i386.h (struct machine_function): Add
7009         split_stack_varargs_pointer field.
7010         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
7011         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7012         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
7013         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7014         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
7015         Declare.
7016         (ix86_expand_call): Update declaration.
7017
7018 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7019
7020         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
7021         code.  Added byref, which was missing in the list of codes.
7022         Explain that enumeration values are encoded as the integer type
7023         that the compiler uses to store them.  Explain and make examples
7024         of how 'const' interacts with pointers, and the complication of
7025         the encoding of 'const char *'.
7026         (Legacy type encoding): New subsection, explaining that GCC emits
7027         incorrect type encodings for the NeXT runtime for compatibility
7028         reasons.
7029         (@@encode): New subsection, explaining @encode and particularly
7030         that protocol qualifiers are not recognized inside an @encode()
7031         expression.
7032         (Method signatures): New subsection, explaining how method
7033         signatures are encoded.
7034
7035 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
7036
7037         Merge from 'apple/trunk' branch on FSF servers.  Removed small
7038         change in build_conditional_expr that had been added when fixing
7039         PR objc/27377 and which did the same check in a less complete way.
7040
7041         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
7042
7043         Radar 4229905
7044         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
7045         looking for objective-c common pointer types.
7046
7047         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
7048
7049         Radar 4154928
7050         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
7051         use their ObjC common type.
7052
7053 2010-09-27  Richard Guenther  <rguenther@suse.de>
7054
7055         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
7056
7057 2010-09-27  Jie Zhang  <jie@codesourcery.com>
7058
7059         * print-tree.c (print_node): Print in-constant-pool.
7060
7061 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
7062
7063         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
7064         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
7065         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
7066         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
7067
7068 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
7069
7070         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
7071         from pro_epilogue_adjust_stack_<mode>_{1,2}.
7072         (pro_epilogue_adjust_stack_<mode>_add): Rename from
7073         pro_epilogue_adjust_stack_<mode>_3.
7074         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
7075         renamed pro_epilogue_adjust_stack_{si,di}_add.
7076         (ix86_expand_prologue): Use indirect functions.  Update for renamed
7077         pro_epilogue_adjust_stack_{si,di}_sub.
7078
7079 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
7080
7081         * config/i386/i386.md (movmsk_df): New insn.
7082         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
7083         sequence for TARGET_SSE_MATH.
7084
7085 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
7086
7087         * config/mips/mips.c (mips_builtin_decls): Declare.
7088         (mips_init_builtins): Store function declarations in
7089         mips_builtin_decls.
7090         (mips_builtin_decl): New function.
7091         (TARGET_BUILTIN_DECL): Define.
7092
7093 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
7094             Richard Henderson  <rth@redhat.com>
7095
7096         * config/i386/cygwin.asm: Include auto-host.h.
7097         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
7098         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
7099         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
7100         alignment code from the 64-bit path.  Use gas local labels.
7101         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
7102         from _di_2.  Remove the useless constant integer argument.
7103         (pro_epilogue_adjust_stack_<mode>_3): New.
7104         (allocate_stack_worker_probe_<mode>): Macroize from
7105         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
7106         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
7107         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
7108         (__chkstk_ms): New function.
7109         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
7110         * config/i386/t-interix: Likewise.
7111         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
7112         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
7113         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
7114         * configure, config.in: Rebuild.
7115
7116 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
7117
7118         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
7119         statements because of the return slot optimization.
7120
7121 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
7122
7123         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
7124         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
7125         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7126         (class_likely_spilled_p): Rename to...
7127         (avr_class_likely_spilled_p): ...this. Make static. Change argument
7128         type to reg_class_t.
7129
7130 2010-09-24  Jan Hubicka  <jh@suse.cz>
7131
7132         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
7133         (lto_symtab_resolve_symbols): Set it.
7134         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
7135         store resolution field in cgraph/varpool.
7136         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
7137         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
7138         (cgraph_dump_node): Drop used_from_object_file.
7139         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
7140         (cgraph_function_body_availability): Use decl_replaceable_p.
7141         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
7142         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
7143         cgraph_used_from_object_file_p.
7144         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
7145         cgraph_used_from_object_file_p.
7146         (resolution_used_from_other_file_p): New functoin.
7147         (cgraph_used_from_object_file_p): New predicate.
7148         * cgraph.h: Include plugin-api.h
7149         (struct cgraph_local_info): Remove used_from_object_file.
7150         (struct cgraph_node): Add resolution field.
7151         (struct varpool_node): Likewise; remove used_from_object_file;
7152         reove const_value_known.
7153         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
7154         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
7155         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7156         varpool_used_from_object_file_p): Declare.
7157         (varpool_get_node, varpool_extra_name_alias): Update prototype.
7158         * tree.h (DECL_REPLACEABLE_P): Remove.
7159         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
7160         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
7161         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
7162         input_overwrite_node, input_node, input_varpool_node): Stream
7163         resolution.
7164         * expr.c (expand_expr_real_1): Use const_value_known_p
7165         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
7166         const_value_known.
7167         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
7168         (function_and_variable_visibility): Set resolution for local vars
7169         and functions; use varpool_used_from_object_file_p.
7170         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
7171         static functions.
7172         (default_binds_local_p_1): Use resolutoin info.
7173         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
7174         * varpool.c (varpool_get_node): Constify.
7175         (const_value_known_p): Do not use vnode->const_value_known;
7176         use decl_replaceable_p.
7177         (varpool_finalize_decl): Do not set const_value_known.
7178         (cgraph_variable_initializer_availability): Use decl_replaceable_p
7179         (varpool_extra_name_alias): Return new node.
7180         (varpool_used_from_object_file_p): New function.
7181
7182 2010-09-24  Richard Henderson  <rth@redhat.com>
7183
7184         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
7185         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
7186         (do_spill): Use REG_CFA_OFFSET.
7187         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
7188         as appropriate.
7189         (ia64_expand_epilogue): Likewise.
7190         (process_set): Split into ...
7191         (process_cfa_adjust_cfa): this,
7192         (process_cfa_register): this,
7193         (process_cfa_offset): and this new function.
7194         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
7195         instead of REG_FRAME_RELATED_EXPR.
7196
7197 2010-09-24  Olivier Hainque  <hainque@adacore.com>
7198
7199         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
7200
7201 2010-09-24  Jan Hubicka  <jh@suse.cz>
7202
7203         * doc/extend.texi: (attribute leaf): Document.
7204         * tree.c (local_define_builtin): Handle ECF_LEAF.
7205         (build_common_builtin_nodes): Set ECF_LEAF where needed.
7206         * tree.h (ECF_LEAF): New.
7207         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
7208         overwrittable and unavailable functions.
7209         (ipa_init): Put all_module_statics into optimization_summary_obstack.
7210         (copy_global_bitmap): Do not copy all_module_statics.
7211         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
7212         (propagate): Handle overwritable and unavailable leaf functions;
7213         initialize global info for overwritable and unavailable leaf functions;
7214         do not free all module statics.
7215         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
7216         local statics.
7217         * calls.c (flags_from_decl_or_type): Handle leaf.
7218         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
7219         abnormal gotos.
7220
7221 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
7222
7223         * gengtype.c: Reindented.
7224         * gengtype.h: Reindented.
7225         * gengtype-parse.c: Reindented.
7226
7227 2010-09-24  Jan Hubicka  <jh@suse.cz>
7228
7229         PR tree-optimization/45738
7230         PR tree-optimization/45741
7231         * expr.c (string_constant): Allow CONST_DECL too;
7232         check that DECL_INITIAL is set.
7233         * varpool.c (const_value_known_p): Only look into VAR_DECL
7234         and CONST_DECL.
7235
7236 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
7237
7238         * common.opt (undef): New.
7239
7240 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
7241
7242         PR middle-end/45234
7243         * rtl.h (enum global_rtl_index): Add
7244         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
7245         (LAST_VIRTUAL_POINTER_REGISTER): Define.
7246         (virtual_preferred_stack_boundary_rtx,
7247         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
7248         (LAST_VIRTUAL_REGISTER): Increase by one.
7249         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
7250         instead of LAST_VIRTUAL_REGISTER.
7251         * function.c (instantiate_new_reg): Handle
7252         virtual_preferred_stack_boundary_rtx.
7253         * emit-rtl.c (init_virtual_regs): Handle
7254         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
7255         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
7256         * explow.c (round_push): If crtl->preferred_stack_boundary
7257         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
7258         virtual_preferred_stack_boundary_rtx alignment instead of
7259         crtl->preferred_stack_boundary alignment.
7260         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
7261         macros.  Never decrease crtl->preferred_stack_boundary,
7262         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
7263         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
7264         stack_pointer_delta in dynamic allocation, even when size
7265         is constant.
7266         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
7267         macro.
7268         * print-rtl.c (print_rtx): Handle
7269         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
7270         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
7271         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
7272         * config/frv/frv.c (frv_emit_movsi): Likewise.
7273         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
7274         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
7275         Likewise.
7276
7277         Revert:
7278         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7279
7280         PR middle-end/45234
7281         * calls.c (expand_call): Make sure that all variable sized
7282         adjustments are multiple of preferred stack boundary after
7283         stack alignment.
7284
7285 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
7286             Dominique Dhumieres  <dominiq@lps.ens.fr>
7287
7288         PR bootstrap/45751
7289         * config/darwin-driver.c (darwin_default_min_version):
7290         Adjust size passed to memcpy in two places.
7291
7292 2010-09-24  Richard Guenther  <rguenther@suse.de>
7293
7294         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
7295         Make sure to not call set_type_context with error_mark_node.
7296         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
7297
7298 2010-09-24  Richard Guenther  <rguenther@suse.de>
7299
7300         * Makefile.in (OBJS-onestep): Remove.
7301         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
7302         (libbackend.a): Remove onestep support.
7303         (libbackend.o): Remove.
7304         * configure.ac (--enable-intermodule): Remove.
7305         * configure: Regenerate.
7306
7307 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
7308
7309         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
7310         reaching the end of a block if it occurs at a DEBUG_INSN.
7311
7312 2010-09-09  Tristan Gingold  <gingold@adacore.com>
7313
7314         PR target/44242
7315         * config/vms/vms-crt0-64.c: Removed.
7316         * config/vms/vms-crt0.c: Removed.
7317         * config/vms/vms-psxcrt0-64.c: Removed.
7318         * config/vms/vms-psxcrt0.c: Removed.
7319         * config/vms/vms-ucrt0.c: New file.
7320         * config/vms/t-vms64: Removed.
7321         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
7322         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
7323         * config.gcc (alpha-dec-vms): Use t-vms.
7324
7325 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7326
7327         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
7328         underfull hbox in DVI output.
7329         (-fobjc-class-cxx-cdtors): Same change.
7330         (-fobjc-exceptions): Tidied up documentation.  Explain what the
7331         option does, but moved the (lenghty) description of the exception
7332         syntax into objc.texi.
7333         (-fobjc-gc): Explain that the option is not useful with the GNU
7334         runtime.
7335         (-fzero-link): Explain that the GNU runtime always works in
7336         "zero-link" mode.
7337         * doc/objc.texi: All sections: simplified @node declarations
7338         removing specification of next, previous, up node.
7339         (Objective-C): Updated introduction.
7340         (Garbage Collection): Updated.  The bohem-gc library is now
7341         included in gcc itself.  Mention that this section only applies to
7342         the GNU Objective-C runtime.
7343         (compatibility_alias): Small tidy up.
7344         (Exceptions): New section mostly containing text previously in the
7345         description of the -fobjc-exception command-line option.
7346         (Synchronization): Same.
7347
7348 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
7349
7350         * config/i386/i386.md (ix86_code_end): Move the initialization of
7351         xops array near the consumer.  Use AX_REG and SP_REG instead of
7352         numerical constants.
7353
7354 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
7355
7356         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
7357         method [methodname]' for an Objective-C method instead of the less
7358         satisfactory 'too many arguments to function' (with no method name).
7359
7360 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
7361
7362         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
7363         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
7364         (execute_update_addresses_taken): Remove parameter.  Execute the
7365         optimization unconditionally.
7366         * passes.c (execute_function_todo): Call execute_update_addresses_taken
7367         unconditionally if TODO_rebuild_alias is set, else only when optimizing
7368         if TODO_update_address_taken is set.
7369
7370 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
7371
7372         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
7373         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
7374         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7375         (arm_output_addr_const_extra): Make static.
7376
7377 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
7378
7379         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
7380         define as unspec_volatile.
7381         ("nops"): Define as unspec_volatile. Use fputs to write to
7382         asm_out_file directly.  Output NOPs on separate lines using while loop.
7383         * config/i386/i386.c (ix86_code_end): Use fputs to write to
7384         asm_out_file directly.  Output NOPs on separate lines using while loop.
7385
7386 2010-09-23  Richard Guenther  <rguenther@suse.de>
7387
7388         PR tree-optimization/45565
7389         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
7390         Make sure to adjust the fndecl before replacing the stmt.
7391
7392 2010-09-23  Richard Guenther  <rguenther@suse.de>
7393
7394         PR middle-end/45750
7395         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
7396         gimplifying MEM_REF.
7397
7398 2010-09-23  Alan Modra  <amodra@gmail.com>
7399
7400         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
7401         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
7402
7403 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
7404
7405         PR rtl-optimization/44374
7406         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
7407         * df-core.c (df_set_bb_dirty): Set it.
7408         * ifcvt.c (find_memory): Remove function.
7409         (dead_or_predicable): Use can_move_insns_across.
7410         * df.h (can_move_insns_across): Declare function.
7411         * cfgcleanup.c (block_was_dirty): New static variable.
7412         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
7413         than df_get_bb_dirty.
7414         (try_head_merge_bb): New static function.
7415         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
7416         is set.
7417         * df-problems.c: Include "target.h"
7418         (df_simulate_find_uses): New static function.
7419         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
7420         (find_memory, find_memory_store): New static functions.
7421         (can_move_insns_across): New function.
7422         * Makefile.in (df-problems.o): Update dependencies.
7423
7424 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7425
7426         PR java/44095
7427         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
7428         is specified and the suffix of the file isn't ".c".
7429         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7430
7431 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7432
7433         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
7434         * doc/cppopts.texi: Fix markup of index entry.
7435         * doc/extend.texi (Constructing Calls): Fix markup of
7436         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
7437         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
7438         (Vague Linkage, C++ Attributes): Fix markup of index entries and
7439         keywords.
7440         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
7441         avoid long lines.
7442         (C Dialect Options, C++ Dialect Options, Warning Options)
7443         (Debugging Options, Spec Files, Darwin Options)
7444         (i386 and x86-64 Options, MIPS Options)
7445         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
7446         index entries, avoid abbreviations, allow URLs to wrap, avoid
7447         long lines, avoid overlong pages from long @itemx lists.
7448         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
7449         * doc/standards.texi (Standards): Likewise.
7450         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
7451
7452 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
7453
7454         * opts-common.c (prune_options): Make static.  Work with decoded
7455         options.
7456         (decode_cmdline_options_to_array): Call prune_options.  Don't
7457         resize option array here.
7458         * opts.h (prune_options): Remove prototype.
7459         * gcc.c (process_command): Take decoded options; don't call
7460         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
7461         (main): Call decode_cmdline_options_to_array here instead of
7462         prune_options.  Update call to process_command.
7463         * config/darwin-driver.c: Include opts.h.
7464         (darwin_default_min_version): Work with decoded options.  Don't
7465         handle -b or -V here.
7466         * config/darwin.h (darwin_default_min_version): Update prototype.
7467         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
7468         darwin_default_min_version.
7469         * config/i386/cygwin.h (mingw_scan): Update prototype.
7470         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
7471         * config/i386/cygwin1.c: Include opts.h.
7472         (mingw_scan): Work with decoded options.
7473         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
7474         * config/t-darwin (darwin-driver.o): Update dependencies.
7475
7476 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
7477
7478         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
7479         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
7480         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
7481         -force-link, -force-link=, -language, -language=,
7482         -library-directory, -library-directory=, -no-canonical-prefixes,
7483         -no-standard-libraries, -no-warnings, -optimize, -output,
7484         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
7485         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
7486         -print-file-name=, -print-libgcc-file-name,
7487         -print-multi-directory, -print-multi-lib,
7488         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
7489         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
7490         -profile, -save-temps, -shared, -specs, -specs=, -static,
7491         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
7492         symbolic): New.
7493         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
7494         * gcc.c (A Short Introduction to Adding a Command-Line Option):
7495         Remove comment.
7496         (cc1_options): Correct specs for passing down --help,
7497         --target-help and --help=*.  Add spec for passing down --version.
7498         (struct option_map, option_map, target_option_translations,
7499         translate_options): Remove.
7500         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
7501         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
7502         OPT_fhelp_ and OPT_ftarget_help.
7503         (process_command): Don't call translate_options.  Call
7504         decode_cmdline_options_to_array before checking for
7505         -no-canonical-prefixes using decoded options.
7506         * opts-common.c (tm.h): Update comment on #include.
7507         (find_opt): Allow abbreviations of long options.
7508         (struct option_map, option_map): New.
7509         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
7510         and -mno handling.
7511         (target_option_translations): New.
7512         (decode_cmdline_options_to_array): Handle
7513         TARGET_OPTION_TRANSLATE_TABLE in driver.
7514         * opts.c (common_handle_option): Don't handle OPT_fhelp,
7515         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
7516
7517 2010-09-22  Richard Guenther  <rguenther@suse.de>
7518
7519         * tree-inline.c (optimize_inline_calls): Schedule cleanups
7520         only if we inlined something.  Block compaction and conditional
7521         folding are done by cfg cleanup.  Schedule update-address-taken.
7522         (tree_function_versioning): Remove redundant call to number_blocks.
7523         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
7524         folding is done by cfg cleanup.
7525         * passes.c (init_optimization_passes): Remove update-address-taken
7526         pass after IPA inlining.
7527
7528 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
7529
7530         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
7531         to update conditions. Fix reg_mode[] check.
7532
7533 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
7534
7535         * config/picochip/picochip.md (movhicc): Use expand to check whether
7536         movhicc is available and split it after reload.
7537
7538 2010-09-22  Richard Guenther  <rguenther@suse.de>
7539
7540         * tree-ssanames.c (release_dead_ssa_names): Do not remove
7541         callee edges here.
7542         * passes.c (init_optimization_passes): Remove early CFG cleanup.
7543         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
7544         (pass_cleanup_cfg): Likewise.
7545         (execute_fixup_cfg): Cleanup.
7546         * tree-pass.h (pass_cleanup_cfg): Remove.
7547
7548 2010-09-22  Martin Jambor  <mjambor@suse.cz>
7549
7550         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
7551         builtins if it is true.
7552         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
7553         parameter.
7554
7555 2010-09-22  Martin Jambor  <mjambor@suse.cz>
7556
7557         * tree-sra.c (struct access): New field grp_no_warning.
7558         (create_access_replacement): Set TREE_NO_WARNING according to
7559          grp_no_warning.
7560         (create_artificial_child_access): Use build_ref_for_model and set
7561         grp_no_warning if build_user_friendly_ref_for_offset fails.
7562         (propagate_subaccesses_across_link): Likewise.
7563
7564 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7565
7566         PR target/35664
7567         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
7568         ('f'): Likewise.
7569
7570 2010-09-22  Tristan Gingold  <gingold@adacore.com>
7571
7572         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
7573
7574 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
7575
7576         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
7577         * config/i386/i386.c (decide_alg): Update for rename.
7578
7579 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
7580
7581         PR rtl-optimization/45739
7582         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
7583         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
7584
7585 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
7586
7587         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
7588         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
7589         Remove.
7590         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
7591         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7592
7593 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7594
7595         PR objc/23710
7596         * c-parser.c (c_parser_objc_method_definition): Check the return
7597         value of objc_start_method_definition and if false is returned,
7598         parse the method definition but emit no code.
7599
7600 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7601
7602         PR objc/25965
7603         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
7604         call objc_get_interface_ivars ().
7605
7606 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
7607
7608         PR target/45694
7609         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
7610         static chain-register is used for 64-bit.
7611
7612 2010-09-21  Richard Guenther  <rguenther@suse.de>
7613
7614         * dwarf2out.c (is_cu_die): New function.
7615         (add_pubtype): Use it.
7616         (gen_subprogram_die): Likewise.
7617         (gen_struct_or_union_type_die): Likewise.
7618         (dwarf2out_finish): Likewise.
7619         (comp_unit_die): Rename to ...
7620         (single_comp_unit_die): ... this.
7621         (comp_unit_die): New function lazily constructing and
7622         returning single_comp_unit_die.
7623         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
7624         base_type_die, subrange_type_die, modified_type_die,
7625         lower_bound_default, add_bound_info, add_prototyped_attribute,
7626         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
7627         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
7628         force_decl_die, gen_namespace_die, dwarf2out_decl,
7629         dwarf2out_start_source_file, dwarf2out_end_source_file,
7630         prune_unused_types, dwarf2out_finish): Use it.
7631         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
7632         the global list of translation-unit decls.
7633         (dwarf2out_init): Do not create single_comp_unit_die here.
7634         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
7635
7636 2010-09-21  Richard Guenther  <rguenther@suse.de>
7637
7638         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
7639         for bool for C++.
7640
7641 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
7642
7643         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
7644         (qhs_extenddi_cstr): Likewise.
7645         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
7646         them for the source operand.
7647
7648 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
7649
7650         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
7651         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
7652         (ix86_split_ashr): Ditto.
7653         (ix86_split_lshr): Ditto.
7654
7655 2010-09-21  Richard Guenther  <rguenther@suse.de>
7656
7657         PR tree-optimization/45580
7658         * tree-ssa-propagate.c (substitute_and_fold): Always replace
7659         regular uses.
7660         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
7661         virtuals fold the call into a regular indirect one.
7662
7663 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7664
7665         PR rtl-optimization/42775
7666         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
7667         scheduling is enabled.
7668
7669 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7670
7671         PR rtl-optimization/45728
7672         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
7673         gen_lowpart_common first and if that fails, force_reg first
7674         before calling gen_lowpart.
7675
7676         PR middle-end/45678
7677         * cfgexpand.c (expand_one_stack_var_at): Use
7678         crtl->max_used_stack_slot_alignment as max_align, instead
7679         of maximum of that and PREFERRED_STACK_BOUNDARY.
7680         Don't call update_stack_alignment.
7681
7682 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7683
7684         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
7685         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
7686         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
7687         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
7688         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
7689         (build_nonstandard_integer_type): Likewise.
7690         (build_range_type_1): New function, built from...
7691         (build_range_type): ...this.  Call build_range_type_1.
7692         (build_nonshared_range_type): New function.
7693         (build_array_type_1): New function, built from...
7694         (build_array_type: ...this.  Call build_array_type_1.
7695         (build_nonshared_array_type): New function.
7696         * tree.h (build_nonshared_range_type): Declare.
7697         (build_nonshared_array_type): Likewise.
7698
7699 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
7700
7701         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
7702         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7703         (arm_class_likely_spilled_p): New function.
7704
7705 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
7706
7707         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
7708         indirect functions.
7709         (ix86_split_ashl): Ditto.
7710         (ix86_split_ashr): Ditto.
7711         (ix86_split_lshr): Ditto.
7712         (ix86_adjust_counter): Ditto.
7713
7714 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7715
7716         * c-family/c-common.h (constant_string_class): Documented with
7717         comment identical to the one already in c-common.c.
7718
7719 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7720
7721         * dwarf2out.c (any_cfis_emitted): New static variable.
7722         (add_fde_cfi): Set it.
7723         (dwarf2out_frame_debug): Clear it before processing,
7724         if it is set afterwards, flush any queued reg saves.
7725
7726         PR debug/45124
7727         * dwarf2out.c (add_accessibility_attribute): Assume
7728         DW_ACCESS_private as the default for dwarf_version > 2
7729         and DW_TAG_class_type parent.
7730         (gen_inheritance_die): Assume DW_ACCESS_public as the default
7731         for dwarf_version > 2 and parent other than DW_TAG_class_type.
7732
7733 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
7734
7735         PR target/45726
7736         * arm.md (arm_movt): Only enable on machines with MOVT.
7737
7738 2010-09-20  Jie Zhang  <jie@codesourcery.com>
7739
7740         * config/arm/arm.c (arm_address_offset_is_imm): New.
7741         (arm_early_store_addr_dep): New.
7742         (arm_early_load_addr_dep): New.
7743         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
7744         (arm_early_load_addr_dep): Declare.
7745         (arm_address_offset_is_imm): Declare.
7746         * config/arm/cortex-m4.md: New file.
7747         * config/arm/cortex-m4-fpu.md: New file.
7748         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
7749         (attr generic_sched): Exclude cortexm4.
7750         (attr generic_vfp): Exclude cortexm4.
7751
7752 2010-09-20  Richard Guenther  <rguenther@suse.de>
7753
7754         PR middle-end/45704
7755         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
7756
7757 2010-09-20  Jan Hubicka  <jh@suse.cz>
7758
7759         PR tree-optimize/45605
7760         * cgraph.h (const_value_known_p): Declare.
7761         (varpool_decide_const_value_known): Remove.
7762         * tree-ssa-ccp.c (get_base_constructor): Use it.
7763         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
7764         * expr.c (string_constant): Likewise.
7765         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
7766         * ipa.c (ipa_discover_readonly_nonaddressable_var,
7767         function_and_variable_visibility): Likewise.
7768         * gimplify.c (gimplify_call_expr): Likewise.
7769         * gimple-fold.c (get_symbol_constant_value): Likewise.
7770         * varpool.c (varpool_decide_const_value_known): Replace by...
7771         (const_value_known_p): ... this one; handle other kinds of DECLs
7772         too and work for automatic vars.
7773         (varpool_finalize_decl): Use const_value_known_p.
7774
7775 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
7776
7777         PR target/45726
7778         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
7779
7780 2010-09-20  Richard Guenther  <rguenther@suse.de>
7781
7782         PR tree-optimization/45705
7783         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
7784
7785 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7786
7787         PR rtl-optimization/45695
7788         * combine.c (try_combine): When splitting a two set pattern,
7789         make sure the pattern which will be put into i2 doesn't use REGs
7790         or MEMs set by insns in between i2 and i3.
7791
7792 2010-09-19  Jan Hubicka  <jh@suse.cz>
7793
7794         PR lto/44246
7795         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
7796         processing same node twice.
7797
7798 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
7799
7800         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
7801         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7802         (bfin_class_likely_spilled_p): New function
7803
7804 2010-09-19  Ira Rosen  <irar@il.ibm.com>
7805
7806         PR tree-optimization/45714
7807         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
7808         created in vectorizable_call instead of the original statement in
7809         def stmt updates.
7810
7811 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
7812
7813         * config/i386/i386-protos.h (split_double_mode): New prototype.
7814         (split_di, split_ti): Remove prototypes.
7815         * config/i386/i386.c (split_double_mode): New function.
7816         (split_di, split_ti): Remove.
7817         (ix86_expand_branch): Use split_double_mode.
7818         (ix86_split_to_parts): Ditto.
7819         (ix86_split_ashl): Ditto.
7820         (ix86_split_ashr): Ditto.
7821         (ix86_split_lshr): Ditto.
7822         (ix86_force_to_memory): Ditto.
7823         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
7824
7825 2010-09-18  Jan Hubicka  <jh@suse.cz>
7826
7827         PR tree-optimization/45453
7828         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
7829         virtual functions are reachable.
7830         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
7831         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7832         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
7833         when modifying function.
7834
7835 2010-09-18  Jan Hubicka  <jh@suse.cz>
7836
7837         PR tree-optimization/45605
7838         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
7839         * gimple-fold.c (static_object_in_other_unit_p): New function.
7840         (canonicalize_constructor_val): Use it.
7841         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
7842         returning NULL.
7843         (gimple_fold_obj_type_ref_known_binfo): Use
7844         static_object_in_other_unit_p.
7845
7846 2010-09-18  Richard Guenther  <rguenther@suse.de>
7847
7848         PR tree-optimization/45709
7849         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
7850         insertions until after all PHI nodes of the block are processed.
7851
7852 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
7853
7854         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
7855
7856 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
7857
7858         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
7859
7860 2010-09-18  Richard Guenther  <rguenther@suse.de>
7861
7862         PR tree-optimization/45709
7863         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
7864
7865 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7866
7867         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
7868         (dot_deps_stmt): Same.
7869         * graphite-poly.c (dot_lst): Same.
7870         * graphite-scop-detection.c (dot_all_scops): Same.
7871         (dot_scop): Same.
7872
7873 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7874
7875         Revert:
7876         2009-12-16  Ben Elliston  <bje@au.ibm.com>
7877
7878         * tree-data-ref.c (dot_rdg_1): Added back.
7879         (dot_rdg): Same.  Added "#if 0" around system call.
7880
7881 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7882             Richard Henderson  <rth@redhat.com>
7883
7884         * config/i386/i386.c (initial_ix86_tune_features): Add
7885         X86_TUNE_PAD_SHORT_FUNCTION.
7886         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
7887         (ix86_count_insn): New.
7888         (ix86_pad_short_function): Likewise.
7889         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
7890
7891         * config/i386/i386.h (ix86_tune_indices): Add
7892         X86_TUNE_PAD_SHORT_FUNCTION.
7893         (TARGET_PAD_SHORT_FUNCTION): New.
7894
7895         * config/i386/i386.md (UNSPEC_NOPS): New.
7896         (nops): Likewise.
7897
7898 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7899
7900         PR middle-end/45234
7901         * calls.c (expand_call): Make sure that all variable sized
7902         adjustments are multiple of preferred stack boundary after
7903         stack alignment.
7904
7905 2010-09-17  DJ Delorie  <dj@redhat.com>
7906
7907         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
7908         passed an invalid value, print an error instead of ICEing.
7909         (valid_psw_flag): New.
7910         (rx_expand_builtin): Call it for setpsw/clrpsw.
7911         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
7912
7913         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
7914         (bitclr_in_memory): Likewise.
7915         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
7916
7917 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7918
7919         PR middle-end/45678
7920         * cfgexpand.c (update_stack_alignment): New.
7921         (get_decl_align_unit): Use it.
7922         (expand_one_stack_var_at): Call update_stack_alignment.
7923
7924 2010-09-17  Richard Guenther  <rguenther@suse.de>
7925
7926         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
7927         Properly copy the read string.
7928
7929 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
7930
7931         * doc/options.texi (Variable): Document.
7932         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
7933         generate target_flags declarations explicitly.  Don't define
7934         VarExists variables for the driver.
7935         * common.opt (target_flags): New Variable record.
7936         (flag_dump_unnumbered, flag_dump_unnumbered_links,
7937         flag_var_tracking, flag_var_tracking_assignments,
7938         flag_var_tracking_assignments_toggle): Don't mark variables with
7939         VarExists.
7940         * config/i386/i386.c (ix86_isa_flags): Don't define here.
7941         * config/i386/i386.opt (ix86_isa_flags): Define here.
7942         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
7943         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
7944         VarExists.
7945         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
7946         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
7947         Only define for generator programs.
7948         * rtlanal.c (target_flags): Remove.
7949         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
7950         flag_var_tracking_assignments_toggle): Remove.
7951
7952 2010-09-17  Michael Matz  <matz@suse.de>
7953
7954         PR tree-optimization/43432
7955         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7956         Accept backwards consecutive accesses.
7957         (vect_create_data_ref_ptr): If step is negative generate
7958         decreasing IVs.
7959         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7960         (perm_mask_for_reverse, reverse_vec_elements): New functions.
7961         (vectorizable_load): Handle loads with negative steps when easily
7962         possible.
7963
7964 2010-09-03  Jan Hubicka  <jh@suse.cz>
7965
7966         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7967
7968 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
7969
7970         * config/v850/v850.c (v850_function_value_regno_p): Make static.
7971         Adjust comments. Declare.
7972         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7973         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7974
7975 2010-09-17  Richard Guenther  <rguenther@suse.de>
7976
7977         * common.opt (combine): Remove.
7978         * gcc.c (default_compilers): Remove specs testing combine.
7979         The C compilers no longer can combine.
7980         (option_map): Remove -combine.
7981         (display_help): Remove -combine.
7982         (driver_handle_option): Remove OPT_combine handling.
7983         (compile_input_file_p): Remove.
7984         (do_spec): Remove code concerning combine.
7985         (main): Likewise.
7986         * doc/invoke.texi: Remove traces of -combine.
7987         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7988
7989 2010-09-17  Richard Guenther  <rguenther@suse.de>
7990
7991         PR middle-end/45678
7992         * builtins.c (fold_builtin_memory_op): Always properly adjust
7993         alignment of memory accesses.
7994
7995 2010-09-16  Jan Hubicka  <jh@suse.cz>
7996
7997         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7998         processing clone.
7999
8000 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
8001
8002         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
8003
8004         * config/i386/i386.c (predict_jump): Add prototype.
8005         (flag_opts): Add -m8bit-idiv.
8006         (ix86_split_idivmod): New.
8007
8008         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
8009         Add 2 splitters for SI/DI mode divide.
8010         (divmod<mode>4_1): New pattern.
8011         (udivmod<mode>4_1): Likewise.
8012         (testdi_ccno_1): Likewise.
8013
8014         * config/i386/i386.opt (m8bit-idiv): New.
8015
8016         * doc/invoke.texi: Document -m8bit-idiv.
8017
8018 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
8019
8020         PR bootstrap/45680
8021         * config/i386/i386.c (min_insn_size): Moved out of the
8022         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
8023
8024 2010-09-16  Jan Hubicka  <jh@suse.cz>
8025
8026         * lto-cgraph.c (lto_output_node): Fix handling of clones.
8027         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
8028         unreachable clones with reachable clones.
8029         * tree-inline.c (copy_bb): Fix sanity checking when producing
8030         unreachable clone.
8031
8032 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
8033
8034         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
8035         (TARGET_MEMORY_MOVE_COST): Define.
8036         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
8037
8038 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
8039
8040         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
8041         maybe_tidy_empty_bb.
8042
8043         Revert:
8044         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
8045         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8046
8047 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
8048
8049         * target.def (target_option.optimization): New hook.
8050         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
8051         TARGET_OPTION_OPTIMIZATION hook.
8052         * doc/tm.texi: Regenerate.
8053         * hooks.c (hook_void_int_int): New.
8054         * hooks.h (hook_void_int_int): Declare.
8055         * opts.c: Don't include tm_p.h.
8056         (decode_options): Use targetm.target_option.optimization instead
8057         of OPTIMIZATION_OPTIONS.
8058         * system.h (OPTIMIZATION_OPTIONS): Poison.
8059         * config/arm/arm-protos.h (arm_optimization_options): Remove.
8060         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
8061         (arm_optimization_options): Rename to arm_option_optimization.
8062         Make static.
8063         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
8064         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
8065         (cris_option_optimization): New.
8066         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
8067         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
8068         (crx_option_optimization): New.
8069         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
8070         * config/frv/frv-protos.h (frv_optimization_options): Remove.
8071         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
8072         (frv_optimization_options): Rename to frv_option_optimization.
8073         Make static.
8074         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
8075         * config/h8300/h8300.c (h8300_option_optimization): New.
8076         (TARGET_OPTION_OPTIMIZATION): Define.
8077         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
8078         * config/i386/i386-protos.h (optimization_options): Remove.
8079         * config/i386/i386.c (optimization_options): Rename to
8080         ix86_option_optimization.  Make static.
8081         (TARGET_OPTION_OPTIMIZATION): Define.
8082         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
8083         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
8084         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
8085         (ia64_optimization_options): Rename to ia64_option_optimization.
8086         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
8087         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
8088         commented-out definition.
8089         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
8090         instead of OPTIMIZATION_OPTIONS.
8091         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
8092         (m32r_option_optimization): New.
8093         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
8094         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
8095         Remove.
8096         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
8097         (mcore_option_optimization): New.
8098         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
8099         * config/mep/mep-protos.h (mep_optimization_options): Remove.
8100         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
8101         (mep_optimization_options): Rename to mep_option_optimization.
8102         Make static.  Take unused level and size parameters.
8103         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
8104         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
8105         (mmix_option_optimization): New.
8106         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
8107         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
8108         (pdp11_option_optimization): New.
8109         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
8110         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
8111         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
8112         (optimization_options): Rename to rs6000_option_optimization.
8113         Make static.
8114         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
8115         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
8116         * config/rx/rx.c (rx_set_optimization_options): Rename to
8117         rx_option_optimization.  Make static.  Take unused level and size
8118         parameters.
8119         (TARGET_OPTION_OPTIMIZATION): Define.
8120         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
8121         * config/s390/s390-protos.h (optimization_options): Remove.
8122         * config/s390/s390.c (optimization_options): Rename to
8123         s390_option_optimization.  Make static.  Don't mark size parameter
8124         unused.
8125         (TARGET_OPTION_OPTIMIZATION): Define.
8126         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
8127         * config/sh/sh-protos.h (sh_optimization_options): Remove.
8128         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
8129         (sh_optimization_options): Rename to sh_option_optimization.  Make
8130         static.  Don't mark parameters unused.
8131         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
8132         * config/spu/spu-protos.h (spu_optimization_options): Remove.
8133         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
8134         (spu_optimization_options): Rename to spu_option_optimization.
8135         Make static.
8136         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
8137         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
8138         (v850_option_optimization): New.
8139         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
8140         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
8141         (xtensa_option_optimization): New.
8142         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
8143
8144 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
8145
8146         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
8147         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
8148         * doc/tm.texi: Regenerate.
8149         * system.h (OVERRIDE_OPTIONS): Poison.
8150         * target.def (override): Default to hook_void_void.
8151         * targhooks.c (default_target_option_override): Remove.
8152         * genmodes.c, machmode.def: Update comments mentioning
8153         OVERRIDE_OPTIONS.
8154         * config/alpha/alpha-modes.def: Update comment mentioning
8155         alpha_override_options.
8156         * config/alpha/alpha-protos.h (override_options): Remove.
8157         * config/alpha/alpha.c (override_options): Rename to
8158         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
8159         (TARGET_OPTION_OVERRIDE): Define.
8160         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
8161         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
8162         of OVERRIDE_OPTIONS.
8163         * config/arc/arc-protos.h (arc_init): Remove.
8164         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
8165         (arc_init): Rename to arc_option_override.  Make static.
8166         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
8167         (OVERRIDE_OPTIONS): Remove.
8168         * config/arm/arm-protos.h (arm_override_options): Remove.
8169         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
8170         (arm_override_options): Rename to arm_option_override.  Make
8171         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
8172         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
8173         * config/arm/arm.md: Update comment referring to arm_override_options.
8174         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
8175         instead of OVERRIDE_OPTIONS.
8176         * config/avr/avr-protos.h (avr_override_options): Remove.
8177         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
8178         (avr_override_options): Rename to avr_option_override.  Make static.
8179         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
8180         * config/bfin/bfin-protos.h (override_options): Remove (twice).
8181         * config/bfin/bfin.c (override_options): Rename to
8182         bfin_option_override.  Make static.
8183         (TARGET_OPTION_OVERRIDE): Define.
8184         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
8185         * config/cris/cris-protos.h (cris_override_options): Remove.
8186         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
8187         (cris_override_options): Rename to cris_option_override.  Make static.
8188         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
8189         * config/frv/frv-protos.h (frv_override_options): Remove.
8190         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
8191         (frv_override_options): Rename to frv_option_override.  Make static.
8192         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
8193         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
8194         * config/h8300/h8300.c (h8300_init_once): Rename to
8195         h8300_option_override.  Make static.
8196         (TARGET_OPTION_OVERRIDE): Define.
8197         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
8198         * config/i386/i386-protos.h (override_options): Remove.
8199         * config/i386/i386.c (override_options): Rename to
8200         ix86_option_override_internal.  Make static.  Comments referring
8201         to this function and callers changed.
8202         (ix86_option_override): New.
8203         (TARGET_OPTION_OVERRIDE): Define.
8204         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
8205         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
8206         * config/ia64/ia64.c (ia64_file_start): Update comment referring
8207         to ia64_override_options.
8208         * config/iq2000/iq2000-protos.h (override_options): Remove.
8209         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
8210         (override_options): Rename to iq2000_option_override.  Make static.
8211         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
8212         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
8213         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
8214         (lm32_override_options): Rename to lm32_option_override.  Make static.
8215         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
8216         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
8217         (m32r_option_override): New.
8218         (m32r_init): Update comment.
8219         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
8220         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
8221         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
8222         (m68hc11_override_options): Rename to m68hc11_option_override.
8223         Make static.  Return void.
8224         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
8225         * config/m68k/m68k-protos.h (override_options): Remove.
8226         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
8227         (override_options): Rename to m68k_option_override.  Make static.
8228         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
8229         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
8230         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
8231         (mcore_override_options): Rename to mcore_option_override.  Make
8232         static.
8233         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
8234         * config/mep/mep-protos.h (mep_override_options): Remove.
8235         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
8236         (mep_override_options): Rename to mep_option_override.  Make static.
8237         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
8238         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
8239         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
8240         (mmix_override_options): Rename to mmix_option_override.  Make static.
8241         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
8242         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
8243         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
8244         (mn10300_override_options): Rename to mn10300_option_override.
8245         Make static.
8246         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
8247         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
8248         * config/moxie/moxie.c (moxie_override_options): Rename to
8249         moxie_option_override.  Make static.
8250         (TARGET_OPTION_OVERRIDE): Define.
8251         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
8252         * config/picochip/picochip-protos.h (picochip_override_options):
8253         Remove.  Update comment referring to picochip_override_options.
8254         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
8255         (picochip_override_options): Rename to picochip_option_override.
8256         Make static.  Update comment and definition of
8257         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
8258         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
8259         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8260         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8261         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8262         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8263         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8264         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
8265         instead of OVERRIDE_OPTIONS.
8266         * config/rs6000/rs6000-modes.def: Update comment referring to
8267         rs6000_override_options.
8268         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
8269         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
8270         (rs6000_override_options): Rename to
8271         rs6000_option_override_internal.  Make static.  Commented
8272         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
8273         (rs6000_option_override): New.
8274         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
8275         instead of OVERRIDE_OPTIONS.
8276         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
8277         * config/s390/s390-protos.h (override_options): Remove.
8278         * config/s390/s390.c (override_options): Rename to
8279         s390_option_override.  Make static.
8280         (TARGET_OPTION_OVERRIDE): Define.
8281         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
8282         * config/score/score-protos.h (score_override_options): Remove.
8283         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
8284         (score_override_options): Rename to score_option_override.  Make
8285         static.
8286         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
8287         Update comment referring to override_options.
8288         * config/score/score3.c (score3_override_options): Rename to
8289         score3_option_override.
8290         * config/score/score3.h (score3_override_options): Rename to
8291         score3_option_override.
8292         * config/score/score7.c (score7_override_options): Rename to
8293         score7_option_override.
8294         * config/score/score7.h (score7_override_options): Rename to
8295         score7_option_override.
8296         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
8297         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
8298         (sparc_override_options): Rename to sparc_option_override.  Make
8299         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
8300         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
8301         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
8302         instead of OVERRIDE_OPTIONS.
8303         * config/spu/spu-protos.h (spu_override_options): Remove.
8304         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
8305         (spu_override_options): Rename to spu_option_override.  Make
8306         static.
8307         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
8308         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
8309         OVERRIDE_OPTIONS.
8310         * config/vax/vax-protos.h (override_options): Remove.
8311         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
8312         (override_options): Rename to vax_option_override.  Make static.
8313         Call SUBTARGET_OVERRIDE_OPTIONS.
8314         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
8315         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
8316         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
8317         * config/xtensa/xtensa-protos.h (override_options): Remove.
8318         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
8319         (override_options): Rename to xtensa_option_override.  Make static.
8320         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
8321
8322 2010-09-16  Richard Guenther  <rguenther@suse.de>
8323
8324         PR tree-optimization/45623
8325         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
8326         (get_constraint_for_component_ref): If computing a constraint
8327         for the rhs handle type punning through unions.
8328         (get_constraint_for_address_of): Adjust.
8329         (get_constraint_for_1): Likewise.
8330         (get_constraint_for): Likewise.
8331         (get_constraint_for_rhs): New function.
8332         (do_structure_copy): Adjust.
8333         (make_constraint_to): Likewise.
8334         (handle_const_call): Likewise.
8335         (find_func_aliases): Likewise.
8336         (process_ipa_clobber): Likewise.
8337         (create_variable_info_for): Likewise.
8338
8339 2010-09-16  Ira Rosen  <irar@il.ibm.com>
8340
8341         * tree-vectorizer.c: Fix documentation.
8342         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
8343         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
8344         is_pattern_stmt_p, is_loop_header_bb_p,
8345         stmt_vinfo_set_inside_of_loop_cost,
8346         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
8347         known_alignment_for_access_p): Likewise.
8348         * tree-vect-loop.c: Fix documentation.
8349         (vect_get_cost): Start function name from new line.
8350         * tree-vect-data-refs.c: Fix documentation.
8351         * tree-vect_stmts.c: Likewise.
8352         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
8353         (vectorizable_store): Free vec_oprnds if allocated.
8354         (vectorizable_condition): Initialize several variables to avoid
8355         warnings.
8356         * tree-vect-slp.c: Fix documentation.
8357
8358 2010-09-16  Richard Guenther  <rguenther@suse.de>
8359
8360         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
8361         is TS_TRANSLATION_UNIT_DECL.
8362         (initialize_tree_contains_struct): Adjust.
8363         (all_translation_units): New global vector.
8364         (build_translation_unit_decl): New function.
8365         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
8366         (struct tree_translation_unit_decl): New.
8367         (all_translation_units): Declare.
8368         (union tree_node): Add translation_unit_decl member.
8369         (build_translation_unit_decl): Declare.
8370         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
8371         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
8372         New function.
8373         (pack_value_fields): Call it.
8374         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
8375         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
8376         (lto_output_tree_pointers): Call it.
8377         * lto-streamer-in.c (lto_input_tree_ref): Handle references
8378         to TRANSLATION_UNIT_DECL.
8379         (unpack_ts_translation_unit_decl_value_fields): New function.
8380         (unpack_value_fields): Call it.
8381         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
8382         (lto_input_tree_pointers): Call it.
8383         * lto-streamer.c (check_handled_ts_structures): Adjust.
8384         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
8385         * c-decl.c (all_translation_units): Remove.
8386         (pop_scope): Use build_translation_unit_decl.
8387         (collect_all_refs): Adjust.
8388         (for_each_global_decl): Likewise.
8389         (c_write_global_declarations): Likewise.
8390
8391 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
8392
8393         PR bootstrap/45686
8394         * fold-const.c (fold_checksum_tree): Change slot from const void **
8395         to void **, use CONST_CAST_TREE to store into *slot.
8396
8397 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
8398
8399         * config/i386/i386.md: Remove unneeded empty conditions and
8400         preparation statements from expanders.
8401         * config/i386/mmx.md: Ditto.
8402         * config/i386/sse.md: Ditto.
8403
8404 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
8405
8406         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
8407
8408 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8409
8410         PR rtl-optimization/45593
8411         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
8412         insns that were in delay slots as stand-alone insns.
8413
8414 2010-09-15  Ian Lance Taylor  <iant@google.com>
8415
8416         * incpath.c (remove_duplicates): If name is not a directory, issue
8417         a warning rather than an error.
8418
8419 2010-09-15  Martin Jambor  <mjambor@suse.cz>
8420
8421         PR middle-end/45644
8422         * tree-sra.c (create_access): Check for bit-fields directly.
8423
8424 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
8425
8426         PR tree-optimization/45633
8427         * tree-cfg.c (verify_gimple_assign_binary): Allow
8428         MINUS_EXPR with lhs and rhs1 pointer vector and
8429         rhs2 sizetype vector.
8430         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
8431         or vector pointer use TER to optimize pointer subtraction.
8432
8433 2010-09-15  Jie Zhang  <jie@codesourcery.com>
8434
8435         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
8436         fcmpd to fcmps.
8437
8438 2010-09-15  Ian Lance Taylor  <iant@google.com>
8439
8440         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
8441
8442 2010-09-15  Ian Lance Taylor  <iant@google.com>
8443
8444         * function.c (get_arg_pointer_save_area): Set
8445         arg_pointer_save_area_init to true.
8446
8447 2010-09-15  Martin Jambor  <mjambor@suse.cz>
8448
8449         * tree-sra.c (generate_subtree_copies): Updated comment.
8450         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
8451         obtained from the statement iterator instead.
8452         (load_assign_lhs_subreplacements): Removed parameters lhs and
8453         right_offset, which is obtained from top_racc instead.  Parameter lacc
8454         is now expected to be the root of the processed tree rather than root's
8455         first child.  Updated all callers.
8456
8457 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
8458
8459         * config/pdp11/pdp11.c (register_move_cost): Rename to
8460         pdp11_register_move_cost.
8461         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
8462         pdp11_register_move_cost.
8463         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
8464         pdp11_register_move_cost instead of register_move_cost.
8465
8466 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
8467
8468         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
8469         pattern for vmovn. Expansion in case of non
8470         -mvectorize-with-neon-quad.
8471         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
8472         non- -mvectorize-with-neon-quad case.
8473         (move_lo_quad_<mode>): New expansion to vmov into low part.
8474         (move_hi_quad_<mode>): New expansion to vmov into high part.
8475         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
8476         (move_lo_quad_v4sf): Likewise.
8477         (move_lo_quad_v8hi): Likewise.
8478         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
8479         low part.
8480         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
8481         high part.
8482         * config/arm/iterators.md (ANY128): New mode iterator.
8483         (V_narrow_pack): New mode attribute.
8484         (V_HALF): Add attribute.
8485         (V_DOUBLE): Add attribute.
8486         (V_mode_nunits): Add attribute.
8487
8488 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8489
8490         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
8491         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
8492
8493 2010-09-15  Olivier Hainque  <hainque@adacore.com>
8494             Jose Ruiz  <ruiz@adacore.com>
8495
8496         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
8497         * config/alpha/osf5-unwind.h: New file.
8498
8499 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8500
8501         PR bootstrap/45672
8502         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
8503         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
8504         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
8505
8506 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8507
8508         * c-lang.h (struct lang_type): Add variable_size GTY option.
8509
8510 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8511
8512         PR bootstrap/45672
8513         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
8514
8515 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8516
8517         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
8518         result isn't used in memory address.
8519
8520 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8521
8522         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
8523         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
8524         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
8525         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
8526         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
8527         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
8528
8529         * target.def: Add units_per_simd_word to vectorize.
8530
8531         * targhooks.c (default_units_per_simd_word): New.
8532         * targhooks.h (default_units_per_simd_word): Likewise.
8533         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
8534         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8535         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
8536         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8537         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
8538         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8539         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
8540         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8541
8542         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
8543         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
8544
8545         * tree-vect-stmts.c: Don't include "tm_p.h".
8546         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
8547         with targetm.vectorize.units_per_simd_word.
8548
8549         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
8550
8551         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
8552
8553         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
8554         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
8555
8556         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
8557         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
8558
8559         * doc/tm.texi: Regenerated.
8560
8561 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8562
8563         * tree-vect-stmts.c: Include "tm_p.h".
8564
8565         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
8566         out of RTX_CODE.
8567
8568 2010-09-14  Martin Jambor  <mjambor@suse.cz>
8569
8570         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
8571         location of generated statement.  Changed all callers.
8572         (build_ref_for_model): New parameter loc which used to set location of
8573         all generated expressions.  Changed all callers.
8574         (generate_subtree_copies): Likewise.
8575         (init_subtree_with_zero): Likewise.
8576         (sra_modify_expr): Set locations of all generated statements and
8577         expressions to the location the original statement.
8578         (handle_unscalarized_data_in_subtree): Likewise.
8579         (load_assign_lhs_subreplacements): Likewise.
8580         (sra_modify_constructor_assign): Likewise.
8581         (sra_modify_assign): Likewise.
8582
8583 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
8584
8585         PR target/45277
8586         PR target/45363
8587         PR target/45407
8588         * doc/install.texi (sparc*-*-*): New section.
8589         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
8590
8591 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
8592
8593         PR middle-end/45567
8594         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
8595         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
8596         (expand_builtin): Adjust caller.
8597         (expand_builtin_unop): Only use subtarget if it has the right mode.
8598
8599 2010-09-14  Tristan Gingold  <gingold@adacore.com>
8600
8601         * configure.ac (plugins): Fix typos.
8602         * configure: Regenerate.
8603
8604 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
8605
8606         PR debug/45660
8607         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
8608         gen_type_die for function/method return type.
8609
8610 2010-09-14  Ira Rosen  <irar@il.ibm.com>
8611
8612         PR tree-optimization/45470
8613         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8614         can throw an exception.
8615         * tree-vect-stmts.c (vectorizable_call): Likewise.
8616
8617 2010-09-14  DJ Delorie  <dj@redhat.com>
8618
8619         PR target/44749
8620         * config/mep/mep-protos.h (mep_save_register_info,
8621         mep_reinit_regs, mep_init_regs): Declare.
8622
8623         * config/mep/mep.c: Move all target definitions to the end of the
8624         file to avoid the need for duplicate declarations.
8625         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
8626         (mep_reorg_erepeat): Remove unused variables.
8627         (mep_expand_builtin): Likewise.
8628
8629         * config/mep/mep-pragma.c: Don't include rtl.h.
8630         (INVALID_REGNUM): New.
8631         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
8632         functions.
8633         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
8634         Avoid enum/integer math.
8635
8636 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
8637
8638         PR target/44749
8639         * config/mep/t-mep (GTM_H): Add insn-constants.h.
8640         * config/mep/mep.c (mep_conditional_register_usage): Take no
8641         parameters.
8642         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
8643         prototype.
8644         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
8645         call to mep_conditional_register_usage.
8646
8647 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
8648
8649         PR debug/43937
8650         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
8651         the DECL as well.
8652
8653 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
8654
8655         PR rtl-optimization/45617
8656         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
8657         even if low N bits of X aren't known to be zero.
8658
8659 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8660
8661         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
8662
8663         * config/i386/i386.c (initial_ix86_tune_features): Add
8664         X86_TUNE_VECTORIZE_DOUBLE.
8665         (ix86_units_per_simd_word): New.
8666
8667         * config/i386/i386.h (ix86_tune_indices): Add
8668         X86_TUNE_VECTORIZE_DOUBLE.
8669         (TARGET_VECTORIZE_DOUBLE): New.
8670         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
8671
8672 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
8673
8674         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
8675         (new_temp_expr_table): Allocate call_cnt vector.
8676         (free_temp_expr_table): Free it.
8677         (process_replaceable): Add call_cnt parm and set in vector.
8678         (find_replaceable_in_bb): Skip replacement if def/use span a call.
8679         (debug_ter): Dump call_cnt value, remove stderr uses.
8680
8681 2010-09-13  Jan Hubicka  <jh@suse.cz>
8682
8683         * tree.c (build_zero_cst): New.
8684         * tree.h (build_zero_cst): Declare.
8685         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
8686         (get_base_constructor): Break out from ...
8687         (fold_const_aggregate_ref): Here; handle empty constructors.
8688
8689 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8690
8691         * config/arm/arm.md: (define_attr "conds"): Update comment.
8692         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
8693         conds attribute to clob.
8694         (arm_sync_compare_and_swapsi): Likewise.
8695         (arm_sync_compare_and_swap<mode>): Likewise.
8696         (arm_sync_lock_test_and_setsi): Likewise.
8697         (arm_sync_lock_test_and_set<mode>): Likewise.
8698         (arm_sync_new_<sync_optab>si): Likewise.
8699         (arm_sync_new_nandsi): Likewise.
8700         (arm_sync_new_<sync_optab><mode>): Likewise.
8701         (arm_sync_new_nand<mode>): Likewise.
8702         (arm_sync_old_<sync_optab>si): Likewise.
8703         (arm_sync_old_nandsi): Likewise.
8704         (arm_sync_old_<sync_optab><mode>): Likewise.
8705         (arm_sync_old_nand<mode>): Likewise.
8706
8707 2010-09-13  Olivier Hainque  <hainque@adacore.com>
8708
8709         * fwprop.c (forward_propagate_and_simplify): Only attach a
8710         REG_EQUAL note to an insn if the destination is a register.
8711         * gcse.c (try_replace_reg): Likewise.
8712
8713 2010-09-13  Richard Guenther  <rguenther@suse.de>
8714
8715         PR tree-optimization/45611
8716         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
8717         (copy_ref_info): Likewise.
8718
8719 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
8720
8721         PR debug/45604
8722         PR debug/45419
8723         PR debug/45408
8724         * tree-pretty-print.c (dump_generic_node): Disregard top-level
8725         types of MEM_REF pointer types to the same type.
8726
8727 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
8728
8729         PR rtl-optimization/41087
8730         * ifcvt.c (noce_get_condition): Don't allow conditions with
8731         side-effects.
8732
8733 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
8734
8735         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8736         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
8737         * config/frv/frv.c (frv_register_move_cost): Make static. Change
8738         arguments type to reg_class_t. Add mode argument.
8739         (frv_memory_move_cost): New.
8740         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
8741
8742 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
8743
8744         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
8745         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
8746
8747 2010-09-10  Jan Hubicka  <jh@suse.cz>
8748
8749         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
8750
8751 2010-09-10  Richard Guenther  <rguenther@suse.de>
8752
8753         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
8754         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
8755         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
8756         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
8757         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
8758
8759 2010-09-10  Richard Guenther  <rguenther@suse.de>
8760
8761         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
8762         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
8763         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
8764         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
8765
8766 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8767
8768         PR middle-end/45634
8769         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
8770         of string folding is of integral type.
8771
8772 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
8773
8774         * doc/invoke.texi (-x): Fix typo.
8775
8776 2010-09-10  Richard Guenther  <rguenther@suse.de>
8777
8778         PR debug/44115
8779         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
8780         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8781         Output DECL_DEBUG_EXPR.
8782         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8783         Input DECL_DEBUG_EXPR.
8784
8785 2010-09-10  Richard Guenther  <rguenther@suse.de>
8786
8787         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
8788         (build_index_type): Implement in terms of build_range_type.
8789         (build_range_type): Do not allow NULL_TREE type, improve
8790         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
8791         if we didn't hash.
8792         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
8793         create a distinct copy of the type.
8794
8795 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
8796
8797         * configure: Regenerated.
8798         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
8799
8800 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8801
8802         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
8803         * config/arm/cortex-a9-neon.md: New and partially generated.
8804         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
8805
8806 2010-09-10  Richard Guenther  <rguenther@suse.de>
8807
8808         * tree.h (build_index_2_type): Remove.
8809         * tree.c (build_index_2_type): Remove.
8810
8811 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
8812
8813         PR bootstrap/45630
8814         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
8815         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
8816         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
8817
8818 2010-09-10  Martin Jambor  <mjambor@suse.cz>
8819
8820         PR tree-optimization/44972
8821         * tree-sra.c: Include toplev.h.
8822         (build_ref_for_offset): Entirely reimplemented.
8823         (build_ref_for_model): New function.
8824         (build_user_friendly_ref_for_offset): New function.
8825         (analyze_access_subtree): Removed build_ref_for_offset check.
8826         (propagate_subaccesses_across_link): Likewise.
8827         (create_artificial_child_access): Use
8828         build_user_friendly_ref_for_offset.
8829         (propagate_subaccesses_across_link): Likewise.
8830         (ref_expr_for_all_replacements_p): Removed.
8831         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
8832         (sra_modify_expr): Use build_ref_for_model.
8833         (load_assign_lhs_subreplacements): Likewise.
8834         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
8835         checks for return values of build_ref_for_offset.
8836         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
8837         build_ref_for_offset.
8838         * ipa-prop.h: Include gimple.h
8839         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
8840         (ipa_analyze_indirect_call_uses): Update comment.
8841         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
8842         (IPA_PROP_H): Likewise.
8843
8844 2010-09-10  Martin Jambor  <mjambor@suse.cz>
8845
8846         PR tree-optimization/44972
8847         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
8848         calling build_ref_for_offset.
8849
8850 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8851
8852         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
8853         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
8854         * config/arm/arm-tune.md: Regenerate.
8855         * doc/invoke.texi (ARM Options): Document it.
8856
8857 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
8858
8859         * config/i386/i386.c: Include sched-int.h.
8860         (TARGET_SCHED_DISPATCH): Defined.
8861         (TARGET_SCHED_DISPATCH_DO): Defined.
8862         (DISPATCH_WINDOW_SIZE): Defined.
8863         (MAX_DISPATCH_WINDOWS): Defined.
8864         (MAX_INSN): Defined.
8865         (MAX_IMM): Defined.
8866         (MAX_IMM_SIZE): Defined.
8867         (MAX_IMM_32): Defined.
8868         (MAX_IMM_64): Defined.
8869         (MAX_LOAD): Defined.
8870         (MAX_STORE): Defined.
8871         (BIG): Defined.
8872         (dispatch_group): New.
8873         (num_allowable_groups): New.
8874         (group_name): New.
8875         (sched_insn_info_s): New.
8876         (dispatch_windows_s): New.
8877         (imm_info_s): New.
8878         (dispatch_window_list): New.
8879         (dispatch_window_list1): New.
8880         (get_mem_group): New.
8881         (is_cmp): New.
8882         (dispatch_violation): New.
8883         (is_branch): New.
8884         (is_prefetch): New.
8885         (init_window): New.
8886         (allocate_window): New.
8887         (init_dispatch_sched): New.
8888         (is_end_basic_block): New.
8889         (process_end_window): New.
8890         (allocate_next_window): New.
8891         (find_constant_1): New.
8892         (find_constant): New.
8893         (get_num_immediates): New.
8894         (has_immediate): New.
8895         (get_insn_path): New.
8896         (get_insn_group): New.
8897         (count_num_restricted): New.
8898         (fits_dispatch_window): New.
8899         (add_insn_window): New.
8900         (add_to_dispatch_window): New.
8901         (debug_dispatch_window_file): New.
8902         (debug_dispatch_window): New.
8903         (debug_insn_dispatch_info_file): New.
8904         (debug_ready_dispatch): New.
8905         (do_dispatch): New.
8906         (has_dispatch): New.
8907         * config/i386/i386.h (debug_ready_dispatch): Declared.
8908         (debug_dispatch_window): Declared.
8909         * config/i386/i386.opt (mdispatch-scheduler): New flag.
8910         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
8911         (TARGET_SCHED_DISPATCH_DO): New.
8912         * doc/tm.texi: Regererated.
8913         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
8914         ready_remove_first_dispatch
8915         (schedule_block): Call targetm.sched.dispatch and
8916         targetm.sched.dispatch_do.
8917         (sched_init): Call targetm.sched.dispatch and
8918         targetm.sched.dispatch_do.
8919         (ready_remove_first_dispatch): New.
8920         (number_in_ready): New.
8921         (get_ready_element): New.
8922         * hooks.c (hook_bool_rtx_int_false): New.
8923         (hook_void_rtx_int): New.
8924         * hooks.h (hook_bool_rtx_int_false): Declared.
8925         (hook_void_rtx_int): Declared.
8926         * sched-int.h (IS_DISPATCH_ON): Defined.
8927         (IS_CMP): Defined.
8928         (DISPATCH_VIOLATION): Defined.
8929         (FITS_DISPATCH_WINDOW): Defined.
8930         (DISPATCH_INIT): Defined.
8931         (ADD_TO_DISPATCH_WINDOW): Defined.
8932         (get_ready_element): Declared.
8933         (number_in_ready): Declared.
8934         * target.def (dispatch): Defined.
8935         (dispatch_do): Defined.
8936
8937 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8938
8939         PR middle-end/45312
8940         * reload1.c (merge_assigned_reloads): Remove.
8941         (reload_as_needed): Don't call it.
8942
8943 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
8944
8945         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
8946         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8947         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8948
8949 2010-09-09  Matthias Klose  <doko@ubuntu.com>
8950
8951         PR bootstrap/43847
8952         * configure.ac (--enable-plugin): Enhance for cross builds.
8953         * configure: Regenerate.
8954
8955 2010-09-09  Jan Hubicka  <jh@suse.cz>
8956
8957         PR tree-optimization/45598
8958         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8959         string folding is of integral type.
8960
8961 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8962
8963         * configure.ac (gnu_indirect_function): New test.
8964         * configure: Rebuilt.
8965         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8966         * defaults.h (IFUNC_ASM_TYPE): Provide default.
8967
8968         * doc/extend.texi (Function Attributes): Document ifunc.
8969         * varasm.c (do_assemble_alias): Deal with ifuncs too.
8970
8971 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8972
8973         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8974         epilogue instruction move.
8975
8976 2010-09-09  Jan Hubicka  <jh@suse.cz>
8977
8978         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8979         command line to allow more partitions than input files.
8980
8981 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8982
8983         PR middle-end/44554
8984         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8985
8986 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8987
8988         PR middle-end/40386
8989         * ira.c (pseudo_for_reload_consideration_p): Don't use
8990         flag_ira_share_spill_slots.
8991
8992 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8993
8994         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8995         point zero operands that fit into a single GPR.
8996         (s390_preferred_reload_class): Ensure we only return general-purpose
8997         register classes.
8998         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8999         floating-point zero operands into GPRs.
9000         ("*mov<mode>_64"): Likewise.
9001         ("mov<mode>"): Likewise using lhi.
9002
9003 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9004
9005         * config/s390/s390.c (s390_symref_operand_p): Return false for
9006         literal pool references.
9007         (s390_check_qrst_address): Update caller.
9008
9009 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
9010
9011         * config/i386/predicates.md (ext_register_operand): Check that
9012         SUBREG_REG is really a register before looking for REGNO.
9013         (reg_not_xmm0_operand): Handle SUBREGs correctly.
9014         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
9015
9016 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
9017
9018         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
9019         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
9020         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
9021         * print-rtl.c (print_rtx): Likewise.
9022         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9023         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
9024         for ADDR_EXPR with non-addressable object.
9025         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
9026         (struct dw_val_struct): Add v.val_decl_ref.
9027         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
9028         Handle DW_OP_GNU_implicit_pointer.
9029         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
9030         (get_ref_die_offset_label): New function.
9031         (implicit_ptr_descriptor): New function.
9032         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
9033         (loc_descriptor): Likewise.
9034         (gen_variable_die): Put even definitions into decl_die_table.
9035         (resolve_addr_in_expr): Resolve still unresolved
9036         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
9037         return false.
9038         (dwarf2out_finish): Call output_location_lists after outputting
9039         .debug_info and .debug_abbrev instead of before.
9040
9041 2010-09-09  Roland McGrath  <roland@redhat.com>
9042
9043         * dwarf2out.c (DWARF_REF_SIZE): Define.
9044         (size_of_loc_descr): Use it for DW_OP_call_ref.
9045
9046 2010-09-09  Alan Modra  <amodra@gmail.com>
9047
9048         * doc/invoke.text: Reinstate mcmodel=medium.
9049         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
9050         CMODEL_MEDIUM as default.
9051         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
9052         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
9053         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
9054         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
9055
9056 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9057
9058         PR target/45250
9059         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
9060         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
9061         (builtin_longjmp): Likewise.
9062         (allocate_stack): Use hard_frame_pointer_rtx instead of
9063         frame_pointer_rtx.
9064         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
9065         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
9066         (pa_can_eliminate): Likewise.
9067         (TARGET_INTERNAL_ARG_POINTER): Define.
9068         (TARGET_CAN_ELIMINATE): Define.
9069         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
9070         pointer.
9071         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
9072         (pa_internal_arg_pointer, pa_can_eliminate,
9073         pa_initial_elimination_offset): New.
9074         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
9075         (HARD_FRAME_POINTER_REGNUM): Set to register three.
9076         (INITIAL_FRAME_POINTER_OFFSET): Delete.
9077         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
9078         Define.
9079         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
9080         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
9081         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
9082         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
9083         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
9084         new soft frame pointer.
9085         * config/pa/pa64-regs.h: Likewise.
9086
9087 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
9088
9089         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
9090         numerical constant.
9091         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
9092
9093 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
9094
9095         PR debug/45531
9096         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
9097
9098 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
9099
9100         PR debug/45419
9101         PR debug/45408
9102         * tree-pretty-print.c (dump_generic_node): Disregard top-level
9103         qualifiers in otherwise equal MEM_REF pointer types.
9104         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
9105         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
9106
9107 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9108
9109         PR target/44392
9110         * config/arm/arm.md (bswapsi2): Handle condition correctly
9111         for armv6 and optimize_size.
9112
9113 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9114
9115         PR other/18555
9116         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
9117
9118 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
9119
9120         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
9121         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
9122         ix86_expand_strlen, legitimate_pic_address_disp_p,
9123         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
9124         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
9125         ix86_check_movabs, ix86_secondary_memory_needed): Change function
9126         prototype to bool.
9127         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
9128         return_in_memory_ms_64, ix86_check_movabs,
9129         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
9130         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
9131         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
9132         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
9133         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
9134         ix86_secondary_memory_needed): Change to bool.  Return
9135         "true" and "false" values.
9136         * config/i386/i386.md: Return "true" and "false" values.
9137
9138 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9139
9140         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9141         run_expensive_tests.
9142
9143 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9144
9145         * toplev.c (output_stack_usage): Use lbasename instead of basename.
9146
9147 2010-09-08  Martin Jambor  <mjambor@suse.cz>
9148
9149         PR other/45443
9150         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
9151         at -O3.
9152
9153 2010-09-08  Richard Guenther  <rguenther@suse.de>
9154
9155         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
9156         (visit): Adjust.
9157         (iterative_hash_gimple_type): Likewise.
9158         (gimple_type_hash): Likewise.
9159         (gimple_register_type): Likewise.
9160         (print_gimple_types_stats): Likewise.
9161         (free_gimple_type_tables): Likewise.
9162
9163 2010-09-08  Michael Matz  <matz@suse.de>
9164
9165         PR tree-optimization/43430
9166         * tree-vect-stmts.c (vectorizable_condition): Support multiple
9167         copies for conditional statements if it's not part of a reduction.
9168
9169 2010-09-08  Michael Matz  <matz@suse.de>
9170
9171         PR tree-optimization/33244
9172         * tree-ssa-sink.c (statement_sink_location): Don't sink into
9173         empty loop latches.
9174
9175 2010-09-08  Richard Guenther  <rguenther@suse.de>
9176
9177         PR tree-optimization/45578
9178         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
9179         Be more careful when transfering alignment information to
9180         the new induction variable.
9181         (copy_ref_info): Likewise.
9182
9183 2010-09-08  Richard Guenther  <rguenther@suse.de>
9184
9185         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
9186         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
9187
9188 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
9189
9190         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
9191         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
9192
9193 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
9194
9195         PR doc/45587
9196         * doc/md.texi: Fixed modes on several standard pattern names.
9197
9198 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
9199
9200         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
9201         (ashl<mode>3): ...this.
9202         (loongson_psra<V_suffix>): Rename to...
9203         (ashr<mode>3): ...this.
9204         (loongson_psrl<V_suffix>): Rename to...
9205         (lshr<mode>3): ...this.
9206         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
9207         (CODE_FOR_loongson_psllw): Define.
9208         (CODE_FOR_loongson_psrlh): Define.
9209         (CODE_FOR_loongson_psrlw): Define.
9210         (CODE_FOR_loongson_psrah): Define.
9211         (CODE_FOR_loongson_psraw): Define.
9212
9213 2010-09-07  Richard Henderson  <rth@redhat.com>
9214
9215         * tree-vect-data-refs.c: Include tm_p.h.
9216         * Makefile.in (tree-vect-data-refs.o): Update deps.
9217         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
9218         Move delarations outside #ifdef RTX_CODE.
9219
9220 2010-09-07  Richard Henderson  <rth@redhat.com>
9221
9222         * final.c (rest_of_handle_final): Unconditionally do
9223         output_function_exception_table before assemble_end_function.
9224
9225 2010-09-07  Jan Hubicka  <jh@suse.cz>
9226
9227         * tree-inline.c (tree_inlinable_function_p): Do not test
9228         DECL_REPLACEABLE_P.
9229         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
9230         update_callee_keys, cgraph_decide_inlining): Test function availability.
9231         * cif-code.def (OVERWRITABLE): New code.
9232
9233 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
9234             Jack Howarth  <howarth@bromo.med.uc.edu>
9235
9236         PR target/36502
9237         PR target/42313
9238         PR target/44651
9239         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
9240         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
9241         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
9242         MAX macro.
9243
9244 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9245
9246         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
9247         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
9248
9249 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9250
9251         * config.gcc: Don't append t-android for Android targets.
9252
9253         * config/t-android: Removed.
9254
9255 2010-09-07  Richard Henderson  <rth@redhat.com>
9256
9257         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
9258         * doc/tm.texi.in: Add doc marker.
9259         * doc/tm.texi: Rebuild.
9260         * except.c (switch_to_exception_section): Always build.
9261         (output_one_function_exception_table): Move section switch,
9262         personality output, and label output ...
9263         (output_function_exception_table): ... here.  Use the new
9264         personality hook.
9265
9266         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
9267         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
9268         TARGET_ASM_INIT_SECTIONS): New.
9269         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
9270         make static.
9271         (TARGET_ASM_UNWIND_EMIT): Update to match.
9272         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
9273
9274         * config/arm/arm.c (arm_asm_emit_except_personality): New.
9275         (arm_asm_init_sections): New.
9276         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
9277
9278 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9279
9280         * config/arm/arm.md: Remove unused variable.
9281
9282 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
9283
9284         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9285         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
9286         (m32r_memory_move_cost): New function.
9287
9288 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
9289
9290         * config.gcc: Append t-android for Android targets.
9291
9292         * config/t-android: New.
9293
9294 2010-09-07  Richard Henderson  <rth@redhat.com>
9295
9296         * target.def (unwind_emit_before_insn): New hook.
9297         * doc/tm.texi.in: Add @hook marker for it.
9298         * doc/tm.texi: Rebuild.
9299         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
9300
9301 2010-09-07  Martin Jambor  <mjambor@suse.cz>
9302
9303         PR fortran/43665
9304         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
9305         are any type attributes.
9306
9307 2010-09-07  Jan Hubicka  <jh@suse.cz>
9308
9309         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
9310         array_ref_low_bound in string access folding.
9311
9312 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
9313
9314         PR target/45206
9315         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
9316         eh_return fixup sequence.
9317
9318 2010-09-07  Jan Hubicka  <jh@suse.cz>
9319
9320         * gimple-fold.c (maybe_fold_reference): Verify that operand is
9321         gimple_min_invariant.
9322
9323 2010-09-07  Richard Guenther  <rguenther@suse.de>
9324
9325         PR middle-end/45569
9326         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
9327         nor CONSTRUCTOR can trap.
9328         * tree-complex.c (update_complex_assignment): Update EH info.
9329
9330 2010-09-07  Richard Guenther  <rguenther@suse.de>
9331
9332         PR middle-end/45569
9333         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
9334         * passes.c (execute_function_todo): Do not verify anything if
9335         we saw errors.
9336
9337 2010-09-07  Richard Guenther  <rguenther@suse.de>
9338
9339         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
9340
9341 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
9342
9343         PR target/43137
9344         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
9345         New define_mode_attrs.
9346         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
9347         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
9348         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
9349         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
9350         Remove pool_range attribute.
9351         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
9352         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
9353         pool_range and neg_pool_range attributes.
9354         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
9355         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
9356         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
9357
9358 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9359
9360         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
9361         check glibc.
9362
9363 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
9364
9365         PR target/22152
9366         * config/i386/mmx.md (*mov<mode>_internal_rex64,
9367         *mov<mode>_internal_avx, *mov<mode>_internal,
9368         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
9369         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
9370
9371 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
9372
9373         * c-typeck.c (do_warn_double_promotion): Remove.
9374         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
9375         Objective-C++ too.
9376
9377 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
9378
9379         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
9380         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
9381         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
9382         argument type to reg_class_t. Change result type to bool.
9383         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9384
9385 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
9386
9387         PR libobjc/19850
9388         * gthr-posix.h (__gthread_objc_thread_detach): Use
9389         _objc_thread_attribs when detaching a thread.
9390         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
9391
9392 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
9393
9394         PR target/45524
9395         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
9396         * configure: Regenerated.
9397
9398 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9399
9400         * combine.c (try_combine): Set subst_low_luid to i0.
9401
9402 2010-09-06  Richard Guenther  <rguenther@suse.de>
9403
9404         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
9405         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
9406         (build_aligned_type): Declare.
9407         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
9408         (check_aligned_type): New function.
9409         (build_aligned_type): Likewise.
9410         * expr.c (expand_assignment): Handle misaligned stores via
9411         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
9412         (expand_expr_real_1): Likewise.
9413         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
9414         * tree-vect-stmts.c (vectorizable_store): Do not build
9415         MISALIGNED_INDIRECT_REF but initialize alignment information.
9416         (vectorizable_load): Likewise.
9417         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
9418         handling.
9419         * cfgexpand.c (expand_debug_expr): Likewise.
9420         * dwarf2out.c (loc_list_from_tree): Likewise.
9421         * fold-const.c (maybe_lvalue_p): Likewise.
9422         (operand_equal_p): Likewise.
9423         (build_fold_addr_expr_with_type_loc): Likewise.
9424         * gimplify.c (gimplify_addr_expr): Likewise.
9425         (gimplify_expr): Likewise.
9426         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
9427         (verify_gimple_assign_single): Likewise.
9428         * tree-dump.c (dequeue_and_dump): Likewise.
9429         (tree_could_trap_p): Likewise.
9430         * tree-predcom.c (ref_at_iteration): Likewise.
9431         * tree-pretty-print.c (dump_generic_node): Likewise.
9432         (op_code_prio): Likewise.
9433         (op_symbol_code): Likewise.
9434         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
9435         * tree-ssa-loop-im.c (for_each_index): Likewise.
9436         (gen_lsm_tmp_name): Likewise.
9437         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
9438         (find_interesting_uses_address): Likewise.
9439         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
9440         * tree-ssa-operands.c (get_expr_operands): Likewise.
9441         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9442         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9443         (ao_ref_init_from_vn_reference): Likewise.
9444         * tree.c (staticp): Likewise.
9445         (build1_stat): Likewise.
9446         (reference_alias_ptr_type): Likewise.
9447         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9448         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
9449         MISALIGNED_INDIRECT_REF handling.
9450
9451 2010-09-06  Richard Guenther  <rguenther@suse.de>
9452
9453         PR tree-optimization/45534
9454         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
9455         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
9456         on the target.
9457         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
9458         valid on the target.
9459
9460 2010-09-06  Andreas Schwab  <schwab@redhat.com>
9461
9462         * configure.ac: Quote argument of AC_MSG_WARN.
9463         * configure: Regenerate.
9464
9465 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
9466
9467         * sel-sched.c (move_cond_jump): Correct arguments to
9468         maybe_tidy_empty_bb.
9469         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9470
9471 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
9472
9473         PR rtl-optimization/44919
9474         * sel-sched.c (move_cond_jump): Remove assert, check that
9475         the several blocks case can only happen with mutually exclusive
9476         insns instead.  Rewrite the movement code to support moving through
9477         several basic blocks.
9478
9479 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
9480
9481         * config/i386/i386.md (iptrsize): New mode attribute.
9482         (tp_seg): Ditto.
9483         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
9484         mode iterator.
9485         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
9486         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
9487         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
9488         (stack_tls_protect_set_<mode>): Ditto from
9489         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
9490         of thread base pointer load.
9491         (stack_tls_protect_test_<mode>): Ditto from
9492         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
9493         of thread base pointer load.
9494         (stack_protect_set): Rewrite using indirect functions.
9495         (stack_protect_test): Ditto.
9496         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
9497         (ix86_print_operand): Handle '@'.
9498
9499 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
9500
9501         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
9502         MINUS_EXPR.
9503
9504 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
9505
9506         * doc/invoke.texi: Document -Wdouble-promotion.
9507         * c-typeck.c (convert_arguments): Check for implicit conversions
9508         from float to double.
9509         (do_warn_double_promotion): New function.
9510         (build_conditional_expr): Use it.
9511         (build_binary_op): Likewise.
9512
9513 2010-09-05  Richard Guenther  <rguenther@suse.de>
9514
9515         PR tree-optimization/45535
9516         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
9517         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
9518         dereferencing it.
9519         (indirect_refs_may_alias_p): Likewise.
9520
9521 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
9522
9523         * config/sh/sh.c (sh_option_override): Make static.
9524         Adjust comments.  Declare.
9525         (sh_function_value_regno_p): Likewise.
9526         (sh_register_move_cost): Modify the arguments, make static.
9527         Adjust comments.  Declare.
9528         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
9529         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9530         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
9531         REGISTER_MOVE_COST): Delete.
9532         * config/sh/sh-protos.h (sh_override_options): Delete.
9533         (sh_register_move_cost): Delete.
9534         (sh_function_value_regno_p): Delete.
9535
9536 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
9537
9538         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
9539         m32r_function_value_regno_p): New functions.
9540         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9541         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
9542         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
9543         FUNCTION_VALUE_REGNO_P): Remove.
9544
9545 2010-09-04  Jan Hubicka  <jh@suse.cz>
9546
9547         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
9548         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
9549         fold_read_from_constant_string.
9550
9551         * gimple.h (canonicalize_constructor_val): Declare.
9552         * gimple-fold.c (canonicalize_constructor_val): New function.
9553         (get_symbol_constant_value):Use it.
9554         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9555
9556 2010-09-04  Jan Hubicka  <jh@suse.cz>
9557
9558         * tree-switch-conversion.c (build_one_array): Set constructor to be
9559         static.
9560         * varpool.c (varpool_finalize_decl): Compute const_value_known.
9561
9562 2010-09-04  Richard Guenther  <rguenther@suse.de>
9563
9564         PR bootstrap/45519
9565         * tree-flow.h (force_gimple_operand_1): Declare.
9566         (force_gimple_operand_gsi_1): Likewise.
9567         * gimplify.c (force_gimple_operand_1): New worker taking a
9568         gimple predicate for ...
9569         (force_gimple_operand): ... which now wraps it.
9570         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
9571         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
9572         last change.
9573         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
9574         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
9575         (create_mem_ref): Likewise.
9576
9577 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
9578
9579         * config/i386/predicates.md (sse_reg_operand): New predicate.
9580         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
9581         predicate for operand 1.
9582         (XFmode push splitter): Use fp_register_operand predicate
9583         for operand 1.
9584         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
9585         (SF-DF float_extend push splitter): Add reload_completed insn
9586         predicate.
9587         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
9588         MODEF mode macro.  Add reload_completed insn predicate.
9589
9590 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
9591
9592         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
9593         (struct df_extract_ref): Remove.
9594         (union df_ref_d): Remove extract_ref member.
9595         (df_ref_create): Remove last three arguments.
9596         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
9597         * df-scan.c (df_ref_record): Remove last three arguments, do not
9598         pass them to df_ref_create_structure.
9599         (df_uses_record): Remove first and last three arguments.  Replace
9600         first argument with DF_REF_REGULAR, adjust calls to remove the
9601         width, offset and mode.  Always call recursively on the second
9602         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
9603         (df_ref_create_structure): Remove first argument.
9604         (struct df_scan_problem_data): Remove ref_extract_pool.
9605         (df_scan_free_internal): Do not free it.
9606         (df_scan_alloc): Do not allocate it.
9607         (df_ref_create): Remove last three arguments, do not pass them to
9608         df_ref_create_structure.
9609         (df_free_ref): Remove DF_REF_EXTRACT case.
9610         (df_notes_rescan): Adjust call to df_uses_record.
9611         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
9612         Remove DF_REF_EXTRACT case.
9613         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
9614         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
9615         and SUBREG definitions.
9616         (df_get_conditional_uses): Remove references to width/offset/mode,
9617         adjust call to df_ref_create_structure.
9618         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9619         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
9620         calls to df_uses_record and df_ref_record.
9621         * fwprop.c (update_df): Remove references to width/offset/mode,
9622         adjust call to df_ref_create.
9623
9624 2010-09-03  Jan Hubicka  <jh@suse.cz>
9625
9626         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
9627         (build_cdtor_fns): Update use of build_cdtor.
9628
9629 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
9630
9631         * doc/options.texi (SeparateAlias): Document.
9632         * opt-functions.awk (switch_flags): Handle SeparateAlias.
9633         * opth-gen.awk: Generate enumeration names for options marked
9634         SeparateAlias, but not for those marked Ignore.
9635         * opts-common.c (generate_canonical_option): Don't output separate
9636         argument for options marked CL_SEPARATE_ALIAS.
9637         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
9638         * opts.h (CL_SEPARATE_ALIAS): New.
9639         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9640         CL_COMMON): Adjust definitions.
9641         * config/i386/darwin.opt, config/mips/sde.opt: New.
9642         * common.opt (fdump-final-insns): New.
9643         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9644         i386/darwin.opt.
9645         (mips*-sde-elf*): Add mips/sde.opt.
9646         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
9647         -mno-data-in-code and -mcode-xonly here.
9648         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
9649         * gcc.c (option_map): Add "j" to --dump entry.
9650         (translate_options): Don't translate -d to -foutput-class-dir= here.
9651
9652 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
9653
9654         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
9655         DR_IS_WRITE.
9656         (compute_all_dependences): Same.
9657         (create_rdg_edge_for_ddr): Same.
9658         * tree-data-ref.h (DR_IS_WRITE): New.
9659         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
9660         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
9661         (write_memrefs_written_at_least_once): Same.
9662         * tree-predcom.c (suitable_component_p): Same.
9663         (determine_roots_comp): Same.
9664         (execute_load_motion): Same.
9665         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
9666         (vect_enhance_data_refs_alignment): Same.
9667         (vect_analyze_group_access): Same.
9668
9669 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
9670
9671         PR testsuite/42843
9672         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
9673         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
9674
9675 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
9676
9677         * dwarf2out.c (file scope): Remove #if0'd code.
9678         (gen_subprogram_die): Same.
9679
9680 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
9681
9682         PR middle-end/45484
9683         * dwarf2out.c (flush_queued_reg_saves): Rename to...
9684         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
9685         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
9686         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
9687         * config/i386/i386.c (output_set_got): Call it.
9688
9689 2010-09-03  Michael Matz  <matz@suse.de>
9690
9691         PR middle-end/45415
9692         * tree-sra.c (sra_modify_assign): If we modify the statement,
9693         say so.
9694
9695         * tree-ssa.c (verify_ssa): Check number of operands and links
9696         per statement to agree.
9697
9698 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
9699             Iain Sandoe  <iains@gcc.gnu.org>
9700
9701         PR target/45476
9702         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
9703         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
9704         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9705
9706 2010-09-03  Richard Guenther  <rguenther@suse.de>
9707
9708         * lto-streamer-out.c (output_function): Output function
9709         start and end loci.
9710         * lto-streamer-in.c (input_function): Input function start
9711         and end loci.
9712
9713 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9714
9715         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
9716         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
9717         * configure: Regenerate.
9718         * aclocal.m4: Regenerate.
9719
9720 2010-09-03  Jan Hubicka  <jh@suse.cz>
9721
9722         PR lto/44812
9723         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
9724         on functions/variables in other partition.
9725
9726 2010-09-03  Jan Hubicka  <jh@suse.cz>
9727
9728         * cgraph.h (struct varpool_node): Add const_value_known.
9729         (varpool_decide_const_value_known): Declare.
9730         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
9731         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
9732         (input_varpool_node): Restore const_value_known.
9733         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
9734         initializer folding.
9735         * ipa.c (ipa_discover_readonly_nonaddressable_var,
9736         function_and_variable_visibility): Compute const_value_known.
9737         * gimple-fold.c (get_symbol_constant_value): Use varpool for
9738         initializer folding.
9739         * varpool.c (varpool_decide_const_value_known): New function.
9740
9741 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
9742
9743         * config/i386/i386.md: Remove empty preparation statements
9744         from splitters.
9745
9746 2010-09-03  Jan Hubicka  <jh@suse.cz>
9747
9748         * passes.c (rest_of_decl_compilation): Do not add local vars into
9749         varpool.
9750         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
9751         static or extern vars are in varpool.
9752         (varpool_finalize_decl): Sanity check that only static vars are
9753         finalized.
9754
9755 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
9756
9757         PR debug/45500
9758         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
9759         not just generic vectors with BLKmode.
9760
9761 2010-09-03  Richard Guenther  <rguenther@suse.de>
9762
9763         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
9764         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
9765         * tree.h (TMR_SYMBOL): Remove.
9766         (TMR_BASE, TMR_OFFSET): Adjust.
9767         (TMR_INDEX2): New.
9768         * alias.c (ao_ref_from_mem): Use TMR_BASE.
9769         * builtins.c (get_object_alignment): Merge TMR_BASE and
9770         TMR_SYMBOL handling.
9771         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
9772         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
9773         handling.  Also allow TARGET_MEM_REF as base address.
9774         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
9775         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
9776         base.  Gimplify TMR_INDEX2.
9777         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
9778         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9779         (get_addr_base_and_unit_offset): Likewise.
9780         * tree-eh.c (tree_could_trap_p): Likewise.
9781         * tree-pretty-print.c (dump_generic_node): Likewise.
9782         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
9783         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
9784         base to index2.
9785         (get_address_description): Reconstruct addres description
9786         from merged TMR_BASE and TMR_INDEX2.
9787         (maybe_fold_tmr): Fold propagated addresses.
9788         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
9789         MEM_REF and TARGET_MEM_REF paths.
9790         (indirect_refs_may_alias_p): Likewise.
9791         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
9792         instead of TMR_SYMBOL.
9793         * tree-ssa-operands.c (get_tmr_operands): Simplify.
9794         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
9795         according to changes ...
9796         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
9797         Split TARGET_MEM_REF into two fields plus the base.
9798         * tree.c (mem_ref_offset): Simplify.
9799         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
9800         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
9801         Strip NOPs when folding MEM_REF addresses.
9802         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
9803         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
9804         (fold_gimple_assign): ... not here.
9805
9806 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
9807
9808         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
9809         * config/mips/mips.c (mips_shift_truncation_mask): New function.
9810         (TARGET_SHIFT_TRUNCATION_MASK): Define.
9811
9812 2010-09-02  Richard Henderson  <rth@redhat.com>
9813
9814         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
9815         instead of readelf in the test.
9816         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
9817         in the .debug_frame section for coff targets.
9818         * configure: Rebuild.
9819
9820 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
9821
9822         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
9823         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
9824         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9825         (m32c_class_likely_spilled_p): Make static. Change argument type to
9826         reg_class_t. Change result type to bool.
9827
9828 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9829
9830         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
9831         to convert (double)(long) into a single FRIZ instruction or not
9832         when -ffast-math is used.
9833
9834         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
9835         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
9836         or FRIZ instruction if -ffast-math.
9837         * config/rs6000/rs6000.md (friz): Ditto.
9838
9839         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
9840
9841 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9842
9843         * opth-gen.awk (quote, comma): Remove unused variables.
9844
9845 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
9846
9847         * arm.c (arm_override_options): Correct fall-back code to use
9848         SUBTARGET_CPU_DEFAULT.
9849
9850 2010-09-02  Julian Brown  <julian@codesourcery.com>
9851
9852         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
9853         unspecs.
9854         (vcond<mode>, vcondu<mode>): New expanders.
9855         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
9856         comparisons with zero.
9857         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
9858         * config/arm/constraints.md (Dz): New constraint.
9859
9860 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
9861
9862         * target.def (class_likely_spilled_p): New hook.
9863         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
9864         * doc/tm.texi: Regenerate.
9865         * targhooks.c (default_class_likely_spilled_p): New function.
9866         * targhooks.h (default_class_likely_spilled_p): Declare.
9867         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
9868         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
9869         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
9870         Use fixed_reg_set instead of fixed_regs.
9871         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9872         * calls.c (avoid_likely_spilled_reg): Ditto.
9873         * ira-conflicts.c (ira_build_conflicts): Ditto.
9874         * ira.c (update_equiv_regs): Ditto.
9875         * mode-switching.c (create_pre_exit): Ditto.
9876         * regmove.c (find_matches): Ditto.
9877         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9878         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
9879         (small_register_class_p): New inline function.
9880         (push_secondary_reload, find_reusable_reload, find_reloads): Use
9881         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
9882
9883         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
9884         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
9885         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9886
9887 2010-09-02  Richard Guenther  <rguenther@suse.de>
9888
9889         PR tree-optimization/44937
9890         PR tree-optimization/45412
9891         * ipa-split.c (split_function): Properly remove PHI nodes.
9892
9893 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9894
9895         * opts.h (struct cl_option): Add warn_message field.
9896         (struct cl_decoded_option): Add warn_message field.
9897         * doc/options.texi (Ignore, Warn): Document.
9898         * opt-functions.awk (needs_state_p): Don't consider aliases or
9899         ignored options to need state saved.
9900         * optc-gen.awk: Handle Warn and Ignore.
9901         * opth-gen.awk: Output OPT_SPECIAL_ignore.
9902         * opts-common.c (decode_cmdline_option): Set warn_message field.
9903         Handle ignored options.
9904         (decode_cmdline_options_to_array, generate_option,
9905         generate_option_input_file): Set warn_message field.
9906         (read_cmdline_option): Generate warnings from warn_message field.
9907         Handle ignored options.
9908         * common.opt (Wunreachable-code, fargument-alias,
9909         fargument-noalias, fargument-noalias-global,
9910         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
9911         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
9912         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
9913         ftree-salias): Mark Ignore.
9914         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
9915         -mintel-syntax and -mno-intel-syntax here.
9916         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
9917         using Warn.
9918         * opts.c (common_handle_option): Don't handle options marked as
9919         ignored.
9920         (enable_warning_as_error): Handle ignored options.
9921
9922 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9923
9924         PR driver/44076
9925         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
9926         alias_target fields.
9927         * opt-functions.awk (opt_sanitized_name): Don't handle
9928         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
9929         * optc-gen.awk: Generate alias fields.
9930         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
9931         Don't generate such constants for aliases.
9932         * opts-common.c (generate_canonical_option): New.
9933         (decode_cmdline_option): Handle aliases.  Use
9934         generate_canonical_option for known options instead of copying the
9935         input option text.
9936         * doc/options.texi (Alias): Document.
9937         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
9938         fstack-check, specs): Mark as aliases.
9939         * gcc.c (driver_handle_option): Canonicalize -L options to joined
9940         arguments.
9941         (driver_handle_option): Don't handle OPT_specs.
9942         * opts.c (common_handle_option): Don't handle options marked as
9943         aliases.
9944         (enable_warning_as_error): Handle aliases.
9945         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
9946         OPT_Wlarger_than_eq.
9947         * tree-optimize.c (tree_rest_of_compilation): Use
9948         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
9949
9950 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9951
9952         * config/i386/i386.md (nonmemory_operand): New mode attribute.
9953         (push memory peephole2): Macroize peepholes using SWI mode iterator.
9954         (move immediate to memory peephole2): Macroize peepholes using
9955         SWI124 mode iterator.
9956         (non-pairable NOT peephole2): Macroize peepholes using SWI124
9957         mode iterator.
9958         (simple lea add peephole2): Macroize peepholes using SWI48
9959         mode iterator.
9960         (simple lea mult peephole2): Ditto.
9961         (imul by 3,5,9 to lea peephole2): Ditto.
9962         (mov $-1, reg peephole2): Macroize peepholes using SWI248
9963         mode iterator.
9964         (imul $32bit_imm,mem,reg peephole2): Ditto.
9965         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9966
9967 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
9968
9969         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9970
9971 2010-09-02  Olivier Hainque  <hainque@adacore.com>
9972
9973         PR middle-end/44763
9974         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9975         (allocno_priority_compare_func): Use it instead of a straight
9976         difference computation over priorities.
9977
9978 2010-09-02  Andi Kleen  <ak@linux.intel.com>
9979
9980         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9981
9982 2010-09-02  Ira Rosen  <irar@il.ibm.com>
9983
9984         * tree-vectorizer.h (get_later_stmt): New function.
9985         (vect_analyze_data_ref_dependences): Add argument.
9986         * tree-vect-loop.c (vect_analyze_loop): Update call to
9987         vect_analyze_data_ref_dependences.
9988         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9989         New function.
9990         (vect_analyze_data_ref_dependence): Add argument for basic block
9991         dependencies. Check dependencies in basic block vectorization.
9992         (vect_analyze_data_ref_dependences): Add argument and update call to
9993         vect_analyze_data_ref_dependences.
9994         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9995         (vect_bb_vectorizable_with_dependencies): New.
9996         (vect_slp_analyze_bb): Check dependencies in basic block.
9997         (vect_schedule_slp_instance): Insert stores before the last store in
9998         SLP instance.
9999
10000 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
10001
10002         PR target/45476
10003         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
10004         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
10005
10006 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
10007
10008         PR middle-end/45458
10009         * bb-reorder.c (add_labels_and_missing_jumps): Treat
10010         bbs ending with throwing insns like blocks ending with a call.
10011         (fix_up_fall_thru_edges): Likewise.
10012
10013 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
10014
10015         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
10016         (m32c_function_arg_advance): Delete.
10017         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10018         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
10019         comments.  Take a const_tree and a bool.  Declare.
10020         (m32c_function_arg_advance): Likewise.
10021         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10022
10023 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10024
10025         PR target/45476
10026         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
10027         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
10028         * config/i386/mingw32.h: ... here.
10029
10030 2010-09-01  Andi Kleen  <ak@linux.intel.com>
10031
10032         PR lto/45475
10033         * lto-streamer-in.c (lto_input_ts_target_option): Add.
10034         (lto_input_tree_pointers): Call lto_input_ts_target_option.
10035         * lto-streamer-out (lto_output_ts_target_option): Add.
10036         (lto_output_tree_pointers): Call lto_output_ts_target_option.
10037
10038 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
10039
10040         PR/target 45452
10041         * config/i386/cygwin.h: Change order of specified import libraries.
10042         * config/i386/mingw32.h: Likewise.
10043         * config/i386/t-cygwin: Likewise.
10044         * config/i386/t-mingw32: Likewise.
10045         * config/i386/t-mingw-w32: Likewise.
10046         * config/i386/t-mingw-w64: Likewise.
10047
10048 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10049
10050         * config/arm/neon-schedgen.ml (core): New type.
10051         (allCores): List of supported cores.
10052         (availability_table): Add supported cores.
10053         (collate_bypasses): Accept core as a parameter.
10054         (worst_case_latencies_and_bypasses): Accept core as a parameter.
10055         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
10056         and coreStr to get tune attribute and prefix for functional units.
10057         (emit_bypasses): Accept core name and use it.
10058         (calculate_per_core_availability_table): New.
10059         (filter_core): New.
10060         (calculate_core_availability_table): New.
10061         (main): Use calculate_core_availablity_table.
10062         * config/arm/cortex-a8-neon.md: Update copyright year.
10063         Regenerated from ml file and merged in.
10064         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
10065         cortex_a8_neon_mrc.
10066
10067 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
10068
10069         * Makefile.in (tree-switch-conversion.o): Update dependencies.
10070
10071 2010-09-01  Richard Guenther  <rguenther@suse.de>
10072
10073         * alias.c (ao_ref_from_mem): Adjust.
10074         * builtins.c (get_object_alignment): Likewise.
10075         * cfgexpand.c (expand_debug_expr): Likewise.
10076         * gimple.c (get_base_address): Likewise.
10077         * tree-dfa.c (get_ref_base_and_extent): Likewise.
10078         (get_addr_base_and_unit_offset): Likewise.  Fix for
10079         both TMR_SYMBOL and TMR_BASE being set.
10080         * tree-eh.c (tree_could_trap_p): Likewise.
10081         * gimplify.c (gimplify_expr): Do not attempt to gimplify
10082         TMR_SYMBOL.  Always gimplify TMR_BASE.
10083         * tree-cfg.c (verify_types_in_gimple_reference): Verify
10084         TMR_BASE if there is a TMR_SYMBOL.
10085         * tree-pretty-print.c (dump_generic_node): Adjust.
10086         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
10087         (tree_mem_ref_addr): Likewise.
10088         (create_mem_ref_raw): Likewise.
10089         (move_fixed_address_to_symbol): Likewise.
10090         (create_mem_ref): Likewise.
10091         (dump_mem_address): Likewise.
10092         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
10093         Fix for both TMR_SYMBOL and TMR_BASE being set.
10094         (indirect_refs_may_alias_p): Likewise.
10095         * tree-ssa-operands.c (get_tmr_operands): Adjust.
10096         * tree.def (TARGET_MEM_REF): Adjust documentation.
10097
10098 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10099
10100         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
10101         Rename from X86_TUNE_ADD_ESP_4.
10102         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
10103         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
10104         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
10105         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
10106         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
10107         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
10108         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
10109         * config/i386/i386.c (initial_ix86_tune_features)
10110         <X86_TUNE_SINGLE_POP>: Invert members.
10111         <X86_TUNE_DOUBLE_POP>: Ditto.
10112         <X86_TUNE_SINGLE_PUSH>: Ditto.
10113         <X86_TUNE_DOUBLE_PUSH>: Ditto.
10114         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
10115         No longer exported.
10116         (push peephole2 patterns): Macroize peepholes using P mode iterator.
10117         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
10118         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
10119         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
10120
10121 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
10122
10123         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
10124         a volatile LHS if the constructor has only one element.
10125
10126 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
10127
10128         PR bootstrap/45321
10129         * tree.c (stdarg_p): Make fntype parameter const.
10130         * tree.h (stdarg_p): Likewise.
10131         (function_args_iterator): Remove unused fntype field.
10132         (function_args_iter_init): Do not initialize fntype
10133         field.  Make fntype parameter const.
10134
10135 2010-09-01  Richard Guenther  <rguenther@suse.de>
10136
10137         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
10138         estimate.
10139         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
10140         (execute_vrp): Compute number of iteration estimates.
10141         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
10142         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
10143         * tree-data-ref.c (estimated_loop_iterations): Adjust.
10144         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
10145         Infer loop bounds from undefined behavior based on a new parameter.
10146         (estimate_numbers_of_iterations): Likewise.
10147         (scev_probably_wraps_p): Adjust.
10148         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
10149
10150 2010-09-01  Nick Clifton  <nickc@redhat.com>
10151
10152         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
10153         where appropriate.
10154         (xstormy16_legitimate_address_p): Use true and false instead of 1
10155         and 0.
10156         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
10157         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
10158         magic constant 2.
10159         (xstormy16_expand_call): Fix comment at start of function.
10160
10161 2010-09-01  Nick Clifton  <nickc@redhat.com>
10162
10163         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
10164         when pushing accumulator register.
10165         (rx_get_stack_layout): Always save call clobbered registers inside
10166         interrupt handlers.
10167         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
10168
10169 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
10170
10171         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
10172         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
10173
10174         * libgcc-std.ver (GCC_4.6.0): Define version.
10175
10176 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10177
10178         * tree-nested.c (convert_all_function_calls): Iterate until after the
10179         sum of static chains in the nest doesn't change.
10180
10181 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
10182
10183         * config/m32c/m32c.c (classes_intersect): Remove.
10184         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
10185         reg_classes_intersect_p instead of classes_intersect.
10186         (class_can_hold_mode): Change arguments type from enum reg_class to
10187         reg_class_t.  Use reg_class_contents instead of class_contents.
10188         (m32c_register_move_cost): Make static. Change arguments type from
10189         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
10190         classes_intersect. Use reg_class_contents instead of class_contents.
10191         (m32c_memory_move_cost): Make static. Change arguments type from
10192         enum reg_class to reg_class_t.
10193         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10194         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10195         * config/m32c/m32c-protos.h (m32c_register_move_cost,
10196         m32c_memory_move_cost): Remove.
10197
10198 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10199
10200         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
10201         (arm_function_arg): Delete.
10202         (arm_needs_doubleword_align): Take a const_tree.
10203         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10204         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
10205         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
10206         (arm_function_arg): Make static.  Take a const_tree and a bool.
10207         (arm_function_arg_advance): Likewise.
10208         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10209
10210 2010-08-31  Andi Kleen  <ak@linux.intel.com>
10211
10212         * common.opt (fwhopr=): Update for -fwhopr=jobserver
10213         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
10214         * lto-wrapper.c (run_gcc): Add jobserver mode.
10215         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
10216         argument.
10217
10218 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
10219
10220         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
10221         (popsi1): Ditto.
10222         (*popdi1_epilogue): Ditto.
10223         (*popsi1_epilogue): Ditto.
10224         (popsi, popdi peephole2 patterns): Update peepholes for changed
10225         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
10226
10227         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
10228         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
10229
10230         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
10231         (override_options): Do not initialize removed ix86_gen_pop1.
10232         (gen_pop): New static function.
10233         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
10234         (release_scratch_register_on_entry): Ditto.
10235         (ix86_restore_reg_using_pop): Ditto.
10236         (ix86_expand_epilogue): Ditto.
10237
10238 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
10239
10240         PR middle-end/45461
10241         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
10242
10243 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10244
10245         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
10246         semicolons.
10247
10248 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10249
10250         * doc/extend.texi: Fix documentation of the return value of
10251         __builtin_choose_expr.
10252
10253 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10254
10255         * config/v850/v850-protos.h (function_arg): Delete.
10256         * config/v850/v850.h (FUNCTION_ARG): Delete.
10257         (FUNCTION_ARG_ADVANCE): Move code to...
10258         * config/v850/v850.c (v850_function_arg_advance): ...here.
10259         (v850_function_arg): Make static.  Take a const_tree and a bool.
10260         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10261
10262 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10263
10264         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
10265         these...
10266         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
10267         ...and these...
10268         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
10269         ..to here..
10270         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
10271         ...and here.
10272         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10273
10274 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
10275
10276         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
10277         Delete.
10278         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10279         * config/rx/rx.c (rx_function_arg_size): Make static.
10280         (rx_function_arg): Likewise.
10281         (rx_function_arg_advance): New function.
10282         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10283
10284 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
10285
10286         * config/arm/arm.c (arm_override_options): Remove superfluous test.
10287         Fix indentation.
10288
10289 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
10290
10291         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
10292         (dwarf2out_decl) <CONST_DECL>: Likewise.
10293
10294 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
10295
10296         Stack usage support
10297         * common.opt (-fstack-usage): New option.
10298         * doc/invoke.texi (Debugging options): Document it.
10299         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
10300         allocate_dynamic_stack_space.
10301         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
10302         and propagate it to allocate_dynamic_stack_space.
10303         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
10304         * calls.c (initialize_argument_information): Pass TRUE as 4th
10305         argument to allocate_dynamic_stack_space.
10306         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
10307         to 1 when pushing a variable-sized argument onto the stack.  Pass
10308         TRUE as 4th argument to allocate_dynamic_stack_space.
10309         Update current_function_pushed_stack_size.
10310         (emit_library_call_value_1): Likewise.
10311         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
10312         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
10313         attempt to find an upper bound.  Remove redundant code for the
10314         SETJMP_VIA_SAVE_AREA case.
10315         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
10316         * function.h (struct stack_usage): New structure.
10317         (current_function_static_stack_size): New macro.
10318         (current_function_dynamic_stack_size): Likewise.
10319         (current_function_pushed_stack_size): Likewise.
10320         (current_function_dynamic_alloc_count): Likewise.
10321         (current_function_has_unbounded_dynamic_stack_size): Likewise.
10322         (current_function_allocates_dynamic_stack_space): Likewise.
10323         (struct function): Add new field 'su'.
10324         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
10325         add the value of the dynamic offset to the dynamic stack usage.
10326         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
10327         for variable-sized objects.
10328         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
10329         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
10330         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
10331         BUILT_IN_ALLOCA for variable-sized objects.
10332         * output.h (output_stack_usage): Declare.
10333         * toplev.c (stack_usage_file): New file pointer.
10334         (output_stack_usage): New function.
10335         (open_auxiliary_file): Likewise.
10336         (lang_dependent_init): Open file if flag_stack_usage is set.
10337         (finalize): Close file if stack_usage_file is not null.
10338         * tree.h (ALLOCA_FOR_VAR_P): New macro.
10339         * config/alpha/alpha.c (compute_frame_size): New function.
10340         (alpha_expand_prologue): Use it.
10341         (alpha_start_function): Likewise.
10342         (alpha_expand_epilogue): Likewise.  Set stack usage info.
10343         * config/i386/i386.c (ix86_expand_prologue): Likewise.
10344         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10345         * config/mips/mips.c (mips_expand_prologue): Likewise.
10346         * config/pa/pa.c (hppa_expand_prologue): Likewise.
10347         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10348         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10349
10350 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
10351
10352         PR tree-optimization/45427
10353         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
10354         Handle the case that the exit is never taken correctly.
10355         (number_of_iterations_ne): Pass exit_must_be_taken to
10356         number_of_iterations_ne_max.
10357
10358 2010-08-30  Catherine Moore  <clm@codesourcery.com>
10359
10360         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
10361         Infer -mdspr2 for the the 74K.
10362
10363 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
10364
10365         PR debug/45419
10366         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
10367
10368         PR middle-end/45423
10369         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
10370         and TRUTH_{AND,OR,XOR}_EXPR.
10371         * c-parser.c (c_parser_omp_atomic): Handle boolean
10372         {PRE,POST}_{INC,DEC}REMENT.
10373
10374 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
10375
10376         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
10377         (function_arg): Delete.
10378         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10379         (FUNCTION_INCOMING_ARG): Delete.
10380         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
10381         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
10382         and a bool.
10383         (function_arg): Rename to...
10384         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
10385         a bool.
10386         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
10387         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10388         (TARGET_FUNCTION_INCOMING_ARG): Define.
10389
10390 2010-08-30  Richard Guenther  <rguenther@suse.de>
10391
10392         PR tree-optimization/21602
10393         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
10394         using points-to information.
10395
10396 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
10397
10398         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
10399
10400 2010-08-30  Richard Guenther  <rguenther@suse.de>
10401
10402         PR tree-optimization/45449
10403         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
10404         variables.
10405
10406 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
10407
10408         * opts.h (CL_ERR_NEGATIVE): Define.
10409         * opts.c (unknown_option_callback): Don't postpone warnings for
10410         options marked with CL_ERR_NEGATIVE.
10411         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
10412         for negative versions of CL_REJECT_NEGATIVE options.
10413
10414 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
10415
10416         * config/i386/i386.md (zero_extendsidi2_1): Rename from
10417         zero_extendsidi2_32.
10418         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
10419         using SWI12 mode iterator.
10420         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
10421         to define_insn_and_split pattern.
10422         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
10423         using SWI24 mode iterator.
10424         (*zero_extendqi<mode>2_and): Macroize insn from
10425         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
10426         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
10427         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
10428         SWI24 mode iterator.
10429         (*zero_extendqi<mode>2_movzbl): Ditto from
10430         *zero_extendqi{hi,si}2_movzbl.
10431         (extendsidi2_1): Rename from extendsidi2_32.
10432         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
10433         SWI12 mode iterator.
10434
10435 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
10436
10437         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
10438         general purpose registers.
10439         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
10440         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
10441         with general purpose registers and memory operands.  Add associated
10442         CCImode post-reload splitter.
10443         * config/ia64/div.md: Change BImode to CCImode throughout.
10444
10445 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
10446
10447         * config/ia64/ia64.md (cstorebi4): Fix thinko.
10448
10449 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
10450
10451         * config/picochip/picochip.c (reorder_var_tracking_notes): This
10452         function was dropping debug insns which caused PR45299.
10453
10454 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
10455
10456         * config/i386/sse.md (extsuffix): New code attribute.
10457         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
10458         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
10459         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
10460         and sse4_1_zero_extendv4qiv4si2.
10461         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
10462         and sse4_1_zero_extendv2qiv2di2.
10463         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
10464         and sse4_1_zero_extendv4hiv4si2.
10465         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
10466         and sse4_1_zero_extendv2hiv2di2.
10467         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
10468         and sse4_1_zero_extendv2siv2di2
10469
10470         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
10471         using any_extend code iterator.
10472         (*avx_<s>mulv8hi3_highpart): Macroize insn from
10473         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
10474         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
10475
10476         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
10477         gen_sse4_1_sign_extend* functions.
10478         (struct builtin_description bdesc_args): Ditto.
10479
10480 2010-08-27  Xinliang David Li  <davidxl@google.com>
10481
10482         PR/45422
10483         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
10484         (iv_ca_set_no_cp): Update used inv expr count.
10485         (iv_ca_set_cp): Ditto.
10486         (iv_ca_new): Initialize new member.
10487         (iv_ca_free): Free memory.
10488
10489 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
10490
10491         * config/sh/sh-protos.h (sh_function_arg): Delete.
10492         (sh_function_arg_advance): Delete.
10493         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10494         (PASS_IN_REG_P): Eliminate cast.
10495         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
10496         const_tree and a bool.
10497         (sh_function_arg): Likewise.
10498         (sh_output_mi_thunk): Call sh_function_arg_advance) and
10499         sh_function_arg.
10500         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10501
10502 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
10503             Kaz Kojima  <kkojima@gcc.gnu.org>
10504
10505         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
10506         when possible.
10507         (sh_expand_epilogue): Likewise.
10508         * config/sh/sh.md (movml_push_banked): New insn.
10509         (movml_pop_banked): Likewise.
10510
10511 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
10512
10513         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
10514         gen_regexp_oneof, gen_regexp_sequence): Use the string found
10515         in vector element 0 rather than the original string when there's
10516         only one element.
10517         (gen_regexp): Remove extra semicolon.
10518
10519         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
10520         thumb2_movsf_vfp): Set attribute "insn".
10521         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
10522         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
10523         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
10524         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
10525         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
10526         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
10527         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
10528         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
10529         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
10530         if_not_arith, if_arith_not, cond_move_not): Likewise.
10531
10532 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10533
10534         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
10535         New declaration.
10536         (rs6000_allocate_stack_temp): Ditto.
10537         (rs6000_expand_convert_si_to_sfdf): Ditto.
10538
10539         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
10540         line.  Update the options set if power6 or power7 server/embedded
10541         type options are used.  If we give a warning for no vsx under
10542         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
10543         (rs6000_allocate_stack_temp): New function to allocate a stack
10544         tempoary and adjust the address so it meets either REG+OFFSET or
10545         REG+REG addressing requirements.
10546         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
10547         that they can be used with the LFIWAX/LFIWZX instrucitons.
10548         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
10549         converting signed/unsigned SImode to either SFmode/DFmode.
10550
10551         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
10552         whether certain instructions can be generated.
10553         (TARGET_FCTIDZ): Ditto.
10554         (TARGET_STFIWX): Ditto.
10555         (TARGET_LFIWAX): Ditto.
10556         (TARGET_LFIWZX): Ditto.
10557         (TARGET_FCFIDS): Ditto.
10558         (TARGET_FCFIDU): Ditto.
10559         (TARGET_FCFIDUS): Ditto.
10560         (TARGET_FCTIDUZ): Ditto.
10561         (TARGET_FCTIWUZ): Ditto.
10562
10563         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
10564         (UNSPEC_FCTID): Ditto.
10565         (UNSPEC_LFIWAX): Ditto.
10566         (UNSPEC_LFIWZX): Ditto.
10567         (UNSPEC_FCTIWUZ): Ditto.
10568         (rreg): Use correct constraints.
10569         (SI_CONVERT_FP): New mode attribute for floating point conversion
10570         tests.
10571         (E500_CONVERT): Ditto.
10572         (lfiwax): New insns for converting from integer to floating point
10573         utilizing newer instructions.  Attempt to optimize conversions
10574         that come from memory so that we don't load the value into a GPR,
10575         spill it to the stack and reload it into a FPR.
10576         (floatsi<mode>2_lfiwax): Ditto.
10577         (floatsi<mode>2_lfiwax_mem): Ditto.
10578         (floatsi<mode>2_lfiwax_mem2): Ditto.
10579         (lfiwzx): Ditto.
10580         (floatunssi<mode>2_lfiwzx): Ditto.
10581         (floatunssi<mode>2_lfiwzx_mem): Ditto.
10582         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
10583         (floatdidf2_mem): Ditto.
10584         (floatunsdidf2_fcfidu): Ditto.
10585         (floatunsdidf2_mem): Ditto.
10586         (floatunsdisf2): Ditto.
10587         (floatunsdisf2_fcfidus): Ditto.
10588         (floatunsdisf2_mem): Ditto.
10589         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
10590         Use FCFID on 32-bit hosts that support it.
10591         (floatsidf2_internal): Ditto.
10592         (floatunssisf2): Ditto.
10593         (floatunssidf2): Ditto.
10594         (floatunssidf2_internal): Ditto.
10595         (floatsisf2): Ditto.
10596         (floatdidf2): Ditto.
10597         (floatdidf2_fpr): Ditto.
10598         (floatunsdidf2): Ditto.
10599         (floatdisf2): Ditto.
10600         (floatdisf2_fcfids): Ditto.
10601         (floatdisf2_internal1): Ditto.
10602         (fixuns_truncsfsi2): Delete, merge into common pattern for both
10603         SF/DF.  Add power7 support.
10604         (fix_truncsfsi2): Ditto.
10605         (fixuns_truncdfsi2): Ditto.
10606         (fixuns_truncdfdi2): Ditto.
10607         (fix_truncdfsi2): Ditto.
10608         (fix_truncdfsi2_internal): Ditto.
10609         (fix_truncdfsi2_internal_gfxopt): Ditto.
10610         (fix_truncdfsi2_mfpgpr): Ditto.
10611         (fctiwz): Ditto.
10612         (btruncdf2): Ditto.
10613         (btruncdf2_fpr): Ditto.
10614         (btructsf2): Ditto.
10615         (ceildf2): Ditto.
10616         (ceildf2_fpr): Ditto.
10617         (ceilsf2): Ditto.
10618         (floordf2): Ditto.
10619         (floordf2_fpr): Ditto.
10620         (floorsf2): Ditto.
10621         (rounddf2): Ditto.
10622         (rounddf2_fpr): Ditto.
10623         (roundsf2): Ditto.
10624         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
10625         (fix_trunc<mode>di2): Ditto.
10626         (fixuns_trunc<mode>si2): Ditto.
10627         (fixuns_trunc<mode>di2): Ditto.
10628         (fctiwz_<mode>): Ditto.
10629         (btrunc<mode>2): Ditto.
10630         (btrunc<mode>2_fpr): Ditto.
10631         (ceil<mode>2): Ditto.
10632         (ceil<mode>2_fpr): Ditto.
10633         (floor<mode>2): Ditto.
10634         (float<mode>2_fpr): Ditto.
10635         (round<mode>2): Ditto.
10636         (round<mode>2_fpr): Ditto.
10637         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
10638         (fixuns_trunc<mode>si2_stfiwx): Ditto.
10639         (fix_truncdfsi2_internal): Ditto.
10640         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
10641         converted value on stack, loaded into GPR, and then stored into
10642         the final destination.
10643         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
10644         FCTIDZ.
10645         (lrint<mode>di2): New insn, provide the lrint builtin functions.
10646         (ftruncdf2): Delete, unused.
10647         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
10648
10649         * config/rs6000/vsx.md (toplevel): Update copyright year.
10650         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
10651         (VSr3): Ditto.
10652
10653 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
10654             Jeremie Salvucci  <jeremie.salvucci@free.fr>
10655
10656         * gengtype.c (output_type_enum): Test the right union member.
10657
10658 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
10659
10660         PR target/41484
10661         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
10662         operands for operand 1.
10663         (sse4_1_extendv4qiv4si2): Ditto.
10664         (sse4_1_extendv2qiv2di2): Ditto.
10665         (sse4_1_extendv4hiv4si2): Ditto.
10666         (sse4_1_extendv2hiv2di2): Ditto.
10667         (sse4_1_extendv2siv2di2): Ditto.
10668         (sse4_1_zero_extendv8qiv8hi2): Ditto.
10669         (sse4_1_zero_extendv4qiv4si2): Ditto.
10670         (sse4_1_zero_extendv2qiv2di2): Ditto.
10671         (sse4_1_zero_extendv4hiv4si2): Ditto.
10672         (sse4_1_zero_extendv2hiv2di2): Ditto.
10673         (sse4_1_zero_extendv2siv2di2): Ditto.
10674         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
10675         (*sse4_1_extendv4qiv4si2): Ditto.
10676         (*sse4_1_extendv2qiv2di2): Ditto.
10677         (*sse4_1_extendv4hiv4si2): Ditto.
10678         (*sse4_1_extendv2hiv2di2): Ditto.
10679         (*sse4_1_extendv2siv2di2): Ditto.
10680         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
10681         (*sse4_1_zero_extendv4qiv4si2): Ditto.
10682         (*sse4_1_zero_extendv2qiv2di2): Ditto.
10683         (*sse4_1_zero_extendv4hiv4si2): Ditto.
10684         (*sse4_1_zero_extendv2hiv2di2): Ditto.
10685         (*sse4_1_zero_extendv2siv2di2): Ditto.
10686
10687 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
10688
10689         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
10690         (mips_function_arg): Delete.
10691         (mips_function_arg_boundary): Take a const_tree.
10692         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
10693         (mips_arg_info): Likewise.
10694         (mips_setup_incoming_varargs): Call mips_function_arg_advance
10695         instead of FUNCTION_ARG_ADVANCE.
10696         (mips_function_arg_advance): Adjust prototype.  Make static.
10697         (mips_function_arg): Likewise.
10698         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10699         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
10700
10701 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
10702
10703         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10704         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
10705         (function_arg): Delete.
10706         (function_arg_boundary): Take a const_tree.
10707         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
10708         (rs6000_spe_function_arg): Likewise.
10709         (rs6000_parm_start): Likewise.
10710         (rs6000_arg_size): Likewise.
10711         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
10712         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
10713         (rs6000_mixed_function_arg): Likewise.
10714         (function_arg): Rename to...
10715         (rs6000_function_arg): ...this.
10716         (function_arg_advance): Rename to...
10717         (rs6000_function_arg_advance_1): ...this
10718         (rs6000_function_arg_advance): New function.  Call it.
10719         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
10720         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
10721         (rs6000_function_value): Likewise.
10722         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10723
10724 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10725
10726         * config/arm/arm.md (enabled): Test the value of arch_enabled
10727         rather than just using it.
10728
10729 2010-08-27  Olivier Hainque  <hainque@adacore.com>
10730             Eric Botcazou  <ebotcazou@adacore.com>
10731
10732         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
10733         cover all the possible offsets from this base.
10734         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
10735
10736 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
10737
10738         PR tree-optimization/44485
10739         * calls.c (flags_from_decl_or_type): For const or pure
10740         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
10741         together with ECF_CONST resp. ECF_PURE.
10742         * builtins.c (expand_builtin): Use flags_from_decl_or_type
10743         instead of querying flags directly.
10744         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
10745         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
10746
10747 2010-08-26  Richard Guenther  <rguenther@suse.de>
10748
10749         PR tree-optimization/45255
10750         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
10751         and externals are also invariant.
10752
10753 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
10754
10755         PR rtl-optimization/44858
10756         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
10757         newi2pat, make sure they don't affect newpat.
10758
10759         PR rtl-optimization/45400
10760         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
10761         SUBREG_REG if both modes are of MODE_INT class.
10762
10763 2010-08-25  Julian Brown  <julian@codesourcery.com>
10764
10765         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
10766         * config/arm/arm.md (generic_sched): No for Cortex-A5.
10767         (generic_vfp): Likewise.
10768         (cortex-a5.md): Include.
10769         * config/arm/cortex-a5.md: New.
10770
10771 2010-08-25  Richard Guenther  <rguenther@suse.de>
10772
10773         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
10774         * gimple.c (gimple_get_alias_set): Remove special handling
10775         for pointers.
10776
10777 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10778
10779         PR middle-end/45355
10780         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
10781         dead_or_set_p when computing i0_feeds_i2_n.
10782
10783         * combine.c (find_split_point): Undo canonicalization of multiply-add
10784         to (minus x (mult)) when it seems likely that this will increase the
10785         chances of a split.
10786
10787 2010-08-25  Richard Guenther  <rguenther@suse.de>
10788
10789         PR lto/44562
10790         * lto-streamer.c (lto_record_common_node): Do not mess with
10791         TYPE_CANONICAL when not in lto.
10792         * gimple.c (gimple_register_type): Likewise.
10793
10794 2010-08-25  Richard Guenther  <rguenther@suse.de>
10795
10796         PR tree-optimization/45316
10797         * tree-ssa-pre.c (eliminate): Properly clean EH info.
10798
10799 2010-08-25  Richard Guenther  <rguenther@suse.de>
10800
10801         PR tree-optimization/45393
10802         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
10803         and clean EH info.  Avoid SSA update.
10804         (execute_cse_sincos): Cleanup the CFG if it has changed.
10805
10806 2010-08-25  Richard Guenther  <rguenther@suse.de>
10807
10808         PR middle-end/45379
10809         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
10810         TARGET_MEM_REF in alignment computation.
10811
10812 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
10813
10814         PR tree-optimization/45059
10815         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
10816         type conversions from newop{1,2}.  Assert t is a comparison and
10817         newop{1,2} after the stripping are gimple vals.
10818
10819 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
10820
10821         * config/arm/iterators.md (VU, SE, V_widen_l): New.
10822         (V_unpack, US): New.
10823         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
10824         (vec_unpack<US>_lo_<mode>): Likewise.
10825         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
10826         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10827         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
10828         (vec_widen_<US>mult_hi_<mode>): Likewise.
10829         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
10830         (neon_vec_<US>mult_hi_<mode>"): Likewise.
10831         (neon_unpack<US>_<mode>): Widening move intermediate step for
10832         vectorizing without -mvectorize-with-neon-quad.
10833         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
10834         for vectorizing without -mvectorize-with-neon-quad.
10835         * config/arm/predicates.md (vect_par_constant_high): Check for
10836         high-half lanes of a vector.
10837         (vect_par_constant_low): Check for low-half lanes of a vector.
10838
10839 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10840
10841         * tree-if-conv.c (struct ifc_dr): New.
10842         (IFC_DR): New.
10843         (DR_WRITTEN_AT_LEAST_ONCE): New.
10844         (DR_RW_UNCONDITIONALLY): New.
10845         (memref_read_or_written_unconditionally): Use the cached values
10846         when possible.
10847         (write_memref_written_at_least_once): Same.
10848         (if_convertible_loop_p): Initialize and free DR->aux fields.
10849
10850 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10851
10852         * gimple.c (gimple_could_trap_p_1): Not static anymore.
10853         Pass an extra bool parameter include_mem.
10854         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
10855         (gimple_assign_rhs_could_trap_p): Same.
10856         * gimple.h (gimple_could_trap_p_1): Declared.
10857         * tree-data-ref.h (same_data_refs_base_objects): New.
10858         (same_data_refs): New.
10859         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
10860         (write_memrefs_written_at_least_once): New.
10861         (ifcvt_memrefs_wont_trap): New.
10862         (operations_could_trap): New.
10863         (ifcvt_could_trap_p): New.
10864         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
10865         Gets a vector of data refs.
10866         (if_convertible_stmt_p): Same.
10867         (if_convertible_loop_p_1): New.
10868         (if_convertible_loop_p): Call if_convertible_loop_p_1.
10869
10870 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10871
10872         * common.opt (ftree-loop-if-convert-stores): New flag.
10873         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
10874         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
10875         the created statement before GSI.
10876         (if_convertible_phi_p): Allow virtual phi nodes when
10877         flag_loop_if_convert_stores is set.
10878         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
10879         Do not handle types that do not match is_gimple_reg_type.
10880         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
10881         when flag_loop_if_convert_stores is set, as LHS can contain
10882         memory refs.
10883         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
10884         to if_convertible_gimple_assign_stmt_p.
10885         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
10886         (replace_phi_with_cond_gimple_assign_stmt): Renamed
10887         predicate_scalar_phi.  Do not handle virtual phi nodes.
10888         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
10889         Call predicate_scalar_phi.
10890         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
10891         just after the labels for flag_loop_if_convert_stores, otherwise
10892         insert the predicate in the end of the BB.
10893         (predicate_mem_writes): New.
10894         (combine_blocks): Call predicate_all_scalar_phis.  When
10895         flag_loop_if_convert_stores is set, call predicate_mem_writes.
10896         (tree_if_conversion): Call mark_sym_for_renaming when
10897         flag_loop_if_convert_stores is set.
10898         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
10899         flag_loop_if_convert_stores is set.
10900
10901 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
10902
10903         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
10904         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
10905         (pa_function_value): Make static.
10906         (override_options): Rename to...
10907         (pa_option_override): ...this. Make static.
10908         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
10909         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
10910         TARGET_OPTION_OVERRIDE): Define.
10911         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
10912         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
10913         Remove.
10914         * config/pa/pa-protos.h (override_options): Remove.
10915
10916 2010-08-24  Richard Guenther  <rguenther@suse.de>
10917
10918         PR middle-end/45379
10919         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
10920         if addr->index is NULL or zero.
10921         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
10922         TARGET_MEM_REF more properly.
10923         (indirect_ref_may_alias_decl_p): Likewise.
10924         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
10925         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
10926
10927 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
10928
10929         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
10930         (m32c_override_options): Rename to...
10931         (m32c_option_override): ...this. Make static.
10932         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
10933         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
10934         Remove.
10935         * config/m32c/m32c-protos.h (m32c_override_options,
10936         m32c_function_value_regno_p): Remove.
10937
10938 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10939
10940         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
10941         Fix a typo in a previous commit.
10942
10943 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
10944
10945         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
10946         Pre-initialize innerloop_iters to one.
10947
10948 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10949
10950         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
10951         existing static function global.
10952
10953         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
10954         is changed to global.
10955
10956         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10957         may_be_nonaddressable_p on base, and don't collect this reference
10958         if the address of the base could not be taken.
10959
10960 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10961
10962         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10963         enable the compiler to autovectorize mathmetical functions for
10964         power7 using the Mathematical Acceleration Subsystem library.
10965
10966         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10967         handle which vector math library we have.
10968         (rs6000_override_options): Add -mveclibabi=mass support.
10969         (rs6000_builtin_vectorized_libmass): New function to handle auto
10970         vectorizing math functions that are in the MASS library.
10971         (rs6000_builtin_vectorized_function): Call it.
10972
10973         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10974         -mveclibabi=mass.
10975
10976 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10977
10978         PR boehm-gc/34544
10979         * gthr-posix.h (__gthread_active_init): Delete.
10980         (__gthread_active_p): Do activity check here.
10981         Don't include errno.h on hppa-hpux.  Update comment.
10982         * gthr-posix95.h (__gthread_active_init): Delete.
10983         (__gthread_active_p): Do activity check here.
10984         Don't include errno.h on hppa-hpux.  Update comment.
10985         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10986         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10987         add -lpthread when -mt or -pthread is specified.
10988         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10989         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10990         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10991         (stublib.c, pthread_default_stacksize_np-stub.o,
10992         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10993         $(T)libgcc_stub.a): Add methods.
10994         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10995         (stublib.c, pthread_default_stacksize_np-stub.o,
10996         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10997         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10998         pthread_mutex_unlock): New stubs.
10999
11000 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
11001
11002         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
11003         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
11004         options.
11005         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
11006         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
11007         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
11008         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
11009         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
11010         "-l".
11011         * cppspec.c: Include opts.h.
11012         (lang_specific_driver): Use cl_decoded_option structures.
11013         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
11014         * doc/tm.texi: Regenerate.
11015         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
11016         (driver_handle_option): Allow driver options needing no special
11017         processing.
11018         (process_command): Decode options before call to
11019         lang_specific_driver.  Pass decoded options to
11020         lang_specific_driver.
11021         * gcc.h (lang_specific_driver): Update prototype.
11022         * gccspec.c: Include opts.h.
11023         (lang_specific_driver): Use cl_decoded_option structures.
11024         * opts-common.c (option_ok_for_language, generate_option,
11025         generate_option_input_file): New.
11026         (decode_cmdline_option): Use option_ok_for_language.
11027         (decode_cmdline_options_to_array): Use generate_option_input_file.
11028         (handle_generated_option): Use generate_option.
11029         * opts.h (generate_option, generate_option_input_file): Declare.
11030
11031 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
11032
11033         * config/mips/mips.c (mips_override_options): Rename to...
11034         (mips_option_override): ...this. Make static.
11035         (TARGET_OPTION_OVERRIDE): Define.
11036         (mips_in_small_data_p): Update comment.
11037         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
11038         (FIXED_REGISTERS): Update comment.
11039         * config/mips/mips-protos.h (mips_override_options): Remove.
11040
11041 2010-08-21  Olivier Hainque  <hainque@adacore.com>
11042
11043         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
11044
11045 2010-08-21  Olivier Hainque  <hainque@adacore.com>
11046
11047         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
11048         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
11049
11050 2010-08-20  Jan Hubicka  <jh@suse.cz>
11051
11052         * tree-pass.h (pass_ipa_cdtor_merge): New function.
11053         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
11054         heap allocated.
11055         (record_cdtor_fn): Move to ipa.c; do not test for
11056         have_ctors_dtors.
11057         (build_cdtor): Move to ipa.c; add code avoiding construction
11058         when target have ctors/dtors and there is only one ctor/dtor at given
11059         priority.
11060         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
11061         sort; reverse order of constructors.
11062         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
11063         (cgraph_finalize_function): Do not call record_cdtor_fn.
11064         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
11065         (cgraph_build_static_cdtor): Move to ipa.c.
11066         * ipa.c: Include target.h and tree-iterator.h.
11067         (cgraph_build_static_cdtor, static_ctors, static_dtors,
11068         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
11069         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
11070         pass_ipa_cdtor_merge): New.
11071         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
11072         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
11073         bounds access.
11074
11075 2010-08-20  Jan Hubicka  <jh@suse.cz>
11076
11077         PR c++/45307
11078         PR c++/17736
11079         * cgraph.h (cgraph_only_called_directly_p,
11080         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
11081         static cdtors.
11082         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
11083         are not needed.
11084         (cgraph_finalize_function): Static cdtors are reachable.
11085         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
11086
11087 2010-08-20  Jan Hubicka  <jh@suse.cz>
11088
11089         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
11090         flag_wpa.
11091         * lto-streamer-out.c (lto_output): Likewise.
11092         * passes.c (ipa_write_optimization_summaries): Initialize statement
11093         uids.
11094
11095 2010-08-20  Olivier Hainque  <hainque@adacore.com>
11096
11097         * tree.h (alias_diag_flags): New enum.
11098         (alias_pair): Add an 'emitted_diags' field.
11099         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
11100         (assemble_alias): Initialize emitted_diags of new pairs.
11101
11102 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
11103
11104         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
11105         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11106         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
11107         (STACK_CHECK_PROTECT): Define.
11108         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
11109         (output_probe_stack_range): Likewise.
11110         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
11111         builtin stack checking is enabled.
11112         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
11113         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
11114         (probe_stack_range): New insn.
11115
11116 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
11117
11118         PR target/45336
11119         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
11120         short first.
11121
11122         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
11123         char first.
11124
11125 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11126
11127         PR target/45336
11128         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
11129         to cover zero extension into 64-bit register.
11130         (*sse2_pextrw): Likewise.
11131         (*sse4_1_pextrd_zext): New insn.
11132
11133 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
11134
11135         revert r163410, partially revert r163267.
11136         * config/rs6000/darwin.h (LIB_SPEC): Remove.
11137         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
11138         Darwin versions.
11139
11140 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11141
11142         PR middle-end/44974
11143         * builtins.c (expand_builtin): Don't optimize away
11144         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
11145
11146 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
11147
11148         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
11149         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
11150         alternative 1 of operand 2.
11151
11152 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11153             Paolo Bonzini  <bonzini@gnu.org>
11154
11155         * simplify-rtx.c (simplify_unary_operation_1): Optimize
11156         (sign_extend (zero_extend (...)) and
11157         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
11158
11159 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11160
11161         PR rtl-optimization/45353
11162         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
11163         after bb_note is a BARRIER.
11164
11165 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
11166
11167         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
11168         linking libgcc.a.
11169
11170 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
11171             Michael Matz  <matz@suse.de>
11172
11173         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
11174
11175 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
11176
11177         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
11178         (ggc_mark_roots): ...here.
11179
11180 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
11181
11182         * vec.h (FOR_EACH_VEC_ELT): Define.
11183         * c-decl.c: Use it.
11184         * cfgloop.c: Likewise.
11185         * cfgloopmanip.c: Likewise.
11186         * cgraph.c: Likewise.
11187         * cgraphunit.c: Likewise.
11188         * combine.c: Likewise.
11189         * config/bfin/bfin.c: Likewise.
11190         * config/mips/mips.c: Likewise.
11191         * config/rs6000/rs6000.c: Likewise.
11192         * dbxout.c: Likewise.
11193         * df-scan.c: Likewise.
11194         * dominance.c: Likewise.
11195         * dse.c: Likewise.
11196         * dwarf2out.c: Likewise.
11197         * except.c: Likewise.
11198         * expr.c: Likewise.
11199         * function.c: Likewise.
11200         * gcse.c: Likewise.
11201         * genattr.c: Likewise.
11202         * ggc-common.c: Likewise.
11203         * gimplify.c: Likewise.
11204         * graphite-blocking.c: Likewise.
11205         * graphite-clast-to-gimple.c: Likewise.
11206         * graphite-dependences.c: Likewise.
11207         * graphite-interchange.c: Likewise.
11208         * graphite-poly.c: Likewise.
11209         * graphite-scop-detection.c: Likewise.
11210         * graphite-sese-to-poly.c: Likewise.
11211         * graphite.c: Likewise.
11212         * haifa-sched.c: Likewise.
11213         * ifcvt.c: Likewise.
11214         * implicit-zee.c: Likewise.
11215         * ipa-prop.c: Likewise.
11216         * ipa-struct-reorg.c: Likewise.
11217         * ipa.c: Likewise.
11218         * ira-build.c: Likewise.
11219         * ira-color.c: Likewise.
11220         * ira-emit.c: Likewise.
11221         * lambda-code.c: Likewise.
11222         * loop-invariant.c: Likewise.
11223         * loop-unroll.c: Likewise.
11224         * lower-subreg.c: Likewise.
11225         * lto-cgraph.c: Likewise.
11226         * lto-opts.c: Likewise.
11227         * lto-streamer-in.c: Likewise.
11228         * lto-streamer-out.c: Likewise.
11229         * lto-streamer.c: Likewise.
11230         * lto-symtab.c: Likewise.
11231         * matrix-reorg.c: Likewise.
11232         * opts.c: Likewise.
11233         * predict.c: Likewise.
11234         * print-tree.c: Likewise.
11235         * sdbout.c: Likewise.
11236         * sel-sched-dump.c: Likewise.
11237         * sel-sched-ir.c: Likewise.
11238         * sel-sched.c: Likewise.
11239         * sese.c: Likewise.
11240         * stor-layout.c: Likewise.
11241         * tree-cfg.c: Likewise.
11242         * tree-cfgcleanup.c: Likewise.
11243         * tree-chrec.c: Likewise.
11244         * tree-data-ref.c: Likewise.
11245         * tree-emutls.c: Likewise.
11246         * tree-inline.c: Likewise.
11247         * tree-into-ssa.c: Likewise.
11248         * tree-loop-distribution.c: Likewise.
11249         * tree-loop-linear.c: Likewise.
11250         * tree-mudflap.c: Likewise.
11251         * tree-outof-ssa.c: Likewise.
11252         * tree-parloops.c: Likewise.
11253         * tree-predcom.c: Likewise.
11254         * tree-pretty-print.c: Likewise.
11255         * tree-scalar-evolution.c: Likewise.
11256         * tree-ssa-live.c: Likewise.
11257         * tree-ssa-loop-im.c: Likewise.
11258         * tree-ssa-loop-ivcanon.c: Likewise.
11259         * tree-ssa-loop-ivopts.c: Likewise.
11260         * tree-ssa-loop-manip.c: Likewise.
11261         * tree-ssa-loop-niter.c: Likewise.
11262         * tree-ssa-loop-prefetch.c: Likewise.
11263         * tree-ssa-phiprop.c: Likewise.
11264         * tree-ssa-pre.c: Likewise.
11265         * tree-ssa-reassoc.c: Likewise.
11266         * tree-ssa-sccvn.c: Likewise.
11267         * tree-ssa-structalias.c: Likewise.
11268         * tree-ssa.c: Likewise.
11269         * tree-vect-data-refs.c: Likewise.
11270         * tree-vect-loop-manip.c: Likewise.
11271         * tree-vect-loop.c: Likewise.
11272         * tree-vect-patterns.c: Likewise.
11273         * tree-vect-slp.c: Likewise.
11274         * tree-vect-stmts.c: Likewise.
11275         * tree-vrp.c: Likewise.
11276         * tree.c: Likewise.
11277         * value-prof.c: Likewise.
11278         * var-tracking.c: Likewise.
11279         * varasm.c: Likewise.
11280         * vmsdbgout.c: Likewise.
11281
11282 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
11283             Richard Guenther  <richard.guenther@gmail.com>
11284
11285         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
11286         copy the src value and return a copy.
11287         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
11288         (C++ Volatiles): Adjust to describe C++ semantics only.
11289
11290 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
11291
11292         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
11293         be zero or nonzero.
11294         * doc/tm.texi: Regenerate.
11295         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
11296         * df-scan.c (df_get_exit_block_use_set), reginfo.c
11297         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
11298         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
11299         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
11300         to 1.
11301
11302 2010-08-20  Olivier Hainque  <hainque@adacore.com>
11303
11304         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
11305         an extra nop past a sibling call at the very end.
11306
11307 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
11308
11309         PR bootstrap/45350
11310         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
11311         a comment.
11312
11313 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
11314
11315         * target.def (function_arg, function_incoming_arg): Remove const
11316         qualifier on CUMULATIVE_ARGS parameter.
11317         * targhooks.h (default_function_arg, default_function_incoming_arg):
11318         Likewise.
11319         * targhooks.c (default_function_arg, default_function_incoming_arg):
11320         Likewise.
11321         * config/i386/i386.c (ix86_function_arg): Likewise.
11322
11323 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
11324
11325         PR target/45336
11326         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
11327         SIGN_EXTENDs or ZERO_EXTENDs.
11328
11329 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
11330
11331         PR target/42172
11332         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
11333         Take its cost into account if nonnull.
11334         (insn_a_feeds_b): New static function.
11335         (combine_instructions): Look for four-insn combinations.
11336         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
11337         them into account when computing all_adjacent and looking for other
11338         uses.
11339         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
11340         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
11341         (try_combine): New arg I0.  Handle four-insn combinations.
11342         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
11343         like ELIM_I1.
11344
11345 2010-08-19  Jason Merrill  <jason@redhat.com>
11346
11347         PR c++/45307
11348         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
11349         if ctor is empty.
11350         (gimplify_modify_expr_rhs): Adjust.
11351
11352 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
11353
11354         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
11355         bitmap_bit_p.
11356         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
11357         * dominance.c (iterate_fix_dominators): Likewise.
11358         * dse.c (set_usage_bits): Likewise.
11359         (set_position_unneeded, record_store): Likewise.
11360         * gimple-fold.c (get_maxval_strlen): Likewise.
11361         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
11362         * ipa-inline.c (update_caller_keys): Likewise.
11363         * ipa-split.c (verify_non_ssa_vars): Likewise.
11364         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
11365         (close_type_exposed_parameter, close_type_full_escape): Likewise.
11366         (close_addressof_down): Likewise.
11367         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
11368         (setup_allocno_left_conflicts_size): Likewise.
11369         (ira_reassign_conflict_allocnos): Likewise.
11370         (ira_reassign_pseudos): Likewise.
11371         * ira-emit.c (change_loop): Likewise.
11372         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
11373         * lto-streamer-out.c (write_symbol): Likewise.
11374         * predict.c (expr_expected_value_1): Likewise.
11375         * regstat.c (regstat_bb_compute_ri): Likewise.
11376         * sel-sched.c (create_block_for_bookkeeping): Likewise.
11377         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
11378         * stmt.c (expand_case): Likewise.
11379         * tree-eh.c (emit_eh_dispatch): Likewise.
11380         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
11381         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
11382         Likewise.
11383         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
11384         (rdg_build_components): Likewise.
11385         * tree-object-size.c (collect_object_sizes_for): Likewise.
11386         * tree-sra.c (convert_callers): Likewise.
11387         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
11388         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
11389         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
11390
11391 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
11392
11393         * config/i386/i386.md (*lea_1): Use P mode iterator.
11394         (lea add splitter): Also handle DImode operands.
11395         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
11396         predicate.  Do not use ix86_lea_for_add_ok.
11397         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
11398         (lea ashift splitter): Also handle DImode operands.
11399         (DImode lea ashift splitter): Remove splitter.
11400
11401 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
11402
11403         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
11404         ix86_binary_operator_ok.
11405
11406 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
11407
11408         PR rtl-optimization/44691
11409         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
11410         is not a register.
11411
11412 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
11413
11414         PR target/45070
11415         * config/arm/arm.c (arm_output_epilogue): Ensure that return
11416          value of size 1-3 is handled correctly.
11417
11418 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
11419
11420         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
11421         type for the conditional has wide enough range.
11422
11423 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
11424
11425         PR target/45327
11426         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
11427         ix86_binary_operator_ok.
11428
11429 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
11430
11431         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
11432         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
11433         code to output insn mnemonic.  Fix comment.
11434         (*addsi_1_zext): Add r-r-0 alternative 1.
11435         <TYPE_LEA>: Split insn to lea.
11436         <default>: Handle alternative 1.
11437         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
11438         multi-level if_then_else RTX to set "type" attribute.
11439         <default>: Handle alternative 2.
11440         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
11441         Use cond RTX instead of multi-level if_then_else RTX to set
11442         "type" attribute.
11443         <default>: Handle alternatives 2 and 4.
11444         (lea splitters): Update calls to ix86_lea_for_add_ok.
11445
11446         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
11447         argument.
11448         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
11449
11450 2010-08-18  Richard Guenther  <rguenther@suse.de>
11451
11452         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
11453         use operand helpers.
11454
11455 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
11456
11457         PR middle-end/45292
11458         * optabs.c (expand_bool_compare_and_swap): Expand pending
11459         pops before trying the optab.
11460
11461 2010-08-18  Yao Qi  <yao@codesourcery.com>
11462
11463         PR target/45094
11464         * config/arm/arm.c (output_move_double): Fix typo generating
11465         instructions ('ldr'->'str').
11466
11467 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11468
11469         PR rtl-optimization/42575
11470         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
11471         live ranges.
11472
11473 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11474
11475         * config/arm/arm-protos.h (arm_expand_sync): New.
11476         (arm_output_memory_barrier, arm_output_sync_insn): New.
11477         (arm_sync_loop_insns): New.
11478         * config/arm/arm.c (FL_ARCH7): New.
11479         (FL_FOR_ARCH7): Include FL_ARCH7.
11480         (arm_arch7): New.
11481         (arm_print_operand): Support %C markup.
11482         (arm_legitimize_sync_memory): New.
11483         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
11484         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
11485         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
11486         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
11487         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
11488         (arm_process_output_sync_insn, arm_output_sync_insn): New.
11489         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
11490         * config/arm/arm.h (struct arm_sync_generator): New.
11491         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
11492         (TARGET_HAVE_MEMORY_BARRIER): New.
11493         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
11494         * config/arm/arm.md: Include sync.md.
11495         (UNSPEC_MEMORY_BARRIER): New.
11496         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
11497         (VUNSPEC_SYNC_OP):New.
11498         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
11499         (sync_result, sync_memory, sync_required_value): New attributes.
11500         (sync_new_value, sync_t1, sync_t2): Likewise.
11501         (sync_release_barrier, sync_op): Likewise.
11502         (length): Add logic to length attribute defintion to call
11503         arm_sync_loop_insns when appropriate.
11504         * config/arm/sync.md: New file.
11505
11506 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
11507
11508         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
11509         ENABLE_TREE_CHECKING.
11510         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
11511         and GCC >= 4.3.
11512
11513 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
11514
11515         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
11516         or optimizing for size, always avoid lea if possible.
11517
11518         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
11519
11520 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
11521
11522         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
11523         Dunmmy function with NULL return unless the target is
11524         OSX >= 10.6 (Darwin10).
11525
11526 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
11527
11528         * gcc.c (spec_function): Add remove-outfile.
11529         (remove_outfile_spec_function): New function.
11530         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
11531         * invoke.texi (replace-outfile): Document.
11532
11533 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
11534
11535         PR target/45296
11536         * reginfo.c (globalize_reg): Reject stack registers.
11537
11538 2010-08-17  Richard Guenther  <rguenther@suse.de>
11539
11540         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
11541         list of conditional equivalences.
11542         (free_all_edge_infos): Adjust.
11543         (record_equivalences_from_incoming_edge): Likewise.
11544         (record_cond): Likewise.
11545         (build_and_record_new_cond): Likewise.
11546         (record_conditions): Likewise.
11547         (dom_opt_leave_block): Likewise.
11548
11549 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
11550
11551         * doc/invoke.texi (ms-extension): Add documentation.
11552
11553 2010-08-17  Richard Guenther  <rguenther@suse.de>
11554
11555         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
11556
11557 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
11558
11559         PR c/40563
11560         * c-decl.c (diagnose_uninitialized_cst_member): New function.
11561         (finish_decl): Use it to issue a -Wc++-compat warning about
11562         uninitialized const field in struct or union.
11563
11564         (finish_struct): Use strip_array_types.
11565
11566 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
11567
11568         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
11569         functions.
11570         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
11571         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
11572         call block_nreverse here.
11573         (blocks_nreverse): Rename decl temporary to block.
11574
11575 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
11576
11577         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
11578         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
11579         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
11580         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
11581         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
11582         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
11583         thumb2_iorsi3): Delete.
11584         (orsi_notsi_si): No longer a named pattern.
11585         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
11586         * config/arm/predicates.md (shift_amount_operand): New.
11587         (mult_operator): New.
11588         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
11589         attr enabled): New.
11590         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
11591         arch matches t2.
11592         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
11593         (not_shiftsi_compare0): Likewise, renamed from
11594         arm_notsi_shiftsi_compare0.
11595         (not_shiftsi_compare0_scratch): Likweise, renamed from
11596         arm_notsi_shiftsi_compare0_scratch.
11597         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
11598         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
11599         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
11600         so that the register alternative is disabled when the shift_operator
11601         is MULT.  Use "M" as the constraint for constants.
11602         (arith_shiftsi splitter): Enable for TARGET_32BIT.
11603         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
11604         constraint for constants.
11605         (arith_shiftsi_compare0_scratch): Likewise.
11606         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
11607         Handle Thumb2 alternative.
11608
11609 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
11610
11611         * doc/options.texi (NoDriverArg): Document.
11612         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
11613         -MDX and -MMDX.
11614         * opt-functions.awk (switch_flags): Handle NoDriverArg.
11615         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
11616         marking for CL_NO_DRIVER_ARG options when in the driver.
11617         * opts.h (CL_NO_DRIVER_ARG): Define.
11618         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
11619         CL_COMMON): Update values.
11620
11621 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
11622
11623         * common.opt: Add driver options.
11624         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
11625         * doc/options.texi (Driver, RejectDriver): Document.
11626         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
11627         print_prog_name, print_multi_directory, print_sysroot,
11628         print_multi_os_directory, print_multi_lib,
11629         print_sysroot_headers_suffix, report_times, combine_flag,
11630         use_pipes, wrapper_string): Remove.
11631         (save_switch, driver_unknown_option_callback,
11632         driver_wrong_lang_callback, driver_post_handling_callback,
11633         driver_handle_option): New.
11634         (spec_lang, last_language_n_infiles): Make file-scope static
11635         instead of local to process_command.
11636         (process_command): Use decode_cmdline_options_to_array and
11637         read_cmdline_option for option processing.  Compute have_c in
11638         prescan of decoded options.
11639         * opt-functions.awk (switch_flags): Handle Driver and
11640         RejectDriver.
11641         (var_type, var_type_struct): Handle Separate options as generating
11642         const char * variables.
11643         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
11644         CL_TARGET to be passed by caller if required.
11645         (decode_cmdline_options_to_array): Update comment.
11646         * opts.c (complain_wrong_lang): Handle options only valid for the
11647         driver.
11648         (decode_options): Update call to decode_cmdline_options_to_array.
11649         (print_filtered_help): Ignore driver-only options.
11650         (print_specific_help): Ignore CL_DRIVER.
11651         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
11652         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
11653         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
11654         Update values.
11655
11656 2010-08-16  Richard Guenther  <rguenther@suse.de>
11657
11658         * tree-cfg.c (verify_types_in_gimple_reference): Verify
11659         TARGET_MEM_REF a bit.
11660         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
11661         (create_mem_ref_raw): Always create TMR_OFFSET, store the
11662         alias pointer type via it.
11663         (copy_mem_ref_info): Adjust.
11664         (maybe_fold_tmr): Likewise.
11665         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
11666         (reference_alias_ptr_type): Likewise.
11667         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
11668         adjust documentation of TMR_OFFSET operand.
11669         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
11670         use the alias pointer type.
11671         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
11672         initialize mem attrs but the TMR itself.
11673         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
11674         similar to MEM_REF.
11675         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
11676         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
11677         (unshare_and_remove_ssa_names): Likewise.
11678         (copy_ref_info): Adjust.
11679         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
11680         TARGET_MEM_REF case.
11681         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
11682         at TMR_ORIGINAL.
11683         * tree.h (TMR_ORIGINAL): Remove.
11684         * gimple.c (get_base_address): For TARGET_MEM_REF with a
11685         symbol return that.
11686         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
11687         with a symbol.
11688         (get_addr_base_and_unit_offset): Likewise.
11689         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
11690         TARGET_MEM_REFs.
11691         (indirect_ref_may_alias_decl_p): Likewise.
11692         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
11693
11694 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
11695
11696         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
11697         with GCC version 4.6, the default setting (when not optimizing
11698         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
11699         been changed to -fomit-frame-pointer.
11700
11701 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
11702
11703         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
11704         Darwin10.  Do not link libgcc.a for Darwin >= 9.
11705
11706 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
11707
11708         * doc/invoke.texi (Warning Options): Fix terminology and markup
11709         in the description of how unknown warning options are handled.
11710
11711 2010-08-15  Ira Rosen  <irar@il.ibm.com>
11712
11713         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
11714         in basic blocks.
11715         (vect_supportable_dr_alignment): Check alignment for basic blocks.
11716         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
11717         data references.
11718         (vect_bb_vectorization_profitable_p): New function.
11719         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
11720         check if it's worthwhile to vectorize the basic block.
11721
11722 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
11723
11724         * reload.h (register_move_cost, memory_move_secondary_cost,
11725         secondary_reload_class): Adjust prototype.
11726         * rtl.h (reg_class_subset_p): Adjust prototype.
11727         * reload.c (secondary_reload_class): Change arguments type from
11728         enum reg_class to reg_class_t. Change result type to reg_class_t.
11729         * reginfo.c (register_move_cost, reg_class_subset_p): Change
11730         arguments type from enum reg_class to reg_class_t.
11731         (memory_move_secondary_cost): Change arguments type from
11732         enum reg_class to reg_class_t. Change type of saved_flags to
11733         reg_class_t.
11734
11735         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11736         Remove macros.
11737         (mips_cost): Remove.
11738         (struct mips_rtx_cost_data): Moved to mips.c.
11739         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
11740         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
11741         (mips_cost): Make static.
11742         (mips_canonicalize_move_class): Change argument type to reg_class_t.
11743         Change result type to reg_class_t.
11744         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
11745         type from enum reg_class to reg_class_t.
11746         (mips_register_move_cost): Make static. Change arguments
11747         type from enum reg_class to reg_class_t.
11748         (mips_memory_move_cost): New function.
11749         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11750
11751 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
11752
11753         PR rtl-optimization/43358
11754         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
11755         of a single hard register, using simplify_subreg_regno to decide
11756         what that register should be.
11757
11758 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
11759
11760         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
11761         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
11762         (loongson_pmull<V_suffix>): Rename to...
11763         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
11764
11765 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
11766
11767         * configure.ac: Enable -fomit-frame-pointer on darwin
11768         which support dwarf2.
11769         * config/i386/i386.c (override_options): Same.
11770
11771 2010-08-13  Jie Zhang  <jie@codesourcery.com>
11772
11773         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
11774
11775 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
11776
11777         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
11778         -MMD.
11779
11780 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
11781
11782         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
11783         up dot_prod pattern searching if a stmt is outside the loop.
11784
11785 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11786             Uros Bizjak  <ubizjak@gmail.com>
11787
11788         * config.gcc: Handle --enable-frame-pointer.
11789
11790         * configure.ac: Add --enable-frame-pointer.
11791         * configure: Regenerated.
11792
11793         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
11794         (override_options): If not configured with --enable-frame-pointer,
11795         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
11796         optimizing for size), -fasynchronous-unwind-tables and
11797         -maccumulate-outgoing-args by default.
11798
11799 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
11800
11801         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
11802
11803         PR middle-end/45262
11804         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
11805         -a overflows.  Normalize the range.
11806
11807 2010-08-12  Richard Guenther  <rguenther@suse.de>
11808
11809         PR tree-optimization/45232
11810         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
11811         for types with undefined overflow.
11812         (reassociate_bb): Allow re-associating of bit and min/max
11813         operations for types with undefined overflow.
11814         * tree-ssa-forwprop.c (associate_plusminus): New function.
11815         (tree_ssa_forward_propagate_single_use_vars): Call it.
11816
11817 2010-08-12  Richard Guenther  <rguenther@suse.de>
11818
11819         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
11820         * tree-ssa-alias.c (get_ptr_info): Move ...
11821         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
11822         align and misalign fields conservatively.
11823         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
11824         derive alignment information.
11825         (evaluate_stmt): Derive alignment information from memory
11826         allocation functions.
11827         * tree.h (get_pointer_alignment): Make unsigned.
11828         * builtins.c (get_object_alignment): Use alignment information we
11829         have computed for pointers.
11830         (get_pointer_alignment): Likewise.  Make conservative, return
11831         and unsigned value.
11832         (expand_builtin_strlen): Adjust.
11833         (expand_builtin_memcmp): Likewise.
11834         (expand_builtin_strcmp): Likewise.
11835         (expand_builtin_strncmp): Likewise.
11836         (get_builtin_sync_mem): Use at least mode alignment.
11837         (fold_builtin_memset): Adjust.
11838         (fold_builtin_memory_op): Likewise.
11839         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
11840         information also dump pointer alignment knowledge.
11841         (dump_gimple_stmt): Likewise.
11842
11843 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
11844
11845         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
11846         (EMPTY_FIELD_BOUNDARY): Remove.
11847         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
11848
11849 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
11850
11851         PR debug/45259
11852         * caller-save.c (save_call_clobbered_regs): Only swap notes with
11853         DEBUG_INSNs if n_regs_saved.
11854
11855 2010-08-12  Wei Guozhi  <carrot@google.com>
11856
11857         PR target/44999
11858         * config/arm/arm.md (andsi3): Change to zero extension if possible.
11859         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
11860
11861 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
11862
11863         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
11864
11865         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
11866
11867 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11868
11869         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
11870         the case removed in the previous patch, when the only phi argument
11871         is defined in the same loop as the phi node itself.  Handle it
11872         separately from the invariant case by both propagating it outside
11873         the region and replacing the phi node with an assign.
11874
11875 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11876
11877         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
11878         constant phi nodes with one argument are is_gimple_min_invariant
11879         and SSA_NAME_IS_DEFAULT_DEF.
11880
11881 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11882
11883         * graphite-cloog-util.c (oppose_constraint):
11884         Extend loop counter's value range (CLOOG_ORG).
11885         (cloog_matrix_to_ppl_constraint): Same.
11886         (new_Constraint_System_from_Cloog_matrix): Same.
11887         * graphite-cloog-compat.h (matrix_num_type): New.
11888
11889 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11890
11891         * graphite.c (graphite_initialize): Do not initialize
11892         CLooG and initialize the Parma Polyhedra Library
11893         manually when using CLOOG_ORG.
11894         (graphite_finalize): Do not finalize CLooG and finalize
11895         the Parma Polyhedra Library manually when using CLOOG_ORG.
11896         * graphite-cloog-compat.h (cloog_initialize): Hide function
11897         when using CLOOG_ORG.
11898         (cloog_finalize): Same.
11899
11900 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11901
11902         * graphite-clast-to-gimple.c (free_scattering): Change
11903         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
11904         (CLOOG_ORG).
11905         (build_cloog_prog): Same.
11906         * graphite-cloog-compat.h (cloog_domain): Removed.
11907         (cloog_scattering): New.
11908         (cloog_set_domain): Removed.
11909         (cloog_set_scattering): New.
11910         (cloog_next_domain): Removed.
11911         (cloog_next_scattering): New.
11912         (cloog_set_next_domain): Removed.
11913         (cloog_set_next_scattering): New.
11914         (CloogScatteringList): New.
11915         (CloogScattering): New.
11916         (cloog_scattering_free): New.
11917         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
11918         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
11919         New.
11920
11921 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11922
11923         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
11924         CloogState.
11925         (set_cloog_options): Same.
11926         (print_clast_stmt): Same.
11927         (scop_to_clast): Same.
11928         (print_generated_program): Same.
11929         (gloog): Same.
11930         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
11931         (scop_to_clast): Extend with CloogState.
11932         * graphite-cloog-util.c: Include graphite-cloog-compat.h
11933         (new_Cloog_Domain_from_ppl_Polyhedron):
11934         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
11935         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
11936         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11937         * graphite-cloog-util.h (build_cloog_prog): Same.
11938         * graphite-cloog-copat.h (build_cloog_prog): New.
11939         (CloogState): New.
11940         (cloog_state_malloc): New.
11941         (cloog_state_free): New.
11942         (cloog_loop_malloc): New.
11943         (cloog_options_malloc): New.
11944         (cloog_statement_alloc): New.
11945         (cloog_domain_from_cloog_matrix): New.
11946         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
11947         (new_Cloog_Domain_from_ppl_Polyhedron): New.
11948
11949 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11950
11951         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
11952         type of NAME now depends on used CLooG version.
11953         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
11954         (gcc_type_for_clast_expr): Same.
11955         (print_clast_stmt): Replace pprint with clast_pprint.
11956         * graphite-cloog-compat.h: Provide compatibility macros for
11957         CLooG Legacy.
11958         (clast_name_p): New.
11959         (clast_expr_term): New.
11960         (clast_expr_red): New.
11961         (clast_expr_bin): New.
11962         (clast_pprint): New.
11963
11964 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11965
11966         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11967         compatible to newer CLooG releases (CLOOG_ORG).
11968         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11969         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11970         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11971         (build_cloog_prog) : New.
11972         (cloog_program_extract_scalars): New.
11973         (cloog_program_scatter): New.
11974
11975 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11976
11977         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11978         conditionally (CLOOG_ORG).
11979         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
11980         (cloog_statement_usr): New.
11981         (cloog_domain): Same.
11982         (cloog_set_domain): Same.
11983         (cloog_next_domain): Same.
11984         (cloog_set_next_domain): Same.
11985         (cloog_program_nb_scattdims): Same.
11986         (cloog_program_set_nb_scattdims): Same.
11987         (cloog_program_names): Same.
11988         (cloog_program_set_names): Same.
11989         (cloog_program_set_context): Same.
11990         (cloog_program_set_loop): Same.
11991         (cloog_program_blocklist): Same.
11992         (cloog_program_set_blocklist): Same.
11993         (cloog_program_scaldims): Same.
11994         (cloog_program_set_scaldims): Same.
11995         (cloog_names_nb_parameters): Same.
11996         (cloog_names_set_nb_parameters): Same.
11997         (cloog_names_parameters): Same.
11998         (cloog_names_set_parameters): Same.
11999         (cloog_names_set_nb_iterators): Same.
12000         (cloog_names_set_iterators): Same.
12001         (cloog_names_set_nb_scattering): Same.
12002         (cloog_names_set_scattering): Same.
12003         (cloog_statement_set_usr): Same.
12004         (cloog_loop_set_next): Same.
12005         (cloog_loop_set_domain): Same.
12006         (cloog_loop_set_block): Same.
12007         (cloog_block_list_next): Same.
12008         (cloog_block_list_set_next):
12009         (cloog_block_list_set_block): Same.
12010
12011 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12012
12013         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
12014         a bool.
12015         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
12016         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
12017         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
12018         when something has been changed.
12019         (rewrite_commutative_reductions_out_of_ssa): Same.
12020
12021 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12022
12023         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
12024         handle the case when def is in the sese region.
12025         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
12026         for invariant expressions.
12027         (rewrite_cross_bb_phi_deps): Removed.
12028         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
12029         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
12030         rewrite_cross_bb_phi_deps.
12031
12032 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12033
12034         * graphite-sese-to-poly.c
12035         (rewrite_commutative_reductions_out_of_ssa_loop): Call
12036         scev_analyzable_p only on is_gimple_reg
12037
12038 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12039
12040         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
12041         (rewrite_close_phi_out_of_ssa): Propagate constant values or
12042         parametric expressions outside the scop region.
12043         (rewrite_cross_bb_scalar_deps): Same.
12044         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
12045
12046 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12047
12048         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
12049         SSA_NAME_DEF_STMT only on SSA_NAMEs.
12050
12051 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12052
12053         * tree-scalar-evolution.c (instantiate_scev_name): Do not
12054         instantiate default definitions.
12055
12056 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
12057             Sebastian Pop  <sebastian.pop@amd.com>
12058
12059         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
12060         (loop_exits_from_bb_p): New.
12061         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
12062         (loop_exits_from_bb_p): Declared.
12063         * graphite-scop-detection.c (scopdet_basic_block_info): Call
12064         loop_exits_to_bb_p.
12065
12066 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12067
12068         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
12069         extra parameter for the region.  Call scev_analyzable_p.
12070         (rewrite_reductions_out_of_ssa): Update call to
12071         rewrite_close_phi_out_of_ssa.
12072         (rewrite_cross_bb_phi_deps): Same.
12073         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
12074         parameter for the region.  Call scev_analyzable_p.
12075         (rewrite_commutative_reductions_out_of_ssa): Update call to
12076         rewrite_commutative_reductions_out_of_ssa_loop.
12077
12078 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12079
12080         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
12081
12082 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12083
12084         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
12085         SSA scalar phi nodes that can be scev_analyzable_p.
12086
12087 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12088
12089         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
12090         handle SSA_NAME_IS_DEFAULT_DEF.
12091
12092 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12093
12094         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
12095
12096 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12097
12098         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
12099         case non close-phi nodes with one argument.
12100
12101 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12102
12103         * sese.h (scev_analyzable_p): Scevs could be expressions without
12104         chrecs and still be scev_analyzable_p.
12105
12106 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12107
12108         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12109
12110 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12111
12112         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
12113         * cfgloop.h (struct loop): Remove single_iv field.
12114         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
12115         (scop_canonicalize_loops): Removed.
12116         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
12117         over all the loop phi nodes in loop->header.
12118         (build_poly_scop): Remove use of scop_canonicalize_loops.
12119
12120 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12121
12122         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
12123         handle GIMPLE_CALL.
12124
12125 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12126
12127         * tree-chrec.c (chrec_apply): Should only apply to the specified
12128         variable.  Also handle multivariate chains of recurrences that
12129         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
12130
12131 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12132
12133         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
12134         (debug_clast_name_indexes_1): Removed.
12135         (debug_clast_name_indexes): Removed.
12136         (pbb_to_depth_to_oldiv): Removed.
12137         (build_iv_mapping): Replace the use of rename_map with iv_map.
12138         (translate_clast_user): Remove uses of rename_map.  Allocate and
12139         free iv_map.
12140         (translate_clast_for_loop): Remove uses of rename_map.
12141         (translate_clast_for): Same.
12142         (translate_clast_guard): Same.
12143         (translate_clast): Same.
12144         (gloog): Same.
12145         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
12146         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
12147         * sese.c (set_rename): Now static.
12148         (rename_variables_in_stmt): Removed.
12149         (rename_uses): New.
12150         (is_parameter): Removed.
12151         (is_iv): Removed.
12152         (expand_scalar_variables_call): Removed.
12153         (expand_scalar_variables_ssa_name): Removed.
12154         (expand_scalar_variables_expr): Removed.
12155         (expand_scalar_variables_stmt): Removed.
12156         (expand_scalar_variables): Removed.
12157         (rename_variables): Removed.
12158         (remove_condition): Removed.
12159         (get_true_edge_from_guard_bb): Removed.
12160         (get_false_edge_from_guard_bb): Removed.
12161         (struct igp): Removed.
12162         (default_before_guard): Removed.
12163         (convert_for_phi_arg): Removed.
12164         (add_guard_exit_phis): Removed.
12165         (insert_guard_phis): Removed.
12166         (graphite_copy_stmts_from_block): Now also uses iv_map and a
12167         region.  Do not copy conditions.  Do not copy induction variables.
12168         Call rename_uses.
12169         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
12170         the translated statement.  Use the iv_map for the induction
12171         variable renaming.
12172         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
12173         (set_rename): Removed declaration.
12174         (scev_analyzable_p): ...here.
12175         * tree-chrec.c (chrec_apply_map): New.
12176         * tree-chrec.h (chrec_apply_map): Declared.
12177
12178 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12179
12180         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
12181         insert_loop_close_phis.
12182         * sese.c (name_defined_in_loop_p): Removed.
12183         (expr_defined_in_loop_p): Removed.
12184         (alive_after_loop): Removed.
12185         (close_phi_not_yet_inserted_p): Removed.
12186         (struct alep): Removed.
12187         (add_loop_exit_phis): Removed.
12188         (insert_loop_close_phis): Removed.
12189
12190 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12191
12192         * graphite-cloog-util.c
12193         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
12194         * graphite-poly.c
12195         (psct_scattering_dim_for_loop_depth): Same.
12196
12197 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12198
12199         * graphite-cloog-util.h: Added cloog.h.
12200         * graphite-blocking.c: Removed cloog.h.
12201         * graphite-dependences.c: Same.
12202         * graphite-interchange.c: Same.
12203         * graphite-poly.c: Same.
12204         * graphite-ppl.c: Same.
12205         * graphite-scop-detection.c: Same.
12206         * graphite-sese-to-poly.c:
12207         Removed cloog.h.
12208         Removed graphite-clast-to-gimple.h.
12209         (check_poly_representation): Removed (unused).
12210         * graphite-sese-to-poly.h
12211         (check_poly_representation): Removed (unused).
12212
12213 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12214
12215         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
12216         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
12217         (graphite-cloog-util.o): New.
12218         (graphite-ppl.o): Added graphite-cloog-util.h.
12219         * graphite-clast-to-gimple.c:
12220         Added graphite-cloog-util.h to include statements.
12221         * graphite-cloog-util.c: New.
12222         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
12223         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12224         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12225         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12226         (insert_constraint_into_matrix): Same.
12227         (ppl_Constrain_System_number_of_constraints): Same.
12228         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
12229         (oppose_constraint): Same.
12230         (cloog_matrix_to_ppl_constraint): Same.
12231         (new_Constraint_System_from_Cloog_Matrix): Same.
12232         * graphite-cloog-util.h: New.
12233         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
12234         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12235         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12236         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12237         (insert_constraint_into_matrix): Same.
12238         * graphite-ppl.c:
12239         Added graphite-cloog-util.h to include statements.
12240         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
12241         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12242         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12243         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12244         (insert_constraint_into_matrix): Same.
12245         (ppl_Constrain_System_number_of_constraints): Same.
12246         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
12247         (oppose_constraint): Same.
12248         (cloog_matrix_to_ppl_constraint): Same.
12249         (new_Constraint_System_from_Cloog_Matrix): Same.
12250         * graphite-ppl.h:
12251         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
12252         graphite-cloog-util.h.
12253         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
12254         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
12255         (new_C_Polyhedron_from_Cloog_Matrix): Same.
12256         (insert_constraint_into_matrix): Same.
12257
12258 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
12259
12260         * graphite-clast-to-gimple.c
12261         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
12262         (precision_for_interval): Same.
12263         (gcc_type_for_interval): Same.
12264         (compute_type_for_level): Same.
12265         * graphite-interchange.c
12266         (lst_interchange_profitable_p): Same.
12267         * graphite-poly.c
12268         (psct_scattering_dim_for_loop_depth): Same.
12269         * graphite-ppl.c
12270         (ppl_max_for_le_pointset): Same.
12271         (ppl_min_for_le_pointset): Same.
12272
12273 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12274
12275         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
12276         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
12277
12278 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12279
12280         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
12281         rewrite_close_phi_out_of_ssa.
12282
12283 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12284
12285         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
12286
12287 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12288
12289         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
12290         rename_map.
12291         * sese.c (debug_rename_map): Same.
12292         (get_rename): Same.
12293         (set_rename): Same.
12294         (rename_variables_in_stmt): Same.
12295         (expand_scalar_variables_call): Same.
12296         (expand_scalar_variables_ssa_name): Same.
12297         (expand_scalar_variables_expr): Same.
12298         (expand_scalar_variables_stmt): Same.
12299         (expand_scalar_variables): Same.
12300         (rename_variables): Same.
12301         (graphite_copy_stmts_from_block): Same.
12302         (copy_bb_and_scalar_dependences): Same.
12303
12304 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12305
12306         * graphite-clast-to-gimple.c (copy_renames): Removed.
12307         (translate_clast_for): Do not call copy_renames.
12308         (translate_clast_guard): Same.
12309
12310 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12311
12312         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
12313         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
12314         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
12315         before rewrite_cross_bb_scalar_deps.
12316
12317 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12318
12319         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
12320         Early return in when flag_associative_math is not set.
12321
12322 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12323
12324         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
12325         of SSA copies on edges except for loop->latch.
12326
12327 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12328
12329         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
12330         Split out of rewrite_reductions_out_of_ssa.
12331         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
12332         Declared.
12333         * graphite.c (graphite_transform_loops): Call it.
12334
12335 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12336
12337         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
12338
12339 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
12340
12341         * dbgcnt.def (graphite_scop): New counter.
12342         * graphite.c: Include dbgcnt.h.
12343         (graphite_transform_loops): Use new counter to limit transformations.
12344         * Makefile.in (graphite.o): Depend on DBGCNT_H.
12345
12346 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12347
12348         * passes.c (init_optimization_passes): Add pass_graphite.
12349         Schedule a pass_copy_prop before pass_graphite_transforms.
12350         * timevar.def (TV_GRAPHITE): Declared.
12351         * tree-pass.h (pass_graphite): Declared.
12352         * tree-ssa-loop.c (pass_graphite): New.
12353
12354 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12355
12356         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
12357         Remove calls to rename_nb_iterations and rename_sese_parameters.
12358         * graphite-clast-to-gimple.h (gloog): Update declaration.
12359         * graphite.c (graphite_transform_loops): Update call to gloog.
12360         * sese.c (rename_variables_in_expr): Removed.
12361         (rename_nb_iterations): Removed.
12362         (rename_sese_parameters): Removed.
12363         * sese.h (rename_nb_iterations): Removed.
12364         (rename_sese_parameters): Removed.
12365
12366 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12367
12368         * graphite-clast-to-gimple.c (gloog): Remove call to
12369         sese_adjust_liveout_phis.
12370         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
12371         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
12372         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
12373         rewrite_phi_out_of_ssa.
12374         * sese.c (get_vdef_before_sese): Removed.
12375         (sese_adjust_vphi): Removed.
12376         (sese_adjust_liveout_phis): Removed.
12377         * sese.h (sese_adjust_liveout_phis): Removed.
12378
12379 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12380
12381         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
12382         argument for the place after which to insert the out of SSA copy.
12383         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
12384         (rewrite_phi_out_of_ssa): Same.
12385         (rewrite_cross_bb_scalar_deps): Same.
12386         (insert_copyout): Removed.
12387         (insert_copyin): Removed.
12388         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
12389         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
12390         insert_copyin.
12391
12392 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12393
12394         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
12395         (rewrite_reductions_out_of_ssa): Same.
12396         (rewrite_commutative_reductions_out_of_ssa): Same.
12397         (build_poly_scop): Do not call these functions.
12398         * graphite-sese-to-poly.h (build_poly_scop): Declared.
12399         (rewrite_reductions_out_of_ssa): Declared.
12400         (rewrite_commutative_reductions_out_of_ssa): Declared.
12401         * graphite.c (graphite_transform_loops): Call on every scop
12402         rewrite_commutative_reductions_out_of_ssa before calling
12403         rewrite_reductions_out_of_ssa and build_scop_bbs.
12404
12405 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12406
12407         * graphite-dependences.c (dot_deps): Make system call to dotty run
12408         in background.
12409         (dot_deps_stmt): Same.
12410         * graphite-poly.c (dot_lst): Same.
12411
12412 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
12413
12414         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
12415         phi_arg_in_outermost_loop.
12416         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
12417         (remove_invariant_phi): Same.
12418
12419 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
12420
12421         * target.def (output_addr_const_extra): New hook.
12422         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
12423         * doc/tm.texi: Regenerate.
12424         * targhooks.c (default_asm_output_addr_const_extra): New function.
12425         * targhooks.h (default_asm_output_addr_const_extra): Declare.
12426         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
12427         target hook.
12428
12429         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12430         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
12431         * config/i386/i386.h (output_addr_const_extra): Rename to...
12432         (i386_asm_output_addr_const_extra): ...this. Make static.
12433         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12434
12435 2010-08-11  Richard Henderson  <rth@redhat.com>
12436
12437         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
12438
12439 2010-08-11  Nick Clifton  <nickc@redhat.com>
12440
12441         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
12442         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
12443         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12444         stormy16-lib2-cmpsi.c.
12445
12446         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
12447         -O2.
12448
12449 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
12450
12451         * opts.h (struct cl_option_handler_func): Make handler take
12452         cl_decoded_option structure as parameter, not individual elements.
12453         (struct cl_option_handlers): Make callbacks take cl_decoded_option
12454         structure as parameter, not individual elements.
12455         (handle_option): Take cl_decoded_option structure as parameter,
12456         not individual elements.
12457         (handle_generated_option): Declare.
12458         * opts-common.c (handle_option): Take cl_decoded_option structure
12459         as parameter, not individual elements.  Update calls to callback
12460         and handler functions.
12461         (handle_generated_option): New.
12462         (read_cmdline_option): Update calls to callback functions and
12463         handle_option.
12464         * opts.c (common_handle_option, complain_wrong_lang,
12465         unknown_option_callback, post_handling_callback,
12466         lang_handle_option, target_handle_option): Take cl_decoded_option
12467         structure as parameter, not individual elements.
12468         (lang_handle_option, target_handle_option, common_handle_option):
12469         Assert option has at most one argument.
12470         (enable_warning_as_error): Call handle_generated_option instead of
12471         handle_option.  Do not pass -Werror argument as argument of
12472         generated option.
12473
12474 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12475
12476         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12477         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12478         (SUBWORD_BOOL_CAS): Likewise.
12479         (SUBWORD_SYNC_OP): Likewise.
12480         (SUBWORD_TEST_AND_SET): Likewise.
12481         (FETCH_AND_OP_WORD): Parenthesise INF_OP
12482         (SUBWORD_SYNC_OP): Likewise.
12483         (OP_AND_FETCH_WORD): Likewise.
12484
12485 2010-08-10  Xinliang David Li  <davidxl@google.com>
12486
12487         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
12488         compute max/min offset in address.
12489
12490 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
12491
12492         * ira-live.c: Include sbitmap.h.
12493         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
12494         Compress live ranges even more.
12495
12496 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12497
12498         * coverage.c (ctr_labels): Delete.
12499
12500 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
12501
12502         PR bootstrap/45177
12503         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
12504         test here from arm_gen_load_multiple_1.
12505         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
12506         multiple_operation_profitable_p.
12507
12508 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12509
12510         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
12511         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
12512
12513 2010-08-10  Richard Henderson  <rth@redhat.com>
12514
12515         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
12516         after saving registers.  Assert that SSE registers are only saved
12517         with a sufficiently aligned frame.
12518         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
12519         remove stack_realign_fp handling.
12520         (ix86_expand_prologue): Save int registers before stack_realign_fp,
12521         and do not mark the stack alignment as frame related.
12522         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
12523
12524         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
12525         saves when re-aligning the stack.
12526
12527 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12528
12529         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
12530         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
12531         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
12532
12533 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12534
12535         * dwarf2out.c (struct die_struct): Move die_tag to the end.
12536
12537 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
12538
12539         * config/arm/iterators.md: New file.
12540         * config/arm/arm.md: Include iterators.md.
12541         (QHSI): Move to new file.
12542         (LTUGEU, cnb, optab, ior_xor): Likewise.
12543         * config/arm/iwmmxt.md (VMMX): Move to new file.
12544         (VSHFT, MMX_char): Likewise.
12545         * config/arm/neon.md (VD): Move to new file.
12546         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
12547         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
12548         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
12549         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
12550         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
12551         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
12552         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
12553         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
12554         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
12555         (Is_d_reg, V_mode_nunits): Likewise.
12556         * config/arm/vec-common.md (VALL): Move to new file.
12557         (VALLW, VINT, VINTW): Likewise.
12558
12559 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
12560
12561         PR middle-end/45182
12562         * combine.c (make_compound_operation): Don't try to convert
12563         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
12564
12565 2010-08-10  Richard Guenther  <rguenther@suse.de>
12566
12567         * tree.h (get_object_alignment): Adjust prototype.
12568         * builtins.c (get_object_alignment): Return unsigned int,
12569         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
12570         and TARGET_MEM_REF properly.
12571         (get_pointer_alignment): Adjust.
12572         * emit-rtl.c (get_mem_align_offset): Adjust comment.
12573         (set_mem_attributes_minus_bitpos): Adjust.
12574         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
12575
12576 2010-08-10  Richard Guenther  <rguenther@suse.de>
12577
12578         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
12579         (copy_prop_visit_assignment): Simplify.
12580         (copy_prop_visit_stmt): Also visit assignments from
12581         constants.
12582         (copy_prop_visit_phi_node): Use operand_equal_p.
12583
12584 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12585
12586         * ipa-split.c (find_split_points): Free stack.
12587
12588 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12589
12590         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
12591         * tree.c (tree_node_kind): Delete corresponding entries.
12592
12593 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
12594
12595         * alias.c (may_alias_p): Remove unused ret.
12596
12597 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
12598
12599         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
12600         alias_sets_conflict_p.
12601         (walk_mems_1): Moved from alias.c.
12602         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
12603         in alias.c.
12604         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
12605         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
12606         * alias.c (walk_mems_2): Moved to ddg.c.
12607         (walk_mems_1): Ditto.
12608         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
12609         to ddg.c.
12610         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
12611         disambiguation.
12612         *(may_alias_p): New function to check whether two memory expression
12613         may alias or not. Currently used in buidling inter-iteration memory
12614         dependence.
12615         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
12616         (insn_alias_sets_conflict_p): Removed
12617         *rtl.h (may_alias_p): New function prototype.
12618
12619 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12620
12621         * tree.c (nreverse): Assert that we don't have a BLOCK.
12622
12623 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12624
12625         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
12626         * config/arm/arm.c (arm_get_pcs_model): Likewise.
12627         * config/avr/avr.c (init_cumulative_args): Likewise.
12628         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12629         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12630         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
12631         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
12632         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
12633         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12634         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12635         * dwarf2out.c (gen_subprogram_die): Likewise.
12636         * function.c (allocate_struct_function): Likewise.
12637         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
12638         (deserves_ellipsis): Delete.
12639
12640 2010-08-09  Richard Guenther  <rguenther@suse.de>
12641
12642         * tree-ssa-copy.c (cached_last_copy_of): Remove.
12643         (valueize_val): New function.
12644         (get_last_copy_of): Remove.
12645         (set_copy_of_val): Simplify.
12646         (dump_copy_of): Likewise.
12647         (copy_prop_visit_cond_stmt): Use valueize_val.
12648         (copy_prop_visit_phi_node): Properly handle unvisited names.
12649         Drop code managing copy-of chains.
12650         (init_copy_prop): Adjust.
12651         (fini_copy_prop): Likewise.
12652         (execute_copy_prop): Remove obsolete comment.
12653
12654 2010-08-09  Richard Guenther  <rguenther@suse.de>
12655
12656         PR middle-end/44632
12657         * function.c (gimplify_parameters): Do not clear addressable
12658         bit of the original parameter.
12659
12660 2010-08-09  Richard Guenther  <rguenther@suse.de>
12661
12662         PR middle-end/45212
12663         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
12664         alignment from MEM_REF offset only if we took it from the
12665         base object.
12666
12667 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
12668
12669         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
12670
12671 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12672
12673         * c-tree.h (build_arg_info): Declare.
12674         * c-decl.c (build_arg_info): Define.
12675         (get_parm_info): Call it.  Delete initialization code.
12676         * c-parser.c (c_parser_parms_declarator): Likewise.
12677         (c_parser_parms_list_declaractor): Likewise.
12678
12679 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12680
12681         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
12682         (struct c_arg_info): Change type of tags field.
12683         * c-decl.c (grokdeclarator): Update for changed type of tags field.
12684         (get_parm_info): Likewise.
12685         (store_parm_decls_newstyle): Likewise.
12686
12687 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12688
12689         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
12690         (branch_island_list): Delete.
12691         (branch_islands): Declare.
12692         (add_compiler_branch_island): Adjust for branch_islands instead of
12693         branch_island_list.
12694         (macho_branch_islands): Likewise.
12695         (no_previous_def): Likewise.
12696         (get_prev_label): Likewise.
12697
12698 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12699
12700         PR boehm-gc/34544
12701         * gthr-posix.h (__gthread_start): Delete.
12702         (__gthread_active_init): Use pthread_default_stacksize_np instead of
12703         pthread_create to determine if hpux pthreads are active.
12704         * gthr-posix95.h (__gthread_start): Delete.
12705         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
12706
12707 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
12708
12709         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
12710         _WIN64 not expanded.
12711
12712 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
12713             H.J. Lu  <hongjiu.lu@intel.com>
12714
12715         PR target/45213
12716         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
12717         to output 32bit SFmode immediate as 8 byte sign extended value.
12718
12719 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12720
12721         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12722         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12723         (SUBWORD_BOOL_CAS): Likewise.
12724         (SUBWORD_SYNC_OP): Likewise.
12725         (SUBWORD_TEST_AND_SET): Likewise.
12726         (FETCH_AND_OP_WORD): Parenthesise INF_OP
12727         (SUBWORD_SYNC_OP): Likewise.
12728         (OP_AND_FETCH_WORD): Likewise.
12729
12730 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12731
12732         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
12733         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
12734         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
12735         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
12736         generic part.
12737         (cortex_a9_sched_adjust_cost): New function.
12738         (xscale_sched_adjust_cost): New function.
12739         * config/arm/arm-protos.h (struct tune_params): New field
12740         sched_adjust_cost.
12741         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
12742
12743 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
12744
12745         PR target/44942
12746         * config/sparc/sparc.c (function_arg_advance): Always take into account
12747         the padding, if any.
12748
12749 2010-08-06  Richard Guenther  <rguenther@suse.de>
12750
12751         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
12752         (dump_lattice_value): Dump it.
12753         (get_default_value): Adjust.
12754         (get_constant_value): Likewise.
12755         (set_value_varying): Likewise.
12756         (set_lattice_value): Make sure to not go up the lattice
12757         with bitwise constant values.
12758         (get_value_for_expr): Handle ADDR_EXPRs.
12759         (value_to_double_int): New function.
12760         (get_value_from_alignment): Likewise.
12761         (do_dbg_cnt): Adjust.
12762         (ccp_lattice_meet): Handle partially constant values.
12763         (bit_value_unop_1): New function.
12764         (bit_value_binop_1): Likewise.
12765         (bit_value_unop): Likewise.
12766         (bit_value_binop): Likewise.
12767         (evaluate_stmt): Track partially constant values if
12768         flag_tree_bit_ccp is set.
12769         (ccp_fold_stmt): Dump if we folded a predicate.
12770         (ccp_visit_stmt): Adjust.
12771         * common.opt (ftree-bit-ccp): New flag.
12772         * doc/invoke.texi (ftree-bit-ccp): Document.
12773         * opts.c (decode_options): Enable bit-CCP at -O1.
12774
12775 2010-08-06  Alan Modra  <amodra@gmail.com>
12776
12777         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
12778         and -mrelocatable-lib description.
12779
12780 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
12781
12782         From Martin Thuresson  <martint@google.com>
12783         * postreload.c (reload_cse_simplify_operands): Use
12784         SET_REGNO_RAW instead of SET_REGNO.
12785         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
12786         SET_REGNO.
12787         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
12788         instead of SET_REGNO.
12789         * rtl.h (SET_REGNO_RAW): New macro.
12790
12791 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
12792
12793         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
12794         computations.  Fix formatting issues.
12795         (num_sign_bit_copies1): Likewise.
12796         (canonicalize_condition): Likewise.
12797
12798 2010-08-05  Richard Henderson  <rth@redhat.com>
12799
12800         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
12801         (floor_log2): Use clz_hwi.
12802         (exact_log2): Use ctz_hwi.
12803         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
12804         * builtins.c (fold_builtin_bitop): Use them.
12805         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12806         * combine.c (get_pos_from_mask): Use ctz_hwi.
12807         * double-int.c (double_int_ctz): Likewise.
12808         * explow.c (force_reg): Likewise.
12809         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
12810
12811 2010-08-05  Richard Henderson  <rth@redhat.com>
12812
12813         PR target/45189
12814         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
12815         the alignment constant is properly sign-extended.
12816
12817 2010-08-05  Richard Guenther  <rguenther@suse.de>
12818
12819         * expr.c (store_expr): Use emit_block_move only if both
12820         source and target are MEMs.  Use store_bit_field if only
12821         the target is a MEM.
12822
12823 2010-08-05  Richard Henderson  <rth@redhat.com>
12824
12825         PR debug/45188
12826         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
12827         (INCOMING_RETURN_ADDR_RTX): Likewise.
12828         (dwarf2out_do_frame): Remove conditional compilation.
12829         (dwarf2out_frame_init): Likewise.
12830
12831 2010-08-05  Nicolas Setton  <setton@adacore.com>
12832
12833         * gcov.c (flag_display_progress): New static variable.
12834         (main): Display progress info on standard output if requested.
12835         (options): Add -d/--display-progress.
12836         (print_usage): Print them.
12837         (process_args): Handle them.
12838         * doc/gcov.texi: Document them.
12839
12840 2010-08-05  Martin Jambor  <mjambor@suse.cz>
12841
12842         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
12843         (ipcp_insert_stage): Redirect only edges not flagged with
12844         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
12845         discovered constants.
12846
12847 2010-08-05  Martin Jambor  <mjambor@suse.cz>
12848
12849         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
12850         (struct ipa_param_descriptor): New fields types and
12851         cannot_devirtualize.
12852         (ipa_param_cannot_devirtualize_p): New function.
12853         (ipa_param_types_vec_empty): Likewise.
12854         (ipa_make_edge_direct_to_target): Declare.
12855         * ipa-cp.c: Fixed first stage driver name in initial comment,
12856         described devirtualization there too.
12857         (ipcp_analyze_node): Call ipa_analyze_params_uses.
12858         (ipcp_print_all_lattices): Print devirtualization info.
12859         (ipa_set_param_cannot_devirtualize): New function.
12860         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
12861         lattice to BOTTOM.
12862         (ipcp_init_stage): Merged into...
12863         (ipcp_generate_summary): ...its caller.
12864         (ipcp_change_tops_to_bottom): Also process type lists.
12865         (ipcp_add_param_type): New function.
12866         (ipcp_copy_types): Likewise.
12867         (ipcp_propagate_types): Likewise.
12868         (ipcp_propagate_stage): Also propagate types.
12869         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
12870         Also return true if propagated types require it.
12871         (ipcp_update_callgraph): Dump redirection info.
12872         (ipcp_process_devirtualization_opportunities): New function.
12873         (ipcp_const_param_count): Include known type information.
12874         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
12875         on new node.  Fixed formatting.
12876         * ipa-prop.c (make_edge_direct_to_target): Renamed to
12877         ipa_make_edge_direct_to_target and changed all callers.  Made
12878         externally visible.
12879         (ipa_node_duplication_hook): Duplicate types vector.
12880         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
12881         redirect outgoing calls for which we can't get a decl from the
12882         statement.  Check that we can get a decl from the call statement.
12883         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12884         ipa_analyze_params_uses only when ipa-cp is disabled.
12885         * tree-inline.c (get_indirect_callee_fndecl): Removed.
12886         (expand_call_inline): Do not call get_indirect_callee_fndecl.
12887         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
12888         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
12889
12890 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12891
12892         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
12893         temporary. Emit move from temporary to accum, so REG_EQUAL note will
12894         be attached to this insn in correct mode.
12895
12896 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12897
12898         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
12899         using REGNO of base_reg directly.
12900
12901 2010-08-05  Jie Zhang  <jie@codesourcery.com>
12902
12903         PR tree-optimization/45144
12904         * tree-sra.c (type_consists_of_records_p): Return false
12905         if the record contains bit-field.
12906
12907 2010-08-04  Richard Henderson  <rth@redhat.com>
12908
12909         * config/i386/i386.c (struct ix86_frame): Remove padding and
12910         to_allocate members.
12911         (ix86_compute_frame_layout): Don't store them.
12912         (ix86_can_use_return_insn_p): Use a more direct and more obviously
12913         correct condition for the position of the stack pointer.
12914         (ix86_expand_prologue): Compute remaining stack allocation based
12915         on the ultimate stack pointer offset.
12916         (ix86_expand_epilogue): Use more obvious expressions testing for
12917         the stack pointer already pointing to the saved registers.
12918
12919         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
12920         duplication deconstructing the frame pointer.  Simplify
12921         deallocation of the local stack frame.
12922
12923         * reg-notes.def (CFA_EXPRESSION): New.
12924         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12925         (dwarf2out_frame_debug_cfa_expression): New.
12926         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
12927
12928         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
12929         * config/i386/i386.c (ix86_expand_prologue): Set it.
12930         (ix86_expand_epilogue): Clear it.
12931         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
12932         context, add REG_CFA_EXPRESSION notes.
12933
12934         * config/i386/i386.h (struct machine_frame_state): Rename from
12935         machine_cfa_state.  Add members tracking SP and FP regardless
12936         of the current CFA register.
12937         (ix86_cfa_state): Remove.
12938         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
12939         and sse_reg_save_offset members.
12940         (ix86_compute_frame_layout): Set them.
12941         (gen_push): Increment sp_offset too.
12942         (choose_baseaddr_len, choose_baseaddr): New.
12943         (ix86_emit_save_reg_using_mov): New.
12944         (ix86_emit_save_regs_using_mov): Use it.
12945         (ix86_emit_save_sse_regs_using_mov): Likewise.
12946         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
12947         compare vs the saved red_zone_offset.
12948         (pro_epilogue_adjust_stack): Adjust sp_offset.
12949         (ix86_adjust_stack_and_probe): Likewise.
12950         (ix86_expand_prologue): Set up, use, and validate the new
12951         frame_state_info members.  Use gen_frame_mem.
12952         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
12953         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
12954         new frame_state_info members.
12955         (ix86_emit_leave): Likewise.
12956         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
12957         out-of-range stack pointer offsets here.
12958         (ix86_emit_restore_sse_regs_using_mov): Likewise.
12959         (ix86_expand_epilogue): Use and validate the new frame_state_info
12960         members.  Break up and simplify the logic selecting the
12961         restore_regs_via_mov code path.  Ensure that there will be no
12962         out-of-range stack pointer offsets.
12963
12964         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12965
12966         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12967         argument name to reflect the expected tree; fix indentation.
12968         (ix86_asm_output_function_label): Output the entire 32-bit
12969         ms_hook here as bytes ...
12970         (ix86_expand_prologue): ... not here as insns.  Attach the
12971         unwind info for the ms_hook to a blockage insn.
12972         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12973         (ix86_ms_bitfield_layout_p): Fix indentation.
12974         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12975
12976         * config/i386/i386.c (ix86_using_red_zone): New.
12977         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12978         ix86_expand_prologue, ix86_force_to_memory): Use it.
12979
12980         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12981         saving the int registers.
12982
12983         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12984         and DWARF2_UNWIND_INFO conditional compilation.
12985
12986 2010-08-04  Richard Henderson  <rth@redhat.com>
12987
12988         PR debug/45171
12989         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12990         an is_naming_typedef_decl.
12991
12992 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
12993
12994         PR rtl-optimization/45162
12995         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12996         * dce.c (word_dce_process_block): Likewise.
12997
12998 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
12999
13000         PR target/44583
13001         * config/ia64/constraints.md (Z): New.
13002         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
13003         (xfreg_or_signed_fp01_operand): New.
13004         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
13005         with fr_reg_or_signed_fp01_operand and constraint G with Z.
13006         (subsf3): Ditto.
13007         (*maddsf4): Ditto.
13008         (*msubsf4): Ditto.
13009         (adddf3): Ditto.
13010         (adddf3_trunc): Ditto.
13011         (subdf3): Ditto.
13012         (*subdf3_trunc): Ditto.
13013         (*madddf4): Ditto.
13014         (*madddf4_trunc): Ditto.
13015         (*msubdf4): Ditto.
13016         (*msubdf4_trunc): Ditto.
13017         (addxf3): Replace xfreg_or_fp01_operand with
13018         xfreg_or_signed_fp01_operand and constraint G with Z.
13019         (*addxf3_truncsf): Ditto.
13020         (*addxf3_truncdf): Ditto.
13021         (subxf3): Ditto.
13022         (*subxf3_truncsf): Ditto.
13023         (*subxf3_truncdf): Ditto.
13024         (*maddxf4): Ditto.
13025         (*maddxf4_truncsf): Ditto.
13026         (*maddxf4_truncdf): Ditto.
13027         (*msubxf4): Ditto.
13028         (*msubxf4_truncsf): Ditto.
13029         (*msubxf4_truncdf): Ditto.
13030
13031 2010-08-04  Richard Guenther  <rguenther@suse.de>
13032
13033         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
13034         if either alias-set is zero.
13035
13036 2010-08-04  Richard Guenther  <rguenther@suse.de>
13037
13038         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
13039         * tree-ssa-ccp.c: ... here.
13040         * tree-ssa-copy.c: ... and here.
13041         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
13042         value_range_t): Move ...
13043         * tree-vrp.c: ... here.
13044         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
13045         (substitute_and_fold): Adjust prototype.
13046         * tree-ssa-propagate.c (replace_uses_in): Adjust.
13047         (replace_phi_args_in): Likewise.
13048         (substitute_and_fold): Take callback to query lattice instead
13049         of pointer to lattice.  Replace SSA name defs with lattice
13050         values first.
13051         * tree-ssa-ccp.c (ccp_finalize): Adjust.
13052         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
13053         (get_value): New function.
13054         (fini_copy_prop): Adjust.
13055         * tree-vrp.c (vrp_finalize): Adjust.
13056
13057 2010-08-04  Richard Guenther  <rguenther@suse.de>
13058
13059         PR middle-end/45176
13060         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
13061         points-to set for original MEM_REF.
13062
13063 2010-08-04  Richard Guenther  <rguenther@suse.de>
13064
13065         * tree-ssa-ccp.c (get_constant_value): New function.
13066         (get_rhs_assign_op_for_ccp): Remove.
13067         (valueize_op): New function.
13068         (ccp_fold): Use get_constant_value and valueize_op.
13069         (fold_const_aggregate_ref): Likewise.
13070         (ccp_fold_stmt): Likewise.
13071         (visit_assignment): Simplify.
13072
13073 2010-08-04  Richard Guenther  <rguenther@suse.de>
13074
13075         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
13076         * double-int.h (double_int_ctz): Declare.
13077         * double-int.c (double_int_ctz): New function.
13078
13079 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
13080
13081         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
13082         Define.
13083         picochip_expand_movmemhi : Expand movmem pattern.
13084         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
13085         Declare.
13086         * config/picochip/picochip.md (movmemhi) : New pattern.
13087
13088 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
13089
13090         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
13091
13092 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
13093
13094         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
13095         NEG as operand of a MULT by merging it with the other operand.
13096         * combine.c (make_compound_operation): Use trunc_int_for_mode when
13097         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
13098         MULT.
13099         * config/arm/constraints.md (M): Examine only 32 bits of a
13100         HOST_WIDE_INT.
13101         * config/arm/predicates.md (power_of_two_operand): Likewise.
13102
13103 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13104
13105         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
13106         non-NOTE insns.
13107
13108 2010-08-03  Jan Hubicka  <jh@suse.cz>
13109
13110         * ipa-split.c (struct split_point): Add split_part_set_retval.
13111         (find_retval): Forward declare.
13112         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
13113         (consider_split): Compute current->split_part_set_retval.
13114         (visit_bb): Do not look into return value.
13115         (split_function): Handle !split_part_set_retval
13116
13117 2010-08-03  Martin Jambor  <mjambor@suse.cz>
13118
13119         * tree-sra.c (completely_scalarize_record): New parameter REF, create
13120         its own access->expr intead of using build_ref_for_offset.
13121
13122 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
13123
13124         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
13125         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
13126         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
13127         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
13128         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
13129         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
13130         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
13131         DEFAULT_SWITCH_TAKES_ARG.
13132         * config/rx/rx.opt (-patch=): Remove option.
13133         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
13134         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
13135         * doc/invoke.texi (RX Options): Remove -patch=.
13136         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
13137         (option_map): Remove --profile-blocks, --quiet and --silent.
13138
13139 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
13140
13141         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
13142         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
13143         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
13144         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
13145         Update calls to ix86_expand_compare and ix86_expand_branch.
13146         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
13147         ix86_expand_compare.
13148         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
13149         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
13150         Make static.
13151         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
13152         and ix86_compare_op1.  Update calls to ix86_expand_compare.
13153         (ix86_expand_int_movcc): Ditto.
13154         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
13155         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
13156         (ix86_expand_setcc): Ditto.
13157         (ix86_expand_compare): Remove prototype.
13158         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
13159         ix86_compare_op0 and ix86_compare_op1.  Update calls
13160         to ix86_expand_branch to directly pass operands[1] and operands[2].
13161         (cbranchxf4): Ditto.
13162         (cbranch<MODEF:mode>4): Ditto.
13163         (cbranchcc4): Ditto.
13164         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
13165         Update calls to ix86_expand_setcc to directly pass operands[2] and
13166         operands[3].
13167         (cstorexf4): Ditto.
13168         (cstore<MODEF:mode>4): Ditto.
13169         (cstorecc4): Ditto.
13170
13171 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
13172
13173         PR target/45063
13174         * caller-save.c (save_call_clobbered_regs): Remove regs from
13175         hard_regs_saved when they are set.
13176
13177 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
13178
13179         PR target/41089
13180         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
13181         as volatile.
13182
13183 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
13184
13185         * common.opt (ftree-loop-distribute-patterns): New.
13186         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
13187         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
13188         at -O3.
13189         * tree-data-ref.c (stores_zero_from_loop): New.
13190         * tree-data-ref.h (stores_zero_from_loop): Declared.
13191         * tree-loop-distribution.c (tree_loop_distribution): Call
13192         stores_zero_from_loop.
13193         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
13194
13195 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
13196
13197         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
13198         into account.
13199
13200         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
13201         * config/arm/arm.c (thumb1_code): New variable.
13202         (arm_override_options): Set it.
13203         (thumb1_final_prescan_insn): Keep track of condition code status.
13204         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
13205         jumps that depend on them.
13206         * config/arm/arm.h (thumb1_code): Declare variable.
13207         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
13208         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
13209         thumb1_cc_mode.
13210         (CC_STATUS_INIT): New macro.
13211         * config/arm/constraints.md (Pd): New constraint.
13212         * config/arm/predicates.md (noov_comparison_operator): New predicate.
13213         * config/arm/arm.md (is_thumb1): New define_attr.
13214         (conds): Set default to "clob" when generating Thumb1 code.
13215         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
13216         code are set.  Use two-operand assembly syntax.
13217         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
13218         pattern.
13219         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
13220         codes are set.  Use two-operand assembly syntax.
13221         (zero_extendhisi splitter): Remove constraints.
13222         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
13223         thumb1_movsf_insn): Set conds attribute as appropriate.
13224         (cbranchsi4_insn): Use condition code status from struct
13225         machine_function to determine whether the comparison can be eliminated.
13226         Discourage the alternative using high registers.
13227         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
13228         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
13229         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
13230         subsi3_cbranch): Delete.
13231         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
13232         one subtract and one cbranch insn.
13233
13234         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
13235         thumb2_movdf_soft_insn): Delete patterns.
13236         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
13237         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
13238         (pool_range, neg_pool_range): Use them to define defaults.
13239         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
13240         and allow for TARGET_32BIT.
13241
13242         PR target/40457
13243         * config/arm/arm.h (arm_regs_in_sequence): Declare.
13244         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
13245         load_multiple_sequence, store_multiple_sequence): Delete
13246         declarations.
13247         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
13248         declarations.
13249         * config/arm/ldmstm.md: New file.
13250         * config/arm/arm.c (arm_regs_in_sequence): New array.
13251         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
13252         CHECK_REGS.  All callers changed.
13253         If SAVED_ORDER is nonnull, copy the computed order into it.
13254         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
13255         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
13256         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
13257         If SAVED_ORDER is nonnull, copy the computed order into it.
13258         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
13259         like REGS.  Handle Thumb mode.
13260         (arm_gen_load_multiple_1): New function, broken out of
13261         arm_gen_load_multiple.
13262         (arm_gen_store_multiple_1): New function, broken out of
13263         arm_gen_store_multiple.
13264         (arm_gen_multiple_op): New function, with code from
13265         arm_gen_load_multiple and arm_gen_store_multiple moved here.
13266         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
13267         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
13268         changed.
13269         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
13270         * config/arm/predicates.md (commutative_binary_operator): New.
13271         (load_multiple_operation, store_multiple_operation): Handle more
13272         variants of these patterns with different starting offsets.  Handle
13273         Thumb-1.
13274         * config/arm/arm.md: Include "ldmstm.md".
13275         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
13276         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
13277         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
13278         peepholes): Delete.
13279         * config/arm/ldmstm.md: New file.
13280         * config/arm/arm-ldmstm.ml: New file.
13281
13282         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
13283         if statement which adds extra costs to frame-related expressions.
13284
13285 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13286
13287         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
13288
13289 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
13290
13291         PR target/45142
13292         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
13293         alternative 2.
13294         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
13295         split V4SI operands.
13296
13297 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
13298
13299         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13300         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
13301         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
13302         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13303
13304 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
13305
13306         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
13307         LOCAL_INCLUDE_DIR.
13308
13309 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
13310
13311         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
13312         used in the call to optab_for_tree_code.  Fix the second
13313         is_widening_mult_p call.  Check that both unwidened operands
13314         have the same sign.
13315
13316 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
13317
13318         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
13319
13320 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
13321
13322         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13323
13324 2010-07-30  DJ Delorie  <dj@redhat.com>
13325
13326         * config/rx/predicates.md (rx_constshift_operand): New.
13327         * config/rx/rx.md (zs_cond): New.
13328         (cbranchsi4): Remove mode.
13329         (*cbranchsi4_<code>): Likewise.
13330         (*tstbranchsi4_<code>): New.
13331         (*tstbranchsi4r_<code>): New.
13332         (*tstbranchsi4m_eq): New.
13333         (*tstbranchsi4m_ne): New.
13334         (cbranchsf4): Remove mode.
13335         (*cbranchsf4_<code>): Likewise.
13336
13337 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
13338
13339         * rtlanal.c (simplify_subreg_regno): Don't treat
13340         HARD_FRAME_POINTER_REGNUM specially.
13341
13342 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
13343
13344         * common.opt (-G): Don't define option here.
13345         * config/g.opt: New.
13346         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
13347         rs6000/powerpc and score targets.
13348         * opts.c (common_handle_option): Don't handle -G here.
13349         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
13350         * config/frv/frv.c (frv_handle_option): Handle -G.
13351         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
13352         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
13353         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
13354         * config/mips/mips.c (mips_handle_option): Handle -G.
13355         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
13356         * config/score/score.c (score_handle_option): Handle -G.
13357
13358 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
13359
13360         * config/mmix/mmix.c: Include basic-block.h.
13361
13362 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
13363
13364         PR debug/45055
13365         PR rtl-optimization/45137
13366         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
13367         prototypes.
13368         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
13369         New functions.
13370         * combine.c (next_nonnote_nondebug_insn): Removed.
13371         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
13372         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
13373         * sched-deps.c (sched_analyze_insn): Likewise.
13374         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
13375         * rtlanal.c (canonicalize_condition): Likewise.
13376         * postreload.c (reload_combine_recognize_pattern): Likewise.
13377         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
13378
13379 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
13380
13381         * config/i386/i386.md (int_cond): Remove code iterator.
13382         (fp_cond): Ditto.
13383         (cbranch<mode>4): Use ordered_comparison_operator predicate
13384         for operator0.
13385         (cstore<mode>4): Ditto for operator1.
13386         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
13387         (add<mode>cc): ditto.
13388
13389 2010-07-30  Richard Guenther  <rguenther@suse.de>
13390
13391         PR middle-end/45141
13392         * expr.c (expand_expr_real_1): Check for not handled base address.
13393
13394 2010-07-30  Richard Guenther  <rguenther@suse.de>
13395
13396         * ipa-prop.c (ipa_modify_formal_parameters): Use
13397         build_distinct_type_copy.
13398
13399 2010-07-30  Anthony Green  <green@moxielogic.com>
13400
13401         * config/moxie/rtems.h: New file.
13402         * config.gcc: Add moxie-rtems support.
13403
13404 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13405
13406         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
13407         df flags as in run_fast_df_dce.
13408
13409 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
13410
13411         Revert:
13412         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13413
13414         * rtl.def (NOTE): Swap operands 4 and 5.
13415         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
13416         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
13417         Adjust accordingly.
13418         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
13419
13420 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
13421
13422         PR debug/45110
13423         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
13424         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
13425         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
13426         formal parameters.
13427         (gen_decl_die): Change return type to dw_die_ref, return what
13428         gen_formal_parameter_die returned.
13429
13430 2010-07-29  Martin Jambor  <mjambor@suse.cz>
13431
13432         * dbgcnt.def (eipa_sra): New counter.
13433         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
13434
13435 2010-07-29  Xinliang David Li  <davidxl@google.com>
13436
13437         PR bootstrap/45119
13438         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
13439         in revision 162652.
13440
13441 2010-07-29  Richard Guenther  <rguenther@suse.de>
13442
13443         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
13444         (TV_TREE_STORE_CCP): Likewise.
13445         (TV_TREE_REDPHI): Likewise.
13446
13447 2010-07-29  Richard Guenther  <rguenther@suse.de>
13448
13449         * double-int.h (double_int_and_not): New function.
13450         * combine.c (try_combine): Use it.
13451         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
13452
13453 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13454
13455         PR rtl-optimization/42575
13456         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
13457         Argument AU removed.  All callers changed.  Ignore artificial refs.
13458         Use return value of df_word_lr_simulate_defs to decide whether an insn
13459         is necessary.
13460         (fast_dce): Rename arg to WORD_LEVEL.
13461         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
13462         static.
13463         (pass_fast_rtl_byte_dce): Delete.
13464         * dce.h (run_word_dce): Declare.
13465         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
13466         All callers changed.  Simplify code to only deal with two-word regs.
13467         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
13468         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
13469         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
13470         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
13471         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
13472         (df_word_lr_mark_ref): Declare.
13473         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
13474         df_word_lr_simulate_uses): Declare or rename from byte variants.
13475         (df_byte_lr_simulate_artificial_refs_at_top,
13476         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
13477         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
13478         declarations.
13479         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
13480         (enum df_mm): Delete.
13481         * df-byte-scan.c: Delete file.
13482         * df-problems.c (df_word_lr_problem_data): Renamed from
13483         df_byte_lr_problem_data, all members deleted except for
13484         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
13485         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
13486         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
13487         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
13488         df_byte_lr_confluence_0): Delete functions.
13489         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
13490         callers changed.
13491         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
13492         Don't initialize members that were deleted, don't try to discover data
13493         about registers.  Ignore hard regs.
13494         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
13495         (df_word_lr_mark_ref): New function.
13496         (df_word_lr_bb_local_compute): Renamed from
13497         df_byte_bb_lr_local_compute; all callers changed.  Use
13498         df_word_lr_mark_ref.  Assert that artificial refs don't include
13499         pseudos.  Ignore hard registers.
13500         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
13501         Assert that exit block uses don't contain pseudos.
13502         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
13503         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
13504         callers changed.  Ignore hard regs.
13505         (df_word_lr_transfer_function): Renamed from
13506         df_byte_lr_transfer_function; all callers changed.
13507         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
13508         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
13509         changed.
13510         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
13511         callers changed.
13512         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
13513         confluence operator 0 set to NULL.
13514         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
13515         callers changed.
13516         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
13517         Return bool, true if bitmap changed or insn otherwise necessary.
13518         All callers changed.  Simplify using df_word_lr_mark_ref.
13519         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
13520         all callers changed.  Simplify using df_word_lr_mark_ref.
13521         * lower-subreg.c: Include "dce.h"
13522         (decompose_multiword_subregs): Call run_word_dce if df available.
13523         * Makefile.in (lower-subreg.o): Adjust dependencies.
13524         (df-byte-scan.o): Delete.
13525         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
13526
13527 2010-07-29  Richard Guenther  <rguenther@suse.de>
13528
13529         * tree.c (build_vector): Assert that the vector constant
13530         has enough elements.
13531         (build_vector_from_ctor): Pad with trailing zeros.
13532
13533 2010-07-29  Richard Guenther  <rguenther@suse.de>
13534
13535         PR tree-optimization/45120
13536         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13537         Handle offset in DEREFs properly.
13538         (get_constraint_for_1): Handle MEM_REF offset properly.
13539
13540 2010-07-29  Richard Guenther  <rguenther@suse.de>
13541
13542         PR middle-end/45034
13543         * convert.c (convert_to_integer): Always use an unsigned
13544         type for narrowed negate and bitwise not.
13545
13546 2010-07-29  Ira Rosen  <irar@il.ibm.com>
13547
13548         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
13549         to outer loop when creating reduction epilogue for double reduction,
13550         and switch back to the inner loop when updating the phi nodes.
13551         Update uses of outer loop exit phi nodes in double reduction (instead
13552         of uses of reduction).
13553
13554 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
13555
13556         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
13557         popcount on power7 and parity on power6 systems.
13558         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
13559         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
13560         instructions.
13561
13562         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
13563         (UNSPEC_PARITY): Ditto.
13564         (SFDF): New iterator for SF/DF.
13565         (rreg2): New mode attribute for floating register constraint.
13566         (TARGET_FLOAT): New mode attribute for whether single/double float
13567         is supported.
13568         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
13569         pattern.
13570         (parity<mode>2_cmpb): New insn for parity on power6 and newer
13571         machines.
13572         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
13573         pattern.  Add support for fcpsgn instruction added in power6.
13574         (copysignsf3): Delete.
13575         (copysigndf3): Delete.
13576         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
13577         instead of if_then_else in RTL to avoid problems with -0.
13578
13579         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
13580         of if_then_else to mirror scalar code.
13581         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
13582         rs6000.md.
13583
13584         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
13585         instead of if_then_else.
13586
13587 2010-07-28  Xinliang David Li  <davidxl@google.com>
13588
13589         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
13590         (dump_cand): Dump var_before/after.
13591         (htab_inv_expr_eq): New function.
13592         (htab_inv_expr_hash): New function.
13593         (tree_ssa_iv_optimize_init): Support pseudo invariants.
13594         (add_candidate_1): consider base type precision.
13595         (set_use_iv_cost): New parameter.
13596         (adjust_setup_cost): Use profile information.
13597         (get_address_cost): Do not hard code width in computing address
13598         offset limits.
13599         (compare_aff_trees): New function.
13600         (get_loop_invariant_expr_id): New function.
13601         (get_computation_cost_at): New parameter and use profile information.
13602         (get_computation_cost): New parameter.
13603         (determine_use_iv_cost_generic): Pass new parameter.
13604         (determine_use_iv_cost_address): Ditto.
13605         (determine_use_iv_cost_condition): Ditto.
13606         (autoinc_possible_for_pair): Ditto.
13607         (determine_use_iv_costs): More dumps.
13608         (iv_ca_get_num_inv_exprs): New function.
13609         (iv_ca_recount_cost): Consider loop invariants in register pressure
13610         cost.
13611         (iv_ca_add_use): New parameter.
13612         (iv_ca_dump): Better dumping.
13613         (iv_ca_extend): New parameter.
13614         (try_add_cand_for): Attempt to get better partial solution.
13615         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
13616         (create_new-ivs): More dumps.
13617         (rewrite_use_compare): Ditto.
13618         (free_loop_data): More cleanup.
13619         (treee_ssa_iv_optimize_finalize): Ditto.
13620
13621 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
13622
13623         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
13624         * config/i386/i386.c (ix86_profile_before_prologue): New.
13625         (override_options): Add special handling for -mfentry.
13626         (ix86_function_regparm): Likewise.
13627         (ix86_function_sseregparm): Likewise.
13628         (ix86_frame_pointer_required): Likewise.
13629         (ix86_expand_prologue): Check for ms_hook_prologue.
13630         (x86_function_profiler): Adjust mcount output.
13631         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
13632         * config/i386/i386.opt (mfentry): New.
13633         * doc/invoke.texi (mfentry): Add documentation.
13634         * doc/tm.texi: Regenerated..
13635         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
13636         * final.c (final_start_function): Replace macro
13637         PROFILE_BEFORE_PROLOGUE by target hook.
13638         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13639         * target.def (profile_before_prologue): New hook.
13640         * targhooks.c (default_profile_before_prologue): New.
13641         * targhooks.h (default_profile_before_prologue): New.
13642
13643 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
13644
13645         PR debug/45105
13646         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
13647
13648         PR debug/45103
13649         * dwarf2out.c (dwarf2out_var_location): Always consider
13650         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
13651
13652 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
13653
13654         PR rtl-optimization/45107
13655         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
13656
13657 2010-07-28  Richard Guenther  <rguenther@suse.de>
13658
13659         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
13660         (set_lattice_value): Do not query an old default value.
13661         (get_value_for_expr): New function.  Properly canonicalize
13662         float values.
13663         (ccp_visit_phi_node): Use it.
13664
13665 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
13666
13667         * config/arm/arm.c (arm_pcs_default): Remove static.
13668         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
13669         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
13670         (arm_pcs_default): Declare.
13671
13672 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
13673
13674         * config/rs6000/rs6000.c (rs6000_override_options):
13675         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
13676         ... to darwin_rs6000_override_options.
13677         (rs6000_return_in_memory): Update preceding comment for darwin
13678         64 bit ABI.  Use TARGET_MACHO inline.
13679         (rs6000_darwin64_struct_check_p): New.
13680         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
13681         (function_arg): Likewise.
13682         (rs6000_arg_partial_bytes): Likewise.
13683         (rs6000_function_value): Likewise.
13684
13685 2010-07-28  Andi Kleen  <ak@linux.intel.com>
13686
13687         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
13688
13689 2010-07-28  Richard Guenther  <rguenther@suse.de>
13690
13691         PR middle-end/44903
13692         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
13693         targets try harder to not generate unaligned accesses.
13694
13695 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
13696
13697         PR rtl-optimization/45101
13698         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
13699         for gcse-las.
13700
13701 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13702
13703         PR tree-optimization/44885
13704         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
13705         with non-aliased component.
13706
13707 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
13708
13709         * config/darwin-driver.c (SWITCH_TAKES_ARG,
13710         WORD_SWITCH_TAKES_ARG): Remove.
13711         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
13712         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
13713         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
13714         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
13715         definitions from gcc.c.
13716         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
13717         defaults.h.
13718         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
13719         Move to defaults.h.
13720         * opts-common.c: Include tm.h.
13721         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
13722         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
13723         Handle more than one argument.  Set canonical_option_num_elements.
13724         (decode_cmdline_options_to_array): Set
13725         canonical_option_num_elements and trailing elements of
13726         canonical_option.
13727         * opts.h (struct cl_decoded_option): Allow four elements in
13728         canonical_option.  Add field canonical_option_num_elements.
13729         * Makefile.in (opts-common.o): Update dependencies.
13730
13731 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13732
13733         PR middle-end/44790
13734         PR middle-end/44993
13735         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
13736         sure the base has address_mode before adding the offset.
13737
13738 2010-07-27  Xinliang David Li  <davidxl@google.com>
13739
13740         * tree-flow.h (create_mem_ref): Add one new parameter.
13741         * tree-ssa-address.c (create_mem_ref): New parameter.
13742         (addr_to_parts): Ditto.
13743         (move_variant_to_index): New function.
13744         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
13745
13746 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13747
13748         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
13749         4 and 5.
13750         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
13751         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
13752         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
13753         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
13754         CODE_LABELs and NOTEs.
13755         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
13756         * combine.c (try_combine): Likewise.
13757         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13758         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
13759
13760 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13761
13762         * coretypes.h (struct cl_option_handlers): Declare.
13763         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
13764         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
13765         * langhooks-def.h (lhd_handle_option): Declare.
13766         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
13767         * langhooks.c (lhd_handle_option): New.
13768         * langhooks.h (struct lang_hooks): Update prototype and return
13769         value type of handle_option hook.
13770         * optc-gen.awk: Generate target_flags_explicit definition for the
13771         driver.
13772         * opts-common.c: Include diagnostic.h.
13773         (handle_option): Move from opts.c.  Update prototype and return
13774         value type.  Use handlers structure.
13775         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
13776         handlers structure.
13777         (set_option): Move from opts.c.
13778         * opts.c (common_handle_option): Update prototype and return value
13779         type.  Update calls to handle_option and enable_warning_as_error.
13780         (unknown_option_callback, post_handling_callback,
13781         lang_handle_option, target_handle_option): New.
13782         (handle_option, read_cmdline_option): Move to opts-common.c.
13783         (read_cmdline_options): Update prototype.  Update call to
13784         read_cmdline_option.
13785         (decode_options): Initialize and use handlers structure.
13786         (set_option): Move to opts-common.c.
13787         (enable_warning_as_error): Update prototype.  Update call to
13788         handle_option.
13789         * opts.h (struct cl_option_handler_func, struct
13790         cl_option_handlers): New.
13791         (handle_option, enable_warning_as_error): Update prototypes.
13792         (read_cmdline_option): Declare.
13793         * Makefile.in (opts-common.o): Update dependencies.
13794
13795 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13796
13797         * config/arm/arm.c (params.h): Include.
13798         (arm_override_options): Tune gcse-unrestricted-cost.
13799         * config/arm/t-arm (arm.o): Define dependencies.
13800
13801 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13802
13803         PR target/42495
13804         PR middle-end/42574
13805         * basic-block.h (get_dominated_to_depth): Declare.
13806         * dominance.c (get_dominated_to_depth): New function, use
13807         get_all_dominated_blocks as a base.
13808         (get_all_dominated_blocks): Use get_dominated_to_depth.
13809
13810         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
13811         (hoist_exprs): Remove.
13812         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
13813         (compute_code_hoist_vbeinout): Add debug print outs.
13814         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
13815
13816         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
13817         quadratic behavior.
13818         * params.h (MAX_HOIST_DEPTH): New macro.
13819         * doc/invoke.texi (max-hoist-depth): Document.
13820
13821 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13822
13823         PR rtl-optimization/40956
13824         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
13825         constants.
13826
13827 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13828
13829         PR target/42495
13830         PR middle-end/42574
13831         * config/arm/arm.c (legitimize_pic_address): Use
13832         gen_calculate_pic_address pattern to emit calculation of PIC address.
13833         (will_be_in_index_register): New function.
13834         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
13835         (thumb1_legitimate_address_p): Use it provided !strict_p.
13836         * config/arm/arm.md (calculate_pic_address): New expand and split.
13837
13838 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13839
13840         PR target/42495
13841         PR middle-end/42574
13842         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
13843         * config/arm/arm.md (define_split "J", define_split "K"): Make
13844         IRA/reload friendly.
13845
13846 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13847
13848         * gcse.c (insert_insn_end_basic_block): Update signature, remove
13849         unused checks.
13850         (pre_edge_insert, hoist_code): Update.
13851
13852 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13853
13854         PR target/42495
13855         PR middle-end/42574
13856         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
13857
13858 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13859
13860         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
13861
13862 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13863
13864         PR rtl-optimization/40956
13865         PR target/42495
13866         PR middle-end/42574
13867         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
13868         for hoisting.
13869         (hoist_code): Count occurences in current block too.
13870
13871 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13872
13873         * gcse.c (struct expr:max_distance): New field.
13874         (doing_code_hoisting_p): New static variable.
13875         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
13876         simple expressions, don't change behavior for PRE.  Set max_distance.
13877         (insert_expr_in_table): Set new max_distance field.
13878         (hash_scan_set): Update.
13879         (hoist_expr_reaches_here_p): Stop search after max_distance
13880         instructions.
13881         (find_occr_in_bb): New static function.  Use it in ...
13882         (hoist_code): Calculate sizes of basic block before any changes are
13883         done.  Pass max_distance to hoist_expr_reaches_here_p.
13884         (one_code_hoisting_pass): Set doing_code_hoisting_p.
13885
13886         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
13887         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
13888         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
13889         macros.
13890         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
13891         Document.
13892
13893 2010-07-27  Jeff Law  <law@redhat.com>
13894             Maxim Kuvyrkov  <maxim@codesourcery.com>
13895
13896         * gcse.c (compute_transpout, transpout): Remove, move logic
13897         to prune_expressions.
13898         (compute_pre_data): Move pruning of trapping expressions ...
13899         (prune_expressions): ... here.  New static function.
13900         (compute_code_hoist_data): Use it.
13901         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
13902
13903 2010-07-27  Xinliang David Li  <davidxl@google.com>
13904
13905         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
13906         (rewrite_use_address): Adjust iv update position when needed.
13907
13908 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13909
13910         * dbgcnt.def (hoist_insn): New debug counter.
13911         * gcse.c (hoist_code): Use it.
13912
13913 2010-07-27  Xinliang David Li  <davidxl@google.com>
13914
13915         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
13916         (niter_for_single_dom_exit): Passes additional parameter.
13917         (iv_period): Fix comments.
13918         (may_eliminate_iv): Handles multiple exit loops properly.
13919         (free_tree_niter_desc): New function.
13920         (free_loop_data): Frees up loop iteration descriptors.
13921
13922 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13923
13924         PR target/44542
13925         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
13926         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
13927         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
13928         (expand_one_var): Don't consider DECL_ALIGN for variables for
13929         which expand_one_stack_var_at has been already called.
13930
13931         PR testsuite/44701
13932         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
13933         constraints on IA-64.
13934
13935 2010-07-27  Jie Zhang  <jie@codesourcery.com>
13936
13937         PR target/44290
13938         Revert:
13939         2010-07-23  Jie Zhang  <jie@codesourcery.com>
13940
13941         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13942         false if ! tree_versionable_function_p.
13943
13944 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13945
13946         * dwarf2out.c (add_data_member_location_attribute): Use
13947         add_AT_unsigned instead of add_AT_int if offset is non-negative.
13948
13949 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13950
13951         * postreload.c (try_replace_in_use): New static function.
13952         (reload_combine_recognize_const_pattern): Use it here.  Allow
13953         substituting into a final add insn, and substituting into a memory
13954         reference in an insn that sets the reg.
13955
13956 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13957
13958         * common.opt (o): Add MissingArgError.
13959         * doc/options.texi (MissingArgError): Document.
13960         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13961         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13962         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13963         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13964         * langhooks.h (struct lang_hooks): Remove missing_argument.
13965         * optc-gen.awk: Handle MissingArgError and output new structure
13966         field initializers.
13967         * opts.c (read_cmdline_option): Use missing_argument_error field
13968         instead of missing_argument langhook.
13969         * opts.h (struct cl_option): Add missing_argument_error field.
13970         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13971
13972 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13973
13974         PR target/29090
13975         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13976         Darwin64 ABI, for zero-sized objects.
13977
13978 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13979
13980         PR target/35491
13981         PR target/29090
13982
13983         Merge from Apple local 4.2.1.
13984         2005-05-11  Stan Shebs  <shebs@apple.com>
13985         Fix 64-bit varargs for Darwin (Radar 4028089).
13986         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13987         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13988         Add argument, add case for 8-byte register half-filled with a float.
13989         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13990         single-precision floats specially.
13991
13992 2010-07-27  Ira Rosen  <irar@il.ibm.com>
13993
13994         PR tree-optimization/44152
13995         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13996         complex numbers for further check.
13997         (vect_supported_load_permutation_p): Check nodes with
13998         complex numbers.
13999
14000 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
14001
14002         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
14003         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
14004         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
14005         (LANG_HOOKS_INITIALIZER): Add new hooks.
14006         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
14007         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
14008         and complain_wrong_lang_p.  Update init_options prototype.
14009         * c-objc-common.c (c_initialize_diagnostics): First call
14010         c_common_initialize_diagnostics.
14011         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
14012         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
14013         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
14014         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
14015         (hook_uint_void_0): New.
14016         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
14017         (hook_uint_void_0): New.
14018         * opts-common.c (decode_cmdline_option,
14019         decode_cmdline_options_to_array): Also fill in canonical_option field.
14020         * opts.c (complain_wrong_lang): Use langhook to determine whether
14021         to complain instead of special-casing LTO.
14022         (decode_options): Separate lang_mask determination with
14023         option_lang_mask hook from call of init_options hook.
14024         * opts.h (struct cl_decoded_option): Add canonical_option.
14025
14026 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
14027
14028         PR tree-optimization/45083
14029         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
14030
14031 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
14032
14033         * postreload.c (reload_combine_recognize_const_pattern): Move test
14034         for limiting the insn movement to the right scope.
14035
14036         PR rtl-optimization/45051
14037         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
14038         than reg_mentioned_p.
14039
14040 2010-07-26  Richard Henderson  <rth@redhat.com>
14041
14042         PR target/44132
14043         * tree-emutls.c: New file.
14044         * Makefile.in (OBJS-common): Add it.
14045         * tree-pass.h (pass_ipa_lower_emutls): Declare.
14046         * passes.c (init_optimization_passes): Add it.
14047
14048         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
14049         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
14050         * expr.c (emutls_var_address): Delete.
14051         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
14052         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
14053         (emutls_finish): Delete.
14054         * toplev.c (compile_file): Don't call it.
14055         * tree.h (emutls_decl): Delete.
14056         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
14057         (emutls_finish, emutls_finalize_control_var): Delete.
14058         (emutls_object_type): Move to tree-emutls.c.
14059         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
14060         default_emutls_var_fields, get_emutls_object_type,
14061         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
14062         default_emutls_var_init): Likewise.
14063         (get_variable_section): Don't special case emutls.
14064         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
14065         default_elf_select_section, default_unique_section,
14066         default_encode_section_info): Likewise.
14067         * varpool.c (decide_is_variable_needed): Likewise.
14068         * gimple-iterator.c (update_call_edge_frequencies): New
14069         (gsi_insert_on_edge_immediate): Use it.
14070         (gsi_insert_seq_on_edge_immediate): Likewise.
14071         (gsi_commit_one_edge_insert): Likewise.
14072
14073         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
14074         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
14075         (x86_64_elf_unique_section): Likewise.
14076
14077 2010-07-26  Jan Hubicka  <jh@suse.cz>
14078
14079         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
14080         GTY((skip)).
14081
14082 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
14083
14084         * target.def (output_source_filename): New hook.
14085         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
14086         * doc/tm.texi: Regenerate.
14087         * toplev.c (output_file_directive) Remove function.
14088         * toplev.h (output_file_directive) Remove.
14089         * output.h (default_asm_output_source_filename,
14090         output_file_directive): Declare.
14091         * varasm.h (default_asm_output_source_filename,
14092         output_file_directive): New functions.
14093
14094         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
14095         * config/mips/mips-protos.h (mips_output_filename): Remove.
14096         * config/mips/mips.c (mips_output_filename): Make Static.
14097         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
14098
14099 2010-07-26  Richard Guenther  <rguenther@suse.de>
14100
14101         PR tree-optimization/43784
14102         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
14103         if the destination is used by the call.
14104
14105 2010-07-26  Richard Guenther  <rguenther@suse.de>
14106
14107         PR middle-end/45073
14108         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
14109         SSA updating on being in SSA form.
14110
14111 2010-07-26  Richard Guenther  <rguenther@suse.de>
14112
14113         PR middle-end/45056
14114         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
14115
14116 2010-07-26  Richard Guenther  <rguenther@suse.de>
14117
14118         PR tree-optimization/45071
14119         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
14120         adjust op->opcode.
14121
14122 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
14123
14124         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
14125         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
14126         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
14127         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
14128         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
14129         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
14130         save_r31, return_r31, save_interrupt, return_interrupt,
14131         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
14132         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
14133         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
14134         new ABI requirements.
14135         (save_r6_r9, L_callt_save_r6_r9): Remove.
14136         * config/v850/predicates.md (even_reg_operand, disp23_operand,
14137         const_float_1_operand const_float_0_operand): New Predicates.
14138         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
14139         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
14140         * config/v850/t-v850: Update multilibs for new target variants.
14141         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
14142         * config/v850/t-v850e: Likewise.
14143         * config/v850/v850.c (v850_issue_rate): New.
14144         (v850_strict_argument_naming): New.
14145         (function_arg): Modify to generate a different ABI.
14146         (print_operand): Update case 'z' to support float modes.
14147         (output_move_single): Modify to generate appropriate and better
14148         assembly.
14149         (v850_float_z_comparison_operator, v850_select_cc_mode,
14150         v850_float_nz_comparison_operator,  v850_gen_float_compare,
14151         v850_gen_compare): New functions to support comparison of float values.
14152         (ep_memory_offset): Add support for V850E2 targets.
14153         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
14154         (INTERRUPT_REGPARM_NUM): Remove.
14155         (compute_register_save_size): Add extra case to save/restore long call.
14156         (use_prolog_function): New function to support prologue.
14157         (expand_prologue): Add support for V850E2 targets and modified
14158         as per the current ABI requirements.
14159         (expand_epilogue): Likewise.
14160         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
14161         (construct_save_jarl): Likewise.
14162         (construct_dispose_instruction): Update as per the current ABI
14163         requirements.
14164         (construct_prepare_instruction): Likewise.
14165         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
14166         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
14167         (CPP_SPEC): Updated to support v850e2 targets.
14168         (STRICT_ALIGNMENT): Modified.
14169         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
14170         (FIXED_REGISTERS): Likewise.
14171         (CALL_USED_REGISTERS): Likewise.
14172         (CONDITIONAL_REGISTER_USAGE): Updated.
14173         (HARD_REGNO_MODE_OK): Updated.
14174         (reg_class): Updated to add even registers.
14175         (REG_CLASS_NAMES): Likewise.
14176         (REG_CLASS_CONTENTS): Likewise.
14177         (REGNO_REG_CLASS): Updated for CC registers.
14178         (REG_CLASS_FROM_LETTER): Added support for even registers.
14179         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
14180         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
14181         ARG_POINTER_REGNUM): Updated.
14182         (FUNCTION_ARG_ADVANCE): Define.
14183         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
14184         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
14185         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
14186         (GO_IF_LEGITIMATE_ADDRESS): Updated.
14187         (SELECT_CC_MODE): Define.
14188         (REGISTER_NAMES): Updated to add psw and fcc registers.
14189         (ADDITIONAL_REGISTER_NAMES): Updated.
14190         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
14191         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
14192         * config/v850/v850.md (define_constants): Define new constants.
14193         (type): Update store,bit1,macc,div,fpu and single attributes.
14194         (cpu): New attribute.
14195         (cc): Add set_z attribute.
14196         (unsign23byte_load, sign23byte_load, unsign23hword_load,
14197         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
14198         23word_store): New instructions for 23-bit displacement load and store.
14199         (movqi_internal, movhi_internal): Update the attributes.
14200         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
14201         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
14202         the attributes.
14203         (v850_tst1): Modified using CC_REGNUM.
14204         (tstsi): Remove.
14205         (cmpsi): Modified as define_expand from define_insn.
14206         (cmpsi_insn, cmpsf, cmpdf): New instructions.
14207         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
14208         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
14209         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
14210         one_cmplsi2): Clobber the CC_REGNUM register.
14211         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
14212         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
14213         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
14214         (setf_insn, set_z_insn, set_nz_insn): New instructions for
14215         v850e2v3 target.
14216         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
14217         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
14218         targets.
14219         (sasf_1, sasf_2): Remove.
14220         (sasf): New instruction.
14221         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
14222         targets. CC_REGNUM register is clobbered and attributes are
14223         updated.
14224         (branch_z_normal, branch_z_invert, branch_nz_normal,
14225         branch_nz_invert): New branch related instructions.
14226         (jump): Updated the attributes.
14227         (switch): Update to support new targets. CC_REGNUM register is
14228         clobbered and attributes are updated.
14229         (call_internal_short, call_internal_long, call_value_internal_short,
14230         call_value_internal_long): Updated the attributes.
14231         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
14232         clobbered and attributes are updated.
14233         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
14234         Update to support new targets. CC_REGNUM register is clobbered.
14235         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
14236         instructions.
14237         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
14238         are updated.
14239         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
14240         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
14241         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
14242         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
14243         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
14244         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
14245         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
14246         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
14247         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
14248         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
14249         point instructions defined for V850e2v3 target.
14250         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
14251         Add support for V850E2 targets and CC_REGNUM register is clobbered.
14252         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
14253         support for new targets.
14254         * config/v850/v850-modes.def: New file.
14255         * config/v850/v850.opt(mstrict-align): Remove.
14256         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
14257         mv850e2v3): New command line options for V850.
14258         * config.gcc: Update the newly added files.
14259         * doc/invoke.texi: Update the newly added command line options for
14260         V850 target.
14261
14262 2010-07-26  Richard Guenther  <rguenther@suse.de>
14263
14264         PR tree-optimization/45052
14265         * ipa-pure-const.c (check_stmt): Check volatileness.
14266
14267 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14268
14269         PR target/44707
14270         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
14271         * config/sparc/sparc.c: Include reload.h.
14272         (legitimize_tls_address): Rename into...
14273         (sparc_legitimize_tls_address): ...this.
14274         (legitimize_pic_address): Rename into...
14275         (sparc_legitimize_pic_address): ...this.
14276         (sparc_expand_move): Adjust to above renaming.
14277         (sparc_tls_referenced_p): Likewise.
14278         (sparc_legitimize_tls_address): Likewise.
14279         (sparc_legitimize_pic_address): Likewise.
14280         (sparc_legitimize_address): Likewise.
14281         (sparc_output_mi_thunk): Likewise.
14282         (sparc_legitimize_reload_address): New global function.  Recognize
14283         (lo_sum (high ...) ...) patterns generated by earlier passes.
14284         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
14285
14286 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
14287
14288         PR target/44484
14289         * config/sparc/predicates.md (memory_reg_operand): Delete.
14290         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
14291         (*sync_compare_and_swap): Encode the address form in the pattern.
14292         (*sync_compare_and_swapdi_v8plus): Likewise.
14293
14294 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
14295
14296         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
14297         Streamline paragraph on compatibility with the system compiler.
14298
14299 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
14300
14301         PR middle-end/45035
14302         * alias.c (true_dependence_1): Fix thinko in merge of old
14303         true_dependence and canon_true_dependence.
14304
14305 2010-07-23  Jan Hubicka  <jh@suse.cz>
14306
14307         * lto-streamer-out.c (write_symbol): Fix visibilities of external
14308         references.
14309
14310 2010-07-23  Le-Chun Wu  <lcwu@google.com>
14311
14312         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
14313         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
14314         and an unnecessary assignment.
14315         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
14316         self-assign warning.
14317         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
14318         unnecessary self-init.
14319
14320 2010-07-23  Richard Guenther  <rguenther@suse.de>
14321
14322         PR lto/43071
14323         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
14324         for -flto and -fwhopr.
14325
14326 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
14327
14328         PR target/41943
14329         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
14330         (stmp-int-hdrs): Prefix/postfix headers by include_next.
14331         * config.gcc (user_headers_inc_next_pre): New.
14332         (user_headers_inc_next_post): Likewise.
14333         (*-w64-mingw*): Use for float.h post-fixing, and for
14334         stddef.h/stdarg.h pre-fixing by include_next.
14335         * configure.ac (user_headers_inc_next_post): New.
14336         (user_headers_inc_next_pre): New.
14337         * configure: Regenerated.
14338
14339 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14340
14341         * configure.ac: Don't disable TLS on Solaris 8/9 by default
14342         Set tga_func for Solaris 2/x86 resp. SPARC.
14343         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
14344         (LIB_THREAD_LDFLAGS_SPEC): Define.
14345         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
14346         * configure: Regenerate.
14347         * config.in: Regenerate.
14348         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
14349         -pthread, -threads, LIB_TLS_SPEC with -pthread.
14350         * doc/install.texi (Specific, *-*-solaris2*): Document use of
14351         alternate thread libraries on Solaris 8.
14352         Document TLS patch requirements.
14353         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
14354         Document tls.
14355
14356         PR target/18788
14357         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
14358         -shared.
14359
14360 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
14361
14362         * tree.h (struct tree_base): Add nameless_flag bitfield.
14363         (TYPE_NAMELESS, DECL_NAMELESS): Define.
14364         * omp-low.c (create_omp_child_function, scan_omp_parallel,
14365         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
14366         DECL_ARTIFICIAL where needed.
14367         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
14368         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
14369         has DECL_NAMELESS set.
14370
14371 2010-07-23  Martin Jambor  <mjambor@suse.cz>
14372
14373         PR tree-optimization/44915
14374         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
14375         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
14376         (analyze_function): Likewise.
14377
14378 2010-07-23  Martin Jambor  <mjambor@suse.cz>
14379
14380         PR tree-optimization/44914
14381         * tree-sra.c (sra_modify_function_body): Return true if CFG was
14382         changed, add purging dead eh edges.
14383         (ipa_sra_modify_function_body): Return true if CFG was changed,
14384         simplify purging dead eh edges.
14385         (modify_function): Return true if CFG was changed.
14386         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
14387         was changed.
14388         (ipa_early_sra): Likewise.
14389
14390 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14391
14392         PR target/44290
14393         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
14394         if "naked".
14395         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
14396         false if ! tree_versionable_function_p.
14397
14398 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
14399
14400         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
14401         * ipa-pure-const.c (special_builtlin_state): Remove
14402         BUILT_IN_ARGS_INFO case.
14403         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14404         * builtins.c (expand_builtin): Likewise.
14405         (expand_builtin_args_info): Remove.
14406         * doc/tm.texi (__builtin_args_info): Remove.
14407         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
14408         * doc/tm.text.in: Likewise.
14409
14410 2010-07-23  Richard Guenther  <rguenther@suse.de>
14411
14412         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
14413         (lto_symtab_merge_decls_2): Likewise.
14414         * tree-ssa.c (useless_type_conversion_p): Likewise.
14415         * lto-streamer-in.c (input_gimple_stmt): Likewise.
14416         * gimple.c (gtc_visited2, gtc_ob2): Remove.
14417         (struct type_pair_d): Make same_p an array indexed by mode.
14418         Update comment.
14419         (lookup_type_pair): Update initialization.
14420         (struct sccs): Adjust same_p type.
14421         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
14422         Adjust.
14423         (print_gimple_types_stats): Likewise.
14424         * gimple.h (enum gtc_mode): New.
14425         (gimple_types_compatible_p): Adjust prototype.
14426
14427 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
14428
14429         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
14430         again after processing insn.
14431
14432 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14433
14434         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
14435         proper words when !tree_versionable_function_p.
14436
14437 2010-07-23  Richard Guenther  <rguenther@suse.de>
14438
14439         PR tree-optimization/45037
14440         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
14441
14442 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14443
14444         * doc/extend.texi: Remove IP2K from the description of naked attribute.
14445         Add MCORE instead.
14446
14447 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14448
14449         PR lto/44992
14450         * lto-opts.c (lto_write_options): Add NULL file_data argument to
14451         lto_get_section_name.
14452         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
14453         * lto-streamer-out.c (produce_asm): Likewise.
14454         (copy_function): Likewise.
14455         (produce_symtab): Likewise.
14456         (produce_asm_for_decls): Likewise.
14457         * lto-streamer.c (lto_get_section_name): Add file_data argument.
14458         Rewrite to add random postfix to LTO sections.
14459         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
14460         (lto_get_section_name): Add file_data argument to prototype.
14461
14462 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14463
14464         * lto-section-in.c (lto_section_name): Synchronize names
14465         with lto_get_section_name.
14466
14467 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14468
14469         * lto-opts.c (lto_read_file_options): Check for missing section.
14470
14471 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14472
14473         * ira.c (check_allocation): Correctly handle the case where an allocno
14474         with two objects was allocated to a single reg.
14475
14476 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
14477
14478         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
14479         (is_widening_mult_p): Likewise.
14480         (convert_to_widen): Use them.
14481         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
14482         well as integer ones.
14483
14484 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
14485
14486         * alias.c (true_dependence_1): New function, merged version of
14487         true_dependence and canon_true_dependence.
14488         (true_dependence): Simplify.
14489         (canon_true_dependence): Simplify.
14490
14491 2010-07-22  Richard Henderson  <rth@redhat.com>
14492
14493         PR target/45027
14494         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
14495         of V4SFmode for the SSE saves; increase stack alignment if needed.
14496         (ix86_gimplify_va_arg): Don't increase stack alignment here.
14497
14498 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
14499
14500         PR bootstrap/45028
14501         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
14502         call cprop_find_used_regs again via note_uses.
14503
14504 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14505
14506         * alias.c (get_alias_set): Fix formatting issues.
14507
14508 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
14509
14510         PR middle-end/44878
14511         * stmt.c (expand_value_return):  Call promote_function_mode with
14512         a for_return argument of 2 when returning by reference.
14513
14514 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
14515
14516         PR debug/45024
14517         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
14518         unit DIE if we can find the scope DIE.
14519
14520 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14521
14522         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
14523         changed.  Initialize OBJECT_SUBWORD.
14524         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
14525         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
14526         all callers changed.
14527         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
14528         (finish_allocno): Likewise.
14529         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
14530         (remove_low_level_allocnos): Likewise.
14531         (update_bad_spill_attribute): Likewise.
14532         (setup_min_max_allocno_live_range_point): Likewise.
14533         (sort_conflict_id_map): Likewise.
14534         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
14535         (ior_hard_reg_conflicts): New function.
14536         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
14537         (compress_conflict_vecs): Iterate over objects, not allocnos.
14538         (ira_add_live_range_to_object): New function.
14539         (object_range_compare_func): Renamed from allocno_range_compare_func.
14540         All callers changed.
14541         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
14542         subobjects, widen the min/max range of the lowest-order object to
14543         potentially include all other such low-order objects.
14544         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
14545         (check_allocation): Likewise.  Use more fine-grained tests for register
14546         conflicts.
14547         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
14548         allocno subobjects.
14549         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
14550         choices about which bits to set in each set.  Don't use
14551         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
14552         using the multiple sets we computed.
14553         (push_allocno_to_stack): Iterate over allocno subobjects.
14554         (all_conflicting_hard_regs_coalesced): New static function.
14555         (setup_allocno_available_regs_num): Use it.
14556         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
14557         subobjects.
14558         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
14559         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
14560         by ALLOCNO_NUM_OBJECTS.
14561         (calculate_spill_cost): Likewise.
14562         (color_pass): Express if statement in a more normal way.
14563         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
14564         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
14565         (setup_slot_coalesced_allocno_live_ranges): Likewise.
14566         (allocno_reload_assign): Likewise.
14567         (ira_reassign_pseudos): Likewise.
14568         (fast_allocation): Likewise.
14569         * ira-conflicts.c (build_conflict_bit_table): Likewise.
14570         (print_allocno_conflicts): Likewise.
14571         (ira_build_conflicts): Likewise.
14572         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
14573         callers changed.  Test subword 0 of each allocno for conflicts.
14574         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
14575         callers changed.  Iterate over allocno subobjects.
14576         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
14577         * ira-int.h (struct ira_allocno): New member: num_objects.
14578         Rename object to objects and change it into an array.
14579         (ALLOCNO_OBJECT): Add new argument N.
14580         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
14581         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
14582         (ior_hard_reg_conflicts): Declare.
14583         (ira_add_live_range_to_object): Declare.
14584         (ira_allocno_object_iterator): New.
14585         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
14586         (FOR_EACH_ALLOCNO_OBJECT): New macro.
14587         * ira-lives.c (objects_live): Renamed from allocnos_live; all
14588         uses changed.
14589         (allocnos_processed): New sparseset.
14590         (make_object_born): Renamed from make_allocno_born; take an
14591         ira_object_t argument.  All callers changed.
14592         (make_object_dead): Renamed from make_allocno_dead; take an
14593         ira_object_t argument.  All callers changed.
14594         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
14595         All callers changed.
14596         (mark_pseudo_regno_live): Iterate over allocno subobjects.
14597         (mark_pseudo_regno_dead): Likewise.
14598         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
14599         functions.
14600         (mark_ref_live): Detect subword accesses and call
14601         mark_pseudo_regno_subword_live as appropriate.
14602         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
14603         (process_bb_nodes_live): Deal with object-related updates first; set
14604         and test bits in allocnos_processed to avoid computing allocno
14605         statistics more than once.
14606         (create_start_finish_chains): Iterate over objects, not allocnos.
14607         (print_object_live_ranges): New function.
14608         (print_allocno_live_ranges): Use it.
14609         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
14610         and objects_live.
14611
14612 2010-07-22  Richard Guenther  <rguenther@suse.de>
14613
14614         PR lto/42451
14615         * gimple.c (gtc_next_dfs_num): New global.
14616         (struct sccs): Make value a union, add integer same_p member.
14617         (gtc_visit): New function.
14618         (gimple_types_compatible_p_1): New function, split out from ...
14619         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
14620         (iterative_hash_gimple_type): Adjust for sccs change.
14621
14622 2010-07-22  Martin Jambor  <mjambor@suse.cz>
14623
14624         PR tree-optimization/44891
14625         * tree-sra.c: Include gimple-pretty-print.h.
14626         (replace_uses_with_default_def_ssa_name): Renamed to
14627         get_repl_default_def_ssa_name, return the new SSA name instead of
14628         replacing the old one.
14629         (sra_modify_assign): Dump a message when removing a load, if the LHS
14630         is an SSA_NAME, do not do any propagation, just set the RHS to a
14631         default definition SSA NAME, type convert if necessary.
14632         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
14633
14634 2010-07-22  Richard Guenther  <rguenther@suse.de>
14635
14636         PR tree-optimization/45017
14637         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
14638         TYPE_PRECISION of integral types in addition to size.
14639
14640 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14641
14642         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
14643         when no C library is specified.
14644
14645 2010-07-22  Martin Jambor  <mjambor@suse.cz>
14646
14647         * ipa-prop.h (struct ipa_node_params): Updated comment.
14648         (struct ipa_edge_args): Likewise.
14649         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
14650
14651 2010-07-22  Martin Jambor  <mjambor@suse.cz>
14652
14653         * cgraphunit.c (verify_edge_count_and_frequency): New function.
14654         (verify_cgraph_node): Verify frequencies of indirect edges.
14655         * tree-inline.c (tree_function_versioning): Update frequencies of
14656         indirect edges.
14657
14658 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14659
14660         PR target/43698
14661         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
14662         Set *arm_rev to be predicable.
14663
14664 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
14665
14666         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
14667         (LINK_COMMAND_SPEC_A): New.
14668         (DSYMUTIL): New.
14669         (DSYMUTIL_SPEC): New.
14670         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
14671         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
14672
14673 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
14674
14675         * calls.c (load_register_parameters): Move check for zero
14676         sized items so that only the call to
14677         mem_overlaps_already_clobbered_arg_p () is protected.
14678
14679 2010-07-22  Jan Hubicka  <jh@suse.cz>
14680
14681         * ipa-pure-const.c (varying_state): Break out from ...
14682         (get_function_state): ... here; always return varying_state
14683         when state would be NULL otherwise.
14684         (remove_node_data): Do not free varying state.
14685
14686 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14687
14688         PR bootstrap/44970
14689         PR middle-end/45009
14690         * postreload.c: Include "target.h".
14691         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
14692         into account.
14693         (fixup_debug_insns): Don't copy the rtx.
14694         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
14695         Don't copy when replacing.  Call fixup_debug_insns in the case where
14696         we merged one add with another.
14697         (reload_combine_recognize_pattern): Fail if there aren't any uses.
14698         Try harder to determine whether we're picking a valid index register.
14699         Don't set store_ruid for an insn we're going to scan in the
14700         next iteration.
14701         (reload_combine): Remove unused code.
14702         (reload_combine_note_use): When updating use information for
14703         an old insn, ignore a use that occurs after store_ruid.
14704         * Makefile.in (postreload.o): Update dependencies.
14705
14706         * function.c (record_hard_reg_sets): Restrict the previous change
14707         to cases where the incoming nominal mode is the same as the
14708         incoming promoted mode and everything happens in MODE_INT.
14709
14710 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
14711
14712         PR debug/45015
14713         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
14714         ASM_OPERANDS_OUTPUT_IDX.
14715         (adjust_insn): For inline asm with multiple sets ensure first
14716         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
14717         the insn.
14718
14719 2010-07-21  Richard Henderson  <rth@redhat.com>
14720
14721         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
14722         comparison for avoiding xmm register saves.  Emit the xmm register
14723         saves explicitly.
14724         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
14725         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
14726         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
14727         Remove patterns and the associated splitters.
14728
14729 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
14730
14731         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
14732         and imagine parts of a complex, so that they can have the same
14733         base and fall into the same group.
14734
14735 2010-07-21  Richard Guenther  <rguenther@suse.de>
14736
14737         PR lto/45018
14738         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
14739         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
14740         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
14741
14742 2010-07-21  Martin Jambor  <mjambor@suse.cz>
14743
14744         PR tree-optimization/44900
14745         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
14746         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
14747
14748 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
14749
14750         PR middle-end/44738
14751         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
14752
14753 2010-07-21  Richard Guenther  <rguenther@suse.de>
14754
14755         PR middle-end/45013
14756         * tree-ssa.c (useless_type_conversion_p): Dispatch to
14757         gimple_types_compatible_p only when in lto.
14758         * gimple.c (gimple_types_compatible_p): Use canonical types
14759         to speed up comparison.
14760
14761 2010-07-21  Richard Guenther  <rguenther@suse.de>
14762
14763         * tree-flow.h (referenced_var): Move define ...
14764         * tree-flow-inline.h (referenced_var): ... here as an inline
14765         function.  Assert here ...
14766         * tree-dfa.c (referenced_var_lookup): ... instead of here.
14767         * tree-ssa.c (maybe_optimize_var): Check if the variable
14768         is in referenced vars.
14769         (execute_update_addresses_taken): Remove old broken check.
14770         * gimple-pretty-print.c (pp_points_to_solution): Use
14771         referenced_var_lookup.
14772         * tree-into-ssa.c (dump_decl_set): Likewise.
14773
14774 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
14775
14776         PR debug/45003
14777         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
14778         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
14779         ZERO_EXTEND here.
14780
14781 2010-07-20  Richard Henderson  <rth@redhat.com>
14782
14783         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
14784
14785 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
14786
14787         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
14788         computing the sum of the stack pointer and a large constant.
14789         * config/arm/constraints.md (M): Remove superfluous parentheses.
14790         (Pc): New constraint.
14791
14792 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
14793
14794         PR debug/45006
14795         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
14796         operand's type if exp is tcc_unary class tree.
14797
14798 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
14799
14800         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
14801         Reverse sense of if_then_else condition.
14802
14803 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
14804
14805         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
14806         * config/rs6000/rs6000.c (rs6000_override_options): Set
14807         rs6000_block_move_inline_limit appropriately.
14808         (expand_block_move): Use rs6000_block_move_inline_limit.
14809         * doc/invoke.texi (mblock-move-inline-limit): Document.
14810
14811 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
14812
14813         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
14814         FROM and TO.  All callers changed.  Don't look for tracked uses,
14815         just scan the RTL for DEBUG_INSNs and substitute.
14816         (reload_combine_recognize_pattern): Call fixup_debug_insns.
14817         (reload_combine): Ignore DEBUG_INSNs.
14818
14819 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
14820
14821         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
14822         depth to 8 from 5.
14823
14824         PR debug/45003
14825         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
14826         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
14827         instead of the result's type.
14828
14829 2010-07-20  Richard Guenther  <rguenther@suse.de>
14830
14831         PR tree-optimization/44977
14832         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
14833         SSA form.
14834
14835 2010-07-20  Richard Guenther  <rguenther@suse.de>
14836
14837         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
14838         (lto_symtab_merge_decls_2): Likewise.
14839         * gimple.h (gimple_types_compatible_p): Declare.
14840         * gimple.c (gimple_queue_type_fixup): Remove.
14841         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
14842         (gimple_compatible_complete_and_incomplete_type_p): New function.
14843         (gimple_types_compatible_p): Adjust.
14844         (gimple_register_type): Remove type fixup code.
14845         (print_gimple_types_stats): Adjust.
14846         (free_gimple_type_tables): Likewise.
14847         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
14848         * tree-ssa.c (useless_type_conversion_p): Likewise.
14849
14850 2010-07-20  Richard Guenther  <rguenther@suse.de>
14851
14852         PR middle-end/44971
14853         PR middle-end/44988
14854         * tree-ssa.c (maybe_optimize_var): New function split out from ...
14855         (execute_update_addresses_taken): ... here.
14856         (non_rewritable_mem_ref_base): Likewise.
14857         (execute_update_addresses_taken): Do not iterate over all referenced
14858         vars but just all local decls and parms.
14859         Properly check call and asm arguments and rewrite call arguments.
14860
14861 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
14862
14863         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
14864         to top level.
14865         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
14866         definitions ...
14867         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
14868         New macro.
14869         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
14870
14871 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14872
14873         * gengtype.c (start_root_entry): New function, split out from
14874         write_root.  Check whether V is null and raise an error if so.
14875         (write_field_root): Check for V being null.  Don't raise an error here;
14876         set V to null instead.
14877         (write_root): Update comment above function.  Use start_root_entry.
14878
14879 2010-07-19  Xinliang David Li  <davidxl@google.com>
14880
14881         PR testsuite/44932
14882         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
14883         def edges.
14884         (find_uninit_use): Add dump.
14885         (is_use_properly_guarded): Ditto.
14886         (warn_uninitialized_phi): Ditto.
14887         (execute_late_warn_uninitialized): Ditto.
14888
14889 2010-07-19  Richard Guenther  <rguenther@suse.de>
14890
14891         PR middle-end/44941
14892         * expr.c (emit_block_move_hints): Move zero size check first.
14893         Move asserts to more useful places.
14894         * calls.c (load_register_parameters): Check for zero size.
14895
14896 2010-07-19  Richard Henderson  <rth@redhat.com>
14897
14898         * tree-optimize.c (execute_all_early_local_passes): New.  Change
14899         cgraph_state here ...
14900         (execute_early_local_optimizations): ... not here.  Remove.
14901         (pass_early_local_passes, pass_all_early_optimizations): Update.
14902
14903 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
14904
14905         * postreload.c (reload_combine_closest_single_use): Ignore the
14906         number of uses for DEBUG_INSNs.
14907         (fixup_debug_insns): New static function.
14908         (reload_combine_recognize_const_pattern): Use it.  Don't let the
14909         main loop be affected by DEBUG_INSNs.
14910         Really disallow moving adds past a jump insn.
14911         (reload_combine_recognize_pattern): Don't update use_ruid here.
14912         (reload_combine_note_use): Do it here.
14913         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
14914
14915 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
14916
14917         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
14918         of a loop.
14919         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
14920
14921 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
14922
14923         * config/i386/darwin.h: Define darwin_emit_branch_islands.
14924         (TARGET_MACHO_BRANCH_ISLANDS): New.
14925         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
14926         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
14927         default value.
14928         * config/i386/i386.c (output_pic_addr_const): Do not emit
14929         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
14930         (x86_output_mi_thunk): Adjust symbol creation.
14931         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
14932         Remove out of date comment.
14933         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
14934         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14935         (DARWIN_GENERATE_ISLANDS): Ditto.
14936         (output_call):  Do not emit branch islands unless
14937         darwin_emit_branch_islands is set.
14938         * config/darwin.c: Declare darwin_emit_branch_islands.
14939         (machopic_indirect_data_reference): Do not emit unless
14940         darwin_emit_branch_islands is set.
14941         (darwin_override_options): Set darwin_emit_branch_islands
14942         where it is needed.
14943         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14944
14945 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14946
14947         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14948         sse_runtime, sse2_runtime.
14949
14950 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
14951
14952         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
14953         low half of a single-register SCmode return value before ORing
14954         it with the high half.
14955         * config/mips/mips16.S (MERGE_GPRf): Likewise.
14956
14957 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14958
14959         PR target/44805
14960         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14961         on all targets.
14962
14963 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
14964
14965         PR target/42235
14966         * postreload.c (reload_cse_move2add): Return bool, true if anything.
14967         changed.  All callers changed.
14968         (move2add_use_add2_insn): Likewise.
14969         (move2add_use_add3_insn): Likewise.
14970         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14971         reload_combine.
14972         (RELOAD_COMBINE_MAX_USES): Bump to 16.
14973         (last_jump_ruid): New static variable.
14974         (struct reg_use): New members CONTAINING_MEM and RUID.
14975         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14976         (reload_combine_split_one_ruid, reload_combine_split_ruids,
14977         reload_combine_purge_insn_uses, reload_combine_closest_single_use
14978         reload_combine_purge_reg_uses_after_ruid,
14979         reload_combine_recognize_const_pattern): New static functions.
14980         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14981         is true for our reg and that we have available index regs.
14982         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
14983         callers changed.  Use them to initialize fields in struct reg_use.
14984         (reload_combine): Initialize last_jump_ruid.  Be careful when to
14985         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
14986         Call reload_combine_recognize_const_pattern.
14987         (reload_combine_note_store): Update REAL_STORE_RUID field.
14988
14989 2010-07-16  Jason Merrill  <jason@redhat.com>
14990
14991         * Makefile.in (opts-common.o): Depend on options.h.
14992
14993 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14994
14995         * tree.c (build_common_builtin_nodes): Use build_function_type_list
14996         instead of build_function_type.
14997         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14998         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14999
15000 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
15001
15002         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
15003         do all the work.
15004         (rs6000_emit_int_cmove): Use function pointers for insn generation.
15005         Don't force values into registers unnecessarily.
15006         (output_isel): Assert that we're not given conditions we can't handle.
15007         Delete corresponding code.
15008         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
15009         scc_comparison_operator constraint.  Permit 0 for the consequent
15010         operand.  Permit any GPR for the alternative operand.
15011         (isel_unsigned_<mode>): Likewise.
15012
15013 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
15014
15015         PR target/44942
15016         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
15017         argument to const_tree.
15018         * config/i386/i386.c (function_arg_advance): If padding needs to be
15019         inserted before argument, increment cum->words by number of padding
15020         words as well.
15021         (contains_aligned_value_p): Change argument to const_tree.
15022         (ix86_function_arg_boundary): Change second argument to const_tree.
15023
15024 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
15025
15026         PR target/42235
15027         * function.c (record_hard_reg_sets): New static function.
15028         (assign_parm_setup_reg): If an optab for extending exists and the
15029         generated code clobbbers no hard regs, emit the insn directly and
15030         create a REG_EQUIV note.
15031
15032 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15033
15034         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
15035         TREE_CHAIN.
15036         * c-typeck.c (push_init_level): Likewise.
15037         (process_init_element): Likewise.
15038
15039 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
15040
15041         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
15042         (integer_three_node): Add.
15043         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
15044         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
15045         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
15046         of call build_int_cst.
15047         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
15048         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
15049         (find_interesting_uses_address): Ditto.
15050         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
15051         * tree-eh.c (lower_eh_constructs_2): Ditto.
15052         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
15053         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
15054         * expmed.c (expand_divmod): Ditto.
15055         * tree-mudflap.c (mx_register_decls): Ditto.
15056         * varasm.c (array_size_for_constructor): Ditto.
15057         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
15058         * c-parser.c (c_parser_postfix_expression): Ditto.
15059
15060 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
15061
15062         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
15063         New static variables.
15064         (reload_combine_recognize_pattern): New static function, broken out
15065         of reload_combine.
15066         (reload_combine): Use it.  Only initialize first_index_reg and
15067         last_index_reg once.
15068
15069 2010-07-15  Richard Henderson  <rth@redhat.com>
15070
15071         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
15072         when done.
15073
15074 2010-07-15  Jan Hubicka  <jh@suse.cz>
15075
15076         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
15077         comdats for broken gold.
15078         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
15079
15080 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15081
15082         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
15083
15084 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
15085
15086         * tree.h (DECL_CHAIN): Define.
15087         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
15088         * c-decl.c: Likewise.
15089         * c-parser.c: Likewise.
15090         * c-typeck.c: Likewise.
15091         * cfgexpand.c: Likewise.
15092         * cgraph.c: Likewise.
15093         * cgraphunit.c: Likewise.
15094         * combine.c: Likewise.
15095         * config/alpha/alpha.c: Likewise.
15096         * config/arm/arm.c: Likewise.
15097         * config/frv/frv.c: Likewise.
15098         * config/i386/i386.c: Likewise.
15099         * config/i386/winnt-cxx.c: Likewise.
15100         * config/ia64/ia64.c: Likewise.
15101         * config/iq2000/iq2000.c: Likewise.
15102         * config/mep/mep.c: Likewise.
15103         * config/mips/mips.c: Likewise.
15104         * config/pa/som.h: Likewise.
15105         * config/rs6000/rs6000.c: Likewise.
15106         * config/s390/s390.c: Likewise.
15107         * config/sh/sh.c: Likewise.
15108         * config/sh/symbian-cxx.c: Likewise.
15109         * config/sparc/sparc.c: Likewise.
15110         * config/spu/spu.c: Likewise.
15111         * config/stormy16/stormy16.c: Likewise.
15112         * config/vxworks.c: Likewise.
15113         * config/xtensa/xtensa.c: Likewise.
15114         * coverage.c: Likewise.
15115         * dbxout.c: Likewise.
15116         * dwarf2out.c: Likewise.
15117         * emit-rtl.c: Likewise.
15118         * expr.c: Likewise.
15119         * function.c: Likewise.
15120         * gimple-low.c: Likewise.
15121         * gimple-pretty-print.c: Likewise.
15122         * gimplify.c: Likewise.
15123         * integrate.c: Likewise.
15124         * ipa-inline.c: Likewise.
15125         * ipa-prop.c: Likewise.
15126         * ipa-split.c: Likewise.
15127         * ipa-struct-reorg.c: Likewise.
15128         * ipa-type-escape.c: Likewise.
15129         * langhooks.c: Likewise.
15130         * lto-cgraph.c: Likewise.
15131         * omp-low.c: Likewise.
15132         * stor-layout.c: Likewise.
15133         * tree-cfg.c: Likewise.
15134         * tree-complex.c: Likewise.
15135         * tree-dfa.c: Likewise.
15136         * tree-dump.c: Likewise.
15137         * tree-inline.c: Likewise.
15138         * tree-mudflap.c: Likewise.
15139         * tree-nested.c: Likewise.
15140         * tree-object-size.c: Likewise.
15141         * tree-pretty-print.c: Likewise.
15142         * tree-sra.c: Likewise.
15143         * tree-ssa-live.c: Likewise.
15144         * tree-ssa-loop-niter.c: Likewise.
15145         * tree-ssa-math-opts.c: Likewise.
15146         * tree-ssa-reassoc.c: Likewise.
15147         * tree-ssa-sccvn.c: Likewise.
15148         * tree-ssa-structalias.c: Likewise.
15149         * tree-tailcall.c: Likewise.
15150         * tree-vrp.c: Likewise.
15151         * tree.c: Likewise.
15152         * var-tracking.c: Likewise.
15153         * varasm.c: Likewise.
15154
15155 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15156
15157         PR target/44877
15158         * config/spu/spu.c (spu_expand_builtin_1): Allow references
15159         (as well as pointers) as argument to mask_for_load builtins.
15160
15161 2010-07-15  Richard Guenther  <rguenther@suse.de>
15162
15163         PR tree-optimization/44946
15164         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
15165         with accessing only padding properly.
15166
15167 2010-07-15  Jan Hubicka  <jh@suse.cz>
15168
15169         * ipa.c (function_and_variable_visibility): Variables marked as used
15170         should not be localized.
15171
15172 2010-07-15  Jan Hubicka  <jh@suse.cz>
15173
15174         * cgraph.c: Include lto-streamer.h
15175         (change_decl_assembler_name): Work when assembler name hash is at place.
15176         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
15177         be sure to rename it to avoid name clash.
15178         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
15179         Localize hidden symbols only when locally defined.
15180
15181 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
15182
15183         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
15184
15185 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
15186             Kevin F. Quinn  <kevquinn@gentoo.org>
15187
15188         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
15189         * common.opt: Add -Wtrampolines.
15190         * doc/invoke.texi: Add -Wtrampolines.
15191
15192 2010-07-15  Jie Zhang  <jie@codesourcery.com>
15193
15194         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
15195         cortex_a8_issue_ls.
15196
15197 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
15198
15199         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
15200         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
15201
15202 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15203
15204         * config/spu/spu.c (reg_names): Remove prototype.
15205         (call_used_regs): Likewise.
15206
15207 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
15208
15209         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
15210         "unused" with attribute "used".
15211         (__JCR_END__): Likewise.
15212         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
15213         "used" attribute.
15214         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
15215
15216 2010-07-14  Richard Guenther  <rguenther@suse.de>
15217
15218         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
15219         (maybe_fixup_decls): Likewise.
15220         (input_gimple_stmt): Do not fixup anything.
15221         * lto-streamer-out.c (output_gimple_stmt): Make sure all
15222         non-automatic variable uses are wrapped inside a MEM_REF.
15223
15224 2010-07-14  Richard Henderson  <rth@redhat.com>
15225
15226         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
15227         for functions.
15228         * varasm.c (assemble_variable): Remove early exit for functions;
15229         assert that we're given a variable.
15230
15231 2010-07-14  Jie Zhang  <jie@codesourcery.com>
15232
15233         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
15234         cortex_a8_default when neon_type is not none.
15235
15236 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15237
15238         * lower-subreg.c (subreg_context): New static bitmap.
15239         (decompose_multiword_subregs): Allocate and free it.
15240         (find_decomposable_subregs): Set a bit in it for a register that
15241         occurs in a subreg that changes mode but not size.
15242         (can_decompose_p): Test it instead of non_decomposable_context.
15243
15244 2010-07-14  Richard Guenther  <rguenther@suse.de>
15245
15246         PR tree-optimization/44824
15247         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
15248         is_gimple_mem_ref_addr.
15249         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
15250         non-decl_address_invariant_p addresses.
15251
15252 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15253
15254         * reload.c (find_reloads): Revert code to penalize small register
15255         classes that was brought in with the IRA merge.
15256
15257 2010-07-14  Richard Guenther  <rguenther@suse.de>
15258
15259         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
15260         as base of ARRAY_REFs.
15261
15262 2010-07-14  Richard Guenther  <rguenther@suse.de>
15263
15264         PR middle-end/44930
15265         * tree-pretty-print.c (do_niy): Do not print a newline.
15266
15267 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
15268
15269         * ira-int.h (struct ira_object): New.
15270         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
15271         (struct ira_allocno): Remove members min, max,
15272         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
15273         conflict_allocnos_num and conflict_vec_p.  Add new member object.
15274         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
15275         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
15276         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
15277         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
15278         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
15279         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
15280         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
15281         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
15282         an ira_object_t rather than ira_allocno_t.  All uses changed.
15283         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
15284         contains a vector of ira_object_t; all uses changed.
15285         (ira_objects_num): Declare variable.
15286         (ira_create_allocno_object): Declare function.
15287         (ira_conflict_vector_profitable_p): Adjust prototype.
15288         (ira_allocate_conflict_vec): Renamed from
15289         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
15290         (ira_allocate_object_conflicts): Renamed from
15291         ira_allocate_allocno_conflicts; first arg now ira_object_t.
15292         (struct ira_object_iterator): New.
15293         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
15294         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
15295         to conflict_vec_p.  All uses changed.
15296         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
15297         Changed to take into account that conflicts are now tracked for
15298         objects.
15299         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
15300         Args changed to accept ira_object_t.  All uses changed.
15301         (allocnos_conflict_p): New static function.
15302         (collected_conflict_objects): Renamed from collected_allocno_objects;
15303         now a vector of ira_object_t.  All uses changed.
15304         (build_conflict_bit_table): Changed to take into account that
15305         conflicts are now tracked for objects.
15306         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
15307         (print_allocno_conflicts, ira_build_conflicts): Likewise.
15308         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
15309         setup_allocno_left_conflicts_size, allocno_reload_assign,
15310         fast_allocation): Likewise.
15311         * ira-lives.c (make_hard_regno_born, make_allocno_born)
15312         process_single_reg_class_operands, process_bb_node_lives): Likewise.
15313         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
15314         Likewise.
15315         * ira-build.c (ira_objects_num): New variable.
15316         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
15317         contains a vector of ira_object_t; all uses changed.
15318         (ira_object_id_map_vec): Corresponding change.
15319         (object_pool): New static variable.
15320         (initiate_allocnos): Initialize it.
15321         (finish_allocnos): Free it.
15322         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
15323         New functions.
15324         (ira_create_allocno): Don't set members that were removed.
15325         (ira_set_allocno_cover_class): Don't change conflict hard regs.
15326         (merge_hard_reg_conflicts): Changed to take into account that
15327         conflicts are now tracked for objects.
15328         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
15329         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
15330         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
15331         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
15332         setup_min_max_conflict_allocno_ids, ):  Likewise.
15333         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
15334         to ira_object_t; all callers changed.
15335         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
15336         to ira_object_t, all callers changed.
15337         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
15338         to ira_object_t, all callers changed.
15339         (conflict_check, curr_conflict_check_tick): Renamed from
15340         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
15341         changed.
15342         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
15343         arg changed to ira_object_t, all callers changed.
15344         (create_cap_allocno): Call ira_create_allocno_object.
15345         (finish_allocno): Free the corresponding object.
15346         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
15347         callers changed.  Adjusted for dealing with objects.
15348         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
15349         dealing with objects.
15350         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
15351
15352         * ira-int.h (struct live_range): Rename allocno member to object
15353         and change type to ira_object_t.
15354         (struct ira_object): New member live_ranges.
15355         (struct ira_allocno): Remove member live_ranges.
15356         (ALLOCNO_LIVE_RANGES): Remove.
15357         (OBJECT_LIVE_RANGES): New macro.
15358         (ira_create_live_range, ira_copy_live_range_list,
15359         ira_merge_live_range_list, ira_live_ranges_intersect_p,
15360         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
15361         * ira-build.c (ira_create_object): Initialize live ranges here.
15362         (ira_create_allocno): Not here.
15363         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
15364         changed to ira_object_t, all callers changed.
15365         (copy_live_range): Rename from copy_allocno_live_range, all callers
15366         changed.
15367         (ira_copy_live_range_list): Rename from
15368         ira_copy_allocno_live_range_list, all callers changed.
15369         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
15370         all callers changed.
15371         (ira_live_ranges_intersect_p): Rename from
15372         ira_allocno_live_ranges_intersect_p, all callers changed.
15373         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
15374         callers changed.
15375         (ira_finish_live_range_list): Rename from
15376         ira_finish_allocno_live_range_list, all callers changed.
15377         (change_object_in_range_list): Rename from change_allocno_in_range_list,
15378         last arg changed to ira_object_t, all callers changed.
15379         (finish_allocno): Changed to expect live ranges in the allocno's object.
15380         (move_allocno_live_ranges, copy_allocno_live_ranges,
15381         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
15382         ira_flattening, ira_build): Likewise.
15383         * ira-color.c (allocnos_have_intersected_live_ranges_p,
15384         slot_coalesced_allocno_live_ranges_intersect,
15385         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
15386         * ira-conflicts.c (build_conflict_bit_table): Likewise.
15387         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
15388         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
15389         make_allocno_dead, create_start_finish_chains,
15390         remove_some_program_points_and_update_live_ranges,
15391         ira_debug_live_range_list): Likewise.
15392
15393         * ira-int.h (ira_object_conflict_iterator): Rename from
15394         ira_allocno_conflict_iterator.
15395         (ira_object_conflict_iter_init): Rename from
15396         ira_allocno_conflict_iter_init, second arg changed to
15397         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
15398         FOR_EACH_ALLOCNO_CONFLICT.
15399         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
15400         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
15401         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
15402         * ira-conflicts.c (print_allocno_conflicts): Likewise.
15403
15404 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
15405
15406         PR other/44874
15407         * tree-dump.c (dump_options): Add enumerate_locals entry.
15408         Add TDF_NOID exclusion to all entry.
15409         * tree-dump.h (dump_enumerated_decls): Declare.
15410         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
15411         Don't display type uid.
15412         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
15413         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
15414         * tree-ssa-live.c: Include gimple.h.
15415         (numbered_tree_d): New struct.
15416         (numbered_tree): New typedef.
15417         (DEF_VEC_O (numbered_tree): New.
15418         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
15419         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
15420         (dump_enumerated_decls): Likewise.
15421         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
15422         debug info and flag_dump_final_insns, call dump_enumerated_decls.
15423         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
15424         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
15425
15426 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
15427
15428         * expmed.h (MAX_BITS_PER_WORD): Move to...
15429         * defaults.h (MAX_BITS_PER_WORD): ...here.
15430
15431 2010-07-13  DJ Delorie  <dj@redhat.com>
15432
15433         * config/h8300/h8300.c (h8300_init_once): Default to
15434         -fstrict_volatile_bitfields.
15435
15436         * config/sh/sh.c (sh_override_options): Default to
15437         -fstrict_volatile_bitfields.
15438
15439         * config/rx/rx.c (rx_option_override): New.
15440
15441         * config/m32c/m32c.c (m32c_override_options): Default to
15442         -fstrict_volatile_bitfields.
15443
15444 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
15445
15446         * tree.h (build_function_call_expr): Delete.
15447         (build_call_expr_loc_array): New function.
15448         (build_call_expr_loc_vec): New function.
15449         * tree-flow.h (struct omp_region): Change type of ws_args field
15450         to a VEC.
15451         * builtins.c (build_function_call_expr): Delete.
15452         (build_call_expr_loc_array): New function.
15453         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
15454         (build_call_expr): Likewise.
15455         (build_call_expr_loc_vec): New function.
15456         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
15457         build_function_call_expr.
15458         * expr.c (emutls_var_address): Likewise.
15459         * varasm.c (emutls_common_1): Likewise.
15460         * omp-low.c (expand_omp_atomic_mutex): Likewise.
15461         (expand_omp_taskreg): Adjust for new type of region->ws_args.
15462         (get_ws_args_for): Return a VEC instead of a tree.
15463         (expand_parallel_call): Call build_call_expr_loc_vec instead of
15464         build_function_call_expr.
15465         * stor-layout.c (self_referential_size): Likewise.
15466
15467 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
15468
15469         PR testsuite/44701
15470         * recog.c (constrain_operands): Allow side-effects in memory
15471         operands if either < or > constraint is used, rather than if
15472         both < and > is used.
15473
15474 2010-07-13  Richard Guenther  <rguenther@suse.de>
15475
15476         PR middle-end/44911
15477         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
15478         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
15479         without name.
15480
15481 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
15482
15483         PR target/44761
15484         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
15485         to variable emited.
15486         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
15487         * config/sh/sh.md (symGOT_load): Likewise.
15488         (symDTPOFF2reg): Likewise.
15489         (symTPOFF2reg): Likewise.
15490
15491 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15492
15493         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
15494         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
15495
15496 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15497
15498         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
15499         explanation.
15500         Find ucontext_t * on Solaris 11.
15501         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
15502         Handle new Solaris 11 __sighndlr patterns.
15503
15504 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
15505
15506         PR debug/44901
15507         * vec.h (VEC_block_remove): Fix comment.
15508         * tree-ssa-live.c (remove_unused_locals): Don't use
15509         VEC_unordered_remove on local_decls, instead replace a single
15510         vector element in each iteration if at least one element had
15511         to be removed and VEC_truncate at the end.
15512         * omp-low.c (expand_omp_taskreg): Likewise.
15513
15514 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15515
15516         * c-decl.c (finish_function): Fix typo in comment.
15517
15518 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
15519
15520         PR bootstrap/44921
15521         * postreload.c (move2add_use_add3_insn): Silence gcc warning
15522         on min_regno.
15523
15524 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
15525
15526         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
15527         (simplify_stmt_using_ranges): Use it.
15528
15529 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15530
15531         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
15532         member.  Do not mark as GTY(()).
15533         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
15534         (spu_builtin_decls): New static variable.
15535         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
15536         (spu_init_builtins): Likewise.
15537         (spu_builtin_mul_widen_even): Likewise.
15538         (spu_builtin_mul_widen_odd): Likewise.
15539         (spu_builtin_mask_for_load): Likewise.
15540         (spu_builtin_vec_perm): Likewise.
15541         * config/spu/spu-c.c: Include "target.h".
15542         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
15543         of using spu_builtins[].fndecl.
15544
15545 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15546
15547         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
15548         imply -minterlink-mips16.
15549
15550 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15551
15552         * config/mips/mips.h (mips16_globals): Declare.
15553         (SWITCHABLE_TARGET): Define.
15554         * config/mips/mips.c: Include target-globals.h.
15555         (mips16_globals): New variable.
15556         (mips_set_mips16_mode): Use save_target_globals and
15557         restore_target_globals instead of target_reinit.
15558
15559 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15560
15561         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
15562         to say that the function can be called more than once.
15563         * target-globals.c (save_target_globals): Call init_reg_sets.
15564
15565 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15566
15567         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
15568         * bb-reorder.h: New file.
15569         * bb-reorder.c (default_target_bb_reorder): New variable.
15570         (this_target_bb_reorder): New conditional variable.
15571         (uncond_jump_length): Redefine as a macro.
15572         * target-globals.h (this_target_bb_reorder): Declare.
15573         (target_globals): Add a bb_reorder field.
15574         (restore_target_globals): Copy the bb_reorder field to
15575         this_target_bb-reorder.
15576         * target-globals.c: Include bb-reorder.h.
15577         (default_target_globals): Initialize the bb_reorder field.
15578         (save_target_globals): Likewise.
15579
15580 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15581
15582         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
15583         * gcse.h: New file.
15584         * gcse.c: Include gcse.h.
15585         (default_target_gcse): New variable.
15586         (this_target_gcse): New conditional variable.
15587         (can_copy): Redefine as a macro.
15588         (can_copy_init_p): New macro.
15589         (can_copy_p): Remove can_copy_init_p.
15590         * target-globals.h (this_target_gcse): Declare.
15591         (target_globals): Add a gcse field.
15592         (restore_target_globals): Copy the gcse field to this_target_gcse.
15593         * target-globals.c: Include gcse.h.
15594         (default_target_globals): Initialize the gcse field.
15595         (save_target_globals): Likewise.
15596
15597 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15598
15599         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
15600         and x_ira_prohibited_mode_move_regs_initialized_p.
15601         (ira_prohibited_mode_move_regs): Redefine as a macro.
15602         * ira.c (ira_prohibited_mode_move_regs): Delete.
15603         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
15604
15605 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15606
15607         * reload.h (target_reload): Add x_cached_reg_save_code and
15608         x_cached_reg_restore_code.
15609         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
15610         Redefine as macros.
15611
15612 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15613
15614         * Makefile.in (target-globals.o): Depend on builtins.h.
15615         * builtins.h: New file.
15616         * builtins.c: Include builtins.h.
15617         (default_target_builtins): New variable.
15618         (this_target_builtins): New conditional variable.
15619         (apply_args_mode, apply_result_mode): Redefine as macros.
15620         * target-globals.h (this_target_builtins): Declare.
15621         (target_globals): Add a builtins field.
15622         (restore_target_globals): Copy the builtins field to
15623         this_target_builtins.
15624         * target-globals.c: Include builtins.h.
15625         (default_target_globals): Initialize the builtins field.
15626         (save_target_globals): Likewise.
15627
15628 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15629
15630         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
15631         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
15632         from expmed.c.
15633         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
15634         (alg_hash, alg_hash_used_p): New macros.
15635         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
15636         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
15637         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
15638
15639 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15640
15641         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
15642         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
15643         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
15644         (this_op_costs, costs_classes): Redefine as macros.
15645         (record_reg_classes): Don't take op_costs as a parameter.
15646         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
15647         (scan_one_insn): Update call to record_operand_costs.
15648
15649 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15650
15651         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
15652         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
15653         (target_ira_int): New structure.
15654         (default_target_ira_int): Declare.
15655         (this_target_ira_int): Declare as a variable or define as a macro.
15656         (ira_reg_mode_hard_regset, ira_register_move_cost)
15657         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
15658         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
15659         (prohibited_class_mode_regs, ira_important_classes_num)
15660         (ira_important_classes, ira_reg_class_intersect)
15661         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
15662         (ira_reg_class_union): Redefine as macros.
15663         * ira.h (target_ira): New structure.
15664         (default_target_ira): Declare.
15665         (this_target_ira): Declare as a variable or define as a macro.
15666         (ira_available_class_regs, ira_hard_regno_cover_class)
15667         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
15668         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
15669         (ira_class_hard_regs_num): Redefine as macros.
15670         * ira.c (default_target_ira, default_target_ira_int): New variables.
15671         (this_target_ira, this_target_ira_int): New conditional variables.
15672         (ira_reg_mode_hard_regset, ira_memory_move_cost)
15673         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
15674         (ira_class_subset_p): Delete.
15675         (no_unit_alloc_regs): Redefine as a macro.
15676         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
15677         (ira_class_hard_regs_num, ira_class_hard_reg_index)
15678         (ira_available_class_regs): Delete.
15679         (alloc_reg_class_subclasses): Redefine as a macro.
15680         (ira_reg_class_cover_size, ira_reg_class_cover)
15681         (ira_important_classes_num, ira_important_classes)
15682         (ira_important_class_nums, ira_class_translate): Delete.
15683         (cover_class_order): Document the variable's lifetime.
15684         (reorder_important_classes): Don't set ira_important_class_nums.
15685         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
15686         (ira_reg_class_super_classes, ira_reg_class_union)
15687         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
15688         Delete.
15689         (setup_reg_class_nregs): Don't set ira_max_regs.
15690         (prohibited_class_mode_regs): Delete.
15691         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
15692         (target_globals): Add ira and ira_int fields.
15693         (restore_target_globals): Copy the ira field to this_target_ira
15694         and the ira_int field to this_target_ira_int.
15695         * target-globals.c: Include ira-int.h.
15696         (default_target_globals): Initialize the ira and ira_int fields.
15697         (save_target_globals): Likewise.
15698
15699 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15700
15701         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
15702         * cfgloop.h (target_cfgloop): New structure.
15703         (default_target_cfgloop): Declare.
15704         (this_target_cfgloop): Declare as a variable or define as a macro.
15705         (target_avail_regs, target_clobbered_regs, target_res_regs)
15706         (target_reg_cost, target_spill_cost): Redefine as macros.
15707         * cfgloopanal.c (default_target_cfgloop): New variable.
15708         (this_target_cfgloop): New conditional variable.
15709         (target_avail_regs, target_clobbered_regs, target_res_regs)
15710         (target_reg_cost, target_spill_cost): Delete.
15711         * target-globals.h (this_target_cfgloop): Declare.
15712         (target_globals): Add a cfgloop field.
15713         (restore_target_globals): Copy the cfgloop field to
15714         this_target_cfgloop.
15715         * target-globals.c: Include cfgloop.h.
15716         (default_target_globals): Initialize the cfgloop field.
15717         (save_target_globals): Likewise.
15718
15719 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15720
15721         * regs.h (target_regs): Add x_direct_load, x_direct_store and
15722         x_float_extend_from_mem.
15723         (direct_load, direct_store, float_extend_from_mem): New macros.
15724         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
15725
15726 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15727
15728         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
15729         (target-globals.o): Depend on $(LIBFUNCS_H).
15730         * libfuncs.h: Include hashtab.h.
15731         (libfunc_entry): Moved from optabs.c.
15732         (target_libfuncs): New structure.
15733         (default_target_libfuncs): Declare.
15734         (this_target_libfuncs): Declare as a variable or define as a macro.
15735         (libfunc_table): Redefine as a macro.
15736         * optabs.c (default_target_libfuncs): New variable.
15737         (this_target_libfuncs): New conditional variable.
15738         (libfunc_table): Delete.
15739         (libfunc_entry): Moved to optabs.h.
15740         (libfunc_hash): Redefine as a macro.
15741         (hash_libfunc, eq_libfunc): Fix comments.
15742         (init_optabs): Use libfunc_hash to detect cases where the function
15743         has already been called.  Clear the hash table instead of
15744         recreating it.
15745         * target-globals.h (this_target_libfuncs): Declare.
15746         (target_globals): Add a libfuncs field.
15747         (restore_target_globals): Copy the libfuncs field to
15748         this_target_libfuncs.
15749         * target-globals.c: Include libfuncs.h.
15750         (default_target_globals): Initialize the libfuncs field.
15751         (save_target_globals): Likewise.
15752
15753 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15754
15755         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
15756         in all dependency lists.
15757
15758 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15759
15760         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
15761         * optabs.h (target_optabs): New structure.
15762         (default_target_optabs): Declare.
15763         (this_target_optabs): Declare as a variable or define as a macro.
15764         (optab_table, convert_optab_table, direct_optab_table): Redefine
15765         as macros.
15766         * optabs.c (default_target_optabs): New variable.
15767         (this_target_optabs): New conditional variable.
15768         (optab_table, convert_optab_table, direct_optab_table): Delete.
15769         * target-globals.h (this_target_optabs): Declare.
15770         (target_globals): Add a optabs field.
15771         (restore_target_globals): Copy the optabs field to
15772         this_target_optabs.
15773         * target-globals.c: Include expr.h and optabs.h.
15774         (default_target_globals): Initialize the optabs field.
15775         (save_target_globals): Likewise.
15776
15777 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15778
15779         * flags.h (target_flagstate): Add x_flag_excess_precision.
15780         (flag_excess_precision): Redefine as a macro.
15781         * toplev.c (flag_excess_precision): Delete.
15782
15783 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15784
15785         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
15786         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
15787         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
15788         (no_caller_save_reg_set): Redefine as a macro.
15789         * reload.h (target_reload): Add x_caller_save_initialized_p and
15790         x_regno_save_mode.
15791         (caller_save_initialized_p): Redefine as a macro.
15792         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
15793         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
15794         (regno_save_mode): Redefine as a macro.
15795
15796 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15797
15798         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
15799         * expmed.h: New file.
15800         * expmed.c (default_target_costs): New variable.
15801         (this_target_costs): New conditional variable.
15802         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
15803         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
15804         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
15805         * target-globals.h (this_target_expmed): Declare.
15806         (target_globals): Add a expmed field.
15807         (restore_target_globals): Copy the expmed field to
15808         this_target_expmed.
15809         * target-globals.c: Include expmed.h.
15810         (default_target_globals): Initialize the expmed field.
15811         (save_target_globals): Likewise.
15812
15813 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15814
15815         * Makefile.in (target-globals.o): Depend on reload.h.
15816         * reload.h (target_reload): New structure.
15817         (default_target_reload): Declare.
15818         (this_target_reload): Declare as a variable or define as a macro.
15819         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
15820         * reload1.c (default_target_reload): New variable
15821         (this_target_reload): New conditional variable.
15822         (indirect_symref_ok, double_reg_address_ok): Delete.
15823         (spill_indirect_levels): Redefine as a macro.
15824         * target-globals.h (this_target_reload): Declare.
15825         (target_globals): Add a reload field.
15826         (restore_target_globals): Copy the reload field to
15827         this_target_reload.
15828         * target-globals.c: Include hard-reg-set.h.
15829         (default_target_globals): Initialize the reload field.
15830         (save_target_globals): Likewise.
15831
15832 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15833
15834         * rtl.h (target_rtl): Add x_static_reg_base_value.
15835         * alias.c (static_reg_base_value): Redefine as a macro.
15836
15837 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15838
15839         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
15840         (GTFILES): Remove reginfo.c.
15841         * rtl.h (target_rtl): Add x_top_of_stack.
15842         (top_of_stack): New macro.
15843         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
15844         (top_of_stack): Delete.
15845
15846 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15847
15848         * regs.h (target_regs): Add x_hard_regs_of_mode,
15849         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
15850         x_may_move_out_cost and x_last_mode_for_init_move_cost.
15851         (have_regs_of_mode, contains_reg_of_mode, move_cost)
15852         (may_move_in_cost, may_move_out_cost): Redefine as macros.
15853         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
15854         (may_move_in_cost, may_move_out_cost): Delete.
15855         (last_mode_for_init_move_cost): Redefine as a macro.
15856
15857 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15858
15859         * hard-reg-set.h (target_hard_regs): New structure.
15860         (default_target_hard_regs): Declare.
15861         (this_target_hard_regs): Declare as a variable or define as a macro.
15862         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
15863         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
15864         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
15865         (reg_class_size, reg_class_subclasses, reg_class_subunion)
15866         (reg_class_superunion, reg_names): Redefine as macros.
15867         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
15868         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
15869         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
15870         (reg_class_contents, reg_class_size, reg_class_subclasses)
15871         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
15872         (default_target_hard_regs): New variable
15873         (this_target_hard_regs, initial_call_really_used_regs)
15874         (initial_reg_alloc_order): New conditional variables.
15875         (initial_reg_names): New variable.
15876         (init_reg_sets): Assert that initial_call_really_used_regs,
15877         initial_reg_alloc_order and initial_reg_names
15878         are all the same size as their variable counterparts.  Use them to
15879         initialize those counterparts.
15880         * target-globals.h (this_target_hard_regs): Declare.
15881         (target_globals): Add a hard_regs field.
15882         (restore_target_globals): Copy the hard_regs field to
15883         this_target_hard_regs.
15884         * target-globals.c: Include hard-reg-set.h.
15885         (default_target_globals): Initialize the hard_regs field.
15886         (save_target_globals): Likewise.
15887
15888 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15889
15890         * Makefile.in (target-globals.o): Depend on $(RTL_H).
15891         * rtl.h (target_rtl): New structure.
15892         (default_target_rtl): Declare.
15893         (this_target_rtl): Declare as a variable or define as a macro.
15894         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
15895         Redefine as macros.
15896         * emit-rtl.c (default_target_rtl): New variable.
15897         (this_target_rtl): New conditional variable.
15898         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
15899         (return_address_pointer_rtx): Delete.
15900         (initial_regno_reg_rtx): New macro.
15901         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
15902         (init_emit_regs): Likewise.
15903         * target-globals.h (this_target_rtl): Declare.
15904         (target_globals): Add a rtl field.
15905         (restore_target_globals): Copy the rtl field to this_target_rtl.
15906         * target-globals.c: Include rtl.h.
15907         (default_target_globals): Initialize the rtl field.
15908         (save_target_globals): Likewise.
15909
15910 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15911
15912         * Makefile.in (target-globals.o): Depend on $(REGS_H).
15913         * regs.h (target_reg_modes): New structure.
15914         (default_target_reg_modes): Declare.
15915         (this_target_reg_modes): Declare as a variable or define as a macro.
15916         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
15917         * reginfo.c (default_target_reg_modes): New variable.
15918         (this_target_reg_modes): New conditional variable.
15919         (hard_regno_nregs, reg_raw_mode): Delete.
15920         * target-globals.h (this_target_regs): Declare.
15921         (target_globals): Add a regs field.
15922         (restore_target_globals): Copy the regs field to this_target_regs.
15923         * target-globals.c: Include regs.h.
15924         (default_target_globals): Initialize the regs field.
15925         (save_target_globals): Likewise.
15926
15927 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15928
15929         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
15930         * doc/tm.texi: Regenerate.
15931         * Makefile.in (OBJS-common): Add target-globals.o.
15932         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
15933         and target-globals.h.
15934         (target-globals.o): New rule.
15935         (GTFILES): Include $(srcdir)/target-globals.h.
15936         * defaults.h (SWITCHABLE_TARGET): Define.
15937         * gengtype.c (open_base_files): Add target-globals.h to the
15938         list of includes.
15939         * target-globals.h: New file.
15940         * target-globals.c: Likewise.
15941
15942         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
15943         * flags.h (target_flag_state): New structure.
15944         (default_target_flag_state): Declare.
15945         (this_target_flag_state): Declare as a variable or define as a macro.
15946         (align_loops_log): Redefine as a macro.
15947         (align_loops_max_skip, align_jumps_log): Likewise.
15948         (align_jumps_max_skip, align_labels_log): Likewise.
15949         (align_labels_max_skip, align_functions_log): Likewise.
15950         * toplev.c (default_target_flag_state): New variable.
15951         (this_target_flag_state): New conditional variable.
15952         (align_loops_log): Delete.
15953         (align_loops_max_skip, align_jumps_log): Likewise.
15954         (align_jumps_max_skip, align_labels_log): Likewise.
15955         (align_labels_max_skip, align_functions_log): Likewise.
15956         * target-globals.h (this_target_flag_state): Declare.
15957         (target_globals): Add a flag_state field.
15958         (restore_target_globals): Copy the flag_state field to
15959         this_target_flag_state.
15960         * target-globals.c: Include flags.h.
15961         (default_target_globals): Initialize the flag_state field.
15962         (save_target_globals): Likewise.
15963
15964 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15965
15966         * postreload.c (reg_symbol_ref[]): New.
15967         (move2add_use_add2_insn): New.
15968         (move2add_use_add3_insn): New.
15969         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15970         (move2add_note_store): Likewise.
15971
15972 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
15973
15974         PR rtl-optimization/44752
15975         * genautomata.c (main): Don't emit an empty file even if there
15976         is no automaton.
15977
15978 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15979
15980         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15981         ix86_solaris_return_in_memory.
15982         * config/i386-protos.h: Reflect this.
15983         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15984         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15985         Move ...
15986         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15987
15988 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15989
15990         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15991         align the stack when it's going to be saved.
15992
15993 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15994
15995         PR pch/14940
15996         * config/host-solaris.c (mmap_fixed): New function.
15997         (sol_gt_pch_get_address): Use it.
15998         (sol_gt_pch_use_address): Likewise.
15999
16000 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16001
16002         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16003         pentiumpro on Solaris 8 and 9/x86.
16004         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
16005         Document SSE/SSE2 support.
16006         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
16007
16008 2010-07-12  Andi Kleen  <ak@linux.intel.com>
16009
16010         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
16011         instead of gcc_assert to print better error message for multiple
16012         prevailing defs.
16013
16014 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
16015
16016         * config/i386/i386.c (ix86_asm_output_function_label): Change format
16017         string placeholder from 0x%x to %#x.
16018         (ix86_code_end): Use putc to output '\n'.
16019         (ix86_print_operand) <case ';'>: Use putc to output ';'.
16020
16021 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
16022
16023         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
16024         in directive -export.
16025
16026 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
16027
16028         * reginfo.h (reg_classes_intersect_p): Change arguments type to
16029         reg_class_t.
16030         * rtl.h (reg_classes_intersect_p): Adjust prototype.
16031
16032         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16033         Remove macros.
16034         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
16035         rs6000_memory_move_cost): Remove
16036         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
16037         TARGET_MEMORY_MOVE_COST): Define.
16038         (rs6000_register_move_cost): Make static. Change arguments type from
16039         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
16040         (rs6000_memory_move_cost): Make static. Change arguments type from
16041         'enum reg_class' to reg_class_t.
16042
16043 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
16044
16045         PR middle-end/42505
16046         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
16047         lookup code into....
16048         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
16049         new functions.
16050         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
16051         * cfgloopanal.c (target_clobbered_regs): Define.
16052         (init_set_costs): Initialize target_clobbered_regs.
16053         (estimate_reg_pressure_cost): Add call_p argument.  When true,
16054         adjust the number of available registers to exclude the
16055         call-clobbered registers.
16056         * cfgloop.h (target_clobbered_regs): Declare.
16057         (estimate_reg_pressure_cost): Adjust declaration.
16058         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
16059         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
16060         (determine_set_costs): Dump target_clobbered_regs.
16061         (loop_body_includes_call): New function.
16062         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
16063         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
16064         call_p flag through.
16065         (best_gain_for_invariant): Likewise.
16066         (find_invariants_to_move): Likewise.
16067         (move_single_loop_invariants): Likewise, using already-computed
16068         has_call field.
16069
16070 2010-07-10  Richard Guenther  <rguenther@suse.de>
16071             Joern Rennecke  <joern.rennecke@embecosm.com>
16072
16073         PR debug/44832
16074         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
16075         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
16076         unless they have DECL_IGNORED_P set.
16077
16078 2010-07-10  Richard Guenther  <rguenther@suse.de>
16079
16080         PR lto/44889
16081         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
16082         helper function.
16083         (gimple_types_compatible_p): Similar to pointed-to
16084         types allow and merge a mix of complete and incomplete aggregate.
16085         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
16086         (iterative_hash_gimple_type): Adjust for that.
16087
16088 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
16089
16090         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
16091
16092 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
16093
16094         PR objc/44140
16095         * config/darwin.c (output_objc_section_asm_op): Save and restore
16096         section when outputting ObjC section list.
16097
16098 2010-07-09  Jan Hubicka  <jh@suse.cz>
16099
16100         * lto-streamer-out.c (produce_symtab): Do not write alias
16101         cgraph/varpool nodes.
16102
16103 2010-07-09  Jan Hubicka  <jh@suse.cz>
16104
16105         * tree-inline.c (declare_return_variable): Fix ICE while
16106         inlining DECL_BY_VALUE function not in SSA form
16107
16108 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
16109
16110         PR tree-optimization/44576
16111         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
16112         New.  Pull out from is_loop_prefetching_profitable to implement
16113         the trip count to ahead ratio heuristic.
16114         (mem_ref_count_reasonable_p): New.  Pull out from
16115         is_loop_prefetching_profitable to implement the instruction to
16116         memory reference ratio heuristic.  Also consider not reasonable if
16117         the memory reference count is above a threshold (to avoid
16118         explosive compilation time.
16119         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
16120         is_loop_prefetching_profitable to implement the instruction to
16121         prefetch ratio heuristic.
16122         (is_loop_prefetching_profitable): Removed.
16123         (loop_prefetch_arrays): Distribute the cost analysis across the
16124         function to allow early exit of the prefetch analysis.
16125         is_loop_prefetching_profitable is splitted into three functions,
16126         with each one called as early as possible.
16127         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
16128         number of memory references in a loop is considered too many.
16129
16130 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
16131
16132         * reload.c (find_reloads): Don't clear badop if we have a winreg
16133         alternative, but not win, and the class only has fixed regs.
16134         * hard-reg-set.h (class_only_fixed_regs): Declare.
16135         * reginfo.c (class_only_fixed_regs): New array.
16136         (init_reg_sets_1): Initialize it.
16137         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
16138         discourage alternatives using the stack pointer.
16139
16140         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
16141
16142         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
16143
16144         * config/arm/arm.md (cbranchqi4): Fix array size.
16145         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
16146         calculating length.
16147
16148 2010-07-09  Richard Guenther  <rguenther@suse.de>
16149
16150         * gimple.c (struct type_fixup_s): New struct and VEC type.
16151         (gimple_register_type_fixups): New static global.
16152         (gimple_queue_type_fixup): New function.
16153         (gimple_types_compatible_p): Queue type fixups instead of
16154         applying them here.
16155         (gimple_register_type): Apply queued fixups for the
16156         canonical type.  Empty the type fixup queue.
16157
16158 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16159
16160         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
16161         * configure: Regenerate.
16162         * config.in: Ditto.
16163
16164 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
16165             Denys Vlasenko  <dvlasenk@redhat.com>
16166             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
16167
16168         PR tree-optimization/28632
16169         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
16170         (extract_range_from_binary_expr): Further optimize
16171         BIT_AND_EXPR and BIT_IOR_EXPR.
16172
16173 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
16174
16175         * tree-if-conv.c (fold_or_predicates): New.
16176         (add_to_predicate_list): Call it.
16177
16178 2010-07-09  Richard Guenther  <rguenther@suse.de>
16179
16180         PR middle-end/44890
16181         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
16182         if base is a pointer.
16183         * tree-cfg.c (verify_expr): Update MEM_REF checking.
16184
16185 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
16186
16187         PR target/44877
16188         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
16189         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
16190         builtin mask for load/store builtins.
16191
16192 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16193
16194         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
16195         for "lock addl".
16196         * configure: Regenerate.
16197         * config/i386/i386.c (ix86_print_operand) <case ';'>:
16198         Remove TARGET_MACHO.
16199
16200 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
16201
16202         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
16203         default ISA flags.
16204         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
16205
16206 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
16207
16208         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
16209
16210 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
16211
16212         * config/picochip/picochip.md (commsTestPort): Emit more
16213         efficient sequence for tstport instruction.
16214
16215 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
16216
16217         * config/i386/i386.c (ix86_veclib_handler): Make static.
16218
16219 2010-07-09  Richard Guenther  <rguenther@suse.de>
16220
16221         PR tree-optimization/44852
16222         * tree-ssa-alias.c: Include toplev.h for exact_log2.
16223         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
16224         in MEM_REF.
16225         (indirect_refs_may_alias_p): Likewise.
16226         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
16227
16228 2010-07-09  Richard Guenther  <rguenther@suse.de>
16229
16230         PR tree-optimization/44882
16231         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
16232         sets do conflict.
16233         (vectorizable_load): Likewise.
16234
16235 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
16236
16237         PR target/40657
16238         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
16239         All callers changed.
16240         Handle the case when we're called for the epilogue.
16241         (thumb_unexpanded_epilogue): Use it.
16242         (thumb1_expand_epilogue): Likewise.
16243
16244 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
16245
16246         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
16247         both ranges are range_int_cst_p with non-negative minimum,
16248         try harder to derive smaller range.
16249
16250 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16251
16252         * genrecog.c: Include diagnostic-core.h before toplev.h.
16253         * genoutput.c: Likewise.
16254         * genextract.c: Likewise.
16255         * genautomata.c: Likewise.
16256         * genemit.c: Likewise.
16257         * genpeep.c: Likewise.
16258         * genattrtab.c: Likewise.
16259         * genconditions.c: Likewise.
16260         * genpreds.c: Likewise.
16261
16262 2010-07-08  Andi Kleen  <ak@linux.intel.com>
16263
16264         * lto-section-in.c (lto_section_name): Add missing comma.
16265
16266 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
16267
16268         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
16269         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
16270         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
16271         (ia64_override_options): Rename to...
16272         (ia64_option_override): ... this one. Make static.
16273
16274 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16275
16276         PR middle-end/44843
16277         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
16278         pointed-to type of the offset in a MEM_REF to compute the alignment.
16279
16280 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
16281
16282         * final.c (final_scan_insn): Replace
16283         TARGET_UNWIND_INFO macro check by unwind_emit
16284         hook NULL check.
16285         * targhooks.c (default_unwind_emit): Removed.
16286         * targhooks.h (default_unwind_emit): Likewise.
16287         * target.def (unwind_emit): Set default value to NULL.
16288
16289         * config/i386/i386-protos.h (ix86_asm_output_function_label):
16290         New prototype.
16291         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
16292         for NULL fntype argument and allow 64-bit targets.
16293         (ix86_asm_output_function_label): New function.
16294         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
16295         (ix86_handle_fndecl_attribute): Likewise.
16296         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
16297         * doc/doc/tm.texi: Regenerated.
16298         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
16299         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
16300         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
16301         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
16302         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
16303         * config/elfos.h: Likewise.
16304         * config/i386/cygming.h: Likewise.
16305         * config/netbsd-aout.h: Likewise.
16306         * config/openbsd.h: Likewise.
16307         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
16308         by ix86_asm_output_function_label function call.
16309         * varasm.c (assemble_start_function): Use
16310         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
16311
16312 2010-07-08  Jan Hubicka  <jh@suse.cz>
16313
16314         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
16315         New function.
16316         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
16317         Declare.
16318         * ipa-cp.c (ipcp_estimate_growth): Use it.
16319         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
16320         Likewise.
16321
16322 2010-07-08  Jan Hubicka  <jh@suse.cz>
16323
16324         * tree-inline.c (declare_return_variable): Allocate annotation for new
16325         temporary.
16326
16327 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16328
16329         PR tree-optimization/44710
16330         * tree-if-conv.c (parse_predicate): New.
16331         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
16332         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
16333
16334 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
16335
16336         * common.opt (ftree-loop-if-convert): New flag.
16337         * doc/invoke.texi (ftree-loop-if-convert): Documented.
16338         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
16339         when flag_tree_loop_if_convert is set.
16340
16341 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
16342
16343         * config/i386/i386.c: Use short syntax for function calls
16344         through function pointers.
16345         * config/i386/i386.md: Ditto.
16346
16347 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16348
16349         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
16350
16351 2010-07-08  Richard Guenther  <rguenther@suse.de>
16352
16353         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
16354         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
16355
16356 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
16357
16358         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
16359         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
16360         (loc_list_from_tree): Likewise.
16361         (output_loc_operands): Handle outputting DW_OP_const[48]u
16362         with loc->dtprel set.
16363         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
16364
16365 2010-07-08  Jan Hubicka  <jh@suse.cz>
16366
16367         * ipa.c: Include pointer-set.h
16368         (cgraph_externally_visible_p): New attribute ALIASED;
16369         when in LTO, hidden symbols are local unless they are aliased.
16370         (function_and_variable_visibility): Compute aliased nodes;
16371         handle LTO and hidden symbol on functions and vars.
16372         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
16373         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
16374
16375 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16376
16377         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16378         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16379         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16380         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16381         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16382         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
16383         (ix86_gen_probe_stack_range): Likewise.
16384         (override_options): Set them.
16385         (ix86_target_stack_probe): New function.
16386         (ix86_compute_frame_layout): Force use of push instructions to
16387         save registers if stack checking with probes is enabled.
16388         (get_scratch_register_on_entry): New function.
16389         (release_scratch_register_on_entry): Likewise.
16390         (ix86_adjust_stack_and_probe): Likewise.
16391         (output_adjust_stack_and_probe): Likewise.
16392         (ix86_emit_probe_stack_range): Likewise.
16393         (output_probe_stack_range): Likewise.
16394         (ix86_expand_prologue): Emit stack checking code if static built-in
16395         stack checking is enabled.
16396         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
16397         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
16398         (output_adjust_stack_and_probe): Likewise.
16399         (output_probe_stack_range): Likewise.
16400         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16401         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
16402         TARGET_STACK_PROBE.
16403         (allocate_stack_worker_64): Likewise.
16404         (allocate_stack): Likewise.
16405         (adjust_stack_and_probe): New insn.
16406         (probe_stack_range): Likewise.
16407
16408 2010-07-08  Richard Guenther  <rguenther@suse.de>
16409
16410         PR tree-optimization/44831
16411         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
16412         a MEM_REF preserving TBAA info of the original dereference.
16413         Dereference the original pointer if the address is not invariant.
16414         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
16415         at least one invariant address that we are going to dereference.
16416
16417 2010-07-08  Richard Guenther  <rguenther@suse.de>
16418
16419         PR tree-optimization/44861
16420         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
16421         information when building MEM_REFs.
16422         (vectorizable_load): Likewise.
16423         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
16424
16425 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16426
16427         * config/sol2-c.c: Do not include diagnostic-core.h.
16428
16429 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16430
16431         PR bootstrap/44768
16432         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
16433         with respect to current_function_decl. Pass decl of the function.
16434         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
16435         * ipa-inline.c (compute_inline_parameters): Pass decl to
16436         estimated_stack_frame_size.
16437
16438 2010-07-08  Richard Guenther  <rguenther@suse.de>
16439
16440         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16441         New function.
16442         (valueize_refs): Call it.
16443
16444 2010-07-08  Richard Guenther  <rguenther@suse.de>
16445
16446         PR rtl-optimization/44838
16447         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
16448         SSA form do not use pointer equivalence.
16449
16450 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16451
16452         * dwarf2out.c (AT_linkage_name): Delete.
16453         (add_linkage_attr): New function.
16454         (add_linkage_name): Call it to emit the linkage attribute.
16455         (dwarf2out_finish): Likewise.
16456         (move_linkage_attr): Explicitly accept both attribute variants.
16457
16458 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16459
16460         * toplev.h: Do not include diagnostic-core.h.
16461         Include diagnostic-core.h in every file that includes toplev.h.
16462         * c-tree.h: Do not include toplev.h.
16463         * pretty-print.h: Update comment.
16464         * Makefile.in: Update dependencies.
16465         * alias.c: Include diagnostic-core.h in every file that includes
16466         toplev.h.
16467         * attribs.c: Likewise.
16468         * auto-inc-dec.c: Likewise.
16469         * bb-reorder.c: Likewise.
16470         * bt-load.c: Likewise.
16471         * caller-save.c: Likewise.
16472         * calls.c: Likewise.
16473         * cfg.c: Likewise.
16474         * cfganal.c: Likewise.
16475         * cfgbuild.c: Likewise.
16476         * cfgcleanup.c: Likewise.
16477         * cfghooks.c: Likewise.
16478         * cfgloop.c: Likewise.
16479         * combine.c: Likewise.
16480         * config/alpha/alpha.c: Likewise.
16481         * config/arc/arc.c: Likewise.
16482         * config/arm/arm.c: Likewise.
16483         * config/arm/pe.c: Likewise.
16484         * config/avr/avr.c: Likewise.
16485         * config/bfin/bfin.c: Likewise.
16486         * config/cris/cris.c: Likewise.
16487         * config/crx/crx.c: Likewise.
16488         * config/darwin-c.c: Likewise.
16489         * config/darwin.c: Likewise.
16490         * config/fr30/fr30.c: Likewise.
16491         * config/frv/frv.c: Likewise.
16492         * config/h8300/h8300.c: Likewise.
16493         * config/host-darwin.c: Likewise.
16494         * config/i386/i386.c: Likewise.
16495         * config/i386/netware.c: Likewise.
16496         * config/i386/nwld.c: Likewise.
16497         * config/i386/winnt-cxx.c: Likewise.
16498         * config/i386/winnt-stubs.c: Likewise.
16499         * config/i386/winnt.c: Likewise.
16500         * config/ia64/ia64-c.c: Likewise.
16501         * config/ia64/ia64.c: Likewise.
16502         * config/iq2000/iq2000.c: Likewise.
16503         * config/lm32/lm32.c: Likewise.
16504         * config/m32c/m32c-pragma.c: Likewise.
16505         * config/m32c/m32c.c: Likewise.
16506         * config/m32r/m32r.c: Likewise.
16507         * config/m68hc11/m68hc11.c: Likewise.
16508         * config/m68k/m68k.c: Likewise.
16509         * config/mcore/mcore.c: Likewise.
16510         * config/mep/mep-pragma.c: Likewise.
16511         * config/mep/mep.c: Likewise.
16512         * config/mmix/mmix.c: Likewise.
16513         * config/mn10300/mn10300.c: Likewise.
16514         * config/moxie/moxie.c: Likewise.
16515         * config/pa/pa.c: Likewise.
16516         * config/pdp11/pdp11.c: Likewise.
16517         * config/picochip/picochip.c: Likewise.
16518         * config/rs6000/rs6000-c.c: Likewise.
16519         * config/rs6000/rs6000.c: Likewise.
16520         * config/rx/rx.c: Likewise.
16521         * config/s390/s390.c: Likewise.
16522         * config/score/score.c: Likewise.
16523         * config/score/score3.c: Likewise.
16524         * config/score/score7.c: Likewise.
16525         * config/sh/sh.c: Likewise.
16526         * config/sh/symbian-base.c: Likewise.
16527         * config/sh/symbian-c.c: Likewise.
16528         * config/sh/symbian-cxx.c: Likewise.
16529         * config/sol2-c.c: Likewise.
16530         * config/sol2.c: Likewise.
16531         * config/sparc/sparc.c: Likewise.
16532         * config/spu/spu.c: Likewise.
16533         * config/stormy16/stormy16.c: Likewise.
16534         * config/v850/v850-c.c: Likewise.
16535         * config/v850/v850.c: Likewise.
16536         * config/vax/vax.c: Likewise.
16537         * config/vxworks.c: Likewise.
16538         * config/xtensa/xtensa.c: Likewise.
16539         * convert.c: Likewise.
16540         * cse.c: Likewise.
16541         * cselib.c: Likewise.
16542         * dbgcnt.c: Likewise.
16543         * dbxout.c: Likewise.
16544         * ddg.c: Likewise.
16545         * dominance.c: Likewise.
16546         * emit-rtl.c: Likewise.
16547         * explow.c: Likewise.
16548         * expmed.c: Likewise.
16549         * fixed-value.c: Likewise.
16550         * fold-const.c: Likewise.
16551         * fwprop.c: Likewise.
16552         * gcse.c: Likewise.
16553         * ggc-common.c: Likewise.
16554         * ggc-page.c: Likewise.
16555         * ggc-zone.c: Likewise.
16556         * gimple-low.c: Likewise.
16557         * gimplify.c: Likewise.
16558         * graph.c: Likewise.
16559         * haifa-sched.c: Likewise.
16560         * ifcvt.c: Likewise.
16561         * implicit-zee.c: Likewise.
16562         * integrate.c: Likewise.
16563         * ira-build.c: Likewise.
16564         * ira-color.c: Likewise.
16565         * ira-conflicts.c: Likewise.
16566         * ira-costs.c: Likewise.
16567         * ira-lives.c: Likewise.
16568         * ira.c: Likewise.
16569         * lists.c: Likewise.
16570         * loop-doloop.c: Likewise.
16571         * loop-iv.c: Likewise.
16572         * lto-opts.c: Likewise.
16573         * lto-symtab.c: Likewise.
16574         * main.c: Likewise.
16575         * modulo-sched.c: Likewise.
16576         * optabs.c: Likewise.
16577         * params.c: Likewise.
16578         * plugin.c: Likewise.
16579         * postreload-gcse.c: Likewise.
16580         * postreload.c: Likewise.
16581         * predict.c: Likewise.
16582         * profile.c: Likewise.
16583         * real.c: Likewise.
16584         * regcprop.c: Likewise.
16585         * reginfo.c: Likewise.
16586         * regmove.c: Likewise.
16587         * reorg.c: Likewise.
16588         * resource.c: Likewise.
16589         * rtl.c: Likewise.
16590         * rtlanal.c: Likewise.
16591         * sched-deps.c: Likewise.
16592         * sched-ebb.c: Likewise.
16593         * sched-rgn.c: Likewise.
16594         * sdbout.c: Likewise.
16595         * sel-sched-dump.c: Likewise.
16596         * sel-sched-ir.c: Likewise.
16597         * simplify-rtx.c: Likewise.
16598         * stmt.c: Likewise.
16599         * stor-layout.c: Likewise.
16600         * store-motion.c: Likewise.
16601         * targhooks.c: Likewise.
16602         * tree-cfg.c: Likewise.
16603         * tree-cfgcleanup.c: Likewise.
16604         * tree-dump.c: Likewise.
16605         * tree-eh.c: Likewise.
16606         * tree-inline.c: Likewise.
16607         * tree-nomudflap.c: Likewise.
16608         * tree-object-size.c: Likewise.
16609         * tree-optimize.c: Likewise.
16610         * tree-outof-ssa.c: Likewise.
16611         * tree-phinodes.c: Likewise.
16612         * tree-profile.c: Likewise.
16613         * tree-ssa-ccp.c: Likewise.
16614         * tree-ssa-coalesce.c: Likewise.
16615         * tree-ssa-live.c: Likewise.
16616         * tree-ssa-loop-niter.c: Likewise.
16617         * tree-ssa-loop-prefetch.c: Likewise.
16618         * tree-ssa-loop.c: Likewise.
16619         * tree-ssa-structalias.c: Likewise.
16620         * tree-ssa-uninit.c: Likewise.
16621         * tree-ssa.c: Likewise.
16622         * tree-vect-data-refs.c: Likewise.
16623         * tree-vect-loop-manip.c: Likewise.
16624         * tree-vect-loop.c: Likewise.
16625         * tree-vect-patterns.c: Likewise.
16626         * tree-vect-stmts.c: Likewise.
16627         * tree-vrp.c: Likewise.
16628         * varasm.c: Likewise.
16629         * vec.c: Likewise.
16630         * web.c: Likewise.
16631         * xcoffout.c: Likewise.
16632
16633 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
16634
16635         * gengtype.c (write_field_root): New function.
16636         (write_root): Use it.
16637
16638 2010-07-07  Wei Guozhi  <carrot@google.com>
16639
16640         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
16641         of lowest bits to lshift/compare): Add a missing line.
16642
16643 2010-07-07  Wei Guozhi  <carrot@google.com>
16644
16645         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
16646         of lowest bits to lshift/compare): New.
16647
16648 2010-07-07  Tom Tromey  <tromey@redhat.com>
16649
16650         * doc/tm.texi: Update.
16651         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
16652         Add @hook.
16653         * target.def (want_debug_pub_sections): New hook.
16654         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
16655         * dwarf2out.c (add_pubname_string): Check
16656         targetm.want_debug_pub_sections.
16657         (add_pubname): Likewise.
16658         (add_pubtype): Likewise.
16659
16660 2010-07-07  Jie Zhang  <jie@codesourcery.com>
16661
16662         * genautomata.c (output_automata_list_min_issue_delay_code):
16663         Correctly decompress min_issue_delay.
16664
16665 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16666
16667         PR rtl-optimization/44404
16668         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
16669         possible, use reg_overlap_mentioned_p instead.
16670
16671 2010-07-07  Duncan Sands  <baldrick@free.fr>
16672
16673         PR middle-end/41355
16674         * tree.c (build_function_type_skip_args): Copy the original type using
16675         build_distinct_type_copy rather than copy_node.
16676
16677 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16678
16679         PR target/44850
16680         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
16681         revision 161876.
16682         (ix86_expand_prologue): Likewise.
16683         (ix86_handle_fndecl_attribute): Likewise.
16684         (ix86_asm_declare_function_name): Likewise.
16685         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16686         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16687         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
16688         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
16689         * doc/extend.texi: Likewise.
16690
16691 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16692
16693         PR target/44844
16694         * config/i386/i386.md (rdrand<mode>): Changed to expand to
16695         retry if the carry flag isn't valid.
16696         (rdrand<mode>_1): New.
16697
16698 2010-07-07  Richard Guenther  <rguenther@suse.de>
16699
16700         PR middle-end/44790
16701         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
16702         for expanding the constant offset for MEM_REFs.
16703
16704 2010-07-07  Richard Guenther  <rguenther@suse.de>
16705
16706         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
16707         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
16708         * gimple.h (is_gimple_operand): Remove.
16709         * gimple.c (is_gimple_operand): Likewise.
16710         (walk_gimple_op): Fix wi->val_only setting for calls.
16711         * tree-cfg.c (verify_gimple_call): Fix argument validation.
16712         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
16713         invalid gimple calls.
16714
16715 2010-07-06  Jan Hubicka  <jh@suse.cz>
16716
16717         * lto-cgraph.c (output_cgraph): Add missing declaration.
16718
16719 2010-07-06  Jan Hubicka  <jh@suse.cz>
16720
16721         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
16722         partition.
16723
16724 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
16725
16726         * doc/gimple.texi (GIMPLE_DEBUG): Document.
16727         * doc/rtl.texi (Debug Information): New node.
16728         (NOTE_INSN_VAR_LOCATION): Document.
16729         (debug_insn): Likewise.
16730         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
16731
16732 2010-07-07  Jan Hubicka  <jh@suse.cz>
16733
16734         With parts by Richard Guenther.
16735
16736         PR middle-end/44813
16737         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
16738         for functions passed by reference.
16739         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
16740         in memory when passed by reference.
16741         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
16742         beggining.
16743         * ipa-split.c (split_function): Cleanup way return value is passed;
16744         handle SSA DECL_BY_REFERENCE retvals.
16745         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
16746         DECL_BY_REFERENCE is set.
16747         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
16748         find_what_p_points_to): Handle RESULT_DECL.
16749         * tree-inline.c (declare_return_variable): Get new entry_block argument;
16750         when passing by reference ensure that RESULT_DECL is gimple_val.
16751         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
16752         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
16753
16754 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16755
16756         PR rtl-optimization/44787
16757         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
16758         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
16759
16760 2010-07-06  Jan Hubicka  <jh@suse.cz>
16761
16762         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
16763         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
16764         with body can prevail.
16765         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
16766         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
16767         * cgraph.c (cgraph_get_node_or_alias): New function.
16768         * cgraph.h (cgraph_get_node_or_alias): Declare.
16769
16770 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
16771
16772         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
16773         support.
16774         (ix86_expand_prologue): Likewise.
16775         (ix86_handle_fndecl_attribute): Likewise.
16776         (ix86_asm_declare_function_name): New function for
16777         ASM_DECLARE_FUNCTION_NAME.
16778         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
16779         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
16780         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
16781         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
16782         * doc/extend.texi: Adjust documentation about ms_hook_prologue
16783         attribute.
16784
16785 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16786
16787         * config/i386/i386.md (immediate_operand): New mode attribute.
16788
16789         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
16790         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
16791         using P mode iterator.
16792         (pro_epilogue_adjust_stack_di_2): Rename from
16793         pro_epilogue_adjust_stack_rex64_2.
16794
16795         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
16796
16797 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16798
16799         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
16800         through gen_mov_insv_1 function pointer.
16801         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
16802         gen_truncxf<mode>2 through gen_truncxf function pointer.
16803         (remainder<mode>3): Ditto.
16804         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
16805         (allocate_stack): Call gen_allocate_stack_worker_64 or
16806         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
16807         function pointer.
16808         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
16809         function pointer.
16810
16811 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16812
16813         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
16814         operand constraint instead of <r><i>m.
16815
16816 2010-07-06  Richard Guenther  <rguenther@suse.de>
16817
16818         PR middle-end/44828
16819         * convert.c (convert_to_integer): Watch out for overflowing
16820         MULT_EXPR as well.
16821
16822 2010-07-05  Jan Hubicka  <jh@suse.cz>
16823
16824         * lto-streamer.c (write_symbol_vec): Rename to ...
16825         (write_symbol) ... this one; write only symbol given and when
16826         present in cache. Sanity check that what is defined is present
16827         in cgraph/varpool with body/finalized decl.
16828         (write_symbols_of_kind): Remove.
16829         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
16830         pairs to produce symtab.
16831         (produce_asm_for_decls): Update call of produce_symtab; don't do so
16832         when doing WPA streaming.
16833
16834 2010-07-05  Jan Hubicka  <jh@suse.cz>
16835
16836         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
16837         function is still available to fold into.
16838
16839 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16840
16841         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
16842         * function.h (struct_function): Change type of local_decls field
16843         to a VEC.
16844         (add_local_decl): New function.
16845         (FOR_EACH_LOCAL_DECL): New macro.
16846         * cfgexpand.c (init_vars_expansion): Adjust for new type of
16847         cfun->local_decls.
16848         (estimated_stack_frame_size): Likewise.
16849         (expand_used_vars): Likewise.
16850         * cgraphbuild.c (build_cgraph_edges): Likewise.
16851         * function.c (instantiate_decls_1): Likewise.
16852         * ipa-struct-reorg.c (build_data_structure): Likewise.
16853         * ipa-type-escape.c (analyze_function): Likewise.
16854         * lto-streamer-in.c (input_function): Likewise.
16855         * lto-streamer-out.c (output_function): Likewise.
16856         * tree-ssa-live.c (remove_unused_locals): Likewise.
16857         * tree.c (free_lang_data_in_decl): Likewise.
16858         (find_decls_types_in_node): Likewise.
16859         * omp-low.c (remove_exit_barrier): Likewise.
16860         (expand_omp_taskreg): Likewise.
16861         (list2chain): Rename to...
16862         (vec2chain): ...this.  Adjust.
16863         * cgraphunit.c (assemble_thunk): Call add_local_decl.
16864         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
16865         * gimple-low.c (record_vars_into): Likewise.
16866         * tree-inline.c (remap_decls): Likewise.
16867         (declare_return_variable): Likewise.
16868         (declare_inline_vars): Likewise.
16869         (copy_forbidden): Adjust for new type of cfun->local_decls.
16870         (add_local_variables): New function.
16871         (expand_call_inline): Call it.
16872         (tree_function_versioning): Likewise.
16873
16874 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16875
16876         AVX Programming Reference (June, 2010)
16877         * config/i386/cpuid.h (bit_F16C): New.
16878         (bit_RDRND): Likewise.
16879         (bit_FSGSBASE): Likewise.
16880
16881         * config/i386/i386-builtin-types.def: Add
16882         "DEF_FUNCTION_TYPE (UINT16)", function types for
16883         float16 <-> float conversions and
16884         "DEF_FUNCTION_TYPE (VOID, UINT64)".
16885
16886         * config/i386/i386-c.c (ix86_target_macros_internal): Support
16887         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
16888         OPTION_MASK_ISA_F16C.
16889
16890         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
16891         (OPTION_MASK_ISA_RDRND_SET): Likewise.
16892         (OPTION_MASK_ISA_F16C_SET): Likewise.
16893         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
16894         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
16895         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
16896         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
16897         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
16898         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
16899         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
16900         (override_options): Handle them.
16901         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
16902         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
16903         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
16904         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
16905         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
16906         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
16907         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
16908         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
16909         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
16910         (bdesc_args): Likewise.
16911         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
16912         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
16913         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
16914         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
16915         Handle non-memory store.
16916
16917         * config/i386/i386.h (TARGET_FSGSBASE): New.
16918         (TARGET_RDRND): Likewise.
16919         (TARGET_F12C): Likewise.
16920
16921         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
16922         (UNSPEC_VCVTPS2PH): Likewise.
16923         (UNSPECV_RDFSBASE): Likewise.
16924         (UNSPECV_RDGSBASE): Likewise.
16925         (UNSPECV_WRFSBASE): Likewise.
16926         (UNSPECV_WRGSBASE): Likewise.
16927         (UNSPECV_RDRAND): Likewise.
16928         (rdfsbase<mode>): Likewise.
16929         (rdgsbase<mode>): Likewise.
16930         (wrfsbase<mode>): Likewise.
16931         (wrgsbase<mode>): Likewise.
16932         (rdrand<mode>): Likewise.
16933
16934         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
16935
16936         * config/i386/immintrin.h (_rdrand_u16): New.
16937         (_rdrand_u32): Likewise.
16938         (_readfsbase_u32): Likewise.
16939         (_readfsbase_u64): Likewise.
16940         (_readgsbase_u32): Likewise.
16941         (_readgsbase_u64): Likewise.
16942         (_writefsbase_u32): Likewise.
16943         (_writefsbase_u64): Likewise.
16944         (_writegsbase_u32): Likewise.
16945         (_writegsbase_u64): Likewise.
16946         (_rdrand_u64): Likewise.
16947         (_cvtsh_ss): Likewise.
16948         (_mm_cvtph_ps): Likewise.
16949         (_mm256_cvtph_ps): Likewise.
16950         (_cvtss_sh): Likewise.
16951         (_mm_cvtps_ph): Likewise.
16952         (_mm256_cvtps_ph): Likewise.
16953
16954         * config/i386/sse.md (vcvtph2ps): New.
16955         (*vcvtph2ps_load): Likewise.
16956         (vcvtph2ps256): Likewise.
16957         (vcvtps2ph): Likewise.
16958         (*vcvtps2ph): Likewise.
16959         (*vcvtps2ph_store): Likewise.
16960         (vcvtps2ph256): Likewise.
16961
16962         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16963
16964         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16965
16966 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
16967
16968         PR bootstrap/44512
16969         * genenums.c (main): Output include of insn-constants.h
16970         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16971
16972 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
16973
16974         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16975         (override_options): Initialize it.
16976         (ix86_expand_prologue): Use it.
16977
16978 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16979
16980         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16981
16982 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16983
16984         * double-int.h (fit_double_type): Remove declaration.
16985         * double-int.c (fit_double_type): Remove function.
16986         * tree.h (int_fits_type_p): Adjust prototype.
16987         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16988         instead of fit_double_type.
16989         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16990         instead of fit_double_type and build_int_cst_wide.
16991         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16992         instead of fit_double_type and build_int_cst_wide.
16993         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16994         of fit_double_type.
16995
16996 2010-07-05  Jan Hubicka  <jh@suse.cz>
16997
16998         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16999         in_other_partition.
17000         * lto-cgraph.c (referenced_from_other_partition_p,
17001         reachable_from_other_partition_p): Use in_other_partition flags.
17002         (output_node, output_varpool_node): COMDAT nodes always have private
17003         copies and thus are never used from other partition.
17004
17005 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
17006
17007         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17008         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
17009         * config/ia64/ia64.c Include reload.h.
17010         (ia64_memory_move_cost): New function.
17011         (TARGET_MEMORY_MOVE_COST): Define.
17012         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
17013         memory_move_cost.
17014
17015 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
17016
17017         PR middle-end/42505
17018         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
17019         comments about cost model.
17020         (try_add_cand_for):  Add second strategy for choosing initial set
17021         based on original IVs, controlled by ORIGINALP argument.
17022         (get_initial_solution): Add ORIGINALP argument.
17023         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
17024         (find_optimal_iv_set): Try two different strategies for choosing
17025         the IV set, and return the one with lower cost.
17026
17027 2010-07-05  Richard Guenther  <rguenther@suse.de>
17028
17029         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
17030
17031 2010-07-05  Richard Guenther  <rguenther@suse.de>
17032
17033         * tree.c (reference_alias_ptr_type): New function.
17034         * tree.h (reference_alias_ptr_type): Declare.
17035         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
17036         allow non-TARGET_MEM_REF new refs.
17037         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
17038         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
17039         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
17040         (create_mem_ref): Get alias pointer type.  Adjust calls to
17041         create_mem_ref_raw.
17042         (maybe_fold_tmr): Likewise.
17043         * tree-flow.h (create_mem_ref): Adjust prototype.
17044
17045 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
17046
17047         PR c++/44808
17048         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
17049         *from_p is VAR_DECL.
17050
17051 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17052
17053         * tree.h (build_call_list): Remove.
17054         * tree.c (build_call_list): Remove.
17055
17056 2010-07-05  Richard Guenther  <rguenther@suse.de>
17057
17058         * double-int.h (double_int_sub): Declare.
17059         * double-int.c (double_int_sub): New function.
17060         * dwarf2out.c (field_byte_offset): Use it.
17061         * fixed-value.c (do_fixed_add): Likewise.
17062         (do_fixed_multiply): Likewise.
17063         (do_fixed_divide): Likewise.
17064         * tree-predcom.c (add_ref_to_chain): Likewise.
17065         (determine_roots_comp): Likewise.
17066         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
17067
17068 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
17069
17070         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
17071         implementations.
17072
17073 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
17074
17075         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
17076         * arm-modes.def (CC_NOTB): Don't define.
17077         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
17078         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
17079         (LTUGEU): New code_iterator.
17080         (cnb, optab): New corresponding code_attrs.
17081         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
17082         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
17083         using LTUGEU.
17084         (addsi3_carryin_shift_<optab>): Likewise.
17085         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
17086         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
17087         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
17088         (subsi3_compare): Renamed from subsi3_compare0_c.
17089         Change CC_NOTB to CC.
17090         (arm_subsi3_insn): Allow constants for operand 0.
17091         (compare_scc peephole for eq case): New.
17092         (compare_scc splitters): Change CC_NOTB to CC.
17093
17094 2010-07-05  Richard Guenther  <rguenther@suse.de>
17095
17096         * tree-ssa-loop-im.c (for_each_index): Do not handle
17097         ALIGN_INDIRECT_REF.
17098         (gen_lsm_tmp_name): Likewise.
17099         * tree-dump.c (dequeue_and_dump): Likewise.
17100         * tree-pretty-print.c (dump_generic_node): Likewise.
17101         (op_code_prio): Likewise.
17102         (op_symbol_code): Likewise.
17103         * tree.c (staticp): Likewise.
17104         (build1_stat): Likewise.
17105         * tree.h (INDIRECT_REF_P): Likewise.
17106         * fold-const.c (maybe_lvalue_p): Likewise.
17107         (operand_equal_p): Likewise.
17108         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
17109         (ao_ref_init_from_vn_reference): Likewise.
17110         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
17111         (find_interesting_uses_address): Likewise.
17112         * dwarf2out.c (loc_list_from_tree): Likewise.
17113         * gimplify.c (gimplify_expr): Likewise.
17114         * tree-eh.c (tree_could_trap_p): Likewise.
17115         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
17116         * cfgexpand.c (expand_debug_expr): Likewise.
17117         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
17118         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
17119         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
17120         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
17121         * tree-ssa-operands.c (get_expr_operands): Likewise.
17122         * expr.c (safe_from_p): Likewise.
17123         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
17124         * tree-vect-data-refs.c (vect_setup_realignment): Build
17125         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
17126         * tree-vect-stmts.c (vectorizable_load): Likewise.
17127         * tree.def (ALIGN_INDIRECT_REF): Remove.
17128
17129 2010-07-05  Richard Guenther  <rguenther@suse.de>
17130
17131         PR tree-optimization/44784
17132         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
17133         for inserted stmts.
17134         (find_or_generate_expression): Fix SCCVN insertion check.
17135
17136 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
17137
17138         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
17139         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
17140         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
17141         directives.
17142
17143 2010-07-05  Ira Rosen  <irar@il.ibm.com>
17144
17145         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
17146         statements that are not vectorized.
17147         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
17148         in INSIDE_COST.
17149
17150 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
17151
17152         PR bootstrap/44820
17153         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
17154
17155 2010-07-05  Richard Guenther  <rguenther@suse.de>
17156
17157         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
17158         RESULT_DECLs properly.
17159
17160 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17161
17162         PR rtl-optimization/44695
17163         * config/i386/i386.md (extract_code): Removed.
17164         (<u>divmodqi4): Likewise.
17165         (divmodqi4): New.
17166         (udivmodqi4): Likewise.
17167         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
17168         (udivmodhiqi3): Likewise.
17169
17170 2010-07-04  Jan Hubicka  <jh@suse.cz>
17171
17172         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
17173
17174 2010-07-04  Jan Hubicka  <jh@suse.cz>
17175
17176         * cgraphunit.c (init_cgraph): Only initialize dump file if it
17177         is not already initialized.
17178
17179 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17180
17181         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
17182         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
17183         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
17184         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
17185         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
17186         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
17187         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
17188         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
17189         (sync_new_nand_optab): Redefine as macros.
17190         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
17191         Delete.
17192         (direct_optab_index): New enum.
17193         (direct_optab_d): New structure.
17194         (direct_optab): New typedef.
17195         (direct_optab_table): Declare.
17196         (direct_optab_handler, set_direct_optab_handler): New functions.
17197         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
17198         (sync_lock_release_optab): New macros.
17199         * optabs.c (direct_optab_table): New variable.
17200         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
17201         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
17202         cmpstr_optab and cmpstrn_optab.
17203         (emit_conditional_move): Likewise for movcc_optab.
17204         (can_conditionally_move_p): Likewise for movcc_gen_code.
17205         (init_insn_codes): Clear direct_optab_table.
17206         (init_optabs): Don't initialize the new "direct optabs" here.
17207         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
17208         vcond_gen_code.
17209         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
17210         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
17211         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
17212         (expand_sync_operation): Likewise other sync_*_optabs.
17213         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
17214         to sync_compare_and_swap_optab.
17215         (expand_sync_lock_test_and_set): Use direct_optab_handler for
17216         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
17217         to the names of both.
17218         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
17219         cmpstr_optab and cmpstrn_optab.
17220         (expand_builtin_lock_release): Likewise sync_lock_release.
17221         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
17222         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
17223         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
17224         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
17225         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
17226         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
17227         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
17228         (sync_lock_test_and_set, sync_lock_release): Delete.
17229         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
17230         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
17231         * genopinit.c (optabs): Use set_direct_optab_handler for the new
17232         macro optabs.
17233         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
17234         the "optab" local variable.  Use direct_optab_handler for optab and
17235         sync_compare_and_swap_optab.
17236         * reload1.c (reload_in_optab, reload_out_optab): Delete.
17237         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
17238         reload_in_optab and reload_out_optab.
17239         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17240         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
17241         * config/pa/pa.c (pa_secondary_reload): Likewise.
17242         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
17243         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
17244         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
17245         (VMSupportsCS8_builtin): Likewise.
17246
17247 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17248
17249         * optabs.h (optab_handlers): Change type of insn_code to int.
17250         (optab_handler, set_optab_handler, convert_optab_handler)
17251         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
17252         CODE_FOR_nothing".
17253         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
17254         (init_insn_codes): Zero both the above arrays.
17255         (init_optabs): Never call init_insn_codes first time around.
17256
17257 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
17258
17259         * optabs.h (optab_handler, convert_optab_handler): Turn into
17260         inline functions that return an insn code.
17261         (set_optab_handler, set_convert_optab_handler): New functions.
17262         * builtins.c: Replace optab_handler(X)->insn_code with
17263         optab_handler or set_optab_handler thoughout.  Likewise
17264         convert_optab_handler(X)->insn_code with convert_optab_handler
17265         and set_convert_optab_handler.
17266         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
17267         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
17268         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
17269         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
17270         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
17271         config/spu/spu.c: Likewise.
17272
17273 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17274
17275         PR target/44531
17276         * config.gcc (sh*-*-*): Use regular expressions instead of
17277         the 'i' modifier for sed substitutions.
17278
17279 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
17280
17281         * gimple.c (gimple_body): Comments added.
17282
17283 2010-07-04  Richard Guenther  <rguenther@suse.de>
17284
17285         PR middle-end/44809
17286         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
17287         of an INDIRECT_REF.
17288
17289 2010-07-04  Richard Guenther  <rguenther@suse.de>
17290
17291         PR tree-optimization/44479
17292         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
17293         extra SSA name copy statements which preserves points-to
17294         information.
17295         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17296         Copy points-to information for all pointers.  Properly handle
17297         MEM_REFs.
17298         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
17299         copy statements.
17300         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
17301         dependency.
17302
17303 2010-07-04  Richard Guenther  <rguenther@suse.de>
17304
17305         PR middle-end/44785
17306         * tree-inline.c (initialize_inlined_parameters): Do not
17307         re-use pointer-map slot over remap_type call.
17308
17309 2010-07-04  Richard Guenther  <rguenther@suse.de>
17310
17311         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
17312
17313 2010-07-04  Richard Guenther  <rguenther@suse.de>
17314
17315         PR tree-optimization/44656
17316         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
17317         again after value-replacing in the defintions lhs.
17318
17319 2010-07-04  Ira Rosen  <irar@il.ibm.com>
17320             Revital Eres  <eres@il.ibm.com>
17321
17322         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
17323         Document new arguments.
17324         * doc/tm.texi: Regenerate.
17325         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
17326         Handle unaligned store.
17327         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
17328         * target.def (builtin_vectorization_cost): Add new arguments.
17329         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
17330         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
17331         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
17332         (vect_vfa_segment_size): Fix indentation.
17333         * tree-vectorizer.h (struct _vect_peel_info): New.
17334         (struct _vect_peel_extended_info): New.
17335         (struct _loop_vec_info): Add new field for peeling hash table and a
17336         macro for its access.
17337         (VECT_MAX_COST): Define.
17338         (vect_get_load_cost): Declare.
17339         (vect_get_store_cost, vect_get_known_peeling_cost,
17340         vect_get_single_scalar_iteraion_cost): Likewise.
17341         (vect_supportable_dr_alignment): Add new argument.
17342         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
17343         field.
17344         (destroy_loop_vec_info): Free peeling hash table.
17345         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
17346         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
17347         vect_analyze_slp. Fix indentation.
17348         (vect_get_single_scalar_iteraion_cost): New function.
17349         (vect_get_known_peeling_cost): Likewise.
17350         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
17351         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
17352         statement. Move outside cost calculation inside unknown peeling case.
17353         Call vect_get_known_peeling_cost for known amount of peeling.
17354         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
17355         reference to the print message of forced alignment.
17356         (vect_verify_datarefs_alignment): Update call to
17357         vect_supportable_dr_alignment.
17358         (vect_get_data_access_cost): New function.
17359         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
17360         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
17361         vect_peeling_hash_choose_best_peeling): Likewise.
17362         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
17363         to store all the accesses in the loop and find best possible access to
17364         align using peeling for known alignment case. For unknown alignment
17365         check if stores are preferred or if peeling is worthy.
17366         (vect_find_same_alignment_drs): Analyze pairs of loads too.
17367         (vect_supportable_dr_alignment): Add new argument and check aligned
17368         accesses according to it.
17369         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
17370         (cost_for_stmt): Call vect_get_stmt_cost.
17371         (vect_model_simple_cost): Likewise.
17372         (vect_model_store_cost): Call vect_get_stmt_cost. Call
17373         vect_get_store_cost to calculate the cost of the statement.
17374         (vect_get_store_cost): New function.
17375         (vect_model_load_cost): Call vect_get_stmt_cost. Call
17376         vect_get_load_cost to calculate the cost of the statement.
17377         (vect_get_load_cost): New function.
17378         (vectorizable_store): Update call to vect_supportable_dr_alignment.
17379         (vectorizable_load): Likewise.
17380         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
17381         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
17382         arguments. Handle unaligned store.
17383         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
17384         (rs6000_builtin_support_vector_misalignment): Return true for word and
17385         double word alignments for VSX.
17386         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
17387         vect_supportable_dr_alignment and builtin_vectorization_cost.
17388
17389 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17390
17391         PR target/44597
17392         * config/pa/predicates.md (prefetch_cc_operand): Remove.
17393         (prefetch_nocc_operand): Likewise.
17394         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
17395         (prefetch_20): New insn.
17396         (prefetch_cc): Remove.
17397         (prefetch_nocc): Likewise.
17398
17399 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17400
17401         * expr.c (vector_mode_valid_p): Move to c-common.c.
17402         * expr.h (vector_mode_valid_p): Do not declare here.
17403         * system.h: Poison GCC_EXPR_H in front-ends.
17404         * Makefile.in: Update dependencies.
17405
17406 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17407
17408         PR target/44705
17409         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
17410
17411 2010-07-03  Jan Hubicka  <jh@suse.cz>
17412
17413         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
17414         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
17415         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
17416         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
17417         Likewise.
17418
17419         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
17420         Update timevars.V
17421         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
17422         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
17423         TV_IPA_LTO_DECL_OUT): New.
17424         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
17425
17426 2010-07-03  Jan Hubicka  <jh@suse.cz>
17427
17428         * ipa-inline.c (update_edge_key): Break out from ...
17429         update_callers_keys): ... here;
17430         (update_callee_keys): Update only the edges from caller to callee.
17431         (update_all_calle_keys): Do what update_calle_keys did.
17432         (decide_inlining_of_small_functions): Avoid recomputing of all
17433         callees when badness increase.
17434
17435 2010-07-03  Jie Zhang  <jie@codesourcery.com>
17436
17437         * config/arm/arm.c (arm_attr_length_move_neon): New.
17438         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
17439         * config/arm/neon.md (define_mode_attr V_slen): Remove.
17440         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
17441         to compute length attribute.
17442
17443 2010-07-03  Jie Zhang  <jie@codesourcery.com>
17444
17445         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
17446         as predicate for operand 1 and remove its constraint.
17447         * config/arm/predicates.md (vfp_register_operand): New.
17448         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
17449         (*push_fp_multi): Likewise.
17450
17451 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
17452
17453         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
17454
17455 2010-07-03  Jan Hubicka  <jh@suse.cz>
17456
17457         * config/i386/i386.c (override_options): Revert accidental commit.
17458
17459 2010-07-02  Le-Chun Wu  <lcwu@google.com>
17460
17461         PR c++/44128
17462         * doc/invoke.texi: Update documentation of -Wshadow.
17463
17464 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
17465             Julian Brown  <julian@codesourcery.com>
17466             Sandra Loosemore  <sandra@codesourcery.com>
17467
17468         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
17469         comparisons.  Adjust to take both operands.
17470         (arm_select_cc_mode): Handle DImode comparisons.
17471         (arm_gen_compare_reg): Generate a scratch register for DImode
17472         comparisons which require one.  Use xor for Thumb equality checks.
17473         (arm_const_double_by_immediates): New.
17474         (arm_print_operand): Allow 'Q' and 'R' for constants.
17475         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
17476         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
17477         arm_canonicalize_comparison.
17478         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
17479         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
17480         prototype.
17481         (arm_const_double_by_immediates): Declare.
17482         * config/arm/constraints.md (Di): New constraint.
17483         * config/arm/predicates.md (arm_immediate_di_operand)
17484         (arm_di_operand, cmpdi_operand): New.
17485         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
17486         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
17487         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
17488         (cstoredi4): Handle non-Cirrus also.
17489
17490 2010-07-02  Julian Brown  <julian@codesourcery.com>
17491             Sandra Loosemore  <sandra@codesourcery.com>
17492
17493         PR target/43703
17494         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
17495         (smax<mode>3): Disable for NEON float modes when
17496         flag_unsafe_math_optimizations is false.
17497         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
17498         (*mul<mode>3_neon)
17499         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
17500         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
17501         for NEON float modes when flag_unsafe_math_optimizations is false.
17502         (quad_halves_<code>v4sf): Only enable if
17503         flag_unsafe_math_optimizations is true.
17504         * doc/invoke.texi (ARM Options): Add note about floating point
17505         vectorization requiring -funsafe-math-optimizations.
17506
17507 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17508             Julian Brown  <julian@codesourcery.com>
17509
17510         * config/arm/neon.md (UNSPEC_VABA): Delete.
17511         (UNSPEC_VABAL): Delete.
17512         (UNSPEC_VABS): Delete.
17513         (UNSPEC_VMUL_N): Delete.
17514         (adddi3_neon): New.
17515         (subdi3_neon): New.
17516         (mul<mode>3add<mode>_neon): Make the pattern named.
17517         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
17518         (neon_vadd<mode>): Replace with define_expand, and move the remaining
17519         unspec parts...
17520         (neon_vadd<mode>_unspec): ...to this.
17521         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
17522         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
17523         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
17524         (neon_vaba<mode>): Rewrite in terms of vabd.
17525         (neon_vabal<mode>): Rewrite in terms of vabdl.
17526         (neon_vabs<mode>): Rewrite without unspec.
17527         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
17528         (*arm_subdi3): Likewise.
17529         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
17530         No_op attribute to disable assembly output checks.
17531         * config/arm/arm_neon.h: Regenerated.
17532         * doc/arm-neon-intrinsics.texi: Regenerated.
17533
17534 2010-07-02  Jan Hubicka  <jh@suse.cz>
17535
17536         * ipa-split.c (split_function): For aggregate values, set the return
17537         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
17538         *<retval> = fncall.part ().
17539         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
17540
17541 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17542
17543         * config/arm/neon.md (UNSPEC_VAND): Delete.
17544         (UNSPEC_VBIC): Delete.
17545         (UNSPEC_VCLZ): Delete.
17546         (UNSPEC_VCNT): Delete.
17547         (UNSPEC_VEOR): Delete.
17548         (UNSPEC_VORN): Delete.
17549         (UNSPEC_VORR): Delete.
17550         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
17551         core registers too.
17552         (anddi3_neon): Likewise.
17553         (orndi3_neon): Likewise.
17554         (bicdi3_neon): Likewise.
17555         (xordi3_neon): Likewise.
17556         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
17557         rid of unspec and handle unused operand.
17558         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
17559         * config/arm/predicates.md (imm_for_neon_logic_operand):
17560         Require TARGET_NEON.
17561         (imm_for_neon_inv_logic_operand): Likewise.
17562         * config/arm/arm.md (define_split for logical_binary_operator):
17563         Disable for NEON registers.
17564         (anddi3): Add new define_expand, and rename the insn.  Disable
17565         this insn for NEON, where anddi3_neon now applies.
17566         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
17567         (iordi3): As for anddi3.
17568         (xordi3): Likewise.
17569         * config/arm/neon.ml (Vand): Split DImode variants and mark them
17570         as No_op to disable testing for exact instruction match.
17571         (Vorr): Likewise.
17572         (Veor): Likewise.
17573         (Vbic): Likewise.
17574         (Vorn): Likewise.
17575         * config/arm/arm_neon.h: Regenerated.
17576         * doc/arm-neon-intrinsics.texi: Regenerated.
17577
17578 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17579
17580         * expr.h (emit_stack_probe): Declare.
17581         * explow.c (emit_stack_probe): Make global.
17582         (anti_adjust_stack_and_probe): Fix comments.
17583         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
17584         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17585         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17586         * config/sparc/sparc.c: Include except.h.
17587         (sparc_emit_probe_stack_range): New function.
17588         (output_probe_stack_range): Likewise.
17589         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
17590         built-in stack checking is enabled.
17591         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
17592         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
17593         (probe_stack_range): New insn.
17594
17595 2010-07-02  Richard Guenther  <rguenther@suse.de>
17596
17597         PR target/43958
17598         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
17599         for argument alignment.
17600
17601 2010-07-02  Jan Hubicka  <jh@suse.cz>
17602
17603         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
17604         walk backwards from entry_bb to check only those basic block of header
17605         that might lead to execution of split part.
17606         (consider_split) ... here.
17607         (find_return_bb): Allow assignment in return BB.
17608         (find_retval): New.
17609         (split_function): Fix name of cloned function; take care of updating
17610         return value in return_bb containing move.
17611
17612 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
17613
17614         PR target/44771
17615         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
17616         used variable insn.
17617
17618 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17619
17620         * implicit-zee.c (combine_reaching_defs): Fix long lines.
17621         (is_set_with_extension_DI): Delete.
17622         (struct zero_extend_info): New structure.
17623         (add_removable_zero_extend): New function.
17624         (find_removable_zero_extends): Use note_stores to find SETs.
17625         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
17626
17627 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
17628
17629         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
17630         is_miss_rate_acceptable. Pull total_positions computation
17631         out of the loops.  Early return if miss_positions exceeds
17632         the acceptable threshold.
17633         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
17634         is_miss_rate_acceptable after renaming of compute_miss_rate.
17635
17636 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
17637
17638         PR middle-end/44576
17639         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
17640         of 1000) for miss rate if the address diference is greater than or
17641         equal to the cache line size (the two reference will never hit the
17642         same cache line).
17643
17644 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
17645
17646         PR target/42835
17647         * config/arm/arm-modes.def (CC_NOTB): New mode.
17648         * config/arm/arm.c (get_arm_condition_code): Handle it.
17649         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
17650         * config/arm/arm.md (subsi3_compare0_c): New pattern.
17651         (compare_scc): Now a define_and_split.  Add a number of extra
17652         splitters before it.
17653
17654         PR target/42172
17655         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
17656         and ZERO_EXTEND.
17657         (arm_rtx_costs_1): Likewise.
17658         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
17659         * config/arm/arm.md (is_arch6): New attribute.
17660         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
17661         extendqisi2): Tighten the code somewhat, avoiding invalid
17662         RTL to occur in the expander patterns.
17663         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
17664         (thumb1_zero_extendhisi2_v6): Delete.
17665         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
17666         (thumb1_extendhisi2_v6): Delete.
17667         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
17668         (thumb1_extendqisi2_v6): Delete.
17669         (zero_extendhisi2 for register input splitter): New.
17670         (zero_extendqisi2 for register input splitter): New.
17671         (thumb1_extendhisi2 for register input splitter): New.
17672         (extendhisi2 for register input splitter): New.
17673         (extendqisi2 for register input splitter): New.
17674         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
17675         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
17676         and add support for a register alternative requiring a split.
17677         (thumb1_zero_extendqisi2): Likewise.
17678         (arm_zero_extendqisi2): Likewise.
17679         (arm_extendhisi2): Likewise.
17680         (arm_extendqisi2): Likewise.
17681
17682 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17683
17684         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
17685         instead of an unspec.
17686         (neon_expand_vector_init): Likewise.
17687         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
17688         (UNSPEC_VDUP_LANE): Delete.
17689         (UNSPEC VDUP_N): Delete.
17690         (UNSPEC_VGET_HIGH): Delete.
17691         (UNSPEC_VGET_LANE): Delete.
17692         (UNSPEC_VGET_LOW): Delete.
17693         (UNSPEC_VMVN): Delete.
17694         (UNSPEC_VSET_LANE): Delete.
17695         (V_double_vector_mode): New.
17696         (vec_set<mode>_internal): Make code emitted match that for the
17697         corresponding intrinsics.
17698         (vec_setv2di_internal): Likewise.
17699         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
17700         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
17701         (neon_vset_lane<mode>): Combine double and quad patterns and
17702         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
17703         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
17704         (neon_vdup_n<mode>): Rewrite RTL without unspec.
17705         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
17706         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
17707         with neon_vdup_lanev2di, adjusting the pattern from the latter
17708         to be predicable for consistency.
17709         (neon_vdup_lane<mode>_internal): New.
17710         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
17711         to avoid using an unspec.
17712         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
17713         (neon_vdup_lanev2di): Turn into a define_expand.
17714         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
17715         (neon_vget_high<mode>): Replace with....
17716         (neon_vget_highv16qi): New pattern using canonical RTL.
17717         (neon_vget_highv8hi): Likewise.
17718         (neon_vget_highv4si): Likewise.
17719         (neon_vget_highv4sf): Likewise.
17720         (neon_vget_highv2di): Likewise.
17721         (neon_vget_low<mode>): Replace with....
17722         (neon_vget_lowv16qi): New pattern using canonical RTL.
17723         (neon_vget_lowv8hi): Likewise.
17724         (neon_vget_lowv4si): Likewise.
17725         (neon_vget_lowv4sf): Likewise.
17726         (neon_vget_lowv2di): Likewise.
17727
17728         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
17729         test for this emitting vmov.
17730         (Vset_lane): Likewise.
17731         (Vdup_n): Likewise.
17732         (Vmov_n): Likewise.
17733
17734         * doc/arm-neon-intrinsics.texi: Regenerated.
17735
17736 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17737
17738         * config/arm/neon.md (vec_extractv2di): Correct error in register
17739         numbering to reconcile with neon_vget_lanev2di.
17740
17741 2010-07-02  Richard Guenther  <rguenther@suse.de>
17742
17743         * tree-ssa-structalias.c (pt_solution_set_var): New function.
17744         * tree-ssa-alias.h (pt_solution_set_var): Declare.
17745         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
17746         points-to information.
17747
17748 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
17749
17750         * config/s390/s390.c (override_options): Adopt prefetching
17751         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
17752
17753 2010-07-02  Jan Hubicka  <jh@suse.cz>
17754
17755         * df-problems.c (df_kill_notes): Do not collect dead  notes.
17756         (df_set_note): Just call add_reg_note.
17757         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
17758         df_create_unused_note): Do not deal with lists of old notes.
17759         (df_note_bb_compute): Likewise.
17760
17761 2010-07-02  Richard Guenther  <rguenther@suse.de>
17762
17763         * tree-ssa-structalias.c (find_func_aliases): Handle
17764         pointer alignment via BIT_AND_EXPR.
17765         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
17766
17767 2010-07-02  Richard Guenther  <rguenther@suse.de>
17768
17769         * tree-data-ref.c (initialize_data_dependence_relation): Handle
17770         mismatching number of dimensions properly.
17771
17772 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17773
17774         PR target/44707
17775         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
17776         (lo_sum (high ...) ...) patterns generated by earlier passes.
17777
17778 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17779
17780         * doc/install.texi (Prerequisites): Document Perl requirement on
17781         Solaris 2.
17782         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
17783
17784 2010-07-02  Richard Guenther  <rguenther@suse.de>
17785
17786         PR middle-end/44777
17787         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
17788
17789 2010-07-02  Jan Hubicka  <jh@suse.cz>
17790
17791         PR middle-end/44706
17792         * predict.c (predict_paths_for_bb): Handle case when control dependence
17793         BB has only abnormal edges.
17794
17795 2010-07-02  Richard Guenther  <rguenther@suse.de>
17796
17797         PR tree-optimization/44748
17798         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
17799         the embedded conversion in MEM_REFs.
17800
17801 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
17802
17803         * reload.c: Include toplev.h.
17804         * recog.c:  Likewise.
17805         * Makefile.in: Adjust dependencies.
17806
17807 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
17808
17809         PR debug/44694
17810         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
17811         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
17812
17813 2010-07-01  Richard Guenther  <rguenther@suse.de>
17814
17815         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
17816         types for offsets.
17817
17818 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
17819
17820         PR target/44732
17821         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
17822         Fix argument types.
17823
17824 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
17825
17826         PR target/44727
17827         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17828         Make sure operand 0 dies.
17829
17830 2010-07-01  Richard Guenther  <rguenther@suse.de>
17831
17832         PR middle-end/42834
17833         PR middle-end/44468
17834         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
17835         * doc/generic.texi (References to storage): Document MEM_REF.
17836         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
17837         (print_call_name): Likewise.
17838         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
17839         (build_simple_mem_ref_loc): New function.
17840         (mem_ref_offset): Likewise.
17841         * tree.h (build_simple_mem_ref_loc): Declare.
17842         (build_simple_mem_ref): Define.
17843         (mem_ref_offset): Declare.
17844         * fold-const.c: Include tree-flow.h.
17845         (operand_equal_p): Handle MEM_REF.
17846         (build_fold_addr_expr_with_type_loc): Likewise.
17847         (fold_comparison): Likewise.
17848         (fold_unary_loc): Fold
17849         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
17850         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
17851         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
17852         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
17853         (ptr_deref_may_alias_ref_p_1): Likewise.
17854         (ao_ref_base_alias_set): Properly differentiate base object for
17855         offset and TBAA.
17856         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
17857         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
17858         (indirect_refs_may_alias_p): Likewise.
17859         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
17860         chasing code.
17861         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
17862         (call_may_clobber_ref_p_1): Likewise.
17863         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
17864         * expr.c (expand_assignment): Handle MEM_REF.
17865         (store_expr): Handle MEM_REFs from STRING_CSTs.
17866         (store_field): If expanding a MEM_REF of a non-addressable
17867         decl use bitfield operations.
17868         (get_inner_reference): Handle MEM_REF.
17869         (expand_expr_addr_expr_1): Likewise.
17870         (expand_expr_real_1): Likewise.
17871         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
17872         * alias.c (ao_ref_from_mem): Handle MEM_REF.
17873         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
17874         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
17875         (dr_analyze_indices): Likewise.
17876         (dr_analyze_alias): Likewise.
17877         (object_address_invariant_in_loop_p): Likewise.
17878         * gimplify.c (mark_addressable): Handle MEM_REF.
17879         (gimplify_cond_expr): Build MEM_REFs.
17880         (gimplify_modify_expr_to_memcpy): Likewise.
17881         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
17882         (gimple_fold_indirect_ref): Adjust.
17883         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
17884         * tree.def (MEM_REF): New tree code.
17885         * tree-dfa.c: Include toplev.h.
17886         (get_ref_base_and_extent): Handle MEM_REF.
17887         (get_addr_base_and_unit_offset): New function.
17888         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
17889         * gimple-fold.c (may_propagate_address_into_dereference): Handle
17890         MEM_REF.
17891         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
17892         accesses if the array has just one dimension.  Remove always true
17893         parameter.  Do not require type compatibility here.
17894         (maybe_fold_offset_to_component_ref): Remove.
17895         (maybe_fold_stmt_indirect): Remove.
17896         (maybe_fold_reference): Remove INDIRECT_REF handling.
17897         Fold back to non-MEM_REF.
17898         (maybe_fold_offset_to_address): Simplify.  Deal with type
17899         mismatches here.
17900         (maybe_fold_reference): Likewise.
17901         (maybe_fold_stmt_addition): Likewise.  Also handle
17902         &ARRAY + I in addition to &ARRAY[0] + I.
17903         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
17904         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
17905         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
17906         * tree-ssa.c (useless_type_conversion_p): Make most pointer
17907         conversions useless.
17908         (warn_uninitialized_var): Handle MEM_REF.
17909         (maybe_rewrite_mem_ref_base): New function.
17910         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
17911         to SSA form.
17912         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
17913         INDIRECT_REF handling.
17914         (copy_tree_body_r): Handle MEM_REF.
17915         * gimple.c (is_gimple_addressable): Adjust.
17916         (is_gimple_address): Likewise.
17917         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
17918         invariant base are invariant.
17919         (is_gimple_min_lval): Adjust.
17920         (is_gimple_mem_ref_addr): New function.
17921         (get_base_address): Handle MEM_REF.
17922         (count_ptr_derefs): Likewise.
17923         (get_base_loadstore): Likewise.
17924         * gimple.h (is_gimple_mem_ref_addr): Declare.
17925         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
17926         * tree-cfg.c (verify_address): New function, split out from ...
17927         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
17928         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
17929         INDIRECT_REFs.
17930         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
17931         INDIRECT_REF.  Allow conversions.
17932         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
17933         a register does not change its size.
17934         (verify_types_in_gimple_reference): Verify MEM_REF.
17935         (verify_gimple_assign_single): Disallow INDIRECT_REF.
17936         Handle MEM_REF.
17937         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
17938         New.
17939         (mark_address_taken): Handle MEM_REF.
17940         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
17941         (get_asm_expr_operands): Pass opf_not_non_addressable.
17942         (get_expr_operands): Handle opf_[not_]non_addressable.
17943         Handle MEM_REF.  Remove INDIRECT_REF handling.
17944         * tree-vrp.c (check_array_ref): Handle MEM_REF.
17945         (search_for_addr_array): Likewise.
17946         (check_array_bounds): Likewise.
17947         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
17948         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
17949         (ref_always_accessed_p): Likewise.
17950         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
17951         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
17952         Handle MEM_REF.
17953         * cgraphbuild.c (mark_load): Properly check for NULL result
17954         from get_base_address.
17955         (mark_store): Likewise.
17956         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17957         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17958         handling for MEM_REF.
17959         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17960         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17961         * builtins.c (stabilize_va_list_loc): Use the function ABI
17962         valist type if we couldn't canonicalize the argument type.
17963         Always dereference with the canonical va-list type.
17964         (maybe_emit_free_warning): Handle MEM_REF.
17965         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17966         memmove to memcpy.
17967         * builtins.c (fold_builtin_memory_op): Use ref-all types
17968         for all memcpy foldings.
17969         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17970         (build_outer_var_ref): Likewise.
17971         (scan_omp_1_op): Likewise.
17972         (lower_rec_input_clauses): Likewise.
17973         (lower_lastprivate_clauses): Likewise.
17974         (lower_reduction_clauses): Likewise.
17975         (lower_copyprivate_clauses): Likewise.
17976         (expand_omp_atomic_pipeline): Likewise.
17977         (expand_omp_atomic_mutex): Likewise.
17978         (create_task_copyfn): Likewise.
17979         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17980         Remove old union trick.  Initialize constant offsets.
17981         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
17982         INDIRECT_REF.  Init base_alias_set properly.
17983         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17984         (vn_reference_fold_indirect): Adjust for MEM_REFs.
17985         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
17986         for ARRAY_REFs.
17987         (may_insert): Remove.
17988         (visit_reference_op_load): Do not test may_insert.
17989         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17990         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17991         a field to store the constant offset this op applies.
17992         (run_scc_vn): Adjust prototype.
17993         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17994         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17995         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
17996         bother about volatile qualifiers on pointers.
17997         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17998         * tree-ssa-loop-ivopts.c
17999         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
18000         (strip_offset_1): Likewise.
18001         (find_interesting_uses_address): Replace INDIRECT_REF handling with
18002         MEM_REF handling.
18003         (get_computation_cost_at): Likewise.
18004         * ipa-pure-const.c (check_op): Handle MEM_REF.
18005         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
18006         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
18007         and constants.
18008         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
18009         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
18010         (eliminate_local_variables_1): Likewise.
18011         (create_call_for_reduction_1): Likewise.
18012         (create_loads_for_reductions): Likewise.
18013         (create_loads_and_stores_for_name): Likewise.
18014         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
18015         (ssa_accessed_in_tree): Handle MEM_REF.
18016         (ssa_accessed_in_assign_rhs): Likewise.
18017         (update_type_size): Likewise.
18018         (analyze_accesses_for_call_stmt): Likewise.
18019         (analyze_accesses_for_assign_stmt): Likewise.
18020         (transform_access_sites): Likewise.
18021         (transform_allocation_sites): Likewise.
18022         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
18023         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
18024         not handle INDIRECT_REF.
18025         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
18026         (cond_store_replacement): Likewise.
18027         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
18028         MEM_REF, no not handle INDIRECT_REFs.
18029         (insert_into_preds_of_block): Properly initialize avail.
18030         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
18031         for ARRAY_REFs.  Properly handle reference lookups that
18032         require a bit re-interpretation.
18033         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
18034         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
18035         (build_ref_for_offset_1): Remove.
18036         (build_ref_for_offset): Build MEM_REFs.
18037         (gate_intra_sra): Disable for now.
18038         (sra_ipa_modify_expr): Handle MEM_REF.
18039         (ipa_early_sra_gate): Disable for now.
18040         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
18041         MEM_REF handling.
18042         (disqualify_base_of_expr): Likewise.
18043         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
18044         MEM_REF handling.
18045         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
18046         Use mem_ref_offset.  Remove bogus folding.
18047         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
18048         (make_fancy_name_1): Add support for MEM_REF.
18049         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
18050         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
18051         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
18052         (compute_complex_ancestor_jump_func): Likewise.
18053         (ipa_analyze_virtual_call_uses): Likewise.
18054         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
18055         INDIRECT_REF folding with more generalized MEM_REF folding.
18056         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
18057         (forward_propagate_addr_into_variable_array_index): Also handle
18058         &ARRAY + I in addition to &ARRAY[0] + I.
18059         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
18060         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
18061         creates assignments with overlap.
18062         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
18063         (get_frame_field): Likewise.
18064         (get_nonlocal_debug_decl): Likewise.
18065         (convert_nonlocal_reference_op): Likewise.
18066         (struct nesting_info): Add mem_refs pointer-set.
18067         (create_nesting_tree): Allocate it.
18068         (convert_local_reference_op): Insert to be folded mem-refs.
18069         (fold_mem_refs): New function.
18070         (finalize_nesting_tree_1): Perform defered folding of mem-refs
18071         (free_nesting_tree): Free the pointer-set.
18072         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
18073         (vectorizable_load): Likewise.
18074         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
18075         (propagate_with_phi): Likewise.
18076         * tree-object-size.c (addr_object_size): Handle MEM_REFs
18077         instead of INDIRECT_REFs.
18078         (compute_object_offset): Handle MEM_REF.
18079         (plus_stmt_object_size): Handle MEM_REF.
18080         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
18081         for &MEM_REF.
18082         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
18083         (symbol_marked_for_renaming): Likewise.
18084         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
18085         (fold-const.o): Add $(TREE_FLOW_H).
18086         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
18087         (find_func_clobbers): Likewise.
18088         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
18089         (decompose_access): Likewise.
18090         (replace_field_acc): Likewise.
18091         (replace_field_access_stmt): Likewise.
18092         (insert_new_var_in_stmt): Likewise.
18093         (get_stmt_accesses): Likewise.
18094         (reorg_structs_drive): Disable.
18095         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
18096         (ix86_canonical_va_list_type): Likewise.
18097
18098 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18099
18100         PR other/44566
18101         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
18102         * target.def (struct gcc_target): Replace enum reg_class with
18103         reg_class_t in hook argument / return types.
18104         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
18105         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
18106         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
18107         * targhooks.h (default_branch_target_register_class): Likewise.
18108         (default_ira_cover_classes, default_secondary_reload): Likewise.
18109         (default_memory_move_cost, default_register_move_cost): Likewise.
18110         * targhooks.c (default_branch_target_register_class): Likewise.
18111         (default_ira_cover_classes, default_secondary_reload): Likewise.
18112         (default_memory_move_cost, default_register_move_cost): Likewise.
18113         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
18114         * bt-load.c (branch_target_load_optimize): Likewise.
18115         * ira.c (setup_cover_and_important_classes): Likewise.
18116         * ira-costs.c (copy_cost): Likewise.
18117         * reload1.c (emit_input_reload_insns): Likewise.
18118         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
18119         * config/frv/frv.c (frv_secondary_reload): Likewise.
18120         * config/s390/s390.c (s390_secondary_reload): Likewise.
18121         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
18122         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
18123         (ix86_register_move_cost): Likewise.
18124         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
18125         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
18126         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
18127         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
18128         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
18129         (rs6000_ira_cover_classes): Likewise.
18130         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
18131         * config/picochip/picochip-protos.h (picochip_secondary_reload):
18132         Likewise.
18133         * config/pa/pa.c (pa_secondary_reload): Likewise.
18134         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
18135         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
18136         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
18137         * doc/tm.texi: Regenerate.
18138
18139 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
18140
18141         PR bootstrrap/44726
18142         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
18143         use.
18144         (build_alias_set_optimal_p): Likewise.
18145         (build_base_obj_set_for_drs): Likewise.
18146
18147 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
18148
18149         * target.def: Remove comment about licensing problems of function
18150         declarations.
18151
18152         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
18153         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
18154         * doc/tm.texi: Regenerate.
18155
18156         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
18157         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
18158
18159         * target.def (enum_va_list_p): Use DEFHOOK.
18160         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
18161         Rename ptype to ptree.
18162         * doc/tm.texi: Regenerate.
18163
18164         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
18165         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
18166         * doc/tm.texi: Regenerate.
18167
18168         * target.def (memory_move_cost): Use DEFHOOK.
18169         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
18170         Rename regclass AKA class to rclass.
18171         * doc/tm.texi: Regenerate.
18172
18173         * target.def (pragma_parse): Use DEFHOOK.
18174         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
18175         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
18176         * doc/tm.texi: Regenerate.
18177
18178         * target.def (pass_by_reference): Use DEFHOOK.
18179         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
18180         * doc/tm.texi: Regenerate.
18181
18182         * target.def (resolve_overloaded_builtin): Rename params to arglist.
18183         Use DEFHOOK.
18184         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
18185         * doc/tm.texi: Regenerate.
18186
18187         * target.def (return_pops_args): Use DEFHOOK.
18188         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
18189         Rename stack-size to size.
18190         * doc/tm.texi: Regenerate.
18191
18192         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
18193         last-sched_cycle to last_clock, cur_cycle to clock.
18194         * doc/tm.texi.in: Use @hook.
18195         * doc/tm.texi: Regenerate.
18196
18197         * target.def (print_operand, print_operand_address): Update comment.
18198         (print_operand_punct_valid_p): Likewise.
18199
18200 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18201
18202         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
18203         to rtl.h.
18204         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
18205         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
18206         * rtl-error.h: New.
18207         * regrename.c: Do not include toplev.h. Include rtl-error.h.
18208         * rtl-error.c: Likewise.
18209         * reload.c: Likewise.
18210         * recog.c:  Likewise.
18211         * sel-sched.c: Likewise.
18212         * function.c: Likewise.
18213         * reg-stack.c: Likewise.
18214         * cfgrtl.c: Likewise.
18215         * reload1.c: Likewise.
18216         * final.c: Include rtl-error.
18217         * Makefile.in: Adjust dependencies.
18218
18219 2010-06-30  Jan Hubicka  <jh@suse.cz>
18220
18221         PR middle-end/PR44706
18222         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
18223         to return the value.
18224
18225 2010-06-30  Michael Matz  <matz@suse.de>
18226
18227         PR bootstrap/44699
18228         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
18229         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
18230         a gimple reg, attach the original VDEF to the last store in the
18231         sequence.
18232
18233 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
18234
18235         PR other/44034
18236         * config/darwin.c (darwin_override_options): Use renamed
18237         targetm.asm_out.emit_unwind_label.
18238
18239 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
18240
18241         PR tree-optimization/39799
18242         * tree-inline.c (remap_ssa_name): Initialize variable only if
18243         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
18244
18245 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
18246
18247         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
18248
18249 2010-06-30  Richard Guenther  <rguenther@suse.de>
18250
18251         PR target/44722
18252         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
18253         against oscillation with reverse peephole2.
18254
18255 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
18256
18257         PR target/44721
18258         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18259         Fix last commit.
18260
18261 2010-06-30  Nick Clifton  <nickc@redhat.com>
18262
18263         * config/rx/rx-modes.def: New file.
18264         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
18265         (CC_REGNUM): Define.
18266         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
18267         register.
18268         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
18269         (SELECT_CC_MODE): Define.
18270         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
18271         (reg:CC CC_REG) instead of (cc0).
18272         (attr "cc"): Delete.
18273         (cbranchsi4): Do not split compare and branch here. Instead move
18274         it to...
18275         (cbranchsi4_<code>): ... here.  New patterns.
18276         (cmpsi): Call rx-compare_redundant to find out if it is necessary
18277         to emit the compare instruction.
18278         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
18279         cc_status flags.
18280         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
18281         FIRST_PSEUDO_REGNUM.
18282         (rx_expand_prologue, rx_expand_epilogue): Likewise.
18283         (rx_notice_update_cc): Delete.
18284         (rx_cc_modes_compatible): New function.
18285         (flags_needed_for_conditional): New function.
18286         (flags_from_mode): New function.
18287         (rx_compare_redundant): New function - scans backwards through
18288         insn list to find out if condition flags are already set correctly.
18289         (TARGET_CC_MODES_COMPATIBLE): Define.
18290         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
18291
18292         * config/rx/rx.h (BRANCH_COST): Define.
18293         (REGISTER_MOVE_COST): Define.
18294         * config/rx/predicates (rx_source_operand): Allow all constant types.
18295         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
18296         (tstsi4): New pattern.
18297         * config/rx/rx.c (rx_memory_move_cost): Define.
18298         (TARGET_MEMORY_MOVE_COST): Define.
18299
18300 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18301
18302         * tree.h (block_may_fallthru): Declare here.
18303         * tree-flow.h (block_may_fallthru): Do not declare here.
18304         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
18305         bitmap.h
18306         * Makefile.in (c-typeck.o): Update dependencies.
18307
18308 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
18309
18310         PR debug/44694
18311         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
18312         * cselib.c (cfa_base_preserved_regno): New static variable.
18313         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
18314         of REGNO (cfa_base_preserved_val->locs->loc).
18315         (cselib_preserve_cfa_base_value): Add regno argument, set
18316         cfa_base_preserved_regno to it.
18317         (cselib_invalidate_regno): Allow removal of registers other than
18318         cfa_base_preserved_regno from cfa_base_preserved_val.
18319         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
18320         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
18321         of MEM addresses, if not on LHS.
18322         (reverse_op): Don't add reverse ops for cfa_base_rtx.
18323         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
18324
18325 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
18326
18327         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
18328         static variables.
18329         (peep2_buf_position): New static function.
18330         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
18331         peephole2_optimize): Use it.
18332         (peep2_attempt, peep2_update_life): New static functions, broken out
18333         of peephole2_optimize.
18334         (peep2_fill_buffer): New static function.
18335         (peephole2_optimize): Change the main loop to try to fill the buffer
18336         with the maximum number of insns before matching them against
18337         peepholes.  Use a forward scan.  Remove special case for targets with
18338         conditional execution.
18339         * genrecog.c (change_state): Delete dead code.
18340         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
18341         Rewrite so as not to expect the second insn to have had a peephole
18342         applied yet.
18343
18344 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18345
18346         * genhooks.c (emit_findices): Cast field precision to int.
18347         (emit_documentation): Likewise.
18348
18349 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
18350
18351         PR tree-optimization/43801
18352         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
18353         if old_decl was DECL_ONE_ONLY.
18354
18355         PR debug/44668
18356         * dwarf2out.c (add_accessibility_attribute): New function.
18357         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
18358         instead of adding DW_AT_accessibility manually.
18359         (gen_enumeration_type_die, gen_struct_or_union_type_die,
18360         gen_typedef_die): Use it.
18361
18362 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18363
18364         * vmsdbgout.c (full_name): Just output the file name if not native.
18365
18366 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18367
18368         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
18369         (funcnam_table): New static table.
18370         (funcnum_table): New static table.
18371         (write_rtnbeg): Write value saved in funcnum_table.
18372         (write_rtnend): Write value saved in funcnum_table.
18373         (vmsdbgout_begin_function): Save current function info in
18374         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
18375         (vmsdbgout_finish): Iterate over funcnum_table.
18376
18377 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18378
18379         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
18380         (vmsdbgout_type_decl): Declare
18381         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
18382         (FUNC_EPILOGUE_LABEL): New macro
18383         (vmsdbgout_begin_epilogue): New function.
18384         (vmsdbgout_type_decl): New function.
18385
18386 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18387
18388         * vmsdbg.h: Update copyright.
18389
18390 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
18391
18392         * vmsdbg.h (DST_K_TBG): New DST constant.
18393         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
18394         (write_modbeg): Cast module_language to avoid warning.
18395         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
18396
18397 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
18398
18399         PR other/44034
18400         * target.def, doc/tm.texi.in, genhooks.c: New files.
18401         * target.h: Instead of defining individual hook members,
18402         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
18403         include target.def.
18404         * target-def.h: Instead of defining individual hook initializers,
18405         include target-hooks-def.h.
18406         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
18407         targetm.live_on_entry -> targetm.extra_live_on_entry
18408         targetm.sched.md_finish ->targetm.sched.finish
18409         targetm.sched.md_init -> targetm.sched.init
18410         targetm.sched.md_init_global -> targetm.sched.init_global
18411         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
18412         targetm.asm_out.except_table_label ->
18413           targetm.asm_out.emit_except_table_label
18414         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
18415         targetm.target_help -> targetm.help
18416         targetm.vectorize.builtin_support_vector_misalignment ->
18417           targetm.vectorize.support_vector_misalignment
18418         targetm.file_start_app_off -> targetm.asm_file_start_app_off
18419         targetm.file_start_file_directive ->
18420          targetm.asm_file_start_file_directive
18421         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
18422         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
18423         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
18424         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
18425           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
18426         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
18427           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
18428         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
18429         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
18430         * Makefile.in (TARGET_H): Depend on target.def.
18431         (TARGET_DEF_H): Depend on target-hooks-def.h.
18432         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
18433         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
18434         * doc/tm.texi: Regenerate.
18435
18436         * Makefile.in (s-tm-texi): Remove stray tab / rule.
18437
18438         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
18439         (targetm.sched.init): Likewise.
18440
18441 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18442
18443         PR bootstrap/44713
18444         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
18445         (function_arg_advance_32): Const-ify TYPE parameter.
18446         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
18447         (ix86_function_arg_advance): Change type of NAMED to bool.
18448         (function_arg_32): Const-ify CUM and TYPE parameters.
18449         (function_arg_64): Likewise.  Change type of NAMED to bool.
18450         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
18451         to bool.
18452         (ix86_function_arg): Change type of NAMED to bool.
18453         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
18454         last argument as a bool.
18455
18456 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
18457
18458         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
18459         (OVERRIDE_OPTIONS): Add note of obsolescence.
18460         Replace references with references to TARGET_OPTION_OVERRIDE.
18461         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
18462          the macro).
18463         * targhooks.c (default_target_option_override): New function.
18464         * targhooks.h (default_target_option_override): Declare.
18465         * target.h (struct gcc_target): Add override member to
18466         target_option member.
18467         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
18468         targetm.target_option.override call.
18469         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
18470         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
18471
18472 2010-06-29  Jan Hubicka  <jh@suse.cz>
18473
18474         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
18475
18476 2010-06-29  Jan Hubicka  <jh@suse.cz>
18477
18478         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
18479         unreachable.
18480         (rebuild_frequencies): New function.
18481         * predict.h (rebuild_frequencies): Declare.
18482         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
18483         entry block and edge reaching new_entry.
18484         (tree_function_versioning): When doing partial cloning, rebuild
18485         frequencies when done.
18486         * passes.c (execute_function_todo): Use rebild_frequencies.
18487
18488 2010-06-29  Richard Guenther  <rguenther@suse.de>
18489
18490         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
18491         * tree-flow.h (enum noalias_state): Remove.
18492         (struct var_ann_d): Remove noalias_state member.
18493
18494 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
18495
18496         PR target/43902
18497         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
18498         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
18499         (maddhidi4): Likewise.
18500
18501         Revert parts of the change for PR25130.
18502         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
18503         MEM_ALIAS_SET.
18504
18505 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18506
18507         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
18508         targetm.calls.function_incoming_arg, and
18509         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
18510         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
18511         * target.h (struct gcc_target): Add function_arg_advance,
18512         function_arg, and function_incoming_arg fields.
18513         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
18514         (TARGET_FUNCTION_INCOMING_ARG): Define.
18515         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
18516         and TARGET_FUNCTION_INCOMING_ARG.
18517         * targhooks.h (default_function_arg_advance): Declare.
18518         (default_function_arg, default_function_incoming_arg): Declare.
18519         * targhooks.c (default_function_arg_advance): New function.
18520         (default_function_arg, default_function_incoming_arg): New function.
18521         * config/i386/i386.c (function_arg_advance): Rename to...
18522         (ix86_function_arg_advance): ...this.  Make static.
18523         (function_arg): Rename to...
18524         (ix86_function_arg): ...this.  Make static.
18525         (TARGET_FUNCTION_ARG_ADVANCE): Define.
18526         (TARGET_FUNCTION_ARG): Define.
18527         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
18528         (FUNCTION_ARG): Delete.
18529         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
18530         (function_arg): Delete prototype.
18531
18532 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18533
18534         * reginfo.c (init_reg_sets_1): Adjust comments.
18535         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
18536         * calls.c (prepare_call_address): Likewise.
18537         (emit_call_1): Use targetm.calls.return_pops_args.
18538         (expand_call): Likewise.
18539         * function.c (assign_parms): Likewise.
18540         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
18541         * target.h (struct gcc_target) [struct calls]: Add
18542         return_pops_args field.
18543         * targhooks.h (default_return_pops_args): Declare.
18544         * targhooks.c (default_return_pops_args): Define.
18545         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
18546         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
18547         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
18548         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
18549         documentation.
18550         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
18551         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
18552         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
18553         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
18554         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
18555         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
18556         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
18557         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
18558         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
18559         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
18560         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
18561         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
18562         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
18563         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
18564         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
18565         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
18566         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
18567         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
18568         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
18569         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
18570         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
18571         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
18572         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
18573         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
18574         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
18575         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
18576         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
18577         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
18578         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
18579         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
18580         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
18581         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
18582         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
18583         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
18584         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
18585         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
18586         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
18587         * config/i386/i386.c (ix86_return_pops_args): Make static.
18588         Constify arguments.
18589         (TARGET_RETURN_POPS_ARGS): Define.
18590         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
18591         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
18592         (TARGET_RETURN_POPS_ARGS): Define.
18593         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
18594         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
18595         (TARGET_RETURN_POPS_ARGS): Define.
18596
18597 2010-06-29  Richard Guenther  <rguenther@suse.de>
18598
18599         PR middle-end/44667
18600         * tree-inline.c (initialize_inlined_parameters): Make sure
18601         to remap the inlined parameter variable substitutions types.
18602
18603 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
18604
18605         PR rtl-optimization/44659
18606         * combine.c (make_compound_operation) <SUBREG>: Do not return the
18607         result of force_to_mode if it partially re-expanded the compound.
18608
18609 2010-06-28  Jan Hubicka  <jh@suse.cz>
18610
18611         PR middle-end/44671
18612         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
18613         RESULT_DECL.
18614
18615 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
18616
18617         * double-int.h (force_fit_type_double): Remove declaration.
18618         * double-int.c (force_fit_type_double): Move to tree.c.
18619         * tree.h (force_fit_type_double): Declare.
18620         * tree.h (force_fit_type_double): Moved from double-int.c. Use
18621         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
18622         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
18623         * convert.c (convert_to_pointer): Adjust call to
18624         force_fit_type_double.
18625         * tree-vrp.c (extract_range_from_assert,
18626         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
18627         * fold-const.c: Update comment.
18628         (int_const_binop, fold_convert_const_int_from_int,
18629         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
18630         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
18631         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
18632         round_up_loc): Adjust call to force_fit_type_double.
18633
18634 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18635
18636         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
18637
18638 2010-06-28  Martin Jambor  <mjambor@suse.cz>
18639
18640         * tree-sra.c (convert_callers): New parameter, change fndecls of
18641         recursive calls.
18642         (modify_function): Pass the old decl to convert_callers.
18643
18644 2010-06-28  Martin Jambor  <mjambor@suse.cz>
18645
18646         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
18647         ipa_check_create_node_params and ipa_initialize_node_params with
18648         checking asserts they are not necessary.
18649
18650 2010-06-28  Jan Hubicka  <jh@suse.cz>
18651
18652         PR tree-optimization/44687
18653         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
18654
18655 2010-06-28  Martin Jambor  <mjambor@suse.cz>
18656
18657         PR c++/44535
18658         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
18659         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
18660         instead of BINFO_BASE_BINFO.
18661
18662 2010-06-28  Michael Matz  <matz@suse.de>
18663
18664         PR middle-end/44592
18665         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
18666         proper VDEF chain for intermediate stores in the sequence.
18667
18668 2010-06-28  Jan Hubicka  <jh@suse.cz>
18669
18670         PR tree-optimization/44357
18671         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
18672         uninlinable functions.
18673
18674 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18675
18676         * config.gcc (powerpc*-*-*): Handle titan.
18677         * config/rs6000/rs6000.c (titan_cost): New costs.
18678         (rs6000_override_options): Add "titan" to processor_target_table.
18679         Add Titan to branch alignment logic.
18680         Correctly set rs6000_cost for titan.
18681         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
18682         * config/rs6000/titan.md: New file.
18683         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
18684
18685 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
18686
18687         * tree-browser.c (TB_history_stack): Convert to a VEC.
18688         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
18689         (TB_history_prev): Likewise.
18690
18691 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
18692
18693         * vec.h (vec_heap_free): Add parentheses around free.
18694
18695 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
18696
18697         * system.h: Poison GCC_EXCEPT_H for front-end files.
18698
18699         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
18700         langhook.
18701         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
18702         Define to NULL by default.
18703         * except.h: Define GCC_EXCEPT_H.
18704         (doing_eh): Remove prototype.
18705         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
18706         (lang_protect_cleanup_actions): Remove.
18707         * except.c (lang_protect_cleanup_actions): Remove.
18708         (doing_eh): Remove.
18709         (gen_eh_region): Don't check doing_eh here.
18710         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
18711         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
18712         instead of lang_protect_cleanup_actions.
18713         * omp-low.c (maybe_catch_exception): Likewise.
18714         * Makefile.in: Update dependencies.
18715
18716 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
18717
18718         * cgraph.h (struct varpool_node): new used_from_object_file flag.
18719         (struct cgraph_local_info): new used_from_object_file flag.
18720         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
18721         (cgraph_clone_node): initialize used_from_object_file.
18722         (cgraph_create_virtual_clone): initialize used_from_object_file.
18723         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
18724         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
18725         when compiling with -fwhole-program.
18726         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
18727         internal resolver.
18728         * ipa.c (function_and_variable_visibility): Set externally_visible
18729         flag of varpool_node if used_from_object_file flag is set.
18730         (cgraph_externally_visible_p): check used_from_object_file flag.
18731         * doc/invoke.texi (-fwhole-program option): Change description of
18732         externally_visible attribute accordingly.
18733         * doc/extend.texi (externally_visible): Ditto.
18734
18735 2010-06-27  Jan Hubicka  <jh@suse.cz>
18736
18737         * params.def (max-inline-insns-auto): Default to 40.
18738         * doc/invoke.texi (max-inline-insns-auto): Document the change.
18739
18740 2010-06-27  Jan Hubicka  <jh@suse.cz>
18741
18742         PR middle-end/44671
18743         PR middle-end/44686
18744         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
18745         signature change.
18746         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
18747         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
18748
18749 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
18750
18751         * target.h (struct gcc_target): Add register_move_cost field.
18752         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
18753         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
18754         * targhooks.c (default_register_move_cost): New function.
18755         * targhooks.h (default_register_move_cost): Declare function.
18756         * defaults.h (REGISTER_MOVE_COST): Delete.
18757         * ira-int.h (ira_register_move_cost): Update comment.
18758         * ira.c (ira_register_move_cost): Update comment.
18759         * reload.h (register_move_cost): Declare.
18760         * reginfo.c (register_move_cost): New function.
18761         (move_cost): Update comment.
18762         (init_move_cost, memory_move_secondary_cost): Replace
18763         REGISTER_MOVE_COST with register_move_cost.
18764         * postreload.c (reload_cse_simplify_set): (Ditto.).
18765         * reload.c (find_valid_class, find_reloads): (Ditto.).
18766         * reload1.c (choose_reload_regs): (Ditto.).
18767         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
18768         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
18769         * doc/md.texi (can_create_pseudo_p): Update documentation.
18770
18771         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18772         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18773         * config/i386/i386.h (ix86_memory_move_cost): Make static.
18774         (TARGET_MEMORY_MOVE_COST): Define.
18775
18776         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18777         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
18778         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
18779         (TARGET_MEMORY_MOVE_COST): Define.
18780
18781 2010-06-27  Richard Guenther  <rguenther@suse.de>
18782
18783         PR tree-optimization/44683
18784         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
18785         false edge from the inverted condition.
18786
18787 2010-06-27  Richard Guenther  <rguenther@suse.de>
18788
18789         PR middle-end/44684
18790         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
18791         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
18792         for register LHS.  Or non-store assignments.
18793
18794 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
18795
18796         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
18797         (sparc_emit_set_const64): Likewise.  Remove disabled code.
18798         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
18799         (sparc_emit_set_const64): Likewise.
18800
18801 2010-06-26  Catherine Moore  <clm@codesourcery.com>
18802
18803         * config/mips/mips.md (alu_type): New attribute.
18804         (type): Infer type from alu_type.
18805         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
18806         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
18807         *subsi3_extended, negsi2, negdi2, *low<mode>,
18808         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
18809         xor<mode>3, *nor<mode>3,
18810         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
18811         *zero_extendhi_truncqi):  Set alu_type instead of type.
18812
18813 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
18814
18815         * config/alpha/alpha.c (alpha_need_linkage): Adjust
18816         splay_tree_new_ggc call.
18817         (alpha_use_linkage): Likewise.
18818
18819 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
18820
18821         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
18822         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
18823         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
18824         (static_specs): Remove switches_need_spaces.
18825         (process_command, do_self_spec): Hardcode handling "-o" instead of
18826         checking switches_need_spaces.
18827         * system.h (SWITCHES_NEED_SPACES): Poison.
18828
18829 2010-06-26  Richard Guenther  <rguenther@suse.de>
18830
18831         PR tree-optimization/44393
18832         * tree-loop-distribution.c (generate_loops_for_partition): Fix
18833         stmt removal and VOP renaming.
18834         (generate_memset_zero): Remove redundant stmt updating.
18835         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
18836         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
18837
18838 2010-06-26  Jan Hubicka  <jh@suse.cz>
18839
18840         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
18841         edges comming from header are equivalent.
18842         (visit_bb): Handle PHIs correctly.
18843         * tree-inline.c (copy_phis_for_bb): Be able to copy
18844         PHI from entry edge.
18845         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
18846
18847 2010-06-26  Richard Guenther  <rguenther@suse.de>
18848
18849         PR middle-end/44674
18850         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
18851         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
18852
18853 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
18854
18855         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
18856         add_infile, alloc_switch): New.
18857         (process_command): Remove variable lang_n_infiles.  Process
18858         options in a single pass.  Use new functions for allocating
18859         infiles and switches arrays.  Properly skip operands of
18860         -Xpreprocessor and -Xassembler.
18861
18862 2010-06-26  Jan Hubicka  <jh@suse.cz>
18863
18864         PR middle-end/44671
18865         * cgraphunit.c (cgraph_function_versioning): Remove wrong
18866         cgraph_make_decl_local call; fix typo copying RTL data.
18867
18868 2010-06-25  DJ Delorie  <dj@redhat.com>
18869
18870         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
18871         (m32c_output_aligned_common): Likewise.
18872         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18873         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18874         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
18875         (m32c_register_pragmas): Register it.
18876         * config/m32c/m32c.c (m32c_get_pragma_address): New.
18877         (m32c_insert_attributes): Set #pragma address decls volatile.
18878         (pragma_entry_eq): New.
18879         (pragma_entry_hash): New.
18880         (m32c_note_pragma_address): New.
18881         (m32c_get_pragma_address): New.
18882         (m32c_output_aligned_common): New.
18883         * doc/extend.texi: Document the new pragma.
18884
18885         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
18886         also.
18887         * config/m32c/predicates.md (m32c_any_operand): Check the code
18888         instead of memory_operand so as to allow matching volatile MEMs.
18889         (m32c_nonimmediate_operand): Likewise.
18890         (mra_operand): Allow volatiles.
18891
18892 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
18893
18894         PR debug/44610
18895         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
18896         address if the offset is unknown.
18897
18898 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
18899
18900         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
18901         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
18902         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
18903         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
18904         to ia64_start_function. Invoke it.
18905         * config/ia64/ia64.c (ia64_start_function): Call new function
18906         dwarf2out_vms_debug_main_pointer.
18907
18908 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18909
18910         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
18911         statements computing the true predicate.
18912
18913 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18914
18915         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
18916         to boolean_true_node.
18917         (reset_bb_predicate): New.
18918         (predicate_bbs): Call reset_bb_predicate.
18919
18920 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18921
18922         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
18923         (tree_if_conversion): Returns true when something has been changed.
18924         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
18925         changed something.
18926
18927 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18928
18929         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
18930         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
18931         * tree-if-conv.c: Include dbgcnt.h.
18932         (tree_if_conversion): Use if_conversion_tree to count the number of
18933         if-convertible loops.
18934
18935 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
18936
18937         * common.opt (fprefetch-loop-arrays): Re-define
18938         -fprefetch-loop-arrays as a tri-state option with the initial
18939         value of -1.
18940         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
18941         pass only when flag_prefetch_loop_arrays > 0.
18942         * toplev.c (process_options): Note that, with tri-states,
18943         flag_prefetch_loop_arrays>0 means prefetching is enabled.
18944         * config/i386/i386.c (override_options): Enable prefetching at -O3
18945         for a set of CPUs that sw prefetching is helpful.
18946         (software_prefetching_beneficial_p): New.  Return TRUE if software
18947         prefetching is beneficial for the given CPU.
18948
18949 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18950
18951         PR rtl-optimization/44326
18952         * implicit-zee.c (find_removable_zero_extends): Replace
18953         INSN_P with NONDEBUG_INSN_P.
18954
18955 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18956
18957         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18958         (struct ipa_node_params): Removed the modification_analysis_done flag.
18959         (ipa_is_param_modified): Removed.
18960         (ipa_analyze_node): Declare.
18961         (ipa_compute_jump_functions): Remove declaration.
18962         (ipa_count_arguments): Likewise.
18963         (ipa_detect_param_modifications): Likewise.
18964         (ipa_analyze_params_uses): Likewise.
18965         * ipa-prop.c (struct param_analysis_info): New type.
18966         (visit_store_addr_for_mod_analysis): Removed.
18967         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18968         moved down in the file.
18969         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18970         (ipa_count_arguments): Made static.
18971         (mark_modified): New function.
18972         (is_parm_modified_before_call): New function.
18973         (compute_pass_through_member_ptrs): New parameter parms_info, call
18974         is_parm_modified_before_call instead of ipa_is_param_modified.
18975         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18976         it to compute_pass_through_member_ptrs.
18977         (ipa_compute_jump_functions): New parameter parms_info, pass it to
18978         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
18979         on the callee if it is analyzed.  Made static.
18980         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18981         is_parm_modified_before_call instead of ipa_is_param_modified.
18982         (ipa_analyze_call_uses): New parameter parms_info, pass it to
18983         ipa_analyze_indirect_call_uses.
18984         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18985         ipa_analyze_call_uses.
18986         (ipa_analyze_params_uses): New parameter parms_info, pass it to
18987         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
18988         (ipa_analyze_node): New function.
18989         (ipa_print_node_params): Do not dump the modified flag.
18990         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18991         it.  Do not stream the modified parameter flag.
18992         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18993         it.  Do not stream the modified parameter flag.
18994         * ipa-cp.c (ipcp_analyze_node): Removed.
18995         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18996         with only a call to ipa_analyze_node.
18997         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18998         node with only a call to ipa_analyze_node.
18999
19000 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19001
19002         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
19003
19004 2010-06-25  Jan Hubicka  <jh@suse.cz>
19005
19006         * tree-pass.h (pass_split_functions): Declare.
19007         * opts.c (decode_options): Enable function splitting at -O2
19008         * timevar.def (TV_IPA_FNSPLIT): New macro.
19009         * ipa-split.c: New file.
19010         * common.opt (-fpartial-inlining): New flag.
19011         * Makefile.in (ipa-split.o): New object file.
19012         * passes.c (init_optimization_passes): Add ipa-split.
19013         * params.def (partial-inlining-entry-probability): New parameters.
19014         * doc/invoke.texi (-fpartial-inlining): New.
19015
19016 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19017
19018         PR 44665
19019         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
19020         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
19021         (gimplify_expr): Likewise.
19022
19023 2010-06-25  Martin Jambor  <mjambor@suse.cz>
19024
19025         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
19026         statements instead of bailing out on them.
19027         (ipa_analyze_indirect_call_uses): Do not require that loads from the
19028         parameter are in the same BB as the condition.  Update comments.
19029
19030 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
19031
19032         PR middle-end/43866
19033         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
19034         true or always false, return NULL_TREE.
19035         (tree_unswitch_single_loop): Optimize conditions even when reaching
19036         max-unswitch-level parameter.  If num > 0, optimize first all conditions
19037         using entry checks, then do still reachable block discovery and consider
19038         only conditions in still reachable basic blocks in the loop.
19039
19040         PR tree-optimization/44539
19041         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
19042         the call doesn't have LHS, but has VDEF.
19043
19044 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
19045
19046         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
19047         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
19048         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
19049         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
19050         * system.h (MODIFY_TARGET_NAME): Poison.
19051
19052 2010-06-25  Alan Modra  <amodra@gmail.com>
19053
19054         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
19055         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
19056         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
19057         CMODEL_LARGE as default.
19058         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
19059         (offsettable_ok_by_alignment): Delete.
19060         (rs6000_emit_move): Remove mcmodel=medium optimization.
19061
19062 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
19063
19064         With large parts from Jim Wilson:
19065         PR target/43902
19066         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
19067         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
19068         * optabs.c (optab_for_tree_code): Likewise.
19069         (expand_widen_pattern_expr): Likewise.
19070         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
19071         out of execute_optimize_widening_mul.
19072         (convert_plusminus_to_widen): New function.
19073         (execute_optimize_widening_mul): Use the two new functions.
19074         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
19075         Remove code to generate widening multiply-accumulate.  Add support
19076         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
19077         * gimple-pretty-print.c (dump_ternary_rhs): New function.
19078         (dump_gimple_assign): Call it when appropriate.
19079         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
19080         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
19081         (expand_gimple_stmt_1): Likewise.
19082         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
19083         WIDEN_MULT_MINUS_EXPR.
19084         * tree-ssa-operands.c (get_expr_operands): Likewise.
19085         * tree-inline.c (estimate_operator_cost): Likewise.
19086         * gimple.c (extract_ops_from_tree_1): Renamed from
19087         extract_ops_from_tree.  Add new arg for a third operand; fill it.
19088         (gimple_build_assign_stat): Support operations with three operands.
19089         (gimple_build_assign_with_ops_stat): Likewise.
19090         (gimple_assign_set_rhs_from_tree): Likewise.
19091         (gimple_assign_set_rhs_with_ops_1): Renamed from
19092         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
19093         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
19094         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
19095         WIDEN_MULT_MINUS_EXPR.
19096         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
19097         (extract_ops_from_tree_1): Adjust declaration.
19098         (gimple_assign_set_rhs_with_ops_1): Likewise.
19099         (gimple_build_assign_with_ops): Pass NULL for last operand.
19100         (gimple_build_assign_with_ops3): New macro.
19101         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
19102         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
19103         functions.
19104         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
19105         (verify_gimple_assign): Call it.
19106         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
19107         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
19108         functions for dealing with three-operand statements.
19109         * tree.c (commutative_ternary_tree_code): New function.
19110         * tree.h (commutative_ternary_tree_code): Declare it.
19111         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
19112         ternary statements.
19113         (gimple_assign_nonzero_warnv_p): Likewise.
19114         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
19115         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
19116         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
19117         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
19118         (struct hashtable_expr): New member ternary in the union.
19119         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
19120         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
19121         (iterative_hash_hashable_expr): Likewise.
19122         (print_expr_hash_elt): Handle EXPR_TERNARY.
19123         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
19124         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
19125         statements.  Handle GIMPLE_TERNARY_RHS.
19126
19127 2010-06-25  Jan Hubicka  <jh@suse.cz>
19128
19129         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
19130
19131 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
19132
19133         PR c/44517
19134         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
19135         parameters are not good.
19136         (c_parser_parameter_declaration): Error unknown type name if the type
19137         name can't start declaration specifiers.
19138
19139 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
19140
19141         * gcc.c (translate_options): Don't mention +e in comment.
19142         (process_command): Don't handle +e specially.
19143
19144 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
19145
19146         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
19147
19148         * ira-build.c (merge_hard_reg_conflicts): New function.
19149         (create_cap_allocno, copy_info_to_removed_store_destinations,
19150         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
19151         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
19152         (remove_unnecessary_allocnos, remove_low_level_allocnos)
19153         copy_nifo_to_removed_store_destination): Use them.
19154         * ira-lives.c (make_hard_regno_born): New function, split out of
19155         make_regno_born.
19156         (make_allocno_born): Likewise.
19157         (make_hard_regno_dead): New function, split out of make_regno_dead.
19158         (make_allocno_dead): Likewise.
19159         (inc_register_pressure): New function, split out of set_allocno_live.
19160         (dec_register_pressure): New function, split out of clear_allocno_live.
19161         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
19162         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
19163         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
19164         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
19165         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
19166         mark_pseudo_regno_live.
19167         (process_bb_node_lives): Use mark_pseudo_regno_live,
19168         make_hard_regno_born and make_allocno_dead.
19169         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
19170         set_allocno_live, clear_allocno_live): Delete functions.
19171
19172         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
19173         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
19174         functions.
19175         (ira_flattening): Use ira_parent_allocno.
19176         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
19177         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
19178
19179         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
19180         statement.
19181
19182         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
19183         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
19184         minmax_set_iter_cond, minmax_set_iter_next,
19185         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
19186         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
19187         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
19188         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
19189         uses changed.
19190
19191         * ira-int.h (struct live_range, live_range_t): Renamed from struct
19192         ira_allocno_live_range and allocno_live_range_t; all uses changed.
19193         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
19194         All uses changed.
19195
19196 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
19197
19198         * thumb2.md (thumb2_tlobits_cbranch): Delete.
19199         (peephole2 to convert zero_extract/compare of single bit to
19200          lshift/compare): New.
19201
19202 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
19203
19204         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
19205         recursive call and call to 'int_const_binop'.
19206         (build_range_check, fold_cond_expr_with_comparison, unextend,
19207         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
19208         multiple_of_p): Adjust call to const_binop.
19209
19210 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
19211
19212         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
19213         determine size of XFmode operand.
19214         (XFmode extended DFmode push splitter): Ditto.
19215         (XFmode extended SFmode push splitter): Ditto.
19216
19217 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19218
19219         PR target/44588
19220         * config/i386/i386.md (extract_code): New.
19221         (<u>divmodqi4): Likewise.
19222         (divmodhiqi3): Likewise.
19223         (udivmodhiqi3): Likewise.
19224         (<u>divqi3): Remvoved.
19225
19226 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
19227
19228         PR middle-end/44492
19229         * recog.h (struct recog_data): Add is_asm field.
19230         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
19231         present in constraints of inline-asm operand and memory operand
19232         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
19233         (extract_insn): Initialize recog_data.is_asm.
19234         * doc/md.texi (Constraints): Document operand side-effect rules.
19235
19236 2010-06-24  Andi Kleen  <ak@linux.intel.com>
19237
19238         * c-parser.c (c_parser_conditional_expression): Call
19239         warn_for_omitted_condop.
19240         * doc/invoke.texi: Document omitted condop warning.
19241
19242 2010-06-24  Nick Clifton<nickc@redhat.com>
19243
19244         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
19245         insn in the sequence is a jump insn before setting its label.
19246
19247 2010-06-24  Alan Modra  <amodra@gmail.com>
19248
19249         * collect2.c (main): Match exactly --version and --help.
19250
19251 2010-06-24  DJ Delorie  <dj@redhat.com>
19252
19253         * config/m32c/m32c-pragma.c: Don't include rtl.h.
19254
19255 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
19256
19257         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
19258         using X87MODEF mode iterator.
19259         (pushsf splitter): Macroize splitter using P mode iterator.
19260         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
19261         mode iterator.
19262
19263         (*movxf_internal): Rename from *movxf_integer.
19264         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
19265         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
19266         (*movdf_internal): Rename from *movdf_integer.
19267         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
19268         (*movsf_internal): Rename from *movdf_1.
19269
19270 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
19271
19272         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
19273         (const_gimple_seq_node): Removed typedefs.
19274
19275         * gimple.h (gimple_seq_node_d, gimple_seq_node)
19276         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
19277
19278 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19279
19280         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
19281         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
19282         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
19283         and CODE_FOR_vec_extract_lo_v4df.
19284
19285         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
19286         Changed to define_insn_and_split.
19287         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
19288         (vec_extract_lo_v16hi): Likewise.
19289         (vec_extract_lo_v32qi): Likewise.
19290         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
19291         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
19292
19293 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
19294
19295         PR target/44640
19296         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
19297         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
19298         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
19299         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
19300         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
19301
19302         PR target/44640
19303         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
19304
19305         PR other/44644
19306         * df-core.c (struct df): Rename to df_d.
19307         * df.h (struct df): Likewise.
19308         * dse.h (struct df): Remove forward declaration.
19309         * recog.h (struct insn_data): Rename to:
19310         (struct_insn_data_d).  Adjusted all users.
19311
19312 2010-06-23  Arnaud Charlet  <charlet@adacore.com
19313
19314         PR ada/22220
19315         * doc/install.texi: Update requirements to build GNAT.
19316
19317 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
19318
19319         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
19320         enum type.
19321         (m68k_sched_attr_opx_type): Remove unreachable return.
19322         (m68k_sched_attr_opy_type): Likewise.
19323         (m68k_sched_attr_size): Likewise.
19324         (sched_get_opxy_mem_type): Likewise.
19325         (m68k_sched_attr_op_mem): Likewise.
19326
19327 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
19328
19329         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
19330         new statement and adjust VDEF only if necessary.  Remove superfluous
19331         call to maybe_clean_or_replace_eh_stmt.
19332         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
19333         copy the flags.
19334         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
19335         * tree-inline.c (copy_bb): ...and not there.
19336
19337 2010-06-22  Cary Coutant  <ccoutant@google.com>
19338
19339         * dwarf2out.c (is_nested_in_subprogram): New function.
19340         (should_move_die_to_comdat): Use it.
19341         (copy_ancestor_tree): Don't mark DIEs here.
19342         (copy_decls_walk): Start walk from root of newly-added tree;
19343         mark DIEs here instead.
19344
19345 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19346
19347         * config/i386/i386.md (unit): Also check sseishft1.
19348
19349 2010-06-22  Jan Hubicka  <jh@suse.cz>
19350
19351         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
19352         enabled.
19353
19354 2010-06-22  Jan Hubicka  <jh@suse.cz>
19355
19356         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
19357         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
19358         Return true if something changed.
19359         * df.h (df_confluence_function_n): Return bool.
19360         * df-core.c (df_worklist_propagate_forward,
19361         df_worklist_propagate_backward): Track changes and ages.
19362         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
19363         track ages.
19364         * dse.c (dse_confluence_n): Return always true.
19365
19366 2010-06-22  Jan Hubicka  <jh@suse.cz>
19367
19368         * bitmap.c (bitmap_clear_bit): Micro optimize.
19369
19370 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
19371
19372         * config/i386/i386.md (SWI1248x): New mode iterator.
19373         (SWI48x): Ditto.
19374         (SWI12): Ditto.
19375         (SWI24): Ditto.
19376
19377         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
19378         SWI1248x mode iterator.
19379         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
19380         using SWI124 mode iterator.
19381         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
19382         mode iterator.
19383         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
19384         *pushdi2_prologue_rex64 using P mode iterator.
19385         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
19386         using SWI48 mode iterator.
19387         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
19388         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
19389         using SWI1248x mode iterator.
19390         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
19391         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
19392         SWI48 mode iterator.
19393         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
19394         iterator.
19395         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
19396         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
19397         SWI12 mode iterator.
19398         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
19399         SWI12 mode iterator.
19400         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
19401         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
19402         SWI24 mode iterator.
19403         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
19404         SWI48 mode iterator.
19405         (mov<mode>_insn_1): New expander.
19406         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
19407         using SWI48x mode iterator.
19408
19409         (*movoi_internal_avx): Rename from *movoi_internal.
19410         (*movti_internal_rex64): Rename from *movti_rex64.
19411         (*movti_internal_sse): Rename from *movti_sse.
19412         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
19413         (*movdi_internal): Rename from *movdi_2.
19414         (*movsi_internal): Rename from *movsi_1.
19415         (*movhi_internal): Rename from *movhi_1.
19416         (*movqi_internal): Rename from *movqi_1.
19417
19418         (insv): Update the call to gen_movsi_insv_1 for rename.
19419         * config/i386/i386.c (promote_duplicated_reg): Ditto.
19420
19421 2010-06-22  Jan Hubicka  <jh@suse.cz>
19422
19423         * passes.c (execute_function_todo): Move call of statistics_fini_pass
19424         to ...
19425         (execute_todo) ... this one.
19426
19427 2010-06-22  Alan Modra  <amodra@gmail.com>
19428
19429         PR target/44364
19430         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
19431         * caller-save.c (insert_restore, insert_save): Use non-validate
19432         form of adjust_address.
19433
19434 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19435
19436         PR target/39690
19437         * config/pa/pa.c (override_options): Disable
19438         -freorder-blocks-and-partition.
19439
19440 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
19441
19442         PR target/44615
19443         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
19444
19445         * config/i386/i386.md (type): Add sseishft1
19446
19447         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
19448         (ppro_insn_load): Likewise.
19449         (ppro_insn_store): Likewise.
19450         (ppro_insn_both): Likewise.
19451
19452         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
19453         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
19454         for type.
19455         (*vec_extractv2di_1_avx): Likewise.
19456         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
19457         type.  Remove atom_unit.
19458         (*vec_extractv2di_1_sse2): Likewise.
19459
19460 2010-06-21  DJ Delorie  <dj@redhat.com>
19461
19462         * diagnostic.h (diagnostic_classification_change_t): New.
19463         (diagnostic_context): Add history and push/pop list.
19464         (diagnostic_push_diagnostics): Declare.
19465         (diagnostic_pop_diagnostics): Declare.
19466         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
19467         from pragmas in a history chain instead of the global table.
19468         (diagnostic_push_diagnostics): New.
19469         (diagnostic_pop_diagnostics): New.
19470         (diagnostic_report_diagnostic): Scan history chain to find state
19471         of diagnostics as of the diagnostic location.
19472         * opts.c (set_option): Pass UNKNOWN_LOCATION to
19473         diagnostic_classify_diagnostic.
19474         (enable_warning_as_error): Likewise.
19475         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
19476         use in the history chain.
19477         * doc/extend.texi: Document pragma GCC diagnostic changes.
19478
19479 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
19480
19481         * dwarf2out.c (add_linkage_name): New function.  Don't add
19482         anything to DW_TAG_member DIEs.
19483         (add_name_and_src_coords_attributes): Use it.
19484         (gen_variable_die): Call it for C++ static data members if
19485         specification is DW_TAG_member.
19486
19487         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
19488         C++ char16_t and char32_t.
19489
19490         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
19491         * genattrtab.c: Include vecprim.h.
19492         (cached_attrs, cached_attr_count, attrs_seen_once,
19493         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
19494         attrs_cached_after): New variables.
19495         (find_attrs_to_cache): New function.
19496         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
19497         (write_test_expr): Add attrs_cached argument, return it too,
19498         attempt to cache non-const attributes used more than once in
19499         a single case handling.
19500         (write_attr_get): Use find_attrs_to_cache, for caching candidates
19501         emit cached_* variables.  Adjust write_attr_set callers.
19502         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
19503         to find attributes that should be cached in this block.  Adjust
19504         write_test_expr callers.
19505         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
19506         callers.
19507         (make_automaton_attrs): Adjust write_test_expr caller.
19508
19509         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
19510         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
19511         (make_automaton_attrs): If find_tune_attr returns non-NULL,
19512         write separate internal_dfa_insn_code_* and insn_default_latency_*
19513         functions for each attribute's value and emit init_sched_attrs
19514         function and function pointers.
19515         * genattr.c (const_attrs, reservations): New variables.
19516         (gen_attr): Add const attributes to const_attrs vector.
19517         (check_tune_attr, find_tune_attr): New functions.
19518         (main): Add reservations to reservations vector.  If find_tune_attr
19519         returns true, add prototype for init_sched_attrs and make
19520         internal_dfa_insn_code and insn_default_latency function pointers,
19521         otherwise define init_sched_attrs as dummy macro.
19522         * cfgexpand.c: Include insn-attr.h.
19523         (gimple_expand_cfg): Call init_sched_attrs.
19524
19525         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
19526
19527         PR target/44575
19528         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
19529         va_arg from a set of register save slots into a temporary,
19530         if the container is bigger than type size, do the copying
19531         using smaller mode or using memcpy.
19532
19533         PR bootstrap/44426
19534         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
19535         prototype.
19536         (sel_print_to_dot): Remove macro.
19537         (sel_print): Likewise.  New prototype.
19538         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
19539         (sel_print): New function.
19540
19541 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19542
19543         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
19544         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
19545
19546 2010-06-21  Nick Clifton  <nickc@redhat.com>
19547
19548         * config/rx/rx.h (PTRDIFF_TYPE): Define.
19549         (SMALL_REGISTER_CLASS): Define (to zero).
19550         (PRINT_OPERAND): Delete.
19551         (PRINT_OPERAND_ADDRESS): Delete.
19552         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
19553         (rx_print_operand_address): Delete prototype.
19554         * config/rx/rx.c (rx_print_operand): Make static.
19555         Allow %H and %L to handle CONST_DOUBLEs.
19556         (rx_print_operand_address): Make static.
19557         (rx_gen_move_template): Rename local variable 'template' to
19558         out_template.
19559         (rx_function_arg): Do not pass unknown sized objects in registers.
19560         (TARGET_PRINT_OPERAND): Define.
19561         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19562
19563 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
19564
19565         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
19566
19567 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
19568
19569         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
19570         stack-alignment for simple leaf-functions.
19571
19572 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
19573
19574         * doc/install.texi: Document bootstrap-lto.
19575
19576 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
19577
19578         PR debug/44248
19579         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
19580         (input_function): Drop them here, if VTA is disabled.
19581
19582 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
19583
19584         PR target/44546
19585         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
19586         New predicate.
19587         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
19588         ix86_swapped_fp_comparsion_operator instead of
19589         ix86_fp_comparison_operator.
19590
19591         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
19592         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
19593         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
19594         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
19595         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
19596         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
19597
19598 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
19599
19600         PR other/32998
19601         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
19602         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
19603         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
19604         (decode_cmdline_option): Update for this return value.  Set
19605         orig_option_with_args_text field.  Set arg field for unknown
19606         options.  Make static.
19607         (decode_cmdline_options_to_array): New.
19608         (prune_options): Update handling of find_opt return value.
19609         * opts.c (read_cmdline_option): Take decoded option.  Return void.
19610         (read_cmdline_options): Take decoded options.
19611         (decode_options): Add parameters for decoded options.  Use
19612         decode_cmdline_options_to_array.  Use decoded options for -O
19613         scan.  Use integral_argument for -O parameters.  Update call to
19614         read_cmdline_options.
19615         (enable_warning_as_error): Update handling of find_opt return value.
19616         * opts.h: Update comment on unknown options.
19617         (struct cl_decoded_option): Update comments on opt_index and arg.
19618         Add orig_option_with_args_text.
19619         (decode_cmdline_option): Remove.
19620         (decode_cmdline_options_to_array): Declare.
19621         (decode_options): Update prototype.
19622         * toplev.c (save_argv): Remove.
19623         (save_decoded_options, save_decoded_options_count): New.
19624         (read_integral_parameter): Remove.
19625         (print_switch_values): Use decoded options.
19626         (toplev_main): Don't set save_argv.  Update call to decode_options.
19627         * toplev.h (read_integral_parameter): Remove.
19628         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
19629
19630 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
19631
19632         PR target/44072
19633         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
19634         immediate.
19635         * constraints.md (Pw, Px): New constraints.
19636         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
19637
19638 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
19639
19640         * config/i386/sse.md (fma4modesuffixf4): Removed.
19641         (ssemodesuffixf2s): Likewise.
19642         (ssemodesuffixf4): Likewise.
19643         (ssemodesuffixf2c): Likewise.
19644         (ssescalarmodesuffix2s): Likewise.
19645         (avxmodesuffixf2c): Likewise.
19646         (ssemodesuffix): New.
19647         (ssescalarmodesuffix): Likewise.
19648         Update patterns with ssemodesuffix and ssescalarmodesuffix.
19649
19650 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
19651
19652         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
19653
19654 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
19655
19656         * stor-layout.c (debug_rli): Remove unused local variables.
19657
19658 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
19659
19660         PR rtl-optimization/40900
19661         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
19662         original expression for later reuse.
19663         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
19664         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
19665
19666 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
19667
19668         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
19669         double_int_fits_in_uhwi_p): Implement as static inline.
19670         (double_int_xor): New inline function.
19671         (double_int_lrotate, double_int_rrotate, double_int_max,
19672         double_int_umax, double_int_smax, double_int_min, double_int_umin,
19673         double_int_smin): Declare.
19674         (lrotate_double, rrotate_double): Remove declaration.
19675         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
19676         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
19677         (double_int_lrotate, double_int_rrotate, double_int_max,
19678         double_int_umax, double_int_smax, double_int_min, double_int_umin,
19679         double_int_smin): New function.
19680         * fold-const.c (int_const_binop): Clean up, use double_int_*
19681         functions.
19682         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
19683         double_int_* and immed_double_int_const functions.
19684
19685 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
19686
19687         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
19688         * function.c (types_used_by_cur_var_decl): Likewise.
19689         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
19690
19691 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
19692
19693         * tree.h (record_layout_info): Change type of pending_statics field
19694         to a VEC.
19695         * stor-layout.c (start_record_layout): Store NULL into
19696         pending_statics.
19697         (debug_rli): Call debug_vec_tree instead of debug_tree.
19698         (place_field): Likewise.
19699         (finish_record_layout): Likewise.
19700
19701 2010-06-18  Alan Modra  <amodra@gmail.com>
19702
19703         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
19704
19705 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19706
19707         PR target/43740
19708         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
19709         for SET source operand from SET destination operand.
19710
19711 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
19712
19713         PR rtl-optimization/39871
19714         * reload1.c (init_eliminable_invariants): For flag_pic, disable
19715         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
19716         (function_invariant_p): Rule out a plus of frame or arg pointer with
19717         a SYMBOL_REF.
19718         * ira.c (find_reg_equiv_invariant_const): Likewise.
19719
19720 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
19721
19722         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
19723         print_operand_address and puts to output the operand for CONST.
19724
19725 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
19726
19727         PR debug/44572
19728         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
19729         hook.
19730
19731 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19732
19733         * v850-protos.h (print_operand): Delete.
19734         (print_operand_address): Delete.
19735         * v850.h (PRINT_OPERAND): Delete.
19736         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19737         (PRINT_OPERAND_ADDRESS): Delete.
19738         * v850.c (print_operand_address): Rename to...
19739         (v850_print_operand_address): ...this.  Make static. Call
19740         v850_print_operand.
19741         (print_operand): Rename to...
19742         (v850_print_operand): ...this.  Make static.  Call
19743         v850_print_operand_address.
19744         (v850_print_operand_punct_valid_p): New function.
19745         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19746         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19747
19748 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19749
19750         * config/sh/sh-protos.h (print_operand): Delete.
19751         (print_operand_address): Delete.
19752         * config/sh/sh.h (PRINT_OPERAND): Delete.
19753         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19754         (PRINT_OPERAND_ADDRESS): Delete.
19755         * config/sh/sh.c (sh_print_operand_address): Make static.
19756         (sh_print_operand): Make static.  Call sh_print_operand_address
19757         and sh_print_operand.
19758         (sh_print_operand_punct_valid_p): New function.
19759         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19760         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19761
19762 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19763
19764         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
19765         (mcore_print_operand_address): Delete.
19766         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
19767         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19768         (PRINT_OPERAND_ADDRESS): Delete.
19769         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
19770         (mcore_print_operand): Make static.
19771         (mcore_print_operand_punct_valid_p): New function.
19772         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
19773         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19774
19775 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19776
19777         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
19778         (print_operand_address): Delete.
19779         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
19780         (PRINT_OPERAND_ADDRESS): Delete.
19781         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
19782         static.
19783         (m68hc11_print_operand): Make static.
19784         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19785
19786 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19787
19788         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
19789         (m32r_print_operand_address): Delete.
19790         * config/m32r/m32r.h (m32r_punct_chars): Delete.
19791         (PRINT_OPERAND): Delete.
19792         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19793         (PRINT_OPERAND_ADDRESS): Delete.
19794         * config/m32r/m32r.c (m32r_punct_chars): Make static.
19795         (m32r_print_operand_address): Make static.
19796         (m32r_print_operand): Make static.
19797         (m32r_print_operand_punct_valid_p): New function.
19798         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19799         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19800
19801 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19802
19803         * config/iq2000/iq2000-protos.h (print_operand): Delete.
19804         (print_operand_address): Delete.
19805         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
19806         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19807         (PRINT_OPERAND_ADDRESS): Delete.
19808         (iq2000_print_operand_punct): Delete.
19809         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
19810         (iq2000_print_operand_address): Make static.
19811         (iq2000_print_operand): Make static.
19812         (iq2000_print_operand_punct_valid_p): New function.
19813         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19814         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19815
19816 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19817
19818         * config/frv/frv-protos.h (frv_print_operand): Delete.
19819         (frv_print_operand_address): Delete.
19820         * config/frv/frv.h (PRINT_OPERAND): Delete.
19821         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19822         (PRINT_OPERAND_ADDRESS): Delete.
19823         * config/frv/frv.c (frv_print_operand_address): Make static.
19824         (frv_print_operand): Make static.
19825         (frv_print_operand_punct_valid_p): New function.
19826         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19827         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19828
19829 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19830
19831         * tree.h (vec_member): Declare.
19832         * tree.c (vec_member): Define.
19833
19834 2010-06-17  Richard Guenther  <rguenther@suse.de>
19835
19836         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
19837         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
19838
19839 2010-06-17  Richard Guenther  <rguenther@suse.de>
19840
19841         * tree-inline.c (declare_return_variable): Remove bogus code.
19842
19843 2010-06-17  Richard Guenther  <rguenther@suse.de>
19844
19845         * gimplify.c (gimplify_bind_expr): Always promote complex
19846         and vector variables to registers if possible.
19847
19848 2010-06-17  Richard Guenther  <rguenther@suse.de>
19849
19850         * expr.c (get_inner_reference): Use double_int for bit_offset
19851         calculation.
19852
19853 2010-06-16  DJ Delorie  <dj@redhat.com>
19854
19855         * common.opt (-fstrict-volatile-bitfields): new.
19856         * doc/invoke.texi: Document it.
19857         * fold-const.c (optimize_bit_field_compare): For volatile
19858         bitfields, use the field's type to determine the mode, not the
19859         field's size.
19860         * expr.c (expand_assignment): Likewise.
19861         (get_inner_reference): Likewise.
19862         (expand_expr_real_1): Likewise.
19863         * expmed.c (store_fixed_bit_field): Likewise.
19864         (extract_bit_field_1): Likewise.
19865         (extract_fixed_bit_field): Likewise.
19866
19867 2010-06-16  Richard Guenther  <rguenther@suse.de>
19868
19869         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
19870
19871 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
19872
19873         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
19874         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
19875         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
19876         * debug.c: Likewise.
19877         * sdbout.c: Likewise.
19878         * vmsdbgout.c: Likewise.
19879         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
19880         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
19881         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
19882         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
19883         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
19884         * dwarf2out.c (dw_fde_struct): New fields
19885         dw_fde_vms_{end,begin}_prologue.
19886         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
19887         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
19888         (dwarf2out_vms_end_prologue): New function.
19889         (dwarf2out_vms_begin_epilogue): New function.
19890         (dw_val_struct): New value dw_val_class_vms_delta.
19891         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
19892         begin_epilogue for VMS.
19893         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
19894         new static functions.
19895         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
19896         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
19897         static functions.
19898         (print_die): New case dw_val_class_vms_delta.
19899         (attr_checksum): Likewise.
19900         (same_dw_val_p: Likewise.
19901         (size_of_die): Likewise.
19902         (value_format): Likewise.
19903         (output_die): Likewise.
19904         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
19905         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
19906         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
19907         dwarf2out_cfi_begin_epilogue
19908         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
19909
19910 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19911
19912         * config/cris/cris-protos.h (cris_print_operand): Delete.
19913         (cris_print_operand_address): Delete.
19914         * config/cris/cris.h (PRINT_OPERAND): Delete.
19915         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19916         (PRINT_OPERAND_ADDRESS): Delete.
19917         * config/cris/cris.c (cris_print_operand_address): Make static.
19918         (cris_print_operand): Make static.
19919         (cris_print_operand_punct_valid_p): New function.
19920         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19921         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19922
19923 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19924
19925         * config/arm/arm-protos.h (arm_print_operand): Delete.
19926         (arm_print_operand_address): Delete.
19927         * config/arm/arm.h (PRINT_OPERAND): Delete.
19928         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19929         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
19930         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
19931         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
19932         (arm_print_operand): Make static.
19933         (arm_print_operand_punct_valid_p): New function.
19934         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19935         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19936
19937 2010-06-16  Nick Clifton  <nickc@redhat.com>
19938
19939         * config/rx/constraints.md (NEGint4): New constraint.
19940         * config/rx/rx.md (attr cc): Add set_zsc.
19941         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
19942         initialised.
19943         (cmpsf): Likewise.
19944         (call_internal): Clobber the cc0 register.
19945         (call_value_internal): Likewise.
19946         (cstoresi4): Likewise.
19947         (movsieq): Likewise.
19948         (movsine): Likewise.
19949         (addsi3): Add alternative to handle small negative constants.
19950         (sunsi3): Likewise.
19951         (addsi3): Do not set the O bit in the cc0 register.
19952         (adddi3): Likewise.
19953         (subsi3): Likewise.
19954         (subdi3): Likewise.
19955         (andsi3): Reorder alternatives to prefer shorter forms.
19956         (mulsi3): Likewise.
19957         (iorsi3): Likewise.
19958         (negsi2): Note that the cc0 flags are set.
19959         (rotlsi3): Note that only the Z and S bits are set in cc0.
19960         (lshrsi3): Likewise.
19961         (ashlsi3): Likewise.
19962         (subsf3): Use %Q for the MEM operand.
19963         (fix_truncsfsi2): Likewise.
19964         (floatsisf2): Likewise.
19965         (bitset): Remove early clobber from destination.
19966         (bitset_in_memory): Likewise.
19967         (lrintsf2): Clobber the cc0 register.
19968         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19969         (rx_print_operand): Handle %N.
19970
19971 2010-06-16  Jan Hubicka  <jh@suse.cz>
19972
19973         * df-core.c (df_compact_blocks): Free problem_temps vector.
19974
19975 2010-06-16  Martin Jambor  <mjambor@suse.cz>
19976
19977         PR tree-optimization/43905
19978         * tree-sra.c: Include tree-inline.h.
19979         (create_abstract_origin): Removed.
19980         (modify_function): Version the call graph node instead of creating
19981         abstract origins and dealing with same_body aliases.
19982         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19983         function is versionable.
19984         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19985
19986 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
19987
19988         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19989         (CHOOSE_DYNAMIC_LINKER): Update.
19990
19991 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
19992
19993         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
19994         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19995         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19996         *prefetch_3dnow_rex.
19997
19998 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
19999
20000         * target.h (struct asm_out):Add declare_constant_name field.
20001         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20002         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
20003         * output.h (default_asm_declare_constant_name): Declare.
20004         (assemble_label): Update prototype.
20005         * varasm.c (assemble_constant_contents): Use
20006         targetm.asm_out.declare_constant_name target hook.
20007         (assemble_label): Add 'file' argument.
20008         (default_asm_declare_constant_name): New function.
20009         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
20010         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
20011         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
20012
20013         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
20014         * config/darwin.c (darwin_asm_declare_constant_name): New function.
20015         (machopic_output_indirection): Update assemble_label argument list.
20016         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
20017         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
20018
20019 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
20020
20021         PR middle-end/44391
20022         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
20023         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
20024
20025 2010-06-15  Richard Guenther  <rguenther@suse.de>
20026
20027         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
20028
20029 2010-06-15  Paul Brook  <paul@codesourcery.com>
20030
20031         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
20032         hard-float ABI.
20033
20034 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
20035
20036         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
20037         don't get a vector type for output.
20038
20039 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
20040
20041         PR fortran/44536
20042         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
20043         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
20044         (LANG_HOOKS_DECLS): Add it.
20045         * gimplify.c (omp_notice_variable): Call
20046         lang_hooks.decls.omp_report_decl.
20047
20048 2010-06-15  Martin Jambor  <mjambor@suse.cz>
20049
20050         PR lto/44464
20051         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
20052         on the newly dead SSA name.
20053
20054 2010-06-15  Alan Modra  <amodra@gmail.com>
20055
20056         * doc/invoke.texi: Add mcmodel to powerpc options.
20057         * configure.ac: Add HAVE_LD_LARGE_TOC test.
20058         * configure: Regenerate.
20059         * config.in: Regenerate.
20060         * config/rs6000/linux64.opt (mcmodel): New.
20061         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
20062         (TARGET_CMODEL, SET_CMODEL): Define.
20063         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
20064         select CMODEL_MEDIUM default.
20065         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
20066         (TARGET_CMODEL): Define default.
20067         * config/rs6000/rs6000.c (cmodel): New variable.
20068         (rs6000_explicit_options): Add cmodel field.
20069         (rs6000_handle_option): Handle -mcmodel.
20070         (create_TOC_reference): Add largetoc_reg param.  Generate high,
20071         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
20072         (rs6000_delegitimize_address): Recognise new toc reference rtl
20073         and minimal-toc rtl.
20074         (rs6000_legitimize_reload_address): Handle new toc references.
20075         (print_operand_address): Handle legitimate_constant_pool_address_p
20076         match before lo_sum.
20077         (rs6000_eliminate_indexed_memrefs): Tidy.
20078         (rs6000_emit_move): Tweak threshold for inlining constants.
20079         Keep rs6000_emit_allocate_stack large stack frame offsets
20080         loaded into r0 inline.
20081         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
20082         (tocrel_base, tocrel_offset): New variables.
20083         (toc_relative_expr_p): Set them here.
20084         (print_operand_address): Skip over any offset on constant pool address.
20085         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
20086         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
20087         (offsettable_ok_by_alignment): New function.
20088         (rs6000_emit_move): Address suitably aligned local symbol_refs
20089         relative to the toc pointer for -mcmodel=medium.
20090         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
20091         strict param.  Allow lo_sum version of addressing.  Verify reg
20092         used for -mminimal-toc and -mcmodel != small.  Update all callers.
20093         * config/rs6000/constraints.md: Update for above change.
20094         * config/rs6000/predicates.md: Likewise.
20095         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
20096         code.
20097         (tls_gd): Split for -mcmodel=medium/large.
20098         (tls_gd_high, tls_gd_low): New.
20099         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
20100         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
20101         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
20102         (largetoc_high, largetoc_low): New.
20103         (cmptf_internal2): Add clobber.
20104         * config/rs6000/rs6000-protos.h: Update.
20105
20106 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
20107
20108         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
20109         true if no prefetch is going to be generated for a given group.
20110         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
20111         estimate the prefetch_count.
20112         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
20113         prefetch count by considering the unroll_factor and prefetch_mod
20114         for is_loop_prefetching_profitable.
20115
20116 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
20117
20118         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
20119         anything if the argument is not a MEM.
20120
20121 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
20122
20123         PR debug/43650
20124         PR debug/44181
20125         PR debug/44247
20126         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
20127         debug stmts.
20128         (canonicalize_loop_ivs): Likewise.
20129
20130 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
20131
20132         PR debug/43656
20133         * haifa-sched.c (setup_insn_reg_pressure_info,
20134         update_register_pressure): Reject debug insns.
20135         (ready_sort): Don't setup reg pressure for debug insns.
20136         (schedule_insn): Don't update reg pressure for debug insns.
20137
20138 2010-06-14  Richard Guenther  <rguenther@suse.de>
20139
20140         * lto-streamer.c (cached_bp): Remove.
20141         (bitpack_delete): Likewise.
20142         (bitpack_create): Likewise.
20143         (bp_get_next_word): Likewise.
20144         (bp_pack_value, bp_unpack_value): Move ...
20145         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
20146         Re-implement.
20147         (struct bitpack_d): Likewise.
20148         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
20149         New inline functions.
20150         * lto-streamer-out.c (lto_output_bitpack): Remove.
20151         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
20152         (pack_value_fields): Adjust.
20153         (lto_write_tree): Likewise.
20154         (output_gimple_stmt): Likewise.
20155         (output_function): Likewise.
20156         * lto-streamer-in.c (input_gimple_stmt): Adjust.
20157         (input_function): Likewise.
20158         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
20159         (lto_input_bitpack): Remove.
20160         (lto_materialize_tree): Adjust.
20161         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
20162         * lto-cgraph.c (lto_output_edge): Adjust.
20163         (lto_output_node): Likewise.
20164         (lto_output_varpool_node): Likewise.
20165         (lto_output_ref): Likewise.
20166         (input_node): Likewise.
20167         (input_varpool_node): Likewise.
20168         (input_ref): Likewise.
20169         (input_edge): Likewise.
20170         (output_node_opt_summary): Likewise.
20171         (input_node_opt_summary): Likewise.
20172         * ipa-pure-const.c (pure_const_write_summary): Likewise.
20173         (pure_const_read_summary): Likewise.
20174         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
20175         (ipa_read_indirect_edge_info): Likewise.
20176         (ipa_write_node_info): Likewise.
20177         (ipa_read_node_info): Likewise.
20178
20179 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
20180
20181         PR target/44534
20182         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
20183         (vec_extract_lo_v16hi): Likewise.
20184         (vec_extract_lo_v32qi): Likewise.
20185
20186 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
20187
20188         PR bootstrap/44426
20189         * tree.h (build_call_expr): Don't define as vararg macro, instead
20190         add a prototype.
20191         * builtins.c (build_call_nofold): Remove.
20192         (expand_builtin_int_roundingfn, expand_builtin_pow,
20193         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
20194         expand_builtin_memset_args, expand_builtin_strcmp,
20195         expand_builtin_strncmp, expand_builtin_memory_chk): Use
20196         build_call_nofold_loc instead of build_call_nofold.
20197         (build_call_expr): New function.
20198
20199         PR tree-optimization/44508
20200         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
20201         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
20202         don't eliminate trivially dead stmts.
20203         * tree-vrp.c (vrp_finalize): Pass false as last argument
20204         to substitute_and_fold.
20205         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
20206         to substitute_and_fold.
20207         * tree-ssa-ccp.c (ccp_finalize): Likewise.
20208
20209         PR bootstrap/44509
20210         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
20211
20212 2010-06-14  Ira Rosen  <irar@il.ibm.com>
20213
20214         PR tree-optimization/44507
20215         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
20216         to build initial vector for BIT_AND_EXPR.
20217         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
20218
20219 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
20220
20221         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
20222         adjust z10prop set_attr.
20223
20224 2010-06-13  Jan Hubicka  <jh@suse.cz>
20225
20226         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
20227         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
20228         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
20229         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
20230         datastructure checks into checking asserts.
20231         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
20232         * tree-ssa-sccvn.c (VN_INFO): Likewise.
20233         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
20234         df_ref_create_structure): Likewise.
20235         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
20236         pool_free): Use gcc_checking_assert.
20237         * alias.c (get_alias_set): Likewise.
20238         * var-tracking.c (variable_htab_free, shared_hash_copy,
20239         canonicalize_values_mark, variable_merge_over_cur): Likewise.
20240         * lto-streamer.c (bp_unpack_value): Likewise.
20241
20242 2010-06-13  Richard Guenther  <rguenther@suse.de>
20243
20244         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
20245         Do not stream but initialize TYPE_CANONICAL to NULL.
20246         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
20247         * gimple.c (gimple_types_compatible_p): Disregard
20248         TYPE_STRUCTURAL_EQUALITY_P.
20249         (gimple_register_type): Use TYPE_CANONICAL as cache.
20250         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
20251         before registering common types.
20252         * config/i386/i386.c (ix86_function_arg_boundary): Do not
20253         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
20254         * tree.h (TYPE_CANONICAL): Clarify documentation.
20255
20256 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
20257
20258         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
20259         LIBCALL_VALUE): Remove macros.
20260         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
20261         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20262         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20263         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
20264         (ia64_function_value): Make static. Handle receiving the function
20265         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
20266
20267 2010-06-12  Jan Hubicka  <jh@suse.cz>
20268
20269         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
20270         at correct place.
20271
20272 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
20273
20274         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
20275
20276 2010-06-12  Jan Hubicka  <jh@suse.cz>
20277
20278         * df-core.c (df_clear_bb_info): New function.
20279         (df_set_blocks): bb_info is always allocated.
20280         (df_get_bb_info): Use block_info_elt_size.
20281         (df_set_bb_info): Likewise.
20282         (df_compact_blocks): Update for new block_info.
20283         (grow_bb_info): New function.
20284         * df-problems.c (df_grow_bb_info): Move to df-core.c
20285         (df_rd_set_bb_info): Remove.
20286         (df_rd_free_bb_info): Do not free block pool.
20287         (df_rd_alloc): Do not create pool, use check for
20288         obstack presence instead of NULL pointer for new blocks.
20289         (df_rd_free): DO not free alloc pool; clear block_info.
20290         (problem_RD): Add size of block info structure.
20291         (df_lr_set_bb_info): Remove.
20292         (df_lr_free_bb_info): Do not free block pool.
20293         (df_lr_alloc): Do not create pool, use check for
20294         obstack presence instead of NULL pointer for new blocks.
20295         (df_lr_free): DO not free alloc pool; clear block_info.
20296         (problem_LR): Add size of block info structure.
20297         (df_live_set_bb_info): Remove.
20298         (df_live_free_bb_info): Do not free block pool.
20299         (df_live_alloc): Do not create pool, use check for
20300         obstack presence instead of NULL pointer for new blocks.
20301         (df_live_free): DO not free alloc pool; clear block_info.
20302         (problem_LIVE): Add size of block info structure.
20303         (problem_CHAIN): Add size of block info structure.
20304         (df_byte_lr_set_bb_info): Remove.
20305         (df_byte_lr_free_bb_info): Do not free block pool.
20306         (df_byte_lr_alloc): Do not create pool, use check for
20307         obstack presence instead of NULL pointer for new blocks.
20308         (df_byte_lr_free): DO not free alloc pool; clear block_info.
20309         (problem_BYTE_LR): Add size of block info structure.
20310         (problem_NOTE): Add size of block info structure.
20311         (df_byte_MD_set_bb_info): Remove.
20312         (df_byte_MD_free_bb_info): Do not free block pool.
20313         (df_byte_MD_alloc): Do not create pool, use check for
20314         obstack presence instead of NULL pointer for new blocks.
20315         (df_byte_MD_free): DO not free alloc pool; clear block_info.
20316         (problem_BD): Add size of block info structure.
20317         * df-scan.c (df_scan_free_internal): Free block pool.
20318         (df_scan_set_bb_info): Remove.
20319         (df_scan_free_bb_info): Check for artificial_defs instead
20320         of bb_info being non-NULL.
20321         (df_scan_alloc): DO not create df_scan_block pool.
20322         (problem_SCAN): Set size of block info.
20323         (df_bb_refs_record): Do not allocate bb_info.
20324         * df.h (df_problem): Add block_info_elt_size.
20325         (struct dataflow): Change block_info to void *.
20326         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
20327         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
20328         in-line structures.
20329
20330 2010-06-12  Jan Hubicka  <jh@suse.cz>
20331
20332         PR tree-optimize/44485
20333         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
20334         containing use of return value of noreturn function.
20335
20336 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
20337
20338         * targhooks.c (default_function_value): Don't use
20339         FUNCTION_OUTGOING_VALUE.
20340         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
20341         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
20342
20343 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
20344
20345         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
20346         Add crtfastmath.o to extra_parts.
20347         * config/mips/crtfastmath.c: New.
20348         * config/mips/linux.h (ENDFILE_SPEC): New.
20349
20350 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
20351
20352         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
20353         old_type in parameter.
20354         (gcc_type_for_value): Update call to gcc_type_for_interval.
20355         (compute_type_for_level_1): Renamed compute_type_for_level.
20356         Update call to gcc_type_for_interval.
20357
20358 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
20359
20360         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
20361         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
20362
20363 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
20364
20365         * opts-common.c: Include options.h.
20366         (integral_argument): Move from opts.c.
20367         (decode_cmdline_option): New.  Based on read_cmdline_option.
20368         * opts.c (integral_argument): Move to opts-common.c.
20369         (read_cmdline_option): Move most contents to
20370         decode_cmdline_option.  Use %qs in diagnostics.
20371         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
20372         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
20373         decode_cmdline_option): New.
20374
20375 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20376
20377         PR target/44481
20378         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
20379         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
20380         (partiysi2_cmp): Ditto.
20381         (*partiyhi2_cmp): Ditto.
20382         (*parityqi2_cmp): Remove.
20383
20384 2010-06-11  Jan Hubicka  <jh@suse.cz>
20385
20386         * bitmap.h (bmp_iter_next_bit): New.
20387         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
20388
20389 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
20390             Eric Botcazou  <ebotcazou@adacore.com>
20391
20392         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
20393         computed cost.
20394
20395 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20396
20397         * config/i386/i386.md (unspec): New define_c_enum.
20398         (unspecv): Ditto.
20399
20400 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
20401
20402         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
20403
20404 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
20405
20406         PR middle-end/44483
20407         * tree-if-conv.c (bb_predicate_s): New struct.
20408         (bb_predicate_p): New.
20409         (bb_has_predicate): New.
20410         (bb_predicate): New.
20411         (set_bb_predicate): New.
20412         (bb_predicate_gimplified_stmts): New.
20413         (set_bb_predicate_gimplified_stmts): New.
20414         (add_bb_predicate_gimplified_stmts): New.
20415         (init_bb_predicate): New.
20416         (free_bb_predicate): New.
20417         (is_predicated): Use bb_predicate.
20418         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
20419         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
20420         before processing their successors.
20421         (clean_predicate_lists): Removed.
20422         (find_phi_replacement_condition): Use bb_predicate.
20423         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
20424         computations.
20425         (insert_gimplified_predicates): New.
20426         (combine_blocks): Call insert_gimplified_predicates.
20427         (tree_if_conversion): Call free_bb_predicate instead of
20428         clean_predicate_lists.
20429
20430 2010-10-11  Paul Brook  <paul@codesourcery.com>
20431
20432         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
20433         * config/arm/arm.c (all_architectures): Change v7e-m default to
20434         cortexm4.
20435         * config/arm/arm-cores.def: Add cortex-m4.
20436         * config/arm/arm-tune.md: Regenerate.
20437
20438 2010-06-11  Jan Hubicka  <jh@suse.cz>
20439
20440         * ipa-pure-const.c (special_builtlin_state): New function.
20441         (check_call): Use it instead of special casign BUILT_IN_RETURN.
20442         (propagate_pure_const): Use it.
20443
20444 2010-06-11  Jan Hubicka  <jh@suse.cz>
20445
20446         * df-problems.c (df_live_scratch): Convert to bitmap_head.
20447         (df_live_alloc): Initialize df_live_scratch when initializing
20448         problem_data.
20449         (df_live_transfer_function): Update uses of df_live_scratch.
20450         (df_live_free): Free problem_data; clear df_live_scratch before
20451         releasing the obstack.
20452         (df_md_free): Free problem data.
20453
20454 2010-06-11  Jan Hubicka  <jh@suse.cz>
20455
20456         * doc/invoke.texi (Wsuggest-attribute): Document.
20457         (Wmissing-noreturn): Remove.
20458         * ipa-pure-const.c (warn_function_noreturn): New function.
20459         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
20460         warn_missing_noreturn.
20461         * common.opt (Wsuggest-attribute=noreturn): New.
20462         * tree-flow.h (warn_function_noreturn): Declare.
20463         * tree-cfg.c (execute_warn_function_noreturn): Use
20464         warn_function_noreturn.
20465         (gate_warn_function_noreturn): New.
20466         (pass_warn_function_noreturn): Update.
20467
20468 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20469
20470         * c-typeck.c (handle_warn_cast_qual): Add loc
20471         parameter. Improve warning message.
20472         (build_c_cast): Pass location to handle_warn_cast_qual.
20473
20474 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20475
20476         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
20477         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
20478         insn mnemonic.
20479         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
20480
20481 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
20482
20483         Fix bootstap on mips
20484         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
20485         be naming typedefs.
20486
20487 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
20488
20489         * system.h (helper_const_non_const_cast): New inline for
20490         gcc version <= 4.0.
20491         (CONST_CAST2): For gcc version <= 4.0 use
20492         new helper to do const/non-const casting.
20493
20494 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20495
20496         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
20497         * Makefile.in (OBJS-common): Include insn-enums.o.
20498         (insn-enums.o): New rule.
20499         (simple_generated_c): Add insn-enums.c.
20500         (build/genenums.o): New rule.
20501         (genprogmd): Add "enums".
20502         * genconstants.c (print_enum_type): Declare a C string array
20503         for each enum.
20504         * genenums.c: New file.
20505         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
20506         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
20507         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
20508
20509 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20510
20511         * doc/md.texi (define_enum_attr): Document.
20512         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
20513         * read-md.h (lookup_enum_type): Declare.
20514         * read-md.c (lookup_enum_type): New function.
20515         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
20516         * genattrtab.c (attr_desc): Add an enum_name field.
20517         (evaluate_eq_attr): Take the associated attribute as argument.
20518         Get the enum prefix from the enum_name field, if defined.
20519         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
20520         (simplify_test_exp): Pass attr to evaluate_eq_attr.
20521         (add_attr_value): New function, split out from...
20522         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
20523         (write_test_expr): Pass attr to evaluate_eq_attr.
20524         (write_attr_get): Use the enum_name as the enum tag, if defined.
20525         (write_attr_valueq): Use the enum_name as a prefix, if defined.
20526         (find_attr): Initialize enum_name.
20527         (main): Handle DEFINE_ENUM_ATTR.
20528         * gensupport.c (process_rtx): Likewise.
20529         * config/mips/mips.h (mips_tune_attr): Delete.
20530         * config/mips/mips.md (cpu): Use define_attr_enum.
20531
20532 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20533
20534         * doc/md.texi (define_c_enum, define_enum): Document.
20535         * read-md.h (md_constant): Add a parent_enum field.
20536         (enum_value, enum_type): New structures.
20537         (upcase_string, traverse_enum_types): Declare.
20538         * read-md.c (enum_types): New variable.
20539         (upcase_string, add_constant): New functions.
20540         (handle_constants): Don't create the hash table here.
20541         Use add_constant.
20542         (traverse_md_constants): Don't check for a null md_constants.
20543         (decimal_string, handle_enum, traverse_enum_types): New functions.
20544         (read_md_files): Initialize md_constants and md_enums.
20545         * genconstants.c (print_md_constant): Ignore info argument.
20546         Only print constants that belong to no enum.
20547         (print_enum_type): New function.
20548         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
20549         for each defined enum type.
20550         * config/mips/mips.md (processor): New define_enum.
20551         (unspec): New define_c_enum.
20552         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
20553         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
20554         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
20555         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
20556         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
20557         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
20558         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
20559         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
20560         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
20561         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
20562         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
20563         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
20564         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
20565         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
20566         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
20567         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
20568         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
20569         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
20570         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
20571         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
20572         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
20573         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
20574         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
20575         (UNSPEC_RDDSP): Move to mips-dsp.md.
20576         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
20577         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
20578         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
20579         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
20580         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
20581         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
20582         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
20583         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
20584         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
20585         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
20586         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
20587         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
20588         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
20589         Moved to mips-dspr2.md.
20590         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
20591         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
20592         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
20593         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
20594         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
20595         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
20596         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
20597         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
20598         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
20599         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
20600         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
20601         UNSPEC_LOONGSON_PSADBH)
20602         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
20603         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
20604         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
20605         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
20606         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
20607         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
20608         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
20609         (cpu): Update comment.
20610         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
20611         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
20612         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
20613         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
20614         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
20615         UNSPEC_LOONGSON_PCMPEQ)
20616         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
20617         UNSPEC_LOONGSON_PINSR_0)
20618         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
20619         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
20620         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
20621         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
20622         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
20623         UNSPEC_LOONGSON_PSADBH)
20624         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
20625         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
20626         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
20627         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
20628         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
20629         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
20630         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
20631         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
20632         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
20633         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
20634         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
20635         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
20636         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
20637         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
20638         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
20639         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
20640         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
20641         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
20642         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
20643         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
20644         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
20645         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
20646         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
20647         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
20648         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
20649         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
20650         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
20651         (UNSPEC_RDDSP): Moved from mips.md.
20652         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
20653         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
20654         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
20655         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
20656         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
20657         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
20658         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
20659         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
20660         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
20661         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
20662         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
20663         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
20664         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
20665         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
20666         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
20667         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
20668         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
20669         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
20670         (UNSPEC_SCC): Moved from mips.md.
20671         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
20672         "processor_type" to "processor".
20673         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
20674         * config/mips/mips.h (processor_type): Delete.
20675         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
20676         "processor_type" to "processor".
20677
20678 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20679
20680         * configure.ac (tm_include_list): Add insn-constants.h.
20681         * configure: Regenerate.
20682         * Makefile.in (GTM_H): Move insn-constants.h here from...
20683         (TM_H): ...here.
20684         * mkconfig.sh: Remove special handling for insn-constants.h.
20685
20686 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20687
20688         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
20689         (BUILD_MD): ...this new variable.
20690         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
20691         that include the old contents of simple_generated_h and
20692         simple_generated_c.
20693         (simple_generated_h, simple_generated_c): Include them.  Add
20694         insn-constants.h.
20695         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
20696         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
20697         Remove these dependencies from the main rule and include
20698         insn-conditions.md in the command line only if it appears
20699         in the dependency list.
20700         (insn-constants.h, s-constants): Delete.
20701         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
20702         or gensupport.h.
20703         (build/genmddeps.o): Likewise.
20704         (genprogrtl): New variable that contains everything from genprogmd
20705         except mddeps and constants.
20706         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
20707         depend on $(BUILD_MD)
20708         (genprog): New variable.  Make these programs depend on
20709         $(BUILD_ERRORS).
20710         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
20711         (main): Use read_md_files instead of init_rtx_reader_args.
20712         * genconstants.c: As for genmddeps.c.
20713         * read-md.h (read_skip_construct): Declare.
20714         * read-md.c (read_skip_construct): New function.
20715         (handle_file): Allow a null handle_directive, skipping the
20716         construct if so.
20717         (parse_include): Update the comment accordingly.
20718
20719 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20720
20721         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
20722         * genmddeps.c: Include read-md.h.
20723         (main): Call init_rtx_reader_args instead of init_md_reader_args.
20724         * genattr.c (main): Likewise.
20725         * genattrtab.c (main): Likewise.
20726         * genautomata.c (main): Likewise.
20727         * gencodes.c (main): Likewise.
20728         * genconditions.c (main): Likewise.
20729         * genconfig.c (main): Likewise.
20730         * genconstants.c (main): Likewise.
20731         * genemit.c (main): Likewise.
20732         * genextract.c (main): Likewise.
20733         * genflags.c (main): Likewise.
20734         * genopinit.c (main): Likewise.
20735         * genoutput.c (main): Likewise.
20736         * genpeep.c (main): Likewise.
20737         * genrecog.c (main): Likewise.
20738         * genpreds.c (main): Likewise.
20739         * gensupport.h (in_fname): Move to read-md.h.
20740         (init_md_reader_args_cb): Rename to...
20741         (init_rtx_reader_args_cb): ...this and return a bool.
20742         (init_md_reader_args): Rename to...
20743         (init_rtx_reader_args): ...this and return a bool.
20744         (include_callback): Move to read-md.h.
20745         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
20746         (file_name_list, first_dir_md_include): Move to read-md.c
20747         (first_bracket_include): Delete unused variable.
20748         (last_dir_md_include): Move to read-md.c.
20749         (process_include): Delete, moving code to read-md.c:handle_include.
20750         (process_rtx): Don't handle INCLUDE.
20751         (save_string): Delete.
20752         (rtx_handle_directive): New function.
20753         (init_md_reader_args_cb): Rename to...
20754         (init_rtx_reader_args_cb): ...this and return a boolean success value.
20755         Use read_md_args.
20756         (init_md_reader_args): Rename to...
20757         (init_rtx_reader_args): ...this and return a boolean success value.
20758         * rtl.def (INCLUDE): Delete.
20759         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
20760         argument.
20761         * read-rtl.c (read_conditions): Don't gobble ')' here.
20762         (read_mapping): Likewise.
20763         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
20764         Handle top-level non-rtx constructs here rather than in read_rtx_1.
20765         Store the whole queue in *X.  Remove call to init_md_reader.
20766         (read_rtx_1): Rename to...
20767         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
20768         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
20769         here.
20770         (read_nested_rtx): New function.  Handle (nil) here rather than
20771         in read_rtx_code.
20772         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
20773         gobble ')' here.
20774         * read-md.h (directive_handler_t): New type.
20775         (in_fname, include_callback): Moved from read-md.h.
20776         (read_constants, init_md_reader): Delete.
20777         (read_md_files): Declare.
20778         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
20779         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
20780         from gensupport.c.
20781         (read_constants): Rename to...
20782         (handle_constants): ...this.  Don't gobble ')' here.
20783         (handle_include, handle_file, handle_toplevel_file)
20784         (parse_include): New functions, mostly taken from gensupport.c.
20785         (init_md_reader): Subsume into...
20786         (read_md_files): ...this new function.
20787
20788 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20789
20790         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
20791         (unread_char): Decrement read_md_lineno after putting back '\n'.
20792         * read-md.c (fatal_with_file_and_line): Push back any characters
20793         that we decide not to add to the context.
20794         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
20795         fatal_expected_char in cases where '/' ends a line (for example).
20796         (read_name): Don't increment read_md_lineno here.
20797         (read_escape): Likewise.
20798         (read_quoted_string): Likewise.
20799         (read_braced_string): Likewise.
20800
20801 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20802
20803         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
20804         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
20805         * genconstants.c: Include read-md.h.
20806         * read-rtl.c (md_constants): Move to read-md.c.
20807         (md_name): Move to read-md.h.
20808         (initialize_iterators): Use leading_string_hash instead of def_hash
20809         and leading_string_eq_p instead of def_name_eq_p.
20810         (read_name): Move to read-md.c.
20811         (def_hash, def_name_eq_p): Delete.
20812         (read_constants, traverse_md_constants): Move to read-md.c.
20813         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
20814         * read-md.h: Include hashtab.h.
20815         (md_name): Moved from read-rtl.c.
20816         (md_constant): Moved from read-md.h.
20817         (leading_string_hash, leading_string_eq_p, read_name)
20818         (read_constants, traverse_md_constants): Declare.
20819         * read-md.c (md_constants): Moved from read-rtl.c.
20820         (leading_string_hash, leading_string_eq_p): New functions.
20821         (read_name, read_constants, traverse_md_constants): Moved from
20822         read-rtl.c.
20823
20824 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20825
20826         * read-rtl.c (md_name): New structure.
20827         (read_name): Take an md_name instead of a buffer pointer.
20828         Use the "string" field instead of strcpy when expanding constants.
20829         (read_constants): Remove the tmp_char argument.  Update the calls
20830         to read_name, using two local name buffers instead of the tmp_char
20831         argument.  Merge the constant-creation code.
20832         (read_conditions): Remove the tmp_char argument.  Update the calls
20833         to read_name, using a local name buffer instead of the tmp_char
20834         argument.
20835         (read_mapping): Replace tmp_char variable with a local name buffer.
20836         Update the calls to read_name.
20837         (read_rtx_1): Likewise.  Update the calls to read_constants and
20838         read_conditions.
20839
20840 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20841
20842         * Makefile.in (build/read-md.o): Depend on errors.h.
20843         * read-md.h (error_with_line): Declare.
20844         * read-md.c: Include errors.h.
20845         (message_with_line_1): New function, extracted from...
20846         (message_with_line): ...here.
20847         (error_with_line): New function.
20848         * genattrtab.c: If a call to message_with_line is followed by
20849         "have_error = 1;", replace both statements with a call to
20850         error_with_line.
20851         * genoutput.c: Likewise.
20852         * genpreds.c: Likewise.
20853         * genrecog.c: If a call to message_with_line is followed by
20854         "error_count++;", replace both statements with a call to
20855         error_with_line.
20856         (errorcount): Delete.
20857         (main): Don't check it.
20858         * gensupport.c: If a call to message_with_line is followed by
20859         "errors = 1;", replace both statements with a call to error_with_line.
20860         (errors): Delete.
20861         (process_define_cond_exec): Check have_error instead of errors.
20862         (init_md_reader_args_cb): Likewise.  Don't set errors.
20863
20864 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20865
20866         * read-md.h (read_md_file): Declare.
20867         (read_char, unread_char): New functions.
20868         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20869         (read_quoted_string, read_string): Remove FILE * argument.
20870         * read-md.c (read_md_file): New variable.
20871         (read_md_filename, read_md_lineno): Update comments and remove
20872         unnecessary initialization.
20873         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20874         (read_escape, read_quoted_string, read_braced_string, read_string):
20875         Remove FILE * argument.  Update calls accordingly, using read_char
20876         and unread_char instead of getc and ungetc.
20877         * rtl.h (read_rtx): Remove FILE * argument.
20878         * read-rtl.c (iterator_group): Remove FILE * argument from
20879         "find_builtin".
20880         (iterator_traverse_data): Remove "infile" field.
20881         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
20882         (add_mapping, read_name, read_constants, read_conditions)
20883         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
20884         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
20885         Remove file arguments from all calls, using read_char and unread_char
20886         instead of getc and ungetc.
20887         * gensupport.c (process_include): Preserve read_md_file around
20888         the include.  Set read_md_file to the handle of the included file.
20889         Update call to read_rtx.
20890         (init_md_reader_args_cb): Set read_md_file to the handle of the file
20891         and remove local FILE *.  Update calls to read_rtx.
20892
20893 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20894
20895         * read-md.h (read_rtx_lineno): Rename to...
20896         (read_md_lineno): ...this.
20897         (read_rtx_filename): Rename to...
20898         (read_md_filename): ...this.
20899         (copy_rtx_ptr_loc): Rename to...
20900         (copy_md_ptr_loc): ...this.
20901         (print_rtx_ptr_loc): Rename to...
20902         (print_md_ptr_loc): ...this.
20903         * read-md.c: Likewise.  Update references after renaming.
20904         (string_obstack): Replace RTL with MD in comment.
20905         (set_rtx_ptr_loc): Rename to...
20906         (set_md_ptr_loc): ...this.
20907         (get_rtx_ptr_loc): Rename to...
20908         (get_md_ptr_loc): ...this.
20909         * genconditions.c: Update references after renaming.
20910         * genemit.c: Likewise.
20911         * genoutput.c: Likewise.
20912         * genpreds.c: Likewise.
20913         * gensupport.c: Likewise.
20914         * read-rtl.c: Likewise.
20915
20916 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20917
20918         * Makefile.in (READ_MD_H): New variable.
20919         (BUILD_RTL): Add build/read-md.o.
20920         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
20921         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
20922         (build/genattrtab.o, build/genconditions.o build/genemit.o)
20923         (build/genextract.o, build/genflags.o, build/genoutput.o)
20924         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
20925         (build/read-md.o): New rule.
20926         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
20927         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
20928         * coretypes.h: ...here.
20929         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
20930         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
20931         * genattr.c: Include read-md.h.
20932         * genattrtab.c: Likewise.
20933         * genconditions.c: Likewise.
20934         * genemit.c: Likewise.
20935         * genextract.c: Likewise.
20936         * genflags.c: Likewise.
20937         * genoutput.c: Likewise.
20938         * genpreds.c: Likewise.
20939         * genrecog.c: Likewise.
20940         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
20941         (join_c_conditions, print_c_condition, read_rtx_filename)
20942         (read_rtx_lineno): Move to read-md.h.
20943         * read-rtl.c: Include read-md.h.
20944         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
20945         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
20946         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
20947         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
20948         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
20949         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
20950         (read_braced_string, read_string): Move to read-md.c.
20951         (read_rtx): Move some initialization to init_md_reader and call
20952         init_md_reader here.
20953         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
20954         Move to read-md.h.
20955         * gensupport.c: Include read-md.h.
20956         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20957         * read-md.h, read-md.c: New files.
20958
20959 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
20960
20961         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20962         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20963         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20964         * config/moxie/moxie.c (moxie_function_value): Make static.
20965         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20966         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20967
20968 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20969
20970         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20971         * dbgcnt.def (tree_sra): New counter.
20972         * tree-sra.c: Include dbgcnt.h.
20973         (gate_intra_sra): Check tree_sra debug counter.
20974
20975 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20976
20977         PR tree-optimization/44258
20978         * tree-sra.c (build_access_subtree): Return false iff there is a
20979         partial overlap.
20980         (build_access_trees): Likewise.
20981         (analyze_all_variable_accesses): Disqualify candidates if
20982         build_access_trees returns true for them.
20983
20984 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
20985
20986         PR debug/41371
20987         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20988         tail-recurse into canonical node.  Fast-forward over
20989         non-canonical VALUEs.
20990
20991 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
20992
20993         PR boostrap/44470
20994         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20995         (*addsi_1_zext) <TYPE_LEA>: Likewise.
20996         (add lea splitter): Likewise.
20997         (add_zext lea splitter): Likewise.
20998
20999 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
21000
21001         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
21002
21003 2010-06-10  Jan Hubicka  <jh@suse.cz>
21004
21005         * df-problems.c (df_live_problem_data): Add live_bitmaps.
21006         (df_live_alloc): Initialize problem data and live_osbtacks.
21007         (df_live_finalize): Remove obstack, problem data; do not
21008         clear all bitmaps.
21009         (df_live_top_dump, df_live_bottom_dump): Do not dump old
21010         data when not allocated.
21011         (df_live_verify_solution_start): Do not allocate problem data.
21012         (df_live_verify_solution_end): Check if out is allocated.
21013         (struct df_md_problem_data): New structure.
21014         (df_md_alloc): Allocate problem data.
21015         (df_md_free): Free problem data; do not clear bitmaps.
21016
21017 2010-06-10  Jan Beulich  <jbeulich@novell.com>
21018
21019         PR bootstrap/37304
21020         * configure.ac: Replace $() with ${} when intending to expand
21021         variables rather than invoking commands.
21022         * configure: Re-generate.
21023
21024 2010-06-10  Jan Hubicka  <jh@suse.cz>
21025
21026         PR rtl-optimization/44460
21027         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
21028         TYPE_NEEDS_CONSTRUCTING sanity check.
21029
21030 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
21031
21032         * doc/include/fdl.texi: Move to GFDL version 1.3.
21033
21034         * doc/cpp.texi: Move to GFDL version 1.3.
21035         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
21036         * doc/gccint.texi: Move to GFDL version 1.3.
21037         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
21038         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
21039         * doc/invoke.texi: Move to GFDL version 1.3.
21040
21041 2010-06-09  Jan Hubicka  <jh@suse.cz>
21042
21043         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
21044         Break out from ...
21045         (propagate) ... here; swap the order.
21046
21047 2010-06-09  Jan Hubicka  <jh@suse.cz>
21048
21049         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
21050         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
21051         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
21052         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
21053
21054 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
21055
21056         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
21057         Do not the gather memory reference in the outer loop if the step
21058         is not a constant.
21059
21060 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
21061
21062         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
21063         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
21064         8 to 4.  Minor change of the related comments.
21065
21066 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21067
21068         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
21069         the scev analysis when the variable is not used outside the loop
21070         in a close phi node: call compute_overall_effect_of_inner_loop.
21071
21072 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21073
21074         * graphite-sese-to-poly.c (single_pred_cond): Renamed
21075         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
21076         (build_sese_conditions_before): Renamed call to single_pred_cond.
21077         (build_sese_conditions_after): Same.
21078
21079 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
21080
21081         * graphite-poly.h: Fix comments and indentation.
21082         * graphite-sese-to-poly.c: Same.
21083         (build_sese_conditions_before): Compute stmt and gbb only when needed.
21084         * tree-chrec.c: Fix comments and indentation.
21085         (tree-ssa-loop-niter.c): Same.
21086
21087 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
21088
21089         PR rtl-optimization/42461
21090         * dce.c (deletable_insn_p): Return true for const or pure calls again.
21091         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
21092
21093 2010-06-09  Jan Hubicka  <jh@suse.cz>
21094
21095         * bitmap.c (bitmap_and): Walk array forward.
21096         (bitmap_and_compl_into): Likewise.
21097         (bitmap_xor): Likewise.
21098         (bitmap_xor_into):  Likewise.
21099         (bitmap_equal_p): Likewise.
21100         (bitmap_intersect_p): Likewise.
21101         (bitmap_intersect_compl_p): Likewise.
21102         (bitmap_ior_and_into): Likewise.
21103         (bitmap_elt_copy): Likewise.
21104         (bitmap_and_compl): Likewise.
21105         (bitmap_elt_ior): Likewise.
21106
21107 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
21108
21109         * opts-common.c (prune_options): Ensure replacement argv array
21110         is correctly terminated by a NULL entry.
21111
21112 2010-06-09  Jan Hubicka  <jh@suse.cz>
21113
21114         * cgraph.h (varpool_first_static_initializer,
21115         varpool_next_static_initializer): Make checking only when
21116         checking enabled.
21117         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
21118         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
21119         gcc_assert to gcc_checking_assert.
21120         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
21121         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
21122         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
21123         op_iter_init_phiuse, op_iter_init_phidef,
21124         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
21125         gcc_checking_assert.
21126         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
21127         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
21128         partition_is_global, live_on_entry, live_on_exit,
21129         live_merge_and_clear): Likewise.
21130         * system.h (gcc_checking_assert): New macro.
21131         * gimple.h (set_bb_seq): Use gcc_checking_assert.
21132
21133 2010-06-09  Jason Merrill  <jason@redhat.com>
21134
21135         * Makefile.in (TAGS): Collect tags info from c-family.
21136
21137 2010-06-09  Jan Hubicka  <jh@suse.cz>
21138
21139         * gimple.h (gcc_gimple_checking_assert): New macro.
21140         (gimple_set_def_ops, gimple_set_use_ops,
21141         gimple_set_vuse, gimple_set_vdef,
21142         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
21143         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
21144         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
21145         gimple_asm_output_op, gimple_asm_output_op_ptr,
21146         gimple_asm_set_output_op, gimple_asm_clobber_op,
21147         gimple_asm_set_clobber_op, gimple_asm_label_op,
21148         gimple_asm_set_label_op, gimple_try_set_kind,
21149         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
21150         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
21151         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
21152         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
21153         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
21154         gimple_omp_for_set_initial, gimple_omp_for_final,
21155         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
21156         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
21157         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
21158         conditional with ENABLE_GIMPLE_CHECKING.
21159         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
21160
21161 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
21162
21163         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
21164         (get_computation_cost_at): Use it.
21165         (determine_use_iv_cost_condition): Likewise.
21166         (determine_iv_cost): Likewise.
21167
21168 2010-06-09  Richard Guenther  <rguenther@suse.de>
21169
21170         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
21171         replace constants.
21172
21173 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
21174
21175         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
21176
21177 2010-06-09  Martin Jambor  <mjambor@suse.cz>
21178
21179         PR tree-optimization/44423
21180         * tree-sra.c (dump_access): Dump also grp_assignment_read.
21181         (analyze_access_subtree): Pass negative allow_replacements to children
21182         if the current type is scalar.
21183
21184 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21185
21186         PR testsuite/42843
21187         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
21188         * doc/plugins.texi (Plugin license check): Update information
21189         on type of plugin_is_GPL_compatible.
21190         * Makefile.in (PLUGINCC): Define as $(COMPILER).
21191         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
21192
21193 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
21194
21195         * config/arm/arm.c (thumb2_reorg): New function.
21196         (arm_reorg): Call it.
21197         * config/arm/thumb2.md (define_peephole2 for flag clobbering
21198         arithmetic operations): Delete.
21199
21200 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
21201
21202         PR target/44067
21203         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
21204         e500v2 target.
21205
21206 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
21207
21208         PR plugins/44459
21209         * gcc-plugin.h: Encapsulate all declarations in extern "C".
21210
21211 2010-06-08  Jan Hubicka  <jh@suse.cz>
21212
21213         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
21214         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
21215
21216 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
21217
21218         PR tree-optimization/39874
21219         PR middle-end/28685
21220         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
21221         Declare.
21222         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
21223         same_bool_result_p): New.
21224         (and_var_with_comparison, and_var_with_comparison_1,
21225         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
21226         (or_var_with_comparison, or_var_with_comparison_1,
21227         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
21228         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
21229         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
21230         of combine_comparisons.
21231         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
21232
21233 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
21234
21235         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
21236         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21237         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
21238         pdp11_function_value_regno_p): New functions.
21239         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21240         TARGET_FUNCTION_VALUE_REGNO_P): Define.
21241
21242 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
21243
21244         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
21245         Thumb-2 in the MINUS case.
21246
21247 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21248
21249         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
21250
21251         * doc/gty.texi (GTY Options): Document typed GC allocation and
21252         variable_size GTY option.
21253
21254         * ggc-internal.h: New.
21255
21256         * ggc.h: Update copyright year.
21257         (digit_string): Move to stringpool.c.
21258         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
21259         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
21260         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
21261         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
21262         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
21263         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
21264         (ggc_force_collect, ggc_get_size, ggc_statistics)
21265         (ggc_print_common_statistics): Move to ggc-internal.h.
21266         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
21267         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
21268         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
21269         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
21270         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
21271         (ggc_alloc_zone_pass_stat): Remove.
21272         (ggc_internal_alloc_stat, ggc_internal_alloc)
21273         (ggc_internal_cleared_alloc_stat): New.
21274         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
21275         (ggc_internal_vec_alloc_stat)
21276         (ggc_internal_cleared_vec_alloc_stat)
21277         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
21278         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
21279         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
21280         (ggc_cleared_alloc_ptr_array_two_args): New.
21281         (htab_create_ggc, splay_tree_new_ggc): Redefine.
21282         (ggc_splay_alloc): Change the type of the first argument to
21283         enum gt_types_enum.
21284         (ggc_alloc_string): Make macro.
21285         (ggc_alloc_string_stat): New.
21286         (ggc_strdup): Redefine.
21287         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
21288         (ggc_alloc_rtvec_sized): New.
21289         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
21290         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
21291         (ggc_internal_cleared_alloc_zone_stat)
21292         (ggc_internal_zone_alloc_stat)
21293         (ggc_internal_zone_cleared_alloc_stat)
21294         (ggc_internal_zone_vec_alloc_stat)
21295         (ggc_alloc_zone_rtx_def_stat)
21296         (ggc_alloc_zone_tree_node_stat)
21297         (ggc_alloc_zone_cleared_tree_node_stat)
21298         (ggc_alloc_cleared_gimple_statement_d_stat): New.
21299
21300         * ggc-common.c: Include ggc-internal.h.
21301         (ggc_internal_cleared_alloc_stat): Rename from
21302         ggc_alloc_cleared_stat.
21303         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
21304         (ggc_calloc): Remove.
21305         (ggc_cleared_alloc_htab_ignore_args): New.
21306         (ggc_cleared_alloc_ptr_array_two_args): New.
21307         (ggc_splay_alloc): Add obj_type parameter.
21308         (init_ggc_heuristics): Formatting fixes.
21309
21310         * ggc-none.c: Update copyright year.
21311         (ggc_alloc_stat): Rename to ggc_alloc_stat.
21312         (ggc_alloc_cleared_stat): Rename to
21313         ggc_internal_cleared_alloc_stat.
21314         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
21315
21316         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
21317         Remove references to ggc_alloc in comments.
21318         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
21319         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
21320         (new_ggc_zone, destroy_ggc_zone): Remove.
21321         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
21322
21323         * ggc-zone.c: Include ggc-internal.h.  Remove references to
21324         ggc_alloc in comments.
21325         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
21326         (ggc_internal_alloc_zone_pass_stat): New.
21327         (ggc_internal_cleared_alloc_zone_stat): New.
21328         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
21329         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
21330         (new_ggc_zone, destroy_ggc_zone): Remove.
21331
21332         * stringpool.c: Update copyright year.  Include ggc-internal.h
21333         (digit_vector): Make static.
21334         (digit_string): Moved from ggc.h.
21335         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
21336         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
21337
21338         * Makefile.in (GGC_INTERNAL_H): New.
21339         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
21340         $(GGC_INTERNAL_H) to dependencies.
21341
21342         * gentype.c: Update copyright year.
21343         (walk_type): Accept variable_size GTY option.
21344         (USED_BY_TYPED_GC_P): New macro.
21345         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
21346         whitespace at the end of strings.
21347         (get_type_specifier, variable_size_p): New functions.
21348         (alloc_quantity, alloc_zone): New enums.
21349         (write_typed_alloc_def): New function.
21350         (write_typed_struct_alloc_def): Likewise.
21351         (write_typed_typed_typedef_alloc_def): Likewise.
21352         (write_typed_alloc_defns): Likewise.
21353         (output_typename, write_splay_tree_allocator_def): Likewise.
21354         (write_splay_tree_allocators): Likewise.
21355         (main): Call write_typed_alloc_defns and
21356         write_splay_tree_allocators.
21357
21358         * lto-streamer.h (lto_file_decl_data_ptr): New.
21359
21360         * passes.c (order): Define using cgraph_node_ptr.
21361
21362         * strinpool.c (struct string_pool_data): Declare nested_ptr using
21363         ht_identifier_ptr.
21364
21365         * gimple.h (union gimple_statement_d): Likewise.
21366
21367         * rtl.h (struct rtx_def): Likewise.
21368         (struct rtvec_def): Likewise.
21369
21370         * tree.h (union tree_node): Likewise.
21371
21372         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
21373
21374         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
21375
21376         * tree-scalar-evolution.c (scev_initialize): Likewise.
21377
21378         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
21379
21380         * dwarf2asm.c (dw2_force_const_mem): Likewise.
21381
21382         * omp-low.c (lower_omp_critical): Likewise.
21383
21384         * bitmap.h (struct bitmap_head_def): Update comment to not
21385         reference ggc_alloc.
21386
21387         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
21388
21389         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
21390
21391         * ipa-prop.c (duplicate_ggc_array): Rename to
21392         duplicate_ipa_jump_func_array.  Use typed GC allocation.
21393         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
21394
21395         * gimple.c (gimple_alloc_stat): Use
21396         ggc_alloc_cleared_gimple_statement_d_stat.
21397
21398         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
21399
21400         * tree.c (make_node_stat): Use
21401         ggc_alloc_zone_cleared_tree_node_stat.
21402         (make_tree_vec_stat): Likewise.
21403         (build_vl_exp_stat): Likewise.
21404         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
21405         (make_tree_binfo_stat): Likewise.
21406         (tree_cons_stat): Likewise.
21407
21408         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
21409         (shallow_copy_rtx_stat): Likewise.
21410         (make_node_stat): Likewise.
21411
21412         * lto-symtab.c: Fix comment.
21413
21414         * tree-cfg.c (create_bb): Update comment to not reference
21415         ggc_alloc_cleared.
21416         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
21417
21418         * varpool.c (varpool_node): Use typed GC allocation.
21419         (varpool_extra_name_alias): Likewise.
21420
21421         * varasm.c (emutls_decl): Likewise.
21422         (get_unnamed_section): Likewise.
21423         (get_noswitch_section): Likewise.
21424         (get_section): Likewise.
21425         (get_block_for_section): Likewise.
21426         (build_constant_desc): Likewise.
21427         (create_constant_pool): Likewise.
21428         (force_const_mem): Likewise.
21429
21430         * tree.c (build_vl_exp_stat): Likewise.
21431         (build_real): Likewise.
21432         (build_string): Likewise.
21433         (decl_debug_expr_insert): Likewise.
21434         (decl_value_expr_insert): Likewise.
21435         (type_hash_add): Likewise.
21436         (build_omp_clause): Likewise.
21437
21438         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
21439
21440         * tree-ssa.c (init_tree_ssa): Likewise.
21441
21442         * tree-ssa-structalias.c (heapvar_insert): Likewise.
21443
21444         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21445
21446         * tree-ssa-loop-niter.c (record_estimate): Likewise.
21447
21448         * tree-ssa-alias.c (get_ptr_info): Likewise.
21449
21450         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21451
21452         * tree-phinodes.c (allocate_phi_node): Likewise.
21453
21454         * tree-iterator.c (tsi_link_before): Likewise.
21455         (tsi_link_after): Likewise.
21456
21457         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21458
21459         * tree-dfa.c (create_var_ann): Likewise.
21460
21461         * tree-cfg.c (create_bb): Likewise.
21462
21463         * toplev.c (alloc_for_identifier_to_locale): Likewise.
21464         (general_init): Likewise.
21465
21466         * stringpool.c (stringpool_ggc_alloc): Likewise.
21467         (gt_pch_save_stringpool): Likewise.
21468
21469         * sese.c (if_region_set_false_region): Likewise.
21470
21471         * passes.c (do_per_function_toporder): Likewise.
21472
21473         * optabs.c (set_optab_libfunc): Likewise.
21474         (set_conv_libfunc): Likewise.
21475
21476         * lto-symtab.c (lto_symtab_register_decl): Likewise.
21477
21478         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21479         (input_eh_region): Likewise.
21480         (input_eh_lp): Likewise.
21481         (make_new_block): Likewise.
21482         (unpack_ts_real_cst_value_fields): Likewise.
21483
21484         * lto-section-in.c (lto_new_in_decl_state): Likewise.
21485
21486         * lto-cgraph.c (input_node_opt_summary): Likewise.
21487
21488         * loop-init.c (loop_optimizer_init): Likewise.
21489
21490         * lambda.h (lambda_vector_new): Likewise.
21491
21492         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
21493
21494         * ira.c (update_equiv_regs): Likewise.
21495
21496         * ipa.c (cgraph_node_set_new): Likewise.
21497         (cgraph_node_set_add): Likewise.
21498         (varpool_node_set_new): Likewise.
21499         (varpool_node_set_add): Likewise.
21500
21501         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
21502         (duplicate_ipa_jump_func_array): Likewise.
21503         (ipa_read_node_info): Likewise.
21504
21505         * ipa-cp.c (ipcp_create_replace_map): Likewise.
21506
21507         * integrate.c (get_hard_reg_initial_val): Likewise.
21508
21509         * gimple.c (gimple_alloc_stat): Likewise.
21510         (gimple_build_omp_for): Likewise.
21511         (gimple_seq_alloc): Likewise.
21512         (gimple_copy): Likewise.
21513
21514         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
21515         (gsi_insert_after_without_update): Likewise.
21516
21517         * function.c (add_frame_space): Likewise.
21518         (insert_temp_slot_address): Likewise.
21519         (assign_stack_temp_for_type): Likewise.
21520         (allocate_struct_function): Likewise.
21521         (types_used_by_var_decl_insert): Likewise.
21522
21523         * except.c (init_eh_for_function): Likewise.
21524         (gen_eh_region): Likewise.
21525         (gen_eh_region_catch): Likewise.
21526         (gen_eh_landing_pad): Likewise.
21527         (add_call_site): Likewise.
21528
21529         * emit-rtl.c (get_mem_attrs): Likewise.
21530         (get_reg_attrs): Likewise.
21531         (start_sequence): Likewise.
21532         (init_emit): Likewise.
21533
21534         * dwarf2out.c (new_cfi): Likewise.
21535         (queue_reg_save): Likewise.
21536         (dwarf2out_frame_init): Likewise.
21537         (new_loc_descr): Likewise.
21538         (find_AT_string): Likewise.
21539         (new_die): Likewise.
21540         (add_var_loc_to_decl): Likewise.
21541         (clone_die): Likewise.
21542         (clone_as_declaration): Likewise.
21543         (break_out_comdat_types): Likewise.
21544         (new_loc_list): Likewise.
21545         (loc_descriptor): Likewise.
21546         (add_loc_descr_to_each): Likewise.
21547         (add_const_value_attribute): Likewise.
21548         (tree_add_const_value_attribute): Likewise.
21549         (add_comp_dir_attribute): Likewise.
21550         (add_name_and_src_coords_attributes): Likewise.
21551         (lookup_filename): Likewise.
21552         (store_vcall_insn): Likewise.
21553         (dwarf2out_init): Likewise.
21554
21555         * dbxout.c (dbxout_init): Likewise.
21556
21557         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21558
21559         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21560
21561         * config/score/score7.c (score7_output_external): Likewise.
21562
21563         * config/score/score3.c (score3_output_external): Likewise.
21564
21565         * config/s390/s390.c (s390_init_machine_status): Likewise.
21566
21567         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21568         (rs6000_init_machine_status): Likewise.
21569         (output_toc): Likewise.
21570
21571         * config/pa/pa.c (pa_init_machine_status): Likewise.
21572         (get_deferred_plabel): Likewise.
21573
21574         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21575
21576         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21577
21578         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21579
21580         * config/mep/mep.c (mep_init_machine_status): Likewise.
21581         (mep_note_pragma_flag): Likewise.
21582
21583         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21584
21585         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21586
21587         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21588
21589         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21590         (i386_pe_maybe_record_exported_symbol): Likewise.
21591
21592         * config/i386/i386.c (get_dllimport_decl): Likewise.
21593         (ix86_init_machine_status): Likewise.
21594         (assign_386_stack_local): Likewise.
21595
21596         * config/frv/frv.c (frv_init_machine_status): Likewise.
21597
21598         * config/darwin.c (machopic_indirection_name): Likewise.
21599
21600         * config/cris/cris.c (cris_init_machine_status): Likewise.
21601
21602         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21603
21604         * config/avr/avr.c (avr_init_machine_status): Likewise.
21605
21606         * config/arm/arm.c (arm_init_machine_status): Likewise.
21607
21608         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21609         (alpha_need_linkage): Likewise.
21610         (alpha_use_linkage): Likewise.
21611
21612         * cgraph.c (cgraph_allocate_node): Likewise.
21613         (cgraph_create_edge_1): Likewise.
21614         (cgraph_create_indirect_edge): Likewise.
21615         (cgraph_add_asm_node): Likewise.
21616
21617         * cfgrtl.c (init_rtl_bb_info): Likewise.
21618
21619         * cfgloop.c (alloc_loop): Likewise.
21620         (rescan_loop_exit): Likewise.
21621
21622         * cfg.c (init_flow): Likewise.
21623         (alloc_block): Likewise.
21624         (unchecked_make_edge): Likewise.
21625
21626         * c-parser.c (c_parse_init): Likewise.
21627         (c_parse_file): Likewise.
21628
21629         * c-decl.c (bind): Likewise.
21630         (record_inline_static): Likewise.
21631         (push_scope): Likewise.
21632         (make_label): Likewise.
21633         (lookup_label_for_goto): Likewise.
21634         (finish_struct): Likewise.
21635         (finish_enum): Likewise.
21636         (c_push_function_context): Likewise.
21637
21638         * bitmap.c (bitmap_element_allocate): Likewise.
21639         (bitmap_gc_alloc_stat): Likewise.
21640
21641         * alias.c (record_alias_subset): Likewise.
21642         (init_alias_analysis): Likewise.
21643
21644 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
21645
21646         * fold-const.c (fold_comparison): Remove redundant parenthesis.
21647         * tree-inline.c (expand_call_inline): Pass translated return value of
21648         cgraph_inline_failed_string to diagnostic function.
21649
21650 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
21651             Shujing Zhao  <pearly.zhao@oracle.com>
21652
21653         PR c/37724
21654         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
21655         implicit bad conversions is initialization.
21656         (error_init): Use gmsgid instead of msgid for argument name and change
21657         the call for error.
21658         (pedwarn_init): Use gmsgid instead of msgid for argument name and
21659         change the call for pedwarn.
21660         (warning_init): Use gmsgid instead of msgid for argument name and
21661         change the call for warning.
21662
21663 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
21664
21665         * config/mips/mips-protos.h (mips_print_operand): Delete.
21666         (mips_print_operand_address): Delete.
21667         * config/mips/mips.h (mips_print_operand_punct): Delete.
21668         (PRINT_OPERAND): Delete.
21669         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21670         (PRINT_OPERAND_ADDRESS): Delete.
21671         * config/mips/mips.c (mips_print_operand_punct): Make static.
21672         (mips_print_operand_address): Make static.
21673         (mips_print_operand): Make static.  Call
21674         mips_print_operand_punct_valid_p.
21675         (mips_print_operand_punct_valid_p): New function.
21676         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21677         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21678
21679 2010-06-07  Jan Hubicka  <jh@suse.cz>
21680
21681         PR middle-end/44454
21682         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
21683         are allocated.
21684
21685 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
21686
21687         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
21688         name of RECORD.
21689
21690 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21691
21692         * doc/sourcebuild.texi (Effective-Target Keywords, Other
21693         attributes): Document gas.
21694
21695 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
21696
21697         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
21698         <TYPE_LEA>: Split instruction.
21699         <default>: Remove alternative 2 handling.
21700         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
21701         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
21702         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
21703
21704         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
21705         (ashift_zext lea splitter): Use DImode for multiplication.
21706
21707         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
21708         to generate addition.
21709
21710 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
21711
21712         * common.opt (fira-verbose): Use Var.
21713         (fpcc-struct-return): Use Init instead of VarExists.
21714         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
21715         toplev.c.
21716         * flags.h (flag_signed_char, flag_short_enums,
21717         flag_pcc_struct_return, flag_ira_verbose,
21718         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
21719         * toplev.c (flag_detailed_statistics, flag_signed_char,
21720         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
21721         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
21722         * toplev.h (flag_crossjumping, flag_if_conversion,
21723         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
21724         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
21725         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
21726         flag_cprop_registers, time_report, flag_ira_loop_pressure,
21727         flag_ira_coalesce, flag_ira_move_spills,
21728         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
21729
21730 2010-06-07  Jan Hubicka  <jh@suse.cz>
21731
21732         * df-core.c (df_analyze_problem): Do verification after allocation.
21733
21734         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
21735         (df_lr_alloc): Initialize problem data; move bitmaps to
21736         lr_bitmaps obstack.
21737         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
21738         (df_lr_verify_solution_start): Do not initialize problem data;
21739         allocate bitmaps in lr_bitmaps.
21740         (df_lr_verify_solution_end): Do not free problem data.
21741
21742 2010-06-07  Jan Hubicka  <jh@suse.cz>
21743
21744         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
21745         if caller is noreturn.
21746         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
21747         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
21748         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
21749         * ipa-pure-const.c (check_decl): Add IPA parameter.
21750         (state_from_flags): New function.
21751         (better_state, worse_state): New functions.
21752         (check_call): When in IPA mode, do not care about callees.
21753         (check_load, check_store): Update.
21754         (check_ipa_load, check_ipa_store): New.
21755         (check_stmt): When in IPA mode, use IPA checkers.
21756         (analyze_function): Use state_from_flags.
21757         (propagate): Check indirect edges and references.
21758
21759 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
21760
21761         PR rtl-optimization/44404
21762         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
21763         of count_occurrences to see if it's safe to modify mem_insn.
21764
21765 2010-06-07  Richard Guenther  <rguenther@suse.de>
21766
21767         * gimplify.c (gimplify_cleanup_point_expr): For empty body
21768         and EH-only cleanup drop the cleanup instead of inserting it
21769         unconditionally.
21770
21771 2010-06-07  Ira Rosen  <irar@il.ibm.com>
21772
21773         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
21774         documentation.
21775         * targhooks.c (default_builtin_vectorization_cost): New function.
21776         * targhooks.h (default_builtin_vectorization_cost): Declare.
21777         * target.h (enum vect_cost_for_stmt): Define.
21778         (builtin_vectorization_cost): Change argument and comment.
21779         * tree-vectorizer.h: Remove cost model macros.
21780         * tree-vect-loop.c: Include target.h.
21781         (vect_get_cost): New function.
21782         (vect_estimate_min_profitable_iters): Replace cost model macros with
21783         calls to vect_get_cost.
21784         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
21785         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
21786         default implementation.
21787         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
21788         calls to target hook builtin_vectorization_cost.
21789         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
21790         Likewise.
21791         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
21792         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
21793         implementation to return costs.
21794         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21795         * config/spu/spu.h: Remove vectorizer cost model macros.
21796         * config/i386/i386.h: Likewise.
21797         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
21798         a call to target hook builtin_vectorization_cost.
21799
21800 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
21801
21802         PR target/44319
21803         * config/i386/i386.c (override_options): Turn zee pass on for level 2
21804         and above and defer till target is known.
21805         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
21806         turn off otherwise.
21807
21808 2010-05-25  Jan Hubicka  <jh@suse.cz>
21809
21810         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
21811         (df_compact_blocks): Likewise.
21812         * df.h (struct df): Turn hardware_regs_used,
21813         regular_block_artificial_uses, eh_block_artificial_uses,
21814         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
21815         bitmap_head.
21816         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
21817         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
21818         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
21819         df_scan_blocks, df_insn_delete, df_insn_rescan,
21820         df_insn_rescan_debug_internal, df_insn_rescan_all,
21821         df_process_deferred_rescans, df_process_deferred_rescans,
21822         df_notes_rescan, df_get_call_refs, df_get_call_refs,
21823         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
21824         df_record_entry_block_defs, df_record_exit_block_uses,
21825         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
21826         df_scan_verify): Update.
21827
21828 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
21829
21830         PR c++/44188
21831         * c-common.c (is_typedef_decl): Move this definition ...
21832         * tree.c (is_typedef_decl): ... here.
21833         (typdef_variant_p): Move definition here from cp/tree.c.
21834         * c-common.h (is_typedef_decl): Move this declaration ...
21835         * tree.h (is_typedef_decl): ... here.
21836         (typedef_variant_p): Move declaration here from cp/cp-tree.h
21837         * dwarf2out.c (is_naming_typedef_decl): New function.
21838         (gen_tagged_type_die): Split out of ...
21839         (gen_type_die_with_usage): ... this function. When an anonymous
21840         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21841         is emitted for the typedef.
21842         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21843         anonymous tagged types.
21844
21845 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21846
21847         PR c/20000
21848         * c-decl.c (grokdeclarator): Delete warning.
21849
21850 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21851
21852         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
21853         newly built CALL_EXPR.
21854         * tree-profile.c (tree_profiling): Don't profile functions produced
21855         for built-in stuff.
21856
21857 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
21858
21859         PR bootstrap/44427
21860         PR bootstrap/44428
21861         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
21862         endianness-independent.
21863
21864 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
21865
21866         * c-common.c: Move to c-family/.
21867         * c-common.def: Likewise.
21868         * c-common.h: Likewise.
21869         * c-cppbuiltin.c: Likewise.
21870         * c-dump.c: Likewise.
21871         * c-format.c: Likewise.
21872         * c-format.h : Likewise.
21873         * c-gimplify.c: Likewise.
21874         * c-lex.c: Likewise.
21875         * c-omp.c: Likewise.
21876         * c.opt: Likewise.
21877         * c-opts.c: Likewise.
21878         * c-pch.c: Likewise.
21879         * c-ppoutput.c: Likewise.
21880         * c-pragma.c: Likewise.
21881         * c-pragma.h: Likewise.
21882         * c-pretty-print.c: Likewise.
21883         * c-pretty-print.h: Likewise.
21884         * c-semantics.c: Likewise.
21885         * stub-objc.c: Likewise.
21886
21887         * gengtype.c (get_file_langdir): Special-case files in c-family/.
21888         (get_output_file_with_visibility): Fix name for c-common.h.
21889         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
21890
21891         * c-tree.h: Update include path for moved files.
21892         * c-lang.c: Likewise.
21893         * c-lang.h: Likewise.
21894         * c-parser.c: Likewise.
21895         * c-convert.c: Likewise.
21896         * c-decl.c: Likewise.
21897         * c-objc-common.c: Likewise.
21898         * configure.ac: Make sure c-family/ exists in the build directory.
21899         * configure: Regenerate.
21900         * Makefile.in: Update paths for moved files.  Regroup files per
21901         location and update dependencies.  Move generated_files down after
21902         ALL_GTFILES_H.
21903
21904         * config/spu/spu-c.c: Update paths for moved files.
21905         * config/mep/mep-pragma.c: Likewise.
21906         * config/darwin-c.c: Likewise.
21907         * config/i386/msformat-c.c: Likewise.
21908         * config/i386/i386-c.c: Likewise.
21909         * config/avr/avr-c.c: Likewise.
21910         * config/sol2-c.c: Likewise.
21911         * config/ia64/ia64-c.c: Likewise.
21912         * config/rs6000/rs6000-c.c: Likewise.
21913         * config/arm/arm.c: Likewise.
21914         * config/arm/arm-c.c: Likewise.
21915         * config/h8300/h8300.c: Likewise.
21916         * config/v850/v850-c.c: Likewise.
21917
21918         * config/t-darwin: Fix dependencies for moved files.
21919         * config/t-sol2: Fix dependencies for moved files.
21920         * config/mep/t-mep: Fix dependencies for moved files.
21921         * config/ia64/t-ia64: Fix dependencies for moved files.
21922         * config/rs6000/t-rs6000: Fix dependencies for moved files.
21923         * config/v850/t-v850: Fix dependencies for moved files.
21924         * config/v850/t-v850e: Fix dependencies for moved files.
21925
21926         * config/m32c/m32c-pragma.c
21927
21928         * po/exgettext: Look in c-family/ also.
21929
21930 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
21931
21932         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
21933         (mark_control_dependent_edges_necessary): Call it instead of marking
21934         the last statement manually.
21935         (propagate_necessity): Likewise.
21936
21937 2010-06-05  Jan Hubicka  <jh@suse.cz>
21938
21939         * basic-block.h (compute_dominance_frontiers): Updated.
21940         (compute_idf): Likewise.
21941
21942         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
21943         for dominance frontiers.
21944         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
21945         (insert_updated_phi_nodes_for): Likewise.
21946         (update_ssa): Likewise.
21947         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21948         (compute_dominance_frontiers): Likewise.
21949         (compute_idf): Likewise.
21950         * df-problems.c (df_md_local_compute): Likewise.
21951
21952 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
21953
21954         * target.h (struct gcc_target): Add memory_move_cost field.
21955         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
21956         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21957         * targhooks.c (default_memory_move_cost): New function.
21958         * targhooks.h (default_memory_move_cost): Declare function.
21959         * reload.h (memory_move_cost): Declare.
21960         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21961         * reginfo.c (memory_move_cost): New function.
21962         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21963         * ira.h (ira_memory_move_cost): Update comment.
21964         * ira.c (ira_memory_move_cost): Update comment.
21965         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21966         with memory_move_cost.
21967         * postreload.c (reload_cse_simplify_set): (Ditto.).
21968         * reload1.c (choose_reload_regs): (Ditto.).
21969         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21970         (MEMORY_MOVE_COST):  Revise documentation.
21971
21972         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21973         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21974         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21975         type of 'in' argument to bool.
21976         (TARGET_MEMORY_MOVE_COST): Define.
21977
21978 2010-06-05  Jan Hubicka  <jh@suse.cz>
21979
21980         * ipa-pure-const.c (propagate): Fix typo in handling of functions
21981         that cannot return.  Be more careful when merging the results with
21982         previously known ones.
21983
21984 2010-06-05  Matthias Klose  <doko@ubuntu.com>
21985
21986         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21987         function to add the -iplugindir option.
21988         (find_plugindir_spec_function): Add new declaration and function.
21989         (static_spec_func): Use it for "find-plugindir".
21990
21991 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
21992
21993         PR c++/44361
21994         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21995         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21996         statement expression.
21997
21998 2010-06-05  Jan Hubicka  <jh@suse.cz>
21999
22000         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
22001         (df_rd_problem_data): Convert sparse_invalidated_by_call,
22002         dense_invalidated_by_call to bitmap head.
22003         (df_rd_alloc, df_rd_bb_local_compute_process_def,
22004         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
22005         df_rd_start_dump, df_lr_verify_transfer_functions,
22006         df_live_verify_transfer_functions, df_chain_create_bb,
22007         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
22008         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
22009         df_simulate_one_insn_forwards, df_md_alloc,
22010         df_md_bb_local_compute_process_def,
22011         df_md_bb_local_compute_process_def, df_md_local_compute,
22012         df_md_transfer_function df_md_free): Update.
22013
22014 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
22015
22016         PR c/44322
22017         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
22018         target type for ADDR_EXPR; require no changes to qualifiers except
22019         for function types.
22020         * c-tree.h (c_build_type_variant): Remove.
22021
22022 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
22023
22024         * genautomata.c (get_excl_set): Do work per element, not per char.
22025         (check_presence_pattern_sets): Similar.
22026         (check_absence_pattern_sets): Similar.
22027
22028 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
22029
22030         * genautomata.c (curr_state_pass_num): Delete.
22031         (min_issue_delay_pass_states): Delete.
22032         (min_issue_delay): Delete.
22033         (initiate_min_issue_delay_pass_states): Delete.
22034         (output_min_issue_delay_table): Compute min_issue_delay_vect
22035         using a breadth-first search variant.
22036         (output_tables): Don't call initiate_min_issue_delay_pass_states.
22037
22038 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
22039
22040         PR boostrap/44421
22041         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
22042         (df_byte_lr_bb_local_compute): Likewise.
22043
22044 2010-06-03  Jason Merrill  <jason@redhat.com>
22045
22046         Implement noexcept operator (5.3.7)
22047         * c-common.c (c_common_reswords): Add noexcept.
22048         * c-common.h (enum rid): Add RID_NOEXCEPT.
22049
22050 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
22051
22052         * config/darwin-driver.c (darwin_default_min_version): Use
22053         GCC-specific formats in diagnostics.
22054         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
22055         diagnostics.
22056         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
22057         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
22058         eval_spec_function, handle_braces, process_brace_body, main,
22059         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
22060         getenv_spec_function, compare_version_strings,
22061         version_compare_spec_function): Use GCC-specific formats in
22062         diagnostics.
22063
22064 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22065
22066         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
22067         that operand 0 and operand 1 are equal.
22068         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
22069         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
22070         and operand 1 are equal.
22071         <default>: Ditto.  Remove ??? comment.
22072         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
22073         and operand 1 are equal.
22074         <default>: Ditto.  Remove ??? comment.
22075         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
22076         are equal.
22077         (*add<mode>_4) <default>: Ditto.
22078         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
22079
22080 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
22081
22082         * config/i386/i386-protos.h (ix86_print_operand): Declare.
22083         * config/i386/i386.c (ix86_print_operand): Make non-static.
22084         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
22085         * output.h (output_operand): Declare.
22086         * final.c (output_operand): Make non-static.
22087
22088 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
22089
22090         PR rtl-optimization/44013
22091         * sched-deps.c (add_dependence_list_and_free): Don't free lists
22092         when processing debug insns.
22093
22094         PR debug/41371
22095         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
22096         recursing.  Check that recursion is bounded.  Rename inner var
22097         to avoid hiding incoming argument.
22098
22099 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22100
22101         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
22102         operands[2] == 255.
22103         (*addqi_3): Ditto.
22104         (*addqi_4): Ditto.
22105         (*addqi_5): Ditto.
22106         (*addqi_ext_1_rex64): Ditto.
22107         (*addqi_ext_1): Ditto.
22108
22109         (*addqi_4): Check for incdec_operand in QImode.
22110
22111         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
22112         using SWI mode iterator.
22113         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
22114         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
22115         mode iterator.
22116         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
22117         using SWI mode iterator.
22118
22119 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22120
22121         PR c/25880
22122         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
22123         * c-format.c (gcc_diag_flag_specs): Add hash.
22124         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
22125         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
22126         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
22127         pp_c_cv_qualifiers. Handle qualifiers spelling here.
22128         (pp_c_type_qualifier_list): Call the function above.
22129         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
22130         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
22131         (WARN_FOR_QUALIFIERS): New macro.
22132         (convert_for_assignment): Use it.
22133
22134 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
22135
22136         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
22137
22138 2010-06-04  Jan Hubicka  <jh@suse.cz>
22139
22140         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
22141         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
22142         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
22143         DF_BYTE_LR_OUT): Update for embedded bitmaps.
22144         * fwprop.c (single_def_use_enter_block): Likewise.
22145         * ddg.c (create_ddg_dep_from_intra_loop_link,
22146         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
22147         * loop-iv.c (latch_dominating_def): Likewise.
22148         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
22149         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
22150         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
22151         df_rd_transfer_function, df_rd_top_dump,
22152         df_rd_bottom_dump): Update.
22153         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
22154         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
22155         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
22156         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
22157         df_lr_verify_solution_start, df_lr_verify_solution_end,
22158         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
22159         df_live_free_bb_info, df_live_alloc, df_live_reset,
22160         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
22161         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
22162         df_live_verify_solution_start, df_live_verify_solution_end,
22163         df_live_verify_transfer_functions, df_chain_create_bb,
22164         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
22165         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
22166         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
22167         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
22168         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
22169         df_byte_lr_transfer_function, df_byte_lr_top_dump,
22170         df_byte_lr_bottom_dump, df_create_unused_note,
22171         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
22172         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
22173         df_md_transfer_function, df_md_init, df_md_confluence_0,
22174         df_md_confluence_n,
22175         df_md_top_dump, df_md_bottom_dump): Update.
22176         (struct df_lr_problem_data): Embedd bitmap headers.
22177
22178 2010-06-04  Jan Hubicka  <jh@suse.cz>
22179
22180         * dce.c (dce_process_block): Do not re-scan already marked
22181         instructions.
22182
22183 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22184
22185         PR rtl-optimization/39871
22186         PR rtl-optimization/40615
22187         PR rtl-optimization/42500
22188         PR rtl-optimization/42502
22189         * ira.c (init_reg_equiv_memory_loc: New function.
22190         (ira): Call it twice.
22191         * reload.h (calculate_elim_costs_all_insns): Declare.
22192         * ira-costs.c: Include "reload.h".
22193         (regno_equiv_gains): New static variable.
22194         (init_costs): Allocate it.
22195         (finish_costs): Free it.
22196         (ira_costs): Call calculate_elim_costs_all_insns.
22197         (find_costs_and_classes): Take estimated elimination costs
22198         into account.
22199         (ira_adjust_equiv_reg_cost): New function.
22200         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
22201         * reload1.c (init_eliminable_invariants, free_reg_equiv,
22202         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
22203         (elim_bb): New static variable.
22204         (reload): Move code out of here into init_eliminable_invariants and
22205         free_reg_equiv.  Call them.
22206         (calculate_elim_costs_all_insns): New function.
22207         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
22208         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
22209         but call note_reg_elim_costly if we turned a valid memory address
22210         into an invalid one.
22211         * Makefile.in (ira-costs.o): Depend on reload.h.
22212
22213 2010-06-04  Julian Brown  <julian@codesourcery.com>
22214
22215         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
22216         for pool ranges.
22217
22218 2010-06-04  Richard Guenther  <rguenther@suse.de>
22219
22220         PR lto/41584
22221         * cgraph.h (struct varpool_node): Add lto_file_data field.
22222         * lto-cgraph.c (input_varpool_node): Initialize it.
22223
22224 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
22225
22226         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
22227         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
22228         predicate in "type" attribute calculation.
22229         (*addsi_1_zext): Ditto.
22230         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
22231         (*addsi_2_zext): Ditto.
22232         (*add<mode>_3): Ditto.
22233         (*addsi_3_zext): Ditto.
22234         (*add<mode>_5): Ditto.
22235
22236 2010-06-03  Jan Hubicka  <jh@suse.cz>
22237
22238         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
22239         of bitmap_bit_p.
22240         * cfganal.c (compute_dominance_frontiers_1): Likewise.
22241
22242 2010-06-03  Jan Hubicka  <jh@suse.cz>
22243
22244         * df-problems.c (df_create_unused_note, df_note_bb_compute):
22245         micro-optimize the checks when to add new note.
22246
22247 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
22248
22249         * final.c (output_asm_insn): Call
22250         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
22251         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
22252         (output_address): Call targetm.asm_out.print_operand_address.
22253         Update comments.
22254         * target.h (struct gcc_target): Add print_operand,
22255         print_operand_address, and print_operand_punct_valid_p fields.
22256         * targhooks.h (default_print_operand): Declare.
22257         (default_print_operand_address): Declare.
22258         (default_print_operand_punct_valid_p): Declare.
22259         * targhooks.c (default_print_operand): Define.
22260         (default_print_operand_address): Define.
22261         (default_print_operand_punct_valid_p): Define.
22262         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
22263         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
22264         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
22265         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
22266         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
22267         * vmsdbgout.c (addr_const_to_string): Update comment.
22268         * config/i386/i386.c (print_operand): Rename to...
22269         (ix86_print_operand): ...this.  Make static.
22270         (print_operand_address): Rename to...
22271         (ix86_print_operand_address): ...this.  Make static.  Call
22272         ix86_print_operand instead of PRINT_OPERAND.
22273         (ix86_print_operand_punct_valid_p): New function.
22274         (TARGET_PRINT_OPERAND): Define.
22275         (TARGET_PRINT_OPERAND_ADDRESS): Define.
22276         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22277         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
22278         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22279         (PRINT_OPERAND): Delete.
22280         (PRINT_OPERAND_ADDRESS): Delete.
22281         * config/i386/i386-protos.h (print_operand): Delete prototype.
22282         (print_operand_address): Delete prototype.
22283
22284 2010-06-03  Richard Guenther  <rguenther@suse.de>
22285
22286         PR tree-optimization/44403
22287         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22288         Preserve pointer qualifiers.
22289         (vect_create_data_ref_ptr): Likewise.
22290
22291 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
22292
22293         PR c++/44294
22294         * defaults.h (MAX_FIXED_MODE_SIZE): New.
22295
22296         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
22297
22298 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
22299
22300         PR debug/44375
22301         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
22302         return false if merging the bbs would lead to goto_locus
22303         location being lost from the IL.
22304
22305 2010-06-03  Jan Hubicka  <jh@suse.cz>
22306             Jakub Jelinek  <jakub@redhat.com>
22307
22308         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
22309         set->regs[i] is NULL or has just one entry.
22310
22311 2010-06-03  Jan Hubicka  <jh@suse.cz>
22312
22313         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
22314         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
22315
22316 2010-06-03  Paul Brook  <paul@codesourcery.com>
22317
22318         * config/arm/arm.c (FL_TUNE): Define.
22319         (arm_default_cpu, arm_cpu_select): Remove.
22320         (all_cores): Populate core field.
22321         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
22322         (arm_find_cpu): New function.
22323         (arm_handle_option): Lookup cpu/architecture names.
22324         (arm_override_options): Cleanup mcpu/march/mtune handling.
22325         (arm_file_start): Ditto.
22326
22327 2010-06-03  Alan Modra  <amodra@gmail.com>
22328
22329         PR target/44169
22330         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
22331         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
22332         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
22333         (rs6000_emit_load_toc_table): Likewise.
22334
22335 2010-06-02  Jan Hubicka  <jh@suse.cz>
22336
22337         * passes.c (init_optimization_passes): Put ipa reference
22338         after ipa pure-const.
22339
22340 2010-06-02  Jan Hubicka  <jh@suse.cz>
22341
22342         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
22343         calls_read_all and calls_write_all.
22344         (get_reference_optimization_summary): Fix formatting.
22345         (is_proper_for_analysis): Check that decl is not readonly.
22346         (propagate_bits): Check CONST/PURE/noreturn flags.
22347         (ipa_init): Move all_module_statics to optimization_summary_obstack.
22348         (analyze_function): Ignore indirect edges.
22349         (copy_global_bitmap): For all module statics, do nothing.
22350         (generate_summary): Do not print calls_read_all/calls_write_all.
22351         (read_write_all_from_decl): Take node as argument; check
22352         cgraph_node_cannot_return.
22353         (propagate): Reorganize read_all/write_all computation;
22354         check indirect edges; check ecf flags; use all_module_statics
22355         in the results; do not free all_module_statics.
22356         (stream_out_bitmap): Handle all_module_statics.
22357         (ipa_reference_write_optimization_summary): Likewise; use
22358         varpool/cgraph encoders to get boundaries.
22359         (ipa_reference_read_optimization_summary): Read in all_module_statics;
22360         use it when possible.
22361
22362 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22363
22364         PR target/44218
22365         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
22366         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
22367
22368         * doc/extend.texi (powerpc builtins): Document vec_recip,
22369         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
22370
22371         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
22372         (rs6000_emit_swrsqrt): Ditto.
22373         (rs6000_emit_swdivsf): Delete.
22374         (rs6000_emit_swdivdf): Ditto.
22375         (rs6000_emit_swrsqrtsf): Ditto.
22376
22377         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
22378         describe the reciprocal estimate support for each type.
22379         (recip_options): Map -mrecip=<opt> into option bits.
22380         (gen_2arg_fn_t): New typedef for binary rtx gen function.
22381         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
22382         reciprocal estimate instructions.
22383         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
22384         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
22385         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
22386         cost information if -mdebug=cost or -mdebug=reg.
22387         (rs6000_override_options): Set -mrecip-precision for power6, and
22388         power7 machines.  If -mvsx or -mdfp, enable various options that
22389         came in previous instruction set ISAs, unless the option was
22390         explicitly disabled by the command line option.  Parse
22391         -mrecip=<opt> options.
22392         (rs6000_builtin_vectorized_function): Add support for vectorizing
22393         the reciprocal estimate builtins and expansions.
22394         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
22395         (bdesc_2arg): Add reciprocal estimate builtins.
22396         (bdesc_1arg): Add reciprocal square root estimate builtins.
22397         (rs6000_expand_builtin): Rewrite to use a switch statement,
22398         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
22399         (rs6000_init_builtins): Create declarations for reciprocal
22400         estimate builtins.
22401         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
22402         sized, prefer traditional floating point registers, if integer
22403         vector types, prefer altivec registers.  Don't actually look at
22404         the memory address any more.
22405         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
22406         builtins.
22407         (rs6000_load_constant_and_splat): New helper function to load up
22408         the constant for reciprocal estimate instructions.
22409         (rs6000_emit_madd): New helper function for generating
22410         multiply/add type instructions, based on the current switches.
22411         (rs6000_emit_msub): Ditto.
22412         (rs6000_emit_mnsub): Ditto.
22413         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
22414         replace a divide with a reciprocal estimate and fixup, adding
22415         support for machines with high precision and vectors.
22416         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
22417         low precision machines.
22418         (rs6000_emit_swdiv): New common function to be called to replace a
22419         division with reciprocal estimate and fixup.
22420         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
22421         for double and vector types.  Add support for high precision machines.
22422
22423         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
22424         the reciprocal estimate instructions can be generated.
22425         (TARGET_FRE): Ditto.
22426         (TARGET_FRSQRTES): Ditto.
22427         (TARGET_FRSQRTE): Ditto.
22428         (RS6000_RECIP_*): New macros for reciprocal estimate support.
22429
22430         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
22431         square root estimate on vectors.
22432         (re<mode>2): New insn for reciprocal division estimate on vectors.
22433
22434         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
22435         New builtin.
22436         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
22437         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
22438         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
22439         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
22440         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
22441         (RS6000_BUILTIN_RSQRT): Ditto.
22442         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
22443         floating point builtin.
22444
22445         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
22446         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
22447         __RECIP_PRECISION__ based on the command line switches.
22448         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
22449
22450         * config/rs6000/rs6000.opt (-mrecip): Document add support for
22451         replacing division instructions with reciprocal estimate and fixup.
22452         (-mrecip=<opt>): New option.
22453         (-mrecip-precision): Ditto.
22454
22455         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
22456         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
22457         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
22458         precision scalar.
22459
22460         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
22461         (UNSPEC_VREFP): Ditto.
22462         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
22463         conterparts with regard to support of -mno-fused-madd and -ffast-math.
22464         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
22465         reciprocal estimate instructions to be generated.
22466         (altivec_vrefp): Ditto.
22467
22468         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
22469         estimate support.
22470         (rreg): New mode attribute for reciprocal estimate support.
22471         (recip<mode>3): New insn for division using reciprocal estimate
22472         and fixup builtins.
22473         (divide define_split): New define_split to convert floating point
22474         division to use reciprocal estimate if the user used the
22475         appropriate options and the split is run when we can add new
22476         pseudo registers for the fixup.
22477         (rsqrt<mode>2): New insn for reciprocal square root support.
22478         (recipsf3): Move into recip<mode>3.
22479         (recipdf3): Ditto.
22480         (fres): Use TARGET_FRES.
22481         (rsqrtsf2): Move into rsqrt<mode>2.
22482         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
22483         (copysignsf3): Add support for VSX.
22484         (fred): Use TARGET_FRE.
22485         (fred_fpr): Ditto.
22486         (rsqrtdf_internal1): New function for frsqrte instruciton.
22487
22488         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
22489         (vec_rsqrt): Ditto.
22490
22491 2010-06-03  Richard Guenther  <rguenther@suse.de>
22492
22493         PR middle-end/44291
22494         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
22495         (set_user_assembler_libfunc): Likewise.
22496
22497 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
22498
22499         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
22500         defaults.h.
22501         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
22502         to defaults.h
22503         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
22504         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
22505         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
22506         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
22507         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
22508         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
22509         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
22510         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
22511         * defaults.h: Updated for above mentioned changes.
22512
22513 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
22514
22515         * c-common.c: Remove header include of tm_p.h.
22516         * Makefile.in (c-common.o): Remove TM_P_H dependency.
22517
22518 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
22519
22520         * tree.h (struct tree_decl_map): New type.
22521         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
22522         (tree_decl_map_hash): New prototype.
22523         (debug_expr_for_decl, value_expr_for_decl): Change into
22524         tree_decl_map hashtab from tree_map.
22525         (init_ttree): Adjust initialization.
22526         (tree_decl_map_hash): New function.
22527         (decl_debug_expr_lookup, decl_debug_expr_insert,
22528         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
22529
22530 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22531
22532         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
22533         linker emulations.
22534         * configure: Regenerate.
22535         * config.in: Regenerate.
22536
22537         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
22538         (X86_64_EMULATION): Define.
22539         (TARGET_LD_EMULATION): Use them.
22540
22541         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
22542         (SPARC64_EMULATION): Define.
22543         (LINK_ARCH_SPEC): Use them.
22544
22545 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
22546
22547         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
22548         smallest_mode_for_size for computing the precision types of new
22549         graphite IVs.  Do not call lang_hooks.types.type_for_size.
22550
22551 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
22552
22553         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
22554         information.
22555         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
22556
22557 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
22558
22559         PR middle-end/44363
22560         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
22561         return false instead.
22562
22563 2010-06-02  Jan Hubicka  <jh@suse.cz>
22564
22565         PR middle-end/44295
22566         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
22567         create new cgraph node to check callee.
22568
22569 2010-06-02  Richard Guenther  <rguenther@suse.de>
22570
22571         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
22572
22573 2010-06-02  Richard Guenther  <rguenther@suse.de>
22574
22575         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
22576         (lto_wrapper_cleanup): ... this.  Do not exit.
22577         (fatal): Adjust.  Exit here.
22578         (fatal_perror): Likewise.
22579         (fatal_signal): New function.
22580         (main): Set up signal handlers to cleanup temporary files.
22581         * Makefile.in (lto-wrapper.o): Adjust dependencies.
22582
22583 2010-06-02  Richard Guenther  <rguenther@suse.de>
22584
22585         PR tree-optimization/44377
22586         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
22587
22588 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22589
22590         * config/s390/2097.md (z10_fhex): Remove insn reservation.
22591         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
22592         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
22593         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
22594         instruction.
22595         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
22596
22597 2010-06-02  Jan Hubicka  <jh@suse.cz>
22598
22599         * bitmap.c (bitmap_descriptor): Add search_iter.
22600         (bitmap_find_bit): Increment it.
22601         (print_statistics): Print it.
22602
22603 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
22604
22605         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
22606         instead of gimple_build_call_vec.  Delete unnecessary local variable.
22607
22608 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
22609
22610         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
22611         change from yesterday.
22612
22613 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
22614
22615         * c-ada-spec.c: Clean up redundant includes.
22616
22617 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
22618
22619         * gimplify.c: Do not include except.h and optabs.h.
22620         (gimplify_body): Do not initialize RTL profiling.
22621         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
22622         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
22623         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
22624         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
22625         langhooks.h.
22626
22627         * tree-pretty-print.h: Include pretty-print.h.
22628         * gimple-pretty-print.h: Include pretty-print.h.
22629
22630         * tree-pretty-print.c: Do not include diagnostic.h.
22631         * tree-vrp.c: Likewise.
22632         * tree-tailcall.c: Likewise
22633         * tree-scalar-evolution.c: Likewise
22634         * tree-ssa-dse.c: Likewise
22635         * tree-chrec.c: Likewise
22636         * tree-ssa-sccvn.c: Likewise
22637         * tree-ssa-copyrename.c: Likewise
22638         * tree-nomudflap.c: Likewise
22639         * tree-call-cdce.c: Likewise
22640         * tree-stdarg.c: Likewise
22641         * tree-ssa-math-opts.c: Likewise
22642         * tree-nrv.c: Likewise
22643         * tree-ssa-sink.c: Likewise
22644         * tree-browser.c: Likewise
22645         * tree-ssa-loop-ivcanon.c: Likewise
22646         * tree-ssa-loop.c: Likewise
22647         * tree-parloops.c: Likewise
22648         * tree-ssa-address.c: Likewise
22649         * tree-ssa-ifcombine.c: Likewise
22650         * tree-if-conv.c: Likewise
22651         * tree-data-ref.c: Likewise
22652         * tree-affine.c: Likewise
22653         * tree-ssa-phiopt.c: Likewise
22654         * tree-ssa-coalesce.c: Likewise
22655         * tree-ssa-pre.c: Likewise
22656         * tree-ssa-live.c: Likewise
22657         * tree-predcom.c: Likewise
22658         * tree-ssa-forwprop.c: Likewise
22659         * tree-ssa-dce.c: Likewise
22660         * tree-ssa-ter.c: Likewise
22661         * tree-ssa-loop-prefetch.c: Likewise
22662         * tree-optimize.c: Likewise
22663         * tree-ssa-phiprop.c: Likewise
22664         * tree-object-size.c: Likewise
22665         * tree-outof-ssa.c: Likewise
22666         * tree-ssa-structalias.c: Likewise
22667         * tree-switch-conversion.c: Likewise
22668         * tree-ssa-reassoc.c: Likewise
22669         * tree-ssa-operands.c: Likewise
22670         * tree-vectorizer.c: Likewise
22671         * tree-vect-data-refs.c: Likewise
22672         * tree-vect-generic.c: Likewise
22673         * tree-vect-stmts.c: Likewise
22674         * tree-vect-patterns.c: Likewise
22675         * tree-vect-slp.c: Likewise
22676         * tree-vect-loop.c: Likewise
22677         * tree-ssa-loop-ivopts.c: Likewise
22678         * tree-ssa-loop-im.c: Likewise
22679         * tree-ssa-loop-niter.c: Likewise
22680         * tree-ssa-loop-unswitch.c: Likewise
22681         * tree-ssa-loop-manip.c: Likewise
22682         * tree-ssa-loop-ch.c: Likewise
22683         * tree-dump.c: Likewise
22684         * tree-complex.c: Likewise
22685
22686         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
22687         * tree-ssa-uninit.c: Likewise
22688         * tree-ssa-threadupdate.c: Likewise
22689         * tree-ssa-uncprop.c: Likewise
22690         * tree-ssa-ccp.c: Likewise
22691         * tree-ssa-dom.c: Likewise
22692         * tree-ssa-propagate.c: Likewise
22693         * tree-ssa-alias.c: Likewise
22694         * tree-dfa.c: Likewise
22695         * tree-cfgcleanup.c: Likewise
22696         * tree-sra.c: Likewise
22697         * tree-ssa-copy.c: Likewise
22698         * tree-ssa.c: Likewise
22699         * tree-profile.c: Likewise
22700         * tree-cfg.c: Likewise
22701         * tree-ssa-threadedge.c: Likewise
22702         * tree-vect-loop-manip.c: Likewise
22703
22704         * tree-inline.c: Do not include diagnostic.h and expr.h.
22705         Include rtl.h.
22706         (copy_decl_for_dup_finish): Do not use NULL_RTX.
22707
22708         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
22709         * tree-loop-distribution.c: Likewise.
22710
22711 2010-06-01  Jan Hubicka  <jh@suse.cz>
22712
22713         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
22714
22715 2010-06-01  Jan Hubicka  <jh@suse.cz>
22716
22717         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
22718         remove return value.
22719         (split_bbs_on_noreturn_calls) .... here.
22720         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
22721         * tree-flow.h (fixup_noreturn_call): New.
22722
22723 2010-06-01  Jan Hubicka  <jh@suse.cz>
22724
22725         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
22726
22727 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
22728
22729         * tree.h (build_nt_call_list): Delete.
22730         * tree.c (build_nt_call_list): Delete.
22731
22732 2010-06-01  Jan Hubicka  <jh@suse.cz>
22733
22734         * fwprop.c: Make emit-rtl.h include last.
22735         * rtlanal.c: Include emit-rtl.h.
22736         * genautomata.c: Output emit-rtl include into insn-automata.c
22737         * df-scan.c: Include emit-rtl.h.
22738         * haifa-sched.c: Indlude emit-rtl.h.
22739         * mode-switching.c: Indlude emit-rtl.h.
22740         * graph.c: Indlude emit-rtl.h.
22741         * sel-sched.c: Include emit-rtl.h.
22742         * sel-sched-ir.c: Include emit-rtl.h.
22743         * ira-build.c: Include emit-rtl.h.
22744         * emit-rtl.c (first_insn, last_insn): Remove defines.
22745         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
22746         Move to emit-rtl.h.
22747         (set_new_first_and_last_insn, get_last_insn_anywhere,
22748         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
22749         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
22750         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
22751         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
22752         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
22753         Use accessor functions.
22754         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22755          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22756         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22757         mem_expr_equal_p): Move here from rtl.h.
22758         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
22759         Move here from emit-rtl.c; make inline.
22760         * cfglayout.h: Include emit-rtl.h.
22761         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22762          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22763         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22764         mem_expr_equal_p, get_insns, set_first-insn,
22765         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
22766         * reg-stack.c: Include emit-rtl.h.
22767         * dce.c: Likewise.
22768
22769 2010-06-01  Jan Hubicka  <jh@suse.cz>
22770
22771         * cgraph.h (tree_function_versioning): Update prototype.
22772         (cgraph_function_versioning): Update prototype.
22773         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
22774         bitmap.
22775         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
22776         (cgraph_materialize_clone, save_inline_function_body): Update use of
22777         tree_function_versioning.
22778         * tree-inline.c (copy_bb): Look for previous copied block to link
22779         after; fix debug output.
22780         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
22781         (copy_body): Likewise.
22782         (expand_call_inline): Update use of copy_body.
22783         (tree_function_versioning): Update use of copy body; accept
22784         blocks_to_copy and new_entry.
22785
22786 2010-06-01  Jan Hubicka  <jh@suse.cz>
22787
22788         * gegenrtl.c: Remove unnecesary prototypes.
22789         (gendecl): Remove.
22790         (gendef): Produce static inline.
22791         (gencode): Remove.
22792         (main): Do not decode parameters; generate header only.
22793         * Makefile.in (genrtl.c): Remove.
22794
22795 2010-06-01  Jan Hubicka  <jh@suse.cz>
22796
22797         * tree-switch-conversion.c (build_one_array): Make it readonly.
22798
22799 2010-06-01  Richard Guenther  <rguenther@suse.de>
22800
22801         * optabs.c (init_optabs): Guard all accesses to reinit.
22802         * ipa-pure-const.c (propagate): Fix another typo.
22803         * opts.c (common_handle_option): Split assignment to bool.
22804         * c-opts.c (c_common_handle_option): Likewise.
22805
22806 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
22807             Matthew Gingell  <gingell@adacore.com>
22808
22809         * doc/invoke.texi: Mention -fdump-ada-spec.
22810         * tree-dump.c (dump_files): Add ada-spec.
22811         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
22812         * tree-pass.h (tree_dump_index): Add TDI_ada.
22813         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
22814         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
22815         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
22816         * c-decl.c: Include c-ada-spec.h.
22817         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
22818         functions.
22819         (c_write_global_declarations): Add handling of -fdump-ada-spec.
22820         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
22821         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
22822         * c-ada-spec.h, c-ada-spec.c: New files.
22823
22824 2010-06-01  Richard Guenther  <rguenther@suse.de>
22825
22826         PR lto/43853
22827         * ipa-pure-const.c (get_function_state): Hand back varying state
22828         if we do not have one.
22829         (has_function_state): New function.
22830         (duplicate_node_data): Adjust.
22831         (remove_node_data): Likewise.
22832         (pure_const_write_summary): Likewise.
22833         (propagate): Likewise.  Fix typo.
22834
22835 2010-06-01  Jan Hubicka  <jh@suse.cz>
22836
22837         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
22838         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
22839         (execute_all_ipa_transforms): Do not play with the states.
22840
22841 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
22842
22843         * config/arm/t-linux-androideabi: New.
22844         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
22845
22846 2010-06-01  Jan Hubicka  <jh@suse.cz>
22847
22848         * tree-inline.c (estimate_num_insns): For stdarg functions look
22849         into call statement to count cost of argument passing.
22850
22851 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
22852
22853         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
22854         argument for fprintf.
22855         (ix86_output_addr_diff_elt): Likewise.
22856         (x86_function_profiler): Likewise.
22857         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
22858         (LPREFIX): Likewise.
22859         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
22860
22861 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22862
22863         PR target/44338
22864         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
22865         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
22866         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
22867         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
22868         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
22869         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
22870         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
22871         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
22872         TARGET_FUSED_MADD.
22873
22874 2010-05-31  Jan Hubicka  <jh@suse.cz>
22875
22876         * tree.h (tree_range_check_failed): Declare noreturn.
22877
22878 2010-05-31  Jan Hubicka  <jh@suse.cz>
22879
22880         * gimple.c (gimple_call_builtin_p): New function.
22881         * gimple.h (gimple_call_builtin_p): Declare.
22882         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
22883         to exit.
22884         (execute_warn_function_return): BUILT_IN_RETURN is return.
22885         (split_critical_edges): Return edges are not critical.
22886         (is_ctrl_altering_stmt): Builtin_in_return is altering.
22887         (gimple_verify_flow_info): Handle built_in_return.
22888         (execute_warn_function_return): Handle built_in_return.
22889         * ipa-pure-const.c (check_call): Ignore builtin_return.
22890
22891 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22892
22893         PR middle-end/44337
22894         * expr.c (expand_assignment): Don't store anything for out-of-bounds
22895         array accesses with non-MEM.
22896
22897         PR tree-optimization/44182
22898         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
22899         newly needs to end a bb is followed by debug stmts, instead return
22900         true from the function at the end.
22901         (maybe_move_debug_stmts_to_successors): New function.
22902         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
22903
22904 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
22905
22906         PR target/44161
22907         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
22908
22909 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22910
22911         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
22912         for nested functions in non-optimized compilation.
22913
22914 2010-05-31  Richard Guenther  <rguenther@suse.de>
22915
22916         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
22917
22918 2010-05-30  Jan Hubicka  <jh@suse.cz>
22919
22920         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
22921
22922 2010-05-30  Richard Guenther  <rguenther@suse.de>
22923
22924         PR lto/42975
22925         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
22926         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
22927         no longer needed.
22928
22929 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
22930
22931         * config/darwin.c (output_objc_section_asm_op): Add comment.
22932         (name_needs_quotes): Add '_' to list of valid comment chars.
22933         (machopic_output_function_base_name): Remove unneeded quotes.
22934         (darwin_encode_section_info): Adjust asm whitespace.
22935         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
22936         (ASM_OUTPUT_LOCAL): Ditto.
22937         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
22938         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
22939         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
22940
22941 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
22942
22943         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
22944         RS6000_OUTPUT_BASENAME unconditionally.
22945         (rs6000_output_function_epilogue): Likewise.
22946
22947 2010-05-30  Jan Hubicka  <jh@suse.cz>
22948
22949         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
22950         nodes.
22951
22952 2010-05-30  Richard Guenther  <rguenther@suse.de>
22953
22954         * tree-cfg.c (verify_gimple_assign_single): Implement
22955         verification for COND_EXPR rhs.
22956
22957 2010-05-30  Jan Hubicka  <jh@suse.cz>
22958
22959         * cgraph.h (cgraph_dump_file): Declare.
22960         * cgraphunit.c (cgraph_dump_file): Export.
22961         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22962
22963 2010-05-30  Jan Hubicka  <jh@suse.cz>
22964
22965         * dwarf2out.c (reference_to_unused,
22966         premark_types_used_by_global_vars_helper): Avoid creation of new
22967         varpool nodes.
22968
22969 2010-05-30  Jan Hubicka  <jh@suse.cz>
22970
22971         * cgraph.h (cgraph_node_cannot_return,
22972         cgraph_edge_cannot_lead_to_return): New functions.
22973         * cgraph.c (cgraph_node_cannot_return,
22974         cgraph_edge_cannot_lead_to_return): Use them.
22975         * ipa-pure-const.c (pure_const_names): New static var.
22976         (check_call): Handle calls not leading to return.
22977         (pure_const_read_summary): Dump info read.
22978         (propagate): Dump info about propagation process; ignore side effects
22979         of functions not leading to exit; fix handling of pure functions.
22980
22981 2010-05-30  Jan Hubicka  <jh@suse.cz>
22982
22983         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22984         for tail call epilogues.
22985
22986 2010-05-30  Jan Hubicka  <jh@suse.cz>
22987
22988         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22989         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22990         dump files.
22991
22992 2010-05-29  Jan Hubicka  <jh@suse.cz>
22993
22994         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22995         node; remove references in node we no longer keep in cgrpah but need
22996         body of.
22997
22998 2010-05-29  Jan Hubicka  <jh@suse.cz>
22999
23000         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
23001
23002 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23003
23004         PR target/44165
23005         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
23006
23007 2010-05-29  Jan Hubicka  <jh@suse.cz>
23008
23009         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
23010         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
23011         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
23012         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
23013         debug_names_replaced_by, debug_update_ssa): Likewise.
23014         * sbitmap.c (debug_sbitmap): Likewise.
23015         * genrecog.c (debug_decision, debug_decision_list): Likewise.
23016         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
23017         debug_tree_chain): Likewise.
23018         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
23019         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
23020         * optabs.c (debug_optab_libfuncs): Likewise.
23021         (verify_loop_closed_ssa): Likewise.
23022         * value-prof.c (verify_histograms): Likewise.
23023         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
23024         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
23025         * cfghooks.c (verify_flow_info): Likewise.
23026         * fold-const.c (debug_fold_checksum): Likewise.
23027         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
23028         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
23029         Likewise.
23030         * omega.c (debug_omega_problem): Likewise.
23031         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
23032         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
23033         * dominance.c (verify_dominators, debug_dominance_info,
23034         debug_dominance_tree): Likewise.
23035         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
23036         * df_regno_debug, df_ref_debug,
23037         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
23038         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
23039         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
23040         * sel-sched.c (debug_state): Likewise.
23041         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
23042         Likewise.
23043         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
23044         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
23045         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
23046         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
23047         Likewise.
23048         * c-pretty-print.c (debug_c_tree): Likewise.
23049         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
23050         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
23051         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
23052         * ebitmap.c (debug_ebitmap): Likewise.
23053         * function.c (debug_find_var_in_block_tree): Likewise.
23054         * print-rtl.c (debug_rtx): Likewise.
23055         (debug_rtx_count): Likewise.
23056         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
23057         * stor-layout.c (debug_rli): Likewise.
23058         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
23059         * tree-data-ref.c (debug_data_references,
23060         debug_data_dependence_relations, debug_data_reference,
23061         debug_data_dependence_relation, debug_rdg_vertex,
23062         debug_rdg_component, debug_rdg): Likewise.
23063         * tree-affine.c (debug_aff): Likewise.
23064         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
23065         Likewise.
23066         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
23067         * emit-rtl.c (verify_rtl_sharing): Likewise.
23068         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
23069         debug_value_expressions): Likewise.
23070         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
23071         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
23072         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
23073         * cfglayout.c (verify_insn_chain): Likewise.
23074         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
23075         debug_clast_stmt, debug_generated_program): Likewise.
23076         * ggc-page.c (debug_print_page_list): Likewise.
23077         * tree-ssa-ter.c (debug_ter): Likewise.
23078         * graphite-dependences.c (debug_pddr): Likewise.
23079         * sched-deps.c (debug_ds): Likewise.
23080         * tree-ssa.c (verify_ssa): Likewise.
23081         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
23082         debug_scattering_functions, debug_iteration_domains, debug_pdr,
23083         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
23084         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
23085         * tree-inline.c (debug_find_tree): Likewise.
23086         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
23087         debug_ppl_powerset_matrix): Likewise.
23088         * var-tracking.c (debug_dv): Likewise.
23089         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
23090         * cfgloop.c (verify_loop_structure): Likewise.
23091         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
23092         * c-common.c (verify_sequence_points): Likewise.
23093         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
23094         debug_candidates, debug_rgn_dependencies): Likewise.
23095         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
23096         * debug_constraint_graph, debug_solution_for_var,
23097         debug_sa_points_to_info): Likewise.
23098         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
23099         Likewie.
23100         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
23101         debug_loops, debug_loop, debug_loop_num): Likewise.
23102         * passes.c (debug_pass): Likewise.
23103         (dump_properties): Likewise; add cfglayout property.
23104         (debug_properties): Likewise.
23105         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
23106         * varpool.c (debug_varpool): Likewise.
23107         * regcprop.c (debug_value_data): Likewise.
23108         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
23109         debug_immediate_uses_for): Likewise.
23110
23111 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
23112
23113         PR bootstrap/44315
23114         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
23115         Filter out insn-flags.h.
23116
23117 2010-05-29  Jan Hubicka  <jh@suse.cz>
23118
23119         * cgraph.h (struct varpool_node_set_def,
23120         struct cgraph_node_set_def): Remove unused AUX pointer.
23121         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
23122         VEC_empty macro.
23123
23124 2010-05-29  Jan Hubicka  <jh@suse.cz>
23125
23126         PR middle-end/44324
23127         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
23128
23129 2010-05-29  Richard Guenther  <rguenther@suse.de>
23130
23131         * lto-streamer.c (cached_bp): New global variable.
23132         (bitpack_create): Return the cached bitpack, if available.
23133         (bitpack_delete): Clear and cache the bitpack, if appropriate.
23134         (bp_pack_value): Remove redundant asserts.
23135
23136 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
23137
23138         PR middle-end/44306
23139         * tree-if-conv.c (is_true_predicate): New.
23140         (is_predicated): Use is_true_predicate.
23141         (add_to_predicate_list): Same.  Do not use unshare_expr.
23142         (add_to_dst_predicate_list): Same.
23143
23144 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
23145
23146         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
23147         field on edges.
23148         (predicate_bbs): Same.
23149         (clean_predicate_lists): Same.
23150         (find_phi_replacement_condition): Do not AND the predicate from
23151         edge->aux.
23152
23153 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
23154
23155         PR bootstrap/44315
23156         * Makefile.in (build/gencondmd.o): Add a missing `\'.
23157
23158 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23159
23160         PR target/44261
23161         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
23162         (negdf2): Adjust expander pattern and use negdf2_slow.
23163         (negsf2): Likewise.
23164
23165 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
23166
23167         * basic-block.h (struct control_flow_graph): Move last_label_uid field
23168         up.
23169         * df.h (struct df_base_ref): Move regno field up.
23170         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
23171         * expr.h (struct separate_ops): Move location field up.
23172         * optabs.h (struct optab_d): Move libcall_basename field down.
23173         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
23174         * config/i386/i386.h (struct machine_function): Convert call_abi field
23175         into a bitfield.  Move cfa field to the end of the structure.
23176
23177 2010-05-29  Jan Hubicka  <jh@suse.cz>
23178
23179         * varpool.c (varpool_get_node): Fix lookup.
23180
23181 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23182
23183         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
23184         RTL specific prototypes with #ifdef RTX_CODE.
23185         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
23186         * config/spu/t-spu-elf: Fix dependencies.
23187
23188         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
23189
23190 2010-05-29  Mike Stump  <mikestump@comcast.net>
23191
23192         PR bootstrap/44315
23193         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
23194         TM_H when building to avoid dependency loops.
23195
23196 2010-05-29  Jan Hubicka  <jh@suse.cz>
23197
23198         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
23199         refs and body; not the whole node for masters of materialized clones.
23200
23201 2010-05-29  Mike Stump  <mikestump@comcast.net>
23202
23203         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
23204
23205 2010-05-29  Jan Hubicka  <jh@suse.cz>
23206
23207         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
23208         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
23209         use of clone_function_name.
23210         * cgraph.h (cgraph_create_virtual_clone,
23211         cgraph_function_versioning): update prototypes.
23212         (clone_function_name): Declare.
23213         * ipa-cp.c (ipcp_insert_stage): Update call of
23214         cgraph_create_virtual_clone.
23215         * omp-low.c (create_omp_child_function_name): Use
23216         cgraph_create_virtual_clone.
23217         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
23218         (cgraph_function_versioning): Take SUFFIX argument; produce new name
23219         and make decl local.
23220
23221 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23222
23223         * vec.h: Include statistics.h
23224         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
23225         with VEC_H.
23226
23227 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23228
23229         * c-lex.c: Do not include c-tree.h.
23230         * c-pretty-print.c: Likewise.
23231         * c-opts.c: Likewise.
23232         * c-gimplify.c: Likewise.
23233         * c-common.c: Likewise.
23234         * c-dump.c: Likewise.  Include c-common.h.
23235
23236 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23237
23238         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
23239         before including diagnostic-core.h.
23240         (c_cpp_error): New prototype moved from c-tree.h.
23241         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
23242         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
23243         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
23244         (c_cpp_error): Prototype moved to c-common.h.
23245         * Makefile.in: Update dependency for C_COMMON_H.
23246
23247 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
23248
23249         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
23250         * c-common.c (c_register_addr_space): Remove here.
23251         * c-decl.c (c_register_addr_space): Re-add here.
23252
23253 2010-05-28  Mike Stump  <mikestump@comcast.net>
23254
23255         * config/darwin-c.c: Remove c-tree.h include.
23256
23257 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23258
23259         * gcc.c: Include diagnostic.h.
23260         (error_count): Remove.  All users changed to use errorcount.
23261         (programname): Remove.  All users changed to use progname.
23262         (fancy_abort, internal_error, fatal_error, error, warning, inform,
23263         fnotice): Remove.
23264         (execute): Don't include "Internal error" and bug reporting
23265         information in argument of internal_error call.
23266         (process_command): Don't increment error_count after calling
23267         perror_with_name.
23268         (input_filename): Rename to gcc_input_filename.  All users
23269         changed.
23270         (main): Call diagnostic_initialize.  Register delete_temp_files
23271         with atexit.  Use seen_error to test for errors.
23272         * gcc.h: Include diagnostic-core.h.
23273         (fatal_error, error, warning): Remove.
23274         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
23275         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
23276         (gcc.o): Update dependencies.
23277
23278 2010-05-28  Jeff Law  <law@redhat.com>
23279
23280         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
23281         functions.
23282         * ira.h (ira_bad_reload_regno): Declare
23283         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
23284
23285         * ira-color.c (update_curr_costs): Free updated hard reg costs.
23286         (ira_reassign_conflict_allocnos): Remove bogus asserts.
23287         (allocno_reload_assign): Likewise.
23288
23289 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
23290
23291         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
23292         build1_stat.
23293
23294 2010-05-28  Richard Guenther  <rguenther@suse.de>
23295
23296         PR lto/44312
23297         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
23298         Stream fixed-point constants mode.
23299         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
23300         and TYPE_PRECISION.
23301         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
23302         Stream fixed-point constants mode.
23303         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
23304         and TYPE_PRECISION.
23305
23306 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
23307
23308         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
23309         only place it was called from.
23310         (number_of_latch_executions): Do not return chrec_dont_know when the
23311         may_be_zero is a runtime condition: instead, return a COND_EXPR
23312         including the may_be_zero condition.
23313         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
23314         of nb_iterations.
23315         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
23316         COND_EXPRs.
23317
23318 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
23319
23320         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
23321         generate COND_EXPRs for degenerate_phi_result.
23322
23323 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
23324
23325         PR middle-end/44293
23326         * tree-if-conv.c (if_convertible_loop_p): Check the
23327         if-convertibility of phi nodes in non predicated BBs.
23328
23329 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23330
23331         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
23332
23333 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23334
23335         PR driver/15303
23336         * gcc.c (inform, warning, inform): New functions.
23337         (fatal_ice): Rename to internal_error; change cmsgid parameter to
23338         gmsgid.  All callers changed.
23339         (notice): Rename to fnotice; add parameter fp.  All callers changed.
23340         (fatal_error): Rename to fatal_signal.  All users changed.
23341         (fatal): Rename to fatal_error; change cmsgid parameter to
23342         gmsgid.  All callers changed.
23343         (process_command): Use warning instead of error for warnings.
23344         (end_going_arg): Don't use _() around argument of error.
23345         (do_spec_1): Use inform for message from %n specs.  Use warning
23346         instead of error for warnings.
23347         (main): Use inform for comparison messages.  Use warning for
23348         message about unused linker input.
23349         (error): Increment error_count.  Print "error: ".
23350         * gcc.h (fatal): Change to fatal_error.
23351         (warning): Declare.
23352         * config/darwin-driver.c (darwin_default_min_version): Use warning
23353         instead of fprintf for warnings.
23354         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
23355
23356 2010-05-28  Julian Brown  <julian@codesourcery.com>
23357
23358         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
23359         (*thumb2_addsi3_compare0_scratch): New.
23360         * config/arm/constraints.md (Pv): New.
23361         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
23362         for ARM mode only.
23363         (*addsi3_compare0_scratch): Likewise.
23364
23365 2010-05-28  Jan Hubicka  <jh@suse.cz>
23366
23367         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
23368         check.
23369         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
23370         only on local statics.
23371
23372 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
23373
23374         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
23375
23376 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
23377
23378         PR bootstrap/44314
23379         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
23380         (OPTION_GLIBC): Define.
23381
23382 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
23383
23384         PR debug/41048
23385         * dwarf2out.c (double_int_type_size_in_bits): New function.
23386         (round_up_to_align): Change first argument and return value to
23387         double_int.
23388         (field_byte_offset): Work internally on double_ints.
23389
23390         PR target/43636
23391         * builtins.c (expand_movstr): Use a temporary pseudo instead
23392         of target even when target is not NULL and not const0_rtx, but
23393         fails movstr predicate.
23394         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
23395
23396 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
23397
23398         * final.c (rest_of_clean_state): Use %m in errors instead of
23399         strerror (errno).
23400         * gengtype.c (read_input_list, close_output_files): Use xstrerror
23401         instead of strerror.
23402         * toplev.c (process_options): Use %m in errors instead of strerror
23403         (errno).
23404         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
23405         (errno).
23406
23407 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
23408
23409         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
23410         (ix86_canonical_va_list_type): Make static.  Add declaration.
23411         (ix86_enum_va_list): Make static.  Reindent.
23412         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
23413         (ix86_canonical_va_list_type): Ditto.
23414         (ix86_enum_va_list): Ditto.
23415
23416 2010-05-28  Richard Guenther  <rguenther@suse.de>
23417
23418         * lto-wrapper.c (run_gcc): With -save-temps generate a
23419         user-visible ltrans filename.  Fixup ltrans unit numbering.
23420
23421 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
23422
23423         * c-common.c (c_common_nodes_and_builtins): Replace use
23424         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
23425         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
23426         to ix86_enum_va_list.
23427         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
23428         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
23429         (TARGET_ENUM_VA_LIST_P): Add hook description.
23430         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
23431         * target.h (gcc_target): Add enum_va_list hook.
23432
23433         PR bootstrap/44299
23434         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
23435         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
23436         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
23437
23438 2010-05-28  Alan Modra  <amodra@gmail.com>
23439
23440         PR target/44266
23441         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23442         emit_library_call machinery to set up __tls_get_addr calls.
23443
23444 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23445
23446         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
23447
23448 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
23449
23450         Revert fix for PR c++/44188
23451         * c-common.c (is_typedef_decl): Revert the moving of  this
23452         definition ...
23453         * tree.c (is_typedef_decl): ... here.
23454         (typdef_variant_p): Revert the moving of this  definition
23455         here from cp/tree.c.
23456         * c-common.h (is_typedef_decl): Revert the moving of this
23457         declaration ...
23458         * tree.h (is_typedef_decl): ... here.
23459         (typedef_variant_p): Revert the moving of this  declaration here
23460         from cp/cp-tree.h
23461         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
23462         (gen_tagged_type_die): Revert the splitting out of ...
23463         (gen_type_die_with_usage): ... this function. Revert the anonymous
23464         tagged type handling.
23465         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
23466         typedefs naming anonymous tagged types.
23467
23468 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
23469
23470         * config/rs6000/rs6000-modes.def (PSImode): Delete.
23471
23472 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
23473
23474         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
23475         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
23476         throughout.
23477         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
23478         "xer" to "ca".
23479         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
23480         XER_REGS to CA_REGS throughout.
23481         * config/rs6000/rs6000.h: Same.
23482         (ADDITIONAL_REGISTER_NAMES): Add "xer".
23483         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
23484         that mode_iterator "P" is the size for arithmetic carries as well.
23485         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
23486
23487 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
23488
23489         PR bootstrap/44255
23490         * combine.c (struct rtx_subst_pair): Define unconditionally.
23491         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
23492         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
23493         Call make_compound_operation on pair->to.
23494         (propagate_for_debug): Don't call make_compound_operation here.
23495         Always use simplify_replace_fn_rtx.
23496
23497 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
23498
23499         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
23500         * config/xtensa/xtensa.c (override_options): Check
23501           TARGET_FORCE_NO_PIC and set flag_pic.
23502         * config/xtensa/xtensa.opt: Document -mforce-no-pic
23503
23504 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
23505
23506         PR bootstrap/44299
23507         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
23508         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
23509
23510 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
23511
23512         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
23513         toplev.h.
23514         * diagnostic.c: Don't include toplev.h.
23515         (progname): Define.  Moved from toplev.c.
23516         (seen_error): New function.
23517         * diagnostic.h: Include diagnostic-core.h.
23518         (diagnostic_t, emit_diagnostic): Don't declare here.
23519         * toplev.c (progname): Move to toplev.c.
23520         (emit_debug_global_declarations, compile_file, finalize,
23521         do_compile, toplev_main): Use seen_error.
23522         * toplev.h: Include diagnostic-core.h.
23523         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
23524         internal_error, warning, warning_at, error, error_n, error_at,
23525         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
23526         verbatim, fnotice, progname): Move to diagnostic-core.h.
23527         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
23528         (expand_builtin_expect): Use seen_error.
23529         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
23530         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
23531         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
23532         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
23533         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
23534         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
23535         errorcount for errors.
23536         * c-opts.c (c_common_finish): Use seen_error.
23537         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
23538         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
23539         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
23540         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
23541         (get_coverage_counts): Use seen_error.
23542         * dwarf2out.c (dwarf2out_finish): Use seen_error.
23543         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
23544         gimplify_body): Use seen_error.
23545         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
23546         * ipa-pure-const.c (gate_pure_const): Use seen_error.
23547         * ipa-reference.c (gate_reference): Use seen_error.
23548         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
23549         * lambda-code.c: Include diagnostic-core.h instead of
23550         diagnostic.h.
23551         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
23552         * lto-compress.c: Include diagnostic-core.h instead of
23553         diagnostic.h.
23554         * lto-section-in.c: Include diagnostic-core.h instead of
23555         diagnostic.h.
23556         * lto-streamer-out.c: Include diagnostic-core.h instead of
23557         diagnostic.h.
23558         * lto-streamer.c: Include diagnostic-core.h instead of
23559         diagnostic.h.
23560         (gate_lto_out): Use seen_error.
23561         * matrix-reorg.c: Include diagnostic-core.h instead of
23562         diagnostic.h.
23563         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
23564         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
23565         (gate_expand_omp, lower_omp_1): Use seen_error.
23566         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
23567         (rest_of_decl_compilation, rest_of_type_compilation,
23568         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
23569         * tree-cfg.c (label_to_block_fn): Use seen_error.
23570         * tree-inline.c (optimize_inline_calls): Use seen_error.
23571         * tree-mudflap.c (mudflap_finish_file): Use
23572         seen_error.
23573         * tree-optimize.c (gate_all_optimizations,
23574         gate_all_early_local_passes, gate_all_early_optimizations): Use
23575         seen_error.
23576         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
23577         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
23578         (varpool_remove_unreferenced_decls,
23579         varpool_assemble_pending_decls): Use seen_error.
23580         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
23581         (TOPLEV_H, DIAGNOSTIC_H): Update.
23582         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
23583         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
23584         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
23585         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
23586         coverage.o, lambda-code.o): Update dependencies.
23587
23588 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
23589
23590         PR c++/44188
23591         * c-common.c (is_typedef_decl): Move this definition ...
23592         * tree.c (is_typedef_decl): ... here.
23593         (typdef_variant_p): Move definition here from cp/tree.c.
23594         * c-common.h (is_typedef_decl): Move this declaration ...
23595         * tree.h (is_typedef_decl): ... here.
23596         (typedef_variant_p): Move declaration here from cp/cp-tree.h
23597         * dwarf2out.c (is_naming_typedef_decl): New function.
23598         (gen_tagged_type_die): Split out of ...
23599         (gen_type_die_with_usage): ... this function. When an anonymous
23600         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
23601         is emitted for the typedef.
23602         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
23603         anonymous tagged types.
23604
23605 2010-05-27  Jason Merrill  <jason@redhat.com>
23606
23607         * print-tree.c (debug_vec_tree): New fn.
23608         (print_vec_tree): New fn.
23609         * tree.h: Declare them.
23610         * gdbinit.in (pvt): New command.
23611
23612         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
23613
23614         * gdbinit.in (pdd): New command.
23615
23616 2010-05-27  Jan Hubicka  <jh@suse.cz>
23617
23618         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
23619         (update_caller_keys): Return early if there are no callers;
23620         only update fibheap when decresing the key.
23621         (update_callee_keys): Avoid recursion.
23622         (decide_inlining_of_small_functions): When badness does not match;
23623         re-insert into fibheap.
23624
23625 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
23626
23627         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
23628         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
23629         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
23630         (ALL_HOST_OBJS): Now a union of the above two.
23631         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
23632         all files in ALL_HOST_FRONTEND_OBJS.
23633         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
23634
23635         * c-common.c: Pretend to be a backend file by undefining
23636         IN_GCC_FRONTEND (still need rtl.h here).
23637
23638 2010-05-27  Jan Hubicka  <jh@suse.cz>
23639
23640         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
23641         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
23642
23643 2010-05-27  Jan Hubicka  <jh@suse.cz>
23644
23645         * sched-ebb.c: Rename struct deps to struct deps_desc.
23646         * ddg.c: Likewise.
23647         * sel-sched-ir.c: Likewise.
23648         * sched-deps.c: Likewise.
23649         * sched-int.h: Likewise.
23650         * sched-rgn.c: Likewise.
23651
23652 2010-05-27  Jon Beniston  <jon@beniston.com>
23653
23654         PR 43726
23655         * config/lm32/lm32.h: Remove definition of
23656         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
23657
23658 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23659
23660         PR lto/44230
23661         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
23662
23663 2010-05-27  Richard Guenther  <rguenther@suse.de>
23664
23665         PR tree-optimization/44284
23666         * tree-vect-stmts.c (vectorizable_assignment): Handle
23667         sign-changing conversions as simple copy.
23668
23669 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
23670
23671         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
23672         Bionic C library.
23673         (__gthread_active_p): Check for pthread_create if compiling against
23674         Bionic C library.
23675
23676 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
23677
23678         Support compilation for Android platform.  Reimplement -mandroid.
23679
23680         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
23681         (*android*): Set ANDROID_DEFAULT.
23682         (arm*-*-linux*): Include linux-android.h.
23683         (arm*-*-eabi*): Don't include previous -mandroid implementation.
23684         * config/arm/eabi.h: Remove, move Android-specific parts ...
23685         * config/linux-android.h: ... here.  New file.
23686         * config/arm/eabi.opt: Rename to ...
23687         * config/linux-android.opt: ... this.
23688         (mandroid): Allow -mno-android option.  Initialize based on
23689         ANDROID_DEFAULT.
23690         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
23691         Move logic to corresponding LINUX_TARGET_* macros.
23692         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
23693         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
23694         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
23695         Android definitions.
23696         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
23697         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
23698         Document.
23699
23700 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
23701
23702         Add support for Bionic C library
23703
23704         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
23705         macro.
23706         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
23707         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
23708
23709         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
23710         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
23711         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
23712         to support multiple C libraries.  Handle Bionic.
23713         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
23714         (BIONIC_DYNAMIC_LINKER64): Define.
23715         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
23716         Update.
23717         (TARGET_HAS_SINCOS): Enable for Bionic.
23718
23719         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
23720         the last option specified on command line take effect.
23721         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
23722         (mbionic): New.
23723         (mglibc, muclibc): Update.
23724
23725         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
23726         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
23727         DEFAULT_LIBC.
23728
23729         * doc/invoke.texi (-mglibc, -muclibc): Update.
23730         (-mbionic): Document.
23731
23732 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23733
23734         * c-common.h (c_register_addr_space): Add prototype.
23735         (ADDR_SPACE_KEYWORD): Remove.
23736         * c-common.c (c_register_addr_space): New function.
23737         (c_addr_space_name): Reimplement.
23738         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
23739
23740         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
23741         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
23742
23743         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
23744         Remove TARGET_ADDR_SPACE_KEYWORDS.
23745
23746 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
23747
23748         * input.c: New file.
23749         * input.h (main_input_filename): Move declaration to toplev.h.
23750         * toplev.c (input_location, line_table): Move to input.c
23751         * toplev.h (main_input_filename): Move declaration from input.h.
23752         * tree.c (expand_location): Move to input.c.
23753         * Makefile.in (OBJS-common): Add input.o.
23754         (input.o): Add dependencies.
23755
23756 2010-05-27  Richard Guenther  <rguenther@suse.de>
23757
23758         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
23759         for non-existant files.
23760         (fork_execute): Mark args_name file as deleted.
23761
23762 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
23763
23764         PR bootstrp/44287
23765         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
23766         (narrow_signed_type): Likewise.
23767
23768 2010-05-26  Jan Hubicka  <jh@suse.cz>
23769
23770         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
23771         edge only when checking is enabled; check using former_clone_of;
23772         check inline clones too.
23773         (cgraph_materialize_clone): Record former_clone_of pointer.
23774         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
23775         combining redirections; dump args_to_skip bitmap
23776         (cgraph_materialize_all_clones): Do no redirection here.
23777         * ipa-inline.c (inline_transform): Do redirection here.
23778         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
23779         cheking only).
23780
23781 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23782
23783         * config/avr/avr-c.c: Do not include regs.h.
23784         Include cpplib.h for cpp_define and tree.h for c-common.h.
23785         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
23786         * config/avr/t-avr: Fix dependencies for avr-c.o.
23787
23788 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23789
23790         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
23791         string instead of SYMBOL_REF rtx.
23792         * rtl.h (set_stack_check_libfunc): Move prototype from here...
23793         * libfuncs.h: ...to here.  Adjust for explow.c change.
23794
23795 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23796
23797         * pretty-print.c: Don't include ggc.h.
23798         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
23799         (identifier_to_locale): Use them for allocation.
23800         * pretty-print.h (identifier_to_locale_alloc,
23801         identifier_to_locale_free): Declare.
23802         * toplev.c (alloc_for_identifier_to_locale): New.
23803         (general_init): Set identifier_to_locale_alloc and
23804         identifier_to_locale_free.
23805         * Makefile.in (pretty-print.o): Update dependencies.
23806
23807 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
23808
23809         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
23810         pointer types if they have different alignment or mode.
23811
23812 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
23813
23814         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23815         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23816         * config/sparc/sparc-protos.h (function_value): Remove declaration.
23817         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
23818         sparc_function_value_regno_p): New functions.
23819         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23820         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23821         (function_value): Rename to...
23822         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
23823         argument to 'outgoing'.
23824         (function_arg_record_value, function_arg_union_value,
23825         function_arg_vector_value): Update comment.
23826
23827 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
23828
23829         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
23830         (fde_needed_for_eh_p): New predicate.
23831         (output_call_frame_info): Use it throughout to decide whether FDEs
23832         are needed for EH purpose.
23833         (dwarf2out_begin_prologue): Reorder assignments.
23834
23835 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23836
23837         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
23838         special case loop->header.
23839         (is_predicated): New.
23840         (if_convertible_loop_p): Call it.
23841
23842 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23843
23844         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
23845         iterator in parameter.  Do not generate code during the analysis.
23846         (tree_if_convert_cond_stmt): Removed.
23847         (tree_if_convert_stmt): Removed.
23848         (predicate_bbs): New.
23849         (if_convertible_loop_p): Call predicate_bbs.
23850         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
23851         now contains all the analysis part.
23852
23853 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23854
23855         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
23856         statements in the analysis part.
23857         (tree_if_convert_stmt): Update comment.
23858         (remove_conditions_and_labels): New.
23859         (combine_blocks): Call remove_conditions_and_labels.
23860         (tree_if_conversion): Update comment.
23861
23862 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23863
23864         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
23865         than 2 predecessors or more than 2 successors.
23866
23867 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23868
23869         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
23870         of loops in which the data dependence analysis fails.
23871
23872 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23873
23874         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
23875         CDI_POST_DOMINATORS.
23876         (tree_if_conversion): Same.
23877
23878 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23879
23880         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
23881
23882 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23883
23884         * tree-if-conv.c: Update copyright years.  Fix comments.
23885         Fix indentation.
23886
23887 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
23888
23889         * builtin-types.def (BT_INT128): New primitive type.
23890         (BT_UINT128): Likewise.
23891         * c-common.c (c_common_r): Add __int128 keyword.
23892         (c_common_type_for_size): Handle __int128.
23893         (c_common_type_for_mode): Likewise.
23894         (c_common_signed_or_unsigned_type): Likewise.
23895         (c_common_nodes_and_builtins): Add builtin type
23896         if target supports 128-bit integer scalar.
23897         * c-common.h (enum rid): Add RID_INT128.
23898         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
23899         if target supports 128-bit integer scalar.
23900         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
23901         (finish_declspecs): Likewise.
23902         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
23903         (c_token_starts_declspecs): Likewise.
23904         (c_parser_declspecs): Likewise.
23905         (c_parser_attributes): Likewise.
23906         (c_parser_objc_selector): Likewise.
23907         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
23908         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
23909         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
23910         * tree.c (make_or_reuse_type): Likewise.
23911         (make_unsigned_type): Likewise.
23912         (build_common_tree_nodes_2): Likewise.
23913         * tree.h (enum integer_type_kind): Add itk_int128 and
23914         itk_unsigned_int128.
23915         (int128_integer_type_node): New define.
23916         (int128_unsigned_type_node): New define.
23917         * doc/extend.texi: Add documentation about __int128 type.
23918
23919 2010-05-26  Richard Guenther  <rguenther@suse.de>
23920
23921         * tree-ssa-sccvn.c (copy_nary): Adjust.
23922         (copy_phis): Rename to ...
23923         (copy_phi): ... this.  Adjust.
23924         (copy_references): Rename to ...
23925         (copy_reference): ... this.  Adjust.
23926         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
23927         result into the valid table.
23928
23929 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23930
23931         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
23932         insn-config.h, insn-codes.h, recog.h, and optabs.h.
23933
23934 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23935
23936         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
23937
23938 2010-05-26  Richard Guenther  <rguenther@suse.de>
23939
23940         * opts.c (common_handle_option): Handle OPT_Ofast.
23941
23942 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23943
23944         * diagnostic.c: Don't include opts.h.
23945         (permissive_error_option): Define.
23946         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
23947         for classify_diagnostic.  Don't use memset for
23948         classify_diagnostic.  Initialize new and recently added fields.
23949         (diagnostic_classify_diagnostic): Use context->n_opts instead of
23950         N_OPTS.
23951         (diagnostic_report_diagnostic): Pass context parameter to
23952         diagnostic_report_warnings_p.  Use option_enabled and option_name
23953         hooks from context.
23954         (emit_diagnostic): Use permissive_error_option.
23955         (permerror): Likewise.
23956         * diagnostic.h: Don't include options.h.
23957         (struct diagnostic_context): Add n_opts, opt_permissive,
23958         inhibit_warnings, warn_system_headers, option_enabled and
23959         option_name fields.  Change classify_diagnostic to a pointer.
23960         * opts-diagnostic.h: New file.
23961         * opts.c: Include opts-diagnostic.h.
23962         (common_handle_option): Set global_dc fields for -Wfatal-errors,
23963         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23964         (option_name): New function.
23965         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23966         (c_common_handle_option): Set global_dc->permissive for
23967         -fpermissive.
23968         * c-common.c (c_cpp_error): Save and restore
23969         global_dc->warn_system_headers, not variable warn_system_headers.
23970         * toplev.c: Include opts-diagnostic.h.
23971         (general_init): Update call to diagnostic_initialize.  Set
23972         global_dc->show_column, global_dc->option_enabled and
23973         global_dc->option_name.
23974         (process_options): Don't set global_dc fields here.
23975         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23976         (diagnostic.o, opts.o, toplev.o): Update dependencies.
23977
23978 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
23979
23980         * config/picochip/picochip.md (movsi): Split a movsi from a
23981         const after reload.
23982
23983 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23984
23985         * ggc-zone.c: Update copyright year.
23986         (poison_region): Mark memory for Valgrind as undefined before
23987         memset () call and inaccessible afterwards.
23988         (ggc_pch_total_size): Change type of i to int.
23989
23990 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23991
23992         * ggc-common.c (ggc_free_overhead): Allow empty slot.
23993
23994 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23995
23996         * ggc-common.c: Update copyright year.
23997         (ggc_rlimit_bound): Remove prototype.  Compile only if
23998         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23999         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
24000         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
24001         (ggc_min_heapsize_heuristic): Likewise.
24002
24003 2010-05-26  Richard Guenther  <rguenther@suse.de>
24004
24005         PR rtl-optimization/44164
24006         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
24007         no-common access-path disambiguation.
24008         (indirect_ref_may_alias_decl_p): Adjust.
24009         (indirect_refs_may_alias_p): Likewise.
24010         (refs_may_alias_p_1): Likewise.
24011
24012 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24013
24014         * c-typeck.c: Do not include expr.h.
24015
24016 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
24017
24018         * rtl.h (decl_default_tls_model): Move prototype from here...
24019         * output.h: ...to here.
24020         * c-decl.c: Do not include rtl.h.
24021         * c-pragma.c: Likewise.
24022         * c-parser.c: Likewise.
24023         * c-gimplify.c: Likewise.  And also not hard-reg-set.
24024         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
24025         FIXME note for it.  Add a FIXME note for expr.h.
24026         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
24027         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
24028         defined.
24029
24030 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
24031
24032         PR target/44199
24033         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
24034         or total_size is larger than red zone size for non-V4 ABI, emit a
24035         stack_tie resp. frame_tie insn before stack pointer restore.
24036         * config/rs6000/rs6000.md (frame_tie): New insn.
24037
24038 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
24039
24040         * function.h (struct function): Add can_throw_non_call_exceptions bit.
24041         * lto-streamer-in.c (input_function): Stream it in.
24042         * lto-streamer-out.c (output_function): Stream it out.
24043         * function.c (allocate_struct_function): Set it.
24044         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
24045         for flag_non_call_exceptions.
24046         * cfgbuild.c (control_flow_insn_p): Likewise.
24047         (make_edges): Likewise.
24048         * cfgexpand.c (expand_stack_alignment): Likewise.
24049         * combine.c (distribute_notes): Likewise.
24050         * cse.c (cse_extended_basic_block): Likewise.
24051         * except.c (insn_could_throw_p): Likewise.
24052         * gcse.c (simple_mem): Likewise.
24053         * ipa-pure-const.c (check_call): Likewise.
24054         (check_stmt ): Likewise.
24055         * lower-subreg.c (lower-subreg.c): Likewise.
24056         * optabs.c (emit_libcall_block): Likewise.
24057         (prepare_cmp_insn): Likewise.
24058         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
24059         * postreload.c (rest_of_handle_postreload): Likewise.
24060         * reload1.c (reload_as_needed): Likewise.
24061         (emit_input_reload_insns): Likewise.
24062         (emit_output_reload_insns): Likewise.
24063         (fixup_abnormal_edges): Likewise.
24064         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
24065         * store-motion.c (find_moveable_store): Likewise.
24066         * tree-eh.c (stmt_could_throw_p): Likewise.
24067         (tree_could_throw_p): Likewise.
24068         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
24069         * config/arm/arm.c (arm_expand_prologue): Likewise.
24070         (thumb1_expand_prologue): Likewise.
24071         * config/rx/rx.md (cbranchsf4): Likewise.
24072         (cmpsf): Likewise.
24073         * config/s390/s390.c (s390_emit_prologue): Likewise.
24074         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
24075         (inline_forbidden_into_p): New predicate.
24076         (expand_call_inline): Use it to forbid inlining.
24077         (tree_can_inline_p): Likewise.
24078
24079 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24080
24081         * config/i386/i386-c.c: Do not include rtl.h.
24082         * config/i386/t-i386: Update dependencies.
24083
24084 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24085
24086         * attribs.c: Do not include rtl.h.
24087         * Makefile.in: Update dependencies.
24088
24089 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
24090
24091         * double-int.h (double_int_and): New.
24092         * combine.c (try_combine): Clean up, use double_int_* and
24093         immed_double_int_const functions.
24094
24095 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24096
24097         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
24098         stderr to /dev/null instead of grep -q.
24099         * configure: Regenerate.
24100
24101 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
24102
24103         * Makefile.in (EXCEPT_H): Fix typo.
24104
24105 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
24106
24107         * ira-build.c (update_conflict_hard_reg_costs): New.
24108         (ira_build): Call update_conflict_hard_reg_costs.
24109
24110 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
24111
24112         PR debug/41371
24113         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
24114         ENABLE_CHECKING.
24115         (intersect_loc_chains): Walk the s2var's loc_chain together
24116         with s1node chain as long as the locations are equal, don't
24117         call find_loc_in_1pdv in that case.
24118
24119         PR debug/42801
24120         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
24121         (copy_bind_expr): ... instead of here.
24122         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
24123         if the block hasn't been remapped.
24124         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
24125         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
24126
24127 2010-05-25  Richard Guenther  <rguenther@suse.de>
24128
24129         PR middle-end/44069
24130         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
24131         out-of-bounds array accesses.
24132
24133 2010-05-25  Richard Guenther  <rguenther@suse.de>
24134
24135         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
24136         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
24137         (run_gcc): Re-organize to make cleanup easier.
24138
24139 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24140
24141         * config/s390/s390.c (optimization_options): Fix and move the
24142         flag_prefetch_loop_arrays override ...
24143         (override_options): ... here.
24144
24145 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
24146
24147         * diagnostic.c: Don't include plugin.h.
24148         (diagnostic_report_diagnostic): Don't handle plugins specially
24149         here.  Pass context to internal_error callback.
24150         * diagnostic.h (struct diagnostic_context): Add context parameter
24151         to internal_error callback.
24152         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
24153         * plugin.h (struct diagnostic_context): Declare.
24154         (warn_if_plugins, plugins_internal_error_function): Declare.
24155         * toplev.c (general_init): Set global_dc->internal_error.
24156         * Makefile.in (diagnostic.o): Update dependencies.
24157
24158 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
24159
24160         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
24161         * config/rs6000/t-darwin64: New.
24162         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
24163         build crt2.
24164
24165 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
24166
24167         PR 44203
24168         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
24169         match the original (and intended) behaviour before r159557.  This
24170         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
24171         in two ways.
24172
24173 2010-05-25  Richard Guenther  <rguenther@suse.de>
24174
24175         * doc/invoke.texi: Document -Ofast.
24176         * target.h (struct gcc_target): Add handle_ofast.
24177         * target-def.h (TARGET_HANDLE_OFAST): Add.
24178         (TARGET_INITIALIZER): Adjust.
24179         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
24180         * common.opt (Ofast): Add.
24181
24182 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
24183
24184         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
24185         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
24186
24187 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
24188
24189         PR target/43610
24190         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
24191         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
24192         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
24193         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
24194
24195 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
24196
24197         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
24198         DW_OP_minus with negated offset instead of DW_OP_plus.
24199         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
24200
24201 2010-05-25  Wei Guozhi  <carrot@google.com>
24202
24203         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
24204         tst instruction and a new alternative.
24205         * config/arm/constraints.md (Pu): New constraint.
24206
24207 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
24208
24209         * function.c (assign_stack_local_1): Initialize variable
24210         to avoid warning when bootstrapping at -O3.
24211
24212 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
24213
24214         * configure.ac (all_lang_makefiles): Remove everything related to it.
24215         * configure: Regenerate.
24216         * Makefile.in: Fix reference to ada Make-lang.in.
24217         Remove support for LANG_MAKEFILES.
24218
24219 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
24220             Sandra Loosemore  <sandra@codesourcery.com>
24221
24222         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
24223         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
24224         description.  Add arm_neon_fp16_ok.
24225         (Add Options): Add arm_neon and arm_neon_fp16.
24226
24227 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
24228
24229         * diagnostic.c: Don't include flags.h.
24230         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
24231         context parameters.  Check flags in the context passed as a parameter.
24232         (diagnostic_build_prefix): Add context parameter.  Check
24233         show_column flag in context.
24234         (diagnostic_action_after_output): Check fatal_errors flag in context.
24235         (diagnostic_report_current_module): Check show_column flag in context.
24236         (default_diagnostic_starter): Update call to
24237         diagnostic_build_prefix.
24238         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
24239         (emit_diagnostic): Pass context to permissive_error_kind.
24240         (permerror): Pass context to permissive_error_kind.
24241         * diagnostic.h (struct diagnostic_context): Add show_column,
24242         pedantic_errors, permissive and fatal_errors fields.
24243         (diagnostic_build_prefix): Update prototype.
24244         * langhooks.c
24245         * toplev.c (process_options): Set flags in global_dc from
24246         flag_show_column, flag_pedantic_errors, flag_permissive,
24247         flag_fatal_errors.
24248         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
24249         to diagnostic_build_prefix.
24250         * Makefile.in (diagnostic.o): Update dependencies.
24251
24252 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
24253
24254         * config/i386/ia32intrin.h (__crc32q): Define only if
24255         __SSE4_2__ is defined.
24256
24257 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
24258
24259         PR target/44132
24260         PR middle-end/43602
24261         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
24262         DECL_VISIBILITY_SPECIFIED.
24263         (emutls_decl): Set DECL_PRESERVE_P and copy
24264         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
24265         (emutls_finalize_control_var): New callback.
24266         (emutls_finish): Finalize emutls control variables.
24267         * toplev.c (compile_file): Move the call to emutls_finish ()
24268         before varpool_assemble_pending_decls ().
24269
24270 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
24271
24272         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
24273         added to the preprocessor condition.
24274
24275 2010-05-24  Paul Brook  <paul@codesourcery.com>
24276
24277         * gengtype-lex.l: Add HARD_REG_SET.
24278         * expr.c (expand_expr_real_1): Record writes to hard registers.
24279         * function.c (rtl_data): Add asm_clobbers.
24280         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
24281         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
24282         Use crtl->asm_clobbers.
24283
24284 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24285
24286         * doc/makefile.texi (Makefile): Mention stages 'profile'
24287         and 'feedback' for profiledbootstrap.
24288
24289 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
24290
24291         PR target/44245
24292         * config/i386/i386.c (def_builtin): Properly check
24293         OPTION_MASK_ISA_64BIT.
24294
24295 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
24296
24297         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
24298         typedefs with different but compatible types.  Allow duplicate
24299         typedefs with the same type except for pedantic non-C1X, but give
24300         warning for variably modified types.
24301         * c-typeck.c (tagged_types_tu_compatible_p,
24302         function_types_compatible_p, type_lists_compatible_p,
24303         comptypes_internal): Add parameter different_types_p; set
24304         *different_types_p for different but compatible types.  All
24305         callers changed.
24306         (comptypes_check_different_types): New.
24307         * c-tree.h (comptypes_check_different_types): Declare.
24308
24309 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
24310
24311         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
24312         * jump.c: Include basic-block.h.
24313         * profile.c: Likewise.
24314         * tree-profile.c: Likewise.
24315         * coverage.c: Likewise.
24316         * basic-block.h (optimize_function_for_size_p): Move to function.h.
24317         (optimize_function_for_speed_p): Likewise.
24318         * function.h (optimize_function_for_size_p,
24319         optimize_function_for_speed_p): Moved here from basic-block.h.
24320         * Makefile.in: Update dependencies.
24321
24322 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24323
24324         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
24325         before calling make; allow override through $MAKE.
24326         * doc/invoke.texi (Optimize Options): Document override.
24327
24328 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
24329
24330         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
24331         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24332         (rs6000_mode_dependent_address_ptr): Make static.
24333         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24334         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
24335         Remove.
24336
24337 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
24338
24339         PR target/43869
24340         * config/i386/i386.c: Make sure that the correct regparm is passed.
24341
24342 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
24343
24344         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
24345         * sbitmap.c: ...to here to internalize sbitmap element access.
24346         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
24347         Explain why basic-block.h is included.
24348         * function.h: Include tm.h for CUMULATIVE_ARGS.
24349         * Makefile.in: Update dependencies.
24350
24351 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
24352
24353         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
24354         New core types.
24355         * sbitmap.h (struct sbitmap_def): Do not typedef here.
24356         * sbitmap.c: Include sbitmap.h.
24357         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
24358         hard-reg-set.h.  Split everything related to regsets out from here...
24359         * regset.h: ...to here.  New file.
24360         * df.h: Include regset.h and sbitmap.h.
24361         * tree-flow.h: Likewise.
24362         * cfgloop.h: Likewise.
24363         * except.h: Do not include sbitmap.h.  Include hashtab.h.
24364         * cgraph.h: Include vec.h and function.h.
24365         * reload.h (struct insn_chain): Change types of live_throughout
24366         and dead_or_set from regset_head to bitmap_head.
24367         (compute_use_by_pseudos): Be defined also if regset.h is not included.
24368         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
24369         spilled_regs from regset_head to bitmap_head to avoid dependency
24370         in regset.h.
24371         * sel-sched-ir.h: Include regset.h.
24372         * reload.c: Include df.h before reload.h.
24373         * caller-save.c: Likewise.
24374         * reload1.c: Likewise.
24375         * ira.c: Likewise.
24376         (mark_elimination): Update type of r to bitmap, consistent with
24377         DF_LR_IN.
24378         * dominance.c: Include bitmap.h.
24379         * modulo-sched.c: Include df.h.
24380         * cfganal.c: Include bitmap.h and sbitmap.h.
24381         * cfgbuild.c: Include sbitmap.h.
24382         * lcm.c: Include sbitmap.h.
24383         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
24384         * domwalk.c: Include sbitmap.h, exclude ggc.h.
24385         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
24386         * cselib.c: Include bitmap.h.
24387         * tree-optimize.c: Include regset.h.
24388         * stmt.c: Include bitmap.h.
24389         * Makefile.in: Update dependencies.
24390
24391 2010-05-22  Jan Hubicka  <jh@suse.cz>
24392
24393         * cgraph.h (struct varpool_node): Add same_comdat_group.
24394         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
24395         pointer.
24396         (output_varpool): Update call of lto_output_varpool_node.
24397         (input_varpool): Read same_comdat_group pointer.
24398         (input_varpool_1): Fixup same_comdat_group pointer.
24399         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
24400         group is needed, all are.
24401         * varpool.c (varpool_remove_node): Remove node from same comdat group
24402         linklist too.
24403         (varpool_analyze_pending_decls): Walk same comdat groups.
24404
24405 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
24406
24407         * rtl.h (union rtunion_def): Remove rt_bit member.
24408         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
24409         * print-rtl (print_rtx): Do not print the member.
24410         * gengtype.c (adjust_field_rtx_def): Do not handle it.
24411         * gengenrtl.c (type_from_format): Likewise.
24412         (accessor_from_format): Likewise.
24413
24414 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
24415
24416         * dbgcnt.c: Include toplev.h instead of errors.h.
24417         * ira-emit.c: Don't include errors.h.
24418         * ira.c: Include toplev.h instead of errors.h.
24419         * lto-compress.c: Include toplev.h instead of errors.h.
24420         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
24421         ira.o, dbgcnt.o): Update dependencies.
24422
24423 2010-05-22  Richard Guenther  <rguenther@suse.de>
24424
24425         * gimple.c (gimple_types_compatible_p): Check type qualifications
24426         before merging pointer to complete and pointer to incomplete type.
24427         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
24428         we use our own resolution algorithm.  The gold linker plugin
24429         doesn't do the job we want it to do here.
24430
24431 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
24432
24433         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24434         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24435         (sparc_mode_dependent_address_p): New function.
24436
24437 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24438
24439         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
24440
24441         * timevar.c: Do not include any core headers.
24442         (timevar_print): De-i18n-ize.
24443         (print_time): Likewise.
24444         * timevar.h (timevar_push, timevar_pop): Make inline functions.
24445
24446 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
24447
24448         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
24449         langhooks-def.h.
24450         (diagnostic_initialize): Initialize x_data not last_function.
24451         (diagnostic_report_current_function): Move to tree-diagnostic.c.
24452         (default_diagnostic_starter): Call
24453         diagnostic_report_current_module not
24454         diagnostic_report_current_function.
24455         (diagnostic_report_diagnostic): Initialize x_data not
24456         abstract_origin.
24457         (verbatim): Likewise.
24458         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
24459         x_data.
24460         (struct diagnostic_context): Change last_function to x_data.
24461         (diagnostic_auxiliary_data): Replace with
24462         diagnostic_context_auxiliary_data and
24463         diagnostic_info_auxiliary_data.
24464         (diagnostic_last_function_changed, diagnostic_set_last_function,
24465         diagnostic_report_current_function): Move to tree-diagnostic.h.
24466         (print_declaration, dump_generic_node, print_generic_stmt,
24467         print_generic_stmt_indented, print_generic_expr,
24468         print_generic_decl, debug_c_tree, dump_omp_clauses,
24469         print_call_name, debug_generic_expr, debug_generic_stmt,
24470         debug_tree_chain, default_tree_printer): Move to
24471         tree-pretty-print.h.
24472         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
24473         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
24474         gimple-pretty-print.h.
24475         * pretty-print.c: Don't include tree.h
24476         (pp_base_format): Don't handle %K here.
24477         (pp_base_tree_identifier): Move to tree-pretty-print.c.
24478         * pretty-print.h (text_info): Change abstract_origin to x_data.
24479         (pp_tree_identifier, pp_unsupported_tree,
24480         pp_base_tree_identifier): Move to tree-pretty-print.h.
24481         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
24482         tree-pretty-print.h: New files.
24483         * tree-pretty-print.c: Include tree-pretty-print.h.
24484         (percent_K_format): New.  Moved from pretty-print.c.
24485         (pp_base_tree_identifier): Move from pretty-print.c.
24486         * c-objc-common.c: Include tree-pretty-print.h.
24487         (c_tree_printer): Handle %K here.
24488         * langhooks.c: Include tree-diagnostic.h.
24489         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
24490         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
24491         (default_tree_printer): Handle %K using percent_K_format.
24492         (general_init): Use default_tree_diagnostic_starter.
24493         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
24494         (free_lang_data): Use default_tree_diagnostic_starter.
24495         * c-pretty-print.c: Include tree-pretty-print.h.
24496         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24497         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24498         * dwarf2out.c: Include tree-pretty-print.h.
24499         * except.c: Include tree-pretty-print.h.
24500         * gimple-pretty-print.c: Include tree-pretty-print.h and
24501         gimple-pretty-print.h.
24502         * gimplify.c: Include tree-pretty-print.h.
24503         * graphite-poly.c: Include tree-pretty-print.h and
24504         gimple-pretty-print.h.
24505         * ipa-cp.c: Include tree-pretty-print.h.
24506         * ipa-inline.c: Include gimple-pretty-print.h.
24507         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24508         * ipa-pure-const.c: Include gimple-pretty-print.h.
24509         * ipa-struct-reorg.c: Include tree-pretty-print.h and
24510         gimple-pretty-print.h.
24511         * ipa-type-escape.c: Include tree-pretty-print.h.
24512         * print-rtl.c: Include tree-pretty-print.h.
24513         * print-tree.c: Include gimple-pretty-print.h.
24514         * sese.c: Include tree-pretty-print.h.
24515         * tree-affine.c: Include tree-pretty-print.h.
24516         * tree-browser.c: Include tree-pretty-print.h.
24517         * tree-call-cdce.c: Include gimple-pretty-print.h.
24518         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24519         * tree-chrec.c: Include tree-pretty-print.h.
24520         * tree-data-ref.c: Include tree-pretty-print.h and
24521         gimple-pretty-print.h.
24522         * tree-dfa.c: Include tree-pretty-print.h.
24523         * tree-if-conv.c: Include tree-pretty-print.h and
24524         gimple-pretty-print.h.
24525         * tree-inline.c: Include tree-pretty-print.h.
24526         * tree-into-ssa.c: Include tree-pretty-print.h and
24527         gimple-pretty-print.h.
24528         * tree-nrv.c: Include tree-pretty-print.h.
24529         * tree-object-size.c: Include tree-pretty-print.h and
24530         gimple-pretty-print.h.
24531         * tree-outof-ssa.c: Include tree-pretty-print.h and
24532         gimple-pretty-print.h.
24533         * tree-parloops.c: Include tree-pretty-print.h and
24534         gimple-pretty-print.h.
24535         * tree-predcom.c: Include tree-pretty-print.h and
24536         gimple-pretty-print.h.
24537         * tree-scalar-evolution.c: Include tree-pretty-print.h and
24538         gimple-pretty-print.h.
24539         * tree-sra.c: Include tree-pretty-print.h.
24540         * tree-ssa-address.c: Include tree-pretty-print.h.
24541         * tree-ssa-alias.c: Include tree-pretty-print.h.
24542         * tree-ssa-ccp.c: Include tree-pretty-print.h and
24543         gimple-pretty-print.h.
24544         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
24545         * tree-ssa-copy.c: Include tree-pretty-print.h and
24546         gimple-pretty-print.h.
24547         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
24548         * tree-ssa-dce.c: Include tree-pretty-print.h and
24549         gimple-pretty-print.h.
24550         * tree-ssa-dom.c: Include tree-pretty-print.h and
24551         gimple-pretty-print.h.
24552         * tree-ssa-dse.c: Include gimple-pretty-print.h.
24553         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
24554         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
24555         * tree-ssa-live.c: Include tree-pretty-print.h and
24556         gimple-pretty-print.h.
24557         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
24558         gimple-pretty-print.h.
24559         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
24560         gimple-pretty-print.h.
24561         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
24562         gimple-pretty-print.h.
24563         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
24564         gimple-pretty-print.h.
24565         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
24566         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
24567         * tree-ssa-operands.c: Include tree-pretty-print.h and
24568         gimple-pretty-print.h.
24569         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
24570         gimple-pretty-print.h.
24571         * tree-ssa-pre.c: Include tree-pretty-print.h and
24572         gimple-pretty-print.h.
24573         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
24574         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
24575         gimple-pretty-print.h.
24576         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
24577         gimple-pretty-print.h.
24578         * tree-ssa-sink.c: Include gimple-pretty-print.h.
24579         * tree-ssa-ter.c: Include tree-pretty-print.h and
24580         gimple-pretty-print.h.
24581         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
24582         * tree-ssa.c: Include tree-pretty-print.h and
24583         gimple-pretty-print.h.
24584         * tree-stdarg.c: Include gimple-pretty-print.h.
24585         * tree-switch-conversion.c: Include gimple-pretty-print.h.
24586         * tree-tailcall.c: Include tree-pretty-print.h and
24587         gimple-pretty-print.h.
24588         * tree-vect-data-refs.c: Include tree-pretty-print.h and
24589         gimple-pretty-print.h.
24590         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
24591         gimple-pretty-print.h.
24592         * tree-vect-loop.c: Include tree-pretty-print.h and
24593         gimple-pretty-print.h.
24594         * tree-vect-patterns.c: Include gimple-pretty-print.h.
24595         * tree-vect-slp.c: Include tree-pretty-print.h and
24596         gimple-pretty-print.h.
24597         * tree-vect-stmts.c: Include tree-pretty-print.h and
24598         gimple-pretty-print.h.
24599         * tree-vectorizer.c: Include tree-pretty-print.h.
24600         * tree-vrp.c: Include tree-pretty-print.h and
24601         gimple-pretty-print.h.
24602         * value-prof.c: Include tree-pretty-print.h and
24603         gimple-pretty-print.h.
24604         * var-tracking.c: Include tree-pretty-print.h.
24605         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
24606         (tree-diagnostic.o): New dependencies.
24607         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
24608         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
24609         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
24610         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
24611         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
24612         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
24613         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
24614         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
24615         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
24616         tree-ssa-address.o, tree-ssa-loop-niter.o,
24617         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
24618         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
24619         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
24620         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
24621         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
24622         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
24623         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
24624         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
24625         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
24626         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
24627         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
24628         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
24629         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
24630         tree-switch-conversion.o, var-tracking.o, value-prof.o,
24631         cfgexpand.o, pretty-print.o): Update dependencies.
24632
24633 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
24634
24635         * tree-ssa-structalias.c: Remove tm_p.h from include.
24636
24637 2010-05-21  Jeff Law  <law@redhat.com>
24638
24639         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
24640
24641 2010-05-21  Jason Merrill  <jason@redhat.com>
24642
24643         * tree-eh.c (cleanup_is_dead_in): New.
24644         (lower_try_finally): Don't generate a dead cleanup region.
24645         (lower_cleanup): Likewise.
24646
24647 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
24648
24649         PR debug/44223
24650         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
24651         unchain each use from the cyclic next_regno_use chain first.
24652
24653 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24654
24655         * real: Do not include gmp.h, mpfr.h, and mpc.h.
24656         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
24657         (real_value_negate, real_value_abs): New prototypes.
24658         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
24659         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
24660         new include file for interface between MPFR and REAL_VALUE_TYPE.
24661         * real.c: Include realmpfr.h.
24662         (real_arithmetic2): Remove legacy function.
24663         (real_value_negate): New.
24664         (real_value_abs): New.
24665         (mfpr_from_real, real_from_mpfr): Move from here...
24666         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
24667         * builtins.c: Include realmpfr.h.
24668         * fold-const.c: Include realmpfr.h.
24669         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
24670         (fold_negate_const): Likewise.
24671         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
24672         * toplev.c: Include realmpfr.h.
24673         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
24674         and real_value_negate.
24675         * fixed-value.c (check_real_for_fixed_mode): Likewise.
24676         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
24677         (vfp3_const_double_index): Likewise.
24678         (arm_print_operand): Likewise.
24679         * Makefile.in: Update dependencies.
24680
24681 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24682
24683         * config/s390/s390.c (override_options): Increase the default
24684         of max-completely-peel-times.
24685
24686 2010-05-21  Julian Brown  <julian@codesourcery.com>
24687             Mark Mitchell  <mark@codesourcery.com>
24688
24689         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
24690         sibling calls for Thumb-1.
24691         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
24692         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
24693         Thumb-2.
24694         (*call_insn, *call_value_insn): Don't use for Thumb-2.
24695         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
24696         for Thumb-2.
24697         (return): New expander.
24698         (*arm_return): New name for ARM return insn.
24699         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
24700
24701 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
24702
24703         * config.gcc (sparc64-*-rtems*): New target.
24704
24705 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
24706
24707         * tree.c (build_function_decl_skip_args): Fix grammar.
24708         (build_function_type_list_1): Fix typos, adjust formatting.
24709
24710 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24711
24712         * tree.h: Include real.h and fixed-value.h as basic datatypes.
24713         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
24714         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
24715         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
24716         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
24717         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
24718         tree-pretty-print.c, tree-loop-distribution.c,
24719         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
24720         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
24721         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
24722         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
24723         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
24724         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
24725         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
24726         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
24727         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
24728         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
24729         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
24730         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
24731         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
24732         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
24733         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
24734         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
24735         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
24736         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
24737         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
24738         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
24739         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
24740         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
24741         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
24742         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
24743         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
24744         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
24745         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
24746         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
24747         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
24748         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
24749         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
24750         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
24751         config/score/score7.c, config/score/score.c, config/arm/arm.c,
24752         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
24753         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
24754         config/bfin/bfin.c: Clean up redundant includes.
24755         * Makefile.in: Update accordingly.
24756
24757 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
24758
24759         PR middle-end/44204
24760         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
24761         statement has no arguments.
24762
24763 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
24764
24765         PR/44139
24766         * varasm.c (emutls_decl): Merge attributes to new decl.
24767
24768 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
24769
24770         PR middle-end/44101
24771         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
24772         around the uniquized constructor if its type requires a conversion.
24773
24774 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
24775
24776         PR debug/44205
24777         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
24778         at -O0 goto_locus of any of the incoming edges differs from
24779         goto_locus of outgoing edge, or gimple_location of any of the
24780         labels differs.
24781
24782 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
24783
24784         * ira.c (ira_non_ordered_class_hard_regs): Define.
24785         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
24786         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
24787         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
24788         cost of unaligned hard regs when allocating multi-reg pseudos.
24789
24790 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24791
24792         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
24793         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
24794         for TARGET_NO_FLOAT.
24795         * config/mips/mips.c (mips_file_start): Expand conditional expression
24796         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
24797         (mips_override_options): Move -mno-float override -msoft-float and
24798         -mhard-float.
24799         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
24800         Condition(TARGET_SUPPORTS_NO_FLOAT).
24801         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
24802         __mips_no_float here.
24803         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
24804         (TARGET_SUPPORTS_NO_FLOAT): Define.
24805         * config/mips/sdemtk.opt: Delete.
24806
24807 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
24808
24809         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
24810
24811 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
24812
24813         PR target/43733
24814         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
24815         * configure: Regenerate.
24816         * config.in: Regenerate.
24817         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
24818         instead of sahf only for 64bit targets.
24819
24820 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
24821
24822         PR debug/44178
24823         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
24824         setup_ref_regs for DEBUG_INSNs.
24825
24826 2010-05-20  Jan Hubicka  <jh@suse.cz>
24827
24828         PR middle-end/44197
24829         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
24830
24831 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24832
24833         PR bootstrap/43870
24834         * df-scan.c (df_ref_compare): Stabilize sort.
24835
24836 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
24837
24838         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
24839         argument.  Don't use DW_OP_piece if offset is non-zero,
24840         put offset into second DW_OP_bit_piece argument.
24841         (dw_sra_loc_expr): Adjust callers.  For memory expressions
24842         compute offset.
24843
24844 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
24845
24846         PR target/44202
24847         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
24848         settings for 16-bit-constant "addo" alternative.
24849
24850 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
24851
24852         * config/mips/mips-dsp.md (add<DSPV:mode>3,
24853         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
24854
24855         PR target/43764
24856         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
24857         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
24858         Use it.
24859
24860 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
24861
24862         * diagnostic.c (FLOAT, FFS): Don't undefine.
24863         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
24864         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
24865         include ordering.
24866
24867 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24868
24869         * combine.c (propagate_for_debug): Call make_compound_operation
24870         on the source value.
24871         (try_combine): When implementing a split chosen by find_split_point,
24872         either copy i2src or set it to null.  Assert that i2src is not null
24873         before substituting into CALL_INSN_FUNCTION_USAGE.
24874
24875 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
24876
24877         * double-int.h (double_int_ior): New function.
24878         * tree.h (build_int_cst_wide_type): Remove.
24879         * tree.c (build_int_cst_wide_type): Remove.
24880         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
24881         of build_int_cst_wide_type.
24882         * stor-layout.c (set_sizetype): (Ditto.).
24883         * dojump.c (do_jump): Use build_int_cstu instead of
24884         build_int_cst_wide_type.
24885
24886 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24887
24888         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
24889         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
24890         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
24891         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
24892         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
24893         propagate the 'data' argument to copy_tree_r.
24894         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
24895         Propagate 'data' argument to walk_tree.
24896         (copy_if_shared): New function.
24897         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
24898         (unmark_visited): New function.
24899         (unshare_body): Call copy_if_shared instead of doing it manually.
24900         (unvisit_body): Call unmark_visited instead of doing it manually.
24901
24902 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
24903
24904         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
24905         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
24906         * hooks.c: Likewise.
24907         * target-def.h (TARGET_FOLD_BUILTIN): Define to
24908         hook_tree_tree_int_treep_bool_null.
24909         * target.h (struct gcc_target): Update signature of fold_builtin
24910         field.
24911         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
24912         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
24913         instead of the call expression.
24914         (fold_builtin_call_array): Pass n and argarray directly.
24915         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
24916         consing a list.
24917         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
24918         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
24919         `i' and use it in place of `arity'.
24920         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
24921         Dereference `args' directly.
24922         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
24923
24924 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24925
24926         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24927         3dnow, sse3, sse2.
24928         (Directives): Document optional dg-require-effective-target
24929         selector.
24930
24931 2010-05-19  Richard Guenther  <rguenther@suse.de>
24932
24933         PR lto/44196
24934         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
24935
24936 2010-05-19  Richard Guenther  <rguenther@suse.de>
24937
24938         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
24939         * common.opt (fwhopr=): New.
24940         * opts.c (common_handle_option): Handle OPT_fwhopr.
24941         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
24942         * collect2.c (main): Match -fwhopr*.
24943         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
24944         Execute ltrans stage in parallel when jobs is bigger than 1.
24945
24946 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24947
24948         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
24949         pentiumpro on Solaris 8/x86 with Sun as.
24950         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
24951         hidden alias bug.
24952         (gcc_cv_as_ix86_quad): Check for .quad directive.
24953         * configure: Regenerate.
24954         * config.in: Regenerate.
24955         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
24956
24957 2010-05-19  Martin Jambor  <mjambor@suse.cz>
24958
24959         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24960         also for indirect edges.  Actual printing moved...
24961         (ipa_print_node_jump_functions_for_edge): ...here.
24962         (ipa_compute_jump_functions): Renamed to
24963         ipa_compute_jump_functions_for_edge and made static.
24964         (ipa_compute_jump_functions): New function.
24965         (make_edge_direct_to_target): Check if the number of arguments on
24966         the newly direct edge is the same as the number of parametrs of
24967         the callee.
24968         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24969         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
24970         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24971         analysis functions unconditionally, call the new
24972         ipa_analyze_params_uses on the node instead of every edge.
24973
24974 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
24975
24976         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24977         to tree.
24978         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
24979         also checks for a constant int vs.  non-constant but
24980         loop-invariant steps.
24981         (find_or_create_group): Change the sort algorithm to only consider
24982         steps that are constant ints.
24983         (idx_analyze_ref): Adopt code to handle a tree instead of a
24984         HOST_WIDE_INT for step.
24985         (gather_memory_references_ref): Handle tree instead of int and be
24986         prepared to see a NULL_TREE.
24987         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24988         prefetches if the step cannot be calculated at compile time.
24989         (issue_prefetch_ref): Issue prefetches for non-constant but
24990         loop-invariant steps.
24991
24992 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24993
24994         Revert:
24995         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24996
24997         * tree.h (build_call_list): Remove.
24998         * tree.c (build_call_list): Remove.
24999
25000 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
25001
25002         * tree.h (build_call_list): Remove.
25003         * tree.c (build_call_list): Remove.
25004
25005 2010-05-18  Jan Hubicka  <jh@suse.cz>
25006
25007         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
25008
25009 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
25010
25011         PR rtl-optimization/43332
25012         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
25013
25014 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
25015
25016         * tree.h (build_int_cstu): Implement as static inline.
25017         * tree.c (build_int_cstu): Remove function.
25018         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
25019         sign extended.
25020
25021 2010-05-18  Richard Guenther  <rguenther@suse.de>
25022
25023         PR lto/44143
25024         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
25025         (debug): Initialize from -save-temps.
25026         (collect_execute): Print command-line when verbose.
25027         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
25028         for ltrans invocation.  Produce -dumpbase flag again.
25029         (process_args): Remove.
25030         (main): Simplify.
25031         * collect2.c (maybe_run_lto_and_relink): Only pass object
25032         files to lto-wrapper.
25033         * gcc.c (LINK_COMMAND_SPEC): Likewise.
25034
25035 2010-05-18  Jan Hubicka  <jh@suse.cz>
25036
25037         * opts.c (decode_options): Do not disable whopr at ipa_cp.
25038         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
25039
25040 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
25041
25042         PR lto/44184
25043         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
25044         in a GIMPLE_ASM.
25045         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
25046         in a GIMPLE_ASM.
25047
25048 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
25049
25050         PR debug/41371
25051         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
25052         rtx_equal_p inline.
25053
25054 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
25055
25056         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
25057         lto-macho as lto_binary_reader.
25058
25059         * darwin.c (darwin_asm_named_section): Do not add assembler comment
25060         after .section directive; just print it before the directive instead.
25061
25062 2010-05-17  Jan Hubicka  <jh@suse.cz>
25063
25064         * cgraph.c (cgraph_create_virtual_clone): Only check
25065         versionable_function_p when not in wpa and checking is enabled.
25066         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
25067         there are no more functions to materialize.
25068
25069 2010-05-17  Jan Hubicka  <jh@suse.cz>
25070
25071         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
25072         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
25073         New functions.
25074         (output_cgraph): Call output_cgraph_opt_summary.
25075         (input_cgrpah): Call input_cgraph_opt_summary.
25076         (output_cgraph_opt_summary_p, output_node_opt_summary,
25077         input_node_opt_summary, input_cgraph_opt_section): New functions.
25078         * lto-section-in.c (lto_section_name): Add cgraphopt.
25079         * tree-inline.c (tree_function_versioning): Handle parm_num.
25080         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
25081         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
25082
25083 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
25084
25085         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
25086         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
25087         the insn to prefetch ratio heuristic to loops with known trip count.
25088
25089 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
25090
25091         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
25092         (schedule_prefetches): Do not generate a prefetch if the unroll factor
25093         is far from what is required by the prefetch.
25094
25095 2010-05-17  Jan Hubicka  <jh@suse.cz>
25096
25097         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
25098         (ipcp_estimate_growth): Likewise.
25099         (ipcp_const_param_count): Likewise.
25100         (ipcp_insert_stage): Likewise.
25101         * ipa-prop.c (visit_load_for_mod_analysis): New function.
25102         (visit_store_addr_for_mod_analysis): Set used flag.
25103         (ipa_detect_param_modifications): Set used flag for SSE params;
25104         update use of walk_stmt_load_store_addr_ops.
25105         (ipa_print_node_params): Print used flag.
25106         (ipa_write_node_info): Stream used flag.
25107         (ipa_read_node_info): Likewise.
25108         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
25109         (ipa_is_param_used): New function.
25110         (lto_ipa_fixup_call_notes): Remove unused declaration.
25111
25112 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25113
25114         PR target/44074
25115         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
25116         * configure: Regenerate.
25117         * config.in: Regenerate.
25118         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
25119         !HAVE_AS_IX86_REP_LOCK_PREFIX.
25120         Don't emit whitespace.
25121         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
25122         (*rep_movsi): Likewise.
25123         (*rep_movsi_rex64): Likewise.
25124         (*rep_movqi): Likewise.
25125         (*rep_movqi_rex64): Likewise.
25126         (*rep_stosdi_rex64): Likewise.
25127         (*rep_stossi): Likewise.
25128         (*rep_stossi_rex64): Likewise.
25129         (*rep_stosqi): Likewise.
25130         (*rep_stosqi_rex64): Likewise.
25131         (*cmpstrnqi_nz_1): Use {%;} after repz.
25132         (*cmpstrnqi_nz_rex_1): Likewise.
25133         (*cmpstrnqi_1): Likewise.
25134         (*cmpstrnqi_rex_1): Likewise.
25135         (*strlenqi_1): Use {%;} after repnz.
25136         (*strlenqi_rex_1): Likewise.
25137         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
25138         (*sync_compare_and_swap<mode>): Likewise.
25139         (sync_double_compare_and_swap<mode>): Likewise.
25140         (*sync_double_compare_and_swapdi_pic): Likewise.
25141         (sync_old_add<mode>): Likewise.
25142         (sync_add<mode>): Likewise.
25143         (sync_sub<mode>): Likewise.
25144         (sync_<code><mode>): Likewise.
25145
25146 2010-05-17  Martin Jambor  <mjambor@suse.cz>
25147
25148         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
25149         otr_token and polymorphic.
25150         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
25151         (cgraph_clone_edge): Copy the above fields.
25152         * tree.c (get_binfo_at_offset): New function.
25153         * tree.h (get_binfo_at_offset): Declare.
25154         * ipa-prop.h (enum jump_func_type): Added known_type jump function
25155         type, reordered items, updated comments.
25156         (union jump_func_value): Added base_type field, reordered fields.
25157         (enum ipa_lattice_type): Moved down in the file.
25158         (struct ipa_param_descriptor): New field polymorphic.
25159         (ipa_is_param_polymorphic): New function.
25160         * ipa-prop.c: Include gimple.h and gimple-fold.h.
25161         (ipa_print_node_jump_functions): Print known type jump functions.
25162         (compute_complex_pass_through): Renamed to...
25163         (compute_complex_assign_jump_func): this.
25164         (compute_complex_ancestor_jump_func): New function.
25165         (compute_known_type_jump_func): Likewise.
25166         (compute_scalar_jump_functions): Create known type and complex ancestor
25167         jump functions.
25168         (ipa_note_param_call): New parameter polymorphic, set the corresponding
25169         flag in the call note accordingly.
25170         (ipa_analyze_call_uses): Renamed to...
25171         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
25172         variable var only in the block where it is used.
25173         (ipa_analyze_virtual_call_uses): New function.
25174         (ipa_analyze_call_uses): Likewise.
25175         (combine_known_type_and_ancestor_jfs): Likewise.
25176         (update_jump_functions_after_inlining): Implemented handling of a
25177         number of new jump function types combination.
25178         (print_edge_addition_message): Removed.
25179         (make_edge_direct_to_target): New function.
25180         (try_make_edge_direct_simple_call): Likewise.
25181         (try_make_edge_direct_virtual_call): Likewise.
25182         (update_call_notes_after_inlining): Renamed to...
25183         (update_indirect_edges_after_inlining): this.  Moved edge creation for
25184         indirect calls to try_make_edge_direct_simple_call, also calls
25185         try_make_edge_direct_virtual_call for virtual calls.
25186         (ipa_print_node_params): Changed the header message.
25187         (ipa_write_jump_function): Stream also known type jump functions.
25188         (ipa_read_jump_function): Likewise.
25189         (ipa_write_indirect_edge_info): Stream new fields in
25190         cgraph_indirect_call_info.
25191         (ipa_read_indirect_edge_info): Likewise.
25192         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
25193         GIMPLE_FOLD_H.
25194
25195 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25196
25197         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
25198
25199 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
25200
25201         * tree.h (CALL_EXPR_ARGS): Delete.
25202         (call_expr_arglist): Delete.
25203         * tree.c (call_expr_arglist): Delete.
25204         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
25205         targetm.fold_builtin.
25206         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
25207         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
25208         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
25209         arglist parameter.  Use CALL_EXPR_ARG.
25210         (picochip_expand_builtin_3op): Likewise.
25211         (picochip_expand_builtin_2opvoid): Likewise.
25212         (picochip_expand_array_get): Likewise.
25213         (picochip_expand_array_put): Likewise.
25214         (picochip_expand_array_testport): Likewise.
25215         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
25216         rather than arglist.
25217         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
25218         CALL_EXPR_ARGS.
25219         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
25220         than TREE_VALUE and TREE_CHAIN.
25221         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
25222         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
25223         the arglist.
25224
25225 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
25226
25227         PR bootstrap/42347
25228         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
25229         to have no fallthru edge.
25230
25231         PR middle-end/44102
25232         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
25233         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
25234         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
25235         add BARRIER after previous bb if needed.
25236
25237 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
25238
25239         * tree.c (build_function_type_list_1): Remove bogus assert condition.
25240
25241 2010-05-17  Alan Modra  <amodra@gmail.com>
25242
25243         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
25244         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
25245         with copy_reg rtx param.
25246         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
25247         Correct cases where code for ABI_V4 did not initialise the reg
25248         used to access frame.  Also leave frame_reg_rtx as sp for large
25249         frames that save no regs.
25250
25251 2010-05-17  Martin Jambor  <mjambor@suse.cz>
25252
25253         PR middle-end/44133
25254         * tree-sra.c (create_access_replacement): New parameter rename, mark
25255         the replaement for renaming only when it is true.
25256         (get_access_replacement): Pass true in the rename parameter of
25257         create_access_replacement.
25258         (get_unrenamed_access_replacement): New function.
25259         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
25260         replacement declaration from it.
25261
25262 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
25263
25264         * function.c (try_fit_stack_local, add_frame_space): New static
25265         functions.
25266         (assign_stack_local_1): Use them.  Look for opportunities to use
25267         space previously wasted on alignment.
25268         * function.h (struct frame_space): New.
25269         (struct rtl_data): Add FRAME_SPACE_LIST member.
25270         * reload1.c (something_was_spilled): New static variable.
25271         (alter_reg): Set it.
25272         (reload): Test it in addition to testing if the frame size changed.
25273
25274 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
25275
25276         * config/s390/s390.c: Define sane prefetch settings and activate
25277         flag_prefetch_loop_arrays on -O3.
25278         * config/s390/s390.h: Declare that read can use write prefetch.
25279
25280 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
25281
25282         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
25283         build.
25284
25285 2010-05-16  Jan Hubicka  <jh@suse.cz>
25286
25287         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
25288         function body; do not check stdarg field of struct function.
25289
25290 2010-05-16  Jan Hubicka  <jh@suse.cz>
25291
25292         * cgraph.c (dump_cgraph_node): Dump versionable flag.
25293         * cgraph.h (cgraph_local_info): Add versionable flag.
25294         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
25295         (ipcp_versionable_function_p): Use it.
25296         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
25297         versionable flag.
25298
25299 2010-05-16  Jan Hubicka  <jh@suse.cz>
25300
25301         * cgraph.c (cgraph_clone_node): Take decl argument and insert
25302         clone into hash when it is different from orig.
25303         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
25304         * cgraph.h (cgraph_clone_node): Update prototype.
25305         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
25306         (lto_cgraph_encoder_delete): Delete body map.
25307         (lto_cgraph_encoder_size): Move to header.
25308         (lto_cgraph_encoder_encode_body_p,
25309         lto_set_cgraph_encoder_encode_body): New.
25310         (lto_output_node): Do not take written_decls argument; output clone_of
25311         pointer.
25312         (add_node_to): Add include_body_argument; call
25313         lto_set_cgraph_encoder_encode_body on master of the clone.
25314         (add_references): Update use of add_node_to.
25315         (compute_ltrans_boundary): Likewise.
25316         (output_cgraph): Do not create written_decls bitmap.
25317         (input_node): Take nodes argument; stream in clone_of correctly.
25318         (input_cgraph_1): Update use of input_node.
25319         * lto-streamer-out.c (lto_output): Use encoder info to decide
25320         what bodies to output.
25321         * ipa-inline.c (cgraph_clone_inlined_nodes,
25322         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
25323         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
25324         (lto_cgraph_encoder_size): Define here.
25325         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
25326         Declare.
25327
25328 2010-05-16  Richard Guenther  <rguenther@suse.de>
25329
25330         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
25331         -fipa-type-escape.
25332         * ipa-type-escape.c (gate_type_escape_vars): Run when
25333         -fipa-struct-reorg runs.
25334         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
25335         * common.opt (fipa-type-escape): Remove.
25336
25337 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25338
25339         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
25340         (decode_options): Likewise.
25341         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
25342
25343 2010-05-16  Jan Hubicka  <jh@suse.cz>
25344
25345         * ipa.c (function_and_variable_visibility): Also bring local all
25346         aliases.
25347
25348 2010-05-16  Richard Guenther  <rguenther@suse.de>
25349
25350         * alias.c (nonoverlapping_memrefs_p): Remove use of
25351         IPA type-escape information.
25352
25353 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
25354
25355         * c-common.c (c_common_reswords): Add _Static_assert for C.
25356         * c-parser.c (c_token_starts_declaration,
25357         c_parser_next_token_starts_declaration,
25358         c_parser_static_assert_declaration_no_semi,
25359         c_parser_static_assert_declaration): New.
25360         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
25361         Handle static assertions if static_assert_ok.
25362         (c_parser_external_declaration, c_parser_declaration_or_fndef,
25363         c_parser_compound_statement_nostart, c_parser_label,
25364         c_parser_for_statement, c_parser_objc_methodprotolist,
25365         c_parser_omp_for_loop): All callers of
25366         c_parser_declaration_or_fndef changed.
25367         (c_parser_struct_declaration): Handle static assertions.
25368         (c_parser_compound_statement_nostart): Use
25369         c_parser_next_token_starts_declaration and
25370         c_token_starts_declaration to detect start of declarations.
25371         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
25372         Likewise.
25373
25374 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
25375
25376         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
25377         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25378         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
25379         TARGET_FUNCTION_VALUE_REGNO_P): Define.
25380         (mmix_function_outgoing_value): Rename to...
25381         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
25382         (mmix_function_value_regno_p): Make static.
25383         (mmix_libcall_value): New function.
25384         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
25385         mmix_function_value_regno_p): Remove declaration.
25386
25387 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25388
25389         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
25390         BUILT_IN_ALLOCA if stack checking is enabled.
25391
25392 2010-05-16  Richard Guenther  <rguenther@suse.de>
25393
25394         * var-tracking.c (vars_copy_1): Inline ...
25395         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
25396         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
25397         (variable_merge_over_cur): Adjust.  Merge asserts.
25398         (variable_merge_over_src): Likewise.
25399         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
25400         (variable_post_merge_new_vals): Merge asserts.
25401         (variable_post_merge_perm_vals): Likewise.
25402         (find_mem_expr_in_1pdv): Likewise.
25403         (dataflow_set_different_value): Remove.
25404         (onepart_variable_different_p): Merge asserts.
25405         (variable_different_p): Likewise.
25406         (dataflow_set_different_1): Inline ...
25407         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
25408         (emit_notes_for_differences_1): Merge asserts.
25409
25410 2010-05-16  Richard Guenther  <rguenther@suse.de>
25411
25412         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
25413         * optabs.c (libfunc_decl_hash): Likewise.
25414         * varasm.c (emutls_decl): Likewise.
25415
25416 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
25417
25418         * c-decl.c: Don't include gimple.h.
25419         (merge_decls): Do not copy gimple_body.
25420
25421 2010-05-15  Jason Merrill  <jason@redhat.com>
25422
25423         * c.opt: Add -fnothrow-opt.
25424
25425 2010-05-15  Jan Hubicka  <jh@suse.cz>
25426
25427         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
25428         analyzed.
25429         * passes.c (ipa_write_summaries): Write all analyzed nodes.
25430
25431 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
25432
25433         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
25434         * Makefile.in: Add it.
25435         Fix all other Makefile dependencies for changes below.
25436         * tree.h: Include it instead of defining VEC primitives here.
25437         * gimple.h: Likewise.
25438         * rtl.h: Likewise.
25439         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
25440         * except.h: Include vecir.h, break dependence on tree.h.
25441
25442         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
25443         Move from here...
25444         * tree-iterator.c: ...to here.
25445         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
25446
25447         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
25448         tm_p.h.
25449         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
25450         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
25451         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
25452         tree-mudflap.h, and target.h.
25453         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
25454         predict.h, tree-inline.h, gimple.h, and langhooks.h.
25455         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
25456         Add FIXME for why gimple.h is still included (should be unnecessary
25457         since GCC 4.5 gimplification unit-at-a-time).
25458         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
25459         * c-pragma.c: Add FIXME for why function.h needs to be included just
25460         for cfun, at front-end level.
25461         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
25462         Do not include ggc.h, but include vecprim.h for VEC(char).
25463         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
25464         Explain why target.h is included.
25465         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
25466         Explain why gimple.h is included.
25467         * c-ppoutput.c: Do not include tm.h.
25468         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
25469         * c-parses.c: Explain why rtl.h is included, and that this (and only
25470         this) is also why tm.h must be included.
25471         Do not include except.h.
25472         * c-lang.c: Do not include ggc.h.
25473
25474 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
25475
25476         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
25477
25478 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
25479
25480         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
25481         unions by default if those structs and unions have no tags.  Do
25482         not condition anonymous struct and unions handling on flag_iso.
25483         Allow anonymous structs and unions for C1X.
25484         (finish_struct): Do not diagnose lack of named fields when
25485         anonymous structs and unions present for C1X.  Accept flexible
25486         array members in structure with anonymous structs or unions but no
25487         directly named fields.
25488         * doc/extend.texi (Unnamed Fields): Update.
25489
25490 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
25491
25492         * gimple.h (compare_field_offset): Rename into...
25493         (gimple_compare_field_offset): ...this.
25494         * gimple.c (compare_field_offset): Rename into...
25495         (gimple_compare_field_offset): ...this.  Compare the full access if
25496         the offset is self-referential.
25497         (gimple_types_compatible_p): Adjust for above renaming.
25498         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
25499         DECL_NONADDRESSABLE_P flag of fields before merging them.
25500
25501 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
25502
25503         * tree.h (ctor_to_list): Delete.
25504         * tree.c (ctor_to_list): Delete.
25505
25506 2010-05-15  Jan Hubicka  <jh@suse.cz>
25507
25508         * ipa-reference.c: Include toplev.h
25509         (is_proper_for_analysis): Only add to all_module_statics
25510         if it is allocated.
25511         (write_node_summary_p, stream_out_bitmap,
25512         ipa_reference_write_optimization_summary,
25513         ipa_reference_read_optimization_summary): New.
25514         (struct ipa_opt_pass_d pass_ipa_reference): Add
25515         optimization summary streaming.
25516         * lto-cgraph.c (referenced_from_this_partition_p,
25517         reachable_from_this_partition_p): New functions.
25518         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
25519         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
25520         * opts.c (decode_options): Enable ipa_reference.
25521         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
25522         * lto-streamer.h (referenced_from_this_partition_p,
25523         reachable_from_this_partition_p): Declare.
25524
25525 2010-05-15  Richard Guenther  <rguenther@suse.de>
25526
25527         PR tree-optimization/44038
25528         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
25529         taking the address of a V_C_E of a constant.
25530
25531 2010-05-14  Jan Hubicka  <jh@suse.cz>
25532
25533         * tree.h (memory_identifier_string): Remove.
25534         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
25535         (ipa_reference_global_vars_info_d): Remove statics_not_read and
25536         statics_not_written.
25537         (ipa_reference_optimization_summary_d): New structure.
25538         (ipa_reference_optimization_summary_t): New type and vector.
25539         (ipa_reference_vars_info_d): Embedd structures instead of using
25540         pointers.
25541         (reference_vars_to_consider): Remove out of GGC space.
25542         (module_statics_escape): Remove.
25543         (global_info_obstack): Rename to ...
25544         (optimization_summary_obstack): ... this one.
25545         (initialization_status_t): Remove.
25546         (memory_identifier_string): Remove.
25547         (get_reference_vars_info): Fix indenting.
25548         (set_reference_vars_info): Likewise.
25549         (get_reference_optimization_summary): New.
25550         (set_reference_optimization_summary): New.
25551         (get_global_reference_vars_info): Remove.
25552         (ipa_reference_get_read_global): Remove.
25553         (ipa_reference_get_written_global): Remove.
25554         (ipa_reference_get_not_read_global): Update.
25555         (ipa_reference_get_not_written_global): Update.
25556         (is_proper_for_analysis): Outlaw addressable.
25557         (propagate_bits): Update for new datastructures.
25558         (analyze_variable): Remove.
25559         (init_function_info): Update for new datastructures.
25560         (clean_function_local_data): Remove.
25561         (clean_function): Remove.
25562         (copy_global_bitmap): Use optimizations_summary_obstack.
25563         (duplicate_node_data): Duplicate optimization summary only.
25564         (remove_node_data): Remove optimization summary only.
25565         (generate_summary): Do not analyze variables; do not compute
25566         module_statics_escape; do not prune solutions by it.
25567         (read_write_all_from_decl): Fix typos in comments.
25568         (propagate): Doscover readonly and nonaddressable first;
25569         update for new datastructures; share global bitmaps.
25570         * ipa-reference.h (ipa_reference_get_read_global,
25571         ipa_reference_get_written_global): Remove.
25572         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
25573         * Makefile.in: Remove ipa-refereference from GT files.
25574
25575 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
25576
25577         PR debug/44112
25578         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
25579         for all SYMBOL_REF_DECLs.
25580
25581 2010-05-14  Jan Hubicka  <jh@suse.cz>
25582
25583         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
25584         (varpool_all_refs_explicit_p): New inline function.
25585         * ipa-reference.c: Update comment.
25586         (module_statics_written): Remove.
25587         (get_static_decl): Remove.
25588         (ipa_init): Do not initialize module_statics_written.
25589         (analyze_function): Likewise.
25590         (generate_summary): Likewise; do not compute module_statics_readonly
25591         and do not update variable flags.
25592         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
25593         * ipa.c: Inlucde flags.h
25594         (cgraph_local_node_p): New.
25595         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
25596         promote functions to local.
25597         (ipa_discover_readonly_nonaddressable_vars): New function.
25598         (function_and_variable_visibility): Use cgraph_local_node_p.
25599         * varpool.c (varpool_finalize_decl): Set force_output for
25600         DECL_PRESERVE_P vars.
25601
25602 2010-05-14  Jan Hubicka  <jh@suse.cz>
25603
25604         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
25605
25606 2010-05-14  Richard Guenther  <rguenther@suse.de>
25607
25608         PR tree-optimization/44119
25609         * tree-ssa-pre.c (eliminate): Properly mark replacement of
25610         a PHI node necessary.
25611
25612 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25613
25614         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
25615
25616 2010-05-14  Jason Merrill  <jason@redhat.com>
25617
25618         PR c++/44127
25619         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
25620         (gimple_call_set_nothrow): New.
25621         * gimple.c (gimple_build_call_from_tree): Call it.
25622         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
25623
25624         PR c++/44127
25625         * gimplify.c (gimplify_seq_add_stmt): No longer static.
25626         * gimple.h: Declare it.
25627         * gimple.c (gimple_build_eh_filter): No ops.
25628
25629 2010-05-14  Jan Hubicka  <jh@suse.cz>
25630
25631         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
25632         nodes already in queue.
25633         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
25634         re-enqueueing node.
25635
25636 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
25637
25638         PR debug/44136
25639         * cfgexpand.c (expand_debug_expr): If non-memory op0
25640         has BLKmode, return NULL.
25641
25642 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
25643
25644         * config.gcc: Add support for --with-cpu option for bdver1.
25645         * config/i386/i386.h (TARGET_BDVER1): New macro.
25646         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
25647         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
25648         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
25649         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
25650         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
25651         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
25652         (processor_type): Add PROCESSOR_BDVER1.
25653         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
25654         processor_type in config/i386/i386.h.
25655         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
25656         movaps <reg, reg> instead of movapd <reg, reg> when replacing
25657         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
25658         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
25659         to emit packed xor instead of packed double/packed integer
25660         xor for SSE and AVX when moving a zero value.
25661         * config/i386/sse.md: Add check for
25662         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
25663         movapd/movdqa for SSE and AVX.
25664         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
25665         single logical operations i.e and, or and xor instead of packed double
25666         logical operations for SSE and AVX.
25667         * config/i386/i386-c.c (ix86_target_macros_internal):
25668         Add PROCESSOR_BDVER1.
25669         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
25670         (has_fma4, has_xop): New.
25671         * config/i386/i386.c (bdver1_cost): New variable.
25672         (m_BDVER1): New macro.
25673         (m_AMD_MULTIPLE): Add m_BDVER1.
25674         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
25675         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
25676         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
25677         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
25678         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
25679         x86_tune_sse_partial_reg_dependency,
25680         x86_tune_sse_unaligned_load_optimal,
25681         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
25682         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
25683         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
25684         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
25685         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
25686         Enable/disable for bdver1.
25687         (processor_target_table): Add bdver1_cost.
25688         (cpu_names): Add bdver1.
25689         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
25690          processor_alias_table.
25691         (ix86_expand_vector_move_misalign): Change.
25692         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
25693         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
25694         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
25695         of movupd/movdqu for SSE and AVX.
25696         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
25697         (ix86_tune_adjust_cost): Add code for bdver1.
25698         (standard_sse_constant_opcode): Add check for
25699         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
25700         of packed double xor for SSE and AVX.
25701
25702 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
25703
25704         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
25705         result to unsigned.
25706
25707 2010-05-14  Tristan Gingold  <gingold@adacore.com>
25708
25709         * toplev.c (default_debug_hooks): Remove this variable.
25710         (process_options): Remove assignments to default_debug_hooks.
25711
25712 2010-05-14  Martin Jambor  <mjambor@suse.cz>
25713
25714         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
25715         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
25716         * langhooks.h (struct lang_hooks_for_decls): Removed field
25717         fold_obj_type_ref.
25718         * tree.c (free_lang_data): Remove assignment to
25719         lang_hooks.fold_obj_type_ref.
25720         * tree.def (OBJ_TYPE_REF): Update comment.
25721
25722 2010-05-14  Richard Guenther  <rguenther@suse.de>
25723
25724         PR tree-optimization/44124
25725         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
25726
25727 2010-05-14  Alan Modra  <amodra@gmail.com>
25728
25729         PR target/44075
25730         * config/rs6000/rs6000.c (struct machine_function): Reorder
25731         fields for better packing.  Add lr_save_state.
25732         (rs6000_ra_ever_killed): Return lr_save_state if set.
25733         (rs6000_emit_eh_reg_restore): Set lr_save_state.
25734
25735 2010-05-13  Jan Hubicka  <jh@suse.cz>
25736
25737         * varpool.c (decide_is_variable_needed): Drop code checking
25738         TREE_SYMBOL_REFERENCED.
25739
25740 2010-05-13  Jan Hubicka  <jh@suse.cz>
25741
25742         * final.c (output_addr_const): Do not call mark_decl_referenced.
25743         * cgraphunit.c (process_function_and_variable_attributes): Use
25744         mark_needed_node dirrectly.
25745         (assemble_thunk): Do not call mark_decl_referenced.
25746
25747 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
25748
25749         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
25750
25751 2010-05-13  Jeff Law  <law@redhat.com>
25752
25753         * ira-conflicts.c (print_allocno_conflicts): New function broken out
25754         from...
25755         (print_conflicts): Call print_allocno_conflicts.
25756
25757 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
25758
25759         PR debug/44104
25760         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
25761         if it is NULL.
25762
25763 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
25764
25765         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
25766         t-mingw-w64 or t-mingw-w32 for multilib configuration.
25767         * config/i386/t-mingw-w32: New.
25768         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
25769
25770 2010-05-13  Martin Jambor  <mjambor@suse.cz>
25771
25772         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
25773         gimple-fold.c).
25774         * gimple-fold.c (get_base_binfo_for_type): New function.
25775         (gimple_get_relevant_ref_binfo): Likewise.
25776         (gimple_fold_obj_type_ref_known_binfo): Likewise.
25777         (gimple_fold_obj_type_ref): Likewise.
25778         (fold_gimple_call): Simplify condition for folding virtual calls
25779         and call gimple_fold_obj_type_ref.
25780         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
25781         (gimple_fold_obj_type_ref_known_binfo): Likewise.
25782
25783 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
25784
25785         * config/rs6000/rs6000-protos.h
25786         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
25787         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
25788         (rs6000_debug_mode_dependent_address)
25789         (rs6000_mode_dependent_address_ptr): Likewise.
25790
25791 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
25792
25793         PR debug/43983
25794         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
25795         by SRA.
25796         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
25797         * tree-sra.c (create_access_replacement): Call unshare_expr before
25798         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
25799         * dwarf2out.c: Include tree-flow.h.
25800         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
25801         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
25802         Handle DW_OP_bit_piece.
25803         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
25804         construct_piece_list, adjust_piece_list): New functions.
25805         (add_var_loc_to_decl): Handle SRA optimized variables.
25806         Adjust for var_loc_note to loc field renaming.
25807         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
25808         in VAR_LOCATION note.
25809         (new_loc_descr_op_bit_piece): New function.
25810         (dw_sra_loc_expr): New function.
25811         (dw_loc_list): Use it.  Don't handle the last range after the
25812         loop, handle it inside of the loop.  Adjust for var_loc_note
25813         to loc field renaming.
25814         (add_location_or_const_value_attribute): Only special case
25815         single entry loc lists if loc is NOTE_P.  Adjust for
25816         var_loc_note to loc field renaming.
25817         (dwarf2out_var_location): Don't set newloc->var_loc_note
25818         and newloc->next here.
25819
25820 2010-05-12  Jan Hubicka  <jh@suse.cz>
25821
25822         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
25823         flag.
25824         * cgraph.h (cgraph_only_called_directly_p,
25825         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
25826         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
25827         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
25828         (assemble
25829         * ipa.c (cgraph_remove_unreachable_nodes): Use
25830         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
25831         flags.
25832         * tree-inline.c (copy_bb): Check address_taken flag.
25833         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
25834         externally_visible flag.
25835
25836 2010-05-12  Jason Merrill  <jason@redhat.com>
25837
25838         PR bootstrap/44048
25839         PR target/44099
25840         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
25841         * sdbout.c (plain_type_1): Likewise.
25842         * dwarf2out.c (is_base_type): Likewise.
25843         (gen_type_die_with_usage): Likewise.  Generate
25844         DW_TAG_unspecified_type for any LANG_TYPE.
25845
25846 2010-05-12  Jan Hubicka  <jh@suse.cz>
25847
25848         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
25849         indrect edges too.
25850         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
25851         (cgraph_clone_edge): Update.
25852         (cgraph_node_remove_callees): Remove indirect calls too.
25853         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
25854         (cgraph_create_indirect_edge): Update prototype.
25855         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
25856         is_proper_for_analysis.
25857         (add_new_function, visited_nodes, function_insertion_hook_holder,
25858         get_local_reference_vars_info, mark_address_taken, mark_address,
25859         mark_load, mark_store, check_asm_memory_clobber, check_call,
25860         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
25861         (ipa_init): Do not initialize visited_nodes;
25862         function_insertion_hook_holder.
25863         (analyze_variable): Rewrite.
25864         (analyze_function): Rewrite.
25865         (copy_local_bitmap): Remove.
25866         (duplicate_node_dat): Do not duplicate local info.
25867         (generate_summary): Simplify to only walk cgraph.
25868         (write_node_summary_p, ipa_reference_write_summary,
25869         ipa_reference_read_summary): Remove.
25870         (propagate): Do not remove function insertion;
25871         generate summary.
25872         (pass_ipa_reference): NULLify summary handling fields.
25873         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
25874         (input_edge): Input ecf_flags.
25875         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
25876         (update_indirect_edges_after_inlining): Ignore edges with unknown
25877         param.
25878
25879 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
25880
25881         * implicit-zee.c: New file.
25882         * tree-pass.h (pass_implicit_zee): Declare.
25883         * passes.c (init_optimization_passes): Add zee pass.
25884         * common.opt (fzee): New flag.
25885         * timevar.def (TV_ZEE): Define.
25886         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
25887         and beyond.
25888         * Makefile.in (implicit-zee.o): Add new build file.
25889
25890 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25891             Nathan Froyd  <froydnj@codesourcery.com>
25892
25893         * c-common.c (sync_resolve_params): Remove write-only variable.
25894
25895 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
25896
25897         * target.h (struct gcc_target): Add mode_dependent_address_p field.
25898         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25899         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
25900         * targhooks.c (default_mode_dependent_address_p): New function.
25901         * targhooks.h (default_mode_dependent_address_p): Declare function.
25902         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25903         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
25904         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
25905         target hook. Change return type to bool.
25906         * recog.h (mode_dependent_address_p): Change return type to bool.
25907
25908 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25909             Nathan Froyd  <froydnj@codesourcery.com>
25910
25911         * tree-mudflap.c (build_function_type_0, build_function_type_1,
25912         build_function_type_2, build_function_type_3): Remove.
25913         (mudflap_init): Use build_function_type_list.
25914
25915 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25916             Nathan Froyd  <froydnj@codesourcery.com>
25917
25918         * coverage.c (build_fn_info_value): Call build_constructor instead of
25919         build_constructor_from_list.
25920         (build_ctr_info_value): Likewise.
25921         (build_gcov_info): Likewise.
25922
25923 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
25924
25925         * tree.c (build_constructor): Compute TREE_CONSTANT for the
25926         resultant constructor.
25927         (build_constructor_single): Don't set TREE_CONSTANT.
25928         (build_constructor_from_list): Don't compute TREE_CONSTANT.
25929
25930 2010-05-12  Jan Hubicka  <jh@suse.cz>
25931
25932         * cgraph.h (struct varpool_node): Add aux.
25933         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
25934         * varpool.c (varpool_remove_node): Do not remove initializer.
25935         (varpool_reset_queue): Export.
25936         (varpool_finalize_decl): Volatile vars are forced to be output.
25937         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25938         replaced decl.
25939         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
25940         process_references, varpool_can_remove_if_no_refs): New functions.
25941         (cgraph_remove_unreachable_nodes): Handle variables too.
25942
25943 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
25944
25945         PR target/44088
25946         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
25947
25948 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
25949
25950         PR middle-end/44085
25951         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
25952         change value of ORT_TASK.
25953         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
25954         (omp_notice_threadprivate_variable): New function.
25955         (omp_notice_variable): Call it for threadprivate variables.
25956         If enclosing ctx is a task, print enclosing task rather than
25957         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
25958         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25959         if task has untied clause.
25960
25961         PR debug/42278
25962         * dwarf2out.c (base_type_die): Don't add name attribute here.
25963         (modified_type_die): Instead of sizetype use
25964         its underlying original type.  If a DW_TAG_base_type doesn't
25965         have name added, add __unknown__.
25966         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25967         always call force_type_die instead.
25968
25969 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
25970
25971         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25972         for __stack_chk_guard.
25973
25974 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25975
25976         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25977         don't call start_source_file debug hook here...
25978         (finish_options): ... but here, after outputting predefined and
25979         command line defines and undefs.
25980
25981         PR middle-end/44071
25982         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25983         no fallthru edge.
25984         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25985         optimizing away empty bb with no successors, move over its
25986         footer chain to fallthru predecessor.
25987         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25988         (rtl_split_edge): For asm goto call patch_jump_insn even if
25989         splitting fallthru edge.
25990
25991         PR c++/44059
25992         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25993         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25994         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25995         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25996         on DW.ref.* decls.
25997
25998         PR c++/44062
25999         * c-parser.c (c_parser_expression): Mark LHS of a comma
26000         expression as read if it is a decl, handled component or
26001         COMPOUND_EXPR with that on the RHS.
26002         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
26003         if it is a decl or handled component.
26004
26005 2010-05-11  Jan Hubicka  <jh@suse.cz>
26006
26007         * lto-symtab.c (lto_symtab_free): New function.
26008         * lto-streamer.h (lto_symtab_free): Declare.
26009
26010 2010-05-11  Jan Hubicka  <jh@suse.cz>
26011
26012         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
26013         that if function is needed it is reachable.
26014         (lto_output_node): See if it the function is reachable or referenced.
26015         (output_cgraph): Update call of lto_output_node.
26016         * lto-streamer.h (reachable_from_other_partition_p): Declare.
26017
26018 2010-05-11  Jan Hubicka  <jh@suse.cz>
26019
26020         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
26021         Mark as used.
26022
26023 2010-05-11  Jan Hubicka  <jh@suse.cz>
26024
26025         PR tree-optimize/44063
26026         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
26027         queue.
26028         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
26029         limits.
26030         (estimate_function_body_sizes): Compute sizes even when disregarding.
26031
26032 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
26033
26034         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
26035
26036 2010-05-11  Jan Hubicka  <jh@suse.cz>
26037
26038         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
26039         into every boundary.
26040
26041 2010-05-11  Jan Hubicka  <jh@suse.cz>
26042
26043         * matrix-reorg.c (matrix_reorg): Rebuild edges.
26044
26045 2010-05-11  Jan Hubicka  <jh@suse.cz>
26046
26047         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
26048         lto_streamer_cache_delete): Put nodes into heap.
26049         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
26050         heap.
26051
26052 2010-05-11  Jan Hubicka  <jh@suse.cz>
26053
26054         * cgraphbuild.c (cgraph_rebuild_references): New.
26055         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
26056         out extern inlines.
26057         * cgraph.h (cgraph_rebuild_references): Declare.
26058         * tree-inline.c (tree_function_versioning): Use it.
26059         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
26060
26061 2010-05-11  Jan Hubicka  <jh@suse.cz>
26062
26063         * cgraph.c: Include ipa-utils.h
26064         (cgraph_create_virtual_clone): Update references.
26065         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
26066
26067 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
26068
26069         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
26070         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
26071         cache size.
26072
26073 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
26074
26075         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
26076
26077 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
26078
26079         * gcc.c (execute): For -### don't quote arguments that
26080         contain just alphanumerics and _/-. characters.
26081         * doc/invoke.texi: Document that change for -###.
26082
26083         PR debug/44023
26084         * df-problems.c (struct dead_debug): Add to_rescan field.
26085         (dead_debug_init): Clear to_rescan field.
26086         (dead_debug_finish): Rescan all debug insns in to_rescan
26087         bitmap and free the bitmap.
26088         (dead_debug_insert_before): Instead of rescanning debug insns
26089         immediately queue their rescanning until dead_debug_finish.
26090         (df_note_bb_compute): After dead_debug_add do continue instead
26091         of break.
26092
26093 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
26094
26095         PR debug/44028
26096         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
26097         clear also INSN_REG_USE_LIST.
26098
26099 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26100
26101         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
26102
26103 2010-05-10  Jan Hubicka  <jh@suse.cz>
26104
26105         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
26106         commited change.
26107
26108 2010-05-10  Jan Hubicka  <jh@suse.cz>
26109
26110         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
26111         Allocate encoders.
26112         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
26113         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
26114         (lto_streamer_cache_create): Init alloc pool.
26115         (lto_streamer_cache_delete): Free alloc pool.
26116         * lto-streamer.h: Include alloc pool.
26117         (lto_streamer_cache_d): Use alloc pool.
26118         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
26119
26120 2010-05-10  Jan Hubicka  <jh@suse.cz>
26121
26122         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
26123         * cgraphbuild.c: Include except.h
26124         (record_type_list, record_eh_tables): New function.
26125         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
26126
26127 2010-05-10  Jan Hubicka  <jh@suse.cz>
26128
26129         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
26130         __frame_dummy_init_array_entry, force_to_data): Attribute as used
26131         rather than unused.
26132
26133 2010-05-10  Michael Matz  <matz@suse.de>
26134
26135         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
26136         (can_reassociate_p): Use FLOAT_TYPE_P.
26137         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
26138         (vect_force_simple_reduction): ... this.
26139         * tree-parloops.c (gather_scalar_reductions): Use
26140         vect_force_simple_reduction.
26141         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
26142         vect_is_simple_reduction, add modify argument, if true rewrite
26143         "a-b" into "a+(-b)".
26144         (vect_is_simple_reduction, vect_force_simple_reduction): New
26145         functions.
26146         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
26147
26148 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
26149             Vladimir Makarov  <vmakarov@redhat.com>
26150
26151         PR rtl-optimization/44012
26152         * ira-build.c (remove_unnecessary_allocnos): Nullify
26153         regno_allocno_map of the removed allocno.
26154
26155 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26156
26157         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
26158         to /dev/null.
26159         * configure: Regenerate.
26160
26161 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26162
26163         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
26164         unused.
26165         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
26166         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
26167         support in Sun ld.
26168         * configure: Regenerate.
26169
26170 2010-05-10  Richard Guenther  <rguenther@suse.de>
26171
26172         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
26173         marked if the entry identifier is marked.
26174
26175 2010-05-10  Richard Guenther  <rguenther@suse.de>
26176
26177         * c-common.c (struct c_common_attributes): Add fnspec attribute.
26178         (handle_fnspec_attribute): New function.
26179         * gimple.h (gimple_call_return_flags): Declare.
26180         (gimple_call_arg_flags): Likewise.
26181         * gimple.c (gimple_call_arg_flags): New function.
26182         (gimple_call_return_flags): Likewise.
26183         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
26184         New argument flags.
26185         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
26186         return value flags.
26187         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
26188         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
26189         main work to ...
26190         (make_heapvar_for): ... this new function.
26191         (handle_rhs_call): Handle fnspec attribute argument specifiers.
26192         (handle_lhs_call): Likewise.
26193         (find_func_aliases): Adjust.
26194
26195 2010-05-10  Richard Guenther  <rguenther@suse.de>
26196
26197         PR tree-optimization/44050
26198         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
26199
26200 2010-05-10  Wei Guozhi  <carrot@google.com>
26201
26202         PR target/42879
26203         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
26204
26205 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
26206
26207         PR c/10676
26208         * c-typeck.c (lookup_field): Take a type directly.  Update
26209         recursive calls.
26210         (build_component_ref): Update call to lookup_field.
26211         (set_init_label): Use lookup_field to find initialized field.
26212         Handle returned list of fields like a sequence of designators.
26213
26214 2010-05-09  Richard Guenther  <rguenther@suse.de>
26215
26216         PR middle-end/44024
26217         * fold-const.c (tree_single_nonzero_warnv_p): Properly
26218         handle &FUNCTION_DECL.
26219
26220 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
26221
26222         PR c/4784
26223         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
26224         structures and unions recursively.
26225         (detect_field_duplicates): Move duplicate detection with a hash to
26226         detect_field_duplicates_hash.  Always use a hash if anonymous
26227         structures or unions are present.
26228         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
26229         give errors.
26230
26231 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
26232
26233         PR target/44046
26234         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
26235         detect Atom, Core 2 and Core i7.
26236
26237 2010-05-09  Richard Guenther  <rguenther@suse.de>
26238
26239         * gcc.c (store_arg): Handle temporary file deletion for
26240         joined arguments.
26241
26242 2010-05-09  Richard Guenther  <rguenther@suse.de>
26243
26244         PR middle-end/44043
26245         * ipa-inline.c (estimate_function_body_sizes): Return after
26246         disregarding inline limits.
26247
26248 2010-05-09  Richard Guenther  <rguenther@suse.de>
26249
26250         * gcc.c (store_arg): Revert last change.
26251
26252 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
26253
26254         PR middle-end/28685
26255         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
26256         (optimize_ops_list): Call it.
26257
26258 2010-05-08  Richard Guenther  <rguenther@suse.de>
26259
26260         PR tree-optimization/44030
26261         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
26262         NECESSARY flag if we propagate from a inserted expression.
26263
26264 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
26265
26266         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
26267         domain types as equal if they are both PLACEHOLDER_EXPRs.
26268
26269 2010-05-08  Richard Guenther  <rguenther@suse.de>
26270
26271         * lto-wrapper.c (run_gcc): Remove linker output from
26272         command line for LTRANS invocation.
26273
26274 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
26275
26276         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
26277         lto-macho as lto_binary_reader.
26278         * target.h (struct gcc_target): New hooks lto_start and lto_end.
26279         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
26280         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
26281         in lto_start and lto_end calls.
26282         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
26283         magic numbers.
26284         (scan_prog_file): Update is_elf_or_coff call.
26285         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
26286
26287         * collect2.c (main): Fix enum comparison.
26288
26289         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
26290         Add prototypes.
26291         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
26292         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
26293         and TARGET_ASM_LTO_END.
26294         * darwin.c: Include obstack.h and lto-streamer.h.
26295         (lto_section_names_offset, lto_section_names_obstack,
26296         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
26297         global variables.
26298         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
26299         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
26300         to a temporary file.
26301         (darwin_asm_lto_end): New function.  Restore asm_out_file.
26302         (darwin_asm_named_section): For LTO sections, replace the name with
26303         the offset of the section name in a string table, and build this
26304         table.
26305         (darwin_file_start): Initialize global vars for LTO support.
26306         (darwin_file_end): If output to asm_out_file was redirected, append it
26307         to the proper asm_out_file here.  Add the section names section.
26308
26309 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
26310
26311         * c-pragma.c (pending_weak_d, pending_weak): New.
26312         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
26313         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
26314         handle_pragma_weak): Update the uses of pending_weaks.
26315
26316 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26317
26318         PR documentation/44016
26319         * doc/standards.texi (Standards): Link to unversioned
26320         cxx0x_status.html page.
26321
26322 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
26323
26324         PR target/43708
26325         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
26326         in addition to TREE_USED, to avoid "set but unused" warnings.
26327
26328 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
26329
26330         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
26331         (is_loop_prefetching_profitable): Do not insert prefetches
26332         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
26333         times the prefetch ahead distance.
26334
26335 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
26336
26337         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
26338         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
26339         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
26340         the unroll_factor.
26341
26342 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
26343
26344         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
26345         a diagnostic info when the insn-to-mem ratio is too small.
26346
26347 2010-05-07  Richard Guenther  <rguenther@suse.de>
26348
26349         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
26350         the linker plugin.
26351         (store_arg): Queue temp_filename for deletion instead of
26352         the whole argument.
26353
26354 2010-05-07  Richard Guenther  <rguenther@suse.de>
26355
26356         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
26357         (run_gcc): Handle LTRANS phase invocation.
26358         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
26359
26360 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
26361
26362         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
26363         this is also meaningful on PARM_DECLs and RESULT_DECLs.
26364
26365 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26366
26367         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
26368
26369 2010-05-07  Richard Guenther  <rguenther@suse.de>
26370
26371         PR tree-optimization/44020
26372         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
26373         code when PRE is not yet initialized.
26374
26375 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26376
26377         * config/mips/dbxmdebug.h: Remove.
26378         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
26379
26380 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
26381
26382         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
26383         with null pointer and also warn about ordered comparison of zero with
26384         pointer if -Wextra.
26385
26386 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
26387
26388         * graphite-blocking.c
26389         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
26390         * graphite-clast-to-gimple.c
26391         (clast_to_gcc_expression): Same.
26392         (precision_for_value): Same.
26393         (precision_for_interval): Same.
26394         (gcc_type_for_interval): Same.
26395         (graphite_create_new_guard): Same.
26396         (compute_bounds_for_level): Same.
26397         (graphite_create_new_loop_guard): Same.
26398         * graphite-interchange.c
26399         (build_linearized_memory_access): Same.
26400         (pdr_stride_in_loop): Same.
26401         (memory_strides_in_loop_1): Same.
26402         (memory_strides_in_loop): Same.
26403         (extend_scattering): Same.
26404         (psct_scattering_dim_for_loop_depth): Same.
26405         (pbb_number_of_iterations): Same.
26406         * graphite-poly.h
26407         (debug_iteration_domains): Same.
26408         * graphite-ppl.c
26409         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
26410         (ppl_set_inhomogeneous_gmp): Same.
26411         (ppl_strip_loop): Same.
26412         (ppl_lexico_compare_linear_expressions): Same.
26413         (ppl_read_polyhedron_matrix): Same.
26414         (ppl_max_for_le_pointset): Same.
26415         * graphite-ppl.h
26416         (ppl_read_polyhedron_matrix): Same.
26417         (tree_int_to_gmp): Same.
26418         (gmp_cst_to_tree): Same.
26419         (ppl_set_inhomogeneous): Same.
26420         (ppl_set_inhomogeneous_tree): Same.
26421         (ppl_set_coef): Same.
26422         (ppl_set_coef_tree): Same.
26423         * graphite-sese-to-poly.c
26424         (build_pbb_scattering_polyhedrons): Same.
26425         (build_scop_scattering): Same.
26426         (scan_tree_for_params_right_scev): Same.
26427         (scan_tree_for_params): Same.
26428         (find_params_in_bb): Same.
26429         (find_scop_parameters): Same.
26430         (add_upper_bounds_from_estimated_nit): Same.
26431         (build_loop_iteration_domains): Same.
26432         (add_condition_to_domain): Same.
26433         (pdr_add_memory_accesses): Same.
26434
26435 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
26436
26437         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
26438         CLooG's value_* macros to their respective mpz_* counterparts.
26439         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
26440         (graphite_create_new_loop_guard): Same.
26441         * graphite-interchange.c (build_linearized_memory_access): Same.
26442         (pdr_stride_in_loop): Same.
26443         (memory_strides_in_loop_1): Same.
26444         (1st_interchange_profitable_p): Same.
26445         * graphite-poly.c (extend_scattering): Same.
26446         (psct_scattering_dim_for_loop_depth): Same.
26447         (pbb_number_of_iterations): Same.
26448         (pbb_number_of_iterations_at_time): Same.
26449         * graphite-poly.h (new_1st_loop): Same.
26450         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
26451         (oppose_constraint): Same.
26452         (insert_constraint_into_matrix): Same.
26453         (ppl_set_inhomogeneous_gmp): Same.
26454         (ppl_set_coef_gmp): Same.
26455         (ppl_strip_loop): Same.
26456         (ppl_lexico_compare_linear_expressions): Same.
26457         (ppl_max_for_le_pointset): Same.
26458         (ppl_min_for_le_pointset): Same.
26459         (ppl_build_realtion): Same.
26460         * graphite-ppl.h (gmp_cst_to_tree): Same.
26461         (ppl_set_inhomogeneous): Same.
26462         (ppl_set_inhomogeneous_tree): Same.
26463         (ppl_set_coef): Same.
26464         (ppl_set_coef_tree): Same.
26465         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
26466         (build_scop_scattering): Same.
26467         (add_value_to_dim): Same.
26468         (scan_tree_for_params_right_scev): Same.
26469         (scan_tree_for_params_int): Same.
26470         (scan_tree_for_params): Same.
26471         (find_params_in_bb): Same.
26472         (find_scop_parameters): Same.
26473         (add_upper_bounds_from_estimated_nit): Same.
26474         (build_loop_iteration_domains): Same.
26475         (create_linear_expr_from_tree): Same.
26476         (add_condition_to_domain): Same.
26477         (pdr_add_memory_accesses): Same.
26478
26479 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
26480             Jason Merrill  <jason@redhat.com>
26481
26482         * c-common.c (c_common_reswords): Add nullptr.
26483         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
26484         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
26485         (gen_type_die_with_usage): Likewise.
26486         * dbxout.c (dbxout_type): Likewise.
26487         * sdbout.c (plain_type_1): Likewise.
26488
26489 2010-05-06  Jason Merrill  <jason@redhat.com>
26490
26491         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
26492         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
26493         ret appropriately.
26494         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
26495
26496         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
26497         stripping WITH_SIZE_EXPR.
26498         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
26499         change.
26500
26501 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26502
26503         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
26504         list of obsolete configurations.
26505         Disabled check for obsolete configurations.
26506         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
26507         Removed support for previous versions.
26508         * config/mips/iris.h: Removed.
26509         * config/mips/iris5.h: Removed.
26510         * config/mips/iris6.h: Merged old iris.h contents.
26511         (TARGET_IRIX): Removed.
26512         (DRIVER_SELF_SPECS): Removed mabi=32.
26513         (IDENT_ASM_OP): Removed undef.
26514         (STARTFILE_SPEC): Removed mabi=32.
26515         (ENDFILE_SPEC): Likewise.
26516         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
26517         (MACHINE_TYPE): Update for IRIX 6.5.
26518         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
26519         TARGET_IRIX by TARGET_IRIX6.
26520         (mips_file_start): Likewise.
26521         (mips_output_external): Remove IRIX 5/6 O32 support.
26522         (mips_output_function_prologue): Likewise.
26523         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
26524         TARGET_IRIX6.
26525         (TARGET_CPU_CPP_BUILTINS): Likewise.
26526         (TARGET_IRIX): Removed.
26527         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
26528         (MULTILIB_DIRNAMES): Removed 32.
26529         (MULTILIB_OSDIRNAMES): Removed ../lib.
26530         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
26531         (Specific, mips-sgi-irix5): Document removal.
26532         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
26533         Remove references to older IRIX 6 releases and the O32 ABI.
26534
26535 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
26536
26537         PR bootstrap/43994
26538         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
26539         instead of DF_REF_REAL_REG.
26540
26541 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
26542
26543         PR target/43888
26544         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
26545         handling to still return true for x64 targets.
26546
26547 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26548
26549         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
26550
26551 2010-05-06  Jan Hubicka  <jh@suse.cz>
26552
26553         PR tree-optimization/43791
26554         * ipa-inline.c (update_caller_keys): Remove bogus
26555         disregard_inline_limits check.
26556
26557 2010-05-06  Michael Matz  <matz@suse.de>
26558
26559         PR tree-optimization/43984
26560         * tree-ssa-pre.c (inserted_phi_names): Remove.
26561         (inserted_exprs): Change to bitmap.
26562         (create_expression_by_pieces): Set bits, don't append to vector.
26563         (insert_into_preds_of_block): Don't handle inserted_phi_names.
26564         (eliminate): Don't look at inserted_phi_names, remove deleted
26565         insns from inserted_exprs.
26566         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
26567         (init_pre, fini_pre): Allocate and free bitmaps.
26568         (execute_pre): Insert insns on edges before elimination.
26569
26570 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26571
26572         * tree.c (initializer_zerop): Handle STRING_CST.
26573
26574 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26575
26576         PR 40989
26577         * doc/invoke.texi (Wimplicit): Document as C only.
26578         * opts.c (common_handle_option): Add argument kind.
26579         (handle_option): Rename as read_cmdline_option. Factor out code to...
26580         (handle_option): ... here. New.
26581         (handle_options): Rename as read_cmdline_options.
26582         (decode_options): Update call.
26583         (set_option): Use option index instead of option pointer. Classify
26584         diagnostics correctly.
26585         (enable_warning_as_error): Call handle_option.
26586         * opts.h (set_option): Update declaration.
26587         (handle_option): Declare.
26588         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
26589         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
26590         * c-opts.c (set_Wimplicit): Delete.
26591         (c_family_lang_mask): New static constant.
26592         (c_common_handle_option): Add argument kind. Use handle_option
26593         instead of set_Wimplicit.
26594         (c_common_post_options): warn_implicit and warn_implicit_int
26595         are disabled by default.
26596         * c-common.c (warn_implicit): Do not define here.
26597         * c-common.h (warn_implicit): Do not declare here.
26598         (c_common_handle_option): Update declaration.
26599         * lto-opts.c (lto_reissue_options): Update call to set_option.
26600
26601 2010-05-06  Richard Guenther  <rguenther@suse.de>
26602
26603         PR tree-optimization/43571
26604         * domwalk.c (walk_dominator_tree): Walk the dominator
26605         sons in more optimal order.
26606
26607 2010-05-06  Richard Guenther  <rguenther@suse.de>
26608
26609         PR tree-optimization/43934
26610         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
26611         (stmt_cost): Likewise.
26612         (extract_true_false_args_from_phi): New helper.
26613         (determine_max_movement): For PHI nodes verify we can hoist them
26614         and compute their cost.
26615         (determine_invariantness_stmt): Handle PHI nodes.
26616         (move_computations_stmt): Likewise.  Hoist PHI nodes in
26617         if-converted form using COND_EXPRs.
26618         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
26619         (tree_ssa_lim): Likewise.
26620         * tree-flow.h (tree_ssa_lim): Adjust prototype.
26621         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
26622
26623 2010-05-06  Richard Guenther  <rguenther@suse.de>
26624
26625         PR tree-optimization/43987
26626         * tree-ssa-structalias.c (could_have_pointers): For possibly
26627         address-taken variables force pointers to be recorded.
26628         (create_variable_info_for_1): Likewise.
26629         (push_fields_onto_fieldstack): Pass in wheter all fields
26630         must have pointers.
26631         (find_func_aliases): Query types instead of vars whether
26632         they contain pointers where appropriate.
26633
26634 2010-05-06  Jan Hubicka  <jh@suse.cz>
26635
26636         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
26637         (record_reference, mark_address, mark_load, mark_store): Record
26638         references.
26639         (record_references_in_initializer): Update call of record_references.
26640         (rebuild_cgraph_edges): Remove all references before rebuiding.
26641         * cgraph.c (cgraph_create_node): Clear ref list.
26642         (cgraph_remove_node): Remove references.
26643         (dump_cgraph_node): Dump references.
26644         (cgraph_clone_node): Clone references.
26645         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
26646         (struct cgraph_node, varpool_node): Add ref_lst.
26647         * ipa-ref.c: New file.
26648         * ipa-ref.h: New file.
26649         * ipa-ref-inline.h: New file.
26650         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
26651         (referenced_from_other_partition_p): New function.
26652         (lto_output_varpool_node): Take set arugment; call
26653         referenced_from_other_partition.
26654         (lto_output_ref): New.
26655         (add_references): New.
26656         (output_refs): New.
26657         (output_cgraph): Compute boundary based on references; output refs.
26658         (output_varpool): Accept cgraph_node_set argument.
26659         (input_ref): New.
26660         (input_refs): New.
26661         (input_cgraph): Call input_refs.
26662         * lto-section-in.c (lto_section_name): Add refs.
26663         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
26664         (ipa-ref.o): New file.
26665         * varpool.c (varpool_node): Clear ipa ref list.
26666         (varpool_remove_node): Remove references.
26667         (dump_varpool_node): Dump references.
26668         (varpool_assemble_decl): Only compile finalized ones.
26669         (varpool_extra_name_alias): Initialize ref list.
26670         * lto-streamer.c (lto-get_section_name): Add .refs section.
26671         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
26672         (referenced_from_other_partition_p): Declared.
26673
26674 2010-05-06  Ira Rosen  <irar@il.ibm.com>
26675
26676         PR tree-optimization/43901
26677         * tree-vect-stmts.c (vectorizable_call): Assert that vector
26678         type is not NULL if it's transformation phase, and return
26679         FALSE if it's analysis.
26680         (vectorizable_conversion, vectorizable_operation,
26681         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
26682
26683 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
26684
26685         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
26686         Delete.
26687         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
26688         New define.
26689         * config/mips/mips-protos.h
26690         (mips_small_register_classes_for_mode_p): Delete prototype.
26691
26692 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
26693
26694         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
26695         * config/arm/arm.c (multiple_operation_profitable_p,
26696         compute_offset_order): New static functions.
26697         (load_multiple_sequence, store_multiple_sequence): Use them.
26698         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
26699         memory offsets, not register numbers.
26700         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
26701
26702 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
26703
26704         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
26705         (get_pending_sizes, put_pending_size, put_pending_sizes):
26706         Update the uses of pending_sizes.
26707         * c-decl.c (store_parm_decls): Likewise.
26708         * c-tree.h (struct c_arg_info): Likewise.
26709         * tree.h: Update the prototype for get_pending_sizes and
26710         put_pending_sizes.
26711
26712 2010-05-05  Jason Merrill  <jason@redhat.com>
26713
26714         PR debug/43370
26715         * c-common.c (handle_aligned_attribute): Respect
26716         ATTR_FLAG_TYPE_IN_PLACE.
26717
26718         PR testsuite/43758
26719         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
26720         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26721         (TARGET_INITIALIZER): Use it.
26722         * c-common.c (attribute_takes_identifier_p): Call it.
26723         * c-common.h: Update prototype.
26724         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
26725         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26726
26727 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
26728
26729         PR debug/43950
26730         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
26731         DW_ID_down_case for Fortran compilation units.
26732
26733 2010-05-05  Jan Hubicka  <jh@suse.cz>
26734
26735         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
26736         handle aliases.
26737
26738 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
26739
26740         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
26741         a variable-sized RESULT_DECL.
26742
26743 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
26744
26745         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
26746
26747 2010-05-05  Jason Merrill  <jason@redhat.com>
26748
26749         PR c++/43787
26750         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
26751         returns GS_OK.
26752         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
26753
26754 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
26755             Jakub Jelinek  <jakub@redhat.com>
26756
26757         PR debug/43478
26758         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
26759         (dead_debug_init, dead_debug_finish): New functions.
26760         (dead_debug_add, dead_debug_insert_before): Likewise.
26761         (df_note_bb_compute): Initialize a dead_debug object, add dead
26762         debug uses to it, insert debug bind insns before death insns,
26763         reset debug insns that refer to pending uses at the end.
26764         * rtl.h (make_debug_expr_from_rtl): New prototype.
26765         * varasm.c (make_debug_expr_from_rtl): New function.
26766
26767 2010-05-05  Jan Hubicka  <jh@suse.cz>
26768
26769         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
26770         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
26771         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
26772         lto_varpool_encoder_deref, lto_varpool_encoder_size,
26773         lto_varpool_encoder_encode_initializer_p,
26774         lto_set_varpool_encoder_encode_initializer): New functions.
26775         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
26776         call output_varpool.
26777         (input_varpool_node): Do not always set analyzed.
26778         (input_cgraph_1): Return vector of cgraph nodes.
26779         (input_varpool_1): Return vector of varpools.
26780         (input_cgraph): Free the vectors.
26781         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26782         output only initializers needed.
26783         (lto_output): Only call output_cgraph.
26784         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
26785         * lto-section-out.c (lto_new_out_decl_state): Initialize
26786         state->varpool_node_encoder.
26787         * lto-streamer.h (lto_varpool_encoder_d): New.
26788         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
26789         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
26790         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
26791         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
26792         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
26793         Declare.
26794         (output_varpool, input_varpool): Remove declarations.
26795
26796 2010-05-05  Jan Hubicka  <jh@suse.cz>
26797
26798         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
26799         with body can prevail.
26800
26801 2010-05-05  Jan Hubicka  <jh@suse.cz>
26802
26803         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
26804         size.
26805
26806 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26807
26808         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
26809
26810         * gengtype.h (erro_at_line): Constify pos argument.
26811
26812         * gengtype.c: Include hashtab.h.
26813         (enum gc_used): Document GC_MAYBE_POINTED_TO.
26814         (error_at_line): Constify pos argument.
26815         (do_typedef): Initialize p->opt field.
26816         (get_file_gtfilename): Fix comment typo.
26817         (struct walk_type_data): Constify line field.
26818         (get_output_file_for_structure): New function.
26819         (write_local_func_for_structure): Constify orig_s argument.
26820         Use get_output_file_for_structure.
26821         (write_func_for_structure): Use get_output_file_for_structure.
26822         (INDENT): New define.
26823         (dump_pair, dump_type, dump_type_list, dump_typekind)
26824         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
26825         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
26826         functions.
26827         (seen_types): New variable.
26828         (main): New variable do_dump.  Process "-d" command line option.
26829         Call dump_everything if dump requested.
26830
26831 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
26832
26833         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
26834         in a temporary instead of invoking the macro multiple times.
26835         (track_expr_p): Likewise.
26836
26837 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
26838
26839         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
26840         per new semantics.
26841         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
26842         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
26843         conditions for printing notes.
26844         * common.opt (-Wcoverage-mismatch): Allow negative, default to
26845         true, update documentation.
26846         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
26847
26848 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
26849
26850         PR c/43981
26851         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
26852         on dimen.
26853
26854 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26855
26856         PR target/43799
26857         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
26858         (*sse_prologue_save_insn1): Likewise.
26859         (SSE prologue save splitter): Likewise.
26860
26861 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
26862
26863         * tree.c (free_lang_data_in_one_sizepos): New inline function.
26864         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
26865         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
26866         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
26867         all decls.  Call it on DECL_FIELD_OFFSET of fields.
26868         (find_decls_types_r): Follow DECL_VALUE_EXPR.
26869         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
26870
26871 2010-05-04  Martin Jambor  <mjambor@suse.cz>
26872
26873         * tree-sra.c (build_access_from_expr_1): The first parameter type
26874         changed to simple tree.
26875         (build_access_from_expr): Likewise, gsi parameter was eliminated.
26876         (scan_assign_result): Renamed to assignment_mod_result, enum elements
26877         renamed as well.
26878         (build_accesses_from_assign): Removed all parameters except for a
26879         simple gimple statement.  Now returns a simple bool.
26880         (scan_function): All non-analysis parts moved to separate functions
26881         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
26882         parameters and updated both callers.
26883         (sra_modify_expr): Removed parameter data.
26884         (sra_modify_function_body): New function.
26885         (perform_intra_sra): Call sra_modify_function_body to modify the
26886         function body.
26887         (replace_removed_params_ssa_names): Parameter data changed into
26888         adjustments vector.
26889         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
26890         changed the parameter dont_convert to convert with the opposite
26891         meaning.
26892         (sra_ipa_modify_assign): Parameter data changed into adjustments
26893         vector, return value changed to bool.
26894         (ipa_sra_modify_function_body): New function.
26895         (sra_ipa_reset_debug_stmts): Updated a comment.
26896         (modify_function): Use ipa_sra_modify_function_body to modify function
26897         body.
26898
26899 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26900
26901         PR middle-end/43671
26902         * alias.c (true_dependence): Handle the same VALUE in x and mem.
26903         (canon_true_dependence): Likewise.
26904         (write_dependence_p): Likewise.
26905
26906 2010-05-04  Jan Hubicka  <jh@suse.cz>
26907
26908         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
26909         * cgraphbuild.c: Include ipa-utils.h
26910         (record_reference_ctx): New struct.
26911         (record_reference): Simplify to work on initializers; not statements.
26912         (mark_address, mark_load, mark_store): New.
26913         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26914         walk PHI nodes too.
26915         (record_references_in_initializer): Update use of record_reference.
26916         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26917         walk PHI nodes too.
26918
26919 2010-05-04  Jan Hubicka  <jh@suse.cz>
26920
26921         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
26922         node will be removed anyway.
26923         (lto_varpool_replace_node): Allow also unanalyzed nodes;
26924         relink aliases of node into prevailing node.
26925         * varpool.c (varpool_remove_node): Remove aliases properly;
26926         when removing node, remove all its aliases too; remove DECL_INITIAL
26927         of removed node; ggc_free the varpool node.
26928
26929 2010-05-04  Richard Guenther  <rguenther@suse.de>
26930
26931         PR tree-optimization/43879
26932         * tree-ssa-structalias.c (alias_get_name): Use
26933         DECL_ASSEMBLER_NAME if available.
26934         (create_function_info_for): Return the varinfo node.
26935         (ipa_pta_execute): Associate same-body aliases and extra names
26936         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
26937
26938 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
26939
26940         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
26941
26942 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
26943
26944         PR bootstrap/43964
26945         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
26946         only if HONOR_REG_ALLOC_ORDER is not defined.
26947
26948 2010-05-04  Richard Guenther  <rguenther@suse.de>
26949
26950         PR tree-optimization/43949
26951         * tree-vrp.c (extract_range_from_binary_expr): Only handle
26952         TRUNC_MOD_EXPR.
26953
26954 2010-04-26  Jason Merrill  <jason@redhat.com>
26955
26956         * c.opt (-fstrict-enums): New.
26957         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26958
26959 2010-05-03  David Ung  <davidu@mips.com>
26960             James E. Wilson  <wilson@codesourcery.com>
26961
26962         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26963         emit the trap instruction before the divide for TUNE_74K.
26964
26965 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
26966
26967         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26968         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26969         based on the above, for new target hook.
26970
26971         * hooks.c (hook_bool_mode_true): New generic hook.
26972         * hooks.h (hook_bool_mode_true): Add prototype.
26973
26974         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26975         target hook.
26976         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26977         target hook, set to hook_bool_mode_false.
26978         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26979         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26980         with targetm.small_register_classes_for_mode_p.
26981         (find_reusable_reload): Likewise.
26982         (combine_reloads): Likewise.
26983         * reload1.c (reload_as_needed): Likewise.
26984         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26985         * ifcvt.c (noce_process_if_block, check_cond_move_block,
26986         dead_or_predicable): Likewise.
26987         * regmove.c (optimize_reg_copy_1): Likewise.
26988         * calls.c (prepare_call_address): Likewise.
26989         (precompute_register_parameters): Likewise.
26990
26991         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26992         hook definition.
26993         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26994         implementation of the hook that considers all register classes
26995         small except for SH64.
26996         (sh_override_options): Use the new hook.
26997         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26998         Add prototype.
26999
27000         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
27001         hook definition.
27002         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
27003         implementation of the hook that considers all register classes
27004         small for THUMB1.
27005         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
27006         Add prototype.
27007
27008         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
27009         hook definition.
27010         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
27011         implementation of the hook that considers all register classes
27012         small for MIPS16.
27013         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
27014         Add prototype.
27015
27016         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
27017         hook definition.
27018         * config/m32c/m32c.h: Likewise.
27019         * config/pdp11/pdp11.h: Likewise.
27020         * config/avr/avr.h: Likewise.
27021         * config/xtensa/xtensa.h: Likewise.
27022         * config/m68hc11/m68hc11.h: Likewise.
27023         * config/mn10300/mn10300.h: Likewise.
27024         * config/mcore/mcore.h: Likewise.
27025         * config/h8300/h8300.h: Likewise.
27026         * config/bfin/bfin.h: Likewise.
27027
27028         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
27029         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
27030
27031 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
27032
27033         * double-int.h (tree_to_double_int): Remove macro.
27034         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
27035         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
27036         (tree_to_double_int): New function.
27037         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
27038         Move ...
27039         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
27040
27041 2010-05-03  Richard Guenther  <rguenther@suse.de>
27042
27043         PR tree-optimization/43971
27044         * tree-ssa-structalias.c (get_constraint_for_1): Fix
27045         constraints in the !flag_delete_null_pointer_checks case.
27046
27047 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
27048
27049         PR debug/43972
27050         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
27051         result mode matches original rtl mode.
27052
27053 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
27054
27055         PR target/43888
27056         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
27057
27058 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27059
27060         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
27061         when processing flag options.
27062
27063 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27064
27065         * gcov-iov.c (main): Change format string placeholder
27066         from %#08x to 0x%08x.
27067         * genchecksum.c (dosum): Change format string placeholder
27068         from %#02x to 0x%02x.
27069
27070 2010-05-02  Richard Guenther  <rguenther@suse.de>
27071
27072         PR tree-optimization/43879
27073         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
27074
27075 2010-05-02  Bruno Haible  <bruno@clisp.org>
27076
27077         * doc/extend.texi (Function Attributes): Fix a typo.
27078
27079 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27080
27081         Revert:
27082         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
27083         placeholder from 0x%x to %#x.
27084         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27085         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27086         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27087         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27088         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27089         * config/i386/i386.c (ix86_target_string): Ditto.
27090         * config/i386/i386.c (output_pic_addr_const): Ditto.
27091         (print_operand): Ditto.
27092
27093 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
27094
27095         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
27096         placeholder from 0x%x to %#x.
27097         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
27098         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
27099         (ASM_OUTPUT_DEBUG_DATA): Ditto.
27100         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
27101         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
27102         * optc-gen.awk: Ditto.
27103         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
27104         (HOST_WIDE_INT_PRINT_HEX): Ditto.
27105         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
27106         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
27107
27108 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
27109
27110         * target.h (struct calls): Add function_value_regno_p field.
27111         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
27112         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
27113         * targhooks.c (default_function_value_regno_p): New function.
27114         * targhooks.h (default_function_value_regno_p): Declare function.
27115         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
27116         * builtins.c. (apply_result_size): (Ditto.).
27117         * combine.c. (likely_spilled_retval_p): (Ditto.).
27118         * mode-switching.c. Include 'target.h'.
27119         (create_pre_exit): Use function_value_regno_p hook.
27120         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
27121         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
27122         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
27123
27124         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
27125         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
27126         (ix86_function_value_regno_p): Declare as static, change argument
27127         type to const unsigned int.
27128         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
27129
27130 2010-05-01  Richard Guenther  <rguenther@suse.de>
27131
27132         PR tree-optimization/43949
27133         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
27134         types.
27135         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
27136
27137 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
27138
27139         * rtl.h (CONST_DOUBLE_P): Define.
27140         (rtx_to_double_int): Declare.
27141         * emit-rtl.c (rtx_to_double_int): New function.
27142         * dwarf2out.c (insert_double): New function.
27143         (loc_descriptor, add_const_value_attribute): Clean up, use
27144         rtx_to_double_int and insert_double functions.
27145
27146 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
27147
27148         * doc/extend.texi (Inline): Add missing return keyword to examples.
27149         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
27150         "command-line".
27151
27152 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
27153
27154         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
27155         the variable part of the offset as well.  Use highest_pow2_factor for
27156         all alignment checks.
27157
27158 2010-04-30  Richard Guenther  <rguenther@suse.de>
27159
27160         PR tree-optimization/43879
27161         * tree-ssa-structalias.c (type_could_have_pointers): Functions
27162         can have pointers.
27163
27164 2010-04-30  Jan Hubicka  <jh@suse.cz>
27165
27166         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
27167         varpool.
27168         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
27169
27170 2010-04-30  Jan Hubicka  <jh@suse.cz>
27171
27172         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
27173         New.
27174         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
27175         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
27176         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
27177         cgraph_node_set_needs_ltrans_p): Remove.
27178
27179 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
27180
27181         * sdbout.c: Include vec.h, do not include varray.h.
27182         (deferred_global_decls, sdbout_global_decl,
27183         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
27184         * toplev.c: Do not include varray.h.
27185         (dump_memory_report): Do not dump VARRAY statistics.
27186         * gengtype.c (open_base_file): Ignore varray.h.
27187         * Makefile.in: Update for abovementioned changes.
27188         Remove all traces of varray.c and varray.h.
27189         * varray.c: Remove file.
27190         * varray.h: Remove file.
27191
27192 2010-04-30  Jan Hubicka  <jh@suse.cz>
27193
27194         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
27195         references.
27196
27197 2010-04-30  Jan Hubicka  <jh@suse.cz>
27198
27199         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
27200         needed.
27201
27202 2010-04-30  Richard Guenther  <rguenther@suse.de>
27203
27204         * tree-ssa-structalias.c (get_constraint_for_1): Generate
27205         constraints for CONSTRUCTOR.
27206
27207 2010-04-30  Richard Guenther  <rguenther@suse.de>
27208
27209         PR lto/43946
27210         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
27211         first after all lowering passes.
27212
27213 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
27214
27215         * toplev.c: Include varray.h for statistics dumping.
27216         * tree.h: Do not declare varray_head_tag.
27217         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
27218         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
27219         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
27220         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
27221         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
27222         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
27223         c-common.c, c-common.h, reg-stack.c, basic-block.h,
27224         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
27225         include varray.h.
27226         * Makefile.in: Update for abovementioned changes.
27227
27228 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
27229
27230         PR debug/43942
27231         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
27232
27233 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
27234
27235         * config/picochip/picochip.c (picochip_legitimize_address): Define.
27236         Use this function to do machine-specific conversion.
27237         (picochip_legitimize_reload_address): Likewise.
27238         (picochip_legitimate_address_p): Check valid base register only if
27239         strict.
27240         (picochip_check_conditional_copy): Check for modw only if opnd is
27241         register.
27242         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
27243         to call the function in c.
27244         * config/picochip/picochip-protos.h
27245         (picochip_legitimize_reload_address): Define.
27246         * config/picochip/picochip.md (supported_compare1): Define.
27247
27248 2010-04-30  Jan Hubicka  <jh@suse.cz>
27249
27250         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
27251         (cgraph_global_info): Remove inlined.
27252         (LTO_cgraph_tag_names): Remove.
27253         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
27254         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
27255         simplify cgraph tags and document.
27256         (lto_output_node): Use only LTO_cgraph_unavail_node and
27257         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
27258         for_functions_valid, global info, process and output flags.
27259         (input_overwrite_node): Initialize estimated stack size and
27260         estimated growth.  Do not read flags we no longer store.
27261         (input_node): Likewise do not read info no longer stored.
27262         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
27263         flag.
27264
27265 2010-04-30  Richard Guenther  <rguenther@suse.de>
27266
27267         PR tree-optimization/43879
27268         * tree-ssa-structalias.c (get_constraint_for_1): Properly
27269         handle non-zero initializers.
27270
27271 2010-04-30  Richard Guenther  <rguenther@suse.de>
27272
27273         * builtins.c (fold_builtin_1): Delete free (0).
27274
27275 2010-04-29  Jan Hubicka  <jh@suse.cz>
27276
27277         * gengtype.c (open_base_files): Add lto-streamer.h
27278         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
27279         (pass_ipa_cp): GGC collect.
27280         * toplev. (compile_file): Do not output symbols.
27281         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
27282         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
27283         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
27284         * lto-section-in.c: Include ggc.h
27285         (lto_new_in_decl_state): Alloc in GGC.
27286         (lto_delete_in_decl_state): Likewise.
27287         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
27288         Collect.
27289
27290 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
27291
27292         PR target/42895
27293         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
27294         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
27295         (HONOR_REG_ALLOC_ORDER): Describe new macro.
27296         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
27297         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
27298         account only if HONOR_REG_ALLOC_ORDER is not defined.
27299         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
27300         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
27301
27302 2010-04-29  Jon Grant  <04@jguk.org>
27303
27304         * collect2.c (vflag): Change type from int to bool.
27305         (debug): Likewise.
27306         (helpflag): New global bool.
27307         (main): Set vflag and debug with boolean, not integer truth values.
27308         Accept new "--help" option and output usage text if found.
27309         * collect2.h (vflag): Update prototype.
27310         (debug): Likewise.
27311
27312 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
27313
27314         PR bootstrap/43936
27315         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
27316
27317 2010-04-29  Richard Guenther  <rguenther@suse.de>
27318
27319         PR bootstrap/43935
27320         * plugin.h (invoke_plugin_callbacks): Annotate arguments
27321         with ATTRIBUTE_UNUSED.
27322
27323 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
27324
27325         PR target/43921
27326         * config/i386/i386.c (get_some_local_dynamic_name): Replace
27327         INSN_P with NONDEBUG_INSN_P.
27328         (distance_non_agu_define): Likewise.
27329         (distance_agu_use): Likewise.
27330
27331 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
27332
27333         From Dominique d'Humieres  <dominiq@lps.ens.fr>
27334         PR bootstrap/43858
27335         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
27336         test_set.
27337
27338 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
27339
27340         * plugin.h (invoke_plugin_callbacks): New inline function.
27341         * plugin.c (flag_plugin_added): New global flag.
27342         (add_new_plugin): Initialize above flag.
27343         (invoke_plugin_callbacks): Rename to ...
27344         (invoke_plugin_callbacks_full): ... this.
27345
27346 2010-04-28  Jan Hubicka  <jh@suse.cz>
27347
27348         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
27349         (lto_varpool_replace_node): New.
27350         (lto_symtab_resolve_symbols): Resolve varpool nodes.
27351         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
27352         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
27353         * cgraph.h (varpool_node_ptr): New type.
27354         (varpool_node_ptr): New vector.
27355         (varpool_node_set_def): New structure.
27356         (varpool_node_set): New type.
27357         (varpool_node_set): New vector.
27358         (varpool_node_set_element_def): New structure.
27359         (varpool_node_set_element, const_varpool_node_set_element): New types.
27360         (varpool_node_set_iterator): New type.
27361         (varpool_node): Add prev pointers, add used_from_other_partition,
27362         in_other_partition.
27363         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
27364         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
27365         varpool_get_node, varpool_remove_node): Declare.
27366         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
27367         varpool_node_set_size): New inlines.
27368         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
27369         * tree-pass.h (varpool_node_set_def): Forward declare.
27370         (ipa_opt_pass_d): Summary writting takes vnode sets too.
27371         (ipa_write_optimization_summaries): Update prototype.
27372         * ipa-cp.c (ipcp_write_summary): Update.
27373         * ipa-reference.c (ipa_reference_write_summary): Update.
27374         * lto-cgraph.c (lto_output_varpool_node): New static function.
27375         (output_varpool): New function.
27376         (input_varpool_node): New static function.
27377         (input_varpool_1): New function.
27378         (input_cgraph): Input varpool.
27379         * ipa-pure-const.c (pure_const_write_summary): Update.
27380         * lto-streamer-out.c (lto_output): Update, output varpool too.
27381         (write_global_stream): Kill WPA hack.
27382         (produce_asm_for_decls): Update.
27383         (output_alias_pair_p): Handle variables.
27384         (output_unreferenced_globals): Output only needed partition of varpool.
27385         * ipa-inline.c (inline_write_summary): Update.
27386         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
27387         cgraph.
27388         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
27389         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
27390         varpool_node_set_new, varpool_node_set_add,
27391         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
27392         debug_varpool_node_set): New functions.
27393         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
27394         (execute_one_pass): Process new decls too.
27395         (ipa_write_summaries_2): Pass around vsets.
27396         (ipa_write_summaries_1): Likewise.
27397         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
27398         to add.
27399         (ipa_write_optimization_summaries_1): Pass around vsets.
27400         (ipa_write_optimization_summaries): Likewise.
27401         * varpool.c (varpool_get_node): New.
27402         (varpool_node): Update doubly linked lists.
27403         (varpool_remove_node): New.
27404         (dump_varpool_node): More dumping.
27405         (varpool_enqueue_needed_node): Update doubly linked lists.
27406         (decide_is_variable_needed): Kill ltrans hack.
27407         (varpool_finalize_decl): Kill lto hack.
27408         (varpool_assemble_decl): Skip decls in other partitions.
27409         (varpool_assemble_pending_decls): Update doubly linkes lists.
27410         (varpool_empty_needed_queue): Likewise.
27411         (varpool_extra_name_alias): Likewise.
27412         * lto-streamer.c (lto_get_section_name): Add vars section.
27413         * lto-streamer.h (lto_section_type): Update.
27414         (output_varpool, input_varpool): Declare.
27415
27416 2010-04-28  Mike Stump  <mikestump@comcast.net>
27417
27418         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
27419
27420 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27421
27422         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
27423         record or union type with RECORD_OR_UNION_TYPE_P predicate.
27424         (lto_input_ts_type_tree_pointers): Likewise.
27425         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
27426         (lto_output_ts_type_tree_pointers): Likewise.
27427
27428 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27429
27430         Uniquization of constants at the Tree level
27431         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
27432         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
27433         bit to the end.
27434         (tree_output_constant_def): Declare.
27435         * gimplify.c (gimplify_init_constructor): When using block copy, first
27436         uniquize the constant constructor on the RHS.
27437         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
27438         DECL_IN_CONSTANT_POOL flag.
27439         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
27440         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
27441         constant pool.
27442         (assemble_variable): Deal with symbols belonging to the tree constant
27443         pool.
27444         (get_constant_section): Add ALIGN parameter and simplify.
27445         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
27446         (assemble_constant_contents): Use the expression of the VAR_DECL.
27447         (output_constant_def_contents): Use the alignment of the VAR_DECL.
27448         (tree_output_constant_def): New global function.
27449         (mark_constant): Use the expression of the VAR_DECL.
27450         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
27451         its expression.
27452         (output_object_block): Likewise and assemble the expression.
27453
27454 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27455
27456         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
27457         hash_tree, eq_tree): New tree hash table.
27458         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
27459         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
27460         lto_orig_address_remove): Reimplement.
27461
27462 2010-04-28  Xinliang David Li  <davidxl@google.com>
27463
27464         PR c/42643
27465         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
27466         (compute_uninit_opnds_pos): New function.
27467         (is_non_loop_exit_postdominating): New function.
27468         (compute_control_dep_chain): New function.
27469         (find_pdom): New function.
27470         (convert_control_dep_chain_into_preds): New function.
27471         (find_predicates): New function.
27472         (find_control_equiv_block): New function.
27473         (collect_phi_def_edges): New function.
27474         (find_def_preds): New function.
27475         (find_dom): New function.
27476         (dump_predicates): New function.
27477         (get_cmp_code): New function.
27478         (is_value_included_in): New function.
27479         (find_matching_predicate_in_rest_chains): New function.
27480         (use_pred_not_overlap_with_undef_path_pred): New function.
27481         (is_use_properly_guarded): New function.
27482         (normalize_cond_1): New function.
27483         (is_and_or_or): New function.
27484         (normalize_cond): New function.
27485         (is_gcond_subset_of): New function.
27486         (is_subset_of_any): New function.
27487         (is_or_set_subset_of): New function.
27488         (is_and_set_subset_of): New function.
27489         (is_norm_cond_subset_of): New function.
27490         (is_pred_expr_subset_of): New function.
27491         (is_pred_chain_subset_of): New function.
27492         (is_included_in): New function.
27493         (is_superset_of): New function.
27494         (find_uninit_use): New function.
27495         (warn_uninitialized_phi): New function.
27496         (compute_possibly_undefined_names): New function.
27497         (ssa_undefined_value_p): New function.
27498         (execute_late_warn_uninitialized): New function.
27499         * tree-ssa.c (ssa_undefined_value_p): Removed.
27500         (warn_uninit): Changed to extern.
27501         (warn_uninitialized_phi): Removed.
27502         (warn_uninitialized_vars): Changed to extern.
27503         (execute_late_warn_uninitialized): Removed
27504         * tree-flow.h: Add new prototypes.
27505         * timevar.def: Add new time variable.
27506         * Makefile.in: Add new build file.
27507
27508 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
27509
27510         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
27511         type if available.
27512
27513 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27514
27515         PR target/22224
27516         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
27517
27518 2010-04-28  Martin Jambor  <mjambor@suse.cz>
27519
27520         * cgraph.h (struct cgraph_node): New field indirect_calls.
27521         (struct cgraph_indirect_call_info): New type.
27522         (struct cgraph_edge): Removed field indirect_call. New fields
27523         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
27524         (cgraph_create_indirect_edge): Declare.
27525         (cgraph_make_edge_direct): Likewise.
27526         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
27527         * ipa-prop.h (struct ipa_param_call_note): Removed.
27528         (struct ipa_node_params): Removed field param_calls.
27529         (ipa_create_all_structures_for_iinln): Declare.
27530         * cgraph.c: Described indirect edges and uids in initial comment.
27531         (cgraph_add_edge_to_call_site_hash): New function.
27532         (cgraph_edge): Search also among the indirect edges, use
27533         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
27534         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
27535         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
27536         site hash.
27537         (initialize_inline_failed): Assign a reason to indirect edges.
27538         (cgraph_create_edge_1): New function.
27539         (cgraph_create_edge): Moved some functionality to
27540         cgraph_create_edge_1.
27541         (cgraph_create_indirect_edge): New function.
27542         (cgraph_edge_remove_callee): Add an assert checking for
27543         non-indirectness.
27544         (cgraph_edge_remove_caller): Special-case indirect edges.
27545         (cgraph_remove_edge): Likewise.
27546         (cgraph_set_edge_callee): New function.
27547         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
27548         (cgraph_make_edge_direct): New function.
27549         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
27550         the declaration of the call statement matches.
27551         (cgraph_node_remove_callees): Special-case indirect edges.
27552         (cgraph_clone_edge): Likewise.
27553         (cgraph_clone_node): Clone also the indirect edges.
27554         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
27555         indirect_call, dump count of indirect_calls edges.
27556         * ipa-prop.c (iinlining_processed_edges): New variable.
27557         (ipa_note_param_call): Create indirect edges instead of
27558         creating notes.  New parameter node.
27559         (ipa_analyze_call_uses): New parameter node, pass it on to
27560         ipa_note_param_call.
27561         (ipa_analyze_stmt_uses): Likewise.
27562         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
27563         (print_edge_addition_message): Work on edges rather than on notes.
27564         (update_call_notes_after_inlining): Likewise, renamed to
27565         update_indirect_edges_after_inlining.
27566         (ipa_create_all_structures_for_iinln): New function.
27567         (ipa_free_node_params_substructures): Do not free notes.
27568         (ipa_edge_duplication_hook): Propagate bits within
27569         iinlining_processed_edges bitmap.
27570         (ipa_node_duplication_hook): Do not duplicate notes.
27571         (free_all_ipa_structures_after_ipa_cp): Renamed to
27572         ipa_free_all_structures_after_ipa_cp.
27573         (free_all_ipa_structures_after_iinln): Renamed to
27574         ipa_free_all_structures_after_iinln.
27575         (ipa_write_param_call_note): Removed.
27576         (ipa_read_param_call_note): Removed.
27577         (ipa_write_indirect_edge_info): New function.
27578         (ipa_read_indirect_edge_info): Likewise.
27579         (ipa_write_node_info): Do not stream notes, do stream information
27580         in indirect edges.
27581         (ipa_read_node_info): Likewise.
27582         (lto_ipa_fixup_call_notes): Removed.
27583         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
27584         * ipa-inline.c (pass_ipa_inline): Likewise.
27585         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
27586         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
27587         * tree-inline.c (copy_bb): Removed an unnecessary double check for
27588         is_gimple_call.
27589         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
27590         edges.
27591         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
27592         (output_cgraph): Stream also indirect edges.
27593         (lto_output_edge): Added capability to stream indirect edges.
27594         (input_edge): Likewise.
27595         (input_cgraph_1): Likewise.
27596         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
27597         of indirect edges.
27598
27599 2010-04-28  Richard Guenther  <rguenther@suse.de>
27600
27601         PR tree-optimization/43879
27602         PR tree-optimization/43909
27603         * tree-ssa-structalias.c (struct variable_info): Add
27604         only_restrict_pointers flag.
27605         (new_var_info): Initialize it.  Increment stats.total_vars here.
27606         (create_function_info_for): Do not increment stats.total_vars here.
27607         (get_function_part_constraint): Fix build with C++.
27608         (insert_into_field_list): Remove.
27609         (push_fields_onto_fieldstack): Properly merge fields.
27610         (create_variable_info_for): Split and simplify.
27611         (create_variable_info_for_1): New piece.
27612         (intra_create_variable_infos): Properly make restrict constraints
27613         from parameters.
27614
27615 2010-04-28  Richard Guenther  <rguenther@suse.de>
27616
27617         PR c++/43880
27618         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
27619
27620 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27621             Jan Hubicka  <hubicka@ucw.cz>
27622
27623         * doc/invoke.texi (-Wsuggest-attribute=const,
27624         -Wsuggest-attribute=pure): Document.
27625         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
27626         (function_always_visible_to_compiler_p,
27627         suggest_attribute, warn_function_pure, warn_function_const):
27628         New functions.
27629         (check_call): Improve debug info.
27630         (analyze_function): Do not check availability.
27631         (add_new_function): Check availability.
27632         (propagate): Output warnings.
27633         (skip_function_for_local_pure_const): New function.
27634         (local_pure_const): Use it; output warnings.
27635         * common.opt (Wsuggest-attribute=const,
27636         Wsuggest-attribute=pure): New.
27637
27638 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
27639
27640         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
27641         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
27642         or DW_CFA_def_cfa_offset{,_sf}.
27643
27644 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27645
27646         * tree.h: Fix truncated long macros.
27647
27648 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
27649
27650         * collect2.c (TARGET_64BIT): Redefine to target's default.
27651         * tlink.c: Likewise.
27652         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
27653         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
27654         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
27655         for underscoring __USER_LABEL_PREFIX__.
27656         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
27657         (SUB_LINK_ENTRY32): New.
27658         (SUB_LINK_ENTRY64): New.
27659         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
27660         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
27661         (SUB_LINK_ENTRY64): New.
27662         (SUB_LINK_ENTRY): New.
27663         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
27664         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
27665         x64 target is choosen.
27666         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
27667         * configure: Regenerated.
27668         * configure.ac (leading-mingw64-underscores): Option added.
27669
27670 2010-04-27  Jan Hubicka  <jh@suse.cz>
27671
27672         * doc/invoke.texi (-fipa-profile): Document.
27673         * opts.c (decode_options): Enable ipa-profile at -O1.
27674         * timevar.def (TV_IPA_PROFILE): Define.
27675         * common.opt (fipa-profile): Add.
27676         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
27677         flag for clones.
27678         (cgraph_propagate_frequency): Handle only local ones.
27679         * tree-pass.h (pass_ipa_profile): Declare.
27680         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
27681         (pass_ipa_profile): Use TV_IPA_PROFILE.
27682         * ipa.c (ipa_profile): New function.
27683         (gate_ipa_profile): Likewise.
27684         (pass_ipa_profile): New global variable.
27685         * passes.c (pass_ipa_profile): New.
27686
27687 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
27688
27689         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
27690
27691 2010-04-27  Martin Jambor  <mjambor@suse.cz>
27692
27693         PR middle-end/43812
27694         * ipa.c (dissolve_same_comdat_group_list): New function.
27695         (function_and_variable_visibility): Call
27696         dissolve_same_comdat_group_list when comdat group contains external or
27697         newly local nodes.
27698         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
27699         lists are circular and that they contain only DECL_ONE_ONLY nodes.
27700
27701 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27702
27703         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
27704         (const_hash_1) <VECTOR_CST>: New case.
27705         (compare_constant) <VECTOR_CST>: Likewise.
27706         <ADDR_EXPR>: Deal with LABEL_REFs.
27707         (copy_constant) <VECTOR_CST>: New case.
27708
27709 2010-04-27  Jan Hubicka  <jh@suse.cz>
27710
27711         * cgraph.c (cgraph_propagate_frequency): New function.
27712         * cgraph.h (cgraph_propagate_frequency): Declare.
27713         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
27714         cgraph_propagate_frequency.
27715
27716 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
27717
27718         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
27719
27720 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
27721
27722         PR target/40657
27723         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
27724         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
27725         here to determine which regs to push and how much stack to reserve.
27726
27727 2010-04-27  Jie Zhang  <jie@codesourcery.com>
27728
27729         * doc/gimple.texi (gimple_statement_with_ops): Remove
27730         addresses_taken field.
27731         (gimple_statement_with_memory_ops): Likewise.
27732
27733 2010-04-27  Jan Hubicka  <jh@suse.cz>
27734
27735         * tree-inline.c (eni_inlining_weights): Remove.
27736         (estimate_num_insns): Special case more builtins.
27737
27738 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
27739
27740         PR c/32207
27741         * c-typeck.c (build_binary_op): Move forward check for comparison
27742         pointer with null pointer constant and adjust the diagnostic message.
27743
27744 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
27745
27746         PR lto/42776
27747         * configure.ac (gcc_cv_as_section_has_align): Set if installed
27748         binutils supports extended .section directive needed by LTO, or
27749         warn if older binutils found.
27750         (LTO_BINARY_READER): New AC_SUBST'd variable.
27751         (LTO_USE_LIBELF): Likewise.
27752         * config.gcc (lto_binary_reader): New target-specific configure
27753         variable.
27754         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
27755         (LTO_USE_LIBELF): Likewise.
27756         * configure: Regenerate.
27757
27758         * collect2.c (is_elf): Rename from this ...
27759         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
27760          object files in addition to ELF-formatted ones.
27761         (scan_prog_file): Caller updated.  Also allow for LTO info marker
27762         symbol to be prefixed or not by an extra underscore.
27763
27764         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
27765         * config/i386/winnt.c: Also #include lto-streamer.h
27766         (i386_pe_asm_named_section): Specify 1-byte section alignment for
27767         LTO named sections.
27768         (i386_pe_asm_output_aligned_decl_common): Add comment.
27769         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
27770
27771 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
27772
27773         PR target/43889
27774         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
27775         Add missing earlyclobber for second alternative.
27776
27777 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
27778
27779         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
27780         bits for artificial defs at the top of the block.
27781         * fwprop.c (single_def_use_enter_block): Don't call it.
27782
27783 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
27784
27785         PR 43715
27786         * configure.ac: Use "$gcc_cv_nm -g" on darwin
27787         instead of "$gcc_cv_objdump -T".
27788         Use "-undefined dynamic_lookup" on darwin.
27789         * configure: Regenerate.
27790
27791 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
27792
27793         PR c/43893
27794         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
27795
27796 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
27797
27798         * c-parser.c (struct c_token): Move location field up.
27799         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
27800         (struct c_declspecs): Convert typespec_word, storage_class, and
27801         default_int_p into bitfields.
27802         (struct c_declarator): Move loc field up.
27803
27804 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
27805
27806         * cfgloop.h (struct loop): Move can_be_parallel field up.
27807         * ipa-prop.h (struct ip_node_params): Move bitfields up.
27808         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
27809         down.
27810         (struct iv_cand): Convert pos field into a bitfield.
27811         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
27812         field up.
27813         (struct _stmt_vec_info): Shuffle fields for better packing.
27814
27815 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
27816
27817         * varasm.c (IN_NAMED_SECTION): Remove guard.
27818         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
27819         (IN_NAMED_SECTION_P): ...this.
27820         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
27821         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
27822
27823 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
27824
27825         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
27826         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
27827         of shadowing it.  Fix comments.
27828
27829 2010-04-26  Jan Hubicka  <jh@suse.cz>
27830
27831         * cgraph.c (cgraph_create_node): Set node frequency to normal.
27832         (cgraph_clone_node): Copy function frequency.
27833         * cgraph.h (node_frequency): New enum
27834         (struct cgraph_node): Add.
27835         * final.c (rest_of_clean_state): Update.
27836         * lto-cgraph.c (lto_output_node): Output node frequency.
27837         (input_overwrite_node): Input node frequency.
27838         * tre-ssa-loop-ivopts (computation_cost): Update.
27839         * lto-streamer-out.c (output_function): Do not output function
27840         frequency.
27841         * predict.c (maybe_hot_frequency_p): Update and handle functions
27842         executed once.
27843         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
27844         attribute lookup.
27845         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
27846         (compute_function_frequency): Set noreturn functions to be executed
27847         once.
27848         (choose_function_section): Update.
27849         * lto-streamer-in.c (input_function): Do not input function frequency.
27850         * function.c (allocate_struct_function): Do not initialize function
27851         frequency.
27852         * function.h (function_frequency): Remove.
27853         (struct function): Remove function frequency.
27854         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
27855         (try_update): Update.
27856         * tree-inline.c (initialize_cfun): Do not update function frequency.
27857         * passes.c (pass_init_dump_file): Update.
27858         * i386.c (ix86_compute_frame_layout): Update.
27859         (ix86_pad_returns): Update.
27860
27861 2010-04-26  Jie Zhang  <jie@codesourcery.com>
27862
27863         PR tree-optimization/43833
27864         * tree-vrp.c (range_int_cst_p): New.
27865         (range_int_cst_singleton_p): New.
27866         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
27867         when both operands are constants.  Use range_int_cst_p in
27868         BIT_IOR_EXPR case.
27869
27870 2010-04-26  Jan Hubicka  <jh@suse.cz>
27871
27872         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
27873
27874 2010-04-26  Richard Guenther  <rguenther@suse.de>
27875
27876         PR lto/43080
27877         * gimple.c (gimple_decl_printable_name): Deal gracefully
27878         with a NULL DECL_NAME.
27879
27880 2010-04-26  Richard Guenther  <rguenther@suse.de>
27881
27882         PR lto/42425
27883         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
27884         if emitting debug information and it is either a function
27885         or a namespace decl.
27886
27887 2010-04-26  Ira Rosen  <irar@il.ibm.com>
27888
27889         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
27890         determine if the statement is vectorizable, and a macro to access it.
27891         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27892         Skip statements that can't be vectorized. If the analysis fails,
27893         mark the statement as unvectorizable if vectorizing basic block.
27894         (vect_compute_data_refs_alignment): Likewise.
27895         (vect_verify_datarefs_alignment): Skip statements marked as
27896         unvectorizable. Add print.
27897         (vect_analyze_group_access): Skip statements that can't be
27898         vectorized. If the analysis fails, mark the statement as
27899         unvectorizable if vectorizing basic block.
27900         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
27901         * tree-vect-stmts.c (vectorizable_store): Fix the number of
27902         generated stmts for SLP.
27903         (new_stmt_vec_info): Initialize the new field.
27904         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
27905         statements marked as unvectorizable.
27906
27907 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
27908
27909         * c-common.c (flag_isoc1x): New.
27910         (flag_isoc99): Update comment.
27911         * c-common.h (flag_isoc1x): New.
27912         (flag_isoc99): Update comment.
27913         * c-cppbuiltin.c (builtin_define_float_constants): Also define
27914         __<type>_DECIMAL_DIG__.
27915         * c-opts.c (set_std_c1x): New.
27916         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
27917         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
27918         * c.opt (-std=c1x, -std=gnu1x): New options.
27919         * doc/cpp.texi: Mention -std=c1x.
27920         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
27921         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
27922         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
27923         * doc/standards.texi: Mention C1X.
27924         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
27925         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
27926         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
27927         Define for C1X.
27928
27929 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
27930
27931         * config/i386/gmon-sol2.c (_mcleanup): Change format string
27932         placeholder from 0x%x to %#x.
27933         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27934         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27935         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27936         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27937         * config/i386/i386.c (ix86_target_string): Ditto.
27938         (output_pic_addr_const): Ditto.
27939         (print_operand): Ditto.
27940
27941 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
27942
27943         * combine.c (find_split_point): Add third argument.  Use it
27944         to find nested multiply-accumulate instructions.  Adjust calls.
27945         (try_combine): Adjust call to find_split_point.
27946
27947 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
27948
27949         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
27950
27951 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
27952
27953         PR tree-optimization/41442
27954         * fold-const.c (merge_truthop_with_opposite_arm): New function.
27955         (fold_binary_loc): Call it.
27956
27957 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27958
27959         * toplev.c (general_init): Set default for fdiagnostics-show-option.
27960         * opts.c (common_handle_option): Allow disabling it.
27961         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27962
27963 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
27964
27965         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27966         between modes if both types are integral.
27967
27968 2010-04-23  Richard Guenther  <rguenther@suse.de>
27969
27970         PR tree-optimization/43572
27971         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27972
27973 2010-04-23  Richard Guenther  <rguenther@suse.de>
27974
27975         PR lto/43455
27976         * tree-inline.c (tree_can_inline_p): Also check compatibility
27977         of return types.
27978
27979 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27980
27981         PR tree-optimization/43846
27982         * tree-sra.c (struct access): New flag grp_assignment_read.
27983         (build_accesses_from_assign): Set grp_assignment_read.
27984         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27985         (enum mark_read_status): New type.
27986         (analyze_access_subtree): Propagate grp_assignment_read, create
27987         accesses also if both direct_read and root->grp_assignment_read.
27988
27989 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27990
27991         PR middle-end/43835
27992         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27993         function does not have type attributes.
27994
27995 2010-04-23  Richard Guenther  <rguenther@suse.de>
27996
27997         PR lto/42653
27998         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27999         of FUNCTION_DECLs.
28000
28001 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28002
28003         * sese.h (create_if_region_on_edge): Remove.
28004
28005         * sese.c (create_if_region_on_edge): Make static.
28006
28007         * tree-inline.c: Do not include ggc.h.
28008
28009         * expr.c: Do not include ggc.h.
28010
28011         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
28012         dependencies.
28013
28014 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
28015
28016         PR target/43744
28017         * config/sh/sh.c (find_barrier): Don't emit a constant pool
28018         in the middle of insns for casesi_worker_2.
28019
28020 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
28021
28022         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
28023
28024 2010-04-22  Ira Rosen  <irar@il.ibm.com>
28025
28026         PR tree-optimization/43842
28027         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
28028         loop unrolling in update of exit phis. Fix comment.
28029         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
28030         least two reduction statements in the loop before starting SLP
28031         analysis.
28032
28033 2010-04-22  Nick Clifton  <nickc@redhat.com>
28034
28035         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
28036
28037 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
28038
28039         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
28040         to simplify a + ~a.
28041
28042 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28043
28044         * tree-parloops.c (loop_parallel_p): New argument
28045         parloop_obstack.  Pass it down.
28046         (parallelize_loops): New variable parloop_obstack.  Initialize it,
28047         pass it down, free it.
28048
28049         * tree-loop-linear.c (linear_transform_loops): Pass down
28050         lambda_obstack.
28051
28052         * tree-data-ref.h (lambda_compute_access_matrices): New argument
28053         of type struct obstack *.
28054
28055         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
28056         scratch_obstack.  Initialize it, pass down, free it.
28057
28058         * lambda.h (lambda_loop_new): Remove.
28059         (lambda_matrix_new, lambda_matrix_inverse)
28060         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
28061         argument of type struct obstack *.
28062
28063         * lambda-trans.c (lambda_trans_matrix_new): New argument
28064         lambda_obstack.  Pass it down, use obstack allocation for ret.
28065         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
28066         it down.
28067
28068         * lambda-mat.c (lambda_matrix_get_column)
28069         (lambda_matrix_project_to_null): Remove.
28070         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
28071         allocation for mat.
28072         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
28073         lambda_obstack.
28074
28075         * lambda-code.c (lambda_loop_new): New function.
28076         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
28077         (lambda_compute_auxillary_space, lambda_compute_target_space)
28078         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
28079         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
28080         (build_access_matrix): New argument lambda_obstack.  Use obstack
28081         allocation for am.
28082         (lambda_compute_step_signs, lambda_compute_access_matrices): New
28083         argument lambda_obstack.  Pass it down.
28084
28085 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28086
28087         * optabs.h (expand_widening_mult): Declare.
28088
28089 2010-04-22  Richard Guenther  <rguenther@suse.de>
28090
28091         PR tree-optimization/43845
28092         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
28093         lookup the CALL_EXPR function and arguments.
28094
28095 2010-04-22  Nick Clifton  <nickc@redhat.com>
28096
28097         * config/stormy16/stormy16.c
28098         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
28099         * config/stormy16/stormy16.h: Tidy up formatting.
28100         (DONT_USE_BUILTIN_SETJMP): Remove definition.
28101         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
28102         (ineqbranchsi): Delete pattern.
28103         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
28104         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
28105         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
28106         stormy16-lib2-ucmpsi2.c.
28107
28108 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28109
28110         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
28111         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
28112         extra set merge_set_noclobber, and use it to relax the final test
28113         slightly.
28114         * df.h (df_simulate_find_noclobber_defs): Declare.
28115         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
28116         conditional defs.
28117         (df_simulate_find_noclobber_defs): New function.
28118
28119 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
28120
28121         * config/i386/i386.md: Use {} around multi-line preparation statements.
28122
28123 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
28124
28125         * c-tree.h (push_init_level, pop_init_level, set_init_index)
28126         (process_init_element): New argument of type struct obstack *.
28127
28128         * c-typeck.c (push_init_level, pop_init_level, set_designator)
28129         (set_init_index, set_init_label, set_nonincremental_init)
28130         (set_nonincremental_init_from_string, find_init_member)
28131         (output_init_element, output_pending_init_elements)
28132         (process_init_element): New argument braced_init_obstack.  Pass it
28133         down.
28134         (push_range_stack, add_pending_init): New argument
28135         braced_init_obstack.  Use obstack allocation.
28136
28137         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
28138         braced_init_obstack.  Pass it down.
28139         (c_parser_braced_init): New variables ret, braced_init_obstack.
28140         Initialize obstack, pass it down and finally free it.
28141
28142 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
28143
28144         PR middle-end/29274
28145         * tree-pass.h (pass_optimize_widening_mul): Declare.
28146         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
28147         gate_optimize_widening_mul): New static functions.
28148         (pass_optimize_widening_mul): New.
28149         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
28150         <case MULT_EXPR>: Remove support for widening multiplies.
28151         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
28152         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
28153         simplify_gen_unary rather than directly building extensions.
28154         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
28155         WIDEN_MULT_EXPR.
28156         * expmed.c (expand_widening_mult): New function.
28157         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
28158
28159 2010-04-21  Jan Hubicka  <jh@suse.cz>
28160
28161         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
28162         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
28163         * lto-wpa-fixup.c: Remove.
28164         * Makefile.in (lto-wpa-fixup.o): Remove.
28165         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
28166         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
28167         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
28168
28169 2010-04-21  Jan Hubicka  <jh@suse.cz>
28170
28171         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
28172         add write_optimization_summary, read_optimization_summary.
28173         (ipa_write_summaries_of_cgraph_node_set): Remove.
28174         (ipa_write_optimization_summaries): Declare.
28175         (ipa_read_optimization_summaries): Declare.
28176         * ipa-cp.c (pass_ipa_cp): Update.
28177         * ipa-reference.c (pass_ipa_reference): Update.
28178         * ipa-pure-const.c (pass_ipa_pure_const): Update.
28179         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
28180         Update.
28181         * ipa-inline.c (pass_ipa_inline): Update.
28182         * ipa.c (pass_ipa_whole_program): Update.
28183         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
28184         * passes.c (ipa_write_summaries_1): Do not test wpa.
28185         (ipa_write_optimization_summaries_1): New.
28186         (ipa_write_optimization_summaries): New.
28187         (ipa_read_summaries): Do not test ltrans.
28188         (ipa_read_optimization_summaries_1): New.
28189         (ipa_read_optimization_summaries): New.
28190
28191 2010-04-21  Jan Hubicka  <jh@suse.cz>
28192
28193         * lto-cgraph.c (lto_output_node): Do not output comdat groups
28194         for boundary nodes.
28195         (output_cgraph): Do not arrange comdat groups for boundary nodes.
28196
28197 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28198
28199         PR debug/40040
28200         * dwarf2out.c (add_name_and_src_coords_attributes): Add
28201         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
28202
28203 2010-04-21  Jan Hubicka  <jh@suse.cz>
28204
28205         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
28206
28207 2010-04-21  Jan Hubicka  <jh@suse.cz>
28208
28209         * varpool.c (decide_is_variable_needed): Variable is always needed
28210         during ltrans.
28211
28212 2010-04-21  Jan Hubicka  <jh@suse.cz>
28213
28214         * opts.c (decode_options): Enable pure-const pass for whopr.
28215
28216 2010-04-21  Jan Hubicka  <jh@suse.cz>
28217
28218         * cgraph.c (dump_cgraph_node): Dump also assembler name.
28219         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
28220         at WPA dumping.
28221         (cgraph_decide_inlining): Do not expect callee to be removed in all
28222         cases.
28223
28224 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
28225
28226         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
28227
28228 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
28229
28230         * config/i386/i386.md (x86_shrd): Add athlon_decode and
28231         amdfam10_decode attributes.
28232
28233 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28234
28235         PR middle-end/43570
28236         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
28237         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
28238         (lower_copyprivate_clauses): Use private var in outer
28239         context instead of original var.  Make sure the types
28240         are correct for VLAs.
28241
28242 2010-04-21  Richard Guenther  <rguenther@suse.de>
28243
28244         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
28245         to non-pointer objects.
28246
28247 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
28248
28249         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
28250         last chain entry if it starts with the still current label.
28251         (add_location_or_const_value_attribute): Check that
28252         loc_list->first->next is NULL instead of comparing ->first with ->last.
28253         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
28254         to add_var_loc_to_decl.
28255
28256         * dwarf2out.c (output_call_frame_info): For dw_cie_version
28257         >= 4 add also address size and segment size fields into CIE header.
28258
28259         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
28260         long as address size is the same as sizeof (void *) and
28261         segment size is 0.
28262         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
28263         address size or segment size is unexpected, return DW_EH_PE_omit.
28264         (classify_object_over_fdes): If get_cie_encoding returned
28265         DW_EH_PE_omit, return -1.
28266         (init_object): If classify_object_over_fdes returned -1,
28267         pretend there were no FDEs at all.
28268
28269 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
28270
28271         * config/i386/i386.md (bswap<mode>2): Macroize expander from
28272         bswap{si,di}2 using SWI48 mode iterator.
28273         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
28274         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
28275         set modrm attribute of bswap insn to 0 and remove length attribute.
28276         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
28277         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
28278         set mode attribute to <MODE> and remove length attribute.
28279
28280 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
28281
28282         PR rtl-optimization/43520
28283         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
28284         zero available registers.
28285
28286 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28287
28288         * builtins.c (fold_builtin_cproj): Fold more cases.
28289
28290 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
28291
28292         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
28293         (fold_builtin_1): Fold builtin cproj.
28294         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
28295         Use ATTR_CONST_NOTHROW_LIST.
28296
28297 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
28298
28299         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
28300         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
28301         ffsi2_no_cmove for !TARGET_CMOVE.
28302         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
28303         (ffssi2): Remove expander.
28304         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
28305         mode iterator.
28306         (ctz<mode>2): Ditto from ctz{si,di}2.
28307         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
28308         mode iterator.
28309         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
28310         mode iterator.
28311
28312 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
28313
28314         * dwarf2out.c (AT_linkage_name): Define.
28315         (clone_as_declaration): Handle DW_AT_linkage_name.
28316         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
28317         of DW_AT_MIPS_linkage_name.
28318         (move_linkage_attr): Likewise.
28319         (dwarf2out_finish): Likewise.
28320
28321 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
28322
28323         PR middle-end/41952
28324         * fold-const.c (fold_comparison): New folding rule.
28325
28326 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
28327
28328         * double-int.h (double_int_setbit): Declare.
28329         * double-int.c (double_int_setbit): New function.
28330         * rtl.h (immed_double_int_const): Declare.
28331         * emit-rtl.c (immed_double_int_const): New function.
28332         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
28333         and immed_double_int_const functions.
28334         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
28335         expand_copysign_bit): (Ditto.).
28336         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
28337         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
28338         * dojump.c (prefer_and_bit_test): (Ditto.).
28339         * expr.c (convert_modes, reduce_to_bit_field_precision,
28340         const_vector_from_tree): (Ditto.).
28341         * expmed.c (mask_rtx, lshift_value): (Ditto.).
28342
28343 2010-04-20  Jan Hubicka  <jh@suse.cz>
28344
28345         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
28346         (dump_cgraph_node): Dump new flags.
28347         * cgraph.h (struct cgraph_node): Add flags
28348         reachable_from_other_partition and in_other_partition.
28349         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
28350         other partition can not be removed.
28351         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
28352         the other partition must be output; silence sanity checking on
28353         leaking functions bodies from other paritition.
28354         * lto-cgraph.c (reachable_from_other_partition_p): New function.
28355         (lto_output_node): Output new flags; do not sanity check that inline
28356         clones are output; drop lto_forced_extern_inline_p code; do not mock
28357         visibility flags at partition boundaries.
28358         (add_node_to): New function.
28359         (output_cgraph): Use it to sort functions so masters appear before
28360         clones.
28361         (input_overwrite_node): Input new flags.
28362         * passes.c (ipa_write_summaries): Do not call
28363         lto_new_extern_inline_states.
28364         * lto-section-out.c (forced_extern_inline,
28365         lto_new_extern_inline_states lto_delete_extern_inline_states,
28366         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
28367         * lto-streamer.h (lto_new_extern_inline_states,
28368         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
28369         lto_forced_extern_inline_p): Kill.
28370
28371 2010-04-20  Richard Guenther  <rguenther@suse.de>
28372
28373         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
28374         from vars that can have pointers.
28375         (process_constraint): Dump useless constraints.
28376
28377 2010-04-20  Richard Guenther  <rguenther@suse.de>
28378
28379         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
28380         (dump_sa_points_to_info): Remove asserts.
28381         (init_base_vars): nothing_id isn't an escape point nor does it
28382         have pointers.
28383
28384 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
28385
28386         * tree.h (TYPE_REF_IS_RVALUE): Define.
28387         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
28388         should_move_die_to_comdat, prune_unused_types_walk): Handle
28389         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
28390         (modified_type_die, gen_reference_type_die): Emit
28391         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
28392         if TYPE_REF_IS_RVALUE and -gdwarf-4.
28393
28394 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28395
28396         PR target/43635
28397         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
28398         calls for -fpic -m31 if they have been sibcall optimized.
28399
28400 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
28401
28402         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
28403         ar.lc fixed and call-used.
28404
28405         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
28406
28407 2010-04-19  Jan Hubicka  <jh@suse.cz>
28408
28409         * opts.c (decode_options): Disable whpr incompatible passes.
28410         * lto/lto.c (lto_1_to_1_map): Skip clones.
28411         (read_cgraph_and_symbols): Do not mark everything as needed.
28412         (do_whole_program_analysis): Do map only after optimizing;
28413         set proper cgraph_state; use passmanager.
28414
28415 2010-04-19  DJ Delorie  <dj@redhat.com>
28416
28417         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
28418         POINTER_PLUS_EXPR and fix them.
28419
28420 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
28421
28422         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
28423         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
28424         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
28425         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
28426         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
28427         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
28428         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
28429         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
28430         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
28431         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
28432         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
28433
28434 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
28435
28436         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
28437         (check_cond_move_block): Likewise.
28438         (cond_move_process_if_block): Likewise.
28439         (noce_find_if_block): Improve formatting.
28440         (find_if_header): Pass 0 to memset and tweak conditions.
28441         (cond_exec_find_if_block): Fix long lines and tweak conditions.
28442
28443 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
28444
28445         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
28446         for -gdwarf-4.
28447
28448         PR middle-end/43337
28449         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
28450         with non-local decl doesn't need chain.
28451
28452 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28453
28454         * ira-color.c (allocno_reload_assign): Avoid accumulating
28455         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
28456
28457 2010-04-19  Martin Jambor  <mjambor@suse.cz>
28458
28459         * gimple.h (create_tmp_reg): Declare.
28460         * gimplify.c (create_tmp_reg): New function.
28461         (gimplify_return_expr): Use create_tmp_reg.
28462         (gimplify_omp_atomic): Likewise.
28463         (gimple_regimplify_operands): Likewise.
28464         * tree-dfa.c (make_rename_temp): Likewise.
28465         * tree-predcom.c (predcom_tmp_var): Likewise.
28466         (reassociate_to_the_same_stmt): Likewise.
28467         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
28468         (get_replaced_param_substitute): Likewise.
28469         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
28470         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
28471         * tree-ssa-pre.c (get_representative_for): Likewise.
28472         (create_expression_by_pieces): Likewise.
28473         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
28474         (create_tailcall_accumulator): Likewise.
28475
28476 2010-04-19  Martin Jambor  <mjambor@suse.cz>
28477
28478         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
28479         new_stmt.
28480         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
28481
28482 2010-04-19  Richard Guenther  <rguenther@suse.de>
28483
28484         PR tree-optimization/43796
28485         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
28486         from SCEV in the lattice.
28487         (vrp_visit_phi_node): Dump change.
28488
28489 2010-04-19  Richard Guenther  <rguenther@suse.de>
28490
28491         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
28492         * configure: Re-generated.
28493
28494 2010-04-19  Richard Guenther  <rguenther@suse.de>
28495
28496         PR tree-optimization/43783
28497         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
28498         constant ARRAY_REF operands two and three if possible.
28499
28500 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
28501
28502         PR target/43766
28503         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
28504
28505 2010-04-19  Jie Zhang  <jie@codesourcery.com>
28506
28507         PR target/43662
28508         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
28509
28510 2010-04-19  Ira Rosen  <irar@il.ibm.com>
28511
28512         PR tree-optimization/37027
28513         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
28514         and macro to access it.
28515         (vectorizable_reduction): Add argument.
28516         (vect_get_slp_defs): Likewise.
28517         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
28518         statements for possible use in SLP.
28519         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
28520         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
28521         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
28522         add new argument.
28523         (vectorizable_reduction): Likewise.
28524         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
28525         vect_get_slp_defs.
28526         (vectorizable_type_demotion, vectorizable_type_promotion,
28527         vectorizable_store): Likewise.
28528         (vect_analyze_stmt): Update call to vectorizable_reduction.
28529         (vect_transform_stmt): Likewise.
28530         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
28531         (vect_build_slp_tree): Fix indentation. Check that there are no loads
28532         from different interleaving chains in same node.
28533         (vect_slp_rearrange_stmts): New function.
28534         (vect_supported_load_permutation_p): Allow load permutations for
28535         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
28536         inside SLP nodes if necessary.
28537         (vect_analyze_slp_instance): Handle reductions.
28538         (vect_analyze_slp): Try to build SLP instances originating from groups
28539         of reductions.
28540         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
28541         (vect_get_constant_vectors): Create initial vectors for reductions
28542         according to reduction code. Add new argument.
28543         (vect_get_slp_defs): Add new argument, pass it to
28544         vect_get_constant_vectors.
28545         (vect_schedule_slp_instance): Remove SLP tree root statements.
28546
28547 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
28548
28549         * tree.h (ENUM_IS_SCOPED): Define.
28550         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
28551         for ENUM_IS_SCOPED enums.
28552
28553 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
28554
28555         * fold-const.c (fold_comparison): Use ssizetype.
28556         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
28557         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
28558         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
28559         * tree-object-size.c (compute_object_sizes): Use size_type_node.
28560
28561         * tree.h (initialize_sizetypes): Remove parameter.
28562         (build_common_tree_nodes): Remove second parameter.
28563         * stor-layout.c (initialize_sizetypes): Remove parameter.
28564         Always create an unsigned type.
28565         (set_sizetype): Assert that the passed type is unsigned and simplify.
28566         * tree.c (build_common_tree_nodes): Remove second parameter.
28567         Adjust call to initialize_sizetypes.
28568         * c-decl.c (c_init_decl_processing): Remove second argument in call to
28569         build_common_tree_nodes.
28570
28571 2010-04-18  Matthias Klose  <doko@ubuntu.com>
28572
28573         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
28574
28575 2010-04-18  Ira Rosen  <irar@il.ibm.com>
28576
28577         PR tree-optimization/43771
28578         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
28579         load permutation doesn't have gaps.
28580
28581 2010-04-18  Jan Hubicka  <jh@suse.cz>
28582
28583         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
28584         (sse_prologue_save_insn expander): Use new pattern.
28585         (sse_prologue_save_insn1): New pattern and splitter.
28586         (sse_prologue_save_insn): Update to deal also with 64bit aligned
28587         blocks.
28588         * i386.c (setup_incoming_varargs_64): Do not compute jump
28589         destination here.
28590         (ix86_gimplify_va_arg): Update alignment needed.
28591         (ix86_local_alignment): Do not align all local arrays to 128bit.
28592
28593 2010-04-17  Jan Hubicka  <jh@suse.cz>
28594
28595         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
28596
28597 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
28598
28599         * arm.md (negdi2): Remove redundant code to force values into a
28600         register.
28601
28602 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
28603
28604         * arm/bpabi.S: Add EABI alignment attributes to objects.
28605         * arm/bpabi-v6m.S: Likewise.
28606         * arm/crti.asm: Likewise.
28607         * arm/crtn.asm: Likewise.
28608         * arm/lib1funcs.asm: Likewise.
28609         * arm/libunwind.S: Likewise.
28610
28611 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
28612
28613         * arm-protos.h (tune_params): New structure.
28614         * arm.c (current_tune): New variable.
28615         (arm_constant_limit): Delete.
28616         (struct processors): Add pointer to the tune parameters.
28617         (arm_slowmul_tune): New tuning option.
28618         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
28619         (all_cores): Adjust to pick up the tuning model.
28620         (arm_constant_limit): New function.
28621         (arm_override_options): Select the appropriate tuning model.  Delete
28622         initialization of arm_const_limit.
28623         (arm_split_constant): Use the new constant-limit model.
28624         (arm_rtx_costs): Pick up the current tuning model.
28625         * arm.md (is_strongarm, is_xscale): Delete.
28626         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
28627         for Xscale variant architectures.
28628         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
28629
28630 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28631
28632         * config/arm/arm.c (arm_gen_constant): Remove unused variable
28633         can_shift.
28634         (arm_rtx_costs_1): Remove unused variable extra_cost.
28635         (arm_unwind_emit_set): Use variable offset.
28636         (thumb1_output_casesi): Remove unused variable flags.
28637
28638 2010-04-16  Jeff Law  <law@redhat.com>
28639
28640         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
28641         needing assignment rather than doing a two-phase assignment.  Remove
28642         unused variable 'm'.
28643
28644 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28645
28646         PR bootstrap/43767
28647         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
28648
28649 2010-04-16  Doug Kwan  <dougkwan@google.com>
28650
28651         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
28652         (next_operand_entry_id): New static variable.
28653         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
28654         (add_to_ops_vec): Assigned unique ID to operand entry.
28655         (struct oecount_s): New field ID.
28656         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
28657         (undistribute_ops_list): Assign unique IDs to oecounts.
28658         (init_reassoc): reset next_operand_entry_id.
28659
28660 2010-04-16  Doug Kwan  <dougkwan@google.com>
28661
28662         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
28663         missing left parenthesis.
28664
28665 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
28666
28667         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
28668         *btdi_rex64 using SWI48 mode iterator.
28669         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
28670         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
28671         *jcc_btdi_mask_rex64.
28672
28673 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
28674
28675         * double-int.h (tree_to_double_int): Convert to macro.
28676         * double-int.c (tree_to_double_int): Remove.
28677
28678 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28679
28680         PR debug/43762
28681         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
28682         with want_address 2 and in case a single element list might be
28683         possible, call it again with want_address 0.
28684
28685 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28686
28687         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
28688         case 'W' print operands for HI mode.
28689         * config/h8300/h8300.h (Y0, Y2) : New constraints.
28690         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
28691         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
28692         * config/h8300/predicate.md (bit_register_indirect_operand): New.
28693
28694         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
28695
28696         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
28697         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
28698         #xx:3 and #xx:4 mode.
28699
28700         * config/h8300/h8300.md (inverted load with HImode dest): Add
28701         support for H8300SX.
28702
28703         * config/h8300/predicate.md (bit_operand): Allow immediate values that
28704         satisfy 'U' constraint.
28705
28706 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28707
28708         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
28709         * configure: Regenerate.
28710         * config.in: Regenerate.
28711         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
28712         works.
28713
28714 2010-04-16  Richard Guenther  <rguenther@suse.de>
28715
28716         * tree.h (struct tree_decl_minimal): Move pt_uid ...
28717         (struct tree_decl_common): ... here.
28718         (DECL_PT_UID): Adjust.
28719         (SET_DECL_PT_UID): Likewise.
28720         (DECL_PT_UID_SET_P): Likewise.
28721
28722 2010-04-16  Richard Guenther  <rguenther@suse.de>
28723
28724         PR tree-optimization/43572
28725         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
28726         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
28727         * tree-flow.h (is_call_clobbered): Remove.
28728         * tree-flow-inline.h (is_call_clobbered): Likewise.
28729         * tree-dfa.c (dump_variable): Do not dump call clobber state.
28730         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
28731         (execute_return_slot_opt): Adjust.
28732         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
28733         check for call clobbered vars here.
28734         (find_tail_calls): Move tailcall verification to the
28735         proper place.
28736
28737 2010-04-16  Diego Novillo  <dnovillo@google.com>
28738
28739         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
28740
28741 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28742
28743         PR target/40603
28744         * config/arm/arm.md (cbranchqi4): New pattern.
28745         * config/arm/predicates.md (const0_operand,
28746         cbranchqi4_comparison_operator): New predicates.
28747
28748 2010-04-16  Richard Guenther  <rguenther@suse.de>
28749
28750         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
28751         (dump_gimple_stmt): Likewise.
28752
28753 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28754
28755         * recog.h (struct recog_data): New field is_operator.
28756         (struct insn_operand_data): New field is_operator.
28757         * recog.c (extract_insn): Set recog_data.is_operator.
28758         * genoutput.c (output_operand_data): Emit code to set the
28759         is_operator field.
28760         * reload.c (find_reloads): Use it rather than testing for an
28761         empty constraint string.
28762
28763         PR target/41514
28764         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
28765         If the previous insn is a cbranchsi4_insn with the same arguments,
28766         omit the compare instruction.
28767
28768         * config/arm/arm.md (addsi3_cbranch): If destination is a high
28769         register, inputs must be low registers and we need a low register
28770         scratch.  Handle alternative 2 like alternative 3.
28771
28772 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28773
28774         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
28775         don't call get_addr on both.  If one expression is a VALUE and
28776         the other a REG, check VALUE's locs if the REG isn't among them.
28777
28778 2010-04-16  Christian Bruel  <christian.bruel@st.com>
28779
28780         * config/sh/sh.h (sh_frame_pointer_required): New function.
28781         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
28782         (flag_omit_frame_pointer) Set.
28783         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
28784         (rounded_frame_size): Adjust size with outgoing_args_size.
28785         (sh_set_return_address): Must return from stack pointer.
28786         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
28787         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
28788         (ACCUMULATE_OUTGOING_ARGS): Define.
28789         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
28790         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
28791
28792 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28793
28794         PR target/43471
28795         * config/sh/sh.c (sh_legitimize_reload_address): Use
28796         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
28797         Remove a unneeded check for offset_base.
28798
28799 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
28800
28801         * configure: Regenerated.
28802
28803 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28804
28805         * config/s390/s390.c (s390_call_save_register_used): Switch back
28806         to HARD_REGNO_NREGS.
28807
28808 2010-04-15  Richard Guenther  <rguenther@suse.de>
28809
28810         * alias.c (alias_set_subset_of): Handle alias-set zero
28811         child properly.
28812
28813 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
28814             Julian Brown  <julian@codesourcery.com>
28815
28816         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
28817         alternatives according to use of high and low regs.
28818         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
28819         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
28820         optimizing for size on Thumb-2.
28821
28822 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
28823
28824         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
28825
28826 2010-04-15  Richard Guenther  <rguenther@suse.de>
28827
28828         * tree-ssa-structalias.c (struct variable_info): Add
28829         is_fn_info flag.
28830         (new_var_info): Initialize it.
28831         (dump_constraints): Support printing last added constraints.
28832         (debug_constraints): Adjust.
28833         (dump_constraint_graph): Likewise.
28834         (make_heapvar_for): Check for NULL cfun.
28835         (get_function_part_constraint): New function.
28836         (get_fi_for_callee): Likewise.
28837         (find_func_aliases): Properly implement IPA PTA constraints.
28838         (process_ipa_clobber): New function.
28839         (find_func_clobbers): Likewise.
28840         (insert_into_field_list_sorted): Remove.
28841         (create_function_info_for): Properly allocate vars for IPA mode.
28842         Do not use insert_into_field_list_sorted.
28843         (create_variable_info_for): Properly generate constraints for
28844         global vars in IPA mode.
28845         (dump_solution_for_var): Always dump the solution.
28846         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
28847         (find_what_var_points_to): Adjust.
28848         (pt_solution_set): Change.
28849         (pt_solution_ior_into): New function.
28850         (pt_solution_empty_p): Export.
28851         (pt_solution_includes_global): Adjust.
28852         (pt_solution_includes_1): Likewise.
28853         (pt_solutions_intersect_1): Likewise.
28854         (dump_sa_points_to_info): Check some invariants.
28855         (solve_constraints): Move constraint dumping ...
28856         (compute_points_to_sets): ... here.
28857         (ipa_pta_execute): ... and here.
28858         (compute_may_aliases): Do not re-compute points-to info
28859         locally if IPA info is available.
28860         (ipa_escaped_pt): New global var.
28861         (ipa_pta_execute): Properly implement IPA PTA.
28862         * tree-into-ssa.c (dump_decl_set): Support dumping
28863         decls not in referenced-vars.
28864         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
28865         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
28866         (dump_points_to_solution): Likewise.
28867         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
28868         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
28869         (remap_gimple_stmt): Reset call clobber/use information if necessary.
28870         (copy_decl_to_var): Copy DECL_PT_UID.
28871         (copy_result_decl_to_var): Likewise.
28872         * tree.c (make_node_stat): Initialize DECL_PT_UID.
28873         (copy_node_stat): Copy it.
28874         * tree.h (DECL_PT_UID): New macro.
28875         (SET_DECL_PT_UID): Likewise.
28876         (DECL_PT_UID_SET_P): Likewise.
28877         (struct tree_decl_minimal): Add pt_uid member.
28878         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
28879         (pt_solution_empty_p): Declare.
28880         (pt_solution_set): Adjust.
28881         (ipa_escaped_pt): Declare.
28882         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
28883         * gimple-pretty-print.c (pp_points_to_solution): New function.
28884         (dump_gimple_call): Dump call clobber/use information.
28885         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
28886         * tree-pass.h (TDF_ALIAS): New dump option.
28887         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
28888         * doc/invoke.texi (-fipa-pta): Update documentation.
28889
28890 2010-04-15  Richard Guenther  <rguenther@suse.de>
28891
28892         * Makefile.in (OBJS-common): Add gimple-fold.o.
28893         (gimple-fold.o): New rule.
28894         * tree.h (maybe_fold_offset_to_reference,
28895         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
28896         prototypes ...
28897         * gimple.h: ... here.
28898         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
28899         may_propagate_address_into_dereference): Move prototypes ...
28900         * gimple.h: ... here.
28901         * tree-ssa-ccp.c (get_symbol_constant_value,
28902         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
28903         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
28904         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
28905         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
28906         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
28907         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
28908         gimplify_and_update_call_from_tree): Move ...
28909         * gimple-fold.c: ... here.  New file.
28910         (ccp_fold_builtin): Rename to ...
28911         (gimple_fold_builtin): ... this.
28912         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
28913
28914 2010-04-15  Richard Guenther  <rguenther@suse.de>
28915
28916         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
28917         fit_double_type, force_fit_type_double, add_double_with_sign,
28918         neg_double, mul_double_with_sign, lshift_double, rshift_double,
28919         lrotate_double, rrotate_double, div_and_round_double): Move ...
28920         * double-int.c: ... here.
28921         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
28922         add_double, neg_double, mul_double_with_sign, mul_double,
28923         lshift_double, rshift_double, lrotate_double, rrotate_double,
28924         div_and_round_double): Move prototypes ...
28925         * double-int.h: ... here.
28926
28927 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
28928
28929         PR target/43742
28930         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
28931         matching constraints to ensure inputs match the output.
28932
28933 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28934
28935         PR target/43742
28936         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
28937         in an input-only operand.
28938
28939 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
28940
28941         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
28942         (double_int_not, double_int_lshift, double_int_rshift): Declare.
28943         (double_int_negative_p): Convert to static inline function.
28944         * double-int.c (double_int_lshift, double_int_lshift): New functions.
28945         (double_int_negative_p): Remove.
28946         * tree.h (lshift_double, rshift_double):
28947         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
28948         * fold-const.c (fold_convert_const_int_from_real,
28949         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
28950         (lshift_double): Change type of arith argument to bool.
28951         (rshift_double): Change type of arith argument to bool. Correct
28952         comment.
28953         * expmed.c (mask_rtx, lshift_value): (Ditto.).
28954
28955 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
28956
28957         PR target/21803
28958         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28959         at the start and end of the then/else blocks, and omit them from the
28960         conversion.
28961         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
28962         argument; all callers changed.  Pass zero to old_insns_match_p instead.
28963         (flow_find_head_matching_sequence): New function.
28964         (old_insns_match_p): Check REG_EH_REGION notes for calls.
28965         * basic-block.h (flow_find_cross_jump,
28966         flow_find_head_matching_sequence): Declare functions.
28967
28968 2010-04-14  Jason Merrill  <jason@redhat.com>
28969
28970         PR c++/36625
28971         * c-common.c (attribute_takes_identifier_p): New fn.
28972         * c-common.h: Declare it.
28973
28974 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28975
28976         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28977         splitter condition.
28978         (*udivmod<mode>4): Ditto.
28979
28980 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28981
28982         * config/i386/i386.md (maxmin_int): Rename code attribute from
28983         maxminiprefix and update all users.
28984         (maxmin_float): Ditto from maxminfprefix.
28985         (logic): Ditto from logicprefix.
28986         (absneg_mnemonic): Ditto from absnegprefix.
28987         * config/i386/mmx.md: Update all users of maxminiprefix,
28988         maxminfprefix and logicprefix for rename.
28989         * config/i386/sse.md: Ditto.
28990         * config/i386/sync.md (sync_<code><mode>): Update for
28991         logicprefix rename.
28992
28993 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28994
28995         PR 42966
28996         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28997         warnings converted to errors.
28998
28999 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29000
29001         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
29002         used insn_type variable.
29003         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
29004         to avoid set-but-not-used warning.
29005
29006 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29007
29008         * df-core.c (df_ref_debug): Change format string placeholder
29009         from 0x%x to %#x.
29010         * dwarf2asm.c (dw2_asm_output_data_raw,
29011         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
29012         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
29013         * dwarf2out.c (output_cfi, output_cfi_directive,
29014         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
29015         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
29016         Ditto.
29017         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
29018         * print-rtl.c (print_rtx): Ditto.
29019
29020 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
29021
29022         PR middle-end/42694
29023         * builtins.c (expand_builtin_pow_root): New function to expand pow
29024         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
29025         series of sqrt and cbrt calls under -ffast-math.
29026         (expand_builtin_pow): Call it.
29027
29028 2010-04-14  Michael Matz  <matz@suse.de>
29029
29030         PR tree-optimization/42963
29031         * tree-cfg.c (touched_switch_bbs): New static variable.
29032         (group_case_labels_stmt): New function broken out from ...
29033         (group_case_labels): ... here, use the above.
29034         (start_recording_case_labels): Allocate touched_switch_bbs.
29035         (end_recording_case_labels): Deallocate it, call
29036         group_case_labels_stmt.
29037         (gimple_redirect_edge_and_branch): Remember index of affected BB.
29038
29039 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29040
29041         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
29042         from insn template.
29043
29044 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
29045
29046         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
29047
29048 2010-04-13  Jan Hubicka  <jh@suse.cz>
29049
29050         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
29051         of optimized out static functions.
29052         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
29053         cost computation.  Also sanity check for overflows.
29054         (update_caller_keys): Update cgraph_edge_badness call; properly
29055         update fibheap and sanity check that it is up to date.
29056         (add_new_edges_to_heap): Update cgraph_edge_badness.
29057         (cgraph_decide_inlining_of_small_function): Likewise;
29058         add sanity checking that badness in heap is up to date;
29059         improve dumping of reason; Update badness of calls to the
29060         offline copy of function currently inlined; dump badness
29061         of functions not inlined because of unit growth limits.
29062
29063 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
29064
29065         PR middle-end/32628
29066         * c-common.c (pointer_int_sum): Disregard overflow that occured only
29067         because of sign-extension change when converting to sizetype here...
29068         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
29069
29070         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
29071         the folding to constants.  Remove redundant final conversion.
29072         (fold_binary) <associate>: Do not associate if the re-association of
29073         constants alone overflows.
29074         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
29075         to the end of the list.
29076         (multiple_of_p) <COND_EXPR>: New case.
29077
29078 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29079
29080         * opt-functions.awk (opt_sanitized_name): New.
29081         (opt_enum): New.
29082         * optc-gen.awk: Use it
29083         * opth-gen.awk: Use it.
29084
29085 2010-04-13  Martin Jambor  <mjambor@suse.cz>
29086
29087         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
29088         (sra_modify_assign): Delete stmts loading dead data even if racc has no
29089         children.  Call replace_uses_with_default_def_ssa_name to handle
29090         SSA_NAES on lhs.
29091
29092 2010-04-13  Michael Matz  <matz@suse.de>
29093
29094         PR middle-end/43730
29095         * builtins.c (expand_builtin_interclass_mathfn): Also create
29096         a register if the predicate doesn't match.
29097
29098 2010-04-13  Diego Novillo  <dnovillo@google.com>
29099
29100         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
29101         * c-pch.c: Include timevar.h.
29102         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
29103         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
29104         * ggc-common.c: Include timevar.h.
29105         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
29106         * timevar.def (TV_PCH_SAVE): Define.
29107         (TV_PCH_CPP_SAVE): Define.
29108         (TV_PCH_PTR_REALLOC): Define.
29109         (TV_PCH_PTR_SORT): Define.
29110         (TV_PCH_RESTORE): Define.
29111         (TV_PCH_CPP_RESTORE): Define.
29112
29113 2010-04-13  Michael Matz  <matz@suse.de>
29114
29115         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
29116         into MINUS_EXPRs.
29117         (can_reassociate_p): New function.
29118         (break_up_subtract_bb, reassociate_bb): Use it.
29119
29120 2010-04-13  Richard Guenther  <rguenther@suse.de>
29121
29122         PR bootstrap/43737
29123         * builtins.c (c_readstr): Fix assert.
29124
29125 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
29126
29127         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
29128         when generating cltd insn.
29129
29130         (*ashl<mode>3_1): Remove special handling for register operand 2.
29131         (*ashlsi3_1_zext): Ditto.
29132         (*ashlhi3_1): Ditto.
29133         (*ashlhi3_1_lea): Ditto.
29134         (*ashlqi3_1): Ditto.
29135         (*ashlqi3_1_lea): Ditto.
29136         (*<shiftrt_insn><mode>3_1): Ditto.
29137         (*<shiftrt_insn>si3_1_zext): Ditto.
29138         (*<shiftrt_insn>qi3_1_slp): Ditto.
29139         (*<rotate_insn><mode>3_1): Ditto.
29140         (*<rotate_insn>si3_1_zext): Ditto.
29141         (*<rotate_insn>qi3_1_slp): Ditto.
29142
29143 2010-04-13  Richard Guenther  <rguenther@suse.de>
29144
29145         * tree-ssa-structalias.c (callused_id): Remove.
29146         (call_stmt_vars): New.
29147         (get_call_vi): Likewise.
29148         (lookup_call_use_vi): Likewise.
29149         (lookup_call_clobber_vi): Likewise.
29150         (get_call_use_vi): Likewise.
29151         (get_call_clobber_vi): Likewise.
29152         (make_transitive_closure_constraints): Likewise.
29153         (handle_const_call): Adjust to do per-call call-used handling.
29154         (handle_pure_call): Likewise.
29155         (find_what_var_points_to): Remove general callused handling.
29156         (init_base_vars): Likewise.
29157         (init_alias_vars): Initialize call_stmt_vars.
29158         (compute_points_to_sets): Process call-used and call-clobbered
29159         vars for call statements.
29160         (delete_points_to_sets): Free call_stmt_vars.
29161
29162 2010-04-13  Richard Guenther  <rguenther@suse.de>
29163
29164         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29165         Only add RW dependence for dependence distance zero.
29166         Adjust maximal vectorization factor according to dependences.
29167         Move alignment handling ...
29168         (vect_find_same_alignment_drs): ... here.  New function.
29169         (vect_analyze_data_ref_dependences): Adjust.
29170         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
29171         (vect_analyze_data_refs): Adjust minimal vectorization factor
29172         according to data references.
29173         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
29174         dependences before determining the vectorization factor.
29175         Analyze alignment after determining the vectorization factor.
29176         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
29177         dependences before alignment.
29178         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
29179         Adjust prototype.
29180         (vect_analyze_data_refs): Likewise.
29181         (MAX_VECTORIZATION_FACTOR): New define.
29182
29183 2010-04-13  Duncan Sands  <baldrick@free.fr>
29184
29185         * except.h (lang_eh_type_covers): Remove.
29186         * except.c (lang_eh_type_covers): Likewise.
29187
29188 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29189             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29190
29191         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
29192         * config/s390/s390.c: Replace UNTIS_PER_WORD with
29193         UNITS_PER_LONG where it is ABI relevant.
29194         (s390_return_addr_rtx): Likewise.
29195         (s390_back_chain_rtx): Likewise.
29196         (s390_frame_area): Likewise.
29197         (s390_frame_info): Likewise.
29198         (s390_initial_elimination_offset): Likewise.
29199         (save_gprs): Likewise.
29200         (s390_emit_prologue): Likewise.
29201         (s390_emit_epilogue): Likewise.
29202         (s390_function_arg_advance): Likewise.
29203         (s390_function_arg): Likewise.
29204         (s390_va_start): Likewise.
29205         (s390_gimplify_va_arg): Likewise.
29206         (s390_function_profiler): Likewise.
29207         (s390_optimize_prologue): Likewise.
29208         (s390_rtx_costs): Likewise.
29209         (s390_secondary_reload): Likewise.
29210         (s390_promote_function_mode): Likewise.
29211         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
29212         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
29213         registers available.
29214         (s390_unwind_word_mode): New function.
29215         (s390_function_value): Split 64 bit values into register pair if
29216         used as return value.
29217         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
29218         function call parameters.  Handle parallels.
29219         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
29220         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
29221         (DWARF_CIE_DATA_ALIGNMENT): New macro.
29222         (s390_expand_setmem): Remove unused variable src_addr.
29223         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
29224         deal with 64 bit registers.
29225         * config/s390/s390.h: Define __zarch__ predefined macro.
29226         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
29227         (UNITS_PER_LONG): New macro.
29228         * libjava/include/s390-signal.h: Define extended ucontext
29229         structure containing the upper halfs of the 64 bit registers.
29230
29231 2010-04-13  Simon Baldwin  <simonb@google.com>
29232
29233         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
29234
29235 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
29236
29237         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
29238         rvalue on the RHS if the LHS is of a non-renamable type.
29239         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
29240
29241 2010-04-13  Matthias Klose  <doko@ubuntu.com>
29242
29243         * gcc.c (cc1_options): Handle -iplugindir before processing
29244         the cc1 spec. Only add -iplugindir once.
29245         (cpp_unique_options): Add -iplugindir option if -fplugin* options
29246         found.
29247         * common.opt (iplugindir): Remove `Separate' property, initialize.
29248         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
29249         option.
29250         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
29251         (distclean): Remove plugin dir.
29252         * doc/invoke.texi: Document -iplugindir.
29253
29254 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
29255
29256         * doc/plugins.texi (Loading Plugins): Document short
29257         -fplugin=foo option.
29258         (Plugin API): Mention default_plugin_dir_name function.
29259
29260         * gcc.c (find_file_spec_function): Add new declaration.
29261         (static_spec_func): Use it for "find-file".
29262         (find_file_spec_function): Add new function.
29263         (cc1_options): Add -iplugindir option if -fplugin* options found.
29264
29265         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
29266
29267         * plugin.c (add_new_plugin): Updated comment, and handle short
29268         plugin name.
29269         (default_plugin_dir_name): Added new function.
29270
29271         * common.opt (iplugindir): New option to set the plugin directory.
29272
29273 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
29274
29275         * config/i386/i386.md (any_rotate): New code iterator.
29276         (rotate_insn): New code attribute.
29277         (rotate): Ditto.
29278         (SWIM124): New mode iterator.
29279         (<rotate_insn>ti3): New expander.
29280         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
29281         any_rotate code iterator.
29282         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
29283         using any_rotate code iterator and SWIM124 mode iterator.
29284         (ix86_rotlti3): New insn_and_split pattern.
29285         (ix86_rotrti3): Ditto.
29286         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
29287         ix86_rotl{di,ti}3 patterns.
29288         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
29289         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
29290         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
29291         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
29292         code iterator and SWI mode iterator.
29293         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
29294         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
29295         code iterator.
29296         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
29297         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
29298         (bswap rotatert splitter): Add splitter.
29299         (bswap splitter): Macroize splitter using any_rotate code iterator.
29300         Add insn predicate to split only for TARGET_USE_XCHGB or when
29301         optimizing function for size.
29302
29303 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
29304
29305         * config/pa/pa.c (emit_move_sequence): Remove use of
29306         deleted variable flag_argument_noalias.
29307
29308 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29309
29310         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
29311         configurations.
29312         Add to unsupported targets list.
29313         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
29314         sparc*-sun-solaris2.[567]* from target lists.
29315         * configure: Regenerate.
29316         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
29317         removal.
29318         Remove Solaris 7 patch references.
29319         (Specific, sparc-sun-solaris2.7): Removed.
29320         (sparc-sun-solaris2*): Update Solaris 7 example.
29321         (sparc64-*-solaris2*): Likewise.
29322
29323 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29324
29325         * config.build (alpha*-dec-osf4*): Remove.
29326         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
29327         of obsolete configurations.
29328         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
29329         support.
29330         * config/alpha/t-osf4: Renamed to ...
29331         * config/alpha/t-osf5: ... this.
29332         * config/alpha/osf.h: Renamed to ...
29333         * config/alpha/osf5.h: ... this.
29334         Merged old osf5.h contents.
29335         Update comments.
29336         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
29337         (EXTRA_SPECS): Removed.
29338         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
29339         reflect removal of Tru64 UNIX V4.0/V5.0 support.
29340         Document that.
29341
29342 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29343
29344         * doc/contrib.texi (Contributors, Rainer Orth): Update.
29345
29346 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
29347
29348         PR/43702
29349         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
29350         __thiscall convention.
29351
29352 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
29353
29354         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
29355         orig_base.
29356         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
29357
29358 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
29359
29360         * function.c (assign_parms_initialize_all): Add unused attribute
29361         to fntype.
29362
29363 2010-04-12  Richard Guenther  <rguenther@suse.de>
29364
29365         * gsstruct.def (GSS_CALL): New.
29366         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
29367         * gimple.h: Include tree-ssa-alias.h.
29368         (struct gimple_statement_call): New.
29369         (union gimple_statement_struct_d): Add gimple_call member.
29370         (gimple_call_reset_alias_info): Declare.
29371         (gimple_call_use_set): New function.
29372         (gimple_call_clobber_set): Likewise.
29373         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
29374         * gimple.c (gimple_call_reset_alias_info): New function.
29375         (gimple_build_call_1): Call it.
29376         * lto-streamer-in.c (input_gimple_stmt): Likewise.
29377         * tree-inline.c (remap_gimple_stmt): Likewise.
29378         (expand_call_inline): Remove callused handling.
29379         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
29380         * tree-dfa.c (dump_variable): Likewise.
29381         * tree-parloops.c (parallelize_loops): Likewise.
29382         * tree-ssa.c (init_tree_ssa): Likewise.
29383         (delete_tree_ssa): Likewise.
29384         * tree-flow-inline.h (is_call_used): Remove.
29385         * tree-flow.h (struct gimple_df): Remove callused member.
29386         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
29387         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
29388         (ref_maybe_used_by_call_p_1): Simplify.
29389         (call_may_clobber_ref_p_1): Likewise.
29390         * tree-ssa-structalias.c (compute_points_to_sets): Set
29391         the call stmt used and clobbered sets.
29392         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
29393         (find_tail_calls): Verify the tail call.
29394
29395 2010-04-12  Richard Guenther  <rguenther@suse.de>
29396
29397         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
29398         single-iteration always-inline inlining.
29399         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
29400         (cgraph_decide_inlining): Do not handle always-inline specially.
29401         (try_inline): Remove always-inline cycle detection special case.
29402         Do not recurse on always-inlines.
29403         (cgraph_early_inlining): Do not iterate if not optimizing.
29404         (cgraph_gate_early_inlining): remove.
29405         (pass_early_inline): Run unconditionally.
29406         (gate_cgraph_decide_inlining): New function.
29407         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
29408         not inlining or optimizing.
29409         (cgraph_decide_inlining_of_small_functions): Also consider
29410         always-inline functions.
29411         (cgraph_default_inline_p): Return true for nodes which should
29412         disregard inline limits.
29413         (estimate_function_body_sizes): Assume zero size and time for
29414         nodes which are marked as disregarding inline limits.
29415         (cgraph_decide_recursive_inlining): Do not perform recursive
29416         inlining on always-inline nodes.
29417
29418 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
29419
29420         PR bootstrap/43699
29421         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
29422         for exprs satisfying handled_component_p.
29423
29424 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
29425
29426         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
29427         non-constant aggregate elements.
29428
29429         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
29430         is a real initialization.
29431
29432 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
29433
29434         PR c/36774
29435         * c-decl.c (start_function): Move forward check for nested function.
29436
29437 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
29438
29439         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
29440         * config/sh/sh.c: Include reload.h.
29441         (sh_legitimize_reload_address): New.
29442         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
29443         sh_legitimize_reload_address.
29444
29445 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29446
29447         * config/sh/sh.md (*movqi_pop): New insn pattern.
29448         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
29449
29450 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29451
29452         * config/i386/i386.md (any_shiftrt): New code iterator.
29453         (shiftrt_insn): New code attribute.
29454         (shiftrt): Ditto.
29455         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
29456         using any_shiftrt code iterator.
29457         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
29458         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
29459         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
29460         pattern from corresponding peephole2 patterns.
29461         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
29462         using any_shiftrt code iterator.
29463         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
29464         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
29465         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
29466         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
29467         *{ashr,lshr}<mode>3_cmp_zext.
29468         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
29469
29470 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29471
29472         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
29473         scratch register.
29474         (*lshr<mode>3_cconly): Ditto.
29475
29476 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29477
29478         * config/i386/i386.md (lshr<mode>3): Macroize expander from
29479         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
29480         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29481         pattern from *lshr{di,ti}3_1 and corresponding splitters using
29482         DWI mode iterator.
29483         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
29484         from corresponding peephole2 patterns.
29485         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
29486         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
29487         and *lshrdi3_1_rex64 using SWI mode iterator.
29488         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
29489         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
29490         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
29491         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
29492         and *lshrdi3_cmp_rex64 using SWI mode iterator.
29493         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
29494         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
29495         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
29496         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
29497         SWI mode iterator.
29498
29499 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
29500
29501         * config/i386/i386.md (ashr<mode>3): Macroize expander from
29502         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
29503         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29504         pattern from *ashr{di,ti}3_1 and corresponding splitters using
29505         DWI mode iterator.
29506         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
29507         from corresponding peephole2 patterns.
29508         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
29509         (ashrsi3_cvt): Rename from ashrsi3_31.
29510         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
29511         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
29512         and x86_64_shift_adj_3 using SWI48 mode iterator.
29513         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
29514         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
29515         and *ashrdi3_1_rex64 using SWI mode iterator.
29516         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
29517         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
29518         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
29519         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
29520         and *ashrdi3_cmp_rex64 using SWI mode iterator.
29521         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
29522         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
29523         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
29524         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
29525         SWI mode iterator.
29526         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
29527         * config/i386/i386.c (ix86_split_ashr): Update for renamed
29528         x86_shift<mode>_adj_3 expanders.
29529
29530 2010-04-10  Wei Guozhi  <carrot@google.com>
29531
29532         PR target/42601
29533         * config/arm/arm.c (arm_pic_static_addr): New function.
29534         (legitimize_pic_address): Call arm_pic_static_addr when it detects
29535         a static symbol.
29536         (arm_output_addr_const_extra): Output expression for new pattern.
29537         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
29538
29539 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
29540
29541         * ira-costs.c (record_reg_classes): Ignore alternatives that are
29542         not enabled.
29543
29544         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
29545         * web.c: Include "insn-config.h" and "recog.h".
29546         (union_match_dups): New function.
29547         (web_main): Call it.
29548         (union_defs): Don't try to recognize match_dups.
29549
29550         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
29551         if doing so would replace the entire pattern.
29552
29553 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
29554
29555         PR target/43707
29556         PR target/43709
29557         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
29558         and splitter pattern.  Change splitter operand 1 predicate to
29559         nonmemory_operand.
29560
29561 2010-04-09  Martin Jambor  <mjambor@suse.cz>
29562
29563         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
29564         lattices are addresses of CONST_DECLs with the same initial value.
29565         (ipcp_print_all_lattices): Print values of CONST_DECLs.
29566         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
29567
29568 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
29569             Bernd Schmidt  <bernds@codesourcery.com>
29570
29571         * loop-invariant.c (replace_uses): New static function.
29572         (move_invariant_reg): Use it to ensure we can replace the uses.
29573
29574 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
29575
29576         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
29577         function template.
29578         (picochip_override_options): Enable section anchors only above -O1.
29579         (picochip_reorg): Fixed a couple of build warnings.
29580
29581 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29582
29583         * configure.ac (plugin -rdynamic test): Log result.
29584         * configure: Regenerate.
29585         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
29586         (RDYNAMIC_SPEC): Define.
29587         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
29588
29589 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29590
29591         * configure.ac: Determine Sun ld version numbers.
29592         (comdat_group): Restrict GNU ld version checks to gld.
29593         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
29594         (enable_comdat): Support --enable-comdat.
29595         * configure: Regenerate.
29596         * doc/install.texi (Configuration): Document --enable-comdat.
29597
29598 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29599
29600         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
29601         * config/sol2-gld.h: ... here.
29602         * config.gcc (sparc*-*-solaris2*): Reflect this.
29603         (i[34567]86-*-solaris2*): Use it.
29604
29605 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
29606
29607         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
29608         setup_clocks_p.
29609         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
29610
29611 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29612
29613         PR 42965
29614         * diagnostic.c (diagnostic_initialize): Initialize
29615         some_warnings_are_errors.
29616         (diagnostic_finish): New.
29617         (diagnostic_action_after_output): Call it before exiting.
29618         (diagnostic_report_diagnostic): Do not print message here. Set
29619         some_warnings_are_errors.
29620         * diagnostic.h (diagnostic_context): Delete
29621         issue_warnings_are_errors_message. Add some_warnings_are_errors.
29622         (diagnostic_finish): Declare.
29623         * toplev.c (toplev_main): Call it before exit.
29624
29625 2010-04-09  Jason Merrill  <jason@redhat.com>
29626
29627         PR c++/42623
29628         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
29629         for incomplete type.
29630
29631         PR c++/41788
29632         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
29633         based on a warning flag.
29634
29635 2010-04-09  Richard Guenther  <rguenther@suse.de>
29636
29637         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
29638
29639 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
29640
29641         PR bootstrap/43684
29642         * varasm.c (default_assemble_visibility): Wrap vars that are
29643         set, but unused, by targets without GAS.
29644         * config/rs6000/rs6000.c (paired_emit_vector_compare):
29645         Remove set, but unused, vars.
29646         (rs6000_legitimize_tls_address): Likewise.
29647         (altivec_expand_dst_builtin): Likewise.
29648         * config/darwin.c (machopic_classify_symbol): Likewise.
29649         (machopic_indirection_name): Likewise.
29650
29651 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
29652
29653         * config/i386/i386.md (DWI): New mode iterator.
29654         (S): New mode attribute.
29655         (shift_operand): Ditto.
29656         (shift_immediate_operand): Ditto.
29657         (ashl_input_operand): Ditto.
29658         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
29659         using SDWIM mode iterator.
29660         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29661         pattern from *ashl{di,ti}3_1 and corresponding splitters using
29662         DWI mode iterator.
29663         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
29664         from corresponding peephole2 patterns.
29665         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
29666         and x86_64_shift_adj_1 using SWI48 mode iterator.
29667         (x86_shift<mode>_adj_2): Ditto.
29668         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
29669         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
29670         using SWI48 mode iterator.
29671         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
29672         *ashldi3_cmp_rex64 using SWI mode iterator.
29673         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
29674         *ashldi3_cconly_rex64 using SWI mode iterator.
29675         * config/i386/i386.c (ix86_split_ashl): Update for renamed
29676         x86_shift<mode>_adj_{1,2}.
29677         (ix86_split_ashr): Ditto.
29678         (ix86_split_lshr): Ditto.
29679
29680 2010-04-09  Richard Guenther  <rguenther@suse.de>
29681
29682         * target.h (builtin_conversion): Pass in input and output types.
29683         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
29684         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
29685         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
29686         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
29687
29688         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
29689         Handle AVX modes.
29690         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
29691
29692 2010-04-09  Richard Guenther  <rguenther@suse.de>
29693
29694         PR target/43152
29695         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
29696
29697 2010-04-09  Richard Guenther  <rguenther@suse.de>
29698
29699         * tree-vectorizer.h (struct _stmt_vec_info): Document
29700         that vectype is the type of the LHS.
29701         (supportable_widening_operation, supportable_narrowing_operation):
29702         Get both input and output vector types as arguments.
29703         (vect_is_simple_use_1): Declare.
29704         (get_same_sized_vectype): Likewise.
29705         * tree-vect-loop.c (vect_determine_vectorization_factor):
29706         Set STMT_VINFO_VECTYPE to the vector type of the def.
29707         (vectorizable_reduction): Adjust.
29708         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
29709         Adjust.  Specify the output vector type.
29710         (vect_pattern_recog_1): Adjust.
29711         * tree-vect-stmts.c (get_same_sized_vectype): New function.
29712         (vectorizable_call): Adjust.
29713         (vectorizable_conversion): Likewise.
29714         (vectorizable_operation): Likewise.
29715         (vectorizable_type_demotion): Likewise.
29716         (vectorizable_type_promotion): Likewise.
29717         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
29718         the def.
29719         (vect_is_simple_use_1): New function.
29720         (supportable_widening_operation): Get both input and output
29721         vector types.
29722         (supportable_narrowing_operation): Likewise.
29723         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
29724
29725 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
29726
29727         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
29728         __thiscall and _thiscall as predefined macros.
29729         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
29730         thiscall attribute handling.
29731         (ix86_comp_type_attributes): Likewise.
29732         (ix86_function_regparm): Likewise.
29733         (ix86_return_pops_args): Likewise.
29734         (init_cumulative_args): Likewise.
29735         (find_drap_reg): Likewise.
29736         (ix86_static_chain): Likewise.
29737         (x86_this_parameter): Likewise.
29738         (x86_output_mi_thunk): Likewise.
29739         (ix86_attribute_table): Add description for thiscall attribute.
29740         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
29741         * doc/extend.texi: Add documentation for thiscall.
29742
29743 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29744
29745         PR c++/28584
29746         * c.opt (Wint-to-pointer-cast): Available in C++.
29747         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
29748
29749 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
29750
29751         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
29752         * calls.c (expand_call): Pass the function type to aggregate_value_p.
29753         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
29754         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
29755         function type instead.  Reorder and simplify checks.
29756
29757         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
29758
29759 2010-04-08  Jing Yu  <jingyu@google.com>
29760             Zdenek Dvorak  <ook@ucw.cz>
29761
29762         PR tree-optimization/42720
29763         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
29764         loop unswitch conditions here from ...
29765         (tree_unswitch_single_loop): ... here.
29766
29767 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
29768
29769         * tree-if-conv.c: Fix comments and simplify logic.
29770
29771 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
29772
29773         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
29774         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
29775         (main_tree_if_conversion): Update call to tree_if_conversion.
29776
29777 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29778
29779         PR 42485
29780         * doc/invoke.texi (-b,-V): Delete.
29781         * doc/tm.texi: Do not mention -b.
29782         * gcc.c (display_help): Delete -b and -V.
29783         (process_command): Delete -b and -V.
29784         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
29785
29786 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
29787             Wolfgang Gellerich  <gellerich@de.ibm.com>
29788
29789         Implement target hook for loop unrolling
29790         * target.h (loop_unroll_adjust): Add a new target hook function.
29791         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
29792         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
29793         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
29794         (s390_loop_unroll_adjust): Implement the new target hook for s390.
29795         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
29796         target hook.
29797         (decide_unroll_stupid): Likewise.
29798
29799 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29800
29801         PR target/43643
29802         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
29803
29804 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29805
29806         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
29807         (Specific, *-*-solaris2*): Likewise.
29808         Don't prefer Sun as over GNU as.
29809
29810 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
29811
29812         * config/s390/s390.c (override_options): Adjust the z10 defaults
29813         for max-unroll-times, max-completely-peeled-insns
29814         and max-completely-peel-times.
29815
29816 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29817
29818         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
29819         instructions for z10.
29820         (s390_expand_setmem): Likewise.
29821         (s390_expand_cmpmem): Likewise.
29822
29823 2010-04-08  Richard Guenther  <rguenther@suse.de>
29824
29825         PR tree-optimization/43679
29826         * tree-ssa-pre.c (eliminate): Only propagate copies.
29827
29828 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
29829
29830         PR bootstrap/43681
29831         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
29832         set but not used variable warning.
29833
29834 2010-04-08  Wei Guozhi  <carrot@google.com>
29835
29836         PR target/41653
29837         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
29838         (arm_size_rtx_costs): Call the new function when optimized for size.
29839
29840 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
29841
29842         PR debug/43670
29843         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
29844         op0 is not a MEM, just return NULL instead of assertion
29845         failure.
29846         (discover_nonconstant_array_refs): Don't walk debug stmts.
29847
29848 2010-04-08  Doug Kwan  <dougkwan@google.com>
29849
29850         * configure.ac: Recognize gold and do not use its version number
29851         to test ld features.
29852         * configure: Regenerate.
29853
29854 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
29855
29856         PR middle-end/40815
29857         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
29858         (negate_value): Move code to push elements to broken_up_substracts ...
29859         (eliminate_plus_minus_pair): ... here.  Push operands that have no
29860         negative pair to plus_negates.
29861         (repropagate_negates, init_reassoc, fini_reassoc): Update.
29862
29863 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29864
29865         * doc/install.texi (Configuration): Move description of
29866         --enable-lto, --with-libelf*, --enable-gold from Java section to
29867         general section.
29868
29869         * doc/generic.texi (Working with declarations)
29870         (Function Properties, C and C++ Trees): Fix typos.
29871         * doc/sourcebuild.texi (Top Level): Likewise.
29872
29873 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29874
29875         PR c/18624
29876         * tree.h (DECL_READ_P): Define.
29877         (struct tree_decl_common): Add decl_read_flag.
29878         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
29879         a set but not used warning.
29880         (merge_decls): Merge DECL_READ_P flag.
29881         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
29882         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
29883         * c-common.c (handle_used_attribute, handle_unused_attribute):
29884         Likewise.
29885         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
29886         New prototypes.
29887         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
29888         New functions.
29889         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
29890         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
29891         c_parser_binary_expression, c_parser_cast_expression,
29892         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
29893         Call default_function_array_read_conversion instead of
29894         default_function_array_conversion where needed.
29895         (c_parser_unary_expression, c_parser_conditional_expression,
29896         c_parser_postfix_expression_after_primary, c_parser_initelt):
29897         Likewise.  Call mark_exp_read where needed.
29898         (c_parser_statement_after_labels, c_parser_asm_operands,
29899         c_parser_typeof_specifier, c_parser_sizeof_expression,
29900         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
29901         where needed.
29902         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
29903         New.
29904         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
29905         (warn_unused_but_set_parameter): Default to warn_unused
29906         && extra_warnings.
29907         * doc/invoke.texi: Document -Wunused-but-set-variable and
29908         -Wunused-but-set-parameter.
29909
29910         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
29911         used count variable.
29912         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
29913         when operandN variables aren't used in the body of the expander
29914         or splitter.
29915         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
29916         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
29917         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
29918         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
29919         FOR_EACH_IMM_USE_ON_STMT): Likewise.
29920         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
29921         * tree.c (PROCESS_ARG): Likewise.
29922
29923 2010-04-07  Simon Baldwin  <simonb@google.com>
29924
29925         * diagnostic.h (diagnostic_override_option_index): New macro to
29926         set a diagnostic's option_index.
29927         * c-tree.h (c_cpp_error): Add warning reason argument.
29928         * opts.c (_warning_as_error_callback): New.
29929         (register_warning_as_error_callback): Store callback for
29930         warnings enabled via enable_warning_as_error.
29931         (enable_warning_as_error): Call callback, minor code tidy.
29932         * opts.h (register_warning_as_error_callback): Declare.
29933         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
29934         response to -Werror=.
29935         (c_common_init_options): Register warning_as_error_callback in opts.c.
29936         * common.opt: Add -Wno-cpp option.
29937         * c-common.c (struct reason_option_codes_t): Map cpp warning
29938         reason codes to gcc option indexes.
29939         * (c_option_controlling_cpp_error): New function, lookup the gcc
29940         option index for a cpp warning reason code.
29941         * (c_cpp_error): Add warning reason argument, call
29942         c_option_controlling_cpp_error for diagnostic_override_option_index.
29943         * doc/invoke.texi: Document -Wno-cpp.
29944
29945 2010-04-07  Richard Guenther  <rguenther@suse.de>
29946
29947         * ipa-reference.c (mark_load): Use get_base_address.
29948         (mark_store): Likewise.
29949
29950         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
29951         inserting GIMPLE_NOPs into the IL.
29952         * tree-ssa-structalias.c (get_constraint_for_component_ref):
29953         Explicitly strip handled components and indirect references.
29954
29955         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
29956         folding address expressions.
29957         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29958         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29959         operand_equal_p to compare decls.
29960         (ptr_deref_may_alias_decl_p): Likewise.
29961         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29962         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29963         Handle reversed comparison ops.
29964         * tree-sra.c (asm_visit_addr): Use get_base_address.
29965         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29966         * ipa-reference.c (mark_address): Use get_base_address.
29967
29968 2010-04-07  Richard Guenther  <rguenther@suse.de>
29969
29970         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29971         Propagate constants everywhere.
29972
29973 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29974
29975         PR debug/43516
29976         * tree.c (MAX_INT_CACHED_PREC): Define.
29977         (nonstandard_integer_type_cache): New array.
29978         (build_nonstandard_integer_type): Cache results for precision
29979         <= MAX_INT_CACHED_PREC.
29980
29981 2010-04-07  Richard Guenther  <rguenther@suse.de>
29982
29983         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29984         -fargument-noalias-global, -fargument-noalias-anything): Remove.
29985         * common.opt: Likewise.
29986         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29987         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29988         (nonoverlapping_memrefs_p): Likewise.
29989         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29990         * opts.c (common_handle_option): Handle OPT_fargument_alias,
29991         OPT_fargument_noalias, OPT_fargument_noalias_anything and
29992         OPT_fargument_noalias_global for backward compatibility.
29993
29994 2010-04-07  Richard Guenther  <rguenther@suse.de>
29995
29996         PR tree-optimization/43270
29997         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29998         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29999         * tree-ssa-pre.c (phi_translate_1): Adjust.
30000         (fully_constant_expression): Split out vn_reference handling to ...
30001         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
30002         Fold reads from constant strings.
30003         (vn_reference_lookup): Handle fully constant references.
30004         (vn_reference_lookup_pieces): Likewise.
30005         * Makefile.in (expmed.o-warn): Add -Wno-error.
30006
30007 2010-04-07  Martin Jambor  <mjambor@suse.cz>
30008
30009         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
30010
30011 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
30012
30013         PR driver/41594
30014         * gcc.c: Add -static-libstdc++ to list of recognized options.
30015
30016 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30017
30018         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
30019
30020 2010-04-07  Richard Guenther  <rguenther@suse.de>
30021
30022         PR middle-end/42617
30023         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
30024         bases build simple mem attributes to retain points-to information.
30025
30026 2010-04-07  Richard Guenther  <rguenther@suse.de>
30027
30028         PR middle-end/42617
30029         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
30030         preserve points-to related information.
30031
30032 2010-04-07  Richard Guenther  <rguenther@suse.de>
30033
30034         PR middle-end/42617
30035         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
30036         discard plain indirect references.
30037         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
30038         * tree.c (tree_nop_conversion): Likewise.
30039
30040 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
30041
30042         PR debug/43628
30043         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
30044
30045 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
30046
30047         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
30048         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
30049
30050 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30051
30052         * tree-if-conv.c: Fix indentation and comments.
30053
30054 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30055
30056         * tree-if-conv.c: Sort static functions in topological order.
30057
30058 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
30059
30060         * tree-if-conv.c: Fix indentation and comments.
30061
30062 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30063
30064         PR middle-end/43519
30065         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
30066         lang_hooks.types.type_for_size instead of
30067         build_nonstandard_integer_type.
30068         When converting an unsigned type to signed, double its precision.
30069         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
30070         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
30071         (graphite_create_new_loop_guard): When ub + 1 wraps around,
30072         use lb <= ub.
30073
30074 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30075
30076         PR middle-end/43519
30077         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
30078         POINTER_PLUS_EXPR for pointer types.
30079
30080 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30081
30082         PR middle-end/43519
30083         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
30084         * graphite-clast-to-gimple.c: Include langhooks.h.
30085         (max_signed_precision_type): New.
30086         (max_precision_type): Takes two types as arguments.
30087         (precision_for_value): New.
30088         (precision_for_interval): New.
30089         (gcc_type_for_interval): New.
30090         (gcc_type_for_value): New.
30091         (gcc_type_for_clast_term): New.
30092         (gcc_type_for_clast_red): New.
30093         (gcc_type_for_clast_bin): New.
30094         (gcc_type_for_clast_expr): Split up into several functions.
30095         (gcc_type_for_clast_eq): Rewritten.
30096         (compute_bounds_for_level): New.
30097         (compute_type_for_level_1): New.
30098         (compute_type_for_level): New.
30099         (gcc_type_for_cloog_iv): Removed.
30100         (gcc_type_for_iv_of_clast_loop): Rewritten.
30101         (graphite_create_new_loop): Compute the lower and upper bound types
30102         with gcc_type_for_clast_expr.
30103         (graphite_create_new_loop_guard): Same.
30104         (find_cloog_iv_in_expr): Removed.
30105         (compute_cloog_iv_types_1): Removed.
30106         (compute_cloog_iv_types): Removed.
30107         (gloog): Do not call compute_cloog_iv_types.
30108         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
30109         GBB_CLOOG_IV_TYPES.
30110         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
30111         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
30112         (GBB_CLOOG_IV_TYPES): Removed.
30113
30114 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30115
30116         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
30117         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
30118         (detect_commutative_reduction): Same.
30119
30120 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30121
30122         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
30123         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
30124         argument.
30125         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
30126         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
30127         (rewrite_commutative_reductions_out_of_ssa): Same.
30128         * passes.c (execute_function_todo): Call verify_ssa for every pass
30129         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
30130         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
30131         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
30132         with an extra argument.
30133         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
30134         verify_ssa only when the extra argument is true.
30135         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
30136         with an extra argument.
30137         (tree_transform_and_unroll_loop): Same.
30138
30139 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
30140
30141         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
30142         for all the passes of the LNO having LOOP_CLOSED_SSA.
30143         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
30144         * tree-loop-distribution.c (pass_loop_distribution): Same.
30145         * tree-pass.h (TODO_verify_loops): Removed.
30146         * tree-ssa-loop.c (pass_tree_loop_init): Same.
30147         (pass_lim): Same.
30148         (pass_tree_unswitch): Same.
30149         (pass_predcom): Same.
30150         (pass_vectorize): Same.
30151         (pass_linear_transform): Same.
30152         (pass_graphite_transforms): Same.
30153         (pass_iv_canon): Same.
30154         (pass_complete_unroll): Same.
30155         (pass_complete_unrolli): Same.
30156         (pass_parallelize_loops): Same.
30157         (pass_loop_prefetch): Same.
30158         (pass_iv_optimize): Same.
30159
30160 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
30161
30162         PR middle-end/32824
30163         * passes.c (init_optimization_passes): Move pass_lim before
30164         pass_copy_prop and pass_dce_loop.
30165
30166 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
30167
30168         PR target/43667
30169         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
30170         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
30171         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
30172         MULTI_* defines for 4 argument vpermil2p* builtins.
30173
30174 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
30175
30176         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
30177         * config/i386/i386.c (x86_maybe_negate_const_int): New.
30178         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
30179         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
30180         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
30181         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
30182         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
30183         Use x86_maybe_negate_const_int to output insn mnemonic.
30184         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
30185         check from instruction predicate.  Update comments.
30186         * config/i386/sync.md (sync_add<mode>): Use
30187         x86_maybe_negate_const_int to output insn mnemonic.
30188
30189 2010-04-06  Jan Hubicka  <jh@suse.cz>
30190
30191         PR tree-optimization/42906
30192         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
30193         IGNORE_SELF argument.  Set visited_control_parents for fully
30194         processed BBs.
30195         (find_obviously_necessary_stmts): Update call of
30196         mark_control_dependent_edges_necessary.
30197         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
30198
30199 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
30200
30201         * config/i386/i386.md: Remove comment about 'e' and 'E'
30202         operand modifier.
30203
30204 2010-04-06  Richard Guenther  <rguenther@suse.de>
30205
30206         PR tree-optimization/43627
30207         * tree-vrp.c (extract_range_from_unary_expr): Widenings
30208         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
30209         not varying.
30210
30211 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
30212
30213         * BASE-VER: Change to 4.6.0.
30214
30215         PR target/43638
30216         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
30217         handling.
30218
30219 2010-04-06  Richard Guenther  <rguenther@suse.de>
30220
30221         PR middle-end/43661
30222         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
30223
30224 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30225
30226         * doc/invoke.texi (Optimize Options): Document that LTO
30227         won't remove object access purely due to incompatible
30228         declarations.
30229
30230 2010-04-04  Matthias Klose  <doko@ubuntu.com>
30231
30232         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
30233         Initialize variable.
30234
30235 2010-04-03  Richard Guenther  <rguenther@suse.de>
30236
30237         PR middle-end/42509
30238         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
30239         require a non-NULL MEM_OFFSET.
30240
30241 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
30242
30243         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
30244         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
30245         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
30246         config/alpha/predicates.md, config/arm/arm.md,
30247         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
30248         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
30249         config/darwin9.h, config/darwin.c, config/darwin.h,
30250         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
30251         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
30252         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
30253         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
30254         config/mips/mips.md, config/mn10300/mn10300.c,
30255         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
30256         config/rs6000/aix.h, config/rs6000/dfp.md,
30257         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
30258         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
30259         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
30260         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
30261         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
30262         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
30263         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
30264         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
30265         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
30266         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
30267         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
30268         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
30269         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
30270         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
30271         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
30272         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
30273         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
30274         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
30275         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
30276         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
30277         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
30278         opt-functions.awk, opth-gen.awk, params.def, passes.c,
30279         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
30280         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
30281         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
30282         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
30283         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
30284         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
30285         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
30286         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
30287         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
30288         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
30289         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
30290         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
30291         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
30292         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
30293
30294 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30295
30296         PR other/43620
30297         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
30298         * aclocal.m4: Regenerate.
30299
30300 2010-04-02  Richard Guenther  <rguenther@suse.de>
30301
30302         PR tree-optimization/43629
30303         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
30304         if we have seen a constant value.
30305
30306 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
30307
30308         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
30309
30310 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
30311
30312         PR target/43469
30313         * arm.c (legitimize_tls_address): Adjust call to
30314         gen_tls_load_dot_plus_four.
30315         (arm_note_pic_base): New function.
30316         (arm_cannot_copy_insn_p): Use it.
30317         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
30318         constraint.
30319
30320 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30321
30322         PR bootstrap/43531
30323
30324         Revert:
30325         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30326
30327         * Makefile.in ($(out_object_file)): Depend on
30328         gt-$(basename $(notdir $(out_file))).h.
30329
30330 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
30331
30332         * config.gcc (lm32-*-rtems*): Add t-lm32.
30333
30334 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
30335
30336         * config.gcc: Add lm32-*-rtems*.
30337         * config/lm32/rtems.h: New file.
30338
30339 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
30340
30341         PR target/42609
30342         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
30343
30344 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
30345
30346         * dwarf2out.c (output_compilation_unit_header): For
30347         -gdwarf-4 use version 4 instead of version 3.
30348         (output_line_info): For version 4 and above emit additional
30349         maximum ops per insn header field.
30350         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
30351
30352         * dwarf2out.c (is_c_family, is_java): Remove.
30353         (lower_bound_default): New function.
30354         (add_bound_info, gen_descr_array_type_die): Use it.
30355
30356 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
30357
30358         PR debug/43325
30359         * dwarf2out.c (gen_variable_die): Allow debug info for variable
30360         re-declaration when it happens in a function.
30361
30362 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
30363
30364         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
30365         (cgraph_remove_function_insertion_hook): Same.
30366         (cgraph_call_function_insertion_hooks): Same.
30367
30368 2010-04-01  Richard Guenther  <rguenther@suse.de>
30369
30370         PR middle-end/43614
30371         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
30372         and TREE_THIS_VOLATILE.
30373         (copy_ref_info): Likewise.
30374         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
30375         * tree.c (build6_stat): Ignore side-effects of all but arg5
30376         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
30377         TARGET_MEM_REF.
30378
30379 2010-04-01  Richard Guenther  <rguenther@suse.de>
30380
30381         PR tree-optimization/43607
30382         * ipa-type-escape.c (check_call): Do not access non-existing
30383         arguments.
30384
30385 2010-04-01  Richard Guenther  <rguenther@suse.de>
30386
30387         PR middle-end/43602
30388         Revert
30389         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
30390                     Jack Howarth  <howarth@bromo.med.uc.edu>
30391
30392         * tree-profile.c (tree_init_ic_make_global_vars): Make static
30393         variables TLS.
30394
30395 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30396
30397         * doc/install.texi (Prerequisites): Document libelf usability on
30398         IRIX 5/6 and Solaris 2.
30399         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
30400         Update GNU as, GNU ld requirements.
30401         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
30402         Document Sun Studio compiler download.
30403         Update and simplify as, ld recommendations.
30404         (Specific, *-*-solaris2.7): Note obsoletion, removal.
30405
30406 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30407
30408         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
30409         with_tune_32 to pentium4.
30410
30411 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
30412
30413         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
30414
30415 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30416
30417         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
30418         obsoletion, removal.
30419         Update IDO URL.
30420         Document GNU as requirement.
30421         Update configure requirements.
30422         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
30423         Recomment IRIX 6.5.18+.
30424         Document IDF/IDL requirement.
30425         Document GNU as requirement.
30426         Document GNU ld bootstrap failure.
30427         Remove freeware.sgi.com reference.
30428
30429 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30430
30431         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
30432         UNIX V4.0, V5.0 obsoletion, removal.
30433         Remove --with-gc=simple reference.
30434         Update VM requirements during bootstrap.
30435         Remove -oldas bootstrap description.
30436         Update binutils reference.
30437         Remove comparison failure note.
30438
30439 2010-03-31  Richard Guenther  <rguenther@suse.de>
30440             Zdenek Dvorak  <ook@ucw.cz>
30441             Sebastian Pop  <sebastian.pop@amd.com>
30442
30443         PR middle-end/43464
30444         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
30445         with multiple arguments.
30446         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
30447
30448 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30449
30450         * graphite-dependences.c (print_pddr): Call print_pdr with an
30451         extra argument.
30452         * graphite-poly.c (debug_pdr): Add an extra argument for the
30453         verbosity level.
30454         (print_pdr): Same.
30455         (print_pbb_domain): Same.
30456         (print_pbb): Same.
30457         (print_scop_context): Same.
30458         (print_scop): Same.
30459         (print_cloog): Same.
30460         (debug_pbb_domain): Same.
30461         (debug_pbb): Same.
30462         (print_pdrs): Same.
30463         (debug_pdrs): Same.
30464         (debug_scop_context): Same.
30465         (debug_scop): Same.
30466         (debug_cloog): Same.
30467         (print_scop_params): Same.
30468         (debug_scop_params): Same.
30469         (print_iteration_domain): Same.
30470         (print_iteration_domains): Same.
30471         (debug_iteration_domain): Same.
30472         (debug_iteration_domains): Same.
30473         (print_scattering_function): Same.
30474         (print_scattering_functions): Same.
30475         (debug_scattering_function): Same.
30476         (debug_scattering_functions): Same.
30477         * graphite-poly.h (debug_pdr): Update declaration.
30478         (print_pdr): Same.
30479         (print_pbb_domain): Same.
30480         (print_pbb): Same.
30481         (print_scop_context): Same.
30482         (print_scop): Same.
30483         (print_cloog): Same.
30484         (debug_pbb_domain): Same.
30485         (debug_pbb): Same.
30486         (print_pdrs): Same.
30487         (debug_pdrs): Same.
30488         (debug_scop_context): Same.
30489         (debug_scop): Same.
30490         (debug_cloog): Same.
30491         (print_scop_params): Same.
30492         (debug_scop_params): Same.
30493         (print_iteration_domain): Same.
30494         (print_iteration_domains): Same.
30495         (debug_iteration_domain): Same.
30496         (debug_iteration_domains): Same.
30497         (print_scattering_function): Same.
30498         (print_scattering_functions): Same.
30499         (debug_scattering_function): Same.
30500         (debug_scattering_functions): Same.
30501
30502 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30503
30504         * graphite-poly.c (print_scattering_function_1): New.
30505         (print_scattering_function): Call it.
30506         (print_scop_params): Remove spaces at the end of lines.
30507         (print_cloog): New.
30508         (debug_cloog): New.
30509         * graphite-poly.h (print_cloog): Declared.
30510         (debug_cloog): Declared.
30511
30512 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30513
30514         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
30515         in loop->header.
30516         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
30517         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
30518         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
30519         to switch between adding the IV bump in loop->latch or in loop->header.
30520
30521 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30522
30523         * graphite-poly.c (print_scattering_function): Pretty print following
30524         the scoplib format.
30525         (print_pdr): Same.
30526         (print_pbb_domain): Same.
30527         (dump_gbb_cases): Same.
30528         (dump_gbb_conditions): Same.
30529         (print_pdrs): Same.
30530         (print_pbb): Same.
30531         (print_scop_params): Same.
30532         (print_scop_context): Same.
30533         (print_scop): Same.
30534         (print_pbb_body): New.
30535         (lst_indent_to): New.
30536         (print_lst): Start new lines with a #.
30537         * graphite-poly.h (pbb_bb): New.
30538         (pbb_index): Use pbb_bb.
30539         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
30540         disjuncts.
30541         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
30542
30543 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
30544
30545         * dwarf2out.c (size_of_die): For -gdwarf-4 use
30546         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
30547         and 0 instead of 1 for dw_val_class_flag.
30548         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
30549         dw_val_class_range_list, dw_val_class_loc_list,
30550         dw_val_class_lineptr and dw_val_class_macptr, use
30551         DW_FORM_flag_present for dw_val_class_flag and
30552         DW_FORM_exprloc for dw_val_class_loc.
30553         (output_die): For -gdwarf-4 print dw_val_class_loc
30554         size as uleb128 instead of 1 or 2 bytes and don't print
30555         anything for dw_val_class_flag.
30556
30557         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
30558         instead of cselib_lookup following by tweaking locs->setting_insn.
30559
30560         PR bootstrap/43596
30561         * cselib.c (cselib_process_insn): Clear cselib_current_insn
30562         even before returning from label, setjmp call or volatile asm
30563         handling.
30564
30565 2010-03-31  Richard Guenther  <rguenther@suse.de>
30566
30567         PR middle-end/43600
30568         * cgraphunit.c (cgraph_output_in_order): Do not allocate
30569         temporary data on stack.
30570
30571 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30572
30573         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
30574         (PUSHSECTION_ASM_OP): Remove.
30575         (POPSECTION_ASM_OP): Remove.
30576         (PUSHSECTION_FORMAT): Remove.
30577         * config/sol2.h (PUSHSECTION_FORMAT): Define.
30578         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
30579         * config/sol2.c (solaris_output_init_fini): Use it.
30580
30581 2010-03-31  Jie Zhang  <jie@codesourcery.com>
30582
30583         PR 43574
30584         * opt-functions.awk (var_type_struct): Use signed char type
30585         for simple variables.
30586
30587 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30588
30589         * config/sol2.c: Include output.h.
30590         (solaris_assemble_visibility): New function.
30591         * config/t-sol2 (sol2.o): Add output.h dependency.
30592         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
30593         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
30594         Redefine.
30595
30596 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
30597
30598         PR target/43580
30599         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
30600         V2SImode or XFmode on PRE_DEC.
30601
30602         PR debug/43557
30603         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
30604         BLKmode.
30605
30606 2010-03-31  Jie Zhang  <jie@codesourcery.com>
30607
30608         PR 43562
30609         * reload.h (caller_save_initialized_p): Declare.
30610         * toplev.c (backend_init_target): Don't call
30611         init_caller_save but set caller_save_initialized_p to false.
30612         * caller-save.c (caller_save_initialized_p): Define.
30613         (init_caller_save): Check caller_save_initialized_p.
30614         * ira.c (ira): Call init_caller_save if flag_caller_saves.
30615
30616 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30617
30618         PR target/39048
30619         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
30620         and soft-fp/t-softfp to tmake_file.
30621         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
30622         (LIBGCC2_TF_CEXT): Define.
30623         (TF_SIZE): Define.
30624
30625 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
30626
30627         PR debug/42977
30628         * cselib.c (n_useless_values): Document handling of debug locs.
30629         (n_useless_debug_values, n_debug_values): New variables.
30630         (new_elt_loc_list): Don't add to debug values, keep count.
30631         (promote_debug_loc): New.
30632         (cselib_reset_table): Zero new variables.
30633         (entry_and_rtx_equal_p): Promote debug locs.
30634         (discard_useless_locs): Increment n_useless_debug_values for
30635         debug values.
30636         (remove_useless_values): Adjust n_useless_values and n_debug_values
30637         with n_useless_debug_values.
30638         (add_mem_for_addr): Promote debug locs.
30639         (cselib_lookup_mem): Likewise.
30640         (cselib_lookup_addr): Renamed to...
30641         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
30642         (cselib_log_lookup): ... this.  Turn into...
30643         (cselib_lookup_addr): ... new wrapper.
30644         (cselib_lookup_from_insn): New.
30645         (cselib_invalidate_regno): Increment n_useless_debug_values for
30646         debug values.
30647         (cselib_invalidate_mem): Likewise.
30648         (cselib_process_insn): Take n_deleted and n_debug_values into
30649         account to guard remove_useless_value call.
30650         (cselib_finish): Zero n_useless_debug_values.
30651         * cselib.h (cselib_lookup_from_insn): Declare.
30652         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
30653         (sched_analyze_2): Likewise.
30654
30655 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
30656
30657         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
30658         functions.
30659         (adjust_mems): Replace narrowing SUBREG of expression containing
30660         just PLUS, MINUS, MULT and ASHIFT of registers and constants
30661         with operations in the narrower mode.
30662
30663         PR debug/43593
30664         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
30665         regs_invalidated_by_call instead all call_used_reg_set registers.
30666
30667 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
30668
30669         PR middle-end/43430
30670         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
30671         pointer comparisons with types_compatible_p.
30672         * tree-vect-stmts.c (vectorizable_call): Same.
30673         (vectorizable_condition): Same.
30674
30675 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30676
30677         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
30678         stack check if the mask would be zero.
30679
30680 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
30681             Jack Howarth  <howarth@bromo.med.uc.edu>
30682
30683         * tree-profile.c (tree_init_ic_make_global_vars): Make static
30684         variables TLS.
30685
30686 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
30687
30688         PR other/25232
30689         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
30690         and __unordtf2.
30691         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
30692         Include ___unordxf2 and ___unordtf2.
30693         * config/i386/libgcc-glibc.ver: Do not define inheritance from
30694         GCC_4.4.0 here.
30695
30696 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
30697
30698         * config/lm32/t-lm32: New file.
30699         * config.gcc: Use the above file when targetting lm32.
30700
30701 2010-03-28  Duncan Sands  <baldrick@free.fr>
30702
30703         * Makefile.in (PLUGIN_HEADERS): Add except.h.
30704
30705 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
30706
30707         PR middle-end/43431
30708         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
30709         Improve vectorization cost model diagnostic.
30710
30711 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
30712
30713         PR middle-end/43436
30714         * tree-vect-data-refs.c (vect_analyze_data_refs): When
30715         compute_data_dependences_for_loop returns false, early exit
30716         and output an extra diagnostic for the failed data reference
30717         analysis.
30718
30719 2010-03-29  Richard Guenther  <rguenther@suse.de>
30720
30721         PR tree-optimization/43560
30722         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
30723         (can_sm_ref_p): Treat stores to readonly locations as trapping.
30724
30725 2010-03-29  Jie Zhang  <jie@codesourcery.com>
30726
30727         PR 43564
30728         * toplev.c (process_options): Set optimization_default_node
30729         and optimization_current_node.
30730         * opts.c (decode_options): Don't set optimization_default_node
30731         and optimization_current_node.
30732
30733 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
30734
30735         * config/rtems.h: Abandon -qrtems_debug.
30736
30737 2010-03-28  Jan Hubicka  <jh@suse.cz>
30738
30739         PR tree-optimization/43505
30740         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
30741         map should not be copied.
30742
30743 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30744
30745         PR middle-end/41674
30746         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
30747         cdtors, set DECL_PRESERVE_P.
30748         * ipa.c (cgraph_externally_visible_p): Return true if declaration
30749         should be preseved.
30750
30751 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
30752
30753         PR tree-optimization/43528
30754         * stor-layout.c (place_field): Check that constant fits into
30755         unsigned HWI when skipping calculation of MS bitfield layout.
30756
30757 2010-03-27  Jan Hubicka  <jh@suse.cz>
30758
30759         PR middle-end/43391
30760         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
30761         notice_global_symbol work.
30762
30763 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
30764
30765         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
30766         instead of dwarf2out_decl.
30767         (struct var_loc_node): Remove section_label field.
30768         (dwarf2out_function_decl): New function.
30769         (dwarf2out_var_location): Don't set section_label field.
30770         (dwarf2out_begin_function): Don't empty decl_loc_table here.
30771
30772 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
30773
30774         PR tree-optimization/43544
30775         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30776         First argument for builtin vectorized function hook is now a
30777         tree to be able to distinguish between machine specific and
30778         standard builtins.
30779         * targhooks.c (default_builtin_vectorized_function): Ditto.
30780         * targhooks.h (default_builtin_vectorized_function): Ditto.
30781         * target.h (struct gcc_target): Ditto.
30782         * tree-vect-stmts.c (vectorizable_function): Ditto.
30783         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
30784         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
30785         Ditto.
30786
30787 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
30788
30789         PR c/43381
30790         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
30791         nested binding iff it is a FUNCTION_DECL.
30792         (store_parm_decls_newstyle): Pass nested=true to bind for
30793         FUNCTION_DECLs amongst parameters.
30794
30795 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
30796
30797         * var-tracking.c (vt_expand_loc_callback): Don't run
30798         cselib_expand_value_rtx_cb in dummy mode if
30799         cselib_dummy_expand_value_rtx_cb returned false.
30800
30801         * var-tracking.c (emit_note_insn_var_location): For one part
30802         notes with offset 0, don't add EXPR_LIST around the location.
30803         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
30804         add_location_or_const_value_attribute): Adjust for that change.
30805
30806         PR debug/43540
30807         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
30808         into first operand and location into second.
30809         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
30810         dw_cfi_oprnd_loc for DW_CFA_expression.
30811         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
30812         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
30813         assume first argument is regnum and second argument is location.
30814
30815 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
30816
30817         PR target/42113
30818         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
30819         of scratch register to DImode.  Split to DImode comparison operator.
30820         Use SImode subreg of scratch register in the multiplication.
30821         (*cmp_sadd_sidi): Ditto.
30822         (*cmp_ssub_si): Ditto.
30823         (*cmp_ssub_sidi): Ditto.
30824
30825 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
30826
30827         PR target/43524
30828         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
30829         Remove invalid assert and wrong comment.
30830
30831 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
30832
30833         PR debug/43516
30834         * flags.h (final_insns_dump_p): New extern.
30835         * final.c (final_insns_dump_p): New variable.
30836         (rest_of_clean_state): Set it before -fdump-final-insns=
30837         dumping, clear afterwards.
30838         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
30839         MEM_ALIAS_SET on MEMs.
30840
30841 2010-03-26  David S. Miller  <davem@davemloft.net>
30842
30843         * configure.ac: Fix sparc GOTDATA_OP bug check.
30844         * configure: Rebuild.
30845
30846 2010-03-26  Alan Modra  <amodra@gmail.com>
30847
30848         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
30849
30850 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30851
30852         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
30853         TLS_SECTION_ASM_FLAG.
30854
30855 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
30856
30857         PR bootstrap/43511
30858         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
30859         Clear first_function_block_is_cold.
30860
30861         PR c/43385
30862         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
30863         argument if the argument is truth_value_p.
30864
30865 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30866
30867         * config/rs6000/constraints.md: Update copyright year for my changes.
30868
30869         PR target/43484
30870         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
30871         used in reg+reg addressing, swap registers.
30872
30873 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30874
30875         PR debug/43293
30876         * target.h (struct gcc_target): Add code_end hook.
30877         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
30878         if not yet defined.
30879         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
30880         * toplev.c (compile_file): Call targetm.asm_out.code_end
30881         hook before unwind info/debug info output.
30882         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
30883         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
30884         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30885         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
30886         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30887         * config/i386/i386.c (ix86_file_end): Renamed to...
30888         (ix86_code_end): ... this.  Make static.  Don't call
30889         file_end_indicate_exec_stack.  Emit unwind info using
30890         final_start_function/final_end_function.
30891         (darwin_x86_file_end): Remove.
30892         (TARGET_ASM_CODE_END): Define.
30893         * config/i386/i386.h (TARGET_ASM_FILE_END,
30894         NEED_INDICATE_EXEC_STACK): Don't define.
30895         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
30896         (TARGET_ASM_FILE_END): Define to darwin_file_end.
30897         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
30898         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
30899
30900         PR target/43498
30901         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
30902         at the beginning and final_end_function at the end.
30903         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
30904
30905 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30906
30907         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
30908         and Sun as TLS syntax.
30909         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
30910         * configure: Regenerate.
30911         * config.in: Regenerate.
30912         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
30913         (default_elf_asm_named_section): Use it.
30914         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
30915         (i386_output_dwarf_dtprel): Likewise.
30916         (output_addr_const_extra): Likewise.
30917         (output_pic_addr_const): Lowercase @GOTTPOFF.
30918         (output_addr_const_extra): Likewise.
30919         (output_pic_addr_const): Lowercase @GOTNTPOFF.
30920         (output_addr_const_extra): Likewise.
30921         (output_pic_addr_const): Lowercase @INDNTPOFF.
30922         (output_addr_const_extra): Likewise.
30923         (output_pic_addr_const): Lowercase @NTPOFF.
30924         (output_addr_const_extra): Likewise.
30925         (output_pic_addr_const): Lowercase @TPOFF.
30926         (output_addr_const_extra): Likewise.
30927         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
30928         (*tls_global_dynamic_64): Likewise.
30929         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
30930         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
30931
30932         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
30933         (ASM_OUTPUT_TLS_COMMON): Use it.
30934         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
30935
30936         PR target/38118
30937         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
30938         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30939         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
30940         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
30941         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30942         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
30943
30944 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30945
30946         * config/i386/i386.c (override_options): Don't accept
30947         -mtls-dialect=sun any longer.
30948         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
30949         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
30950         (*tls_local_dynamic_base_32_sun): Likewise.
30951         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30952
30953 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30954
30955         PR debug/43508
30956         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30957         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30958
30959         PR debug/43479
30960         * ira.c (adjust_cleared_regs): New function.
30961         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30962
30963         PR debug/19192
30964         PR debug/43479
30965         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30966         from gimple_block.
30967         * expr.c (expand_expr_real): Restore previous
30968         curr_insn_source_location and curr_insn_block after
30969         expand_expr_real_1 call.
30970         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30971         instead of expand_expr_real_1.
30972
30973 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
30974
30975         PR rtl-optimization/43413
30976         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30977         hard regs too.
30978
30979 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
30980
30981         PR target/43348
30982         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30983         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30984
30985 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
30986
30987         * config/i386/i386.c (ix86_target_string): Add -mfma.
30988         Fix a typo in comment.
30989
30990 2010-03-22  Mike Stump  <mikestump@comcast.net>
30991
30992         PR target/23071
30993         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30994         Don't overly align based upon packed packed fields.
30995
30996 2010-03-22  Jason Merrill  <jason@redhat.com>
30997
30998         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30999         Use () rather than [], and move before the element type.
31000
31001 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31002
31003         * doc/configfiles.texi (Configuration Files): Removed
31004         fixinc/Makefile*, intl/Makefile.*.
31005         * doc/makefile.texi: Fixed markup. Abstract from version
31006         control system used.
31007         (Makefile): Removed obsolete java/parse.y example.
31008         * doc/sourcebuild.texi: Likewise.
31009         (Top Level): Added config, gnattools, libdecnumber, libgcc,
31010         libgomp, libssp.  Removed fastjar.
31011         (Miscellaneous Docs): Clarify location.
31012         Added COPYING3, COPYING3.LIB.
31013         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
31014
31015 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31016
31017         PR target/38085
31018         * config/i386/i386.c (x86_function_profiler)
31019         [!NO_PROFILE_COUNTERS]: Fix typo.
31020         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
31021         instead of callq.
31022
31023 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
31024             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31025
31026         * doc/sourcebuild.texi (Test Directives): Split into six
31027         subsections, with most of the current text in new subsections
31028         Directives, Selectors, and Final Actions.
31029         (Directives): Split list of test directives into multiple
31030         subsubsections.
31031         (Selectors): Describe use and syntax of selectors.
31032         (Effective-Target Keywords): Describe all existing keywords.
31033         (Add Options): Describe features for dg-add-options.
31034         (Require Support): Describe variants of dg-require-support.
31035         (Final Actions): Describe commands to use in dg-final.
31036
31037 2010-03-22  Michael Matz  <matz@suse.de>
31038
31039         PR middle-end/43475
31040         * recog.c (validate_replace_rtx_group): Replace also in
31041         REG_EQUAL and REG_EQUIV notes.
31042
31043 2010-03-22  Richard Guenther  <rguenther@suse.de>
31044
31045         PR tree-optimization/43390
31046         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
31047         sure vector extracts are type correct.
31048
31049 2010-03-22  Richard Guenther  <rguenther@suse.de>
31050
31051         PR middle-end/40106
31052         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
31053         x * sqrt (x) even when optimizing for size if the target
31054         has native support for sqrt.
31055
31056 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
31057
31058         * varasm.c (make_decl_rtl_for_debug): Also clear
31059         flag_mudflap for the duration of make_decl_rtl call.
31060
31061         PR debug/43443
31062         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
31063         locs from preserved VALUEs.
31064
31065 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31066
31067         PR middle-end/42718
31068         * pa.md (movmemsi): Set align to one if zero.
31069         (movmemdi): Likewise.
31070
31071 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
31072
31073         PR target/42321
31074         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
31075         with their corresponding prologue pushes.
31076
31077 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
31078
31079         PR target/43156
31080         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
31081         at the begining or end.
31082         (spu_expand_epilogue): Likewise.
31083
31084 2010-03-20  Richard Guenther  <rguenther@suse.de>
31085
31086         PR rtl-optimization/43438
31087         * combine.c (make_extraction): Properly zero-/sign-extend an
31088         extraction of the low part of a CONST_INT.  Also handle
31089         CONST_DOUBLE.
31090
31091 2010-03-19  Mike Stump  <mikestump@comcast.net>
31092
31093         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
31094         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
31095         (override_options): Use SUBTARGET32_DEFAULT_CPU.
31096
31097 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31098
31099         PR c/43211
31100         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
31101         an error.
31102
31103 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
31104
31105         PR rtl-optimization/42258
31106         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
31107         use that may match DEF.
31108
31109         PR target/40697
31110         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
31111         the cost of loading the constant rather than assuming
31112         COSTS_N_INSNS (1).
31113         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
31114         outer code is AND, do the same tests as the andsi3 expander and
31115         return COSTS_N_INSNS (1) if and is cheap.
31116
31117         * optabs.c (avoid_expensive_constant): Fix formatting.
31118
31119 2010-03-19  Michael Matz  <matz@suse.de>
31120
31121         PR c++/43116
31122         * attribs.c (decl_attributes): When rebuilding a function pointer
31123         type use the same qualifiers as the original pointer type.
31124
31125 2010-03-19  Martin Jambor  <mjambor@suse.cz>
31126
31127         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
31128         and is_gimple_ip_invariant_address.
31129
31130 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31131
31132         Revert
31133         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31134
31135         * config/arm/arm.c (arm_override_options): Turn off
31136         flag_dwarf2_cfi_asm for AAPCS variants.
31137
31138 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31139
31140         PR target/43399
31141         * config/arm/arm.c (emit_multi_reg_push): Update comments.
31142         Use PRE_MODIFY instead of PRE_DEC.
31143         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
31144         (vfp_emit_fstmd): Likewise.
31145
31146 2010-03-19  Michael Matz  <matz@suse.de>
31147
31148         PR target/43305
31149         * builtins.c (expand_builtin_interclass_mathfn,
31150         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
31151         if that fails.
31152
31153 2010-03-19  Richard Guenther  <rguenther@suse.de>
31154
31155         PR tree-optimization/43415
31156         * tree-ssa-pre.c (phi_translate): Split out worker to ...
31157         (phi_translate_1): ... this.
31158         (phi_translate): Move all caching here.  Cache all NARY
31159         and REFERENCE translations.
31160
31161 2010-03-19  David S. Miller  <davem@davemloft.net>
31162
31163         With help from Eric Botcazou.
31164         * config/sparc/sparc.c: Include dwarf2out.h.
31165         (emit_pic_helper): Delete.
31166         (pic_helper_symbol_name): Delete.
31167         (pic_helper_emitted_p): Delete.
31168         (pic_helper_needed): New.
31169         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
31170         (get_pc_thunk_name): New.
31171         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
31172         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
31173         Set pic_helper_needed to true.  Don't call emit_pic_helper.
31174         (sparc_expand_prologue): Update load_pic_register call.
31175         (sparc_output_mi_thunk): Likewise.
31176         (sparc_file_end): Emit a hidden comdat symbol for the PIC
31177         thunk if possible.  Output CFI information as needed.
31178
31179 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
31180             Jack Howarth  <howarth@bromo.med.uc.edu>
31181
31182         PR target/36399
31183         * config/i386/i386.h: Fix ABI on darwin x86-32.
31184
31185 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
31186
31187         * tree.h: Declare make_decl_rtl_for_debug.
31188         * varasm.c (make_decl_rtl_for_debug): New.
31189         * dwarf2out.c (rtl_for_decl_location): Call it.
31190         * cfgexpand.c (expand_debug_expr): Call it.
31191
31192 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
31193
31194         PR bootstrap/43399
31195         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
31196         mem_mode.
31197
31198         PR bootstrap/43403
31199         * var-tracking.c (vt_init_cfa_base): Do nothing if
31200         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
31201
31202 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
31203
31204         PR debug/42873
31205         * var-tracking.c (canonicalize_vars_star): New.
31206         (dataflow_post_merge_adjust): Use it.
31207
31208 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
31209
31210         PR debug/43058
31211         * var-tracking.c (non_suitable_const): New function.
31212         (add_uses): For DEBUG_INSNs with constants, don't record any
31213         value, instead just the constant value itself.
31214         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
31215         is not VAR_LOC_UNKNOWN_P, set var to the constant.
31216         (emit_notes_in_bb): Likewise.
31217         (emit_note_insn_var_location): For onepart variables if
31218         cur_loc is a VOIDmode constant, use DECL_MODE.
31219
31220 2010-03-18  Martin Jambor  <mjambor@suse.cz>
31221
31222         PR middle-end/42450
31223         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
31224         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
31225         all non-clones.  Moved call redirection...
31226         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
31227         (cgraph_materialize_all_clones): Dispose of all
31228         combined_args_to_skip bitmaps.
31229         (verify_cgraph_node): Do not check for edges pointing to wrong
31230         nodes in inline clones.
31231         * tree-inline.c (copy_bb): Call
31232         cgraph_redirect_edge_call_stmt_to_callee.
31233         * ipa.c (cgraph_remove_unreachable_nodes): Call
31234         cgraph_node_remove_callees even when there are used clones.
31235
31236 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
31237
31238         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
31239
31240 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
31241
31242         PR target/43383
31243         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
31244         for 32bit.
31245
31246 2010-03-18  Michael Matz  <matz@suse.de>
31247
31248         PR middle-end/43419
31249         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
31250         into sqrt(x) if we need to preserve signed zeros.
31251
31252 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
31253             Eric Botcazou  <ebotcazou@adacore.com>
31254
31255         PR rtl-optimization/43360
31256         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
31257         note if we don't know its invariant status.
31258
31259 2010-03-18  Michael Matz  <matz@suse.de>
31260
31261         PR tree-optimization/43402
31262         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
31263         PHI chains of ssa names registered for update.
31264
31265 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
31266
31267         PR target/42427
31268         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
31269         non-offsettable and pre_modify update addressing.
31270         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
31271         and "2" alternatives "#".
31272         (*movdd_softfloat32): Make all alternatives "#";
31273         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
31274         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
31275         (*movdf_softfloat32): Make all alternatives "#";
31276         (movdi): Use the new DIFD mode iterator to create a common splitter
31277         for movdi, movdf and movdd patterns.
31278
31279 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
31280
31281         * common.opt (dumpdir): Remove redundant tab.
31282
31283 2010-03-17  Martin Jambor  <mjambor@suse.cz>
31284
31285         PR tree-optimization/43347
31286         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
31287         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
31288
31289 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
31290
31291         PR rtl-optimization/42216
31292         * regrename.c (create_new_chain): New function, broken out from...
31293         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
31294         appending a use to an empty chain.
31295         (build_def_use): Remove previous changes that convert OP_INOUT to
31296         OP_OUT operands; instead detect the case where an OP_INOUT operand
31297         uses a previously untracked register and create an empty chain for it.
31298
31299 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31300
31301         * doc/extend.texi (Function Attributes): Rewrite unfinished
31302         sentence in ms_abi documentation.
31303
31304 2010-03-17  Alan Modra  <amodra@gmail.com>
31305
31306         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
31307         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
31308         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
31309         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
31310
31311 2010-03-16  Richard Henderson  <rth@redhat.com>
31312
31313         PR middle-end/43365
31314         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
31315         (lower_try_finally): Save and restore eh_seq around the expansion
31316         of the try-finally.
31317
31318 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
31319
31320         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
31321         statements before splitting block.
31322
31323 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31324
31325         * doc/sourcebuild.texi (Testsuites): Fix markup.
31326         Use pathnames relative to gcc/testsuite.
31327         (Test Directives): Move description of how timeout is determined.
31328         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
31329         (C Tests): Correct gcc.misc-tests directory.
31330         Framework tests now live in gcc.test-framework.
31331
31332 2010-03-16  Richard Guenther  <rguenther@suse.de>
31333
31334         PR middle-end/43379
31335         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
31336         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
31337
31338 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
31339             Alexandre Oliva  <aoliva@redhat.com>
31340
31341         PR tree-optimization/42917
31342         * lambda-code.c (remove_iv): Skip debug statements.
31343         (lambda_loopnest_to_gcc_loopnest): Likewise.
31344         (not_interesting_stmt): Debug statements are not interesting.
31345
31346 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
31347
31348         PR debug/43051
31349         PR debug/43092
31350         * cselib.c (cselib_preserve_constants,
31351         cfa_base_preserved_val): New static variables.
31352         (preserve_only_constants): New function.
31353         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
31354         clear its REG_VALUES.  If cselib_preserve_constants, don't
31355         empty the whole hash table, but preserve there VALUEs with constants,
31356         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
31357         (cselib_preserve_cfa_base_value): New function.
31358         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
31359         (cselib_init): Change argument to int bitfield.  Set
31360         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
31361         is in it.
31362         (cselib_finish): Clear cselib_preserve_constants and
31363         cfa_base_preserved_val.
31364         * cselib.h (enum cselib_record_what): New enum.
31365         (cselib_init): Change argument to int.
31366         (cselib_preserve_cfa_base_value): New prototype.
31367         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
31368         * dse.c (dse_step1): Likewise.
31369         * cfgcleanup.c (thread_jump): Likewise.
31370         * sched-deps.c (sched_analyze): Likewise.
31371         * gcse.c (local_cprop_pass): Likewise.
31372         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
31373         If FN is non-NULL, call the callback always and whenever it returns
31374         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
31375         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
31376         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
31377         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
31378         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
31379         * var-tracking.c: Include recog.h.
31380         (bb_stack_adjust_offset): Remove.
31381         (vt_stack_adjustments): Don't call it, instead just gather the
31382         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
31383         (adjust_stack_reference): Remove.
31384         (compute_cfa_pointer): New function.
31385         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
31386         (struct adjust_mem_data): New type.
31387         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
31388         functions.
31389         (get_address_mode): New function.
31390         (replace_expr_with_values): Use it.
31391         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
31392         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
31393         (adjust_sets): Remove.
31394         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
31395         Use get_address_mode.
31396         (get_adjusted_src): Remove.
31397         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
31398         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
31399         (add_with_sets): Don't call adjust_sets.
31400         (fp_setter, vt_init_cfa_base): New functions.
31401         (vt_initialize): Change return type to bool.  Move most of pool etc.
31402         initialization to the beginning of the function from end.  Pass
31403         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
31404         If !frame_pointer_needed, call vt_stack_adjustment before mos
31405         vector is filled, call vt_init_cfa_base if argp/framep has been
31406         eliminated to sp.  If frame_pointer_needed and argp/framep has
31407         been eliminated to hard frame pointer, set
31408         hard_frame_pointer_adjustment and call vt_init_cfa_base after
31409         encountering fp setter in the prologue.  For MO_ADJUST, call
31410         log_op_type before pusing the op into mos vector, not afterwards.
31411         Call adjust_insn before cselib_process_insn/add_with_sets,
31412         call cancel_changes (0) afterwards.
31413         (variable_tracking_main_1): Adjust for vt_initialize calling
31414         vt_stack_adjustments and returning whether it succeeded or not.
31415
31416 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
31417
31418         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
31419         debug statements.
31420
31421 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
31422
31423         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
31424         has been set.
31425         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
31426         drap_reg has not been set.
31427
31428 2010-03-15  Michael Matz  <matz@suse.de>
31429
31430         PR middle-end/43300
31431         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
31432         use it to expand block copies.
31433         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
31434         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
31435         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
31436
31437 2010-03-15  Richard Guenther  <rguenther@suse.de>
31438
31439         PR tree-optimization/43367
31440         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
31441         elimination check.
31442
31443 2010-03-15  Richard Guenther  <rguenther@suse.de>
31444
31445         PR tree-optimization/43317
31446         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
31447
31448 2010-03-15  Martin Jambor  <mjambor@suse.cz>
31449
31450         PR tree-optimization/43141
31451         * tree-sra.c (create_abstract_origin): New function.
31452         (modify_function): Call create_abstract_origin.
31453
31454 2010-03-15  Chris Demetriou  <cgd@google.com>
31455
31456         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
31457         wasn't copied.
31458
31459 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31460
31461         PR middle-end/43354
31462         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
31463         call insert_out_of_ssa_copy for default definitions.
31464
31465 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31466
31467         * graphite-clast-to-gimple.c (my_long_long): Defined.
31468         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
31469         * graphite-sese-to-poly.c (my_long_long): Defined.
31470         (scop_ivs_can_be_represented): Use it.
31471
31472 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31473
31474         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
31475         graphite-max-bbs-per-function, and loop-block-tile-size.
31476         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
31477         with "maximum".
31478         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
31479
31480 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31481
31482         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
31483         forward declaration.
31484         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
31485         (add_upper_bounds_from_estimated_nit): New.
31486         (build_loop_iteration_domains): Use it.
31487
31488 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31489
31490         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
31491
31492 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31493
31494         PR middle-end/43306
31495         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
31496         should be an INTEGER_CST.  Also handle CASE_CONVERT.
31497
31498 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31499
31500         * graphite.c (graphite_initialize): To bound the number of bbs per
31501         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
31502         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
31503         * doc/invoke.texi: Document it.
31504
31505 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31506
31507         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
31508         * graphite-sese-to-poly.h (build_poly_scop): Same.
31509
31510 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31511
31512         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
31513         the number of parameters in the scop.  Use as an upper bound
31514         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
31515         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
31516         * doc/invoke.texi: Document it.
31517
31518 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
31519
31520         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
31521         * doc/c-tree.texi: Remove.
31522         * doc/generic.texi: Merge c-tree.texi here.
31523         * doc/gccint.texi (Trees): Remove menu entry.
31524         (c-tree.texi): Remove @include.
31525         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
31526         * doc/languages.texi (Reading RTL): Ditto.
31527
31528 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
31529
31530         PR target/42869
31531         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
31532
31533 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31534
31535         PR middle-end/42431
31536         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
31537         code added to work around reload clobbering CONST insns.
31538
31539 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
31540
31541         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
31542         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
31543         (cselib_preserve_only_values): Remove retain argument, don't
31544         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
31545         * cselib.h (cselib_preserve_only_values): Remove retain argument.
31546         * var-tracking.c (micro_operation): Move insn field before union.
31547         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
31548         (struct variable_tracking_info_def): Remove n_mos field, change
31549         mos into a vector of micro_operations.
31550         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
31551         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
31552         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
31553         changing into a vector.
31554         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
31555         come before all other uops generated by add_stores.
31556         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
31557         argument removal.
31558         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
31559         a vector.  Run just one pass over the bbs instead of separate counting
31560         and computation phase.
31561         (vt_finalize): Free VTI (bb)->mos vector instead of array.
31562
31563         PR debug/43329
31564         * tree-inline.c (remap_decls): Put old_var rather than origin_var
31565         into *nonlocalized_list vector.
31566         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
31567         even if origin is non-NULL.
31568         (gen_variable_die): Likewise.
31569         (process_scope_var): Don't change origin.
31570         (gen_decl_die): Likewise.
31571         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
31572         before adding new edges instead of after it, fix moving over
31573         debug stmts.
31574
31575 2010-03-11  David S. Miller  <davem@davemloft.net>
31576
31577         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
31578         of four.
31579         * configure: Rebuild.
31580
31581 2010-03-11  Martin Jambor  <mjambor@suse.cz>
31582
31583         PR tree-optimization/43257
31584         * tree.c (assign_assembler_name_if_neeeded): New function.
31585         (free_lang_data_in_cgraph): Assembler name assignment moved to the
31586         above new function.
31587         * tree.h (assign_assembler_name_if_neeeded): Declare.
31588         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
31589         the function if needed.
31590
31591 2010-03-11  Chris Demetriou  <cgd@google.com>
31592
31593         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
31594         include/stdint-gcc.h, and include/stdint.h world-readable.
31595
31596 2010-03-11  Richard Guenther  <rguenther@suse.de>
31597
31598         PR tree-optimization/43255
31599         * tree-vrp.c (process_assert_insertions_for): Do not insert
31600         asserts for trivial conditions.
31601
31602 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31603
31604         PR tree-optimization/43280
31605         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
31606         generation.  Move calculation of size out of the if branch.
31607         (find_bswap): Modify compare number generation.
31608
31609 2010-03-11  Richard Guenther  <rguenther@suse.de>
31610
31611         PR lto/43200
31612         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
31613         (input_gimple_stmt): Fixup handled component types during
31614         operand read.  Also fix up decls in ADDR_EXPRs.
31615
31616 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
31617
31618         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
31619         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
31620
31621 2010-03-10  Jan Hubicka  <jh@suse.cz>
31622
31623         PR c/43288
31624         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
31625         * varasm.c (get_variable_section): Don't do that here...
31626         (make_decl_rtl): ... and here.
31627         (do_assemble_alias): Produce decl RTL.
31628         (assemble_alias): Likewise.
31629
31630 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
31631
31632         PR debug/43290
31633         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
31634         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
31635         of fde->vdrap_reg.
31636         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
31637         (based_loc_descr): Only express drap or vdrap regno based expressions
31638         using DW_OP_fbreg when not optimizing.
31639         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
31640         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
31641         REG_CFA_SET_VDRAP note.
31642
31643 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
31644
31645         PR tree-optimization/43236
31646         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
31647         error in calculation of base address in reverse iteration case.
31648         (generate_builtin): Take number of latch executions if the statement
31649         is in the latch.
31650
31651 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
31652
31653         PR middle-end/42859
31654         * tree-eh.c: Include pointer-set.h.
31655         (lower_eh_dispatch): Filter out duplicate case labels and
31656         remove the unneeded edge when the label is unused.  Return
31657         true when some edges are removed.
31658         (execute_lower_eh_dispatch): When any lowering resulted in
31659         removing an edge, also delete unreachable blocks.
31660
31661 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
31662
31663         PR bootstrap/43287
31664         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
31665         UNSPEC_MACHOPIC_OFFSET.
31666
31667 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
31668
31669         PR target/43294
31670         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
31671         (m68k_delegitimize_address): New function.
31672
31673 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
31674
31675         PR debug/43299
31676         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
31677
31678         PR debug/43299
31679         * var-tracking.c (adjust_sets): New function.
31680         (count_with_sets, add_with_sets): Use it.
31681         (get_adjusted_src): New inline function.
31682         (add_stores): Use it.
31683
31684         PR debug/43304
31685         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
31686         call cselib_dummy_expand_value_rtx_cb instead of
31687         cselib_expand_value_rtx_cb.
31688
31689         PR debug/43293
31690         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
31691         * config/i386/i386.c: Include debug.h and dwarf2out.h.
31692         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
31693         and .cfi_endproc around the pic thunks.
31694         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
31695         all queued unwind info register saves are saved before the call.
31696         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
31697         considered as sp-=4 for unwind info and the pop as sp+=4 which
31698         also clobbers dest, but doesn't actually restore it.
31699
31700         PR debug/43290
31701         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
31702         RTX_FRAME_RELATED_P.
31703
31704 2010-03-09  Jie Zhang  <jie@codesourcery.com>
31705
31706         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
31707         whitespaces in output template.
31708
31709 2010-03-09  Jie Zhang  <jie@codesourcery.com>
31710
31711         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
31712         out array boundary.
31713
31714 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
31715
31716         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
31717         builtins.exp in a separate job.
31718
31719 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31720
31721         * graphite-sese-to-poly.c (add_param_constraints): Use
31722         lower_bound_in_type and upper_bound_in_type.
31723
31724 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31725
31726         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
31727         instead of unsigned_type_node.
31728
31729 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31730             Reza Yazdani  <reza.yazdani@amd.com>
31731
31732         PR middle-end/43065
31733         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
31734         on pointer type parameters.
31735
31736 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
31737
31738         PR middle-end/42644
31739         PR middle-end/42130
31740         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
31741         handle conversions from pointer to integers.
31742         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
31743         induction variable, to be able to work with code generated by CLooG.
31744         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
31745         (build_poly_scop): Bail out if we cannot codegen a loop.
31746
31747 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
31748
31749         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
31750         code generation with gloog_error.
31751
31752 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31753
31754         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
31755         Call fold_convert on all the returned values.
31756         (expand_scalar_variables_expr): Pass to
31757         expand_scalar_variables_ssa_name the type of the resulting expression.
31758
31759 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31760
31761         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
31762         ppl_min_for_le_pointset.
31763         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
31764         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
31765
31766 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31767
31768         * graphite-dependences.c (map_into_dep_poly): Removed.
31769         (dependence_polyhedron_1): Use combine_context_id_scat.
31770
31771 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31772
31773         * graphite-poly.h (struct poly_scattering): Add layout documentation.
31774         (struct poly_bb): Same.
31775         (combine_context_id_scat): New.
31776
31777 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31778
31779         PR middle-end/42326
31780         * sese.c (name_defined_in_loop_p): Return false for default
31781         definitions.
31782
31783 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31784
31785         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
31786         and clean up the logic.
31787
31788 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31789
31790         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
31791         early return.
31792
31793 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
31794
31795         * var-tracking.c (remove_cselib_value_chains): Define only for
31796         ENABLE_CHECKING.
31797         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
31798         delete_slot_part, emit_notes_for_differences_1): Don't call
31799         remove_cselib_value_chains here.
31800         (set_slot_part, emit_notes_for_differences_2): Don't call
31801         add_cselib_value_chains here.
31802         (preserved_values): New vector.
31803         (preserve_value): New function.
31804         (add_uses, add_stores, vt_add_function_parameters): Use it
31805         instead of cselib_preserve_value.
31806         (changed_values_stack): New vector.
31807         (check_changed_vars_0): New function.
31808         (check_changed_vars_1, check_changed_vars_2): Use it.
31809         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
31810         changed_values_stack VALUEs.
31811         (vt_emit_notes): For all preserved_values call
31812         add_cselib_value_chains.  If ENABLE_CHECKING call
31813         remove_cselib_value_chains before verifying value_chains is empty.
31814         Initialize and free changed_values_stack.
31815         (vt_initialize): Initialize preserved_values.
31816         (vt_finalize): Free preserved_values.
31817
31818 2010-03-08  Richard Guenther  <rguenther@suse.de>
31819
31820         PR tree-optimization/43269
31821         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
31822         region detection.
31823
31824 2010-03-08  Martin Jambor  <mjambor@suse.cz>
31825
31826         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
31827         (ipa_is_param_called): Removed.
31828         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
31829         (ipa_print_node_params): Do not print the called flag.
31830         (ipa_write_node_info): Do not stream the called flag.
31831         (ipa_read_node_info): Likewise.
31832
31833 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
31834
31835         PR debug/43176
31836         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
31837         * cselib.c (struct expand_value_data): Add dummy field.
31838         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
31839         dummy to false.
31840         (cselib_dummy_expand_value_rtx_cb): New function.
31841         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
31842         any rtl.
31843         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
31844         * var-tracking.c: Include pointer-set.h.
31845         (variable): Change n_var_parts to char from int.  Add
31846         cur_loc_changed and in_changed_variables fields.
31847         (variable_canonicalize): Remove.
31848         (shared_var_p): New inline function.
31849         (unshare_variable): Maintain cur_loc_changed and
31850         in_changed_variables fields.  If var was in changed_variables,
31851         replace it there with new_var.  Just copy cur_loc instead of
31852         resetting it to something else.
31853         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
31854         (dataflow_set_union): Don't call variable_canonicalize.
31855         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
31856         of their DEBUG_EXPR_TREE_DECLs.
31857         (canonicalize_loc_order_check): Verify that cur_loc is NULL
31858         and in_changed_variables and cur_loc_changed is false.
31859         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
31860         and cur_loc_changed.  Don't update cur_loc here.
31861         (variable_merge_over_src): Don't call variable_canonicalize.
31862         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
31863         removing loc that is equal to cur_loc, clear cur_loc,
31864         set cur_loc_changed and ensure variable_was_changed is called.
31865         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
31866         compare pointers in cur_loc check, if it is equal to loc,
31867         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
31868         (variable_different_p): Remove compare_current_location argument,
31869         don't compare cur_loc.
31870         (dataflow_set_different_1): Adjust variable_different_p caller.
31871         (variable_was_changed): If dv had some var in changed_variables
31872         already, reset in_changed_variables flag for it and propagate
31873         cur_loc_changed over to the new variable.  On empty var
31874         always set cur_loc_changed.  Set in_changed_variables on whatever
31875         var is added to changed_variables.
31876         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
31877         Use shared_var_p.  When removing loc that is equal to cur_loc,
31878         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
31879         end, don't set it to something else, just call variable_was_changed.
31880         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
31881         loc being removed, clear cur_loc and set cur_loc_changed.
31882         Set cur_loc_changed if all locations have been removed.
31883         (struct expand_loc_callback_data): New type.
31884         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
31885         allocated.  Always create SUBREGs if simplify_subreg failed.
31886         Prefer to use cur_loc, when that fails and still in
31887         changed_variables (and seen first time) recompute it.  Set
31888         cur_loc_changed of variables which had to change cur_loc and
31889         compute elcd->cur_loc_changed if any of the subexpressions used
31890         had to change cur_loc.
31891         (vt_expand_loc): Adjust to pass arguments in
31892         expand_loc_callback_data structure.
31893         (vt_expand_loc_dummy): New function.
31894         (emitted_notes): New variable.
31895         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
31896         that weren't used for any other decl in current
31897         emit_notes_for_changes call call vt_expand_loc_dummy to update
31898         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
31899         first loc_chain location if NULL before.  Always use just
31900         cur_loc instead of first loc_chain location.  When cur_loc_changed
31901         is false, when not --enable-checking=rtl just don't emit any note.
31902         When rtl checking, compute the note and assert it is the same
31903         as previous note.  Clear cur_loc_changed and in_changed_variables
31904         at the end before removing from changed_variables.
31905         (check_changed_vars_3): New function.
31906         (emit_notes_for_changes): Traverse changed_vars to call
31907         check_changed_vars_3 on each changed var.
31908         (emit_notes_for_differences_1): Clear cur_loc_changed and
31909         in_changed_variables.  Recompute cur_loc of new_var.
31910         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
31911         (vt_emit_notes): Initialize and destroy emitted_notes.
31912
31913 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
31914
31915         PR rtl-optimization/42220
31916         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
31917         Use verify_reg_tracked to determine if we should use OP_OUT rather
31918         than OP_INOUT.
31919         (build_def_use): If we see an in-out operand for a register that we
31920         know nothing about, treat is an output if possible, fail the block if
31921         not.
31922
31923 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31924
31925         PR debug/42897
31926         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
31927         permanently.
31928
31929 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31930
31931         PR debug/42897
31932         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
31933         uses of relevant DEFs that are dead outside the loop too.
31934
31935 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31936
31937         * var-tracking.c (dataflow_set_merge): Swap src and src2.
31938         Reverted:
31939         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
31940         PR debug/41371
31941         * var-tracking.c (values_to_unmark): New variable.
31942         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31943         values_to_unmark vector.  Moved body to...
31944         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
31945         instead queue it into values_to_unmark vector.
31946         (vt_find_locations): Free values_to_unmark vector.
31947
31948 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
31949
31950         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
31951         (site.exp): Export them when plugins are enabled.
31952
31953 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
31954
31955         PR middle-end/42326
31956         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31957         that contain scevs.
31958         (chrec_fold_multiply): Same.
31959
31960 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31961
31962         PR c/43248
31963         * c-decl.c (build_compound_literal): Return early if init is
31964         an error_mark_node.
31965
31966 2010-03-04  Martin Jambor  <mjambor@suse.cz>
31967
31968         PR tree-optimization/43164
31969         PR tree-optimization/43191
31970         * tree-sra.c (type_consists_of_records_p): Reject records with
31971         zero-size bit-fields at the end.
31972
31973 2010-03-04  Mike Stump  <mikestump@comcast.net>
31974
31975         * Makefile.in (TAGS): Remove *.y.
31976
31977 2010-03-04  Richard Guenther  <rguenther@suse.de>
31978
31979         PR tree-optimization/40761
31980         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31981         in reverse order.
31982         (my_rev_post_order_compute): New function.
31983         (init_pre): Call it.
31984
31985 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
31986
31987         PR middle-end/43209
31988         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31989         decrease the cost of an IV candidate when the cost is infinite.
31990
31991 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31992
31993         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31994         Use '3DNow!' for the extension of that name, ensure normal space
31995         after the string.
31996         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31997
31998 2010-03-03  Jeff Law  <law@redhat.com>
31999
32000         * PR middle-end/32693
32001         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
32002         than gen_rtx_SUBREG.
32003         (extract_bit_field_1): Likewise.
32004
32005 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
32006
32007         * doc/sourcebuild.texi (Test directives): Document that arguments
32008         include-opts and exclude-opts are now optional for dg-skip-if,
32009         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
32010
32011 2010-03-03  Jason Merrill  <jason@redhat.com>
32012
32013         PR c++/12909
32014         * cgraph.h (varpool_node): Add extra_name field.
32015         * varpool.c (varpool_extra_name_alias): New.
32016         (varpool_assemble_decl): Emit extra name aliases.
32017         (varpool_mark_needed_node): Look past an extra name alias.
32018         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
32019         * lto-streamer-in.c (lto_input_tree): Read it.
32020         * lto-streamer-out.c (output_unreferenced_globals): Write it.
32021
32022 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
32023
32024         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
32025         (sparc*-*-solaris2*): ...this.
32026
32027 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
32028
32029         PR debug/43229
32030         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
32031         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
32032         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
32033         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
32034
32035         PR debug/43237
32036         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
32037         fallthrough to default handling, just with want_address 0 instead of 2.
32038         For single element lists, add_AT_loc directly, otherwise create an
32039         artificial variable DIE and stick location list to it.
32040
32041         PR debug/43177
32042         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
32043         (VAL_EXPR_HAS_REVERSE): Define.
32044         (reverse_op): New function.
32045         (add_stores): For reversible operations add an extra MO_VAL_USE.
32046
32047 2010-03-02  Jason Merrill  <jason@redhat.com>
32048
32049         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
32050
32051 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
32052
32053         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
32054         (sparc64-*-linux*): Likewise.
32055         (sparc64-*-solaris2*): Include assembler files before linker ones.
32056         (sparc-*-solaris2*): Simplify and reorder to match previous case.
32057         * config/sparc/gas.h: Delete.
32058         * config/sparc/sol2-64.h: Add copyright notice.
32059         * config/sparc/sol2-gas-bi.h: Likewise.
32060         * config/sparc/sol2-gld.h: Likewise.
32061         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
32062         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
32063         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
32064         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
32065         (sparc_elf_asm_named_section): Rename into...
32066         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
32067
32068 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
32069
32070         * config/alpha/alpha.c (override_options): Fix -mtune error message.
32071
32072 2010-03-02  Jeff Law  <law@redhat.com>
32073
32074         PR middle-end/42431
32075         * reload1.c (rtx_p, substitute_stack): Declare.
32076         (substitute): Record addresses of changed rtxs.
32077         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
32078         Restore the original rtx when complete.
32079         (reload): Free subsitute_stack when complete.
32080
32081 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
32082
32083         * doc/gccint.texi (menu): Add Testsuites as a chapter.
32084         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
32085         new chapter.
32086         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
32087         LTO Testing, gcov Testing, profopt Testing, compat Testing,
32088         Torture Tests): Change from subsection to section.
32089
32090 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
32091             Steven Bosscher  <steven@gcc.gnu.org>
32092
32093         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
32094         instead of bb.
32095
32096 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
32097
32098         PR middle-end/42640
32099         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
32100         the assignment from the new induction variable to the assignment
32101         of the value from the original loop PHI function.
32102
32103 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
32104             Daniel Jacobowitz  <dan@codesourcery.com>
32105
32106         * doc/sourcebuild.texi (Test directives): Clarify options to
32107         dg-skip-if.
32108
32109 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32110
32111         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
32112         Disable cfi directives unless GCC and gas agree on using read-only
32113         .eh_frame sections for 64-bit.
32114         * configure: Regenerate.
32115
32116 2010-03-01  Richard Guenther  <rguenther@suse.de>
32117
32118         PR tree-optimization/43220
32119         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
32120         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
32121
32122 2010-03-01  Richard Guenther  <rguenther@suse.de>
32123             Martin Jambor  <mjambor@suse.cz>
32124
32125         PR middle-end/41250
32126         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
32127         gimplified parameters.
32128
32129 2010-03-01  Christian Bruel  <christian.bruel@st.com>
32130
32131         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
32132
32133 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
32134
32135         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
32136
32137 2010-03-01  Richard Guenther  <rguenther@suse.de>
32138
32139         PR middle-end/43213
32140         * expr.c (expand_assignment): Use the alias-oracle to tell
32141         if the rhs aliases the result decl.
32142
32143 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32144
32145         PR pch/14940
32146         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
32147         to sol_gt_pch_get_address.
32148         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
32149         64-bit, SPARC and x86.
32150         (sol_gt_pch_get_address): New function.
32151
32152 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
32153
32154         * toplev.h (inform_n, error_n): Declare.
32155         * diagnostic.c (inform_n, error_n): New function.
32156
32157 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
32158
32159         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
32160         has no rtl yet when processing local_decls, queue it and recheck
32161         if deferred stack allocation hasn't assigned it rtl.
32162
32163 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
32164
32165         * config/sh/sh.c (unspec_bbr_uid): New.
32166         (gen_block_redirect): Use it instead of INSN_UID.
32167         (gen_far_branch): Likewise.
32168
32169 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
32170
32171         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
32172         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
32173
32174 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32175
32176         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
32177         (Warning Options): -Wno-conversion-null is valid for
32178         Objective-C++ as well.
32179         * doc/tm.texi (Named Address Spaces): Likewise.
32180         * doc/plugins.texi (Plugins): Replace TABs with spaces.
32181         * doc/tree-ssa.texi (Tree SSA): Likewise.
32182
32183 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32184
32185         PR bootstrap/43202
32186         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
32187         by default.  Don't set the default arch for
32188         i[34567]86-*-darwin*|x86_64-*-darwin*.
32189
32190 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32191
32192         PR bootstrap/43202
32193         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
32194         default.  Set the default 32bit/64bit archs with $with_arch
32195         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
32196
32197 2010-02-27  Richard Guenther  <rguenther@suse.de>
32198
32199         PR tree-optimization/43186
32200         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
32201         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
32202         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
32203         unroller iterations.
32204
32205 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32206
32207         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
32208         required and i[34567]86-*-* targets don't support 64bit ISA.
32209
32210 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
32211
32212         PR ada/43096
32213         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32214         the same alias set.
32215
32216 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
32217
32218         * config.gcc: Set the default arch at least to Prescott for
32219         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
32220         if SSE math is enabled.
32221
32222 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32223
32224         * diagnostic.c (diagnostic_initialize): Update.
32225         (diagnostic_report_diagnostic): Test inhibit_notes_p for
32226         informative notes.
32227         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
32228         (diagnostic_inhibit_notes): New.
32229         * toplev.c (process_options): inhibit notes with -fcompare-debug.
32230
32231 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32232
32233         PR c/20631
32234         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
32235         * doc/standards.texi: Likewise.
32236         * doc/extend.texi: Likewise.
32237         * doc/trouble.texi: Likewise.
32238         * doc/cppopts.texi: Likewise.
32239         * doc/install.texi: Likewise.
32240         * c.opt (std=c90,std=gnu90): New options.
32241         * c-opts.c (c_common_handle_option): Handle them.
32242
32243 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32244
32245         PR c/24577
32246         * c-decl.c (undeclared_variable): Use an informative note.
32247
32248 2010-02-26  Richard Guenther  <rguenther@suse.de>
32249
32250         PR tree-optimization/43186
32251         * gimple.h (gimple_fold): Remove.
32252         * gimple.c (gimple_fold): Remove.  Inline into single user ...
32253         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
32254         Try harder for conditions.
32255
32256 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
32257
32258         PR debug/43190
32259         * function.c (used_types_insert): Don't skip through named pointer
32260         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
32261         and it is different from the main variant's type.
32262
32263 2010-02-26  Nick Clifton  <nickc@redhat.com>
32264
32265         * config/rx/rx.md (sminsi3): Remove bogus alternative.
32266
32267 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
32268
32269         * config.gcc: Support --with-fpmath=sse for x86.
32270
32271         * config/i386/ssemath.h: New.
32272
32273         * doc/install.texi (--with-fpmath=sse): Documented.
32274
32275 2010-02-26  Richard Guenther  <rguenther@suse.de>
32276
32277         PR tree-optimization/43188
32278         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
32279         vector types of over-aligned element type.
32280
32281 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
32282
32283         PR target/43175
32284         * config/i386/i386.c (expand_vec_perm_blend): Use correct
32285         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
32286
32287 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
32288
32289         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
32290
32291 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
32292
32293         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
32294         * var-tracking.c: Include diagnostic.h.
32295         (debug_dv): New function.
32296         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
32297
32298         PR debug/43160
32299         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
32300         (add_value_chain, add_value_chains, remove_value_chain,
32301         remove_value_chains): Handle DEBUG_EXPRs.
32302         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
32303
32304         PR debug/43161
32305         * regcprop.c (struct queued_debug_insn_change): New type.
32306         (struct value_data_entry): Add debug_insn_changes field.
32307         (struct value_data): Add n_debug_insn_changes field.
32308         (debug_insn_changes_pool): New variable.
32309         (free_debug_insn_changes, apply_debug_insn_changes,
32310         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
32311         (kill_value_one_regno): Call free_debug_insn_changes if needed.
32312         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
32313         fields.
32314         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
32315         changes for them.
32316         (copyprop_hardreg_forward_1): Don't call apply_change_group for
32317         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
32318         changes, call cprop_find_used_regs via note_stores.
32319         (copyprop_hardreg_forward): When copying vd from predecessor
32320         which has any queued DEBUG_INSN changes, make sure the pointers are
32321         cleared.  At the end call df_analyze and then if there are any
32322         DEBUG_INSN changes queued at the end of some basic block for still
32323         live registers, apply them.
32324         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
32325
32326 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
32327
32328         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
32329         (arm*-*-*): Ditto.
32330
32331 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
32332
32333         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
32334         targets.  Set the default with_cpu/with_arch from arch/cpu.
32335         Allow x86-64 and native for with_cpu/with_arch.
32336
32337 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
32338
32339         * ebitmap.c: Change calls to verify_popcount with calls to
32340         sbitmap_verify_popcount.
32341         (ebitmap_clear_bit): Fixed map->cacheindex test and
32342         map>cache update when bit clearing results in an empty
32343         element.
32344
32345 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
32346
32347         PR target/43154
32348         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
32349         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
32350         and support both V2DF and V2DI modes.
32351         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
32352         support both V2DF and V2DI modes.
32353         (general): Delete trailing whitespace from a few patterns.
32354
32355         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
32356         V2DF/V2DI interleave high/low builtins.
32357
32358         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
32359         new VSX builtins.
32360
32361         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
32362         interleave high/low functions.
32363
32364 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
32365
32366         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
32367         #pragma extern_prefix.
32368
32369 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
32370
32371         PR debug/43166
32372         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
32373         BLKmode, assert op0 is a MEM and just adjust its mode.
32374
32375         PR debug/43165
32376         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
32377         if bitpos isn't multiple of mode's bitsize.
32378
32379 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32380
32381         * c.opt (-ftemplate-depth=): New.
32382         (-ftemplate-depth-): Deprecate.
32383         * optc-gen.awk: Handle -ftemplate-depth=.
32384         * opth-gen.awk: Likewise.
32385         * c-opts.c (c_common_handle_option): Likewise.
32386         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
32387
32388 2010-02-24  Jason Merrill  <jason@redhat.com>
32389
32390         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
32391
32392 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32393
32394         * cfg.c (alloc_aux_for_block): Remove inline.
32395         (alloc_aux_for_edge): Likewise.
32396
32397 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32398
32399         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
32400
32401 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32402
32403         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
32404         * config/i386/sol2-gas.h: New file.
32405         * config.gcc (i[34567]86-*-solaris2*): Use it.
32406
32407 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32408
32409         PR c/43128
32410         * c-typeck.c (ep_convert_and_check): New.
32411         (build_conditional_expr): Use it.
32412         (build_binary_op): Likewise.
32413
32414 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
32415
32416         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
32417
32418         PR debug/43150
32419         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
32420         bounds even for -O+.
32421         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
32422         expr needs to have DECL_NAME set.
32423
32424 2010-02-24  Nick Clifton  <nickc@redhat.com>
32425
32426         * config/mep/mep.c: Include gimple.h.
32427         (mep_function_uses_sp): Delete unused function.
32428         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
32429         parameters.  Use unsigned integers to count args.  Return a
32430         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
32431
32432 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
32433
32434         PR target/43107
32435         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
32436         greater or equal to nelt instead of 2 * nelt.
32437         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
32438         with nelt - 1.
32439
32440 2010-02-23  Jason Merrill  <jason@redhat.com>
32441
32442         PR debug/42800
32443         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
32444         in cfun->local_decls even if they have register types.
32445
32446         PR c++/42837
32447         * stor-layout.c (place_field): Don't warn about unnecessary
32448         DECL_PACKED if the type is packed.
32449
32450 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
32451
32452         PR target/43139
32453         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
32454         GOTOFF relocs, even when the base reg isn't pic pointer.
32455
32456 2010-02-23  Michael Matz  <matz@suse.de>
32457
32458         PR debug/43077
32459         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
32460         (expand_gimple_basic_block): Generate and use debug temps if there
32461         are debug uses left after the last real use of TERed ssa names.
32462         Unlink debug immediate uses when they are expanded.
32463
32464 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32465
32466         PR 43123
32467         * config/i386/i386.c (override_options): Reorganise to provide
32468         better error messages.
32469
32470 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32471
32472         PR middle-end/43083
32473         * graphite-scop-detection.c (create_single_exit_edge): Move
32474         the call to find_single_exit_edge to....
32475         (create_sese_edges): ...here.  Don't handle multiple edges
32476         exiting the function.
32477         (build_graphite_scops): Don't handle multiple edges
32478         exiting the function.
32479
32480 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32481
32482         PR middle-end/43097
32483         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
32484         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
32485
32486 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32487
32488         PR middle-end/43026
32489         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
32490
32491 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32492
32493         PR c++/43126
32494         * c-typeck.c (convert_arguments): Print declaration location.
32495         * c-common.c (validate_nargs): Rename as
32496         builtin_function_validate_nargs.
32497         (check_builtin_function_arguments): Update.
32498
32499 2010-02-22  Richard Guenther  <rguenther@suse.de>
32500
32501         PR lto/43045
32502         * tree-inline.c (declare_return_variable): Use the type of
32503         the call stmt lhs if available.
32504
32505 2010-02-22  Duncan Sands  <baldrick@free.fr>
32506
32507         * passes.c (register_pass): Always consider all pass lists when
32508         ref_pass_instance_number is zero.
32509
32510 2010-02-22  Richard Guenther  <rguenther@suse.de>
32511
32512         PR tree-optimization/42749
32513         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
32514         parameter.  Do arithmetic in the original type.
32515         (update_accumulator_with_ops): Likewise.
32516         (adjust_accumulator_values): Adjust.
32517
32518 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32519
32520         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
32521         (QI to BLKmode splitter): New splitter.
32522
32523 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
32524
32525         * config/i386/i386.c (initial_ix86_tune_features): Turn on
32526         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
32527
32528 2010-02-22  Richard Guenther  <rguenther@suse.de>
32529
32530         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
32531
32532 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
32533
32534         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
32535         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
32536         ($(T)crti.o, $(T)crtn.o): Remove rules.
32537
32538 2010-02-21  Tobias Burnus  <burnus@net-b.de>
32539
32540         PR fortran/35259
32541         * doc/invoke.texi (-fassociative-math): Document that this
32542         option is automatically enabled for Fortran.
32543
32544 2010-02-20  David S. Miller  <davem@davemloft.net>
32545
32546         * configure.ac: Test if linker and assembler properly support
32547         GOTDATA_OP relocations.
32548         * configure: Rebuild.
32549         * config.in: Likewise.
32550         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
32551         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
32552         (movsi_high_pic): Likewise.
32553         (movdi_lo_sum_pic): Likewise.
32554         (movdi_high_pic): Likewise.
32555         (movsi_pic_gotdata_op): New pattern.
32556         (movdi_pic_gotdata_op): Likewise.
32557         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
32558         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
32559
32560 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
32561
32562         PR target/43067
32563         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
32564         attribute to ssemul.
32565         (xop_mulv2div2di3_high): Ditto.
32566
32567 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32568
32569         PR c++/35669
32570         * c.opt (Wconversion-null): New option.
32571         * doc/invoke.texi (Wconversion-null): Document.
32572
32573 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32574
32575         * common.opt (Wlarger-than-): Add Undocumented.
32576
32577 2010-02-19  Mike Stump  <mikestump@comcast.net>
32578
32579         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
32580
32581 2010-02-19  Jason Merrill  <jason@redhat.com>
32582
32583         PR target/40332
32584         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
32585         * configure: Likewise.
32586
32587 2010-02-20  Alan Modra  <amodra@gmail.com>
32588
32589         PR middle-end/42344
32590         * cgraph.h (cgraph_make_decl_local): Declare.
32591         * cgraph.c (cgraph_make_decl_local): New function.
32592         (cgraph_make_node_local): Use it.
32593         * cgraphunit.c (cgraph_function_versioning): Likewise.
32594         * ipa.c (function_and_variable_visibility): Likewise.
32595
32596 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32597
32598         PR bootstrap/43121
32599         * except.c (sjlj_emit_function_enter): Don't call
32600         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
32601         directly.
32602         * rtl.h (add_reg_br_prob_note): Remove prototype.
32603
32604 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32605
32606         PR 41779
32607         * c-common.c (conversion_warning): Remove widening conversions
32608         before checking the conversion of integers to reals.
32609
32610 2010-02-19  Mike Stump  <mikestump@comcast.net>
32611
32612         PR middle-end/43125
32613         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
32614
32615         PR objc/43061
32616         * cgraphunit.c (process_function_and_variable_attributes): Check
32617         DECL_PRESERVE_P instead of looking up attribute "used".
32618         * ipa-pure-const.c (check_decl): Likewise.
32619         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
32620         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
32621         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
32622         instead of attribute "used".
32623         * config/sol2-c.c (solaris_pragma_init): Likewise.
32624         (solaris_pragma_fini): Likewise.
32625
32626 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32627
32628         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
32629         Use XCNEW instead of xcalloc.
32630         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
32631         XNEW instead of xmalloc.
32632         (get_fields): Use XNEWVEC instead of xmalloc.
32633
32634         PR debug/43084
32635         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
32636         populate vars array.
32637         (create_new_general_access): For debug stmts just reset value.
32638         (get_stmt_accesses): For accesses within debug stmts just record them
32639         using add_access_to_acc_sites instead of preventing the peeling or
32640         counting them as accesses.
32641
32642         PR middle-end/42233
32643         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
32644
32645 2010-02-19  Richard Guenther  <rguenther@suse.de>
32646
32647         PR tree-optimization/42916
32648         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
32649         instructions.
32650
32651 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
32652
32653         * configure.ac: Replace all uses of changequote in macro arguments
32654         with proper quoting.
32655
32656 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32657
32658         PR middle-end/42233
32659         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
32660
32661 2010-02-19  Richard Guenther  <rguenther@suse.de>
32662
32663         PR tree-optimization/42944
32664         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
32665         test for aliasing with errno.
32666
32667 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32668
32669         PR middle-end/42233
32670         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
32671         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
32672         * dojump.c: Include output.h.
32673         (inv): New inline function.
32674         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
32675         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
32676         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
32677         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
32678         argument, pass it down to other calls.
32679         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
32680         add REG_BR_PROB note to the conditional jump.
32681         * cfgexpand.c (add_reg_br_prob_note): Removed.
32682         (expand_gimple_cond): Don't call it, add the probability
32683         as last argument to jumpif_1/jumpifnot_1.
32684         * Makefile.in (dojump.o): Depend on output.h.
32685         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
32686         callers.
32687         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
32688         * stmt.c (do_jump_if_equal): Likewise.
32689         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
32690         * loop-unswitch.c (compare_and_jump_seq): Likewise.
32691         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
32692         Likewise.
32693         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
32694         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
32695         jumpifnot_1 callers.
32696         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
32697         callers.
32698         (store_expr): Adjust jumpifnot caller.
32699         (store_constructor): Adjust jumpif caller.
32700
32701         PR middle-end/42233
32702         * gimplify.c (gimple_boolify): For __builtin_expect call
32703         gimple_boolify also on its first argument.
32704
32705 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
32706
32707         * configure.ac (gnu-unique-object): Wrap regexps using [] in
32708         changequote block.
32709         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
32710         * configure: Regenerated.
32711
32712 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32713
32714         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
32715         lang_hooks.types_compatible_p instead of comptypes.
32716
32717 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32718
32719         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
32720         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
32721         if __prefer_thumb__ is defined.
32722
32723 2010-02-18  Martin Jambor  <mjambor@suse.cz>
32724
32725         PR tree-optimization/43066
32726         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
32727         array with zero-sized element type.
32728
32729 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
32730
32731         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
32732         rtx, allocate struct var_loc_node here and return it to the
32733         caller, and only if it is actually needed.
32734         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
32735         move it earlier and return immediately if it returns NULL.
32736
32737 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
32738
32739         * config/sparc/gas.h: New file.  Restore
32740         TARGET_ASM_NAMED_SECTION to its ELF default.
32741         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
32742         check !HAVE_GNU_AS.
32743         * config/sparc/sparc.c (sparc_elf_asm_named_section):
32744         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
32745         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
32746         after sparc/sysv4.h.
32747
32748 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32749
32750         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
32751
32752 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
32753
32754         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
32755         patterns from predicated pattern.
32756
32757 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
32758
32759         PR target/43103
32760         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
32761         for insn mnemonic suffix.
32762
32763 2010-02-17  Richard Guenther  <rguenther@suse.de>
32764
32765         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
32766         to loop PHI nodes.
32767
32768 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
32769
32770         PR debug/42918
32771         * caller-save.c (save_call_clobbered_regs): If BB ends with
32772         a DEBUG_INSN, move any notes in between last real insn and the last
32773         DEBUG_INSN after the last DEBUG_INSN.
32774
32775 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
32776
32777         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
32778         Fix return type.  Fix argument type.  Explain meaning of return value.
32779
32780 2010-02-16  Richard Guenther  <rguenther@suse.de>
32781
32782         PR tree-optimization/41043
32783         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
32784         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
32785         statements ...
32786         (vrp_visit_phi_node): ... but only for loop PHI nodes.
32787
32788 2010-02-16  Ira Rosen  <irar@il.ibm.com>
32789
32790         PR tree-optimization/43074
32791         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
32792         * tree-vect-loop.c (vect_analyze_loop_operations): Add
32793         vectorizable cycles in hybrid SLP check.
32794         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
32795
32796 2010-02-16  Richard Guenther  <rguenther@suse.de>
32797
32798         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
32799         (true_dependence): If memrefs_conflict_p computes must-alias
32800         trust it.  Move TBAA check after offset-based disambiguation.
32801         (canon_true_dependence): Likewise.
32802
32803 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
32804
32805         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
32806         * doc/invoke.texi: Document it.
32807         * var-tracking.c: Include toplev.h and params.h.
32808         (vt_find_locations): Return bool indicating success.  Compute
32809         hash sizes unconditionally.  Check new parameter, report.
32810         (variable_tracking_main_1): Check vt_find_locations results and
32811         retry.  Renamed from...
32812         (variable_tracking_main): ... this.  New wrapper to preserve
32813         flag_var_tracking_assignments.
32814         * Makefile.in (var-tracking.o): Adjust dependencies.
32815
32816 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
32817             Jakub Jelinek  <jakub@redhat.com>
32818
32819         PR target/42854
32820         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
32821         if weak_import attribute is present.
32822         * config/darwin.c (machopic_select_section): Likewise.
32823
32824 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
32825
32826         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
32827         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
32828         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
32829         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
32830
32831         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
32832         types.
32833
32834         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32835         Fix argument types.
32836
32837         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
32838         Rewrite text to refer to the names.
32839
32840 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
32841
32842         * config/i386/i386-builtin-types.def
32843         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
32844         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
32845         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
32846         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
32847         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
32848         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
32849         IX86_BUILTIN_VPERMIL2PS256.
32850         (MULTI_ARG_4_DF2_DI_I): Defined.
32851         (MULTI_ARG_4_DF2_DI_I1): Defined.
32852         (MULTI_ARG_4_SF2_SI_I): Defined.
32853         (MULTI_ARG_4_SF2_SI_I1): Defined.
32854         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
32855         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
32856         __builtin_ia32_vpermil2ps256.
32857         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32858         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32859         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
32860         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32861         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32862         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
32863         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
32864         CODE_FOR_xop_vpermil2v8sf3.
32865         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
32866         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
32867         * config/i386/xopintrin.h (_mm_permute2_pd): New.
32868         (_mm256_permute2_pd): New.
32869         (_mm_permute2_ps): New.
32870         (_mm256_permute2_ps): New.
32871
32872 2010-02-15  Nick Clifton  <nickc@redhat.com>
32873
32874         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
32875         boolean parameters.  Use emit_jump_insn when emitting a pop
32876         instruction containing a return insn.
32877         (push): Use 'true' rather than '1' as second parameter to F.
32878         (h8300_expand_prologue): Likewise.
32879         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
32880         (h8300_expand_epilogue): Likewise.
32881
32882 2010-02-15  Richard Guenther  <rguenther@suse.de>
32883
32884         PR middle-end/43068
32885         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
32886         if that is zero.
32887
32888 2010-02-15  Nick Clifton  <nickc@redhat.com>
32889
32890         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
32891         delta.
32892
32893 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
32894
32895         * intl.c (fake_ngettext): New function.
32896         * intl.h (fake_ngettext): Declare.
32897         (ngettext): Define macro.
32898         * collect2.c (notice_translated): New function.
32899         (main): Use notice_translated and ngettext.
32900         * collect2.h (notice_translated): Declare.
32901
32902 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32903
32904         * reorg.c (delete_computation): Comment fixes.
32905         * caller-save.c (setup_save_areas): Idem.
32906         * sel-sched-dump.c (dump_lv_set): Idem.
32907         * rtl.def: Idem.
32908
32909 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32910
32911         * config/s390/s390.c (s390_sched_init): New function.
32912         (TARGET_SCHED_INIT): Target hook defined.
32913
32914 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
32915             Jack Howarth  <howarth@bromo.med.uc.edu>
32916             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32917
32918         PR target/42982
32919         Partial revert of unintended change in fix for PR41605.
32920         * config/darwin.h: Fix typo.
32921         * config/darwin9.h: Same.
32922
32923 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32924
32925         * c-pch.c (pch_init): Clear v.
32926
32927 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32928
32929         PR middle-end/42930
32930         * graphite-scop-detection.c (graphite_can_represent_scev): Call
32931         graphite_can_represent_init for MULT_EXPR.
32932
32933 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32934
32935         PR middle-end/42914
32936         PR middle-end/42530
32937         * graphite-sese-to-poly.c (remove_phi): New.
32938         (translate_scalar_reduction_to_array): Call remove_phi.
32939
32940 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32941
32942         PR middle-end/42771
32943         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
32944         * graphite-clast-to-gimple.h (gloog): Update declaration.
32945         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
32946         * graphite-poly.h (struct poly_bb): Add missing comments.
32947         (struct scop): Add poly_scop_p field.
32948         (POLY_SCOP_P): New.
32949         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
32950         * graphite.c (graphite_transform_loops): Build the polyhedral
32951         representation for each scop before code generation.
32952         * sese.c (rename_variables_in_operand): Removed.
32953         (rename_variables_in_expr): Return the renamed expression.
32954         (rename_sese_parameters): New.
32955         * sese.h (rename_sese_parameters): Declared.
32956
32957 2010-02-11  Richard Guenther  <rguenther@suse.de>
32958
32959         PR tree-optimization/42998
32960         * tree-ssa-pre.c (create_expression_by_pieces): Treat
32961         POINTER_PLUS_EXPR properly.
32962
32963 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32964             Changpeng Fang  <changpeng.fang@amd.com>
32965
32966         PR middle-end/40886
32967         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32968         the cost of an IV candidate when the IV is used in a test against zero.
32969
32970         * gcc.dg/tree-ssa/ivopts-3.c: New.
32971
32972 2010-02-11  Richard Guenther  <rguenther@suse.de>
32973
32974         PR lto/41664
32975         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32976         pointer-vs-decl case by swapping refs.  Handle some cases
32977         of pointer-vs-decl disambiguations more conservatively.
32978         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32979         to false after expanding.
32980
32981 2010-02-11  Richard Guenther  <rguenther@suse.de>
32982
32983         PR driver/43021
32984         * gcc.c (process_command): Handle LTO file@offset case more
32985         appropriately.
32986
32987 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32988
32989         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32990         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
32991         of DEBUG_INSNs.
32992         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32993
32994         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32995         if MEM's mode size isn't DWARF2_ADDR_SIZE.
32996         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32997         Optimize eq/ne comparisons when both arguments are known to be
32998         zero-extended.
32999         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
33000         Don't mask operands unnecessarily if they are known to be already
33001         zero-extended.
33002
33003 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
33004
33005         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
33006         instead of loop.
33007
33008 2010-02-10  Richard Guenther  <rguenther@suse.de>
33009
33010         PR tree-optimization/43017
33011         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
33012         for wrapping signed arithmetic.
33013
33014 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
33015
33016         PR debug/43010
33017         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
33018         if no debug info should be emitted for it.
33019
33020 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
33021
33022         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
33023         note when flag_exceptions is set.
33024
33025 2010-02-10  Duncan Sands  <baldrick@free.fr>
33026
33027         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
33028
33029 2010-02-10  Richard Guenther  <rguenther@suse.de>
33030
33031         PR c/43007
33032         * tree.c (get_unwidened): Handle constants.
33033         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
33034
33035 2010-02-10  Martin Jambor  <mjambor@suse.cz>
33036
33037         PR lto/42985
33038         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
33039         check for variable argument counts independently.
33040
33041 2010-02-10  Christian Bruel  <christian.bruel@st.com>
33042
33043         PR target/42841
33044         * config/sh/sh.c (find_barrier): Increase length for non delayed
33045         conditional branches.
33046
33047 2010-02-10  Christian Bruel  <christian.bruel@st.com>
33048
33049         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
33050
33051 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
33052
33053         * builtins.c (set_builtin_user_assembler_name): Also handle
33054         ffs if int is smaller than word.
33055
33056 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
33057
33058         PR middle-end/42973
33059         * ira-conflicts.c (get_dup): Remove.
33060         (process_reg_shuffles): Add new parameter.  Use it as an
33061         additional guard for copy generation.
33062         (add_insn_allocno_copies): Rewrite.
33063
33064 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
33065
33066         * common.opt (fsched2-use-traces): Preserved for backward
33067         compatibility.
33068         * doc/invoke.texi: Remove the documentation about option
33069         -fsched2-use-traces.
33070         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
33071         flag_sched2_use_traces.
33072         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
33073         the backward compatibility flag section.
33074
33075 2010-02-09  Richard Guenther  <rguenther@suse.de>
33076
33077         PR tree-optimization/43008
33078         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
33079         make HEAP variables initialized from global memory if they
33080         are not known builtin functions.
33081         (find_func_aliases): Adjust.
33082
33083 2010-02-09  Richard Guenther  <rguenther@suse.de>
33084
33085         PR tree-optimization/43000
33086         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
33087         arithmetic manually.
33088
33089 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
33090
33091         PR tree-optimization/42931
33092         * tree-loop-linear.c (try_interchange_loops): Don't call
33093         double_int_mul if estimated_loop_iterations failed.
33094
33095 2010-02-08  Martin Jambor  <mjambor@suse.cz>
33096
33097         PR middle-end/42898
33098         * tree-sra.c (build_accesses_from_assign): Do not mark in
33099         should_scalarize_away_bitmap if stmt has volatile ops.
33100         (sra_modify_assign): Do not process assigns piecemeal if if stmt
33101         has volatile ops.
33102
33103 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
33104
33105         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
33106
33107 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
33108
33109         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
33110         before the pattern.
33111
33112 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
33113
33114         PR middle-end/42946
33115         * df-core.c (df_finish_pass): Change type of saved_flags to int.
33116
33117 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
33118
33119         PR middle-end/42988
33120         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
33121         to unknown_dependence.
33122         (graphite_legal_transform_dr): Handle the unknown_dependence.
33123         (graphite_carried_dependence_level_k): Same.
33124
33125 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
33126
33127         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
33128
33129 2010-02-07  Richard Guenther  <rguenther@suse.de>
33130
33131         PR middle-end/42991
33132         * expr.c (get_inner_reference): Always initialize *pbitsize.
33133
33134 2010-02-07  Richard Guenther  <rguenther@suse.de>
33135
33136         PR middle-end/42956
33137         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
33138         new ARRAY_REFs on variable size element or minimal index arrays.
33139         Complete.
33140         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
33141         gimple_fold_indirect_ref.
33142
33143 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
33144
33145         PR target/42957
33146         * arm.c (arm_override_options): Just return if the user has specified
33147         an invalid fpu name.
33148
33149 2010-02-03  Jason Merrill  <jason@redhat.com>
33150
33151         PR c++/42870
33152         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
33153         i386_pe_maybe_record_exported_symbol.
33154
33155 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
33156
33157         PR target/42924
33158         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
33159         (pa_delegitimize_address): New function.
33160
33161 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
33162
33163         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
33164         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
33165
33166 2010-02-05  Richard Guenther  <rguenther@suse.de>
33167
33168         PR lto/42762
33169         * lto-streamer-in.c (get_resolution): Deal with references
33170         to undefined functions.
33171
33172 2010-02-05  Richard Guenther  <rguenther@suse.de>
33173
33174         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
33175         (fold_const_aggregate_ref): Likewise.
33176         (ccp_fold_stmt): Substitute loads.
33177         (maybe_fold_reference): Verify types before substituting.
33178         Unshare properly.
33179         (fold_gimple_assign): Unshare properly.
33180         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
33181
33182 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
33183
33184         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
33185         for rs6000_gen_cell_microcode.
33186
33187 2010-02-04  Richard Guenther  <rguenther@suse.de>
33188
33189         PR rtl-optimization/42952
33190         * dse.c (const_or_frame_p): Remove MEM handling.
33191
33192 2010-02-04  Nick Clifton  <nickc@redhat.com>
33193
33194         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
33195         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
33196         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
33197         (mn10300_asm_output_mi_thunk): New function.
33198         (mn10300_can_output_mu_thunk): New function.
33199         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
33200         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
33201         (FUNCTION_ARG): Delete incorrect comment.
33202
33203 2010-02-03  Jason Merrill  <jason@redhat.com>
33204
33205         PR c++/40138
33206         * fold-const.c (operand_equal_p): Handle erroneous types.
33207
33208 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
33209
33210         * config/h8300/h8300.md (can_delay): Fix attibute condition.
33211
33212 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
33213
33214         PR rtl-optimization/42941
33215         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
33216         of xmalloc.
33217
33218 2010-02-03  Jason Merrill  <jason@redhat.com>
33219
33220         PR c++/35652
33221         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
33222
33223 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
33224
33225         PR debug/42896
33226         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
33227         (cselib_reset_table): Renamed from...
33228         (cselib_reset_table_with_next_value): ... this.
33229         (cselib_get_next_uid): Renamed from...
33230         (cselib_get_next_unknown_value): ... this.
33231         * cselib.c (next_uid): Renamed from...
33232         (next_unknown_value): ... this.
33233         (cselib_clear_table): Adjust.
33234         (cselib_reset_table): Adjust.  Renamed from...
33235         (cselib_reset_table_with_next_value): ... this.
33236         (cselib_get_next_uid): Adjust.  Renamed from...
33237         (cselib_get_next_unknown_value): ... this.
33238         (get_value_hash): Use hash.
33239         (cselib_hash_rtx): Likewise.
33240         (new_cselib_val): Adjust.  Set and dump uid.
33241         (cselib_lookup_mem): Pass next_uid as hash.
33242         (cselib_subst_to_values): Likewise.
33243         (cselib_log_lookup): Dump uid.
33244         (cselib_lookup): Pass next_uid as hash.  Adjust.
33245         (cselib_process_insn): Adjust.
33246         (cselib_init): Initialize next_uid.
33247         (cselib_finish): Adjust.
33248         (dump_cselib_table): Likewise.
33249         * dse.c (canon_address): Dump value uid.
33250         * print-rtl.c (print_rtx): Print value uid.
33251         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
33252         (dvuid): New type.
33253         (dv_uid): New function, sort of renamed from...
33254         (dv_htab_hash): ... this, reimplemented in terms of it and...
33255         (dv_uid2hash): ... this.  New.
33256         (variable_htab_eq): Drop excess assertions.
33257         (tie_break_pointers): Removed.
33258         (canon_value_cmp): Compare uids.
33259         (variable_post_merge_New_vals): Print uids.
33260         (vt_add_function_parameters): Adjust.
33261         (vt_initialize): Reset table.  Adjust.
33262
33263 2010-02-03  Richard Guenther  <rguenther@suse.de>
33264
33265         PR tree-optimization/42944
33266         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
33267         (call_may_clobber_ref_p_1): Likewise.  Properly handle
33268         malloc and calloc clobbering errno.
33269
33270 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
33271
33272         * doc/invoke.texi: Fix name of sched1 dump.
33273
33274         * opts.c (decode_options): Set flag_tree_switch_conversion
33275         only conditionally on optimize >= 2.
33276
33277         * gcse.c: Assorted comment fixes in pass description.
33278
33279 2010-02-03  Anthony Green  <green@moxielogic.com>
33280
33281         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
33282         nop padding in order to maintain alignment of storage location of
33283         target function address.
33284         (moxie_trampoline_init): Store target function address at newly
33285         aligned location.
33286         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
33287         to 32.
33288         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
33289
33290 2010-02-03  Richard Guenther  <rguenther@suse.de>
33291
33292         PR middle-end/42927
33293         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
33294
33295 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33296
33297         * config.gcc: Reenable check for obsolete targets.
33298         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
33299         mips-sgi-irix6.[0-4]*.
33300
33301 2010-02-02  Nick Clifton  <nickc@redhat.com>
33302
33303         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
33304         constant size of 4 as being the same as 0.
33305         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
33306         can take values in the range 0..4.
33307
33308 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
33309
33310         PR java/41991
33311         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
33312         as _darwin10_Unwind_FindEnclosingFunction().
33313         * libgcc-libsystem.ver: New.
33314
33315 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
33316
33317         PR target/41399
33318         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
33319         implicitly set registers.
33320
33321 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
33322
33323         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
33324         (arm_override_options): Allow automatic selection of the thread
33325         pointer register if thumb2.
33326         (legitimize_pic_address): Improve code sequences for Thumb2.
33327         (arm_call_tls_get_addr): Likewise.
33328         (legitimize_tls_address): Likewise.
33329         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
33330         (pic_load_addr_32bit): ... this.  New named pattern.
33331         * thumb2.md (pic_load_addr_thumb2): Delete.
33332         (pic_load_dot_plus_four): Delete.
33333         (tls_load_dot_plus_four): New named pattern.
33334
33335 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33336
33337         PR libgomp/29986
33338         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
33339         Document fix for TLS bug.
33340
33341 2010-01-31  Richard Guenther  <rguenther@suse.de>
33342
33343         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
33344         conservatively correct.
33345
33346 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33347
33348         PR target/42850
33349         Revert:
33350         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33351
33352         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33353
33354 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
33355
33356         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
33357
33358 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
33359
33360         * config.gcc: Adjust order of makefile fragments for mingw targets.
33361
33362 2010-01-31  Richard Guenther  <rguenther@suse.de>
33363
33364         PR middle-end/42898
33365         * gimplify.c (gimplify_init_constructor): For volatile LHS
33366         initialize a temporary.
33367
33368 2010-01-31  Matthias Klose  <doko@ubuntu.com>
33369
33370         * configure.ac: Fix __stack_chk_fail check for cross builds configured
33371         --with-headers
33372         * configure: Regenerate.
33373
33374 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
33375
33376         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
33377         the same alias set and their sizes different constantness.
33378         (aliasing_component_refs_p): Revert 2009-10-24 change.
33379
33380 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33381
33382         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
33383         unused.
33384
33385 2010-01-29  Richard Guenther  <rguenther@suse.de>
33386
33387         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
33388         Assert we successfully updated the call.
33389
33390 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
33391
33392         PR rtl-optimization/42889
33393         * df.h (df_set_bb_dirty_nonlr): New prototype.
33394         * df-core.c (df_set_bb_dirty_nonlr): New function.
33395         * df-scan.c (df_insn_rescan): Call it instead of
33396         df_set_bb_dirty for DEBUG_INSNs.
33397
33398 2010-01-29  Richard Guenther  <rguenther@suse.de>
33399
33400         PR middle-end/37448
33401         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
33402         quadratic behavior in most cases.
33403
33404 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
33405
33406         PR target/42891
33407         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
33408         in the call to gen_x86_movsicc_0_m1.
33409
33410 2010-01-28  Richard Guenther  <rguenther@suse.de>
33411
33412         PR tree-optimization/42871
33413         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
33414
33415 2010-01-28  Richard Guenther  <rguenther@suse.de>
33416
33417         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
33418         into call arguments.
33419
33420 2010-01-28  Richard Guenther  <rguenther@suse.de>
33421
33422         PR middle-end/42883
33423         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
33424         the forwarder if the destination is an EH landing pad.
33425
33426 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
33427
33428         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
33429         block list passed to gimple_duplicate_sese_tail.
33430         (parallelize_loops): Avoid parallelization when the function
33431         has_nonlocal_label.
33432         Avoid parallelization when the preheader is IRREDUCIBLE.
33433         Try to optimize when estimated_loop_iterations_int is unresolved.
33434         Add the loop's location to the dump file.
33435         * tree-cfg.c (add_phi_args_after_redirect): Remove.
33436         (gimple_duplicate_sese_tail): Remove the check for the latch.
33437         Redirect nexits to the exit block.
33438         Remove handling of the incoming edges to the latch.
33439         Redirect the backedge from the copied latch to the exit bb.
33440
33441 2010-01-28  Michael Matz  <matz@suse.de>
33442
33443         PR target/42881
33444         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
33445         Wrap force_reg into a sequence, emit it before user.
33446
33447 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
33448
33449         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
33450         (arm_rev): New.
33451         (arm_legacy_rev): Likewise.
33452         (thumb_legacy_rev): Likewise.
33453
33454 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
33455
33456         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
33457         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
33458         on MEM's address failed, try avoid_constant_pool_reference and
33459         recurse if it returned something different.
33460         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
33461         address, try avoid_constant_pool_reference and recurse if it
33462         returned something different.
33463         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
33464         address and avoid_constant_pool_reference returned something
33465         different, don't set have_address.
33466
33467 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
33468
33469         PR debug/42861
33470         * var-tracking.c (val_store): Add modified argument, obey it.
33471         Adjust callers.
33472         (count_uses): Move down logging of main.
33473         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
33474         don't need resolution.
33475         (emit_notes_in_bb): Likewise.
33476
33477 2010-01-27  Richard Guenther  <rguenther@suse.de>
33478
33479         PR middle-end/42878
33480         * tree-inline.c (remap_decl): Delay remapping of SSA name
33481         default definitions until we need them.
33482
33483 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
33484
33485         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
33486         (rs6000_delegitimize_address): New function.
33487
33488         * config/s390/s390.c (s390_delegitimize_address): Call
33489         delegitimize_mem_from_attrs.
33490
33491         PR middle-end/42874
33492         * tree-inline.c (cannot_copy_type_1): Removed.
33493         (copy_forbidden): Don't forbid copying of functions containing
33494         records/unions with variable length fields.
33495
33496 2010-01-27  Christian Bruel  <christian.bruel@st.com>
33497
33498         Revert:
33499         PR target/42841
33500         * config/sh/sh.c (find_barrier): Increase length for non delayed
33501         conditional branches.
33502
33503 2010-01-27  Matthias Klose  <doko@ubuntu.com>
33504
33505         * configure.ac (gnu-unique-object): Fix ldd version check.
33506         * configure: Regenerate.
33507
33508 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33509
33510         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
33511         HAVE_GNU_AS value.
33512         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
33513         Test for HAVE_GNU_AS value.
33514
33515 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33516
33517         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
33518         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
33519         INT64_TYPE): Define.
33520         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
33521         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
33522         INT_LEAST64_TYPE): Define.
33523         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
33524         UINT_LEAST64_TYPE): Define.
33525         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
33526         INT_FAST64_TYPE): Define.
33527         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
33528         UINT_FAST64_TYPE): Define.
33529         (INTMAX_TYPE, UINTMAX_TYPE): Define.
33530         (INTPTR_TYPE, UINTPTR_TYPE): Define.
33531         (SIG_ATOMIC_TYPE): Define.
33532
33533 2010-01-26  Richard Guenther  <rguenther@suse.de>
33534
33535         * df-scan.c (df_scan_set_bb_info): Remove assert.
33536         (df_insn_rescan_debug_internal): Merge asserts.
33537         (df_install_ref): Likewise.
33538         (df_mark_reg): Use bitmap_set_range.
33539         (df_hard_reg_used_p): Remove assert.
33540         (df_hard_reg_used_count): Likewise.
33541
33542 2010-01-26  Richard Guenther  <rguenther@suse.de>
33543
33544         PR rtl-optimization/42685
33545         * web.c (web_main): Ignore DEBUG_INSNs.
33546
33547 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
33548
33549         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
33550
33551         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
33552         Fix types of fndecl and arglist parameters.
33553
33554 2010-01-26  Richard Guenther  <rguenther@suse.de>
33555
33556         PR middle-end/42806
33557         * tree-eh.c (unsplit_eh): Skip debug insns.
33558
33559 2010-01-26  Richard Guenther  <rguenther@suse.de>
33560
33561         PR tree-optimization/42250
33562         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
33563
33564 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
33565
33566         PR fortran/42866
33567         * omp-low.c (expand_omp_sections): Only use single_pred if
33568         l2_bb is single_pred_p.
33569
33570 2010-01-25  Christian Bruel  <christian.bruel@st.com>
33571
33572         PR target/42841
33573         * config/sh/sh.c (find_barrier): Increase length for non delayed
33574         conditional branches.
33575         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
33576
33577 2010-01-24  David S. Miller  <davem@davemloft.net>
33578
33579         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
33580         define if not using GAS.
33581         * config/sparc/sparc.c (sparc_elf_asm_named_section):
33582         Likewise.  Delete SECTION_MERGE code, which is only applicable
33583         when using GAS.
33584
33585 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
33586
33587         PR c++/42748
33588         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
33589         mangling of va_list in system headers.
33590
33591 2010-01-23  Toon Moene  <toon@moene.org>
33592
33593         * tree-predcom.c (combine_chains): Return NULL, not false.
33594
33595 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
33596
33597         * tree-loop-distribution.c (distribute_loop): Fix declaration and
33598         initialization of variable res to agree with return type.
33599
33600 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
33601
33602         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
33603         * tree-sra.c: Add include of expr.h.
33604
33605 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
33606
33607         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
33608         insert the debug stmt on the single non-EH edge from the stmt.
33609
33610 2010-01-22  Richard Henderson  <rth@redhat.com>
33611
33612         PR tree-opt/42833
33613         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
33614         the RHS until after generate_subtree_copies has insertted its
33615         code before the current statement.
33616
33617 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
33618
33619         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
33620
33621         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
33622
33623 2010-01-21  Martin Jambor  <mjambor@suse.cz>
33624
33625         PR tree-optimization/42585
33626         * tree-sra.c (struct access): New field grp_total_scalarization.
33627         (dump_access): Dump the new field.
33628         (should_scalarize_away_bitmap): New variable.
33629         (cannot_scalarize_away_bitmap): Likewise.
33630         (sra_initialize): Allocate new bitmaps.
33631         (sra_deinitialize): Free new bitmaps.
33632         (create_access_1): New function.
33633         (create_access): Parts moved to create_access_1.
33634         (type_consists_of_records_p): New function.
33635         (completely_scalarize_record): Likewise.
33636         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
33637         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
33638         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
33639         access.
33640         (analyze_all_variable_accesses): Completely scalarize small eligible
33641         records.
33642
33643 2010-01-21  Martin Jambor  <mjambor@suse.cz>
33644
33645         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
33646
33647 2010-01-21  Andrew Haley  <aph@redhat.com>
33648
33649         * gcc.c (process_command): Move lang_specific_driver before
33650         setting cc_libexec_prefix.
33651
33652 2010-01-21  Richard Guenther  <rguenther@suse.de>
33653
33654         PR middle-end/19988
33655         * fold-const.c (negate_expr_p): Pretend only negative
33656         real constants are easily negatable.
33657
33658 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
33659             Jason Merrill  <jason@redhat.com>
33660
33661         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
33662         (TYPE_TRANSPARENT_AGGR): this, for union and record.
33663         * calls.c (initialize argument_information): Handle it.
33664         * c-common.c (handle_transparent_union_attribute): Use new name.
33665         * c-decl.c (finish_struct): Ditto.
33666         * c-typeck.c (type_lists_compatible_p): Ditto.
33667         (convert_for_assignment): Use new name and also handle record.
33668         * function.c (aggregate_value_p): Handle it.
33669         (pass_by_reference): Ditto.
33670         (assign_parm_data_types): Ditto.
33671         * print-tree.c (print_node): Ditto.
33672         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
33673         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
33674         * tree.c (first_field): New fn.
33675
33676 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
33677
33678         PR target/42818
33679         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
33680         even when linking statically, for now.
33681
33682 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
33683
33684         PR debug/42715
33685         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
33686         without a cselib val.
33687         (count_uses): Accept MO_VAL_SET with no val on stores.
33688         (add_stores): Likewise.
33689
33690 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33691
33692         * var-tracking.c (check_value_val): Add a compile time assertion.
33693         (dv_is_decl_p): Simplify.
33694         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
33695         gcc_assert if ENABLE_CHECKING.
33696
33697 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
33698
33699         PR debug/42782
33700         * var-tracking.c: Include tree-flow.h.
33701         (mem_dies_at_call): New.
33702         (dataflow_set_preserve_mem_locs): Use it.
33703         (dataflow_set_remove_mem_locs): Likewise.
33704         (dump_var): Renamed from dump_variable.  Adjust all callers.
33705         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
33706         * Makefile.in (var-tracking.o): Adjust deps.
33707
33708 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
33709
33710         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
33711
33712 2010-01-20  Richard Guenther  <rguenther@suse.de>
33713
33714         PR tree-optimization/42717
33715         * tree-ssa-dce.c (get_live_post_dom): Remove.
33716         (forward_edge_to_pdom): Take an arbitrary edge to copy
33717         degenerate PHI args from.
33718         (remove_dead_stmt): Use the first post-dominator even if it
33719         does not contain live statements as redirection destination.
33720
33721 2010-01-20  Richard Guenther  <rguenther@suse.de>
33722
33723         * tree-inline.c (estimate_num_insns): Handle EH builtins.
33724
33725 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33726
33727         * sel-sched.c (create_speculation_check): Remove set but not used
33728         variable twin.
33729         (try_transformation_cache): Remove set but not used variable ds.
33730         (calculate_privileged_insns): Remove set but not used variables
33731         cur_insn and min_spec_insn.
33732         (find_best_expr): Remove set but not used variable avail_n.
33733         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
33734         variable e.
33735         * cgraphunit.c (assemble_thunk): Remove set but not used variable
33736         false_label.
33737         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
33738         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
33739         new_scop_exit_edge.
33740
33741 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
33742
33743         PR bootstrap/42786
33744         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
33745         cpu types.  Add support for *-sse3 cpu types.
33746         (x86_64-*-*): Ditto.
33747
33748 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33749
33750         PR middle-end/42803
33751         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
33752         argument, call initializer_constant_valid_p_1 instead of
33753         initializer_constant_valid_p, pass CACHE to it, return NULL
33754         immediately if first call returns NULL.
33755         (initializer_constant_valid_p_1): New function.
33756         (initializer_constant_valid_p): Use it.
33757
33758 2010-01-20  Thomas Quinot  <quinot@adacore.com>
33759
33760         * tree.def (PLACEHOLDER_EXPR): Fix comment.
33761
33762 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33763
33764         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
33765         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
33766         (loc_list_from_tree): Don't handle unsigned division.  Handle
33767         signed modulo using DW_OP_{over,over,div,mul,minus}.
33768         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
33769         modulo instead of signed.
33770
33771 2010-01-20  DJ Delorie  <dj@redhat.com>
33772
33773         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
33774         (Fpa): Pass it
33775         (h8300_emit_stack_adjustment): Propogate it.
33776         (push): Pass it.
33777         (h8300_expand_prologue): Likewise.
33778         (h8300_expand_epilogue): Likewise.
33779
33780 2010-01-19  Michael Matz  <matz@suse.de>
33781
33782         PR tree-optimization/41783
33783         * tree-data-ref.c (toplevel): Include flags.h.
33784         (dump_data_dependence_relation):  Also dump the inputs if the
33785         result will be unknown.
33786         (split_constant_offset_1): Look through some conversions.
33787         * tree-predcom.c (determine_roots_comp): Restart a new chain if
33788         the offset from last element is too large.
33789         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
33790         (reassociate_to_the_same_stmt): Handle vector registers.
33791         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
33792         (e.g. conversions).
33793         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
33794         wide_prolog_niters argument, emit widening instructions.
33795         (vect_do_peeling_for_alignment): Adjust caller, use widened
33796         variant of the iteration cound.
33797         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
33798
33799 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33800
33801         PR target/38697
33802         * config/arm/neon-testgen.m (emit_automatics): New parameter
33803         features. Adjust for Fixed_return_reg feature.
33804         (test_intrinsic): Call emit_automatics with new feature.
33805         * config/arm/neon.ml: Update copyright years.
33806         (features): New Fixed_return_reg feature.
33807         (ops): Update feature for Vget_low.
33808
33809 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
33810
33811         PR tree-optimization/42719
33812         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
33813         stmt uses.
33814
33815         PR debug/42728
33816         * fwprop.c (all_uses_available_at): Return false if def_set dest
33817         is a REG that is used in def_insn.
33818
33819 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
33820
33821         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
33822
33823         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
33824         Add argument names.
33825
33826         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
33827
33828         * target.h (struct gcc_target) <secondary_reload>: Change type
33829         of last argument to secondary_reload_info *.
33830
33831 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
33832
33833         PR target/42774
33834         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
33835         memory references with unaligned offsets.  Remove CQImode handling.
33836         (unaligned_memory_operand): Return 1 for memory references with
33837         unaligned offsets.  Remove CQImode handling.
33838
33839 2010-01-18  Richard Guenther  <rguenther@suse.de>
33840
33841         PR middle-end/39954
33842         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
33843         builtin calls.
33844
33845 2010-01-18  Richard Guenther  <rguenther@suse.de>
33846
33847         PR tree-optimization/42781
33848         * tree-ssa-structalias.c (find_what_var_points_to): Skip
33849         restrict processing only if the original variable was artificial.
33850
33851 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
33852
33853         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
33854         find number of popped argument bytes.
33855
33856         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
33857         Fix the text that describes the return value for invalid insns.
33858
33859         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
33860
33861         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
33862         Clarify what 'cost of the -dependence' is.  Fix quoting.
33863
33864         * toplev.c (default_get_pch_validity): Rename argument to "sz".
33865         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
33866
33867 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
33868
33869         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33870         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
33871
33872 2010-01-17  Richard Guenther  <rguenther@suse.de>
33873
33874         PR middle-end/42248
33875         * function.c (split_complex_args): Take a VEC to modify.
33876         (assign_parms_augmented_arg_list): Build a VEC instead of
33877         a chain of PARM_DECLs.
33878         (assign_parms_unsplit_complex): Take a VEC of arguments.
33879         Do not fixup unmodified parms.
33880         (assign_parms): Deal with the VEC.
33881         (gimplify_parameters): Likewise.
33882
33883 2010-01-17  Richard Guenther  <rguenther@suse.de>
33884
33885         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
33886         node existence check.
33887         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
33888         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
33889         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
33890         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
33891         (gimple_execute_on_growing_pred): Likewise.
33892
33893 2010-01-17  Richard Guenther  <rguenther@suse.de>
33894
33895         PR tree-optimization/42773
33896         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
33897         (compute_antic_aux): Likewise.
33898         (compute_partial_antic_aux): Likewise.
33899
33900 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
33901
33902         PR debug/42767
33903         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
33904         and US_TRUNCATE.
33905
33906 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
33907
33908         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
33909         appearance.
33910
33911         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
33912         Fix markup for strict argument.
33913
33914         (TARGET_SCHED_REORDER2): Fix argument types.
33915
33916         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
33917         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
33918
33919         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
33920         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
33921
33922         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
33923         Add argument name.
33924
33925         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
33926         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
33927         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
33928         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
33929         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
33930
33931         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
33932
33933         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
33934
33935         (TARGET_ASM_RELOC_RW_MASK): Add return type.
33936         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
33937
33938         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
33939
33940         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
33941         Use prototype.
33942
33943         (TARGET_ASM_NAMED_SECTION): Fix argument list.
33944
33945         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
33946         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
33947
33948         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
33949
33950         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
33951
33952         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
33953         referring to it.  Fix language.
33954
33955         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
33956
33957         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33958
33959         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33960
33961         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33962
33963         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33964         '@var{stream}.  Remove stray 'and'.
33965
33966         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33967
33968         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33969
33970         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33971
33972         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33973         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33974
33975         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33976         Fix description of return value.
33977         Rename argument "sz" to "len."
33978
33979         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33980         Clarify meaning of 'true' return value.
33981
33982         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33983
33984         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33985         rep_mode versus mode_rep.
33986
33987         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33988
33989         (TARGET_BUILTIN_DECL): Fix name.
33990
33991         (TARGET_COMMUTATIVE_P): Fix type of first argument.
33992
33993         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33994
33995         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33996
33997         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33998
33999         (TARGET_RELAXED_ORDERING): Use @deftypevr.
34000
34001         (TARGET_GET_DRAP_RTX): Note that this is a hook.
34002         Clarify language.
34003
34004         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
34005         Rename argument tm_fn to md_fn.
34006
34007         (TARGET_OPTION_PRINT): Fix argument list.
34008
34009 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
34010
34011         PR target/42664
34012         * config/i386/i386.c (ix86_fixup_binary_operands):
34013         Revert FMA4 fixup of operands.
34014
34015 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34016
34017         PR other/42525
34018         * Makefile.in (write_entries_to_file, install-plugin):
34019         Use \012 instead of \n with tr.
34020
34021 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
34022
34023         * configure.ac (HAVE_AS_REF): New C macro.
34024         * configure: Regenerate.
34025         * config.in: Likewise.
34026         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
34027         if HAVE_AS_REF.
34028         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
34029         if HAVE_AS_REF.
34030
34031 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
34032
34033         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
34034
34035         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
34036
34037         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
34038
34039         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
34040
34041         (TARGET_IN_SMALL_DATA_P): Fix argument type.
34042
34043         (TARGET_BINDS_LOCAL_P): Fix argument type.
34044
34045         (TARGET_ASM_FILE_END): Use prototype.
34046
34047         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
34048
34049         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
34050
34051         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
34052
34053         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
34054
34055         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
34056         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
34057
34058         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
34059         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
34060
34061         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
34062         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
34063         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
34064         (TARGET_ADDR_SPACE_CONVERT): Likewise.
34065
34066         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
34067
34068         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
34069
34070         (TARGET_INIT_BUILTINS): Use prototype.
34071
34072         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
34073         Put 'const char *' in braces.  Fix parameter types.
34074         (TARGET_INVALID_CONVERSION): Fix parameter types.
34075         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
34076         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
34077
34078         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
34079         Fix argument type.
34080
34081         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
34082
34083         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
34084
34085 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
34086
34087         * doc/tm.texi (TARGET_HELP): Fix return type.
34088
34089         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
34090         in braces.  Fix argument types.
34091
34092         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
34093
34094         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
34095
34096         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
34097
34098         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
34099         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
34100
34101         (TARGET_MANGLE_TYPE): Fix argument types.
34102
34103         (TARGET_IRA_COVER_CLASSES): Use prototype.
34104
34105         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
34106
34107         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
34108
34109         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
34110
34111         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
34112
34113         (TARGET_CALLEE_COPIES): Fix argument types.
34114
34115         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
34116
34117         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
34118
34119         (TARGET_FUNCTION_VALUE): Fix argument types.
34120
34121         (TARGET_RETURN_IN_MSB): Fix argument type.
34122
34123         (TARGET_RETURN_IN_MEMORY): Fix argument types.
34124
34125         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
34126
34127         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
34128
34129         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
34130         agree with return type.
34131
34132         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
34133
34134 2010-01-15  Jing Yu  <jingyu@google.com>
34135
34136         PR rtl-optimization/42691
34137         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
34138         a pseudo to a constant and are merged, and adjust comments.
34139
34140 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
34141
34142         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
34143
34144 2010-01-15  Richard Guenther  <rguenther@suse.de>
34145
34146         PR middle-end/42739
34147         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
34148         labels of computed or non-local gotos to the destination.
34149         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
34150         landing pad label is the first label.
34151
34152 2010-01-15  Richard Guenther  <rguenther@suse.de>
34153
34154         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
34155
34156 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
34157
34158         PR target/42747
34159         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
34160         to allow generation of the xssqrtdp instruction on power7.
34161         (sqrtdf2_fpr): Ditto.
34162
34163 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34164
34165         PR middle-end/42674
34166         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
34167         functions with noreturn attribute.
34168
34169         PR c++/42608
34170         * varasm.c (declare_weak): Add weak attribute to decl if it
34171         doesn't have one already.
34172         (assemble_external): Only add decls to weak_decls if they also
34173         have weak attribute.
34174
34175 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
34176
34177         * var-tracking.c (var_reg_delete): Don't delete the association
34178         between REGs and values or one-part variables if the register
34179         isn't clobbered.
34180
34181 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34182
34183         PR debug/42657
34184         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
34185         because its first operand is a non-localized variable.
34186
34187 2010-01-14  Martin Jambor  <mjambor@suse.cz>
34188
34189         PR tree-optimization/42706
34190         * tree-sra.c (encountered_recursive_call): New variable.
34191         (encountered_unchangable_recursive_call): Likewise.
34192         (sra_initialize): Initialize both new variables.
34193         (callsite_has_enough_arguments_p): New function.
34194         (scan_function): Call decl and flags check only for IPA-SRA, check
34195         whether there is a recursive call and whether it has enough arguments.
34196         (all_callers_have_enough_arguments_p): New function.
34197         (convert_callers): Look for recursive calls only when
34198         encountered_recursive_call is set.
34199         (ipa_early_sra): Bail out either if
34200         !all_callers_have_enough_arguments_p or
34201         encountered_unchangable_recursive_call.
34202
34203 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34204
34205         * sel-sched.c: Add 2010 to copyright years.
34206         * sel-sched-ir.c: Likewise.
34207         * sel-sched-ir.h: Likewise.
34208
34209 2010-01-14  Martin Jambor  <mjambor@suse.cz>
34210
34211         PR tree-optimization/42714
34212         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
34213         constructors specially.
34214
34215 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34216
34217         * config/i386/drivers-i386.c (detect_caches_intel):
34218         Add l2sizekb parameter and fill in.
34219         (host_detect_local_cpu): Add l2sizekb, fill in.
34220         Add Atom small cache heuristic.
34221
34222 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34223
34224         * config/i386/drivers-i386.c (detect_caches_cpuid4):
34225         Add level3 parameter and fill in.
34226         (detect_caches_intel): Handle level3 cache.
34227
34228 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34229
34230         * config/i386/drivers-i386.c (host_detect_local_cpu):
34231         Fix core duo detection.
34232
34233 2010-01-14  Andi Kleen  <ak@linux.intel.com>
34234
34235         * config/i386/drivers-i386.c (host_detect_local_cpu):
34236         Fix Atom detection.
34237
34238 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34239
34240         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
34241         (rs6000_variable_issue_1): this.  Use...
34242         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
34243
34244 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34245
34246         * sel-sched-ir.c (sel_restore_other_notes): Rename to
34247         sel_restore_notes.  Update all callers.  Call reemit_notes
34248         for all insns.
34249
34250 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34251
34252         PR rtl-optimization/42246
34253         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
34254         loops.
34255
34256 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34257
34258         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
34259         all successors is the same as number of successors in current region.
34260
34261 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34262
34263         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
34264         to rename is not separable.  Otherwise check that its LHS is not NULL.
34265
34266 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34267
34268         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
34269
34270 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34271
34272         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
34273         available registers when failed to discover LHS register class.
34274         Fix indentation.  Update comment.
34275
34276 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34277             Alexander Monakov  <amonakov@ispras.ru>
34278
34279         PR rtl-optimization/42389
34280         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
34281         to can_issue_more.
34282         (advance_state_on_fence): Likewise.
34283         (sel_target_adjust_priority): Print debug output only when
34284         sched_verbose >= 4, not 2.
34285         (get_expr_cost): Do not issue all unique insns on the next cycle.
34286         (fill_insns): Initialize can_issue_more from the value saved
34287         with the fence.
34288         * sel-sched-ir.c (flist_add): New parameter issue_more.
34289         Init FENCE_ISSUE_MORE with it.
34290         (merge_fences): Likewise.
34291         (init_fences): Update call to flist_add.
34292         (add_to_fences, add_clean_fence_to_fences)
34293         (add_dirty_fence_to_fences): Likewise.
34294         (move_fence_to_fences): Update call to merge_fences.
34295         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
34296         sched groups.
34297         * sel-sched-ir.h (struct _fence): New field issue_more.
34298         (FENCE_ISSUE_MORE): New accessor macro.
34299
34300 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34301
34302         PR rtl-optimization/42388
34303         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
34304         that have no predecessors nor successors.  Do not call move_bb_info
34305         for empty blocks outside of current region.
34306
34307 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34308
34309         PR rtl-optimization/42294
34310         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
34311         * sel-sched.c (move_exprs_to_boundary): Transitively add all
34312         originators' originators.
34313
34314 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
34315
34316         PR rtl-optimization/39453
34317         PR rtl-optimization/42246
34318         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
34319         for pipelining_p.
34320         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
34321
34322 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34323             Alexander Monakov  <amonakov@ispras.ru>
34324
34325         PR middle-end/42245
34326         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
34327         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
34328         argument.  Update all callers.
34329         (tidy_control_flow): ... and here.  Recompute topological order
34330         of basic blocks in region if necessary.
34331         (sel_redirect_edge_and_branch): Change return type.  Return true
34332         if topological order might have been invalidated.
34333         (purge_empty_blocks): Export and move from...
34334         * sel-sched.c (purge_empty_blocks): ... here.
34335         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
34336         (maybe_tidy_empty_bb): Delete prototype.
34337         (purge_empty_blocks): Declare.
34338
34339 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
34340
34341         PR rtl-optimization/42249
34342         * sel-sched.c (try_replace_dest_reg): When chosen register
34343         and original register is the same, do not bail out early, but
34344         still check all original insns for validity of replacing destination
34345         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
34346         in this case.
34347
34348 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
34349
34350         PR c/42721
34351         Port from no-undefined-overflow branch:
34352         2009-03-09  Richard Guenther  <rguenther@suse.de>
34353
34354         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
34355
34356 2010-01-14  Richard Guenther  <rguenther@suse.de>
34357
34358         PR lto/42665
34359         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
34360
34361 2010-01-14  Ira Rosen  <irar@il.ibm.com>
34362
34363         PR tree-optimization/42709
34364         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
34365         as scalar type in creation of constant vector operand.
34366
34367 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34368
34369         PR testsuite/42414
34370         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
34371         (check-parallel-%): Match `testsuite' directory component only
34372         at the end.
34373
34374 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
34375
34376         PR translation/39521
34377         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
34378         strings with _().
34379
34380 2010-01-13  Richard Guenther  <rguenther@suse.de>
34381
34382         PR tree-optimization/42730
34383         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
34384         offset zero.
34385
34386 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
34387
34388         PR target/pr42542
34389         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
34390         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
34391         them signed.
34392
34393 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
34394
34395         * config/bfin/libgcc-bfin.ver: Regenerate based on current
34396         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
34397         ___umulsi3_highpart.
34398
34399         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
34400         rather than schedule_insns if the pass is enabled.
34401
34402 2010-01-13  Martin Jambor  <mjambor@suse.cz>
34403
34404         PR tree-optimization/42704
34405         * tree-sra.c (sra_modify_assign): Do not delete assignments to
34406         SSA_NAMEs.
34407
34408 2010-01-13  Martin Jambor  <mjambor@suse.cz>
34409
34410         PR tree-optimization/42703
34411         * tree-sra.c (analyze_access_subtree): Check that we can build a
34412         reference to the original data within the aggregate.
34413
34414 2010-01-13  Richard Guenther  <rguenther@suse.de>
34415
34416         PR tree-optimization/42705
34417         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
34418
34419 2010-01-13  Richard Guenther  <rguenther@suse.de>
34420
34421         PR middle-end/42716
34422         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
34423
34424 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
34425
34426         PR debug/41371
34427         * var-tracking.c (values_to_unmark): New variable.
34428         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
34429         values_to_unmark vector.  Moved body to...
34430         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
34431         instead queue it into values_to_unmark vector.
34432         (vt_find_locations): Free values_to_unmark vector.
34433
34434 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
34435
34436         * config/s390/s390.c (override_options): Set
34437         default of max-pending-list-length to 256
34438
34439 2010-01-13  Richard Guenther  <rguenther@suse.de>
34440
34441         PR lto/42678
34442         * tree-pass.h (PROP_gimple_lcx): New.
34443         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
34444         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
34445         before the final cleanup_eh.
34446         (dump_properties): Dump PROP_gimple_lcx.
34447         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
34448         (tree_lower_complex_O0): Remove.
34449         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
34450         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
34451         tree_lower_complex, schedule TODO_update_ssa.
34452         * lto-streamer-out.c (output_function): Stream the functions
34453         properties.
34454         * lto-streamer-in.c (input_function): Likewise.
34455         (lto_read_body): Do not override them here.
34456
34457 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
34458
34459         PR c/42708
34460         * c-typeck.c (build_c_cast): Fold value cast to union type before
34461         wrapping it in a CONSTRUCTOR.
34462
34463 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
34464
34465         PR rtl-optimization/42699
34466         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
34467         involved.
34468
34469 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34470
34471         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
34472         SUBTARGET_WARN_UNUSED_SPEC): Move ...
34473         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
34474         SUBTARGET_WARN_UNUSED_SPEC): ... here
34475         * config/mips/iris5.h (LIBGCC_SPEC): Define.
34476
34477 2010-01-12  Julian Brown  <julian@codesourcery.com>
34478
34479         * config/arm/neon-schedgen.ml (Utils): Don't try to
34480         open missing module.
34481         (find_with_result): New.
34482
34483 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
34484
34485         PR debug/42662
34486         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
34487         sharing when canonicalizing ({lt,ge}u (plus a b) b).
34488
34489         PR tree-optimization/42645
34490         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
34491         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
34492         decl_map, set processing_debug_stmt to -1 and return name without
34493         any remapping.
34494
34495 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
34496
34497         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
34498         binutils version, and reword target configuration description.
34499
34500 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
34501
34502         * config/avr/avr.h (LINKER_NAME): Remove.
34503
34504 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
34505
34506         PR target/42416
34507         * config/rs6000/rs6000.c (rs6000_override_options): On targets
34508         that support VSX, warn for -mno-altivec if vsx is not disabled,
34509         and disable vsx.
34510
34511 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
34512             Shujing Zhao  <pearly.zhao@oracle.com>
34513
34514         PR translation/42469
34515         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
34516         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
34517         character between option name and help text.
34518         * c.opt (imultilib): Likewise.
34519
34520 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
34521
34522         * lto-streamer-out.c (output_unreferenced_globals): Output static
34523         variables.
34524
34525 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
34526
34527         PR rtl-optimization/42621
34528         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
34529         optimizing for size.
34530         (duplicate_computed_gotos): Remove now-redundant check.
34531
34532 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
34533
34534         PR target/37454
34535         * configure.ac: Save and restore LDFLAGS and LIBS
34536         * configure: Regenerate.
34537
34538 2010-01-10  Richard Guenther  <rguenther@suse.de>
34539
34540         PR middle-end/42667
34541         * builtins.c (fold_builtin_strlen): Add type argument and
34542         convert the resulting length to it.
34543         (fold_builtin_1): Adjust.
34544
34545 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
34546
34547         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
34548         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
34549         1 insn.
34550         (num_insns_constant_wide): Adjust for that change.
34551
34552 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34553
34554         PR debug/42631
34555         * web.c (union_defs): Add used argument, to combine uses of
34556         uninitialized regs.
34557         (entry_register): Adjust type and tests of used argument.
34558         (web_main): Widen used for new use.  Pass it to union_defs.
34559         * df.h (union_defs): Adjust prototype.
34560
34561 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34562
34563         PR debug/42630
34564         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
34565         uses in new incoming argument.  Free body.
34566         (reset_debug_uses_in_loop): New.
34567         (analyze_insn_to_expand_var): Call the latter if the former found
34568         anything.  Fix whitespace.  Reject invalid dest overlaps before
34569         going through all insns in the loop.
34570
34571 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34572
34573         PR debug/42629
34574         * haifa-sched.c (dying_use_p): Debug insns don't count.
34575
34576 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34577
34578         PR middle-end/42363
34579         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
34580         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
34581         (verify_gimple_call): Reject LHS in noreturn calls.
34582
34583 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34584
34585         PR debug/42604
34586         PR debug/42395
34587         * tree-vect-loop-manip.c (adjust_info): New type.
34588         (adjust_vec): New pointer to vector.
34589         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
34590         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
34591         (slpeel_update_phis_for_duplicate_loop): Use them.
34592         (slpeel_update_phi_nodes_for_guard1): Likewise.
34593         (slpeel_update_phi_nodes_for_guard2): Likewise.
34594         (slpeel_tree_peel_loop_to_edge): Likewise.
34595         (vect_update_ivs_after_vectorizer): Likewise.
34596
34597 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34598
34599         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
34600         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
34601
34602 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34603
34604         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
34605         bogus uninitialized warning.
34606
34607 2010-01-09  Richard Guenther  <rguenther@suse.de>
34608
34609         PR middle-end/42512
34610         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
34611         the evolution is compatible with the initial condition.
34612
34613 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
34614
34615         * gcc.c (process_command): Update copyright notice dates.
34616         * gcov.c (print_version): Likewise.
34617         * gcov-dump.c (print_version): Likewise.
34618         * mips-tfile.c (main): Likewise.
34619         * mips-tdump.c (main): Likewise.
34620
34621 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
34622
34623         PR target/41885
34624         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
34625         (rotlhi3): Delete.
34626         (rotlhi3_8): Delete.
34627         (rotlsi3): Delete.
34628         (rotlsi3_8): Delete.
34629         (rotlsi3_16): Delete.
34630         (rotlsi3_24): Delete.
34631         (rotl<mode>3): New.
34632         (*rotw<mode>3): New.
34633         (*rotb<mode>3): New.
34634         * config/avr/avr.c (avr_rotate_bytes): New function.
34635         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
34636
34637 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
34638
34639         PR target/37454
34640         * configure.ac: Modify -rdynamic check.
34641         * configure: Regenerate.
34642
34643 2010-01-08  DJ Delorie  <dj@redhat.com>
34644
34645         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
34646         register popping order.
34647
34648 2010-01-08  Richard Guenther  <rguenther@suse.de>
34649
34650         PR lto/42528
34651         * c.opt (fsigned-char): Also let LTO handle this option.
34652         (funsigned-char): Likewise.
34653
34654 2010-01-07  Richard Guenther  <rguenther@suse.de>
34655
34656         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
34657         (gimple_op): Likewise.
34658         (gimple_op_ptr): Likewise.
34659         (gimple_assign_set_lhs): Remove gcc_assert.
34660         (gimple_assign_set_rhs1): Likewise.
34661         (gimple_assign_set_rhs2): Likewise.
34662         (gimple_call_set_lhs): Likewise.
34663         (gimple_call_set_fn): Likewise.
34664         (gimple_call_set_fndecl): Likewise.
34665         (gimple_call_fndecl): Likewise.
34666         (gimple_call_return_type): Likewise.
34667         (gimple_call_set_chain): Likewise.
34668         (gimple_call_num_args): Likewise.
34669         (gimple_call_set_arg): Likewise.
34670         (gimple_cond_set_code): Likewise.
34671         (gimple_cond_set_lhs): Likewise.
34672         (gimple_cond_set_rhs): Likewise.
34673         (gimple_cond_set_true_label): Likewise.
34674         (gimple_cond_set_false_label): Likewise.
34675         (gimple_label_set_label): Likewise.
34676         (gimple_goto_set_dest): Likewise.
34677         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
34678         (gimple_debug_bind_get_value): Likewise.
34679         (gimple_debug_bind_get_value_ptr): Likewise.
34680         (gimple_debug_bind_set_var): Likewise.
34681         (gimple_debug_bind_set_value): Likewise.
34682         (gimple_debug_bind_reset_value): Likewise.
34683         (gimple_debug_bind_has_value_p): Likewise.
34684         (gimple_return_retval_ptr): Remove gcc_assert.
34685         (gimple_return_retval): Likewise.
34686         (gimple_return_set_retval): Likewise.
34687         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
34688         (safe_referenced_var_iterator): Remove.
34689         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
34690         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
34691         (fill_referenced_var_vec): Remove.
34692         (first_readonly_imm_use): Remove redundant gcc_assert.
34693         (phi_arg_index_from_use): Combine gcc_asserts.
34694         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
34695         (first_imm_use_stmt): Remove redundant gcc_assert.
34696         * tree-cfg.c (verify_gimple_call): Verify function and chain
34697         operands.  Verify arguments.
34698         (verify_types_in_gimple_stmt): Verify condition code and labels.
34699
34700 2010-01-07  Richard Guenther  <rguenther@suse.de>
34701
34702         PR tree-optimization/42641
34703         * sese.c (rename_map_elt_info): Use the SSA name version, do
34704         not hash pointers.
34705
34706 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
34707
34708         PR tree-optimization/42625
34709         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
34710         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
34711
34712 2010-01-07  Duncan Sands  <baldrick@free.fr>
34713
34714         * Makefile.in (PLUGIN_HEADERS): Add version.h.
34715
34716 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
34717
34718         PR target/42511
34719         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
34720         note itself is not function_invariant_p.
34721
34722 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
34723
34724         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
34725         Do not add the DF_NOTE problem.
34726         * store-motion.c (execute_rtl_store_motion): Likewise.
34727
34728 2010-01-07  Martin Jambor  <mjambor@suse.cz>
34729
34730         PR tree-optimization/42157
34731         * tree-sra.c (compare_access_positions): Stabilize sort if both
34732         accesses have integer types, return zero immediately if they are the
34733         same.
34734
34735 2010-01-06  Richard Henderson  <rth@redhat.com>
34736
34737         PR middle-end/41883
34738         * haifa-sched.c (add_to_note_list): Merge into ...
34739         (concat_note_lists): ... here, and ...
34740         (unlink_other_notes, rm_other_notes): Merge into...
34741         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
34742         NOTE_INSN_EPILOGUE_BEG.
34743
34744 2010-01-06  Richard Guenther  <rguenther@suse.de>
34745
34746         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
34747         not inline regular functions into always-inline functions.
34748
34749 2010-01-06  Nick Clifton  <nickc@redhat.com>
34750
34751         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
34752         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
34753         used together.
34754         (OVERRIDE_OPTIONS): Delete.
34755         (OPTIMIZATION_OPTIONS): Define.
34756         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
34757         * config/rx/rx.c (rx_handle_option): Issue an error message if
34758         -mcpu=rx200 and -fpu are used together.
34759         (rx_set_optimization_options): New function.  Issue an error
34760         message if an optimization attribute attempts to reset the FPU/
34761         math optimization pairing.
34762         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
34763         * config/rx/rx.opt: Set the default to 32-bit doubles.
34764         * config/rx/t-rx: Add multilibs for -nofpu option.
34765         * doc/invoke.texi: Update documentation of RX options.
34766
34767 2010-01-06  Richard Guenther  <rguenther@suse.de>
34768
34769         * tree-ssa-pre.c (name_to_id): New global.
34770         (alloc_expression_id): Simplify SSA name handling.
34771         (lookup_expression_id): Likewise.
34772         (init_pre): Zero name_to_id.
34773         (fini_pre): Free it.
34774
34775 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
34776
34777         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
34778
34779 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
34780
34781         PR target/42542
34782         * config/i386/sse.md (smaxv2di3): New.
34783         (umaxv2di3): Likewise.
34784         (sminv2di3): Likewise.
34785         (uminv2di3): Likewise.
34786
34787 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
34788
34789         PR target/42564
34790         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
34791         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
34792         (legitimize_tls_address): Likewise.
34793         (sparc_tls_referenced_p): Likewise.
34794         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
34795         and adjust calls to legitimize_pic_address.
34796         (legitimate_constant_p) Use sparc_tls_referenced_p.
34797         (legitimate_pic_operand_p): Likewise.
34798         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
34799         (sparc_tls_symbol_ref_1): Delete.
34800         (sparc_tls_referenced_p): Make static, recognize specific patterns.
34801         (legitimize_tls_address): Make static, handle CONST patterns.
34802         (legitimize_pic_address): Make static, remove unused parameter and
34803         adjust recursive calls.
34804         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
34805         and adjust call to legitimize_pic_address.
34806         (sparc_output_mi_thunk): Likewise.
34807
34808 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
34809             H.J. Lu  <hongjiu.lu@intel.com>
34810
34811         PR target/42542
34812         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
34813         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
34814         operands to make them signed.
34815
34816         Revert:
34817         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34818
34819         PR target/42542
34820         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34821         GTU to GT for V4SI and V2DI.
34822
34823         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34824         (umin<mode>3): Removed.
34825         (uminv8hi3): New.
34826         (uminv4si3): Likewise.
34827
34828 2010-01-05  Martin Jambor  <mjambor@suse.cz>
34829
34830         PR tree-optimization/42462
34831         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
34832         current_function_decl to helper functions and macros.
34833
34834 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34835
34836         PR bootstrap/41771
34837         * flags.h: Don't include real.h.
34838         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
34839         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
34840         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
34841         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
34842         * dominance.c: Update copyright.
34843         * gimple.c (walk_gimple_op): Remove inline.
34844         * tree-ssa-reassoc.c: Include real.h.
34845         * Makefile.in (FLAGS_H): Remove $(REAL_H).
34846         (tree-ssa-reassoc.o): Depend on $(REAL_H).
34847
34848 2010-01-05  Nick Clifton  <nickc@redhat.com>
34849
34850         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
34851         register to push into the stack frame when the accumulator has to
34852         be saved during interrupts.
34853
34854 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
34855
34856         * doc/invoke.texi: Remove the documentation about option
34857         -Wunreachable-code.
34858         * common.opt (Wunreachable-code):  Preserved for backward
34859         compatibility.
34860         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
34861         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
34862         the backward compatibility flag section.
34863
34864 2010-01-05  Richard Guenther  <rguenther@suse.de>
34865
34866         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
34867
34868 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
34869
34870         PR other/42611
34871         * cfgexpand.c (expand_one_var): Diagnose too large variables.
34872
34873         PR tree-optimization/42508
34874         * tree-sra.c (convert_callers): Check for recursive call
34875         by comparing cgraph nodes instead of decls.
34876         (modify_function): Call ipa_modify_formal_parameters also
34877         on all same_body aliases.
34878
34879         * cgraphunit.c (cgraph_materialize_all_clones): Compare
34880         cgraph nodes when checking for same_body aliases.
34881
34882 2010-01-05  Richard Guenther  <rguenther@suse.de>
34883
34884         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
34885         allocation and lookup.
34886         (get_or_alloc_expr_for_constant): Likewise.
34887         (phi_translate): Sink allocation.
34888
34889 2010-01-04  Richard Guenther  <rguenther@suse.de>
34890
34891         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
34892         a new entry only if needed.
34893         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
34894         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
34895         hashtable lookup.
34896         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
34897         the result array.
34898         (phi_translate): Handle CONSTANTs early.
34899
34900 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34901
34902         PR tree-optimization/42398
34903         * tree-sra.c (struct access): Removed flag grp_different_types.
34904         (dump_access): Do not dump the removed flag.
34905         (sort_and_splice_var_accesses): Do not set the removed flag.
34906         (sra_modify_expr): Check for type compatibility directly.
34907
34908 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34909
34910         PR tree-optimization/42366
34911         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
34912         edges with variable number of parameters.
34913         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
34914         flag instead of asserting it.
34915         (ipa_read_node_info): Read uses_analysis_done flag.
34916
34917 2010-01-04  Richard Guenther  <rguenther@suse.de>
34918
34919         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
34920         iterative_hash_* as intended.
34921         (vn_reference_compute_hash): Likewise.  Simplify hashing
34922         SSA names.
34923         (vn_reference_lookup_2): Likewise.
34924         (vn_nary_op_compute_hash): Likewise.
34925         (vn_phi_compute_hash): Likewise.
34926         (expressions_equal_p): Remove strange code.
34927         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
34928         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
34929         (bitmap_insert_into_set_1): Take value-id as parameter.
34930         (add_to_value): Pass it.
34931         (bitmap_insert_into_set): Likewise.
34932         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
34933
34934 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
34935
34936         PR driver/42442
34937         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
34938         (do_self_spec): For switches with SWITCH_IGNORE set set also
34939         SWITCH_IGNORE_PERMANENTLY.
34940         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
34941         of SWITCH_IGNORE.
34942
34943 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
34944
34945         * lto-streamer-out.c (output_unreferenced_globals): Output the full
34946         tree of an unreferenced global var.
34947
34948 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34949
34950         PR target/42542
34951         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34952         GTU to GT for V4SI and V2DI.
34953
34954         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34955         (umin<mode>3): Removed.
34956         (uminv8hi3): New.
34957         (uminv4si3): Likewise.
34958
34959 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34960
34961         PR lto/42581
34962         * collect2.c (main): Turn on trace in collect2 if -v is passed
34963         to gcc with LTO.
34964
34965 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
34966
34967         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
34968         description of expression operand.
34969
34970 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
34971
34972         * configure.ac: Add install-html to target_list for Make-hooks.
34973         * configure: Regenerate.
34974         * fortran/Make-lang.in (F95_HTMLFILES): New.
34975         (fortran.html): Use it.
34976         (fortran.install-html): New.
34977         * Makefile.in (install-html): Add lang.install-html.
34978         * java/Make-lang.in (JAVA_HTMLFILES): New.
34979         (java.html): Use it.
34980         (java.install-html): New.
34981         * objc/Make-lang.in (objc.install-html): New.
34982         * objcp/Make-lang.in (obj-c++.install-html): New.
34983         * cp/Make-lang.in (c++.install-html): New.
34984         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34985         * lto/Make-lang.in (lto.install-html): New.
34986
34987 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34988
34989         PR lto/42520
34990         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34991
34992 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34993
34994         PR rtl-optimization/41862
34995         * store-motion.c (store_killed_in_insn, compute_store_table,
34996         remove_reachable_equiv_notes, replace_store_insn,
34997         build_store_vectors): Ignore all DEBUG_INSNs.
34998
34999 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
35000
35001         PR lto/41564
35002         * common.opt: Add dumpdir.
35003
35004         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
35005         isn't specified.
35006         (option_map): Add --dumpdir.
35007
35008         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
35009
35010         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
35011
35012         * opts.c (decode_options): Try dump_dir_name first if
35013         dump_base_name isn't an absolute path.
35014         (common_handle_option): Handle OPT_dumpdir.
35015
35016         * toplev.c (dump_dir_name): New.
35017         (print_switch_values): Also ignore -dumpdir.
35018
35019         * toplev.h (dump_dir_name): New.
35020
35021 2010-01-03  Richard Guenther  <rguenther@suse.de>
35022
35023         PR tree-optimization/42589
35024         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
35025         double-word expansion of bswap32.
35026
35027 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
35028
35029         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
35030         with BLOCK_FOR_INSN.
35031         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
35032         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
35033         noce_process_if_block): Likewise.
35034         * gcse.c (compute_local_properties, insert_expr_in_table,
35035         insert_set_in_table, canon_list_insert, find_avail_set,
35036         pre_insert_copy_insn): Likewise.
35037
35038         * basic-block.h (BLOCK_NUM): Move from here...
35039         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
35040
35041 2010-01-03  Richard Guenther  <rguenther@suse.de>
35042
35043         PR tree-optimization/42438
35044         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
35045         contains_may_not_return_call flag.
35046         (BB_MAY_NOTRETURN): New.
35047         (valid_in_sets): Trapping nary operations are not valid
35048         in blocks that may not return.
35049         (insert_into_preds_of_block): Remove check for trapping expressions.
35050         (compute_avail): Compute also BB_MAY_NOTRETURN.
35051
35052 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
35053
35054         * doc/invoke.texi: Add 2010 to copyright years.
35055
35056 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
35057
35058         * config/sparc/sparc.c: Fix formatting nits.
35059
35060 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35061             Alexander Monakov  <amonakov@ispras.ru>
35062
35063         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
35064
35065 2010-01-02  Richard Guenther  <rguenther@suse.de>
35066
35067         PR middle-end/42577
35068         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
35069         (simplify_switch_using_ranges): Mark to be removed edges
35070         as non-executable.
35071
35072 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35073
35074         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35075
35076         * collect2.c (scan_libraries): Add missing argument in call to
35077         scan_prog_file.
35078
35079 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
35080
35081         PR target/42448
35082         * config/alpha/predicates.md (aligned_memory_operand): Return false
35083         for CQImode.
35084         (unaligned_memory_operand): Return true for CQImode.
35085         * config/alpha/alpha.c (get_aligned_mem): Assert that location
35086         doesn not cross aligned SImode word boundary.
35087
35088 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
35089
35090         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
35091         Remove.
35092         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
35093         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
35094
35095 2010-01-02  Richard Guenther  <rguenther@suse.de>
35096
35097         PR lto/41597
35098         * toplev.c (compile_file): Emit LTO marker properly.  Change
35099         it to __gnu_lto_v1.
35100         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
35101
35102 2010-01-01  Richard Guenther  <rguenther@suse.de>
35103
35104         PR debug/42455
35105         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
35106
35107 2010-01-01  Richard Guenther  <rguenther@suse.de>
35108
35109         PR c/42570
35110         * c-decl.c (grokdeclarator): For zero-size arrays force
35111         structural equality checks as layout_type does.
35112
35113 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
35114
35115         * builtins.c: Update copyright to 2010.
35116
35117 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
35118
35119         PR lto/42531
35120         * lto-streamer-out.c (produce_asm): Revert the last change.
35121         (copy_function): Likewise.
35122
35123         * lto-streamer.c (lto_get_section_name): Skip any leading
35124         asterisk in name.
35125
35126 2010-01-01  Richard Guenther  <rguenther@suse.de>
35127
35128         PR middle-end/42559
35129         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
35130         for LABEL_DECLs.
35131
35132 \f
35133 Copyright (C) 2010 Free Software Foundation, Inc.
35134
35135 Copying and distribution of this file, with or without modification,
35136 are permitted in any medium without royalty provided the copyright
35137 notice and this notice are preserved.