1 2010-11-24 Joseph Myers <joseph@codesourcery.com>
3 * common.opt (user_vect_verbosity_level): New Variable entry.
4 (ftree-vectorizer-verbose=): Mark as UInteger.
5 * flag-types.h (enum vect_verbosity_levels): Move from enum
6 verbosity_levels in tree-vectorizer.h.
7 * opts.c: Don't include tree.h.
8 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
9 gcc_options parameter; take integer option argument.
10 (common_handle_option): Update call to vect_set_verbosity_level.
11 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
12 (vect_set_verbosity_level): Move to opts.c.
13 (vect_verbosity_level, vect_print_dump_info): Update for change of
15 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
16 (vect_print_dump_info): Update for change of enum name.
17 * tree.h (vect_set_verbosity_level): Remove.
18 * Makefile.in (opts.o): Update dependencies.
20 2010-11-24 Jakub Jelinek <jakub@redhat.com>
23 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
24 instead of insn with any_condjump_p.
26 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
28 * config/mips/loongson.md: Change the description comment of the file
29 and update the copyright years.
30 (define_insn "<u>div<mode>3): Add loongson3a support.
31 (define_insn "<u>mod<mode>3"): Likewise.
32 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
33 mul<mode>3_mul3_loongson.
34 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
35 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
37 2010-11-23 Joseph Myers <joseph@codesourcery.com>
39 * common.opt (initial_max_fld_align, flag_debug_asm,
40 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
41 flag_print_asm_name, graph_dump_format, help_printed,
42 help_columns, flag_opts_finished): New Variable entries.
43 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
44 frandom-seed=): Mark deferred.
45 (fsched-verbose=): Use UInteger and Var.
46 * flags.h (set_struct_debug_option, flag_print_asm_name,
47 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
48 graph_dump_format): Don't declare here.
49 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
50 * opts-global.c: Include dbgcnt.h and debug.h.
51 (decode_options): Pass location to finish_options.
52 (handle_common_deferred_options): Check flag_dump_all_passed.
53 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
54 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
56 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
57 (set_struct_debug_option): Add location_t parameter. Update
58 recursive call. Use error_at.
59 (default_options_optimization): Use error_at.
60 (finish_options): Add location_t parameter. Use
61 opts->x_flag_opts_finished instead of first_time_p. Use
62 opts->x_optimize instead of optimize. Use error_at. Pass
64 (print_filtered_help): Use opts->x_help_printed to track what
65 options have been printed.
66 (print_specific_help): Use opts->x_help_columns to track number of
68 (common_handle_option): Pass locations and gcc_options pointers to
69 more functions. Use warning_at instead of fnotice and warning.
70 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
71 OPT_fdebug_prefix_map_. Use error_at. Set
72 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
73 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
75 (handle_param): Add location_r parameter. Use error_at.
76 (set_debug_level): Add location_r parameter. Use error_at and
78 (setup_core_dumping): Add diagnostic_context parameter.
79 (decode_d_option): Add gcc_options, location_t and
80 diagnostic_context parameters and use them instead of global
81 state. Use warning_at.
82 (enable_warning_as_error): Use error_at.
83 * opts.h (finish_options): Update prototype.
84 (set_struct_debug_option): Declare here.
85 * rtl.h (fix_sched_param): Remove.
86 * stor-layout.c (initial_max_fld_align): Remove.
87 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
88 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
89 (process_options): Set maximum_field_alignment.
90 * tree.h (initial_max_fld_align) Don't declare here.
91 * Makefile.in (opts.o, opts-global.o): Update dependencies.
93 2010-11-23 Joseph Myers <joseph@codesourcery.com>
95 * flag-types.h (struct visibility_flags): Don't declare here.
96 * flags.h (strip_off_ending, fast_math_flags_set_p,
97 fast_math_flags_struct_set_p): Declare here.
98 (visibility_options): Don't declare here.
99 * opts-common.c (option_enabled, get_option_state): Move from
101 * opts-global.c: Include diagnostic.h instead of
102 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
104 (const_char_p, ignored_options, in_fnames, num_in_fnames,
105 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
106 print_ignored_options, unknown_option_callback,
107 post_handling_callback, lang_handle_option, add_input_filename,
108 read_cmdline_options, initial_lang_mask, init_options_once,
109 decode_cmdline_options_to_array_default_mask,
110 set_default_handlers, decode_options): Move from opts.c.
111 (print_ignored_options): Use warning_at instead of saving and
112 restoring input_location.
113 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
114 instead of expr.h. Don't include langhooks.h, except.h or
115 lto-streamer.h. Add more comments on includes.
116 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
118 (visibility_options): Move to c-family/c-common.c.
119 (const_char_p, ignored_options, in_fnames, num_in_fnames,
120 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
121 print_ignored_options, unknown_option_callback,
122 post_handling_callback, lang_handle_option, add_input_filename,
123 read_cmdline_options, initial_lang_mask, init_options_once,
124 decode_cmdline_options_to_array_default_mask,
125 set_default_handlers, decode_options): Move to opts-global.c.
126 (target_handle_option, default_options_optimization,
127 finish_options, common_handle_option): Remove static.
128 (option_enabled, get_option_state): Move to opts-common.c.
129 * opts.h (common_handle_option, target_handle_option,
130 finish_options, default_options_optimization): Declare.
131 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
132 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
134 * toplev.h (strip_off_ending, decode_d_option,
135 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
137 * Makefile.in (opts.o, opts-global.o): Update dependencies.
139 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
142 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
143 options, replace by call of pass-through-libs spec function to process
144 link_gcc_c_sequence spec.
145 (lto_libgcc_spec): Delete variable.
146 (static_specs[]): Remove related entry.
147 (static_spec_functions[]): Add new entry for pass-through-libs.
148 (main): Don't generate deleted lto_libgcc_spec.
149 (pass_through_libs_spec_func): New function to implement the new
150 pass-through-libs spec function.
151 * doc/invoke.texi (pass-through-libs): Document new spec function.
153 2010-11-23 Joseph Myers <joseph@codesourcery.com>
155 * doc/options.texi (Warning, Optimization): Document.
157 2010-11-23 Jan Hubicka <jh@suse.cz>
159 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
160 (tree_decl_with_vis): Add implicit_section_name_p.
161 * targhooks.h (default_function_section): Declare.
162 * target.def (function_section): New hook.
163 * defaults.h (HOT_TEXT_SECTION_NAME,
164 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
165 * predict.c (choose_function_section): Remove.
166 (estimate_bb_frequencies): Do not use choose_function_section.
167 * coretypes.h (enum node_frequency): Move here from cgraph.h
168 * cgraph.h (enum node_frequency): Remove.
169 * varasm.c (initialize_cold_section_name, unlikely_text_section,
170 unlikely_text_section_p): Remove.
171 (named_subsection_entry): New structure.
172 (get_text_section): New function.
173 (default_function_section): New function.
174 (function_section_1): Break out from ...; handle profile info.
175 (function_section): ... here.
176 (unlikely_text_section): Remove.
177 (unlikely_text_section_p): Use function_section_1.
178 (assemble_start_function): Do not initialize cold section.
179 (default_section_type_flags): Do not special case cold subsection.
180 (switch_to_section): Likewise.
181 * output.h (get_text_section): Define.
182 * config/i386/winnt.c: Do not special case cold section.
183 * config/darwin-protos.h (darwin_function_section): Declare.
184 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
185 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
186 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
187 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
188 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
189 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
190 * config/darwin.c (machopic_select_section): Use
191 darwin_function_section.
192 (darwin_function_section): New function.
193 * config/darwin.h (HOT_TEXT_SECTION_NAME,
194 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
195 (TARGET_ASM_FUNCTION_SECTION): Define.
196 * system.h (HOT_TEXT_SECTION_NAME,
197 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
199 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
201 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
202 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
204 2010-11-23 Jakub Jelinek <jakub@redhat.com>
207 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
208 following unconditional jumps.
210 2010-11-23 Richard Guenther <rguenther@suse.de>
212 * doc/md.texi (386 constraints): Clarify A constraint documentation.
214 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
215 Jeremie Salvucci <jeremie.salvucci@free.fr>
217 * gengtype.c (enum typekind, struct options)
218 (struct nested_ptr_data, struct pair, NUM_PARAM)
219 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
221 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
222 Remove static, add zero state_number.
223 (typedefs, structures, param_structs, variables): Remove static.
224 (create_option): Remove.
225 (create_string_option, create_type_option, create_nested_option):
227 (create_nested_ptr_option): Use create_nested_option.
228 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
229 new create*option functions.
230 (process_gc_options): Adjust for discriminated option.
231 (output_mangled_typename): Handle TYPE_NONE.
232 (walk_type): Test option kinds.
233 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
234 (write_func_for_structure, write_type, write_local, write_root)
235 (write_roots, note_def_vec, dump_options): Adjust for
236 discriminated option.
239 (typedefs, structures, param_structs, variables, enum typekind):
241 (enum option_kind): New discriminating enumeration.
242 (struct options): Becomes discriminated.
243 (struct nested_ptr_data): Nove from gengtype.c
244 (create_string_option, create_type_option, create_nested_option)
245 (create_nested_ptr_option): New functions
246 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
247 (UNION_OR_STRUCT_P): Move from gengtype.c
249 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
250 discriminated options.
252 2010-11-23 Richard Guenther <rguenther@suse.de>
254 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
255 twice. Avoid re-allocating the ops vector all the time.
257 2010-11-23 Richard Guenther <rguenther@suse.de>
259 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
260 is_gimple_min_invariant, group tree code checks to allow
262 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
265 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
267 * config.gcc (sparc*-*-*): Reorder.
269 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
271 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
272 Remove ENABLE_CHECKING around DBGPRINTF.
274 2010-11-22 Joseph Myers <joseph@codesourcery.com>
276 * common.opt (exit_after_options, write_symbols, debug_info_level,
277 use_gnu_debug_info_extensions): New Variable entries.
278 (fprofile-dir=): Use Var.
279 * flag-types.h (enum debug_info_level): Rename to enum
281 * flags.h (write_symbols, debug_info_level,
282 use_gnu_debug_info_extensions): Remove declarations.
283 * opts.c (exit_after_options, write_symbols, debug_info_level):
285 (set_struct_debug_option): Make static variables const.
286 (use_gnu_debug_info_extensions): Remove.
287 (set_debug_level, print_filtered_help, print_specific_help,
288 fast_math_flags_set_p): Take gcc_options parameters and use them
289 in place of global variables.
290 (print_filtered_help): Make new_help non-static.
291 (print_specific_help): Update call to print_filtered_help.
292 (common_handle_option): Update calls to print_specific_help. Use
293 gcc_options structure for more settings. Make --help table
294 const. Don't handle OPT_fprofile_dir_ here. Update calls to
296 * toplev.c (profile_data_prefix): Remove.
297 * toplev.h (profile_data_prefix, exit_after_options): Remove
299 (fast_math_flags_set_p): Update prototype.
300 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
301 Update call to fast_math_flags_set_p.
303 2010-11-22 Richard Henderson <rth@redhat.com>
306 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
307 return the address register extracted.
308 (crx_decompose_address): Update the extracted address register.
310 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
313 * gcc.c (main): Don't crash when lto-wrapper program is not found.
315 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
318 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
319 * config/picochip/picochip-protos.h: Don't include "target.h" .
320 (picochip_secondary_reload): Don't declare.
323 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
324 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
327 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
330 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
331 (source_dot_c_frul): Likewise.
333 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
335 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
337 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
340 * Makefile.in (fwprop.o) Add sparseset.h.
341 * fwprop.c: Include sparseset.h
342 (struct find_occurrence_data, find_occurrence_callback,
343 find_occurrence): Remove.
344 (active_defs, active_defs_check, register_active_defs,
345 update_df_init, update_uses): New.
346 (update_df): Rewrite.
347 (try_fwprop_subst, forward_propagate_asm): Add calls to
348 update_df_init and update_df.
349 (fwprop_init): Allocate active_defs and active_defs_check.
350 (fwprop_done): Free them.
351 (fwprop, fwprop_addr): Adjust comments.
352 * df.h (df_uses_create): Declare.
353 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
354 (df_ref_create): Return result of df_ref_create_structure directly.
355 (df_ref_create_structure): Call df_install_ref_incremental when
356 no collection_rec is passed.
357 (df_ref_record): Do not create multiword hard reg info when no
358 collection_rec is passed.
359 (df_uses_create): New.
361 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
364 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
367 2010-11-22 Richard Guenther <rguenther@suse.de>
369 * gimple-fold.c (maybe_fold_reference): When canonicalizing
370 MEM_REFs, preserve volatileness.
371 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
374 2010-11-22 Richard Guenther <rguenther@suse.de>
376 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
378 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
380 PR rtl-optimization/45652
381 * alias.c (get_reg_base_value): New.
382 * rtl.h (get_reg_base_value): Add prototype.
383 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
384 non-null REG_BASE_VALUE for renaming.
386 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
387 Basile Starynkevitch <basile@starynkevitch.net>
389 * gengtype.c: Include xregex.h and obstack.h
390 Added comments about role of get_output_file_with_visibility and
391 our regexpr machinery.
392 (frul_actionrout_t, struct file_rule_st): New.
393 (hader_dot_h_frul, source_dot_c_frul): New functions.
394 (NULL_REGEX, NULL_FRULACT): New.
396 (matching_file_name_substitute): New function.
397 (get_output_file_with_visibility): Updated comments and rewritten
398 to use the new files_rules machinery.
400 * Makefile.in (XREGEX_H): Added variable.
401 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
403 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
405 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
407 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
409 * target.def (conditional_register_usage): Define.
410 * reginfo.c (init_reg_sets_1): Call
411 targetm.conditional_register_usage.
412 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
413 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
414 for making it a hook.
415 * doc/tm.texi: Regenerate.
416 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
417 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
419 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
420 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
421 * config/arc/arc.c (arc_conditional_register_usage): ...here.
423 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
424 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
425 * config/arm/arm.c (arm_conditional_register_usage): ...here.
427 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
428 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
429 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
430 * config/bfin/bfin.c (conditional_register_usage): Move code into...
431 (bfin_conditional_register_usage): ...here. New function.
432 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
433 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
434 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
435 * config/cris/cris.c (cris_conditional_register_usage): Make static.
436 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
437 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
438 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
439 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
440 * config/frv/frv.c (frv_conditional_register_usage): Make static.
441 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
442 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
443 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
445 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
446 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
447 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
448 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
449 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
450 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
451 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
452 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
453 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
454 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
455 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
457 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
458 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
459 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
461 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
463 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
464 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
465 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
466 * config/mep/mep.c (mep_conditional_register_usage): Make static.
467 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
468 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
469 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
470 * config/mips/mips.c (mips_conditional_register_usage): Make static.
471 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
472 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
473 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
474 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
475 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
476 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
477 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
478 ...here. New function.
479 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
480 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
481 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
482 * config/pa/pa.c (pa_conditional_register_usage): ...here.
484 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
485 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
486 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
488 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
489 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
490 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
492 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
494 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
495 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
496 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
497 * config/rx/rx.c (rx_conditional_register_usage): Make static.
498 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
499 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
500 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
501 * config/s390/s390.c (s390_conditional_register_usage): Make static.
502 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
503 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
504 * config/score/score.c (score_conditional_register_usage): ...here.
506 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
507 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
508 * config/sh/sh.c (sh_conditional_register_usage): ...here.
510 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
511 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
512 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
514 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
515 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
516 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
517 * config/spu/spu.c (spu_conditional_register_usage): Make static.
518 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
519 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
520 * config/v850/v850.c (v850_conditional_register_usage): ...here.
522 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
524 2010-11-21 Jan Hubicka <jh@suse.cz>
525 Dominique d'Humieres <dominiq@lps.ens.ft>
528 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
529 finalize external decls.
531 2010-11-21 Joseph Myers <joseph@codesourcery.com>
533 * system.h (strerror): Poison.
535 2010-11-21 Richard Henderson <rth@redhat.com>
537 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
540 2010-11-21 Richard Henderson <rth@redhat.com>
542 PR rtl-optimization/46571
543 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
544 (compute_hash_table_work): Use NONDEBUG_INSN_P.
546 2010-11-21 Paul Koning <ni1d@arrl.net>
548 * config/mips/pdp11.md (negsi2): Fix wrong code.
550 2010-11-21 Paul Koning <ni1d@arrl.net>
552 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
553 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
555 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
557 * config/mips/mips.c (machine_function): Rename load_label_length to
558 load_label_num_insns.
559 (mips_load_label_length): Rename to...
560 (mips_load_label_num_insns): ...this. Adjust to first renaming.
561 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
563 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
566 * config/alpha/predicates.md (direct_call_operand): Return false
567 for !TARGET_SMALL_TEXT targets.
569 2010-11-20 Joseph Myers <joseph@codesourcery.com>
571 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
572 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
573 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
574 * doc/tm.texi: Regenerate.
575 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
576 HANDLE_PRAGMA_WEAK): Poison.
577 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
578 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
579 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
580 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
581 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
582 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
583 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
584 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
585 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
586 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
587 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
588 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
589 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
590 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
591 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
592 (HANDLE_PRAGMA_WEAK): Don't undefine.
593 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
594 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
595 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
596 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
597 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
598 (HANDLE_PRAGMA_WEAK): Don't undefine.
599 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
600 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
601 (HANDLE_PRAGMA_PACK): Don't undefine.
602 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
603 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
604 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
605 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
606 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
607 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
608 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
609 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
610 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
611 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
612 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
613 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
614 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
615 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
616 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
617 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
618 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
620 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
623 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
624 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
625 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
627 2010-11-20 Jan Hubicka <jh@suse.cz>
629 * cgraph.c (ld_plugin_symbol_resolution_names): New.
630 (dump_cgraph_node): Dump resolution.
631 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
632 (cgraph_comdat_can_be_unshared_p): Dclare.
633 * lto-streamer-out.c (produce_symtab): Use
634 cgraph_comdat_can_be_unshared_p.
635 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
636 (cgraph_comdat_can_be_unshared_p): New function based on logic
637 in cgraph_externally_visible_p.
638 (cgraph_externally_visible_p): Use it.
639 (varpool_externally_visible_p): Virtual tables can be unshared.
640 * varpool.c (dump_varpool_node): Dump resolution.
642 2010-11-20 Jan Hubicka <jh@suse.cz>
644 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
646 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
649 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
650 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
652 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
653 (install-strip): New target.
654 (STRIPPROG): New variable, exported if STRIP is set.
655 * doc/install.texi (Final install): Minor markup and code style
656 fixes. Document install-strip target.
658 2010-11-20 Paul Koning <ni1d@arrl.net>
660 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
661 pdp11_regno_reg_class): New functions.
662 * config/pdp11/pdp11.md (define_constants): Add register numbers.
663 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
664 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
666 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
667 frame pointer and argument pointer pseudo-registers.
668 (ARG_POINTER_REGNUM): Define.
669 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
671 (FIRST_PARM_OFFSET): Update for argument pointer.
672 (INITIAL_FRAME_POINTER_OFFSET): Delete.
673 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
674 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
675 frame pointer and argument pointer.
677 2010-11-20 Jakub Jelinek <jakub@redhat.com>
680 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
681 when looking for immediate uses.
683 PR tree-optimization/45830
684 * stmt.c (expand_switch_using_bit_tests_p): New function.
685 (expand_case): Use it.
686 * tree.h (expand_switch_using_bit_tests_p): New prototype.
687 * tree-switch-conversion.c (struct switch_conv_info): Add
688 bit_test_uniq, bit_test_count and bit_test_bb fields.
689 (check_range): Fix a comment.
690 (check_process_case): Compute bit_test_uniq and bit_test_count.
691 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
693 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
694 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
695 (array_value_type): New function.
696 (build_one_array): Use it, if it returned different type,
697 fold_convert all constructor fields and convert back to the
698 wider type in the generated code.
699 (process_switch): Initialize bit_test_uniq, bit_test_count and
700 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
703 2010-11-19 Michael Matz <matz@suse.de>
705 PR tree-optimization/46077
706 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
708 2010-11-19 Anatoly Sokolov <aesok@post.ru>
710 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
711 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
713 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
715 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
717 * mode-switching.c (optimize_mode_switching): Use
718 FOR_BB_INSNS instead of open-coded loop.
719 * cfgrtl.c (redirect_branch_edge): Ditto.
721 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
724 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
725 to accomodate 32 bit HOST_WIDE_INT.
726 (m68hc11_emit_logical): Remove unused variable insn.
727 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
728 this_insn_uses_iy before use.
731 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
733 2010-11-19 Joseph Myers <joseph@codesourcery.com>
736 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
737 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
739 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
741 * doc/extend.texi (Function attributes): Document PowerPC target
742 attributes that are supported.
743 (Pragmas): Document that PowerPC now supports target pragmas.
745 * doc/options.texi (TargetVariable): Document TargetVariable,
746 HeaderInclude, and SourceInclude.
748 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
749 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
752 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
753 SourceInclude directives. Fix a cut+paste error with target save
754 enum variables. Sort enums in the structures after ints and
756 * opth-gen.awk: Ditto.
758 * configure.ac: Add support for HeaderInclude and SourceInclude option
759 directives to add the appropriate files to the dependency lists.
760 * configure: Regenerate.
761 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
762 (OPTIONS_C_EXTRA): New variable for SourceInclude.
763 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
764 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
765 (gcc-options.o): Ditto.
766 * opt-include.awk: New awk script to handle HeaderInclude and
769 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
770 gets saved in the target options.
771 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
772 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
773 (-mprototype): Ditto.
776 (-msecure-plt): Ditto.
778 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
779 (-mpowerpc-gfxopt): Ditto.
794 (-mno-update): Ditto.
795 (-mavoid-indexed-addresses): Ditto.
796 (-mtls-markers): Ditto.
797 (-msched-epilog): Ditto.
798 (-msched-prolog): Ditto.
799 (-maix-struct-return): Ditto.
800 (-msvr4-struct-return): Ditto.
801 (-mxl-compat): Ditto.
802 (-mrecip-precision): Ditto.
803 (-mfp-in-toc): Ditto.
804 (-msum-in-toc): Ditto.
806 (-mblock-move-inline-limit=): Ditto.
810 (-mgen-cell-microcode): Ditto.
811 (-mwarn-cell-microcode): Ditto.
812 (-mwarn-altivec-long): Ditto.
813 (-mprioritize-restricted-insns=): Ditto.
814 (-msingle-float): Ditto.
815 (-mdouble-float): Ditto.
816 (-msimple-fpu): Ditto.
817 (-mxilinx-fpu): Ditto.
818 * config/rs6000/aix64.opt (-mpe): Ditto.
820 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
821 (rs6000_cpu): Move variable to be a target variable. Rename
822 cmodel to rs6000_current_cmodel because of macro conflict. Merge
823 -mdebug=<xxx> variables into a single int.
824 (rs6000_always_hint): Ditto.
825 (rs6000_sched_groups): Ditto.
826 (rs6000_align_branch_targets): Ditto.
827 (rs6000_sched_costly_dep): Ditto.
828 (rs6000_sched_insert_nops): Ditto.
829 (rs6000_long_double_type_size): Ditto.
830 (rs6000_ieeequad): Ditto.
831 (rs6000_altivec_abi): Ditto.
833 (rs6000_spe_abi): Ditto.
834 (rs6000_float_gprs): Ditto.
835 (rs6000_darwin64_abi): Ditto.
836 (can_override_loop_align): Ditto.
837 (rs6000_sdata): Ditto.
838 (rs6000_tls_size): Ditto.
839 (rs6000_current_abi): Ditto.
840 (rs6000_traceback): Ditto.
841 (rs6000_alignment_flags): Ditto.
842 (rs6000_current_cmodel): Ditto.
843 (rs6000_recip_control): Ditto.
844 (rs6000_cpu_index): Ditto.
845 (rs6000_tune_index): Ditto.
846 (rs6000_debug): Ditto.
847 (rs6000_target_flags_explict): Ditto.
849 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
852 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
853 cmodel. Change all uses.
855 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
856 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
857 Rename cmodel to rs6000_current_cmodel.
858 (rs6000_sched_groups): Ditto.
859 (rs6000_align_branch_targets): Ditto.
860 (rs6000_sched_costly_dep): Ditto.
861 (rs6000_sched_insert_nops): Ditto.
862 (rs6000_long_double_type_size): Ditto.
863 (rs6000_ieeequad): Ditto.
864 (rs6000_altivec_abi): Ditto.
866 (rs6000_spe_abi): Ditto.
867 (rs6000_float_gprs): Ditto.
868 (rs6000_darwin64_abi): Ditto.
869 (can_override_loop_align): Ditto.
870 (rs6000_sdata): Ditto.
871 (rs6000_tls_size): Ditto.
872 (rs6000_current_abi): Ditto.
873 (rs6000_traceback): Ditto.
874 (rs6000_alignment_flags): Ditto.
875 (rs6000_current_cmodel): Ditto.
876 (rs6000_recip_control): Ditto.
877 (rs6000_cpu_index): Ditto.
878 (rs6000_tune_index): Ditto.
879 (rs6000_debug): Ditto.
880 (rs6000_target_flags_explict): Ditto.
881 (rs6000_sched_insert_nops_str): Make static.
882 (rs6000_sched_costly_dep_str): Ditto.
883 (rs6000_recip_name): Ditto.
884 (rs6000_abi_name): Ditto.
885 (rs6000_sdata_name): Ditto.
886 (enum rs6000_traceback_name): Move to rs6000-opts.h.
887 (rs6000_parse_tls_size_option): Delete.
888 (rs6000_valid_attribute_p): New function for target attributes and
890 (rs6000_function_specific_save): Ditto.
891 (rs6000_function_specific_restore): Ditto.
892 (rs6000_function_specific_print): Ditto.
893 (rs6000_can_inline_p): Ditto.
894 (rs6000_set_current_function): Ditto.
895 (rs6000_inner_target_options): Ditto.
896 (rs6000_debug_target_options): Ditto.
897 (rs6000_pragma_target_parse): Ditto.
898 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
899 attributes and pragmas.
900 (TARGET_OPTION_SAVE): Ditto.
901 (TARGET_OPTION_RESTORE): Ditto.
902 (TARGET_OPTION_PRINT): Ditto.
903 (TARGET_CAN_INLINE_P): Ditto.
904 (TARGET_SET_CURRENT_FUNCTION): Ditto.
905 (POWER_MASKS): Move to file level scope from the
906 rs6000_option_override_internal function.
907 (POWERPC_MASKS): Ditto.
908 (ISA_*_MASKS): Ditto.
909 (struct rs6000_ptt): Ditto.
910 (processor_target_table): Ditto.
911 (rs6000_cpu_name_lookup): Map cpu name to an index in
912 processor_target_table.
913 (rs6000_debug_reg_global): Print more information on processor
914 options for -mdebug=reg.
915 (rs6000_init_hard_regno_mode_ok): Add support for target
916 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
917 Allow -mdebug=val1,val2. Rename cmodel variable.
918 (rs6000_option_override_internal): Ditto.
919 (rs6000_option_override): Ditto.
920 (rs6000_handle_option): Ditto.
921 (rs6000_conditional_register_usage): Add debug trace message.
922 (struct rs6000_opt_mask): New for target attribute/pragma support.
923 (rs6000_opt_masks): Ditto.
924 (struct rs6000_opt_var): Ditto.
925 (rs6000_opt_vars): Ditto.
926 (rs6000_previous_function): Ditto.
928 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
929 wasn't already included.
930 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
931 (enum processor_type): Ditto.
933 (enum fpu_type_t): Ditto.
935 (enum rs6000_dependence_cost): Ditto.
936 (enum rs6000_nop_insertion): Ditto.
937 (enum group_termination): Ditto.
938 (rs6000_long_double_type_size): Ditto.
939 (rs6000_ieeequad): Ditto.
940 (rs6000_altivec_abi): Ditto.
941 (rs6000_spe_abi): Ditto.
943 (rs6000_float_gprs): Ditto.
944 (rs6000_alignment_flags): Ditto.
945 (rs6000_sched_insert_nops): Ditto.
946 (enum rs6000_vector): Ditto.
947 (enum rs6000_abi): Ditto.
948 (rs6000_current_opt): Ditto.
949 (rs6000_debug_*): Delete.
950 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
951 (TARGET_DEBUG*): Ditto.
953 * config/rs6000/rs6000-opts.h: New header file to define the enums
954 that are used in target variables that are now defined in rs6000.opt.
956 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
958 (rs6000_sdata): Ditto.
959 (rs6000_abi_name): Delete.
960 (rs6000_sdata_name): Ditto.
961 (rs6000_tls_size_string): Ditto.
963 2010-11-19 Joseph Myers <joseph@codesourcery.com>
965 * common.opt (debug_struct_ordinary, debug_struct_generic): New
967 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
968 should_emit_struct_debug): Move from opts.c.
969 * flag-types.h (enum debug_struct_file): Move from opts.c.
970 * flags.h (should_emit_struct_debug): Remove.
971 (base_of_path): Declare.
972 (set_struct_debug_option): Add gcc_options parameter.
973 * optc-gen.awk, opth-gen.awk: Handle array variables.
974 * opts.c (enum debug_struct_file, debug_struct_ordinary,
975 debug_struct_generic): Remove.
976 (set_struct_debug_option): Add gcc_options parameter.
977 (base_of_path): Remove static.
978 (main_input_basename, main_input_baselength, matches_main_base,
979 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
981 * toplev.c (main_input_basename, main_input_baselength): Define
983 * toplev.h (main_input_basename, main_input_baselength): Declare
986 2010-11-19 Joseph Myers <joseph@codesourcery.com>
988 * common.opt (flag_instrument_functions_exclude_functions,
989 flag_instrument_functions_exclude_files): New Variable definitions.
990 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
991 * gimplify.c (char_p): Declare type and vectors.
992 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
993 * opts.c (flag_instrument_functions_exclude_functions,
994 flag_instrument_functions_exclude_files): Remove.
995 (add_comma_separated_to_vector): Take void **.
996 (flag_instrument_functions_exclude_p): Move to gimplify.c.
997 (common_handle_option): Use options structure for
998 -finstrument-functions-exclude- options.
1000 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1002 * doc/options.texi (Var): Document effects of Defer.
1004 * opt-functions.awk (var_type, var_set): Handle deferred options.
1005 * opts-common.c (set_option): Handle CLVC_DEFER.
1006 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
1007 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
1008 fstack-limit-symbol=): Mark as deferred.
1009 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
1011 (print_filtered_help): Don't report state of CLVC_DEFER options.
1012 (common_handle_option): Move code for OPT_fcall_used_,
1013 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
1014 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
1015 OPT_fstack_limit_symbol_ to opts-global.c.
1016 (option_enabled, get_option_state): Handle CLVC_DEFER.
1017 * opts.h: Include vec.h.
1018 (enum cl_var_type): Add CLVC_DEFER.
1019 (cl_deferred_option): Define type and vectors.
1020 (handle_common_deferred_options): Declare.
1021 * opts-global.c: New.
1022 * toplev.c (toplev_main): Call handle_common_deferred_options
1023 * Makefile.in (OPTS_H): Include $(VEC_H).
1024 (OBJS-common): Include opts-global.o.
1025 (opts.o): Update dependencies.
1026 (opts-global.o): Add dependencies.
1028 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1030 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
1031 to objc_declare_protocols.
1033 2010-11-19 Richard Guenther <rguenther@suse.de>
1036 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
1037 IDENTIFIERs do not stream TREE_TYPE.
1038 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
1040 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
1042 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
1044 2010-11-19 Jakub Jelinek <jakub@redhat.com>
1047 * dwarf2out.c (const_ok_for_output_1): Don't complain about
1048 non-delegitimized TLS UNSPECs.
1050 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
1051 Ian Lance Taylor <iant@google.com>
1053 * config/darwin-c.c (darwin_additional_format_types): Export.
1055 2010-11-18 Paul Koning <ni1d@arrl.net>
1057 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
1060 2010-11-18 Paul Koning <ni1d@arrl.net>
1062 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
1063 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
1064 * config/pdp11/pdp11.opt (-mabshi): Delete.
1066 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
1068 * resource.h (struct resources): Fix typo in the comment.
1070 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
1073 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
1075 2010-11-18 Richard Henderson <rth@redhat.com>
1078 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
1079 maybe_copy_epilogue_insn; handle prologue insns as well.
1080 * rtl.h, cfglayout.c: Update for rename.
1081 * recog.c (peep2_attempt): Copy prologue/epilogue data for
1082 RTX_FRAME_RELATED_P insns.
1084 2010-11-18 Jakub Jelinek <jakub@redhat.com>
1087 * builtins.c (fold_builtin_printf): Don't copy and modify string
1088 before build_string_literal, instead modify what
1089 build_string_literal returned.
1091 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1094 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
1095 REALPART_EXPR and IMAGPART_EXPR.
1097 2010-11-18 Richard Guenther <rguenther@suse.de>
1099 PR tree-optimization/46172
1100 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
1102 (slpeel_tree_peel_loop_to_edge): Call it.
1104 2010-11-18 Jeff Law <law@redhat.com>
1106 PR middle-end-optimization/46297
1107 * postreload.c (reload_combine_note_store): Deal with embedded
1108 side effects in MEM expressions.
1110 2010-11-18 Richard Guenther <rguenther@suse.de>
1113 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
1114 when checking is not enabled.
1116 2010-11-18 Richard Guenther <rguenther@suse.de>
1119 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
1121 (gimple_register_canonical_type): Also cache the canoncial type
1122 for non type leaders.
1124 2010-11-18 Richard Guenther <rguenther@suse.de>
1126 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
1128 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
1131 * sel-sched-ir.c (init_expr): Use the correct type for
1133 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
1135 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1137 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
1138 as well as -mrelocatable at the same time.
1140 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
1143 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
1144 Call the clz builtin.
1146 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
1147 Steve Ellcey <sje@cup.hp.com>
1150 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1151 if section attribute used.
1153 2010-11-17 Jan Hubicka <jh@suse.cz>
1155 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
1156 expand errno setting variant when optimizing for size.
1158 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
1160 * postreload.c (reload_combine): Call control_flow_insn_p only once.
1161 Reverse backward loop. Fix formatting issues.
1163 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
1165 * c-parser.c (c_token_is_qualifier,
1166 c_parser_next_token_is_qualifier): New.
1167 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
1168 Improve error message on specs->tagdef_seen_p.
1169 (c_parser_struct_or_union_specifier): Improve error recovery.
1170 (c_parser_declspecs): Move exit condition on C_ID_ID early.
1171 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
1172 using c_parser_next_token_is_qualifier; extend it to cover
1173 a ctsk_tagdef typespec and !typespec_ok in general.
1175 2010-11-17 Richard Guenther <rguenther@suse.de>
1177 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
1178 (gimple_mod_pow2_value_transform): Likewise.
1179 (gimple_mod_subtract_transform): Likewise.
1181 2010-11-17 Richard Guenther <rguenther@suse.de>
1184 * gimple.c (gimple_register_canonical_type): Make sure to only
1185 make type leaders canonical types.
1187 2010-11-17 Michael Matz <matz@suse.de>
1189 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
1190 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
1191 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
1192 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
1193 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
1194 (pass_build_ssa): ... but here.
1195 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
1196 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
1197 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
1198 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
1199 * predict.c (rebuild_frequencies): Ditto.
1200 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
1201 * emit-rtl.c (verify_rtl_sharing): Ditto.
1202 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
1203 * tree-ssa-live.c (remove_unused_locals): Ditto.
1204 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
1205 * tree-ssa.c (pass_early_warn_uninitialized,
1206 execute_update_addresses_taken, pass_update_address_taken): Ditto.
1207 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
1208 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
1209 * passes.c (pass_postreload, execute_todo): Ditto.
1210 * tree-ssanames.c (pass_release_ssa_names): Ditto.
1212 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1214 * doc/invoke.texi (-dy): Remove.
1215 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
1216 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
1217 * langhooks.c (lhd_do_nothing_i): Remove.
1218 * langhooks.h (lang_hooks.parse_file): Take no arguments.
1219 * toplev.c (set_yydebug): Remove.
1220 (compile_file): Update call to lang_hooks.parse_file.
1221 (decode_d_option): Don't handle -dy.
1223 2010-11-17 Jakub Jelinek <jakub@redhat.com>
1225 PR rtl-optimization/46440
1226 * combine.c (update_cfg_for_uncondjump): When changing
1227 an indirect jump into unconditional jump, remove BARRIERs
1230 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1232 * opts.c (target_handle_option): Do not assert that loc ==
1235 2010-11-17 Jakub Jelinek <jakub@redhat.com>
1236 Richard Guenther <rguenther@suse.de>
1239 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1240 call_may_clobber_ref_p_1): Return true for __sync_* and some
1241 OpenMP builtins that act as threading barriers.
1243 2010-11-17 Richard Guenther <rguenther@suse.de>
1245 PR tree-optimization/46498
1246 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
1248 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1250 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
1251 (xtensa_function_arg_boundary): ...this.
1252 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
1253 thinko in declaration.
1254 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
1255 number of parameters to picochip_function_arg_boundary.
1256 (picochip_arg_advance): Likewise.
1258 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1261 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
1262 under check for type.
1264 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
1266 * ifcvt.c (dead_or_predicable): Fix typo.
1268 2010-11-16 Richard Henderson <rth@redhat.com>
1270 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
1271 * config/s390/s390.opt (mfused-madd): Remove.
1272 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
1273 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
1274 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
1275 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
1277 2010-11-16 Richard Henderson <rth@redhat.com>
1279 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
1280 * config/rs6000/rs6000.opt (mfused-madd): Remove.
1281 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
1282 (*altivec_vmaddfp_1): Remove.
1283 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
1284 (altivec_mulv4sf3): Expand to FMA directly.
1285 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
1286 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
1287 * config/rs6000/paired.md (paired_madds0): Use FMA.
1288 (paired_madds1): Likewise.
1289 (*paired_madd): Rename from paired_madd; use FMA.
1290 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
1291 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1292 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
1293 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
1294 (rs6000_emit_madd): Use fma_optab.
1295 (rs6000_emit_msub): Use fms_optab.
1296 (rs6000_emit_nmsub): Expand the FMA pattern directly.
1297 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
1298 (*fmasf4_fpr): Rename from fmasf4_fpr.
1299 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
1300 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
1301 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
1302 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
1303 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
1304 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
1305 (*fmadf4_fpr): Rename from fmadf4_fpr.
1306 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
1307 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
1308 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
1309 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
1310 (fmasf4, fmadf4): Macroize into...
1311 (fma<FMA_F>4): ... here.
1312 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
1313 (nfma<FMA_F>4, nfms<FMA_F>4): New.
1314 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
1316 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
1317 (*vsx_fmadd<mode>4_1): Remove.
1318 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
1319 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
1320 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
1321 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
1322 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
1323 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
1324 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
1326 2010-11-16 Richard Henderson <rth@redhat.com>
1328 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
1329 (fmasf4, fnmadf4, fnmasf4): Likewise.
1330 (unnamed plus+mult insns and splitters): Delete.
1332 2010-11-16 Richard Henderson <rth@redhat.com>
1334 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
1335 (fnma<VSF>4): Rename from fnms_<VSF>.
1336 (fms<VSF>4): Rename from fms_<VSF>.
1337 (fma<VDF>4): Rename from fma_<VDF>.
1338 (fms<VDF>4): Rename from fms_<VDF>.
1339 (nfma<VDF>4): Rename from fnma_<VDF>.
1340 (nfms<VDF>4): Rename from fnms_<VDF>.
1341 (fnma<VDF>4, fnms<VDF>4): New expanders.
1342 (floatunsdisf2): Update for the renames.
1343 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
1344 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
1346 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
1348 PR rtl-optimization/46490
1349 * combine.c (expand_compound_operation): Fix thinko.
1351 2010-11-16 Richard Henderson <rth@redhat.com>
1354 * recog.c (peep2_attempt): Convert frame-related info when possible.
1355 (peep2_fill_buffer): Allow frame-related insns into the buffer.
1356 (peephole2_optimize): Allow peep2_attempt to fail.
1358 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
1360 PR rtl-optimization/46315
1361 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
1362 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
1364 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
1365 (remove_reg_equal_equiv_notes_for_defs): ...this.
1366 (delete_unmarked_insns): Adjust to above renaming.
1367 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
1368 referring to registers set in the insns being moved, if any.
1370 * df-core.c (df_ref_dump): New function extracted from...
1371 (df_refs_chain_dump): ...here. Call it.
1372 (df_regs_chain_dump): Likewise.
1373 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
1374 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
1376 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
1378 PR rtl-optimization/46395
1379 * postreload.c (reload_combine): Invalidate register use
1380 information on all control flow insns.
1382 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
1383 LABEL_REF in UNSPEC operand.
1385 2010-11-16 Jan Hubicka <jh@suse.cz>
1387 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
1388 when !flag_toplevel_reorder do not remove unless variable is
1389 COMDAT or ARTIFICIAL.
1390 * ipa.c (varpool_can_remove_if_no_refs): ... here.
1391 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
1392 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
1393 * varpool.c (decide_is_variable_needed): Do not handle visibility
1395 (varpool_finalize_decl): Likewise.
1396 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
1397 update outdated comment on DECL_RTL_SET_P check.
1399 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1401 * config/sol2.h (NM_FLAGS): Define.
1402 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
1403 * doc/tm.texi: Update.
1405 2010-11-16 Nick Clifton <nickc@redhat.com>
1407 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
1408 (msubsf4): Rename to fmssf4, and use fma.
1409 (nmaddsf4): Rename to fnmasf4 and use fma.
1410 (nmsubsf4): Rename to fnmssf4 and use fma.
1412 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
1415 * config/score/score3.c (score3_return_in_memory): Constify arguments.
1416 (score3_in_small_data_p, score3_function_value): Likewise.
1417 (score3_trampoline_init): Use LCT_NORMAL.
1418 (score3_print_operand): Initialize code as UNKNOWN.
1419 * config/score/predicates.md (score_load_multiple_operation):
1420 Remove unused variable.
1421 (score_store_multiple_operation): Likewise.
1422 * config/score/score7.c (score7_return_in_memory): Constify arguments.
1423 (score7_in_small_data_p, score7_function_value): Likewise.
1424 (score7_trampoline_init): Use LCT_NORMAL.
1425 (score7_print_operand): Initialize code as UNKNOWN.
1426 * config/score/score3.h (score3_return_in_memory): Update prototype.
1427 (score3_in_small_data_p, score3_function_value): Likewise.
1428 * config/score/score-protos.h (score_function_value): Likewise.
1429 * config/score/score7.h (score7_return_in_memory): Update prototype.
1430 (score7_in_small_data_p, score7_function_value): Likewise.
1431 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
1432 (score_return_in_memory, score_pass_by_reference): Constify arguments.
1433 (score_output_mi_thunk, score_function_prologue): Don't return a value.
1434 (score_function_epilogue, score_in_small_data_p): Likewise.
1435 (score_option_override, score_asm_trampoline_template): Likewise.
1436 (score_trampoline_init, score_print_operand): Likewise.
1437 (score_print_operand_address, score_prologue): Likewise.
1438 (score_epilogue, score_call, score_call_value): Likewise.
1439 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
1440 (score_function_arg_advance): Likewise. Make static.
1441 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
1442 (score_function_arg, score_legitimate_address_p): Make static.
1443 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
1444 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
1445 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
1446 Allow (W) == HOST_BITS_PER_WIDE_INT.
1449 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
1450 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
1452 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1454 * config/arc/arc.c: Delete pasto.
1455 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
1457 2010-11-16 Anatoly Sokolov <aesok@post.ru>
1459 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
1460 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1461 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
1462 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1463 (mn10300_preferred_reload_class,
1464 mn10300_preferred_output_reload_class): New functions.
1466 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1468 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
1469 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
1470 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
1471 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
1473 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1475 * builtins.c (std_gimplify_va_arg_expr): Use
1476 targetm.calls.function_arg_boundary.
1477 * function.c (assign_parms, locate_and_pad_parm): Likewise.
1478 * calls.c (struct arg_data): Update comment.
1479 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
1480 * target.def (function_arg_boundary): Define.
1481 * targhooks.h (default_function_arg_boundary): Declare.
1482 * targhooks.c (default_function_arg_boundary): Define.
1483 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
1484 TARGET_FUNCTION_ARG_BOUNDARY.
1485 (FUNCTION_ARG_BOUNDARY): Delete.
1486 (TARGET_FUNCTION_ARG_BOUNDARY): New.
1487 * doc/tm.texi: Regenerate.
1488 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
1489 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
1490 * config/arc/arc.c (arc_function_arg_boundary): Define.
1491 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1492 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
1493 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
1494 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
1495 (arm_function_arg_boundary): Define.
1496 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1497 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
1498 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
1499 * config/frv/frv.c (frv_function_arg_boundary): Make static.
1500 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1501 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
1502 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
1503 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
1504 (ix86_compat_function_arg_boundary): Take and return unsigned int.
1505 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1506 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
1507 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
1508 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
1509 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1510 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
1511 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
1512 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1513 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
1514 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
1515 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
1516 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1517 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
1518 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
1519 * config/mips/mips.c (mips_function_arg_boundary): Make static.
1520 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1521 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
1522 * config/pa/pa.c (pa_function_arg_boundary): Define.
1523 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1524 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
1525 * config/picochip/picochip-protos.h
1526 (picochip_get_function_arg_boundary): Delete.
1527 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
1529 (picochip_function_arg_boundary): ...this. Make static.
1530 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
1531 (picochip_arg_advance): Adjust.
1532 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1533 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
1534 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
1535 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
1536 (rs6000_function_arg_boundary): ...this. Make static.
1537 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
1538 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1539 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
1540 * config/rx/rx.c (rx_function_arg_boundary): Define.
1541 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1542 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
1543 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
1544 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1545 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
1546 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
1547 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
1548 (xtensa_function_arg_boundary): ...this. Make static.
1549 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1551 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1553 * expr.c (alignment_for_piecewise_move): New function.
1554 (widest_int_mode_for_size): New function.
1555 (move_by_pieces, move_by_pieces_ninsns): Call them.
1556 (can_store_by_pieces, store_by_pieces_1): Likewise.
1558 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1560 * gcc.c (char_p): Define. Define a VEC of it.
1561 (n_linker_options, n_assembler_options, n_preprocessor_options):
1563 (linker_options, assembler_options, preprocessor_options): Convert
1565 (add_preprocessor_option): Adjust.
1566 (add_assembler_option): Adjust.
1567 (add_linker_option): Adjust.
1568 (do_specs_vec): New function.
1569 (do_spec_1): Call it. Adjust for new types.
1571 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1573 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
1574 (sreal.o, statistics.o, stringpool.o): Likewise.
1576 2010-11-16 Richard Guenther <rguenther@suse.de>
1578 PR tree-optimization/44545
1579 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
1580 statements are not reassociatable.
1581 (reassociate_bb): Likewise.
1583 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1585 * bitmap.c: Delete unnecessary includes.
1586 * ebitmap.c: Likewise.
1587 * et-forest.c: Likewise.
1588 * sreal.c: Likewise.
1589 * statistics.c: Likewise.
1590 * stringpool.c: Likewise.
1591 * double-int.c: Add comment for inclusion of tm.h.
1593 2010-11-16 Richard Guenther <rguenther@suse.de>
1595 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
1596 (visit_nary_op): ... this.
1597 (visit_binary_op): Remove.
1598 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
1600 2010-11-16 Richard Guenther <rguenther@suse.de>
1603 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
1605 2010-11-16 Nick Clifton <nickc@redhat.com>
1607 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
1610 2010-11-15 Richard Henderson <rth@redhat.com>
1612 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
1613 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
1616 2010-11-15 Richard Henderson <rth@redhat.com>
1618 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
1619 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
1622 2010-11-15 Richard Henderson <rth@redhat.com>
1624 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
1625 and *mulsubsf4 respectively. Use fma rtx_code.
1627 2010-11-15 Joseph Myers <joseph@codesourcery.com>
1629 * gcc.c: Include "vec.h".
1630 (argbuf): Make into a VEC.
1631 (argbuf_length, argbuf_index): Remove.
1632 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
1633 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
1634 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
1635 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
1636 (gcc.o): Depend on $(VEC_H).
1638 2010-11-15 Richard Henderson <rth@redhat.com>
1640 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
1641 via FMA if unsafe math.
1642 (insert_var_expansion_initialization): Handle FMA.
1643 (combine_var_copies_in_loop_exit): Likewise.
1645 2010-11-15 Richard Henderson <rth@redhat.com>
1647 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
1648 * config/ia64/ia64.opt: Remove mfused-madd.
1649 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
1650 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
1651 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
1652 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
1653 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
1654 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
1655 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
1656 (fmav2sf4): Rename from fpma; use FMA code.
1657 (fmsv2sf4): Rename from fpms; use FMA code.
1658 (fnmav2sf4): Rename from *fpnma; use FMA code.
1659 * config/ia64/ia64.md (MODE_SDF): New iterator.
1660 (suffix): New mode attribute.
1661 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
1662 (fmssf4): Rename from *fmssf4.
1663 (fnmasf4): Rename from *nfmasf4.
1664 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
1665 (*nmadddf4, *nmadddf4_truncsf): Remove.
1666 (fmsdf4): Rename from *fmsdf4.
1667 (fnmadf4): Rename from *nfmadf4.
1668 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
1669 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
1670 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
1671 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
1672 (fmsxf4): Rename from *fmsxf4.
1673 (fnmaxf4): Rename from *nfmaxf4.
1674 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
1675 (*fnmaxf_trunc_<MODE_SDF>): New.
1677 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1679 PR tree-optimization/46461
1680 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
1683 2010-11-15 Ian Lance Taylor <iant@google.com>
1685 * godump.c: New file.
1686 * common.opt (fdump-go-spec=): New option.
1687 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
1688 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
1689 (TYPE_SYMTAB_IS_DIE): Define.
1690 (struct tree_type): Change GTY for symtab field to use
1691 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
1692 to pick the union field.
1693 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
1694 (dump_go_spec_init): Declare.
1695 * toplev.c (process_options): Handle flag_dump_go_spec.
1696 * debug.c: Include "tree.h".
1697 (do_nothing_debug_hooks): Set tree_type_symtab_field.
1698 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1699 * dbxout.c (dbx_debug_hooks): Likewise.
1700 (xcoff_debug_hooks): Likewise.
1701 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1702 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
1703 SDB_DEBUGGING_INFO is not defined.
1704 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
1705 (Overall Options): Document -fdump-go-spec.
1706 * Makefile.in (OBJS-common): Add godump.o.
1707 (debug.o): Add dependency on $(TREE_H).
1708 (godump.o): New target.
1709 (GTFILES): Add $(srcdir)/godump.c.
1711 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1714 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
1715 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
1716 style < 0, add REG_FRAME_RELATED_EXPR.
1719 * rtl.h (vt_equate_reg_base_value): New prototype.
1720 * alias.c (vt_equate_reg_base_value): New function.
1721 * var-tracking.c (vt_init_cfa_base): Use it.
1723 2010-11-15 Jan Hubicka <jh@suse.cz>
1724 Diego Novillo <dnovillo@google.com>
1727 * doc/lto.texi: Add.
1728 * doc/gccint.texi: Add reference to lto.texi.
1729 * doc/invoke.texi: Update user documentation for LTO.
1730 Move internal flags to lto.texi
1732 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1734 * c-typeck.c (build_unary_op): Use
1735 objc_build_incr_expr_for_property_ref to build the pre/post
1736 increment/decrement of an Objective-C property ref, and skip the
1737 lvalue_or_else check in that case.
1739 2010-11-15 Martin Jambor <mjambor@suse.cz>
1741 PR tree-optimization/46349
1742 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
1743 (contains_vce_or_bfcref_p): Likewise.
1744 (sra_modify_assign): Use them.
1746 2010-11-15 Richard Guenther <rguenther@suse.de>
1748 PR tree-optimization/46467
1749 * tree-ssa-structalias.c (do_structure_copy): Properly treat
1750 variables without subvars.
1752 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
1754 * config/picochip/picochip.c (file header): Picochip name change.
1755 * config/picochip/picochip.md (file header): Likewise.
1756 * config/picochip/predicates.md (file header): Likewise.
1757 * config/picochip/dfa_space.md (file header): Likewise.
1758 * config/picochip/dfa_speed.md (file header): Likewise.
1759 * config/picochip/picochip.h(file header): Likewise.
1760 * config/picochip/constraints.md (file header): Likewise.
1761 * config/picochip/picochip-protos.h (file header): Likewise.
1762 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
1763 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
1764 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
1765 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
1766 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
1767 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
1768 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
1769 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
1770 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
1771 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
1772 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
1773 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
1774 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
1775 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
1777 2010-11-15 Richard Guenther <rguenther@suse.de>
1780 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
1782 2010-11-15 Nick Clifton <nickc@redhat.com>
1784 * config/stormy16/stormy16.c (direct_return): Do not generate a
1785 direct return for interrupt handlers.
1787 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
1789 * Makefile.in (tm.texi): Replace with rule for:
1790 ($(srcdir)/doc/tm.texi).
1791 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
1792 $(srcdir)/doc/tm.texi .
1793 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
1797 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
1800 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
1801 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
1804 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
1806 2010-11-15 Richard Guenther <rguenther@suse.de>
1809 * lto-opts.c (lto_write_options): Write -fexceptions even if
1810 not set by the user.
1812 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1815 * c-decl.c (declspecs_add_type): Make variables with error types
1817 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
1818 do not start a declaration before an Objective-C foreach.
1819 (c_parser_declaration_or_fndef): Improve recovery after unknown
1821 (c_parser_for_statement): Hoist entrance of "foreach context"
1822 before ifs, add corresponding reset where it was missing. Do
1823 not set objc_could_be_foreach_context for C.
1825 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
1827 PR tree-optimization/45722
1828 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
1829 this is a reference to a component.
1830 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
1831 (ipa_note_param_call): Adjust comment.
1833 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
1835 * config/mips/mips.c (machine_function): Remove
1836 initialized_mips16_gp_pseudo_p.
1837 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
1838 detect whether a pseudo has already been created. Unconditionally
1839 create a new one if not.
1840 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
1841 expanding to rtl. Create a new pseudo otherwise, if allowed.
1843 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
1846 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
1847 * tm.texi: Regenerated.
1848 * output.h (decode_reg_name_and_count): Declare.
1849 * varasm.c (decode_reg_name_and_count): New function.
1850 (decode_reg_name): Reimplement using decode_reg_name_and_count.
1851 * reginfo.c (fix_register): Use decode_reg_name_and_count and
1852 iterate over all regs used.
1853 * stmt.c (expand_asm_operands): Likewise.
1854 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
1855 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
1856 multiple machine registers.
1858 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
1860 * stor-layout.c (place_union_field): Do not put location information
1861 on offset expressions.
1862 (place_field): Likewise.
1863 (finalize_record_size): Likewise on size expressions.
1864 (finalize_type_size): Likewise.
1865 (layout_type): Likewise.
1867 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
1870 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
1871 * df-core.c (df_set_bb_dirty_nonrl): Remove.
1872 * df.h (df_set_bb_dirty_nonlr): Likewise.
1874 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
1876 * config/mips/mips.md (call_internal): Pass curr_insn to
1878 (call_internal_direct): Ditto.
1879 (call_value_internal): Ditto.
1880 (call_value_internal_direct): Ditto.
1881 (call_value_multiple_internal): Ditto.
1882 * config/mips/mips.c (mips_split_call): Do not copy
1883 CALL_INSN_FUNCTION_USAGE here.
1885 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
1887 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
1888 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
1889 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
1890 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
1891 (TUNE_LOONGSON_3A): Define.
1892 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
1893 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
1894 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
1895 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
1896 (mips_rtx_cost_data): Add Loongson-3A.
1898 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
1900 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
1903 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
1905 * dwarf2out.c (macinfo_entry): New struct.
1906 (output_comp_unit): Emit the section start label here and flag that we
1907 will emit an info section.
1908 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
1910 (dwarf2out_end_source_file): Likewise.
1911 (dwarf2out_define): Likewise.
1912 (dwarf2out_undef): Likewise.
1913 (output_macinfo): New.
1914 (dwarf2out_init): Do not emit debug section switches here, allocate a
1915 vec for macinfo, when required.
1916 (dwarf2out_finish): First switch to debug_abbrev_section here.
1917 debug_line_section, debug_macinfo_section, Likewise.
1918 Check that the pubtypes table has at least one unpruned entry before
1921 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1924 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
1925 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
1927 (c_parser_compound_statement_nostart, c_parser_label,
1928 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
1929 (c_parser_declaration_or_fndef): Detect the case now matched by
1930 c_parser_next_tokens_start_declaration, give error and correct it.
1932 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1934 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
1935 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
1937 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
1938 (shadow_tag_warned, check_compound_literal_type): Adjust
1939 uses of tag_defined_p.
1940 (declspecs_add_type): Set typespec_kind.
1941 * c-parser.c (c_parser_declaration_or_fndef,
1942 c_parser_declspecs, c_parser_struct_declaration,
1943 c_parser_parameter_declaration, c_parser_type_name,
1944 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
1946 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
1947 tag_defined_p, pass ctsk_firstref through.
1949 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
1951 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
1952 (struct format_wanted_type): Replace field "name" with "kind", add
1953 "format_start" and "format_length".
1954 (check_format_info_main): Fill in new fields. Fill in
1955 FORMAT_WANTED_TYPES even for missing arguments. Move checks
1956 after the final NUL outside the while loop. Do not include
1957 width and precision modifiers in the format_start/format_length
1959 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
1960 arguments. Compute WANTED_TYPE first so that format_type_warning
1961 can be called for missing arguments. Adjust calls to
1962 format_type_warning.
1963 (format_type_warning): Fetch as much information as possible
1964 from format_wanted_type. Adjust printing now that every
1965 warning has a "descr", as well as for missing argument warnings
1966 and to include % sign for format specifiers.
1968 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
1970 PR rtl-optimization/46204
1971 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
1972 Update all callers. Do not recompute topological order. Adjust
1973 fallthrough edges following a degenerate conditional jump.
1975 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1977 * opts-common.c (control_warning_option): New.
1978 * opts.c (set_default_handlers): New.
1979 (decode_options): Use set_default_handlers and
1980 control_warning_option.
1981 (common_handle_option): Update call to enable_warning_as_error.
1982 (enable_warning_as_error): Take gcc_options parameters. Use
1983 control_warning_option.
1984 * opts.h (set_default_handlers, control_warning_option): Declare.
1986 2010-11-12 Joseph Myers <joseph@codesourcery.com>
1988 * Makefile.in (OPTS_H): Define.
1989 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
1990 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
1991 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
1992 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
1993 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
1994 * gcc.c (driver_handle_option): Take location_t parameter.
1995 (process_command, do_self_spec): Update calls to
1996 read_cmdline_option.
1997 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
1998 * langhooks.c (lhd_handle_option): Take location_t parameter.
1999 * langhooks.h (handle_option): Take location_t parameter.
2000 * lto-opts.c (lto_reissue_options): Update call to set_option.
2001 * opts-common.c (handle_option): Make static. Take location_t
2002 parameter and pass it to other functions.
2003 (handle_generated_option): Take location_t parameter and pass it
2005 (read_cmdline_option): Take location_t parameter and pass it to
2006 other functions. Use warning_at and error_at.
2007 (set_option): Take location_t parameter and pass it to other
2009 * opts.c (common_handle_option): Take location_t parameter and
2010 pass it to other functions.
2011 (enable_warning_as_error): Make static. Take location_t parameter
2012 and pass it to other functions.
2013 (lang_handle_option): Take location_t parameter and pass it to
2015 (target_handle_option): Take location_t parameter.
2016 (read_cmdline_options, maybe_default_option,
2017 maybe_default_options, default_options_optimization,
2018 decode_options): Take location_t parameter and pass it to other
2020 * opts.h: Include input.h.
2021 (struct cl_option_handler_func, decode_options, set_option,
2022 handle_generated_option, read_cmdline_option): Take location_t
2024 (handle_option, enable_warning_as_error): Remove.
2025 * toplev.c (toplev_main): Update call to decode_options.
2027 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
2029 * graphite-cloog-util.c (oppose_constraint,
2030 cloog_matrix_to_ppl_constraint,
2031 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
2032 CLooG isl uses unsigned integers. This triggered a warning.
2034 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
2037 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
2038 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
2039 (xtensa_function_arg_1): De-constify cum.
2040 (xtensa_expand_prologue): Use add_reg_note.
2043 * config/cris/cris.c (saved_regs_mentioned): Delete.
2044 (cris_reload_address_legitimized): Cast itype to enum reload_type.
2045 Remove unused variable op0p.
2046 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
2047 (cris_emit_movem_store): Use add_reg_note.
2050 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
2052 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
2054 * function.c (expand_function_end): Set the locator of the prologue on
2055 the stack checking insns.
2057 2010-11-12 Richard Henderson <rth@redhat.com>
2059 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
2060 * config/xtensa/xtensa.opt (mfused-madd): Remove.
2061 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2063 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
2064 (fnmasf4): Rename from mulsubsf3; use fma.
2066 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
2067 Richard Henderson <rth@redhat.com>
2070 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
2071 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
2074 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
2076 * opts-common.c (decode_cmdline_option): Initialize separate_args.
2078 2010-11-12 Jan Hubicka <jh@suse.cz>
2080 * doc/invoke.texi (early-inlining-insns): Update default.
2081 * params.def (early-inlining-insns): Default to 10.
2083 2010-11-12 Olivier Hainque <hainque@adacore.com>
2085 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
2087 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2089 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
2090 (SUPPORTS_INIT_PRIORITY): Define.
2092 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
2095 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
2096 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
2097 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2098 (avr_device_to_devicelib): Likewise.
2099 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
2101 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
2102 (zero_extendhidi2, zero_extendsidi2): Likewise.
2103 * config/avr/avr.c (avr_num_arg_regs): Constify type.
2104 (avr_return_addr_rtx): De-constify tem.
2105 (avr_rotate_bytes): Move declarations to start of block.
2106 Don't use variable length array. Put nested if/else into block.
2108 PR rtl-optimization/46433
2109 * var-tracking.c: Include tm_p.h .
2113 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
2115 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
2116 * doc/tm.texi: Regenerate.
2119 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
2120 * config/bfin/bfin.c: Include sel-sched.h .
2121 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
2122 (expand_interrupt_handler_prologue): Remove unused variable insn.
2123 (bfin_load_pic_reg): Likewise.
2124 (bfin_rtx_costs): Make code / outer_code variables of type
2125 enum rtx_code, copied from re-named parameters.
2126 (bfin_local_alignment): Change align argument and return type
2128 (bfin_adjust_cost): Remove unused variable insn_type.
2129 Declare variables at start of block.
2130 (struct loop_info): Rename to...
2131 (struct loop_info_d).
2132 (workaround_rts_anomaly): Change type of icode to int.
2133 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
2134 with int-typed variable.
2135 (note_np_check_stores): Likewise.
2136 (trapping_loads_p): Remove unused variable pat.
2137 (bfin_expand_binop_builtin): Use expand_normal.
2138 (bfin_expand_unop_builtin): Likewise.
2139 (bfin_expand_builtin): Likewise. Set tmode before use.
2142 * final.c (split_double): Don't use BITS_PER_WORD directly in
2146 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
2150 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
2152 (xstormy16_function_arg): Dereference cum.
2153 (xstormy16_expand_builtin): Use expand_normal.
2154 Change type of omode to enum machine_mode.
2155 (combine_bnp): Rename and to and_insn.
2158 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
2161 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
2164 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
2166 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
2169 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
2171 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
2174 * common.opt (fmax-errors=): New option.
2175 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
2176 * diagnostic.h (struct diagnostic_context): Add max_errors field.
2177 * diagnostic.c (diagnostic_initialize): Initialize it.
2178 (diagnostic_action_after_output): Exit if more than max_errors
2180 * doc/invoke.texi (Warning Options): Add -fmax-errors.
2181 (-fmax-errors): Document.
2183 2010-11-11 Richard Henderson <rth@redhat.com>
2185 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
2187 2010-11-11 Richard Henderson <rth@redhat.com>
2189 * config/fused-madd.opt: New file.
2190 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
2191 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
2192 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2193 * config/i386/i386.opt (mfused-madd): Remove.
2194 * config/i386/sse.md (split_fma): Remove.
2195 (split_fms, split_fnma, split_fnms): Remove.
2197 2010-11-12 Jakub Jelinek <jakub@redhat.com>
2200 * config/i386/i386.md (*ashl<mode>3_cconly,
2201 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
2202 change nonimmediate_operand predicate to register_operand.
2204 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
2206 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
2208 2010-11-11 Jan Hubicka <jh@suse.cz>
2210 * opts.c (finish_options): Do not error on -flto-partition alone.
2212 * doc/invoke.texi (-fwhopr): Merge into -flto section.
2213 (-flto-partition): Document none.
2214 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
2215 * lto-wrapper.c: Update comment.
2216 (run_gcc): Update LTO option parsing.
2217 * opts.c (finish_options): add support -flto-partition=none
2218 (common_handle_option): Remove fwhopr.
2219 * common.opt: Turn fwhopr into flto.
2220 * collect2.c (main): Update option handling.
2221 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
2222 * ipa-split.c (execute_split_functions): Remove flag_whopr.
2223 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
2224 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
2225 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
2227 2010-11-11 Jan Hubicka <jh@suse.cz>
2229 PR tree-optimize/40436
2230 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
2231 (eliminated_by_inlining_prob): ... this one; return 50% probability
2233 (estimate_function_body_sizes): Update use of
2234 eliminated_by_inlining_prob; estimate static function size
2237 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
2240 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
2241 declare. Change type of argument four to type int.
2242 (mep_secondary_input_reload_class): Returns enum reg_class.
2243 (mep_secondary_output_reload_class): Likewise.
2244 (mep_function_value): Change types of arguments to cont_tree.
2245 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
2246 argument four to type int.
2247 (mep_secondary_input_reload_class): Returns enum reg_class.
2248 (mep_secondary_output_reload_class): Likewise.
2249 (mep_function_value): Change types of arguments to cont_tree.
2250 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
2251 mep_regno_reg_class to enum reg_class.
2253 2010-11-11 Richard Henderson <rth@redhat.com>
2255 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
2256 that the target has the exact fma operation that we matched.
2258 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2260 * reginfo.c (fix_register): Avoid inserting English word in
2261 diagnostic sentence. Use %qs for quoting and %'.
2263 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
2265 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2266 Intel processor family 6, model 0x2c.
2268 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2270 * opts.c (warning_as_error_callback,
2271 register_warning_as_error_callback): Remove.
2272 (enable_warning_as_error): Don't use warning_as_error_callback.
2273 * opts.h (register_warning_as_error_callback): Remove.
2275 2010-11-11 Richard Henderson <rth@redhat.com>
2277 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
2278 in between the MULT and the PLUS/MINUS.
2280 2010-11-11 Jakub Jelinek <jakub@redhat.com>
2283 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
2284 BLKmode mode for it.
2285 (expand_expr_real_1): Similarly for op0.
2287 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2289 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
2290 Document optional target selector.
2292 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
2294 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
2295 assembling high and low parts of size if not using 32-bit HWINT; else
2296 use DECL_SIZE_UNITS, not DECL_SIZE.
2298 2010-11-11 Martin Jambor <mjambor@suse.cz>
2300 PR tree-optimization/46383
2301 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
2303 (compute_complex_ancestor_jump_func): Likewise.
2304 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
2306 2010-11-11 Jakub Jelinek <jakub@redhat.com>
2309 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
2310 true if expr1->hash != expr2->hash.
2312 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2314 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
2315 diagnostics with lowercase letters.
2316 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
2318 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
2320 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2321 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
2323 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2324 Remove trailing ' ' from diagnostic.
2325 * config/avr/avr.c (print_operand_address): Start diagnostic with
2326 a lowercase letter and remove trailing '.'.
2327 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
2328 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
2329 with lowercase letters. Use %' in diagnostics. Remove trailing
2330 '.' from diagnostics.
2331 (bfin_handle_longcall_attribute): Use %' in diagnostic.
2332 * config/cris/cris.c (cris_split_movdx,
2333 cris_expand_pic_call_address): Start diagnostics with lowercase
2335 (cris_asm_output_label_ref): Use %' in diagnostic.
2336 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
2338 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
2340 * config/darwin-c.c (version_as_macro): Start diagnostic with a
2342 * config/darwin-driver.c (darwin_default_min_version): Use %' in
2344 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
2346 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2347 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
2349 * config/i386/i386.c (ix86_option_override_internal): Write
2350 diagnostic as a single sentence without trailing '.'. Use %' in
2352 (ix86_function_sseregparm, classify_argument): Start diagnostics
2353 with lowercase letters.
2354 (ix86_expand_prologue): Use %' in diagnostic.
2355 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
2357 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
2359 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
2361 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2362 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
2364 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
2366 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
2368 * config/microblaze/microblaze.c (microblaze_handle_option):
2369 Remove trailing '.' from diagnostic.
2370 (print_operand): Start diagnostic with a lowercase letter.
2371 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
2372 lowercase letters. Avoid '`' in diagnostics.
2373 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
2374 lowercase letters. Avoid '`' in diagnostics.
2375 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
2376 lowercase letters. Avoid '`' in diagnostics.
2377 * config/picochip/picochip.c (picochip_option_override,
2378 picochip_emit_save_register, picochip_function_arg,
2379 picochip_output_label, picochip_output_internal_label,
2380 picochip_asm_output_opcode, picochip_output_cbranch,
2381 picochip_output_compare, picochip_output_branch,
2382 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
2383 diagnostics. Start diagnostics with lowercase letters. Use %' in
2385 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
2386 "SPE" capitalization. Start diagnostic with a lowercase letter.
2387 (rs6000_handle_option): Start diagnostics with lowercase letters.
2388 (def_builtin): Remove trailing '.' from diagnostic.
2389 (rs6000_savres_routine_name): Start diagnostic with a lowercase
2391 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
2393 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
2395 * config/s390/s390.c (s390_option_override) Start diagnostics with
2396 lowercase letters. Use %' in diagnostic.
2397 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
2399 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
2401 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
2403 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
2405 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2406 * config/spu/spu.c (spu_option_override): Start diagnostics with
2407 lowercase letters. Use %qs for quoting in diagnostics.
2408 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
2409 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
2410 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
2412 * convert.c (convert_to_integer, convert_to_vector): Use %' in
2414 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
2415 letter and use "cannot" spelling.
2416 * expmed.c (extract_fixed_bit_field): Start diagnostic with
2417 lowercase letter and format as a single sentence without '.'.
2418 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
2419 Use %' in diagnostics.
2420 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2421 Use %' in diagnostics.
2422 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2423 Use %' in diagnostics.
2424 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
2425 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
2426 with lowercase letters and remove tailing '.' and '\n'.
2427 * lto-cgraph.c (input_profile_summary): Start diagnostic with
2428 lowercase letter and remove trailing '.'.
2429 (input_cgraph): Start diagnostics with lowercase letters and
2430 remove trailing '\n'.
2431 * opts.c (finish_options, common_handle_option): Start diagnostics
2432 with lowercase letters and remove trailing '.'. Fix typo in
2434 * passes.c (position_pass): Start diagnostic with lowercase letter.
2435 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
2436 register_callback, try_init_one_plugin): Start diagnostics with
2438 * reload1.c (spill_failure): Use %' in diagnostic.
2439 (gen_reload): Start diagnostic with a lowercase letter.
2440 * stor-layout.c (place_field): Start diagnostic with a lowercase
2442 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
2443 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
2444 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
2445 Start diagnostics with lowercase letters, remove trailing '.' and
2446 use %' in diagnostics.
2447 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
2448 (verify_ssa): Don't split diagnostic across two error calls.
2449 Spell out "number" and use %' in diagnostic.
2450 * value-prof.c (visit_hist, check_counter): Start diagnostics with
2453 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
2456 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
2457 (_mm_cvtpu16_ps): Ditto.
2459 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2461 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
2462 warn_larger_than, larger_than_size, warn_frame_larger_than,
2463 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
2464 default_visibility, flag_tls_default): New Variable declarations.
2465 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
2466 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
2467 (v): Declare as Common and document here.
2468 * flags.h (default_visibility, flag_generate_lto,
2469 warn_larger_than, larger_than_size, warn_frame_larger_than,
2470 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
2471 flag_shlib, flag_excess_precision_cmdline): Remove.
2472 (set_Wstrict_aliasing): Update prototype.
2473 * gcc.c (verbose_flag): Remove.
2474 (driver_handle_option): Add diagnostic_context parameter. Don't
2475 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
2477 * opts-common.c (handle_option): Pass dc to handler.
2478 * opts.c (warn_larger_than, larger_than_size,
2479 warn_frame_larger_than, frame_larger_than_size,
2480 default_visibility): Remove.
2481 (common_handle_option): Add diagnostic_context parameter.
2482 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
2483 gcc_options parameters.
2484 (lang_handle_option, target_handle_option, read_cmdline_options,
2485 decode_options): Add diagnostic_context parameters.
2486 (finish_options): Access option state through opts pointer where
2488 (common_handle_option): Access option state through opts pointer
2489 where possible. Do not set local static variable verbose. Do not
2490 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
2491 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
2492 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
2493 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
2494 OPT_fwhopr_. Do not explicitly set .opt file variables for
2495 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
2496 (set_Wstrict_aliasing): Add gcc_options parameter.
2497 * opts.h (struct cl_option_handler_func): Add diagnostic_context
2498 parameter to handler.
2499 (decode_options): Add diagnostic_context parameter.
2500 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
2501 asm_file_name, flag_generate_lto, flag_gen_aux_info,
2502 aux_info_file_name, flag_shlib, flag_tls_default,
2503 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
2504 (toplev_main): Pass global_dc to decode_options.
2505 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
2506 aux_info_file_name, asm_file_name): Remove.
2507 * tree.h (flag_tls_default): Remove.
2509 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
2512 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
2513 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
2515 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2517 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
2518 (x86_64-*-*): Likewise.
2519 * config/i386/cpuid.h: Define TBM bit.
2520 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2522 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2524 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
2525 (OPTION_MASK_ISA_TBM_UNSET): New.
2526 (ix86_handle_option): Handle -mtbm.
2527 (isa_opts): Add -mtbm.
2528 (enum pta_flags): Add PTA_TBM.
2529 (ix86_option_override_internal): Add TBM support.
2530 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
2531 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
2532 (IX86_BUILTIN_BEXTRI64): Likewise.
2533 (bdesc_args): Add TBM intrinsics.
2534 (ix86_expand_builtin): Add TBM specific case.
2535 * config/i386/i386.h (TARGET_TBM): New for TBM.
2536 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
2537 (tbm_bextri_<mode>): Likewise.
2538 (*tbm_blcfill_<mode>): Likewise.
2539 (*tbm_blci_<mode>): Likewise.
2540 (*tbm_blcic_<mode>): Likewise.
2541 (*tbm_blcmsk_<mode>): Likewise.
2542 (*tbm_blcs_<mode>): Likewise.
2543 (*tbm_blsfill_<mode>): Likewise.
2544 (*tbm_blsic_<mode>): Likewise.
2545 (*tbm_t1mskc_<mode>): Likewise.
2546 (*tbm_tzmsk_<mode>): Likewise.
2547 * config/i386/i386.opt: Add -mtbm.
2548 * config/i386/tbmintrin.h (__bextri_u32): New.
2549 (__blcfill_u32): Likewise.
2550 (__blci_u32): Likewise.
2551 (__blcic_u32): Likewise.
2552 (__blcmsk_u32): Likewise.
2553 (__blcs_u32): Likewise.
2554 (__blsfill_u32): Likewise.
2555 (__blsic_u32): Likewise.
2556 (__t1mskc_u32): Likewise.
2557 (__tzmsk_u32): Likewise.
2558 (__bextri_u64): Likewise.
2559 (__blcfill_u64): Likewise.
2560 (__blci_u64): Likewise.
2561 (__blcic_u64): Likewise.
2562 (__blcmsk_u64): Likewise.
2563 (__blcs_u64): Likewise.
2564 (__blsfill_u64): Likewise.
2565 (__blsic_u64): Likewise.
2566 (__t1mskc_u64): Likewise.
2567 (__tzmsk_u64): Likewise.
2568 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
2569 * doc/invoke.texi: Document -mtbm.
2570 * doc/extend.texi: Document TBM built-in functions.
2572 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2574 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
2575 (x86_64-*-*): Likewise.
2576 * config/i386/cpuid.h: Define BMI bit.
2577 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2579 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2581 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
2582 (OPTION_MASK_ISA_BMI_UNSET): New.
2583 (ix86_handle_option): Handle -mbmi.
2584 (isa_opts): Add -mbmi.
2585 (enum pta_flags): Add PTA_BMI.
2586 (ix86_option_override_internal): Add BMI support.
2587 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
2588 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
2589 (IX86_BUILTIN_BEXTR64): Likewise.
2590 (IX86_BUILTIN_CTZS): Likewise.
2591 (bdesc_args): Add BMI intrinsics.
2592 (ix86_expand_args_builtin): Add BMI specific cases.
2593 * config/i386/i386.h (TARGET_BMI): New for BMI.
2594 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
2595 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
2596 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
2597 (UNSPEC_TZCNT): Likewise.
2598 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
2599 (bmi_andn_<mode>): New for BMI.
2600 (bmi_bextr_<mode>): Likewise.
2601 (bmi_blsi_<mode>): Likewise.
2602 (bmi_blsmsk_<mode>): Likewise.
2603 (bmi_blsr_<mode>): Likewise.
2604 * config/i386/i386.opt: Add -mbmi.
2605 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
2606 * config/i386/bmiintrin.h (__lzcnt_u16): New.
2607 (__tzcnt_u16): Likewise.
2608 (__andn_u32): Likewise.
2609 (__bextr_u32): Likewise.
2610 (__blsi_u32): Likewise.
2611 (__blsmsk_u32): Likewise.
2612 (__blsr_u32): Likewise.
2613 (__lzcnt_u32): Likewise.
2614 (__tzcnt_u32): Likewise.
2615 (__andn_u64): Likewise.
2616 (__bextr_u64): Likewise.
2617 (__blsi_u64): Likewise.
2618 (__blsmsk_u64): Likewise.
2619 (__blsr_u64): Likewise.
2620 (__lzcnt_u64): Likewise.
2621 (__tzcnt_u64): Likewise.
2622 * doc/invoke.texi: Document -mbmi and -mno-bmi.
2623 * doc/extend.texi: Document BMI built-in functions.
2625 2010-11-10 Jan Hubicka <jh@suse.cz>
2627 PR tree-optimize/46228
2628 * doc/invoke.texi (comdat-sharing-probability): Document.
2629 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
2630 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
2632 2010-11-10 Jan Hubicka <jh@suse.cz>
2634 PR tree-optimize/46228
2635 * cgraph.c (cgraph_propagate_frequency): Fix typo.
2637 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
2639 PR tree-optimization/46414
2640 * tree-inline.c (estimate_move_cost): Check preferred vector
2641 mode for vector type.
2643 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2645 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
2647 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
2649 PR tree-optimization/45971
2650 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
2651 for phi nodes analyzable by scev.
2653 2010-11-10 Richard Guenther <rguenther@suse.de>
2655 PR tree-optimization/44964
2656 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
2658 2010-11-10 Martin Jambor <mjambor@suse.cz>
2660 PR tree-optimization/46351
2661 PR tree-optimization/46377
2662 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
2663 aggregate bit-fields.
2665 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2667 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2668 * doc/tm.texi: Regenerate.
2669 * opts-common.c (tm.h): Don't include.
2670 (target_option_translations): Remove.
2671 (decode_cmdline_options_to_array): Don't handle translating options.
2672 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
2673 * config/darwin-driver.c: Don't condition includes on
2674 CROSS_DIRECTORY_STRUCTURE.
2675 (darwin_default_min_version): Make static.
2676 (darwin_driver_init): New. Call darwin_default_min_version if not
2677 CROSS_DIRECTORY_STRUCTURE.
2678 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2679 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
2680 (ASM_SPEC): Add %{static}.
2681 (darwin_default_min_version): Don't declare.
2682 (darwin_driver_init): Declare.
2683 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
2684 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
2685 * config/darwin.opt (all_load, allowable_client,
2686 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
2687 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
2688 exported_symbols_list, filelist, findirect-virtual-calls,
2689 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
2690 framework, fterminated-vtables, gfull, gused, image_base, init,
2691 install_name, multi_module, multiply_defined,
2692 multiply_defined_unused, no_dead_strip_inits_and_terms,
2693 seg_addr_table, seg_addr_table_filename, segaddr,
2694 segs_read_only_addr, segs_read_write_addr, single_module,
2695 umbrella, unexported_symbols_list, weak_reference_mismatches,
2696 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
2697 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
2698 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
2699 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
2700 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
2701 (ASM_SPEC): Add %{static}.
2702 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2703 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2704 (DRIVER_SELF_SPECS): Handle options formerly in
2705 TARGET_OPTION_TRANSLATE_TABLE.
2706 * config/mep/mep.opt (mfar): New.
2707 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2708 (DRIVER_SELF_SPECS): Define. Handle options formerly in
2709 TARGET_OPTION_TRANSLATE_TABLE.
2710 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
2711 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2712 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
2713 ffix-and-continue, findirect-data): New.
2714 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2715 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
2716 (mnofpu): Define mask and use Report here.
2718 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2720 * config/s390/s390.c (s390_emit_prologue): Report the stack
2721 size if -fstack-usage is used.
2723 2010-11-10 Richard Guenther <rguenther@suse.de>
2725 PR tree-optimization/46398
2726 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
2728 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
2731 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
2732 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
2733 GP_REG_OR_PSEUDO_STRICT_P.
2734 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
2735 unexpected alternative.
2736 (*movsf_internal): Likewise.
2737 (indirect_jump): Replace call to non-existant function with call to
2739 (tablejump): Likewise.
2740 * config/iq2000/iq2000.c: Include df.h .
2741 (iq2000_function_arg_advance): Use CONST_CAST2.
2742 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
2743 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
2744 a non-zero function address.
2745 (iq2000_initial_elimination_offset): Add gcc_unreachable for
2746 unexpected value of FROM.
2747 (symbolic_expression_p): Delete.
2748 (iq2000_function_value): Constify func.
2749 (expand_one_builtin): Use expand_normal.
2750 (iq2000_print_operand): Don't print VALUE if calculating it failed.
2752 PR rtl-optimization/44764
2753 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
2756 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
2757 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
2758 with ATTRIBUTE_UNUSED.
2759 (valid_psw_flag): Constify parameter which.
2760 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
2763 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
2764 (mmix_dbx_register_number): Likewise.
2765 * config/mmix/mmix.c: Include df.h .
2766 (mmix_local_alignment): Change argument basic_align and return type
2768 (mmix_dbx_register_number): Change argument and return type to
2770 (mmix_expand_prologue): Use add_reg_note.
2773 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
2774 (spu_split_store): Use aform.
2775 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
2777 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2780 * doc/gty.texi (GTY Options): Clarify that variable_size produces
2781 allocators taking size in bytes, compare with length option. Add
2782 size calculation example.
2783 (Invoking the garbage collector): Ensure that sentences are
2784 followed by two spaces. Describe that pointer fields must be
2785 initialized at ggc_collect call.
2786 (Troubleshooting): New section.
2788 2010-11-09 Jan Hubicka <jh@suse.cz>
2790 PR tree-optimization/40436
2791 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
2792 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
2793 normal instructions; be sure bultin is not implemented in this file;
2794 compute non-zero return cost.
2795 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
2796 * tree-inline.h (eni_weights_d): Add return cost.
2798 2010-11-09 Joseph Myers <joseph@codesourcery.com>
2800 * c-parser.c (c_parser_struct_declaration): Handle declaration
2801 specifiers followed by CPP_CLOSE_BRACE.
2803 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2805 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
2806 split occurs before reload, and we allocate memory at the time of
2807 the split, not during expansion. Add attributes.
2808 (floatsi<mode>2_lfiwax_mem): Ditto.
2809 (floatunssi<mode>2_lfiwzx): Ditto.
2810 (floatunssi<mode>2_lfiwzx_mem): Ditto.
2811 (floatsidf2): Ditto.
2812 (floatunssisf2): Ditto.
2813 (floatunssidf2): Ditto.
2814 (fix_trunc<mode>si2): Ditto.
2815 (fix_trunc<mode>si2_stfiwx): Ditto.
2816 (fix_trunc<mode>si2_internal): Ditto.
2817 (fix_trunc<mode>si2): Ditto.
2818 (fix_trunc<mode>di2): Ditto.
2819 (fixuns_trunc<mode>si2_stfiwx): Ditto.
2820 (floatsisf2): Ditto.
2821 (floatdidf2_mem): Ditto.
2822 (floatunsdidf2_mem): Ditto.
2823 (floatunsdidf2): Ditto.
2824 (floatdisf2_internal1): Ditto.
2825 (floatdisf2_mem): Ditto.
2826 (floatunsdisf2_mem): Ditto.
2827 (floatsi<mode>2_lfiwax_mem2): Delete.
2828 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2829 (fix_trunc<mode>si2_mem): Ditto.
2830 (fixuns_trunc<mode>si2_mem): Ditto.
2831 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
2832 type operations to reduce copying the values to multiple memory slots.
2833 (roundu32<mode>2_fprs): Ditto.
2835 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
2836 PRE_INC, PRE_DEC, PRE_MODIFY.
2837 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
2839 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
2842 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2845 * cfgexpand.c (partition_stack_vars): Call
2846 update_alias_info_with_stack_vars unconditionally.
2847 (update_alias_info_with_stack_vars): Allow unused
2848 unreferenced vars when not optimizing.
2850 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
2852 PR tree-optimization/46036
2853 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
2854 add_to_dst_predicate_list.
2856 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2859 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
2861 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
2862 argument, call dead_debug_reset when adding REG_UNUSED note.
2863 (dead_debug_reset): New function.
2864 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
2865 df_create_unused_note callers.
2867 2010-11-09 Anatoly Sokolov <aesok@post.ru>
2869 * config/fr30/fr30.c: Include "df.h".
2871 2010-11-09 Richard Guenther <rguenther@suse.de>
2873 PR tree-optimization/46355
2874 * tree-loop-distribution.c (tree_loop_distribution): Do not
2875 distribute loops without a single exit.
2877 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2879 PR rtl-optimization/46237
2880 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
2881 saved hard regs if they might get partially clobbered.
2883 2010-11-09 Paul Koning <ni1d@arrl.net>
2885 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
2887 2010-11-09 Richard Guenther <rguenther@suse.de>
2889 PR tree-optimization/46177
2890 * tree-loop-distribution.c (prop_phis): Remove.
2891 (generate_builtin): Re-use the old loop exit edge to avoid
2892 needing to update PHI nodes.
2894 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
2896 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
2897 type of args_size to unsigned HOST_WIDE_INT.
2900 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
2901 * config/t-pnt16-warn: New file.
2902 * config/picochip/picochip.c (picochip_emit_stack_allocate):
2904 (picochip_emit_save_register): Likewise.
2905 (picochip_emit_restore_register): Remove variable insn.
2906 (picochip_legitimize_address): Don't use C++ style comments.
2907 (picochip_legitimize_reload_address): Likewise.
2908 (reorder_var_tracking_notes): Remove variable vliw_start.
2909 (picochip_reorg): Cast first arguemnt to emit_note_after to
2911 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
2912 (picochip_expand_builtin_3op): Likewise.
2913 (picochip_expand_builtin_2opvoid): Likewise.
2914 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
2915 (picochip_expand_array_testport): Likewise.
2916 (picochip_init_builtins): Remove unused variables.
2917 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
2918 to unsigned long, and output it as such.
2919 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
2920 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
2921 (schedType): Cast result of picochip_schedule_type to
2922 enum attr_schedType.
2925 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
2926 conditional to type of S.
2927 (mn10300_function_arg): Remove unused variable align.
2928 (mn10300_arg_partial_bytes): Likewise.
2929 * config/mn10300/mn10300.md (attribute cpu): Cast value to
2932 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
2935 * gengtype-parse.c (type): Call get_input_file_name to get file name.
2937 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
2939 * tree.h (contains_placeholder_p): Fix comment.
2940 (type_contains_placeholder_p): Adjust comment.
2941 * tree.c (contains_placeholder_p): Fix comment.
2942 (type_contains_placeholder_1): Do not recurse on pointed-to types and
2944 (type_contains_placeholder_p): Add comment.
2946 2010-11-09 Paul Koning <ni1d@arrl.net>
2948 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
2949 output of byte values.
2951 2010-11-09 Jakub Jelinek <jakub@redhat.com>
2954 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
2957 2010-11-09 Richard Guenther <rguenther@suse.de>
2960 * varasm.c (compute_visible_aliases): New function.
2961 (remove_unreachable_alias_pairs): Aliases make a target available
2962 even though we reclaimed the cgraph node.
2963 (finish_aliases_1): Likewise.
2964 * Makefile.in (varasm.o): Add pointer-set.h dependency.
2966 2010-11-09 Nick Clifton <nickc@redhat.com>
2968 * config/mn10300/mn10300-modes.def: New file.
2970 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
2971 Jeremie Salvucci <jeremie.salvucci@free.fr>
2973 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
2974 (plugin_files, get_file_basename, get_file_realbasename)
2975 (get_file_langdir, error_at_line, gt_files, this_file)
2976 (system_h_file, read_input_list, create_field_all)
2977 (get_file_srcdir_relative_path, get_file_basename)
2978 (get_file_langdir, get_file_gtfilename)
2979 (get_output_file_with_visibility, get_output_file_name)
2980 (struct flist, put_mangled_filename, walk_type)
2981 (put_mangled_filename, finish_root_table, write_roots): Use
2983 (lang_dir_names, num_lang_dirs): Remove static.
2984 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
2985 (main): Use input_file-s.
2987 * gengtype.h: (struct input_file_st, input_file): New type.
2988 (struct fileloc): Use it.
2989 (gt_files, num_gt_files, this_file, system_h_file)
2990 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
2991 (get_input_file_name): New function.
2992 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
2994 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
2995 (get_output_file_name): Ditto.
2997 * gengtype-lex.l (yybegin): Use input_file.
2999 * gengtype-parse.c (parse_error): Use input_file.
3001 2010-11-08 Xinliang David Li <davidxl@google.com>
3003 PR tree-optimization/46316
3004 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
3005 * double-int.h (double_int_mul_with_sign): New function.
3006 * double-int.c (double_int_mul_with_sign): New function.
3008 2010-11-08 Paul Koning <ni1d@arrl.net>
3010 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
3012 2010-11-08 Paul Koning <ni1d@arrl.net>
3014 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
3016 2010-11-08 Paul Koning <ni1d@arrl.net>
3018 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
3021 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3024 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3025 turn on ISA 2.04 rounding instructions for power5.
3027 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
3031 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
3033 (movdi_low_st): Ditto.
3035 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
3036 Richard Henderson <rth@redhat.com>
3039 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
3040 (attribute acc_group): Cast value to enum attr_acc_group.
3041 (*movdi_nodouble+6): Use gen_int_mode.
3042 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
3043 if RTX_CODE is defined or not.
3044 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
3046 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
3047 (frv_frame_access, frv_expand_prologue): Remove unused variables.
3048 (frv_expand_block_clear): Likewise.
3049 (frv_trampoline_init): Use LCT_NORMAL.
3050 (struct frv_packet_group): New struct, broken out of type of
3052 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
3053 use cast in loop counter increment.
3054 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
3055 assigning to io->type.
3056 (bdesc_set): Use rtx_code UNKNOWN in initializer.
3057 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
3058 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
3059 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
3060 (frv_read_argument): Use expand_normal.
3063 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
3064 lm32_legitimate_constant_p.
3065 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3066 * config/lm32/lm32.c (gen_int_relational): Make new block for
3067 LE / LT / LEU / LTU case. Declare variables at start of block.
3068 (lm32_block_move_inline): Use XALLOCAVEC.
3070 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3072 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
3074 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
3076 * gengtype (get_output_file_for_structure): Ensure type is union
3078 (write_splay_tree_allocator_def): Use
3079 get_output_file_with_visibility.
3081 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3083 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
3084 to defined values in case of an error.
3085 (s390_option_override): Skip further processing if the -march
3086 parameter wasn't recognized.
3088 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
3090 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
3091 assert that REG is a hard register number before using it as an index.
3094 * config/i386/i386.c (ix86_expand_split_stack_prologue):
3095 Avoid warnings when HOST_WIDE_INT is 32 bit.
3097 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
3100 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
3101 (sparc_promote_prototypes): Likewise.
3102 (sparc_promote_function_mode): Promote in 32-bit mode as well.
3103 (sparc_return_in_memory): Remove superfluous parentheses.
3104 (sparc_struct_value_rtx): Fix long lines.
3105 (sparc_function_value_1): Promote in 32-bit mode as well.
3107 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
3109 PR rtl-optimization/45352
3110 * sel-sched.c (find_best_expr): Do not set pneed_stall when
3111 the variable_issue hook is not implemented.
3112 (fill_insns): Remove dead variable stall_iterations.
3113 (init_seqno_1): Force EBB start for resetting sched cycles on any
3114 successor blocks of the rescheduled region.
3115 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
3116 (reset_sched_cycles_in_current_ebb): Add debug printing.
3117 New variable issued_insns. Advance state when we have issued
3120 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
3122 * gengtype (main): Get here's position using POS_HERE macro for
3125 2010-11-07 Ian Lance Taylor <iant@google.com>
3128 * config/i386/i386.c (split_stack_fn_large): New static variable.
3129 (ix86_expand_split_stack_prologue): Handle large model.
3131 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
3133 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
3134 all possible addressing modes.
3136 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
3138 PR tree-optimization/46346
3139 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
3141 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
3143 * config/mips/mips.c: Revert previous patch.
3144 * config/mips/mips.md: Likewise.
3146 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
3148 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
3149 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
3150 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
3151 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
3152 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
3154 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
3155 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
3156 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
3157 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
3159 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
3162 * c-decl.c (lookup_label): Labels can only be referenced in a
3164 (store_parm_decls_oldstyle): Skip erroneous parameters.
3166 2010-11-06 Anatoly Sokolov <aesok@post.ru>
3168 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3169 LIBCALL_VALUE): Remove macros.
3170 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3171 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3172 (fr30_function_value_regno_p, fr30_function_value,
3173 fr30_libcall_value): New functions.
3175 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
3178 * target.def (generate_internal_label): New asm_out hook.
3179 * output.h (default_generate_internal_label): Declare.
3180 * varasm.c (default_generate_internal_label): Define.
3182 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3185 * doc/extend.tex (format): Document NSString extension.
3186 (format_arg): Likewise.
3187 (Darwin Format Checks): New section.
3188 * doc/tm.texi: Document string object hooks (generated).
3189 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
3190 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3191 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3192 * target.def (objc_construct_string_object): Rename, amend
3194 (string_object_ref_type_p): New hook.
3195 (check_string_object_format_arg): New hook.
3196 * c-parser.c (c_parser_attributes): Allow objective-c class names as
3197 attribute identifiers.
3198 * config/darwin-c.c (darwin_cfstring_ref_p): New.
3199 (darwin_check_cfstring_format_arg): New.
3200 (darwin_additional_format_types): New.
3201 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
3202 (darwin_check_cfstring_format_arg): New.
3203 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
3204 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3205 (TARGET_N_FORMAT_TYPES): New.
3206 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3208 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
3209 Pascal Obry <obry@adacore.com>
3211 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
3212 in 64-bit mode and 17 otherwise.
3214 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3217 * var-tracking.c (emit_note_insn_var_location): Make sure that
3218 call related var location notes come before the normal ones.
3220 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
3223 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
3226 2010-11-05 Ian Lance Taylor <iant@google.com>
3228 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
3230 2010-11-05 Jakub Jelinek <jakub@redhat.com>
3233 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
3234 pointer_set_contains if DECL_NAME is NULL.
3236 2010-11-05 Ian Lance Taylor <iant@google.com>
3239 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
3240 request enough additional space for alignment, and force alignment.
3242 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
3244 * config/i386/i386.c (legitimate_pic_address_disp_p):
3245 Handle UNSPEC_PCREL.
3246 (ix86_legitimate_address_p): Likewise.
3247 (legitimize_pic_address): Likewise.
3248 (output_pic_addr_const): Likewise.
3249 (ix86_delegitimize_address): Likewise.
3250 (ix86_find_base_term): Likewise.
3251 (memory_address_length): Likewise.
3252 (x86_output_mi_thunk): Handle special case x64
3253 for non local binding.
3254 * config/i386/i386.md (UNSPEC_PCREL): New.
3255 * config/i386/winnt.c (i386_pe_binds_local_p):
3256 Allow weak symbol for x64 windows with non-local binding.
3258 2010-11-05 Jakub Jelinek <jakub@redhat.com>
3261 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
3262 instead of EXPAND_NORMAL for base expansion.
3264 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
3266 * config.gcc: Support --with-fpmath=avx for x86.
3267 * config/i386/avxmath.h: New.
3268 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
3270 2010-11-05 Ian Lance Taylor <iant@google.com>
3272 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
3273 * gengtype.c (walk_type): Don't recognize descbits option.
3275 2010-11-05 Joseph Myers <joseph@codesourcery.com>
3277 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
3278 WORD_SWITCH_TAKES_ARG): Remove.
3279 * doc/options.texi (Args): Document.
3280 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
3281 * doc/tm.texi: Regenerate.
3282 * opt-functions.awk (switch_flags): Handle Args.
3283 * opts-common.c: Update comment on tm.h include.
3284 (decode_cmdline_option): Handle options with multiple arguments.
3285 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
3286 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
3287 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3288 CL_COMMON): Update values.
3289 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
3290 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
3291 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
3292 sectobjectsymbols, sectorder, segcreate, segprot): New.
3294 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
3295 Uros Bizjak <ubizjak@gmail.com>
3297 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
3298 256bit AVX register is used.
3299 (ix86_expand_vector_move_misalign): Likewise.
3300 (ix86_expand_vector_move): Replace use_avx256_p with
3301 VALID_AVX256_REG_MODE.
3303 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
3306 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
3307 change. Set $@-warn.o to -Wno-error.
3310 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
3311 comparing it to a signed value.
3314 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
3316 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
3320 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
3321 (m32c_function_arg). Add comma between arguments two and three.
3322 (m32c_promote_prototypes): Remove declaration.
3323 (current_function_special_page_vector): Likewise.
3324 (m32c_regno_reg_class): Change return type to enum reg_class.
3325 (m32c_pushm_popm): Use add_reg_note.
3326 (m32c_push_rounding): Change return type to unsigned int.
3327 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
3329 (m32c_insert_attributes): Constify variable name.
3330 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
3331 (m32c_prepare_shift): Remove variable lref.
3332 (m32c_expand_movcc): Remove variable cmp.
3333 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
3334 (m32c_compare_redundant): Remove variable op2.
3335 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
3336 (m32c_pragma_memregs): Assign the number to target_memregs.
3337 (m32c_pragma_address): Remove variable var_str.
3338 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
3340 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
3341 * config/m32c/bitops.md (andsi3): Add default case to switch.
3342 (iorsi3, xorsi3): Likewise.
3343 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
3344 * config/m32c/jump.md (call, call_value): Likewise.
3345 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
3346 (m32c_regno_reg_class): Likewise.
3347 (current_function_special_page_vector): Declare.
3349 2010-11-05 Jakub Jelinek <jakub@redhat.com>
3351 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
3353 PR tree-optimization/46099
3354 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
3355 if it is NULL and uid wasn't found in the hash table. Just fold the
3356 result if it is NULL otherwise. Insert other potentially needed
3357 stmts right before current stmt instead of on the entry edge.
3358 (struct elv_data): Add gsi and reset fields.
3359 (eliminate_local_variables_1): Adjust caller. If take_address_of
3360 failed for debug stmt, set dta->reset and return.
3361 (eliminate_local_variables_stmt): Change STMT argument for GSI,
3362 pass GSI through to the callback, handle resetting of debug stmts.
3363 (eliminate_local_variables): Adjust caller. Process debug stmts
3367 * gimplify.c (gimplify_asm_expr): If a "m" input is a
3368 {pre,post}{in,de}crement, fail.
3371 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
3372 * tree-pretty-print.c (dump_generic_node): Likewise.
3373 (op_code_prio): Likewise.
3374 * cfgexpand.c (expand_debug_expr): Likewise.
3376 2010-11-04 Paul Koning <ni1d@arrl.net>
3378 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
3381 2010-11-04 Chao-ying Fu <fu@mips.com>
3383 * configure.ac: Test assembler support for DSP Rev1 mult.
3384 * configure: Regenerate.
3385 * config.in: Regenerate.
3386 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
3387 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
3388 (CODE_FOR_mips_multu): New define.
3389 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from